Ninja Tables – WP Data Table Plugin for WordPress - Version 4.1.10

Version Description

Download this release

Release Info

Developer techjewel
Plugin Icon 128x128 Ninja Tables – WP Data Table Plugin for WordPress
Version 4.1.10
Comparing to
See all releases

Code changes from version 4.1.9 to 4.1.10

admin/NinjaTablesAdmin.php CHANGED
@@ -585,17 +585,16 @@ class NinjaTablesAdmin
585
  public function saveCustomCSSJS()
586
  {
587
  $tableId = intval($_REQUEST['table_id']);
588
- // todo: we need to sanizite css & js properly.
589
- // Probably need to see what other plugins do.
590
- $css = sanitize_text_field($_REQUEST['custom_css']);
591
- $js = sanitize_text_field($_REQUEST['custom_js']);
592
- $css = wp_strip_all_tags($css);
593
 
 
 
594
  update_post_meta($tableId, '_ninja_tables_custom_css', $css);
595
- update_post_meta($tableId, '_ninja_tables_custom_js', $js);
 
596
 
597
  wp_send_json_success(array(
598
- 'message' => 'Custom CSS and JS successfully saved'
599
  ), 200);
600
  }
601
 
@@ -643,21 +642,14 @@ class NinjaTablesAdmin
643
 
644
  if (isset($_REQUEST['columns'])) {
645
  $rawColumns = ninja_tables_sanitize_array($_REQUEST['columns']);
 
646
  if ($rawColumns && is_array($rawColumns)) {
647
  foreach ($rawColumns as $column) {
648
  foreach ($column as $column_index => $column_value) {
649
- if ($column_index == 'header_html_content' || $column_index == 'selections' || $column_index == 'wp_post_custom_data_value') {
650
- $column[$column_index] = wp_kses_post($column_value);
651
  } else {
652
- if (is_array($column_value)) {
653
- $column[$column_index] = ninja_tables_sanitize_array($column_value);
654
- } else if (is_int($column_value)) {
655
- $column[$column_index] = intval($column_value);
656
- } else if (is_bool($column_value)) {
657
- $column[$column_index] = $column_value;
658
- } else {
659
- $column[$column_index] = wp_kses_post($column_value);
660
- }
661
  }
662
  }
663
  $tableColumns[] = $column;
585
  public function saveCustomCSSJS()
586
  {
587
  $tableId = intval($_REQUEST['table_id']);
588
+ $data = ninja_tables_sanitize_array($_REQUEST);
 
 
 
 
589
 
590
+ $css = $data['custom_css'];
591
+ $css = wp_strip_all_tags($css);
592
  update_post_meta($tableId, '_ninja_tables_custom_css', $css);
593
+
594
+ do_action('ninja_tables_custom_code_before_save', $data);
595
 
596
  wp_send_json_success(array(
597
+ 'message' => 'Code successfully saved'
598
  ), 200);
599
  }
600
 
642
 
643
  if (isset($_REQUEST['columns'])) {
644
  $rawColumns = ninja_tables_sanitize_array($_REQUEST['columns']);
645
+
646
  if ($rawColumns && is_array($rawColumns)) {
647
  foreach ($rawColumns as $column) {
648
  foreach ($column as $column_index => $column_value) {
649
+ if (is_int($column_value)) {
650
+ $column[$column_index] = intval($column_value);
651
  } else {
652
+ $column[$column_index] = $column_value;
 
 
 
 
 
 
 
 
653
  }
654
  }
655
  $tableColumns[] = $column;
assets/js/ninja-tables-admin.3.1.0.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=297)}([function(t,e){t.exports=function(t,e,n,a,o,i){var s,l=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(s=t,l=t.default);var c,u="function"==typeof l?l.options:l;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):a&&(c=a),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:s,exports:l,options:u}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var o=(s=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(a[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&a[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o=n(310),i={},s=a&&(document.head||document.getElementsByTagName("head")[0]),l=null,r=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t){for(var e=0;e<t.length;e++){var n=t[e],a=i[n.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(v(n.parts[o]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(v(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,a=document.querySelector("style["+p+'~="'+t.id+'"]');if(a){if(c)return u;a.parentNode.removeChild(a)}if(_){var o=r++;a=l||(l=m()),e=g.bind(null,a,o,!1),n=g.bind(null,a,o,!0)}else a=m(),e=function(t,e){var n=e.css,a=e.media,o=e.sourceMap;a&&t.setAttribute("media",a);d.ssrId&&t.setAttribute(p,e.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,a),n=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else n()}}t.exports=function(t,e,n,a){c=n,d=a||{};var s=o(t,e);return f(s),function(e){for(var n=[],a=0;a<s.length;a++){var l=s[a];(r=i[l.id]).refs--,n.push(r)}e?f(s=o(t,e)):s=[];for(a=0;a<n.length;a++){var r;if(0===(r=n[a]).refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete i[r.id]}}}};var h,b=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function g(t,e,n,a){var o=n?"":a.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e,n){var a=n(45),o="object"==typeof self&&self&&self.Object===Object&&self,i=a||o||Function("return this")();t.exports=i},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var a=n(122),o=n(125);t.exports=function(t,e){var n=o(t,e);return a(n)?n:void 0}},,function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var a=n(12),o=n(110),i=n(111),s="[object Null]",l="[object Undefined]",r=a?a.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?l:s:r&&r in Object(t)?o(t):i(t)}},,,function(t,e,n){var a=n(107),o=n(75),i=n(22);t.exports=function(t){return i(t)?a(t):o(t)}},function(t,e,n){var a=n(3).Symbol;t.exports=a},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var a=n(5)(Object,"create");t.exports=a},function(t,e,n){var a=n(130),o=n(131),i=n(132),s=n(133),l=n(134);function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(52);t.exports=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}},function(t,e,n){var a=n(136);t.exports=function(t,e){var n=t.__data__;return a(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var a=n(8),o=n(7),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&a(t)==i}},function(t,e,n){var a=n(18),o=1/0;t.exports=function(t){if("string"==typeof t||a(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){var a=n(50),o=n(27);t.exports=function(t){return null!=t&&o(t.length)&&!a(t)}},,,,function(t,e,n){t.exports=n(106)},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var a=n(119),o=n(135),i=n(137),s=n(138),l=n(139);function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(5)(n(3),"Map");t.exports=a},function(t,e,n){var a=n(4),o=n(18),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var a=n(172);t.exports=function(t){return null==t?"":a(t)}},,,,,function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,o=Array(a);++n<a;)o[n]=e(t[n],n,t);return o}},,,,,function(t,e,n){var a=n(0)(n(335),n(336),!1,function(t){n(333)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(352),n(353),!1,function(t){n(350)},"data-v-06fd6e1a",null);t.exports=a.exports},function(t,e,n){var a=n(109),o=n(7),i=Object.prototype,s=i.hasOwnProperty,l=i.propertyIsEnumerable,r=a(function(){return arguments}())?a:function(t){return o(t)&&s.call(t,"callee")&&!l.call(t,"callee")};t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(20))},function(t,e,n){(function(t){var a=n(3),o=n(112),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,l=s&&s.exports===i?a.Buffer:void 0,r=(l?l.isBuffer:void 0)||o;t.exports=r}).call(e,n(47)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&a.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var a=n(113),o=n(74),i=n(114),s=i&&i.isTypedArray,l=s?o(s):a;t.exports=l},function(t,e,n){var a=n(8),o=n(13),i="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",r="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=a(t);return e==s||e==l||e==i||e==r}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var a=n(77),o=n(54),i=n(178),s=Math.max;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var r=null==n?0:i(n);return r<0&&(r=s(l+r,0)),a(t,o(e,3),r)}},function(t,e,n){var a=n(147),o=n(168),i=n(36),s=n(4),l=n(176);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):a(t):l(t)}},function(t,e,n){var a=n(15),o=n(149),i=n(150),s=n(151),l=n(152),r=n(153);function c(t){var e=this.__data__=new a(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=l,c.prototype.set=r,t.exports=c},function(t,e,n){var a=n(154),o=n(7);t.exports=function t(e,n,i,s,l){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:a(e,n,i,s,t,l))}},function(t,e,n){var a=n(76),o=n(155),i=n(78),s=1,l=2;t.exports=function(t,e,n,r,c,u){var d=n&s,p=t.length,_=e.length;if(p!=_&&!(d&&_>p))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var m=-1,v=!0,h=n&l?new a:void 0;for(u.set(t,e),u.set(e,t);++m<p;){var b=t[m],g=e[m];if(r)var y=d?r(g,b,m,e,t,u):r(b,g,m,t,e,u);if(void 0!==y){if(y)continue;v=!1;break}if(h){if(!o(e,function(t,e){if(!i(h,e)&&(b===t||c(b,t,n,r,u)))return h.push(e)})){v=!1;break}}else if(b!==g&&!c(b,g,n,r,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,n){var a=n(13);t.exports=function(t){return t==t&&!a(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var a=n(61);t.exports=function(t,e,n){var o=null==t?void 0:a(t,e);return void 0===o?n:o}},function(t,e,n){var a=n(62),o=n(19);t.exports=function(t,e){for(var n=0,i=(e=a(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){var a=n(4),o=n(30),i=n(169),s=n(31);t.exports=function(t,e){return a(t)?t:o(t,e)?[t]:i(s(t))}},,,,,,,,,,,,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var a=n(115),o=n(116),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!a(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var a=n(28),o=n(140),i=n(141);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new a;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},function(t,e){t.exports=function(t,e,n,a){for(var o=t.length,i=n+(a?1:-1);a?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var a=n(143),o=n(29),i=n(144),s=n(145),l=n(146),r=n(8),c=n(51),u=c(a),d=c(o),p=c(i),_=c(s),f=c(l),m=r;(a&&"[object DataView]"!=m(new a(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||s&&"[object Set]"!=m(new s)||l&&"[object WeakMap]"!=m(new l))&&(m=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,a=n?c(n):"";if(a)switch(a){case u:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case _:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var a=n(0)(n(504),n(521),!1,function(t){n(502)},null,null);t.exports=a.exports},function(t,e,n){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"object"==("undefined"==typeof formulaParser?"undefined":a(formulaParser))?(this.instance=new formulaParser.Parser,this._addFunctionNUMVAL(this.instance),this._addFunctionDATEVAL(this.instance)):this.instance=!1}return o(t,[{key:"parse",value:function(t){var e=this;arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||!this.instance)return t;var n=this.advancedParsablesShortcodes(t);if(n&&n.forEach(function(n){var a=n.replace("[f]","").replace("[/f]","");if(a){var o=e.instance.parse(a),i=o.result?o.result:"";t=t.replace(n,i)}}),this.isParsable(t)){var a=t.substr(1);if(a){var o=this.instance.parse(a);t=o.result?o.result:""}}return t}},{key:"isParsable",value:function(t){return"string"==typeof t&&0===t.indexOf("=")}},{key:"advancedParsablesShortcodes",value:function(t){if(-1==t.indexOf("[f]",t))return!1;var e=t.match(/\[f][\s\S]*?\[\/f]/g);return e||!1}},{key:"getSupportedFormulas",value:function(){var t=formulaParser.SUPPORTED_FORMULAS;return t.includes("NUMVAL")||(t.push("NUMVAL"),t.push("DATEVAL")),t}},{key:"getInstance",value:function(){return this.instance}},{key:"_addFunctionNUMVAL",value:function(t){t.setFunction("NUMVAL",function(t){var e=t[0]||"";if(!e)return e;e=e.toString().replace(/[^\d\.,]+/g,"");var n=t[1]||",";e=e.indexOf(n)>-1?e.split(n).join(""):e.split(",").join("");var a=t[2]||".";e.indexOf(a)>-1&&(e=e.split(a).join("."));var o=Number(e);return isNaN(o)?e:o})}},{key:"_addFunctionDATEVAL",value:function(t){t.setFunction("DATEVAL",function(t){var e=t[0]||"",n=t[1]||"";return e&&n?moment(e,n).unix():e})}}]),t}();e.a=new i},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var a=n(360),o=n(361),i=n(366),s=n(4);t.exports=function(t,e){return(s(t)?a:o)(t,i(e))}},function(t,e,n){var a=n(108),o=n(44),i=n(4),s=n(46),l=n(48),r=n(49),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),u=!n&&o(t),d=!n&&!u&&s(t),p=!n&&!u&&!d&&r(t),_=n||u||d||p,f=_?a(t.length,String):[],m=f.length;for(var v in t)!e&&!c.call(t,v)||_&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||f.push(v);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}},function(t,e,n){var a=n(8),o=n(7),i="[object Arguments]";t.exports=function(t){return o(t)&&a(t)==i}},function(t,e,n){var a=n(12),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,l=a?a.toStringTag:void 0;t.exports=function(t){var e=i.call(t,l),n=t[l];try{t[l]=void 0;var a=!0}catch(t){}var o=s.call(t);return a&&(e?t[l]=n:delete t[l]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var a=n(8),o=n(27),i=n(7),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[a(t)]}},function(t,e,n){(function(t){var a=n(45),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o&&a.process,l=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=l}).call(e,n(47)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var a=n(117)(Object.keys,Object);t.exports=a},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var a=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"}}}}},function(t,e,n){var a=n(120),o=n(15),i=n(29);t.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||o),string:new a}}},function(t,e,n){var a=n(121),o=n(126),i=n(127),s=n(128),l=n(129);function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(14);t.exports=function(){this.__data__=a?a(null):{},this.size=0}},function(t,e,n){var a=n(50),o=n(123),i=n(13),s=n(51),l=/^\[object .+?Constructor\]$/,r=Function.prototype,c=Object.prototype,u=r.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(a(t)?p:l).test(s(t))}},function(t,e,n){var a,o=n(124),i=(a=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var a=n(3)["__core-js_shared__"];t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var a=n(14),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(a){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var a=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return a?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var a=n(14),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=a&&void 0===e?o:e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var a=n(16),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=a(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e,n){var a=n(16);t.exports=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var a=n(16);t.exports=function(t){return a(this.__data__,t)>-1}},function(t,e,n){var a=n(16);t.exports=function(t,e){var n=this.__data__,o=a(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var a=n(17);t.exports=function(t){var e=a(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var a=n(17);t.exports=function(t){return a(this,t).get(t)}},function(t,e,n){var a=n(17);t.exports=function(t){return a(this,t).has(t)}},function(t,e,n){var a=n(17);t.exports=function(t,e){var n=a(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(75),o=n(79),i=n(22),s=n(455),l=n(456),r="[object Map]",c="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return s(t)?l(t):t.length;var e=o(t);return e==r||e==c?t.size:a(t).length}},function(t,e,n){var a=n(5)(n(3),"DataView");t.exports=a},function(t,e,n){var a=n(5)(n(3),"Promise");t.exports=a},function(t,e,n){var a=n(5)(n(3),"Set");t.exports=a},function(t,e,n){var a=n(5)(n(3),"WeakMap");t.exports=a},function(t,e,n){var a=n(148),o=n(167),i=n(59);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||a(n,t,e)}}},function(t,e,n){var a=n(55),o=n(56),i=1,s=2;t.exports=function(t,e,n,l){var r=n.length,c=r,u=!l;if(null==t)return!c;for(t=Object(t);r--;){var d=n[r];if(u&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++r<c;){var p=(d=n[r])[0],_=t[p],f=d[1];if(u&&d[2]){if(void 0===_&&!(p in t))return!1}else{var m=new a;if(l)var v=l(_,f,p,t,e,m);if(!(void 0===v?o(f,_,i|s,l,m):v))return!1}}return!0}},function(t,e,n){var a=n(15);t.exports=function(){this.__data__=new a,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(15),o=n(29),i=n(28),s=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof a){var l=n.__data__;if(!o||l.length<s-1)return l.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(l)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var a=n(55),o=n(57),i=n(156),s=n(160),l=n(79),r=n(4),c=n(46),u=n(49),d=1,p="[object Arguments]",_="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,h,b){var g=r(t),y=r(e),w=g?_:l(t),x=y?_:l(e),k=(w=w==p?f:w)==f,C=(x=x==p?f:x)==f,S=w==x;if(S&&c(t)){if(!c(e))return!1;g=!0,k=!1}if(S&&!k)return b||(b=new a),g||u(t)?o(t,e,n,v,h,b):i(t,e,w,n,v,h,b);if(!(n&d)){var j=k&&m.call(t,"__wrapped__"),$=C&&m.call(e,"__wrapped__");if(j||$){var T=j?t.value():t,P=$?e.value():e;return b||(b=new a),h(T,P,n,v,b)}}return!!S&&(b||(b=new a),s(t,e,n,v,h,b))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var a=n(12),o=n(157),i=n(52),s=n(57),l=n(158),r=n(159),c=1,u=2,d="[object Boolean]",p="[object Date]",_="[object Error]",f="[object Map]",m="[object Number]",v="[object RegExp]",h="[object Set]",b="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",x=a?a.prototype:void 0,k=x?x.valueOf:void 0;t.exports=function(t,e,n,a,x,C,S){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case y:return!(t.byteLength!=e.byteLength||!C(new o(t),new o(e)));case d:case p:case m:return i(+t,+e);case _:return t.name==e.name&&t.message==e.message;case v:case b:return t==e+"";case f:var j=l;case h:var $=a&c;if(j||(j=r),t.size!=e.size&&!$)return!1;var T=S.get(t);if(T)return T==e;a|=u,S.set(t,e);var P=s(j(t),j(e),a,x,C,S);return S.delete(t),P;case g:if(k)return k.call(t)==k.call(e)}return!1}},function(t,e,n){var a=n(3).Uint8Array;t.exports=a},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,a){n[++e]=[a,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var a=n(161),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,l,r){var c=n&o,u=a(t),d=u.length;if(d!=a(e).length&&!c)return!1;for(var p=d;p--;){var _=u[p];if(!(c?_ in e:i.call(e,_)))return!1}var f=r.get(t);if(f&&r.get(e))return f==e;var m=!0;r.set(t,e),r.set(e,t);for(var v=c;++p<d;){var h=t[_=u[p]],b=e[_];if(s)var g=c?s(b,h,_,e,t,r):s(h,b,_,t,e,r);if(!(void 0===g?h===b||l(h,b,n,s,r):g)){m=!1;break}v||(v="constructor"==_)}if(m&&!v){var y=t.constructor,w=e.constructor;y!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(m=!1)}return r.delete(t),r.delete(e),m}},function(t,e,n){var a=n(162),o=n(164),i=n(11);t.exports=function(t){return a(t,i,o)}},function(t,e,n){var a=n(163),o=n(4);t.exports=function(t,e,n){var i=e(t);return o(t)?i:a(i,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=e.length,o=t.length;++n<a;)t[o+n]=e[n];return t}},function(t,e,n){var a=n(165),o=n(166),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),a(s(t),function(e){return i.call(t,e)}))}:o;t.exports=l},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,o=0,i=[];++n<a;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var a=n(58),o=n(11);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,a(s)]}return e}},function(t,e,n){var a=n(56),o=n(60),i=n(173),s=n(30),l=n(58),r=n(59),c=n(19),u=1,d=2;t.exports=function(t,e){return s(t)&&l(e)?r(c(t),e):function(n){var s=o(n,t);return void 0===s&&s===e?i(n,t):a(e,s,u|d)}}},function(t,e,n){var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n(170)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,function(t,n,a,i){e.push(a?i.replace(o,"$1"):n||t)}),e});t.exports=i},function(t,e,n){var a=n(171),o=500;t.exports=function(t){var e=a(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var a=n(28),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var a=arguments,o=e?e.apply(this,a):a[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,a);return n.cache=i.set(o,s)||i,s};return n.cache=new(i.Cache||a),n}i.Cache=a,t.exports=i},function(t,e,n){var a=n(12),o=n(37),i=n(4),s=n(18),l=1/0,r=a?a.prototype:void 0,c=r?r.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-l?"-0":n}},function(t,e,n){var a=n(174),o=n(175);t.exports=function(t,e){return null!=t&&o(t,e,a)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var a=n(62),o=n(44),i=n(4),s=n(48),l=n(27),r=n(19);t.exports=function(t,e,n){for(var c=-1,u=(e=a(e,t)).length,d=!1;++c<u;){var p=r(e[c]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&l(u)&&s(p,u)&&(i(t)||o(t))}},function(t,e,n){var a=n(80),o=n(177),i=n(30),s=n(19);t.exports=function(t){return i(t)?a(s(t)):o(t)}},function(t,e,n){var a=n(61);t.exports=function(t){return function(e){return a(e,t)}}},function(t,e,n){var a=n(179);t.exports=function(t){var e=a(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var a=n(180),o=1/0,i=1.7976931348623157e308;t.exports=function(t){return t?(t=a(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,n){var a=n(13),o=n(18),i=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=r.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):l.test(t)?i:+t}},function(t,e,n){var a=n(0)(n(509),n(510),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(183).polyfill(),e.a=function t(e,n,o,i){var s,l=t,r="";function c(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?c(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=i?0 in n?[]:[1]:n;for(s=0;s<n.length;s++){var u,d="",p=0,_="object"==a(n[s])?n[s]:{};(_=Object.assign({},o,_))[""]={"":n[s]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,function(t,e,n,o,i,s,f){p?d+=p&&!i||p>1?t:e:(r+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,function(t,e,n,a,o,i){return e?c(_,e):a?c(_,i):o?l(c(_,i),_):n?"":new Option(c(_,i)).innerHTML}),u=s),i?--p||(f=c(_,f),/^f/.test(void 0===f?"undefined":a(f))?r+=f.call(_,d,function(t){return l(t,_)}):r+=l(d,f,_,u),d=""):++p})}return r}},function(t,e,n){"use strict";function a(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),a=1;a<arguments.length;a++){var o=arguments[a];if(void 0!==o&&null!==o)for(var i=Object.keys(Object(o)),s=0,l=i.length;s<l;s++){var r=i[s],c=Object.getOwnPropertyDescriptor(o,r);void 0!==c&&c.enumerable&&(n[r]=o[r])}}return n}t.exports={assign:a,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:a})}}},function(t,e,n){var a=n(31),o=n(185),i=/&(?:amp|lt|gt|quot|#39);/g,s=RegExp(i.source);t.exports=function(t){return(t=a(t))&&s.test(t)?t.replace(i,o):t}},function(t,e,n){var a=n(81)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=a},function(t,e,n){var a=n(187)(n(53));t.exports=a},function(t,e,n){var a=n(54),o=n(22),i=n(11);t.exports=function(t){return function(e,n,s){var l=Object(e);if(!o(e)){var r=a(n,3);e=i(e),n=function(t){return r(l[t],t,l)}}var c=t(e,n,s);return c>-1?l[r?e[c]:c]:void 0}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var a=function(t){var e=(t=t.toString()).split(".")[1],n=e?e.length:0;return Number(t).toLocaleString("es-ES",{minimumFractionDigits:n})}},function(t,e,n){t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var a=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var i,s,l=String(o(e)),r=a(n),c=l.length;return r<0||r>=c?t?"":void 0:(i=l.charCodeAt(r))<55296||i>56319||r+1===c||(s=l.charCodeAt(r+1))<56320||s>57343?t?l.charAt(r):i:t?l.slice(r,r+2):s-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var a=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?a(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var a=n("cb7c");t.exports=function(){var t=a(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var a=n("3a38"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?o(t+e,0):i(t,e)}},1654:function(t,e,n){"use strict";var a=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=a(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(t,e,n){var a=n("63b6");a(a.S,"Array",{isArray:n("9003")})},"1bc3":function(t,e,n){var a=n("f772");t.exports=function(t,e){if(!a(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!a(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var a=n("f772"),o=n("e53d").document,i=a(o)&&a(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var a=n("d9f6"),o=n("aebd");t.exports=function(t,e,n){e in t?a.f(t,e,o(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var a=n("2aba"),o=n("32e9"),i=n("79e5"),s=n("be13"),l=n("2b4c"),r=n("520a"),c=l("species"),u=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=l(t),_=!i(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),f=_?!i(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!e}):void 0;if(!_||!f||"replace"===t&&!u||"split"===t&&!d){var m=/./[p],v=n(s,p,""[t],function(t,e,n,a,o){return e.exec===r?_&&!o?{done:!0,value:m.call(e,n,a)}:{done:!0,value:t.call(n,e,a)}:{done:!1}}),h=v[0],b=v[1];a(String.prototype,t,h),o(RegExp.prototype,p,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var a=n("d3f4"),o=n("7726").document,i=a(o)&&a(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"23c6":function(t,e,n){var a=n("2d95"),o=n("2b4c")("toStringTag"),i="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?a(e):"Object"==(s=a(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,n){var a=n("25eb");t.exports=function(t){return Object(a(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var a=n("7726"),o=n("32e9"),i=n("69a8"),s=n("ca5a")("src"),l=n("fa5b"),r=(""+l).split("toString");n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:r.join(String(e)))),t===a?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||l.call(this)})},"2b4c":function(t,e,n){var a=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,s="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=a},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var a=n("5ca1"),o=n("d2c8");a(a.P+a.F*n("5147")("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,n){"use strict";var a=n("b8e3"),o=n("63b6"),i=n("9138"),s=n("35e8"),l=n("481b"),r=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(t,e,n,f,m,v,h){r(n,e,f);var b,g,y,w=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",k="values"==m,C=!1,S=t.prototype,j=S[d]||S["@@iterator"]||m&&S[m],$=j||w(m),T=m?k?w("entries"):$:void 0,P="Array"==e&&S.entries||j;if(P&&(y=u(P.call(new t)))!==Object.prototype&&y.next&&(c(y,x,!0),a||"function"==typeof y[d]||s(y,d,_)),k&&j&&"values"!==j.name&&(C=!0,$=function(){return j.call(this)}),a&&!h||!p&&!C&&S[d]||s(S,d,$),l[e]=$,l[x]=_,m)if(b={values:k?$:w("values"),keys:v?$:w("keys"),entries:T},h)for(g in b)g in S||i(S,g,b[g]);else o(o.P+o.F*(p||C),e,b);return b}},"32a6":function(t,e,n){var a=n("241e"),o=n("c3a1");n("ce7e")("keys",function(){return function(t){return o(a(t))}})},"32e9":function(t,e,n){var a=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return a.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var a=n("e53d").document;t.exports=a&&a.documentElement},"335c":function(t,e,n){var a=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var a=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return a.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var a=n("335c"),o=n("25eb");t.exports=function(t){return a(o(t))}},3702:function(t,e,n){var a=n("481b"),o=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||i[o]===t)}},"3a38":function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},"40c3":function(t,e,n){var a=n("6b4c"),o=n("5168")("toStringTag"),i="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?a(e):"Object"==(s=a(e))&&"function"==typeof e.callee?"Arguments":s}},4588:function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},"45f2":function(t,e,n){var a=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&a(t,i,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"469f":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("7d7b")},"481b":function(t,e){t.exports={}},"4aa6":function(t,e,n){t.exports=n("dc62")},"4bf8":function(t,e,n){var a=n("be13");t.exports=function(t){return Object(a(t))}},"4ee1":function(t,e,n){var a=n("5168")("iterator"),o=!1;try{var i=[7][a]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],s=i[a]();s.next=function(){return{done:n=!0}},i[a]=function(){return s},t(i)}catch(t){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var a=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,!"/./"[t](e)}catch(t){}}return!0}},5168:function(t,e,n){var a=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,s="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=a},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var a,o,i=n("0bfb"),s=RegExp.prototype.exec,l=String.prototype.replace,r=s,c=(a=/a/,o=/b*/g,s.call(a,"a"),s.call(o,"a"),0!==a.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(r=function(t){var e,n,a,o,r=this;return u&&(n=new RegExp("^"+r.source+"$(?!\\s)",i.call(r))),c&&(e=r.lastIndex),a=s.call(r,t),c&&a&&(r.lastIndex=r.global?a.index+a[0].length:e),u&&a&&a.length>1&&l.call(a[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)}),a}),t.exports=r},"53e2":function(t,e,n){var a=n("07e3"),o=n("241e"),i=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),a(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"549b":function(t,e,n){"use strict";var a=n("d864"),o=n("63b6"),i=n("241e"),s=n("b0dc"),l=n("3702"),r=n("b447"),c=n("20fd"),u=n("7cd6");o(o.S+o.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,d,p=i(t),_="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,v=void 0!==m,h=0,b=u(p);if(v&&(m=a(m,f>2?arguments[2]:void 0,2)),void 0==b||_==Array&&l(b))for(n=new _(e=r(p.length));e>h;h++)c(n,h,v?m(p[h],h):p[h]);else for(d=b.call(p),n=new _;!(o=d.next()).done;h++)c(n,h,v?s(d,m,[o.value,h],!0):o.value);return n.length=h,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},5537:function(t,e,n){var a=n("8378"),o=n("7726"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var a=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return a[t]||(a[t]=o(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var a=n("36c3"),o=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,s){var l,r=a(e),c=o(r.length),u=i(s,c);if(t&&n!=n){for(;c>u;)if((l=r[u++])!=l)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var a=n("7726"),o=n("8378"),i=n("32e9"),s=n("2aba"),l=n("9b43"),r=function(t,e,n){var c,u,d,p,_=t&r.F,f=t&r.G,m=t&r.S,v=t&r.P,h=t&r.B,b=f?a:m?a[e]||(a[e]={}):(a[e]||{}).prototype,g=f?o:o[e]||(o[e]={}),y=g.prototype||(g.prototype={});for(c in f&&(n=e),n)d=((u=!_&&b&&void 0!==b[c])?b:n)[c],p=h&&u?l(d,a):v&&"function"==typeof d?l(Function.call,d):d,b&&s(b,c,d,t&r.U),g[c]!=d&&i(g,c,p),v&&y[c]!=d&&(y[c]=d)};a.core=o,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},"5d73":function(t,e,n){t.exports=n("469f")},"5f1b":function(t,e,n){"use strict";var a=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"626a":function(t,e,n){var a=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},"63b6":function(t,e,n){var a=n("e53d"),o=n("584a"),i=n("d864"),s=n("35e8"),l=n("07e3"),r=function(t,e,n){var c,u,d,p=t&r.F,_=t&r.G,f=t&r.S,m=t&r.P,v=t&r.B,h=t&r.W,b=_?o:o[e]||(o[e]={}),g=b.prototype,y=_?a:f?a[e]:(a[e]||{}).prototype;for(c in _&&(n=e),n)(u=!p&&y&&void 0!==y[c])&&l(b,c)||(d=u?y[c]:n[c],b[c]=_&&"function"!=typeof y[c]?n[c]:v&&u?i(d,a):h&&y[c]==d?function(t){var e=function(e,n,a){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,a)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?i(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[c]=d,t&r.R&&g&&!g[c]&&s(g,c,d)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},6762:function(t,e,n){"use strict";var a=n("5ca1"),o=n("c366")(!0);a(a.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var a=n("626a"),o=n("be13");t.exports=function(t){return a(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var a=n("d3f4");t.exports=function(t,e){if(!a(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!a(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var a=n("e53d"),o=n("35e8"),i=n("481b"),s=n("5168")("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),r=0;r<l.length;r++){var c=l[r],u=a[c],d=u&&u.prototype;d&&!d[s]&&o(d,s,c),i[c]=i.Array}},"71c1":function(t,e,n){var a=n("3a38"),o=n("25eb");t.exports=function(t){return function(e,n){var i,s,l=String(o(e)),r=a(n),c=l.length;return r<0||r>=c?t?"":void 0:(i=l.charCodeAt(r))<55296||i>56319||r+1===c||(s=l.charCodeAt(r+1))<56320||s>57343?t?l.charAt(r):i:t?l.slice(r,r+2):s-56320+(i-55296<<10)+65536}}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var a=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?o(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7cd6":function(t,e,n){var a=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[a(t)]}},"7d7b":function(t,e,n){var a=n("e4ae"),o=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return a(e.call(t))}},"7e90":function(t,e,n){var a=n("d9f6"),o=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);for(var n,s=i(e),l=s.length,r=0;l>r;)a.f(t,n=s[r++],e[n]);return t}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,n){var a=n("cb7c"),o=n("c69a"),i=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var a=n("a159"),o=n("aebd"),i=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=a(s,{next:o(1,n)}),i(t,e+" Iterator")}},9003:function(t,e,n){var a=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==a(t)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var a=n("c3a1"),o=n("9aa9"),i=n("355d"),s=n("241e"),l=n("335c"),r=Object.assign;t.exports=!r||n("294c")(function(){var t={},e={},n=Symbol(),a="abcdefghijklmnopqrst";return t[n]=7,a.split("").forEach(function(t){e[t]=t}),7!=r({},t)[n]||Object.keys(r({},e)).join("")!=a})?function(t,e){for(var n=s(t),r=arguments.length,c=1,u=o.f,d=i.f;r>c;)for(var p,_=l(arguments[c++]),f=u?a(_).concat(u(_)):a(_),m=f.length,v=0;m>v;)d.call(_,p=f[v++])&&(n[p]=_[p]);return n}:r},9427:function(t,e,n){var a=n("63b6");a(a.S,"Object",{create:n("a159")})},"95d5":function(t,e,n){var a=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(a(e))}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var a=n("d8e8");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,o){return t.call(e,n,a,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var a=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[a]&&n("32e9")(o,a,{}),t.exports=function(t){o[a][t]=!0}},"9def":function(t,e,n){var a=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(a(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var a=n("e4ae"),o=n("7e90"),i=n("1691"),s=n("5559")("IE_PROTO"),l=function(){},r=function(){var t,e=n("1ec9")("iframe"),a=i.length;for(e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),r=t.F;a--;)delete r.prototype[i[a]];return r()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=a(t),n=new l,l.prototype=null,n[s]=t):n=r(),void 0===e?n:o(n,e)}},a352:function(t,e){t.exports=n(218)},a3c3:function(t,e,n){var a=n("63b6");a(a.S+a.F,"Object",{assign:n("9306")})},a481:function(t,e,n){"use strict";var a=n("cb7c"),o=n("4bf8"),i=n("9def"),s=n("4588"),l=n("0390"),r=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,function(t,e,n,f){return[function(a,o){var i=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,i,o):n.call(String(i),a,o)},function(t,e){var o=f(n,t,this,e);if(o.done)return o.value;var d=a(t),p=String(this),_="function"==typeof e;_||(e=String(e));var v=d.global;if(v){var h=d.unicode;d.lastIndex=0}for(var b=[];;){var g=r(d,p);if(null===g)break;if(b.push(g),!v)break;""===String(g[0])&&(d.lastIndex=l(p,i(d.lastIndex),h))}for(var y,w="",x=0,k=0;k<b.length;k++){g=b[k];for(var C=String(g[0]),S=c(u(s(g.index),p.length),0),j=[],$=1;$<g.length;$++)j.push(void 0===(y=g[$])?y:String(y));var T=g.groups;if(_){var P=[C].concat(j,S,p);void 0!==T&&P.push(T);var E=String(e.apply(void 0,P))}else E=m(C,p,S,j,T,e);S>=x&&(w+=p.slice(x,S)+E,x=S+C.length)}return w+p.slice(x)}];function m(t,e,a,i,s,l){var r=a+t.length,c=i.length,u=_;return void 0!==s&&(s=o(s),u=p),n.call(l,u,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,a);case"'":return e.slice(r);case"<":l=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}l=i[u-1]}return void 0===l?"":l})}})},a4bb:function(t,e,n){t.exports=n("8aae")},a745:function(t,e,n){t.exports=n("f410")},aae3:function(t,e,n){var a=n("d3f4"),o=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},b0dc:function(t,e,n){var a=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(a(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&a(i.call(t)),e}}},b447:function(t,e,n){var a=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(a(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var a=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,s){var l,r=a(e),c=o(r.length),u=i(s,c);if(t&&n!=n){for(;c>u;)if((l=r[u++])!=l)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var a=n("8436"),o=n("50ed"),i=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},c3a1:function(t,e,n){var a=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return a(t,o)}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",function(){return d}),n.d(e,"a",function(){return c}),n.d(e,"b",function(){return i}),n.d(e,"d",function(){return u});n("a481");var a=n("4aa6"),o=n.n(a);var i="undefined"!=typeof window?window.console:t.console;var s,l,r=/-(\w)/g,c=(s=function(t){return t.replace(r,function(t,e){return e?e.toUpperCase():""})},l=o()(null),function(t){return l[t]||(l[t]=s(t))});function u(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function d(t,e,n){var a=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,a)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},ca5a:function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},cb7c:function(t,e,n){var a=n("d3f4");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},ce7e:function(t,e,n){var a=n("63b6"),o=n("584a"),i=n("294c");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),a(a.S+a.F*i(function(){n(1)}),"Object",s)}},d2c8:function(t,e,n){var a=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,n){var a=n("79aa");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,o){return t.call(e,n,a,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var a=n("e4ae"),o=n("794b"),i=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var a=n("584a"),o=n("e53d"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(t,e,n){n("9427");var a=n("584a").Object;t.exports=function(t,e){return a.create(t,e)}},e4ae:function(t,e,n){var a=n("f772");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var a=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,l=o(t),r=0,c=[];for(n in l)n!=s&&a(l,n)&&c.push(n);for(;e.length>r;)a(l,n=e[r++])&&(~i(c,n)||c.push(n));return c}},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f559:function(t,e,n){"use strict";var a=n("5ca1"),o=n("9def"),i=n("d2c8"),s="".startsWith;a(a.P+a.F*n("5147")("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),a=String(t);return s?s.call(e,a,n):e.slice(n,n+a.length)===a}})},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var a;(n.r(e),"undefined"!=typeof window)&&((a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]));var o=n("5176"),i=n.n(o),s=(n("f559"),n("a4bb")),l=n.n(s),r=n("a745"),c=n.n(r);var u=n("5d73"),d=n.n(u);function p(t,e){return function(t){if(c()(t))return t}(t)||function(t,e){var n=[],a=!0,o=!1,i=void 0;try{for(var s,l=d()(t);!(a=(s=l.next()).done)&&(n.push(s.value),!e||n.length!==e);a=!0);}catch(t){o=!0,i=t}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n("6762"),n("2fdb");var _=n("774e"),f=n.n(_),m=n("c8bb"),v=n.n(m);function h(t){return function(t){if(c()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(v()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return f()(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var b=n("a352"),g=n.n(b),y=n("c649");function w(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function x(t){return["transition-group","TransitionGroup"].includes(t)}function k(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var C=["Start","Add","Remove","Update","End"],S=["Choose","Unchoose","Sort","Filter","Clone"],j=["Move"].concat(C,S).map(function(t){return"on"+t}),$=null,T={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=p(t,1)[0].componentOptions;return!!e&&x(e.tag)}(e);var n=function(t,e,n){var a=0,o=0,i=k(e,n,"header");i&&(a=i.length,t=t?[].concat(h(i),h(t)):h(i));var s=k(e,n,"footer");return s&&(o=s.length,t=t?[].concat(h(t),h(s)):h(s)),{children:t,headerOffset:a,footerOffset:o}}(e,this.$slots,this.$scopedSlots),a=n.children,o=n.headerOffset,s=n.footerOffset;this.headerOffset=o,this.footerOffset=s;var r=function(t,e){var n=null,a=function(t,e){n=function(t,e,n){return void 0===n?t:((t=t||{})[e]=n,t)}(n,t,e)};if(a("attrs",l()(t).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(e,n){return e[n]=t[n],e},{})),!e)return n;var o=e.on,s=e.props,r=e.attrs;return a("on",o),a("props",s),i()(n.attrs,r),n}(this.$attrs,this.componentData);return t(this.getTag(),r,a)},created:function(){null!==this.list&&null!==this.value&&y.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&y.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&y.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};C.forEach(function(n){e["on"+n]=function(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),w.call(e,t,n)}}.call(t,n)}),S.forEach(function(n){e["on"+n]=w.bind(t,n)});var n=l()(this.$attrs).reduce(function(e,n){return e[Object(y.a)(n)]=t.$attrs[n],e},{}),a=i()({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new g.a(this.rootContainer,a),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(y.a)(e);-1===j.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=function(t,e,n,a){if(!t)return[];var o=t.map(function(t){return t.elm}),i=e.length-a,s=h(e).map(function(t,e){return e>=i?o.length:o.indexOf(t)});return n?s.filter(function(t){return-1!==t}):s}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=function(t,e){return t.map(function(t){return t.elm}).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&x(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)t(this.list);else{var e=h(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,h(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,a=this.getUnderlyingPotencialDraggableComponent(e);if(!a)return{component:a};var o=a.realList,s={list:o,component:a};if(e!==n&&o&&a.getUnderlyingVm){var l=a.getUnderlyingVm(n);if(l)return i()(l,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),$=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(y.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var a={element:e,newIndex:n};this.emitChanges({added:a})}},onDragRemove:function(t){if(Object(y.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(y.d)(t.clone)},onDragUpdate:function(t){Object(y.d)(t.item),Object(y.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var a={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:a})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=h(e.to.children).filter(function(t){return"none"!==t.style.display}),a=n.indexOf(e.related),o=t.component.getVmIndex(a);return-1!==n.indexOf($)||!e.willInsertAfter?o:o+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(t),o=this.context,s=this.computeFutureIndex(a,t);return i()(o,{futureIndex:s}),n(i()({},t,{relatedContext:a,draggedContext:o}),e)},onDragEnd:function(){this.computeIndexes(),$=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var P=T;e.default=P}}).default},,,,,,,,,,,,,,,,,,,,function(t,e,n){var a=n(0)(n(326),n(327),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(339),n(356),!1,function(t){n(337)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(354),n(355),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(359),n(367),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(371),n(372),!1,function(t){n(369)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(373),n(374),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(386),n(387),!1,function(t){n(384)},"data-v-ad6aab96",null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(388),n(389),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(37),o=n(418),i=n(424),s=n(432),l=i(function(t){var e=a(t,s);return e.length&&e[0]===t[0]?o(e):[]});t.exports=l},function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),a.forEach(function(e){o(t,e,n[e])})}return t}function l(t,e){if(null==t)return{};var n,a,o=function(t,e){if(null==t)return{};var n,a,o={},i=Object.keys(t);for(a=0;a<i.length;a++)n=i[a],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"MultiDrag",function(){return ge}),n.d(e,"Sortable",function(){return Rt}),n.d(e,"Swap",function(){return re});function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),_=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),f=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),v={capture:!1,passive:!1};function h(t,e,n){t.addEventListener(e,n,!u&&v)}function b(t,e,n){t.removeEventListener(e,n,!u&&v)}function g(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,n,a){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&g(t,e):g(t,e))||a&&t===n)return t;if(t===n)break}while(t=y(t))}return null}var x,k=/\s+/g;function C(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(k," ")}}function S(t,e,n){var a=t&&t.style;if(a){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in a||-1!==e.indexOf("webkit")||(e="-webkit-"+e),a[e]=n+("string"==typeof n?"":"px")}}function j(t,e){var n="";if("string"==typeof t)n=t;else do{var a=S(t,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return o&&new o(n)}function $(t,e,n){if(t){var a=t.getElementsByTagName(e),o=0,i=a.length;if(n)for(;o<i;o++)n(a[o],o);return a}return[]}function T(){return u?document.documentElement:document.scrollingElement}function P(t,e,n,a,o){if(t.getBoundingClientRect||t===window){var i,s,l,r,c,d,p;if(t!==window&&t!==T()?(s=(i=t.getBoundingClientRect()).top,l=i.left,r=i.bottom,c=i.right,d=i.height,p=i.width):(s=0,l=0,r=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!u))do{if(o&&o.getBoundingClientRect&&("none"!==S(o,"transform")||n&&"static"!==S(o,"position"))){var _=o.getBoundingClientRect();s-=_.top+parseInt(S(o,"border-top-width")),l-=_.left+parseInt(S(o,"border-left-width")),r=s+i.height,c=l+i.width;break}}while(o=o.parentNode);if(a&&t!==window){var f=j(o||t),m=f&&f.a,v=f&&f.d;f&&(r=(s/=v)+(d/=v),c=(l/=m)+(p/=m))}return{top:s,left:l,bottom:r,right:c,width:p,height:d}}}function E(t,e,n){for(var a=F(t,!0),o=P(t)[e];a;){var i=P(a)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return a;if(a===T())break;a=F(a,!1)}return!1}function A(t,e,n){for(var a=0,o=0,i=t.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Rt.ghost&&i[o]!==Rt.dragged&&w(i[o],n.draggable,t,!1)){if(a===e)return i[o];a++}o++}return null}function O(t,e){for(var n=t.lastElementChild;n&&(n===Rt.ghost||"none"===S(n,"display")||e&&!g(n,e));)n=n.previousElementSibling;return n||null}function D(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Rt.clone||e&&!g(t,e)||n++;return n}function N(t){var e=0,n=0,a=T();if(t)do{var o=j(t),i=o.a,s=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*s}while(t!==a&&(t=t.parentNode));return[e,n]}function F(t,e){if(!t||!t.getBoundingClientRect)return T();var n=t,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return T();if(a||e)return n;a=!0}}}while(n=n.parentNode);return T()}function I(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function M(t,e){return function(){if(!x){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),x=setTimeout(function(){x=void 0},e)}}}function L(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function R(t,e){S(t,"position","absolute"),S(t,"top",e.top),S(t,"left",e.left),S(t,"width",e.width),S(t,"height",e.height)}function B(t){S(t,"position",""),S(t,"top",""),S(t,"left",""),S(t,"width",""),S(t,"height","")}var q="Sortable"+(new Date).getTime();function U(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==S(t,"display")&&t!==Rt.ghost){e.push({target:t,rect:P(t)});var n=s({},e[e.length-1].rect);if(t.thisAnimationDuration){var a=j(t,!0);a&&(n.top-=a.f,n.left-=a.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var a in e)if(e.hasOwnProperty(a)&&e[a]===t[n][a])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var a=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,i=0;e.forEach(function(t){var e=0,n=t.target,s=n.fromRect,l=P(n),r=n.prevFromRect,c=n.prevToRect,u=t.rect,d=j(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&I(r,l)&&!I(s,l)&&(u.top-l.top)/(u.left-l.left)==(s.top-l.top)/(s.left-l.left)&&(e=function(t,e,n,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*a.animation}(u,r,c,a.options)),I(l,s)||(n.prevFromRect=s,n.prevToRect=l,e||(e=a.options.animation),a.animate(n,u,l,e)),e&&(o=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),o?t=setTimeout(function(){"function"==typeof n&&n()},i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,a){if(a){S(t,"transition",""),S(t,"transform","");var o=j(this.el),i=o&&o.a,s=o&&o.d,l=(e.left-n.left)/(i||1),r=(e.top-n.top)/(s||1);t.animatingX=!!l,t.animatingY=!!r,S(t,"transform","translate3d("+l+"px,"+r+"px,0)"),function(t){t.offsetWidth}(t),S(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),S(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){S(t,"transition",""),S(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}var V=[],H={initializeByDefault:!0},Y={mount:function(t){for(var e in H)!H.hasOwnProperty(e)||e in t||(t[e]=H[e]);V.push(t)},pluginEvent:function(t,e,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=t+"Global";V.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](s({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](s({sortable:e},n)))})},initializePlugins:function(t,e,n,a){for(var o in V.forEach(function(a){var o=a.pluginName;if(t.options[o]||a.initializeByDefault){var s=new a(t,e,t.options);s.sortable=t,s.options=t.options,t[o]=s,i(n,s.defaults)}}),t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);void 0!==s&&(t.options[o]=s)}},getEventProperties:function(t,e){var n={};return V.forEach(function(a){"function"==typeof a.eventProperties&&i(n,a.eventProperties.call(e[a.pluginName],t))}),n},modifyOption:function(t,e,n){var a;return V.forEach(function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(a=o.optionListeners[e].call(t[o.pluginName],n))}),a}};function W(t){var e=t.sortable,n=t.rootEl,a=t.name,o=t.targetEl,i=t.cloneEl,l=t.toEl,r=t.fromEl,c=t.oldIndex,p=t.newIndex,_=t.oldDraggableIndex,f=t.newDraggableIndex,m=t.originalEvent,v=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[q]){var b,g=e.options,y="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(a,!0,!0):b=new CustomEvent(a,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=r||n,b.item=o||n,b.clone=i,b.oldIndex=c,b.newIndex=p,b.oldDraggableIndex=_,b.newDraggableIndex=f,b.originalEvent=m,b.pullMode=v?v.lastPutMode:void 0;var w=s({},h,Y.getEventProperties(a,e));for(var x in w)b[x]=w[x];n&&n.dispatchEvent(b),g[y]&&g[y].call(e,b)}}var J=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,o=l(n,["evt"]);Y.pluginEvent.bind(Rt)(t,e,s({dragEl:G,parentEl:K,ghostEl:X,rootEl:Z,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:at,dragStarted:vt,putSortable:ct,activeSortable:Rt.active,originalEvent:a,oldIndex:ot,oldDraggableIndex:st,newIndex:it,newDraggableIndex:lt,hideGhostForTarget:It,unhideGhostForTarget:Mt,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(t){Q({sortable:e,name:t,originalEvent:a})}},o))};function Q(t){W(s({putSortable:ct,cloneEl:nt,targetEl:G,rootEl:Z,oldIndex:ot,oldDraggableIndex:st,newIndex:it,newDraggableIndex:lt},t))}var G,K,X,Z,tt,et,nt,at,ot,it,st,lt,rt,ct,ut,dt,pt,_t,ft,mt,vt,ht,bt,gt,yt,wt=!1,xt=!1,kt=[],Ct=!1,St=!1,jt=[],$t=!1,Tt=[],Pt="undefined"!=typeof document,Et=f,At=d||u?"cssFloat":"float",Ot=Pt&&!m&&!f&&"draggable"in document.createElement("div"),Dt=function(){if(Pt){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var n=S(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=A(t,0,e),i=A(t,1,e),s=o&&S(o),l=i&&S(i),r=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&"none"!==s.float){var u="left"===s.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||r>=a&&"none"===n[At]||i&&"none"===n[At]&&r+c>a)?"vertical":"horizontal"},Ft=function(t){function e(t,n){return function(a,o,i,s){var l=a.options.group.name&&o.options.group.name&&a.options.group.name===o.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(a,o,i,s),n)(a,o,i,s);var r=(n?a:o).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var n={},o=t.group;o&&"object"==a(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},It=function(){!Dt&&X&&S(X,"display","none")},Mt=function(){!Dt&&X&&S(X,"display","")};Pt&&document.addEventListener("click",function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1},!0);var Lt=function(t){if(G){t=t.touches?t.touches[0]:t;var e=(o=t.clientX,i=t.clientY,kt.some(function(t){if(!O(t)){var e=P(t),n=t[q].options.emptyInsertThreshold,a=o>=e.left-n&&o<=e.right+n,l=i>=e.top-n&&i<=e.bottom+n;return n&&a&&l?s=t:void 0}}),s);if(e){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[q]._onDragOver(n)}}var o,i,s},zt=function(t){G&&G.parentNode[q]._isOutsideThisEl(t.target)};function Rt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=i({},e),t[q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Rt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in Y.initializePlugins(this,t,n),n)!(a in e)&&(e[a]=n[a]);for(var o in Ft(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),i(this,U())}function Bt(t,e,n,a,o,i,s,l){var r,c,p=t[q],_=p.options.onMove;return!window.CustomEvent||u||d?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=n,r.draggedRect=a,r.related=o||e,r.relatedRect=i||P(e),r.willInsertAfter=l,r.originalEvent=s,t.dispatchEvent(r),_&&(c=_.call(p,r,s)),c}function qt(t){t.draggable=!1}function Ut(){$t=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,a=0;n--;)a+=e.charCodeAt(n);return a.toString(36)}function Ht(t){return setTimeout(t,0)}function Yt(t){return clearTimeout(t)}Rt.prototype={constructor:Rt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ht=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,G):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,a=this.options,o=a.preventOnFilter,i=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(s||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=a.filter;if(function(t){Tt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var a=e[n];a.checked&&Tt.push(a)}}(n),!G&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||a.disabled||r.isContentEditable||(l=w(l,a.draggable,n,!1))&&l.animated||et===l)){if(ot=D(l),st=D(l,a.draggable),"function"==typeof c){if(c.call(this,t,l,this))return Q({sortable:e,rootEl:r,name:"filter",targetEl:l,toEl:n,fromEl:n}),J("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(a){if(a=w(r,a.trim(),n,!1))return Q({sortable:e,rootEl:a,name:"filter",targetEl:l,fromEl:n,toEl:n}),J("filter",e,{evt:t}),!0})))return void(o&&t.cancelable&&t.preventDefault());a.handle&&!w(r,a.handle,n,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,e,n){var a,o=this,i=o.el,s=o.options,l=i.ownerDocument;if(n&&!G&&n.parentNode===i){var r=P(n);if(Z=i,K=(G=n).parentNode,tt=G.nextSibling,et=n,rt=s.group,Rt.dragged=G,ut={target:G,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-r.left,mt=ut.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,G.style["will-change"]="all",a=function(){J("delayEnded",o,{evt:t}),Rt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!p&&o.nativeDraggable&&(G.draggable=!0),o._triggerDragStart(t,e),Q({sortable:o,name:"choose",originalEvent:t}),C(G,s.chosenClass,!0))},s.ignore.split(",").forEach(function(t){$(G,t.trim(),qt)}),h(l,"dragover",Lt),h(l,"mousemove",Lt),h(l,"touchmove",Lt),h(l,"mouseup",o._onDrop),h(l,"touchend",o._onDrop),h(l,"touchcancel",o._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),J("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))a();else{if(Rt.eventCanceled)return void this._onDrop();h(l,"mouseup",o._disableDelayedDrag),h(l,"touchend",o._disableDelayedDrag),h(l,"touchcancel",o._disableDelayedDrag),h(l,"mousemove",o._delayedDragTouchMoveHandler),h(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&h(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&qt(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,e?"touchmove":"mousemove",this._onTouchMove):(h(G,"dragend",this),h(Z,"dragstart",this._onDragStart));try{document.selection?Ht(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,Z&&G){J("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",zt);var n=this.options;!t&&C(G,n.dragClass,!1),C(G,n.ghostClass,!0),Rt.active=this,t&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,It();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(G.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){if(e[q]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Mt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,a=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=X&&j(X),s=X&&i&&i.a,l=X&&i&&i.d,r=Et&&yt&&N(yt),c=(o.clientX-ut.clientX+a.x)/(s||1)+(r?r[0]-jt[0]:0)/(s||1),u=(o.clientY-ut.clientY+a.y)/(l||1)+(r?r[1]-jt[1]:0)/(l||1);if(!Rt.active&&!wt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(X){i?(i.e+=c-(pt||0),i.f+=u-(_t||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");S(X,"webkitTransform",d),S(X,"mozTransform",d),S(X,"msTransform",d),S(X,"transform",d),pt=c,_t=u,dt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!X){var t=this.options.fallbackOnBody?document.body:Z,e=P(G,!0,Et,!0,t),n=this.options;if(Et){for(yt=t;"static"===S(yt,"position")&&"none"===S(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=T()),e.top+=yt.scrollTop,e.left+=yt.scrollLeft):yt=T(),jt=N(yt)}C(X=G.cloneNode(!0),n.ghostClass,!1),C(X,n.fallbackClass,!0),C(X,n.dragClass,!0),S(X,"transition",""),S(X,"transform",""),S(X,"box-sizing","border-box"),S(X,"margin",0),S(X,"top",e.top),S(X,"left",e.left),S(X,"width",e.width),S(X,"height",e.height),S(X,"opacity","0.8"),S(X,"position",Et?"absolute":"fixed"),S(X,"zIndex","100000"),S(X,"pointerEvents","none"),Rt.ghost=X,t.appendChild(X),S(X,"transform-origin",ft/parseInt(X.style.width)*100+"% "+mt/parseInt(X.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,a=t.dataTransfer,o=n.options;J("dragStart",this,{evt:t}),Rt.eventCanceled?this._onDrop():(J("setupClone",this),Rt.eventCanceled||((nt=z(G)).draggable=!1,nt.style["will-change"]="",this._hideClone(),C(nt,this.options.chosenClass,!1),Rt.clone=nt),n.cloneId=Ht(function(){J("clone",n),Rt.eventCanceled||(n.options.removeCloneOnHide||Z.insertBefore(nt,G),n._hideClone(),Q({sortable:n,name:"clone"}))}),!e&&C(G,o.dragClass,!0),e?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,G)),h(document,"drop",n),S(G,"transform","translateZ(0)")),wt=!0,n._dragStartId=Ht(n._dragStarted.bind(n,e,t)),h(document,"selectstart",n),vt=!0,_&&S(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,a,o,i=this.el,l=t.target,r=this.options,c=r.group,u=Rt.active,d=rt===c,p=r.sort,_=ct||u,f=this,m=!1;if(!$t){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=w(l,r.draggable,i,!0),I("dragOver"),Rt.eventCanceled)return m;if(G.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return z(!1);if(xt=!1,u&&!r.disabled&&(d?p||(a=!Z.contains(G)):ct===this||(this.lastPutMode=rt.checkPull(this,u,G,t))&&c.checkPut(this,u,G,t))){if(o="vertical"===this._getDirection(t,l),e=P(G),I("dragOverValid"),Rt.eventCanceled)return m;if(a)return K=Z,M(),this._hideClone(),I("revert"),Rt.eventCanceled||(tt?Z.insertBefore(G,tt):Z.appendChild(G)),z(!0);var v=O(i,r.draggable);if(!v||function(t,e,n){var a=P(O(n.el,n.options.draggable));return e?t.clientX>a.right+10||t.clientX<=a.right&&t.clientY>a.bottom&&t.clientX>=a.left:t.clientX>a.right&&t.clientY>a.top||t.clientX<=a.right&&t.clientY>a.bottom+10}(t,o,this)&&!v.animated){if(v===G)return z(!1);if(v&&i===t.target&&(l=v),l&&(n=P(l)),!1!==Bt(Z,i,G,e,l,n,t,!!l))return M(),i.appendChild(G),K=i,R(),z(!0)}else if(l.parentNode===i){n=P(l);var h,b,g,y=G.parentNode!==i,x=!function(t,e,n){var a=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,s=n?e.left:e.top,l=n?e.right:e.bottom,r=n?e.width:e.height;return a===s||o===l||a+i/2===s+r/2}(G.animated&&G.toRect||e,l.animated&&l.toRect||n,o),k=o?"top":"left",j=E(l,"top","top")||E(G,"top","top"),$=j?j.scrollTop:void 0;if(ht!==l&&(b=n[k],Ct=!1,St=!x&&r.invertSwap||y),0!==(h=function(t,e,n,a,o,i,s,l){var r=a?t.clientY:t.clientX,c=a?n.height:n.width,u=a?n.top:n.left,d=a?n.bottom:n.right,p=!1;if(!s)if(l&&gt<c*o){if(!Ct&&(1===bt?r>u+c*i/2:r<d-c*i/2)&&(Ct=!0),Ct)p=!0;else if(1===bt?r<u+gt:r>d-gt)return-bt}else if(r>u+c*(1-o)/2&&r<d-c*(1-o)/2)return function(t){return D(G)<D(t)?1:-1}(e);if((p=p||s)&&(r<u+c*i/2||r>d-c*i/2))return r>u+c/2?1:-1;return 0}(t,l,n,o,x?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,St,ht===l))){var T=D(G);do{T-=h,g=K.children[T]}while(g&&("none"===S(g,"display")||g===X))}if(0===h||g===l)return z(!1);ht=l,bt=h;var A=l.nextElementSibling,N=!1,F=Bt(Z,i,G,e,l,n,t,N=1===h);if(!1!==F)return 1!==F&&-1!==F||(N=1===F),$t=!0,setTimeout(Ut,30),M(),N&&!A?i.appendChild(G):l.parentNode.insertBefore(G,N?A:l),j&&L(j,0,$-j.scrollTop),K=G.parentNode,void 0===b||St||(gt=Math.abs(b-P(l)[k])),R(),z(!0)}if(i.contains(G))return z(!1)}return!1}function I(r,c){J(r,f,s({evt:t,isOwner:d,axis:o?"vertical":"horizontal",revert:a,dragRect:e,targetRect:n,canSort:p,fromSortable:_,target:l,completed:z,onMove:function(n,a){return Bt(Z,i,G,e,n,P(n),t,a)},changed:R},c))}function M(){I("dragOverAnimationCapture"),f.captureAnimationState(),f!==_&&_.captureAnimationState()}function z(e){return I("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(f),f!==_&&(C(G,ct?ct.options.ghostClass:u.options.ghostClass,!1),C(G,r.ghostClass,!0)),ct!==f&&f!==Rt.active?ct=f:f===Rt.active&&ct&&(ct=null),_===f&&(f._ignoreWhileAnimating=l),f.animateAll(function(){I("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==_&&(_.animateAll(),_._ignoreWhileAnimating=null)),(l===G&&!G.animated||l===i&&!l.animated)&&(ht=null),r.dragoverBubble||t.rootEl||l===document||(G.parentNode[q]._isOutsideThisEl(t.target),!e&&Lt(t)),!r.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function R(){it=D(G),lt=D(G,r.draggable),Q({sortable:f,name:"change",toEl:i,newIndex:it,newDraggableIndex:lt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Lt),b(document,"mousemove",Lt),b(document,"touchmove",Lt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;it=D(G),lt=D(G,n.draggable),J("drop",this,{evt:t}),K=G&&G.parentNode,it=D(G),lt=D(G,n.draggable),Rt.eventCanceled?this._nulling():(wt=!1,St=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yt(this.cloneId),Yt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&S(document.body,"user-select",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Z===K||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),G&&(this.nativeDraggable&&b(G,"dragend",this),qt(G),G.style["will-change"]="",vt&&!wt&&C(G,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(G,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:K,newIndex:null,newDraggableIndex:null,originalEvent:t}),Z!==K?(it>=0&&(Q({rootEl:K,name:"add",toEl:K,fromEl:Z,originalEvent:t}),Q({sortable:this,name:"remove",toEl:K,originalEvent:t}),Q({rootEl:K,name:"sort",toEl:K,fromEl:Z,originalEvent:t}),Q({sortable:this,name:"sort",toEl:K,originalEvent:t})),ct&&ct.save()):it!==ot&&it>=0&&(Q({sortable:this,name:"update",toEl:K,originalEvent:t}),Q({sortable:this,name:"sort",toEl:K,originalEvent:t})),Rt.active&&(null!=it&&-1!==it||(it=ot,lt=st),Q({sortable:this,name:"end",toEl:K,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){J("nulling",this),Z=G=K=X=tt=nt=et=at=ut=dt=vt=it=lt=ot=st=ht=bt=ct=rt=Rt.dragged=Rt.ghost=Rt.clone=Rt.active=null,Tt.forEach(function(t){t.checked=!0}),Tt.length=pt=_t=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":G&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,a=0,o=n.length,i=this.options;a<o;a++)w(t=n[a],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Vt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,a){var o=n.children[a];w(o,this.options.draggable,n,!1)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return w(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var a=Y.modifyOption(this,t,e);n[t]=void 0!==a?a:e,"group"===t&&Ft(n)},destroy:function(){J("destroy",this);var t=this.el;t[q]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),kt.splice(kt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!at){if(J("hideClone",this),Rt.eventCanceled)return;S(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),at=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(at){if(J("showClone",this),Rt.eventCanceled)return;Z.contains(G)&&!this.options.group.revertClone?Z.insertBefore(nt,G):tt?Z.insertBefore(nt,tt):Z.appendChild(nt),this.options.group.revertClone&&this.animate(G,nt),S(nt,"display",""),at=!1}}else this._hideClone()}},Pt&&h(document,"touchmove",function(t){(Rt.active||wt)&&t.cancelable&&t.preventDefault()}),Rt.utils={on:h,off:b,css:S,find:$,is:function(t,e){return!!w(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:M,closest:w,toggleClass:C,clone:z,index:D,nextTick:Ht,cancelNextTick:Yt,detectDirection:Nt,getChild:A},Rt.get=function(t){return t[q]},Rt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Rt.utils=s({},Rt.utils,t.utils)),Y.mount(t)})},Rt.create=function(t,e){return new Rt(t,e)},Rt.version="1.10.1";var Wt,Jt,Qt,Gt,Kt,Xt,Zt=[],te=!1;function ee(){Zt.forEach(function(t){clearInterval(t.pid)}),Zt=[]}function ne(){clearInterval(Xt)}var ae,oe=M(function(t,e,n,a){if(e.scroll){var o,i=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,r=e.scrollSpeed,c=T(),u=!1;Jt!==n&&(Jt=n,ee(),Wt=e.scroll,o=e.scrollFn,!0===Wt&&(Wt=F(n,!0)));var d=0,p=Wt;do{var _=p,f=P(_),m=f.top,v=f.bottom,h=f.left,b=f.right,g=f.width,y=f.height,w=void 0,x=void 0,k=_.scrollWidth,C=_.scrollHeight,j=S(_),$=_.scrollLeft,E=_.scrollTop;_===c?(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY));var A=w&&(Math.abs(b-i)<=l&&$+g<k)-(Math.abs(h-i)<=l&&!!$),O=x&&(Math.abs(v-s)<=l&&E+y<C)-(Math.abs(m-s)<=l&&!!E);if(!Zt[d])for(var D=0;D<=d;D++)Zt[D]||(Zt[D]={});Zt[d].vx==A&&Zt[d].vy==O&&Zt[d].el===_||(Zt[d].el=_,Zt[d].vx=A,Zt[d].vy=O,clearInterval(Zt[d].pid),0==A&&0==O||(u=!0,Zt[d].pid=setInterval(function(){a&&0===this.layer&&Rt.active._onTouchMove(Kt);var e=Zt[this.layer].vy?Zt[this.layer].vy*r:0,n=Zt[this.layer].vx?Zt[this.layer].vx*r:0;"function"==typeof o&&"continue"!==o.call(Rt.dragged.parentNode[q],n,e,t,Kt,Zt[this.layer].el)||L(Zt[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=F(p,!1)));te=u}},30),ie=function(t){var e=t.originalEvent,n=t.putSortable,a=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var r=n||o;s();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),r&&!r.el.contains(u)&&(i("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function se(){}function le(){}function re(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ae=e},dragOverValid:function(t){var e=t.completed,n=t.target,a=t.onMove,o=t.activeSortable,i=t.changed,s=t.cancel;if(o.options.swap){var l=this.sortable.el,r=this.options;if(n&&n!==l){var c=ae;!1!==a(n)?(C(n,r.swapClass,!0),ae=n):ae=null,c&&c!==ae&&C(c,r.swapClass,!1)}i(),e(!0),s()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,a=t.dragEl,o=n||this.sortable,i=this.options;ae&&C(ae,i.swapClass,!1),ae&&(i.swap||n&&n.options.swap)&&a!==ae&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),function(t,e){var n,a,o=t.parentNode,i=e.parentNode;if(!o||!i||o.isEqualNode(e)||i.isEqualNode(t))return;n=D(t),a=D(e),o.isEqualNode(i)&&n<a&&a++;o.insertBefore(e,o.children[n]),i.insertBefore(t,i.children[a])}(a,ae),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){ae=null}},i(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ae}}})}se.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=A(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ie},i(se,{pluginName:"revertOnSpill"}),le.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:ie},i(le,{pluginName:"removeOnSpill"});var ce,ue,de,pe,_e,fe=[],me=[],ve=!1,he=!1,be=!1;function ge(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag)),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var a="";fe.length&&ue===t?fe.forEach(function(t,e){a+=(e?", ":"")+t.textContent}):a=n.textContent,e.setData("Text",a)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~fe.indexOf(de)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var a=0;a<fe.length;a++)me.push(z(fe[a])),me[a].sortableIndex=fe[a].sortableIndex,me[a].draggable=!1,me[a].style["will-change"]="",C(me[a],this.options.selectedClass,!1),fe[a]===de&&C(me[a],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,a=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||fe.length&&ue===e&&(ye(!0,n),a("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,a=t.cancel;this.isMultiDrag&&(ye(!1,n),me.forEach(function(t){S(t,"display","")}),e(),_e=!1,a())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),a=t.cancel;this.isMultiDrag&&(me.forEach(function(t){S(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),_e=!0,a())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),fe.forEach(function(t){t.sortableIndex=D(t)}),fe=fe.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){fe.forEach(function(t){t!==de&&S(t,"position","absolute")});var a=P(de,!1,!0,!0);fe.forEach(function(t){t!==de&&R(t,a)}),he=!0,ve=!0}n.animateAll(function(){he=!1,ve=!1,e.options.animation&&fe.forEach(function(t){B(t)}),e.options.sort&&we()})}},dragOver:function(t){var e=t.target,n=t.completed,a=t.cancel;he&&~fe.indexOf(e)&&(n(!1),a())},revert:function(t){var e=t.fromSortable,n=t.rootEl,a=t.sortable,o=t.dragRect;fe.length>1&&(fe.forEach(function(t){a.addAnimationState({target:t,rect:he?P(t):o}),B(t),t.fromRect=o,e.removeAnimationState(t)}),he=!1,function(t,e){fe.forEach(function(n,a){var o=e.children[n.sortableIndex+(t?Number(a):0)];o?e.insertBefore(n,o):e.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,a=t.insertion,o=t.activeSortable,i=t.parentEl,s=t.putSortable,l=this.options;if(a){if(n&&o._hideClone(),ve=!1,l.animation&&fe.length>1&&(he||!n&&!o.options.sort&&!s)){var r=P(de,!1,!0,!0);fe.forEach(function(t){t!==de&&(R(t,r),i.appendChild(t))}),he=!0}if(!n)if(he||we(),fe.length>1){var c=_e;o._showClone(e),o.options.animation&&!_e&&c&&me.forEach(function(t){o.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null})}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,a=t.activeSortable;if(fe.forEach(function(t){t.thisAnimationDuration=null}),a.options.animation&&!n&&a.multiDrag.isMultiDrag){pe=i({},e);var o=j(de,!0);pe.top-=o.f,pe.left-=o.e}},dragOverAnimationComplete:function(){he&&(he=!1,we())},drop:function(t){var e=t.originalEvent,n=t.rootEl,a=t.parentEl,o=t.sortable,i=t.dispatchSortableEvent,s=t.oldIndex,l=t.putSortable,r=l||this.sortable;if(e){var c=this.options,u=a.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(de,c.selectedClass,!~fe.indexOf(de)),~fe.indexOf(de))fe.splice(fe.indexOf(de),1),ce=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:de,originalEvt:e});else{if(fe.push(de),W({sortable:o,rootEl:n,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&o.el.contains(ce)){var d,p,_=D(ce),f=D(de);if(~_&&~f&&_!==f)for(f>_?(p=_,d=f):(p=f,d=_+1);p<d;p++)~fe.indexOf(u[p])||(C(u[p],c.selectedClass,!0),fe.push(u[p]),W({sortable:o,rootEl:n,name:"select",targetEl:u[p],originalEvt:e}))}else ce=de;ue=r}if(be&&this.isMultiDrag){if((a[q].options.sort||a!==n)&&fe.length>1){var m=P(de),v=D(de,":not(."+this.options.selectedClass+")");if(!ve&&c.animation&&(de.thisAnimationDuration=null),r.captureAnimationState(),!ve&&(c.animation&&(de.fromRect=m,fe.forEach(function(t){if(t.thisAnimationDuration=null,t!==de){var e=he?P(t):m;t.fromRect=e,r.addAnimationState({target:t,rect:e})}})),we(),fe.forEach(function(t){u[v]?a.insertBefore(t,u[v]):a.appendChild(t),v++}),s===D(de))){var h=!1;fe.forEach(function(t){t.sortableIndex===D(t)||(h=!0)}),h&&i("update")}fe.forEach(function(t){B(t)}),r.animateAll()}ue=r}(n===a||l&&"clone"!==l.lastPutMode)&&me.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=be=!1,me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!be&&ue===this.sortable&&!(t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;fe.length;){var e=fe[0];C(e,this.options.selectedClass,!1),fe.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[q];e&&e.options.multiDrag&&!~fe.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),C(t,e.options.selectedClass,!0),fe.push(t))},deselect:function(t){var e=t.parentNode[q],n=fe.indexOf(t);e&&e.options.multiDrag&&~n&&(C(t,e.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return fe.forEach(function(a){var o;e.push({multiDragElement:a,index:a.sortableIndex}),o=he&&a!==de?-1:he?D(a,":not(."+t.options.selectedClass+")"):D(a),n.push({multiDragElement:a,index:o})}),{items:r(fe),clones:[].concat(me),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){me.forEach(function(n,a){var o=e.children[n.sortableIndex+(t?Number(a):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function we(){fe.forEach(function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)})}Rt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):e.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(x),x=void 0},nulling:function(){Kt=Jt=Wt=te=Xt=Qt=Gt=null,Zt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,a=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(a,o);if(Kt=t,e||d||u||_){oe(t,this.options,i,e);var s=F(i,!0);!te||Xt&&a===Qt&&o===Gt||(Xt&&ne(),Xt=setInterval(function(){var i=F(document.elementFromPoint(a,o),!0);i!==s&&(s=i,ee()),oe(t,n.options,i,e)},10),Qt=a,Gt=o)}else{if(!this.options.bubbleScroll||F(i,!0)===T())return void ee();oe(t,this.options,F(i,!1),!1)}}},i(t,{pluginName:"scroll",initializeByDefault:!0})}),Rt.mount(le,se),e.default=Rt},function(t,e,n){var a=n(467)(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});t.exports=a},function(t,e,n){var a=n(0)(n(479),n(480),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(486),n(487),!1,function(t){n(484)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(491),n(492),!1,function(t){n(489)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(500),n(501),!1,function(t){n(498)},null,null);t.exports=a.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(298)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(299),o=n.n(a),i=n(307),s=n(313),l=n(403),r=n(406),c=n(411),u=n(416),d=n(435),p=n(440),_=n(443),f=n(448),m=n(463),v=n(551),h=n(578),b=n(589),g=n(598),y=[{path:"/",component:i,props:!0,children:[{path:"home",name:"home",component:s},{path:"/tools",component:l,children:[{path:"",name:"import_tables",component:r},{path:"default_table_appearance",name:"default_table_appearance",component:u},{path:"permission",name:"permission",component:c},{path:"licensing",name:"licensing",component:d},{path:"global_settings",name:"global_settings",component:p}]},{path:"/help",name:"help",component:b}]},{path:"/tables/:table_id",component:f,props:!0,children:[{path:"",name:"data_items",component:m},{path:"columns",name:"data_columns",component:v},{path:"design_studio",name:"design_studio",component:n(613)},{path:"additional_css",name:"additional_css",component:g},{path:"import-export",name:"import-export",component:h},{path:"table_editing",name:"table_editing",component:n(618)}]},{path:"/charts",component:_,props:!0}],w=n(621),x=n.n(w);window.ninjaTableBus=new window.NINJATABLE.Vue,window.NINJATABLE.Vue.mixin({methods:{$t:function(t){var e=ninja_table_admin.i18n[t];return e||t},setStoreData:function(t,e){window.localStorage&&localStorage.setItem("ninjatable_"+t,e)},getFromStore:function(t,e){if(window.localStorage){var n=localStorage.getItem("ninjatable_"+t);if(n)return n}return e},applyFilters:window.NINJATABLE.applyFilters,addFilter:window.NINJATABLE.addFilter,addAction:window.NINJATABLE.addFilter,doAction:window.NINJATABLE.doAction,$get:window.NINJATABLE.$get,$post:window.NINJATABLE.$post,$getJSON:window.NINJATABLE.$getJSON,clipboard:function(){var t=this;window.clipboard||(window.clipboard=new o.a(".copy"),window.clipboard.on("success",function(e){t.$message({message:"Copied to Clipboard!",type:"success"})}))}},data:function(){return{}},directives:{focus:{inserted:function(t){t.focus()}}},filters:{ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}});var k=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",y),linkActiveClass:"active"});x.a.router=k,window.ninjaApp=new window.NINJATABLE.Vue(x.a).$mount("#data-tables-app")},function(t,e,n){var a,o,i,s;s=function(t,e,n,a){"use strict";var o=l(e),i=l(n),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a.resolveOptions(n),a.listenClick(t),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),c(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,s.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){var e=d("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}();function d(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=u},o=[t,n(300),n(302),n(303)],void 0===(i="function"==typeof(a=s)?a.apply(e,o):a)||(t.exports=i)},function(t,e,n){var a,o,i,s;s=function(t,e){"use strict";var n,a=(n=e)&&n.__esModule?n:{default:n};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},o=[t,n(301)],void 0===(i="function"==typeof(a=s)?a.apply(e,o):a)||(t.exports=i)},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var a=window.getSelection(),o=document.createRange();o.selectNodeContents(t),a.removeAllRanges(),a.addRange(o),e=a.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var a=this;function o(){a.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),a=0,o=n.length;a<o;a++)n[a].fn.apply(n[a].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),a=n[t],o=[];if(a&&e)for(var i=0,s=a.length;i<s;i++)a[i].fn!==e&&a[i].fn._!==e&&o.push(a[i]);return o.length?n[t]=o:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var a=n(304),o=n(305);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!a.string(e))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(a.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}(t,e,n);if(a.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(306);function o(t,e,n,o,i){var s=function(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,s,i),{destroy:function(){t.removeEventListener(n,s,i)}}}t.exports=function(t,e,n,a,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,a,i)}))}},function(t,e){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==n;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){var a=n(0)(n(311),n(312),!1,function(t){n(308)},null,null);t.exports=a.exports},function(t,e,n){var a=n(309);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("2e816551",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-menu.el-menu--horizontal{border-bottom:none}",""])},function(t,e){t.exports=function(t,e){for(var n=[],a={},o=0;o<e.length;o++){var i=e[o],s=i[0],l={id:t+":"+o,css:i[1],media:i[2],sourceMap:i[3]};a[s]?a[s].parts.push(l):n.push(a[s]={id:s,parts:[l]})}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"home",data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[]}},computed:{activeMenu:function(){return-1!=["home","help"].indexOf(this.$route.name)?this.$route.name:"import_tables"}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])}},mounted:function(){this.setTopMenu()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_main_nav"},[n("el-menu",{attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[n("span",{staticClass:"plugin-name"},[t._v("\n "+t._s(t.$t("Ninja Tables"))+" "),t.has_pro?[t._v(t._s(t.$t("Pro")))]:t._e()],2),t._v(" "),t._l(t.topMenus,function(e){return n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[n("i",{class:e.icon_class}),t._v(" "),n("span",[t._v("\n "+t._s(e.title)+"\n ")])])}),t._v(" "),n("el-menu-item",{staticClass:"buy_pro_tab",attrs:{index:"buy-pro"}},[t.has_pro?t._e():n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("\n "+t._s(t.$t("Upgrade To Pro"))+"\n ")])])],2)],1),t._v(" "),n("router-view",{attrs:{"has-pro":t.has_pro}})],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(316),n(402),!1,function(t){n(314)},null,null);t.exports=a.exports},function(t,e,n){var a=n(315);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("00d75314",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"label.form_group.search_action{padding-top:0;margin-bottom:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(317),o=n(322),i=n(329),s=n(392),l=n(397);e.default={name:"all_tables",components:{Welcome:a,"list-all-tables":o,"add-table-modal":i,"lead-modal":s,NinjaReviewDialog:l},props:["hasPro"],data:function(){return{modalVisible:!1,published_tables:parseInt(window.ninja_table_admin.published_tables),searchAction:0,searchString:"",selected:[],review_option:window.ninja_table_admin.show_review_dialog}},methods:{addTableAction:function(t){this.$router.push({name:"data_items",params:{table_id:t}}),this.modalVisible=!1},getData:function(){this.searchAction++},makeSelection:function(t){this.selected=t},handleBulkActions:function(t){"delete"===t&&this.deleteTables()},deleteTables:function(){this.selected.length&&this.$confirm(this.$t("This will permanently delete the selected tables. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){}).catch(function(){})}},mounted:function(){var t=this;window.ninjaTableBus.$on("addedTable",function(){t.published_tables||(window.ninja_table_admin.published_tables=1)})}}},function(t,e,n){var a=n(0)(n(320),n(321),!1,function(t){n(318)},null,null);t.exports=a.exports},function(t,e,n){var a=n(319);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59acd174",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_intro_welcome{max-width:600px;margin:45px auto 0;padding:30px 20px;background:#fff;text-align:center}.ninja_intro_welcome h2{font-size:30px}.ninja_intro_welcome .ninja_actions{margin-bottom:30px}.ninja_intro_welcome .ninja_docs{text-align:left}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_intro_welcome"},[n("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),n("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),n("div",{staticClass:"ninja_actions"},[n("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),n("hr"),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_docs"},[e("h4",[this._v("Ninja Tables Documentation:")]),this._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[this._v("\n Demo and Basic Settings\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[this._v("\n Setting Up a Table\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[this._v("\n Make Your Table Looks Great on All Devices\n ")])])])])}]}},function(t,e,n){var a=n(0)(n(325),n(328),!1,function(t){n(323)},null,null);t.exports=a.exports},function(t,e,n){var a=n(324);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("131f02a6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-tables.el-table td,.ninja-tables.el-table th{padding:5px 0}.ninja-tables.el-table span.row-delete a{color:#a00}.ninja-tables.el-table a{text-decoration:none}.ninja-tables.el-table .description .cell{max-height:60px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(209);e.default={name:"Home",components:{ninja_pagination:a},props:["searchAction","searchString"],watch:{searchAction:function(){this.paginate.current_page=1,this.fetchTables()}},data:function(){return{loading:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:parseInt(this.getFromStore("tables_per_page",20))},hasPro:!!window.ninja_table_admin.hasPro,img_url_path:window.ninja_table_admin.img_url,is_installed:window.ninja_table_admin.isInstalled,orderBy:"date",order:"DESC"}},methods:{fetchTables:function(){var t=this;this.pageLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-all-tables",per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString,orderBy:this.orderBy,order:this.order};this.$get(e).done(function(e){t.items=e.data,t.paginate.total=e.total,t.paginate.current_page=e.current_page,t.paginate.last_page=e.last_page,t.pageLoading=!1,e.total&&t.$emit("total_table",e.total)}).fail(function(t){vueNotification.error("Something went wrong, please try again.")})},goToPage:function(t){this.paginate.current_page=t,this.fetchTables()},handleSizeChange:function(t){this.paginate.per_page=t,this.setStoreData("tables_per_page",t),this.fetchTables()},confirmDeleteTable:function(t){var e=this;this.$confirm("Are you sure, You want to delete this table?","Warning",{confirmButtonText:"Yes, Delete",cancelButtonText:"Cancel",type:"warning"}).then(function(){e.deleteTable(t)}).catch(function(){e.$message({type:"info",message:"Delete canceled"})})},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(n).then(function(t){e.fetchTables(),e.$message({type:"success",message:t.message})}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.$emit("selection",t.map(function(t){return t.ID}))},duplicate:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"duplicate-table",tableId:t};this.$post(n).then(function(t){e.$message({type:"success",message:t.data.message}),e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})}).fail(function(t){alert(t.responseJSON.data.message)})},shouldBeVisible:function(t){return"fluent-form"!=t.dataSourceType||window.ninja_table_admin.hasFluentForm},dataSourceType:function(t){var e=t.dataSourceType||"Default";return"raw_sql"==e?"SQL":e=e.indexOf("google")>-1?"Google SpreadSheet":e},handleTableSort:function(t){this.orderBy=t.prop,this.order="ascending"===t.order?"ASC":"DESC",this.fetchTables()}},mounted:function(){this.fetchTables(),this.clipboard()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"NinjaPagination",props:["paginate"],data:function(){return{pageNumberInput:1}},methods:{goToPage:function(t){t>=1&&t<=this.paginate.last_page?(this.$emit("change_page",t),this.pageNumberInput=t):alert("invalid page number")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tablenav-pages"},[t.paginate.total?n("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),n("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[n("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),n("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pageNumberInput,expression:"pageNumberInput"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",size:"2","aria-describedby":"table-paging"},domProps:{value:t.pageNumberInput},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.goToPage(t.pageNumberInput))},input:function(e){e.target.composing||(t.pageNumberInput=e.target.value)}}}),t._v("\n "+t._s(t.$t("of"))+"\n "),n("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[n("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),n("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.pageLoading,expression:"pageLoading",modifiers:{body:!0}}],staticClass:"ninja-tables compact",staticStyle:{},attrs:{data:t.items,border:"","aria-label":"all-tables"},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleTableSort}},[n("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t.shouldBeVisible(e.row)?[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.post_title)+"\n ")])]:[t._v("\n "+t._s(e.row.post_title)+"\n ")],t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=e.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(e.row.post_status)+")\n ")])],2),t._v(" "),n("div",{staticClass:"row-actions"},[t.shouldBeVisible(e.row)?n("span",{staticClass:"row-edit"},[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-preview"},[n("a",{attrs:{rel:"noopener",href:e.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.duplicate(e.row.ID)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)&&e.row.fluentfrom_url?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:e.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),n("span",{staticClass:"row-delete"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.confirmDeleteTable(e.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(e.row.post_content)}})]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t._v(t._s(t.dataSourceType(e.row)))]),t._v(" "),e.row.remoteURL?[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.remoteURL,placement:"top-start"}},[n("i",{staticClass:"dashicons dashicons-info"})])]:t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+e.row.ID+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(e.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1),t._v(" "),!t.loading&&!t.is_installed&&t.items.length>2&&!t.hasPro?n("div",[n("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[n("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?n("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[n("hr"),t._v(" "),n("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{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"}},[t._v("Upgrade To Pro")])]):t._e()],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(332),n(391),!1,function(t){n(330)},null,null);t.exports=a.exports},function(t,e,n){var a=n(331);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6da5e417",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-add-table .el-main{padding:0 1px 0 15px;min-height:0}.ninja-add-table .el-menu{border-right:initial}.ninja-add-table .el-menu-item .el-icon-fluent-form{height:18px}.ninja-add-table .el-menu-item .dashicons{width:24px;height:18px;margin-right:5px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a),i=n(210),s=n.n(i),l=n(357),r=n.n(l),c=n(213),u=n.n(c),d=n(214),p=n.n(d),_=n(375),f=n.n(_),m=n(380),v=n.n(m),h=n(43),b=n.n(h);e.default={name:"add_table",components:{wp_editor:o.a,"wp-posts-data-source":s.a,"woo-data-source":r.a,"fluent-form-data-source":u.a,"external-data-source":p.a,ImportTable:f.a,RawSqlForm:v.a,PremiumNotice:b.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:""}}},hasPro:{required:!0}},data:function(){return{activeTabName:"default",btnLoading:!1,activated_features:window.ninja_table_admin.activated_features,has_sql_permission:"yes"==window.ninja_table_admin.sql_permission,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},isCollapse:!1,fluentFormIcon:window.ninja_table_admin.fluent_form_icon,wooIcon:window.ninja_table_admin.img_url+"woo-logo.png",has_woo:!!window.ninja_table_admin.has_woocommerce}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),window.ninjaTableBus.$emit("addedTable"),t.table.ID?t.closeModal():t.fireTableCreated(e.table_id)}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")},onEditorChange:function(t){t.editor;var e=t.html;t.text;this.table.post_content=e},fireTableCreated:function(t){this.$emit("table_inserted",t)},checkScreenSize:function(){window.innerWidth<1e3?this.isCollapse=!0:this.isCollapse=!1}},mounted:function(){var t=this;this.checkScreenSize(),jQuery(window).resize(function(){t.checkScreenSize()})}}},function(t,e,n){var a=n(334);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6c745972",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"button.button.ninja_demo_media_button{position:absolute;z-index:9999999999;cursor:pointer}.wp_vue_editor{width:100%;min-height:100px}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{z-index:2;position:absolute;top:0;left:0}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"wp_editor",props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()}},value:{type:String,default:function(){return""}}},data:function(){return{hasWpEditor:!!window.wp.editor,plain_content:this.value,has_pro:!!window.ninja_table_admin.hasPro}},computed:{ninja_editor_id:function(){var t=this.slugify(this.editor_id);return t.match(/^[A-Za-z]+$/)||(t="editor_english_"+Math.floor(1001*Math.random())+"_"+Math.floor(101*Math.random())),"ninja_editor_"+this.slugify(t)}},watch:{plain_content:function(){this.$emit("input",this.plain_content)},value:function(){this.value||this.reloadEditor()}},methods:{initEditor:function(){if(this.hasWpEditor){wp.editor.remove(this.ninja_editor_id);var t=this;wp.editor.initialize(this.ninja_editor_id,{mediaButtons:this.has_pro,mode:"none",tinymce:{toolbar1:"formatselect,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,underline,forecolor,codeformat,removeformat,undo,redo",valid_elements:"*[*]",forced_root_block:"",setup:function(e){e.on("change",function(e,n){t.changeContentEvent()})}},quicktags:!0}),jQuery("#"+this.ninja_editor_id).on("change",function(e){t.changeContentEvent()})}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},reloadEditor:function(){wp.editor.remove(this.ninja_editor_id),jQuery("#"+this.ninja_editor_id).val(""),this.initEditor()},changeContentEvent:function(){var t=wp.editor.getContent(this.ninja_editor_id);this.$emit("input",t)},showPro:function(){window.ninjaTableBus.$emit("show_pro_popup",1)}},mounted:function(){this.initEditor()},beforeDestroy:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():n("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[n("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),n("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:t.plain_content},on:{input:function(e){e.target.composing||(t.plain_content=e.target.value)}}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticStyle:{"font-style":"italic"}},[e("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}]}},function(t,e,n){var a=n(338);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0e957631",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_tables_wpposts .el-checkbox-group{overflow:scroll!important}.ninja_tables_wpposts .el-transfer-panel,.ninja_tables_wpposts .table-rows .el-transfer-panel{width:230px!important}.ninja_tables_wpposts .el-transfer-panel__item{display:block!important}.no-margin{margin:0}.nt_conditions .el-collapse-item.is-active{border:1px solid #ebeef5}.nt_conditions .el-collapse-item.is-active .el-collapse-item__wrap{background:#ebeef5}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(340),o=n.n(a),i=n(345),s=n.n(i),l=n(43),r=n.n(l),c=n(211),u=n.n(c);e.default={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":o.a,PremiumNotice:r.a,UpgradeNotice:u.a,WpPostMetaQuery:s.a},data:function(){return{loading:!1,saving:!1,title:null,tableId:null,postStatuses:[],all_types:[],all_fields:[],post_types:[],selected_post_types:[],post_types_fields:[],selected_post_types_fields:[],conditions_section:"conditions",conditions:[],meta_query:"meta",metas:[],active_step:0,query_extra:{},activated_features:window.ninja_table_admin.activated_features,hasPro:!!window.ninja_table_admin.hasPro,queryable_fields:["ID","post_author","comment_count","post_date","post_modified","post_status"]}},computed:{query_able_post_types_fields:function(){var t=this;return this.post_types_fields.filter(function(e){return-1!=t.queryable_fields.indexOf(e.key)||-1!=e.key.indexOf(".")})}},methods:{nextStep:function(){var t="";if(this.title||(t+=" The title field is required."),this.selected_post_types.length||(t+=" At least select one post type."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1&&(this.active_step=0)},handlePostTypeChange:function(t,e,n){var a=this,o=[];this.selected_post_types.forEach(function(t){a.all_types[t]&&a.all_types[t].fields.forEach(function(t){o.push({key:t,label:t})})}),this.post_types_fields=this.all_fields.concat(o),this._updateSelectedFields()},_updateSelectedFields:function(){var t=this;if(!this.selected_post_types.length)return this.post_types_fields=[],void(this.selected_post_types_fields=[]);this.selected_post_types_fields.filter(function(t){return!!t}).forEach(function(e,n){var a=e.split(".");a.length>1&&-1==t.selected_post_types.indexOf(a[0])&&t.selected_post_types_fields.splice(n,1)})},save:function(){var t=this;this.saving=!0;var e={post_types:this.selected_post_types,columns:this.selected_post_types_fields,where:this.conditions.map(function(t){return Object.assign({},t)}),metas:this.metas.map(function(t){return Object.assign({},t)}),query_extra:!(!this.config||!this.config.table)&&this.config.table.query_extra};_.forEach(e.where,function(t){delete t.selectableOptions}),this.$post({action:"ninja_table_wp-posts_create_table",post_title:this.title,tableId:this.tableId,data:e}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.saving=!1})},getPostTypes:function(){var t=this;this.loading=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_types"}).then(function(e){t.all_types=e.data.post_types,t.postStatuses=e.data.postStatuses,jQuery.each(t.all_types,function(e,n){var a="";"private"===n.status&&(a=" (private)"),t.post_types.push({key:e,label:e+a})}),t.all_fields=e.data.post_fields.map(function(t){return{key:t,label:t}}),t.config&&(t.tableId=t.config.table.ID,t.conditions=t.config.table.whereConditions||[],t.metas=t.config.table.metaQuery||[],t.selected_post_types=t.config.table.post_types,t.selected_post_types_fields=t.config.columns.map(function(t){return t.original_name}),t.handlePostTypeChange())}).fail(function(t){console.log(t)}).always(function(){t.loading=!1})}},mounted:function(){this.getPostTypes()}}},function(t,e,n){var a=n(0)(n(343),n(344),!1,function(t){n(341)},null,null);t.exports=a.exports},function(t,e,n){var a=n(342);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("52b76c46",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}e.default={name:"WPPostConditions",props:["config","fields","conditions","allPostTypes","postStatuses","selected_post_types"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[],common_operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"}],uncommon_operators:[{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"}],other_operators:[{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}],query_limit:0,orderByFields:["ID","post_date","post_author","post_title","post_status","menu_order","comment_count"],authors:[]}},watch:{selected_post_types:function(){this.getPostAuthors()}},methods:{addCondition:function(t){this.conditions.push(a({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e,n){e.operators=[].concat(o(this.common_operators)),"comment_count"==t&&e.operators.map(function(t,n){"!="==t.key&&e.operators.splice(n,1)}),-1!=["ID","comment_count","post_date","post_modified"].indexOf(t)?e.operators=[].concat(o(e.operators.concat(this.other_operators))):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=[].concat(o(this.uncommon_operators))),this.setValueField(t,e,n)},setValueField:function(t,e,n){if("post_status"==t)e.value=n||[],e.is_selectable="true",e.selectableOptions=this.postStatuses;else if("post_author"==t)e.value=n||[],e.is_selectable="true",e.selectableOptions=this.authors.map(function(t){return{key:t.ID,label:t.display_name}});else if(-1!=t.indexOf(".")){e.value=n||[],e.is_selectable="true";var a=[].concat(o(t.split("."))),i=a[0],s=a[1],l=this.allPostTypes[i].taxonomies[s];e.selectableOptions=l.map(function(t){return{key:t.slug,label:t.name}})}else e.value=n||null,e.is_selectable="false",e.selectableOptions=[]},isDateField:function(t){return-1!=["post_date","post_modified"].indexOf(t.field)},isSelectable:function(t){return"true"==t.is_selectable},getPostAuthors:function(){var t=this;return this.$getJSON({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_authors",post_types:this.selected_post_types}).then(function(e){t.authors=e.data.authors})}},mounted:function(){var t=this;this.getPostAuthors().then(function(){_.each(t.conditions,function(e){t.setOperators(e.field,e,e.value)})})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp-post-conditions"},[n("el-row",[n("el-col",{attrs:{md:21}},[n("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,function(e,a){return[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},on:{change:function(n){return t.setOperators(n,e)}},model:{value:e.field,callback:function(n){t.$set(e,"field",n)},expression:"condition.field"}},t._l(t.fields,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1)],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(n){t.$set(e,"operator",n)},expression:"condition.operator"}},t._l(e.operators,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}),1)],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(e)||t.isDateField(e)?!t.isSelectable(e)&&t.isDateField(e)?n("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}}):t.isSelectable(e)?n("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}},t._l(e.selectableOptions,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1):t._e():n("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(a,e)}}})],1)],1)]}),t._v(" "),t.config&&t.config.table.query_extra?n("div",{staticClass:"ninja_post_query_limit"},[n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Query Limit")]),t._v(" "),n("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.config.table.query_extra.query_limit,callback:function(e){t.$set(t.config.table.query_extra,"query_limit",e)},expression:"config.table.query_extra.query_limit"}}),t._v(" "),t._m(0)],1),t._v(" "),n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Column")]),t._v(" "),n("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by_column,callback:function(e){t.$set(t.config.table.query_extra,"order_by_column",e)},expression:"config.table.query_extra.order_by_column"}},t._l(t.orderByFields,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}),1)],1),t._v(" "),n("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Type")]),t._v(" "),n("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by,callback:function(e){t.$set(t.config.table.query_extra,"order_by",e)},expression:"config.table.query_extra.order_by"}},[n("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),n("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}]}},function(t,e,n){var a=n(0)(n(348),n(349),!1,function(t){n(346)},null,null);t.exports=a.exports},function(t,e,n){var a=n(347);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("d5fbe0d6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}.compact{padding:0!important;margin-top:3px!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"WPPostMetaQuery",props:["metas"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"},{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"},{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}]}},methods:{addCondition:function(t){this.metas.push(a({},this.default_condition))},removeCondition:function(t,e){this.metas.splice(t,1)},setOperators:function(t,e){e.operators=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(this.operators)),this.setValueField(t,e)},setValueField:function(t,e){e.value=null,e.is_selectable="false",e.selectableOptions=[]},shouldShowInfo:function(t){return-1!==["IN","NOT IN"].indexOf(t)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp-post-conditions"},[n("el-row",[n("el-col",{attrs:{md:21}},[n("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.metas,function(e,a){return[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:7,sm:7}},[n("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(n){return t.setOperators(n,e)}},model:{value:e.field,callback:function(n){t.$set(e,"field",n)},expression:"condition.field"}})],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(n){t.$set(e,"operator",n)},expression:"condition.operator"}},t._l(e.operators,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}),1)],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(e.operator)?[n("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(a,e)}}})],1)],1)]})],2)},staticRenderFns:[]}},function(t,e,n){var a=n(351);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("17456e14",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".premium-notice .buy_now_button[data-v-06fd6e1a]{text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"PremiumNotice",props:["highlight"]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[n("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?n("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),n("b",[t._v("unlimited customizations")]),t._v(",\n "),n("b",[t._v("data filters")]),t._v(",\n "),n("b",[t._v("professional looks")]),t._v(",\n "),n("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("\n Get Premium Version Now\n ")])])},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"UpgradeNotice"}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[this._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n ")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?n("div",[t.hasPLainLayout?[n("el-row",[n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1),t._v(" "),n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)],1),t._v(" "),t.loading?t._e():n("el-row",[n("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),n("wp-post-conditions",{attrs:{config:t.config,selected_post_types:t.selected_post_types,postStatuses:t.postStatuses,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}})],2)],1),t._v(" "),n("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),n("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),n("el-row",[n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",size:"small",loading:t.saving},on:{click:t.save}},[t._v("Update\n ")])],1)]:t._e(),t._v(" "),t.hasPLainLayout?t._e():[n("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1)])]:t._e(),t._v(" "),1==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)]),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",[n("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?n("wp-post-conditions",{attrs:{postStatuses:t.postStatuses,selected_post_types:t.selected_post_types,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}}):t._e()],1)],1)],1)])]:t._e(),t._v(" "),n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),n("el-col",{attrs:{md:12}},[t.active_step>0?n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",disabled:!t.activated_features.wp_posts_table,loading:t.saving},on:{click:t.save}},[t._v("Save\n ")]):t._e()],1)],1)]],2):[n("upgrade-notice")]:[n("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Displays website content in a searchable, sortable with Ninja Tables. It supports custom posts,\n pages, &\n custom post types. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-posts-table/"}},[this._v("Learn more\n about this module")])])}]}},function(t,e,n){var a=n(0)(n(358),n(368),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(212),o=n.n(a);e.default={name:"woo_product_table",components:{WooNav:o.a},data:function(){return{loading:!1,saving:!1,query_selections:{},post_title:"",query_conditions:{}}},props:{tableCreated:{type:Function}},methods:{save:function(){var t=this;this.post_title?(this.saving=!0,this.$post({action:"ninja_table_woocommerece_create_table",post_title:this.post_title,query_selections:this.query_selections,query_conditions:this.query_conditions}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.saving=!1})):this.$message({showClose:!0,message:"Please Provide a Table Title",type:"error"})}},mounted:function(){}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a);e.default={name:"woo_conditions",props:["query_selections","query_conditions"],data:function(){return{query_terms:[],loading:!1,product_orders:{post_title:"Product Title",date:"Date",menu_order:"Menu Order",average_rating:"Average Rating",price:"price",popularity:"Popularity (Sales)",random:"Random"}}},methods:{getWooSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_table_woocommerece_get_options"}).then(function(e){var n=e.data.query_terms;o()(n,function(e,n){t.query_selections[n]||t.$set(t.query_selections,n,[])}),t.query_terms=n}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.getWooSettings()}}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a&&!1!==e(t[n],n,t););return t}},function(t,e,n){var a=n(362),o=n(365)(a);t.exports=o},function(t,e,n){var a=n(363),o=n(11);t.exports=function(t,e){return t&&a(t,e,o)}},function(t,e,n){var a=n(364)();t.exports=a},function(t,e){t.exports=function(t){return function(e,n,a){for(var o=-1,i=Object(e),s=a(e),l=s.length;l--;){var r=s[t?l:++o];if(!1===n(i[r],r,i))break}return e}}},function(t,e,n){var a=n(22);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!a(n))return t(n,o);for(var i=n.length,s=e?i:-1,l=Object(n);(e?s--:++s<i)&&!1!==o(l[s],s,l););return n}}},function(t,e,n){var a=n(36);t.exports=function(t){return"function"==typeof t?t:a}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,function(e,a){return n("div",{staticClass:"nt_each_selection"},[n("div",{staticClass:"nt_query_header"},[n("h3",[t._v(t._s(e.title))]),t._v(" "),n("p",[t._v(t._s(e.description))])]),t._v(" "),n("div",{staticClass:"nt_query_body"},[n("el-checkbox-group",{model:{value:t.query_selections[a],callback:function(e){t.$set(t.query_selections,a,e)},expression:"query_selections[term_name]"}},t._l(e.terms,function(e){return n("el-checkbox",{key:e.slug,attrs:{label:e.slug}},[t._v(t._s(e.name)+" ("+t._s(e.count)+")\n ")])}),1)],1)])}),t._v(" "),n("div",{staticClass:"nt_each_selection"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.query_conditions.hide_out_of_stock,callback:function(e){t.$set(t.query_conditions,"hide_out_of_stock",e)},expression:"query_conditions.hide_out_of_stock"}},[t._v("\n Hide "),n("b",[t._v("out of stocks")]),t._v(" items\n ")])],1),t._v(" "),n("div",{staticClass:"nt_each_selection"},[n("label",[t._v("\n Initial Order By\n "),n("el-select",{attrs:{size:"mini",placeholder:"Order By"},model:{value:t.query_conditions.order_by,callback:function(e){t.$set(t.query_conditions,"order_by",e)},expression:"query_conditions.order_by"}},t._l(t.product_orders,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1),t._v(" "),n("el-select",{directives:[{name:"show",rawName:"v-show",value:t.query_conditions.order_by&&"random"!=t.query_conditions.order_by,expression:"query_conditions.order_by && query_conditions.order_by != 'random'"}],attrs:{size:"mini",placeholder:"Order By Type"},model:{value:t.query_conditions.order_by_type,callback:function(e){t.$set(t.query_conditions,"order_by_type",e)},expression:"query_conditions.order_by_type"}},[n("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),n("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),n("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:function(e){return t.save()}}},[t._v("\n Create Products Table\n ")])],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nt_module_header"},[e("h3",[this._v("\n Construct Table from Your WooCommerce Products\n ")]),this._v(" "),e("p",{staticClass:"ninja_subtitle"},[this._v("\n Displays products content in a searchable, sortable with Ninja Tables. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/woocommerce-product-table/"}},[this._v("Learn more\n about wocommerece integration")])])])}]}},function(t,e,n){var a=n(370);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("49eaadc7",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"FluentForm",props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object}},data:function(){return{installing:!1,fetching:!1,forms:[],fields:[],btnLoading:!1,post_title:"",form:{id:null,fields:[],entry_status:"all",entry_limit:1e3},hasFluentForm:!!window.ninja_table_admin.hasFluentForm,isFluentFormUpdated:!!window.ninja_table_admin.isFluentFormUpdated}},methods:{fetchForms:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_get-fluentform-forms"}).then(function(e){return t.forms=e.data}).fail(function(t){return console.log(t)}).always(function(){t.fetching=!1})},handleFormSelectionChange:function(t){var e=this;this.$get({form_Id:t,action:"ninja-tables_get-fluentform-fields"}).then(function(t){e.fields=t.data,e.editing&&(e.form.entry_limit=e.config.table.entry_limit,e.form.entry_status=e.config.table.entry_status,e.$nextTick(function(){var t=e.config.columns.map(function(t){return t.original_name});e.fields.filter(function(e){return-1!=t.indexOf(e.name)}).forEach(function(t){e.$refs.rowSelectableTable.toggleRowSelection(t)})}))}).fail(function(t){}).always(function(){})},handleFieldsSelectionChange:function(t){this.form.fields=t},save:function(){var t=this;this.btnLoading=!0,this.config&&this.config.table.current_user_entry_only&&(this.form.current_user_entry_only=this.config.table.current_user_entry_only),this.$post({action:"ninja_tables_save_fluentform_table",post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null}).then(function(e){return t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.btnLoading=!1})},installFluentFrom:function(){var t=this;this.installing=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"install_fluent_form"}).then(function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)}).fail(function(e){t.$message.error(e.responseJSON.message)}).always(function(){t.installing=!1})}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():n("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():n("p",{staticClass:"ninja_subtitle"},[t._v("\n Prepare your table from your existing WP Fluent Forms submissions. It can be used to easily showcase\n your form submissions.\n "),n("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-fluent-form-integration/"}},[t._v("Click\n here to learn more about WP Fluent From Integration")])]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"Select a Form"},on:{change:t.handleFormSelectionChange},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}},t._l(t.forms,function(t){return n("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})}),1)],1),t._v(" "),t.form.id?n("div",{staticClass:"form-group"},[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("strong",[t._v("Options (Optional)")]),t._v(" "),n("hr"),t._v(" "),n("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[n("el-col",{attrs:{md:12}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),n("el-col",{attrs:{md:18}},[n("el-input",{model:{value:t.form.entry_limit,callback:function(e){t.$set(t.form,"entry_limit",e)},expression:"form.entry_limit"}})],1)],1)],1),t._v(" "),n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[n("el-row",[n("el-col",{attrs:{md:6}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),n("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[n("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[n("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),n("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),n("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.config.table.current_user_entry_only,callback:function(e){t.$set(t.config.table,"current_user_entry_only",e)},expression:"config.table.current_user_entry_only"}},[t._v("Show current user submissions only at frontend")])]:t._e()],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{staticStyle:{"margin-top":"12px",float:"right"},attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.save}},[t._v(t._s(t.editing?t.$t("Update"):t.$t("Save"))+"\n ")])],1)]:t.hasFluentForm?[n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("To use this feature your WP Fluent Form need to be updated. Please update WP Fluent From from plugins\n screen")])]),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(0)]:n("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),n("div",[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?n("span",[t._v("Installing WP Fluent From...")]):n("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?n("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(2)])],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[this._v("WP Fluent Form")]),this._v(" is a WordPress\n Contact Form plugin packed with all the premium features you would need to create\n a responsive, customizable, drag and drop form. Using this module, You can easily show your form entries\n in Ninja Tables.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(43),o=n.n(a),i=n(211),s=n.n(i),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"Remote-Data-Source",components:{PremiumNotice:o.a,UpgradeNotice:s.a},props:{columns:{type:Array},type:{type:String,required:!0},tableCreated:{type:Function,required:!0},hasPro:{required:!0},table:{type:Object,default:function(){return{post_title:"",remote_url:"",fields:[],table_id:null}}},editing:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},data:function(){return{fields:[],active_step:0,saving:!1,fetching:!1}},methods:{nextStep:function(){var t="";if(this.table.post_title||(t+=" The title field is required."),this.table.remote_url||(t+=" The url field is required."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1?this.active_step=0:this.fatchRemoteData()},fatchRemoteData:function(){var t=this;this.fetching=!0;var e=l({action:"ninja_table_external_data_source_create"},this.table,{type:this.type,get_headers_only:!0});delete e.custom_css,this.$post(e).then(function(e){var n=[];if(jQuery.each(e.data,function(t){return n.push({name:t})}),t.fields=n,t.editing){var a=t.columns.map(function(t){return t.original_name});t.$nextTick(function(){t.fields.filter(function(t){return-1!=a.indexOf(t.name)}).forEach(function(e){t.$refs.rowSelectableTable.toggleRowSelection(e)})})}}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.fetching=!1})},handleFieldsSelectionChange:function(t){this.table.fields=t},save:function(t){var e=this;this.saving=!0;var n=l({},this.table,{type:this.type,action:"ninja_table_external_data_source_create"});delete n.custom_css,this.$post(n).then(function(t){var n=t.data;return e.tableCreated(n.ID)}).fail(function(t){var n="",a=t.responseJSON.data.message;for(var o in a)n+=" "+a[o];e.$message({showClose:!0,message:n,type:"error"})}).always(function(){return e.saving=!1})}},created:function(){this.editing&&(this.table.table_id=this.table.ID,this.fatchRemoteData())}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.editing?[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:n("div",{staticClass:"ninja_modal-body"},[n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[n("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[n("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.remote_url,expression:"table.remote_url"}],staticClass:"form-control",attrs:{id:"remote_url",type:"text",placeholder:"Enter your source URL",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.remote_url},on:{input:function(e){e.target.composing||t.$set(t.table,"remote_url",e.target.value)}}})])]:[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[n("UpgradeNotice")]:[n("premium-notice")],t._v(" "),n("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"left"},attrs:{type:"primary",size:"small"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),t.active_step>0?n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"small",loading:t.saving,disabled:!t.activated_features.external_data_source},on:{click:t.save}},[t._v(t._s(t.$t("Save"))+"\n ")])],1):t._e()],1)],1),t._v(" "),t.editing?n("div",{staticStyle:{"margin-top":"15px"}},[n("el-input",{attrs:{placeholder:"Remote URL..."},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fatchRemoteData(e)}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[n("el-button",{attrs:{slot:"prepend",loading:t.fetching,size:"small",plain:""},on:{click:t.fatchRemoteData},slot:"prepend"},[t._v(t._s(t.$t("Fetch Columns"))+"\n ")]),t._v(" "),n("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:""},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Whenever your Google Sheets data changes it will be automatically reflected here. You won't have\n to do a thing. Please provide the publishable public URL of your google sheet.\n "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/construct-table-from-google-sheets/"}},[this._v("View\n Documentation Here")])])}]}},function(t,e,n){var a=n(0)(n(378),n(379),!1,function(t){n(376)},"data-v-417a7c88",null);t.exports=a.exports},function(t,e,n){var a=n(377);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5d06b8da",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".hint[data-v-417a7c88]{width:100%;background-color:#f4f4f5;color:#909399;padding:8px 16px}.form_group.ninja_errors[data-v-417a7c88]{background:#ffd7d7;padding:10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ImportTable",data:function(){return{imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",errors:[],btnLoading:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,this.errors=[],"file"===this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),n.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$message({showClose:!0,message:e.message,type:"success"}),e.tableId&&t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.errors=e.responseJSON.data.errors,t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}),t.btnLoading=!1}})}else this.btnLoading=!1}else this.btnLoading=!0}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("Import Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-group"},["file"===t.imports.source?[n("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("br"),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],staticClass:"form-control",attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])}),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])]:t._e(),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"json"===t.imports.format||"ninjaJson"===t.imports.format,expression:"imports.format === 'json' || imports.format === 'ninjaJson'"}],staticClass:"hint"},[t._v("\n Check tutorial for importing Table from JSON file\n\n "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),t.errors.length?n("div",{staticClass:"form_group ninja_errors"},[n("ul",t._l(t.errors,function(e,a){return n("li",{key:a},[t._v("\n "+t._s(e.info)+"\n ")])}),0)]):t._e()])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"hint"},[this._v("\n Check tutorial for importing data from CSV file\n "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])}]}},function(t,e,n){var a=n(0)(n(383),n(390),!1,function(t){n(381)},null,null);t.exports=a.exports},function(t,e,n){var a=n(382);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("2e5dea9c",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(215),o=n.n(a),i=n(43),s=n.n(i),l=n(216),r=n.n(l);e.default={name:"CustomSQLQuery",components:{MySqlEditor:o.a,PremiumNotice:s.a,RemoteSqlConnection:r.a},props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object},activated_features:{type:Object}},data:function(){return{installing:!1,fetching:!1,btnLoading:!1,post_title:"",connection_type:"local",remote_connection:{db_name:"",db_username:"",db_userpassword:"",db_host:"localhost",db_host_port:3306},sql:"",error_html:"",isActivated:this.activated_features.raw_sql_query,hasPro:!!ninja_table_admin.hasPro,has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{save:function(){var t=this;this.btnLoading=!0,this.error_html="",this.$post({action:"ninja_tables_save_raw_sql_table",post_title:this.post_title,sql:this.sql,connection_details:this.remote_connection,connection_type:this.connection_type,table_Id:this.config&&this.config.table.ID||null}).then(function(e){console.log(e),"string"!=typeof e&&e&&e.data&&e.data.table_id?t.tableCreated(e.data.table_id):t.error_html=e}).fail(function(e){if(console.log(e),"string"!=typeof e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)}else t.error_html=res}).always(function(e){return t.btnLoading=!1})}},mounted:function(){}}},function(t,e,n){var a=n(385);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0fa77a67",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor[data-v-ad6aab96]{min-height:180px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ad6aab96]{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"remote_sql_form",props:["connection"],data:function(){return{}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sql_connection_wrapper"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB Name\n "),n("el-input",{attrs:{size:"mini",placeholder:"DB Name"},model:{value:t.connection.db_name,callback:function(e){t.$set(t.connection,"db_name",e)},expression:"connection.db_name"}})],1)]),t._v(" "),n("div",{staticClass:"nt_row_2"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB username\n "),n("el-input",{attrs:{size:"mini",placeholder:"DB User Name"},model:{value:t.connection.db_username,callback:function(e){t.$set(t.connection,"db_username",e)},expression:"connection.db_username"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB User Password\n "),n("el-input",{attrs:{size:"mini",type:"password",placeholder:"DB User Password"},model:{value:t.connection.db_userpassword,callback:function(e){t.$set(t.connection,"db_userpassword",e)},expression:"connection.db_userpassword"}})],1)])]),t._v(" "),n("div",{staticClass:"nt_row_2"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB Host\n "),n("el-input",{attrs:{size:"mini",placeholder:"DB Host"},model:{value:t.connection.db_host,callback:function(e){t.$set(t.connection,"db_host",e)},expression:"connection.db_host"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB Host Port\n "),n("el-input",{attrs:{size:"mini",type:"number",placeholder:"Default: 3306 "},model:{value:t.connection.db_host_port,callback:function(e){t.$set(t.connection,"db_host_port",e)},expression:"connection.db_host_port"}})],1)])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),n("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.sql,callback:function(e){t.sql=e},expression:"sql"}}),t._v(" "),t._m(0)],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),n("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[n("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),n("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),n("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[n("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[n("el-alert",{attrs:{title:"",type:"error",closable:!1}},[n("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles.\n ")])])]:[n("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[this._v("$wpdb->get_results()")]),this._v(" function")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():n("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[n("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[n("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[n("i",{staticClass:"el-icon-setting"}),t._v(" "),n("span",[t._v("Default")])]),t._v(" "),n("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[n("i",{staticClass:"el-icon-upload2"}),t._v(" "),n("span",[t._v("Import Table")])]),t._v(" "),n("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[n("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),n("span",[t._v("Connect Fluent Form")])]),t._v(" "),n("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[n("i",{staticClass:"el-icon-news"}),t._v(" "),n("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?n("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[n("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),n("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),n("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[n("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),n("span",[t._v("Connect Google Sheets")])]),t._v(" "),n("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[n("i",{staticClass:"el-icon-document"}),t._v(" "),n("span",[t._v("Connect External CSV")])]),t._v(" "),n("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[n("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),n("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),n("el-main",["default"==t.activeTabName?[n("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[n("h3",[t._v("Manually Create a Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Manually create your table columns and rows to get complete\n control over your data with tons of customizations.\n ")])],t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)],2),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?n("span",[t._v(t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"import_table"===t.activeTabName?[n("import-table")]:"google_spread_sheet"==t.activeTabName?[n("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[n("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[n("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[n("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?n("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?n("div",[n("p",[t._v("Please update to latest version of "),n("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?n("div",{staticClass:"ninja_no_woo"},[n("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),n("premium-notice",{attrs:{highlight:"WooCommerce Integration module where you can create and build table with Woocomerce produsts and increase your conversion rate"}})],1):t._e()]:"raw_sql"==t.activeTabName?[n("raw-sql-form",{attrs:{has_sql_permission:t.has_sql_permission,tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(395),n(396),!1,function(t){n(393)},null,null);t.exports=a.exports},function(t,e,n){var a=n(394);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("cf67c8a0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{font-size:12px;color:gray;text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_lead",data:function(){return{loading:!1,leadVisible:!!window.ninja_table_admin.show_lead_pop_up,display_name:window.ninja_table_admin.current_user_name,showPermission:!1}},methods:{optin:function(t){var e=this;this.loading=!0,this.$post({action:"ninja_table_lead_optin",status:t}).then(function(t){e.$message({showClose:!0,message:t.data.message,type:"success"})}).fail(function(t){}).always(function(){e.leadVisible=!1,e.loading=!1,"yes"===t&&(window.ninja_table_admin.show_lead_pop_up=!1)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.leadVisible?n("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[n("p",[t._v("Hey "+t._s(t.display_name)+","),n("br"),t._v("\n Never miss an important update - opt in to our security & feature updates notifications. We will never\n spam / share your data, We will only send emails about important updates")]),t._v(" "),n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),n("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),n("div",{staticClass:"ninja_permissions"},[n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.showPermission,expression:"showPermission"}],staticClass:"permissions"},[t._v("\n Name, email, Site URL, Plugins info, ip Address and uninstall event\n ")])])],1)]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(400),n(401),!1,function(t){n(398)},null,null);t.exports=a.exports},function(t,e,n){var a=n(399);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("44160329",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".review_dialog{background:#fff;padding:10px 15px 20px;font-size:16px;position:relative}.review_dialog span.consentDismiss{position:absolute;right:7px;top:2px;z-index:99999;cursor:pointer;color:gray}.review_dialog p{font-size:16px}.review_dialog a{text-decoration:none;cursor:pointer;margin-right:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"review_dialog",methods:{recordActivity:function(t){var e=this;this.$post({action:"ninja_table_review_consent",status:t}).then(function(){}).fail(function(){}).always(function(){e.$emit("hideNotification",!0)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"review_dialog"},[n("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),n("div",{staticClass:"consent_body"},[n("p",[t._v("Thank You for using Ninja Tables Plugin. We are continuously working on it to improve this plugin. If You can spare a minute, Please help us by leaving a five star rating on wordpress.org")]),t._v(" "),n("a",{staticClass:"el-button el-button--success el-button--small",attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/ninja-tables/reviews/#new-post"},on:{click:function(e){return t.recordActivity("yes")}}},[t._v("Happy To Help")]),t._v(" "),n("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){return t.recordActivity("no")}}},[t._v("Hide Notification")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.published_tables?[n("div",{staticClass:"row clearfix"},[n("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),t.review_option?n("ninja-review-dialog",{on:{hideNotification:function(e){t.review_option=!1}}}):t._e(),t._v(" "),n("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData(e)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{size:"small",type:"success"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1)],1)],1),t._v(" "),n("hr"),t._v(" "),n("list-all-tables",{directives:[{name:"show",rawName:"v-show",value:t.published_tables,expression:"published_tables"}],attrs:{searchString:t.searchString,searchAction:t.searchAction},on:{total_table:function(e){t.published_tables=!0},selection:t.makeSelection}})]:n("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),n("el-dialog",{attrs:{"close-on-click-modal":!1,title:t.$t("How would you like to create your table?"),visible:t.modalVisible,top:"50px",width:"75%","append-to-body":!0,"custom-class":"create-table-modal"},on:{"update:visible":function(e){t.modalVisible=e}}},[n("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),n("lead-modal")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(404),n(405),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:!!window.ninja_table_admin.hasPro,menuItems:[]}},computed:{active_menu:function(){return this.$route.name}},methods:{setUpMenuItems:function(){this.menuItems=this.applyFilters("ninja_table_settings_tools",[{route:"import_tables",title:this.$t("Import"),icon_class:"el-icon-upload",status:!0},{route:"default_table_appearance",title:this.$t("Global Appearance"),icon_class:"el-icon-star-off",status:!0},{route:"permission",title:this.$t("Permission"),icon_class:"el-icon-setting",status:!0},{route:"licensing",title:this.$t("License"),icon_class:"ninja-tables-dashicons dashicons dashicons-shield",status:this.has_pro},{route:"global_settings",title:this.$t("Global Settings"),icon_class:"el-icon-menu",status:!0}])}},mounted:function(){this.setUpMenuItems()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,function(e){return e.status?n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[n("i",{class:e.icon_class}),t._v(" "),n("span",[t._v(t._s(e.title))])]):t._e()}),1)],1),t._v(" "),n("el-main",[n("router-view")],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(409),n(410),!1,function(t){n(407)},"data-v-0ccd418e",null);t.exports=a.exports},function(t,e,n){var a=n(408);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("46d36986",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-item[data-v-0ccd418e]{margin:10px 0}.form-item label[data-v-0ccd418e]{width:100px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:window.ninja_table_admin.hasPro,active_menu:"import",activeNames:["1","2"],imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",UltimateTables:"Ultimate Tables",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1,UltimateTables:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),n.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){alert(e.message),t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.btnLoading=!1,alert(e.responseJSON.message)}})}else this.btnLoading=!1}else this.btnLoading=!0},importFromOtherPlugin:function(t){var e=this;this.selectedPlugin=t,this.btnsLoading[t]=!0;var n={action:"ninja_tables_ajax_actions",target_action:"get-tables-from-plugin",plugin:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};jQuery.ajax({url:ajaxurl,data:n,type:"POST",success:function(n){n.tables?e.btnsLoading[t]=!1:e.$message.error("No Table Found"),e.showPluginModal=!0,e.otherPluginTables=n.tables},error:function(n){e.btnsLoading[t]=!1,n.responseJSON?e.$message.error(n.responseJSON.message):e.$message.error("No Table Found")}})},closePluginModal:function(){this.otherPluginTables=[],this.btnsLoading[this.selectedPlugin]=!1,this.showPluginModal=!1,this.selectedPlugin=null},importThisTable:function(t,e){var n=this;this.importing=!0;var a={action:"ninja_tables_ajax_actions",target_action:"import-table-from-plugin",plugin:this.selectedPlugin,tableId:t.ID,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};jQuery.ajax({url:ajaxurl,data:a,type:"POST",success:function(t){n.$message.success(t.data.message),n.importing=!1,n.$set(n.otherPluginTables[e],"ninja_table_id",t.data.tableId)},error:function(t){n.$message.error(t.responseJSON.data.message),n.importing=!1}})}},mounted:function(){var t=this;this.$route.query.active_menu&&(this.active_menu=this.$route.query.active_menu),jQuery(".ninja_table_tools_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_import_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_license_menu").on("click",function(){t.active_menu="license"})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("p",[t._v("\n "+t._s(t.$t("NinjaTables can import tables from existing data, like from a CSV or JSON file. You can also import existing tables from the other WordPress table plugins."))+"\n ")])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),n("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-item"},["file"==t.imports.source?[n("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-item"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])}),0),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),n("div",{staticClass:"form-item"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1)]:t._e(),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"json"==t.imports.format||"ninjaJson"==t.imports.format,expression:"imports.format == 'json' || imports.format == 'ninjaJson'"}],staticClass:"help"},[t._v("\n Check tutorial for importing Table from JSON file "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),n("div",{staticClass:"form-item"},[n("el-button",{attrs:{type:"primary",size:"small",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),n("table",{staticStyle:{"min-width":"400px"}},[n("tbody",t._l(t.otherPlugins,function(e,a){return n("tr",[n("td",[t._v(t._s(e))]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-default btn-sm",on:{click:function(e){return t.importFromOtherPlugin(a)}}},[t.btnsLoading[a]?[t._v("\n "+t._s(t.$t("Processing..."))+"\n "),n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])}),0)])])]),t._v(" "),n("el-dialog",{attrs:{title:"Your current tables",visible:t.showPluginModal},on:{"update:visible":function(e){t.showPluginModal=e},close:function(e){return t.closePluginModal()}}},[t.otherPluginTables.length?[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[n("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_already_imported?n("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(e.row.post_title)+"\n ")]}}],null,!1,2469912787)}),t._v(" "),n("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.importThisTable(e.row,e.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),e.row.ninja_table_id?n("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:e.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}],null,!1,3480308331)})],1),t._v(" "),t.importing?[n("br"),n("br"),t._v(" "),n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n "+t._s(t.$t("Importing the table, please wait a bit ..."))+"\n ")])]:t._e()]:n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n You don't have any tables in your "+t._s(t.selectedPlugin)+" plugin.\n ")])],2)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n Select the intended format and click "),e("strong",[this._v("Import")]),this._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"help"},[this._v("\n Check tutorial for importing data from CSV file "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n To import from other WordPress plugins click the respective "),e("strong",[this._v("Import")]),this._v("\n button.\n ")])}]}},function(t,e,n){var a=n(0)(n(414),n(415),!1,function(t){n(412)},null,null);t.exports=a.exports},function(t,e,n){var a=n(413);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("62afeb6e",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Privacy",data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,sql_permission:"no",capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then(function(e){t.capability=e.capability,t.roles=e.roles,t.sql_permission=e.sql_permission,t.handleCheckedCapabilitiesChange(t.capability)}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability,sql_permission:this.sql_permission};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})})},handleCheckAllChange:function(t){this.capability=t?this.roles.map(function(t){return t.key}):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Permission "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),n("hr"),t._v(" "),t.hasPro?[n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("\n "+t._s(t.$t("Check all"))+"\n ")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}),1)],1),t._v(" "),t.capability&&t.capability.length?n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.sql_permission,callback:function(e){t.sql_permission=e},expression:"sql_permission"}},[t._v("Enable SQL-Module Permission for selected user roles")])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.store}},[t._v("Save")])],1)]:[t._v("\n "+t._s(t.$t("Activate Ninja Tables Pro Add-on plugin to unlock this feature"))+"\n "),n("p",[n("a",{attrs:{target:"_blank",href:t.upgrade}},[t._v("Buy Ninja Tables Pro Add-On")])])]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("By default, Only Administrator have access to manage the tables. By selecting additional roles bellow, You can give access to manage your Tables to other user roles.")])])}]}},function(t,e,n){var a=n(0)(n(417),n(434),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(118),o=n(217),i=n.n(o),s=n(106),l=n.n(s);e.default={name:"Privacy",data:function(){return{fetching:!1,saving:!1,tableLibs:{},default_settings:{}}},computed:{tableColors:function(){return Object(a.a)().footable.colors},table_styles:function(){return Object(a.a)().footable.css_libs},availableStyles:function(){var t=this.table_styles[this.default_settings.css_lib];return!!t&&t.styles}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_default_settings"}).then(function(e){t.default_settings=e.data.default_settings}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this;this.saving=!0;var e=[];l()(this.availableStyles,function(t){e.push(t.key)}),this.default_settings.css_classes=i()(e,this.default_settings.css_classes),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_default_settings",default_settings:this.default_settings}).then(function(e){t.$message.success({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.get()}}},function(t,e,n){var a=n(76),o=n(419),i=n(423),s=n(37),l=n(74),r=n(78),c=Math.min;t.exports=function(t,e,n){for(var u=n?i:o,d=t[0].length,p=t.length,_=p,f=Array(p),m=1/0,v=[];_--;){var h=t[_];_&&e&&(h=s(h,l(e))),m=c(h.length,m),f[_]=!n&&(e||d>=120&&h.length>=120)?new a(_&&h):void 0}h=t[0];var b=-1,g=f[0];t:for(;++b<d&&v.length<m;){var y=h[b],w=e?e(y):y;if(y=n||0!==y?y:0,!(g?r(g,w):u(v,w,n))){for(_=p;--_;){var x=f[_];if(!(x?r(x,w):u(t[_],w,n)))continue t}g&&g.push(w),v.push(y)}}return v}},function(t,e,n){var a=n(420);t.exports=function(t,e){return!(null==t||!t.length)&&a(t,e,0)>-1}},function(t,e,n){var a=n(77),o=n(421),i=n(422);t.exports=function(t,e,n){return e==e?i(t,e,n):a(t,o,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var a=n-1,o=t.length;++a<o;)if(t[a]===e)return a;return-1}},function(t,e){t.exports=function(t,e,n){for(var a=-1,o=null==t?0:t.length;++a<o;)if(n(e,t[a]))return!0;return!1}},function(t,e,n){var a=n(36),o=n(425),i=n(427);t.exports=function(t,e){return i(o(t,e,a),t+"")}},function(t,e,n){var a=n(426),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,l=o(i.length-e,0),r=Array(l);++s<l;)r[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(r),a(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var a=n(428),o=n(431)(a);t.exports=o},function(t,e,n){var a=n(429),o=n(430),i=n(36),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:a(e),writable:!0})}:i;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var a=n(5),o=function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){var n=800,a=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var s=o(),l=a-(s-i);if(i=s,l>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var a=n(433);t.exports=function(t){return a(t)?t:[]}},function(t,e,n){var a=n(22),o=n(7);t.exports=function(t){return o(t)&&a(t)}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),n("hr"),t._v(" "),[n("div",{staticClass:"ninja_block"},[n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}),1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,e.key)>-1:t.default_settings.css_classes},on:{change:function(n){var a=t.default_settings.css_classes,o=n.target,i=!!o.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);o.checked?l<0&&t.$set(t.default_settings,"css_classes",a.concat([s])):l>-1&&t.$set(t.default_settings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.default_settings,"css_classes",i)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_title,expression:"default_settings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.default_settings.show_title)?t._i(t.default_settings.show_title,"1")>-1:t.default_settings.show_title},on:{change:function(e){var n=t.default_settings.show_title,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"show_title",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"show_title",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"show_title",o)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_description,expression:"default_settings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.default_settings.show_description)?t._i(t.default_settings.show_description,"1")>-1:t.default_settings.show_description},on:{change:function(e){var n=t.default_settings.show_description,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"show_description",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"show_description",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"show_description",o)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.enable_search,expression:"default_settings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.default_settings.enable_search)?t._i(t.default_settings.enable_search,"1")>-1:t.default_settings.enable_search},on:{change:function(e){var n=t.default_settings.enable_search,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"enable_search",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"enable_search",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"enable_search",o)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n ")]),t._v(" "),n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.column_sorting,expression:"default_settings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.default_settings.column_sorting)?t._i(t.default_settings.column_sorting,"1")>-1:t.default_settings.column_sorting},on:{change:function(e){var n=t.default_settings.column_sorting,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"column_sorting",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"column_sorting",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"column_sorting",o)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n ")]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.hide_all_borders,expression:"default_settings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.default_settings.hide_all_borders)?t._i(t.default_settings.hide_all_borders,null)>-1:t.default_settings.hide_all_borders},on:{change:function(e){var n=t.default_settings.hide_all_borders,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.default_settings,"hide_all_borders",n.concat([null])):i>-1&&t.$set(t.default_settings,"hide_all_borders",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"hide_all_borders",o)}}}),t._v("\n Hide All Borders\n ")])]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("h3",[t._v("Default Table Color")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_color,expression:"default_settings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.default_settings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.tableColors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Pagination Setting")]),t._v(" "),n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.default_settings.show_all,callback:function(e){t.$set(t.default_settings,"show_all",e)},expression:"default_settings.show_all"}})],1)]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.perPage,expression:"default_settings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.default_settings.show_all||"1"==t.default_settings.show_all},domProps:{value:t.default_settings.perPage},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"perPage",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[n("el-button",{attrs:{loading:t.saving,type:"success",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Appearance Settings")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("\n The following settings will be applied to the newly created tables. Of course, You can customize the\n appearance settings to each table level.\n ")])])}]}},function(t,e,n){var a=n(0)(n(438),n(439),!1,function(t){n(436)},null,null);t.exports=a.exports},function(t,e,n){var a=n(437);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("77aff560",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".license_form{text-align:center;padding:20px 0}.license_form label{font-size:30px;font-weight:400;display:block;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{min-width:400px;height:48px;width:50%;margin-bottom:20px;border-radius:5px;border:1px solid gray;background:#fbfdff;font-size:20px;padding:0 10px}.license_form .error_message{margin-top:40px;padding:10px;background:#ffe491;color:#000;font-weight:700;border-radius:5px}.license_success{text-align:center;padding:40px 0}.license_renew_box{padding:10px;border:2px dashed #ff0;background:#ffee9b}.license_renew_box p{font-size:18px}.license_renew_box a{font-weight:700;text-transform:capitalize;border:1px solid gray;text-decoration:none;padding:5px 15px;background:#0073aa;color:#fff;border-radius:21px}.license_renew_box a:hover{background:#fff;color:#0073aa}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"license",data:function(){return{licenseKey:"",error_message:"",enter_new_license:!1,checkingLicense:!1,doing_ajax:!1,renewLicenseHtml:"",renewHtml:"",is_valid:window.ninja_table_admin.hasValidLicense}},methods:{activateLicense:function(){var t=this;this.licenseKey?(this.doing_ajax=!0,this.error_message="",this.$post({action:"_ninjatables_pro_license_activate_license",_ninjatables_pro_license_key:this.licenseKey}).then(function(e){e.data&&e.data.message?(jQuery(".error_notice_ninjatables_pro_license").remove(),t.is_valid="valid"):t.error_message="Something is wrong when contacting with license server. Please make sure you have curl installed you server",t.doing_ajax=!1}).fail(function(e){e.responseJSON&&e.responseJSON.data?t.error_message=e.responseJSON.data.message:t.error_message="Sorry, Something is wrong! Please make sure you have ninja tables pro installed and curl installed on your server",t.doing_ajax=!1}).always(function(){t.doing_ajax=!1})):this.error_message="Please provide a license key"},deactivateLicense:function(){var t=this;this.doing_ajax=!0,this.error_message="",this.$post({action:"_ninjatables_pro_license_deactivate_license"}).then(function(e){t.is_valid=!1}).fail(function(e){console.log(e),t.error_message=e.responseJSON.data.message,e.responseJSON&&e.responseJSON.data?t.$message.error(e.responseJSON.data.message):t.$message.error("Sorry, Something is wrong! Please try again")}).always(function(){t.doing_ajax=!1})},get_license_info:function(){var t=this;this.checkingLicense=!0,this.error_message="",this.$get({action:"_ninjatables_pro_license_get_license_info"}).then(function(e){t.renewLicenseHtml=e.data.renewHtml,t.is_valid=e.data.status,t.renewHtml=e.data.renewHtml}).fail(function(e){t.error_message=e.responseJSON.data.message}).always(function(){t.checkingLicense=!1})}},mounted:function(){this.get_license_info()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"license"},[n("div",{staticClass:"ninja_header"},["valid"==t.is_valid?n("div",[n("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[n("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):n("div",[n("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?n("div",{staticClass:"license_success"},[n("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"default",size:"mini"},on:{click:function(e){return t.deactivateLicense()}}},[t._v(t._s(t.$t("Deactivate License")))]),t._v(" "),t.renewHtml?n("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[n("div",{staticClass:"checking_license license_renew_box",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),n("p",[t._v("If you already renewed your license then please "),n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),n("p",[t._v("Have a new license key? Please "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){return t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){return t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n You need to activate your Ninja Table Pro by providing the license key bellow. If you don't have a\n license key please "),e("a",{attrs:{href:"https://wpmanageninja.com/checkout/purchase-history/",target:"_blank"}},[this._v("Click\n Here")]),this._v(" to get a license key from your purchase. "),e("br"),this._v("Any questions or problems with your license? "),e("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[this._v("Contact us!")])])}]}},function(t,e,n){var a=n(0)(n(441),n(442),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"GlobalSettings",data:function(){return{loading:!1,ninja_suppress_error:"log_silently"}},methods:{getSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_global_settings"}).then(function(e){t.ninja_suppress_error=e.data.ninja_suppress_error}).fail(function(t){}).always(function(){t.loading=!1})},storeSettings:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"update_global_settings",suppress_error:this.ninja_suppress_error};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})},clearCache:function(){var t=this;this.$post({action:"ninja_tables_ajax_actions",target_action:"clear_tables_cache"}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),n("el-radio-group",{staticClass:"spaced_new_line",model:{value:t.ninja_suppress_error,callback:function(e){t.ninja_suppress_error=e},expression:"ninja_suppress_error"}},[n("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),n("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),n("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),n("div",{staticClass:"ninja_block ninja_heightlight_block"},[n("h3",[t._v("Clear Table Cache")]),t._v(" "),n("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){return t.clearCache()}}},[t._v("Clear Table Cache")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Settings")])])}]}},function(t,e,n){var a=n(0)(n(446),n(447),!1,function(t){n(444)},"data-v-6779a907",null);t.exports=a.exports},function(t,e,n){var a=n(445);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("dd52e676",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_intro_welcome[data-v-6779a907]{max-width:600px;margin:45px auto 0;padding:30px;background:#fff;text-align:center}.ninja_intro_welcome img[data-v-6779a907]{width:100%}.ninja_intro_welcome h2[data-v-6779a907]{font-size:30px}.ninja_intro_welcome .ninja_actions[data-v-6779a907]{margin-top:30px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Charts",data:function(){return{imgUrl:window.ninja_table_admin.img_url,loading:!1}},beforeRouteEnter:function(t,e,n){window.ninja_table_admin.ninja_charts_url?window.location=window.ninja_table_admin.ninja_charts_url:n()},methods:{imageUrl:function(t){return this.imgUrl+t},click:function(){var t=this;this.loading=!0;this.$post({action:"ninja_tables_ajax_actions",target_action:"install-extra-plugins",plugin:"ninja-charts"}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),window.location=e.data.redirect}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.loading=!1})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_intro_welcome"},[n("div",{staticClass:"ninja_charts_promo_banner"},[n("img",{attrs:{src:t.imageUrl("ninja-charts-promo.png"),alt:"Ninja Charts"}})]),t._v(" "),n("h2",[t._v("Welcome to Ninja Charts")]),t._v(" "),n("p",[t._v("Best WP Charts Plugin for WordPress")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"ninja_actions"},[n("el-button",{attrs:{type:"danger",loading:t.loading},on:{click:function(e){return t.click()}}},[t._v("\n Enable Ninja Charts\n ")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_charts_promo"},[e("iframe",{attrs:{width:"600",height:"315",src:"https://www.youtube.com/embed/vIHR3_vNOFM",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}]}},function(t,e,n){var a=n(0)(n(451),n(462),!1,function(t){n(449)},null,null);t.exports=a.exports},function(t,e,n){var a=n(450);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1dc527de",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".settings_header{font-size:20px;padding-bottom:20px;background:#fff;margin-top:-20px;padding-top:20px;margin-right:-20px;margin-left:-20px;padding-left:24px}.settings_header .action{font-size:16px;cursor:pointer}.settings_header .action:hover{color:#0085ba}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(452),o=n.n(a),i=n(26),s=n.n(i),l=n(142),r=n.n(l),c=n(460),u=n.n(c),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"table_home",components:{edit_table:o.a},data:function(){return{table_tabs:[],is_data_saving:!1,is_form_saving:!1,tableId:this.$route.params.table_id,config:null,table:{},doingAjax:!1,doingAjaxTest:!1,user_tab:this.$route.query.user_tab,editTableModalShow:!1,preview_url:"#",has_pro:window.ninja_table_admin.hasPro}},methods:{updateTableColumns:function(t){var e=this;this.doingAjax=!0;var n={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.config.columns};this.$post(n).success(function(n){e.$message({showClose:!0,message:n.message,type:"success"}),t(n)}).fail(function(t){}).always(function(){e.doingAjax=!1})},getSettings:function(){var t=this;this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-table-settings",table_id:this.tableId};this.$getJSON(e).then(function(e){"[object Object]"==Object.prototype.toString.call(e.columns)&&(e.columns=u()(e.columns)),t.config=e,t.table=e.table,t.preview_url=e.preview_url}).fail(function(e){t.$message.error(e.responseJSON.data.message),e.responseJSON.data.route&&t.$router.push({name:e.responseJSON.data.route})}).always(function(){return t.doingAjax=!1})},goToTab:function(t){this.user_tab=t,this.$router.push({name:"custom_tab",params:{table_id:this.tableId},query:{user_tab:t}})},size:r.a,each:s.a,initTableTabs:function(){this.table_tabs=this.applyFilters("ninja_table_table_tabs",[{route:"data_items",title:"Table Rows"},{route:"data_columns",title:"Table Configuration"},{route:"design_studio",title:"Table Design"},{route:"table_editing",title:"Frontend Editing"},{route:"additional_css",title:"Custom CSS/JS"},{route:"import-export",title:"Import - Export"}])}},mounted:function(){var t=this;this.initTableTabs(),this.getSettings(),this.clipboard(),window.ninjaTableBus.$on("initManualSorting",function(e,n,a){var o=d({action:"ninja_tables_init_sortable"},e);t.$post(o).success(function(t){return n(t)}).fail(function(t){return a(t)})}),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}),window.ninjaTableBus.$off("updateTableColumns"),window.ninjaTableBus.$on("updateTableColumns",function(e){t.updateTableColumns(e)}),window.ninjaTableBus.$emit("addedTable")}}},function(t,e,n){var a=n(0)(n(453),n(454),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a);e.default={name:"add_table",components:{wp_editor:o.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:"",table_caption:""}}}},data:function(){return{btnLoading:!1}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,table_caption:this.table.table_caption,tableId:this.table.ID};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.closeModal()}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_table_edit"},[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("el-input",{attrs:{type:"text",size:"small",placeholder:"Enter a title to identify your table"},model:{value:t.table.post_title,callback:function(e){t.$set(t.table,"post_title",e)},expression:"table.post_title"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),n("el-input",{attrs:{size:"small",type:"text",placeholder:"Enter a table caption if you want to show"},model:{value:t.table.table_caption,callback:function(e){t.$set(t.table,"table_caption",e)},expression:"table.table_caption"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{loading:t.btnLoading,type:"primary",size:"small"},on:{click:t.addTable}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(8),o=n(4),i=n(7),s="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&a(t)==s}},function(t,e,n){var a=n(457),o=n(458),i=n(459);t.exports=function(t){return o(t)?i(t):a(t)}},function(t,e,n){var a=n(80)("length");t.exports=a},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+a+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+r+("(?:\\u200d(?:"+[i,s,l].join("|")+")[\\ufe0e\\ufe0f]?"+r+")*"),u="(?:"+[i+a+"?",a,s,l,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+u+c,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},function(t,e,n){var a=n(461),o=n(11);t.exports=function(t){return null==t?[]:a(t,o(t))}},function(t,e,n){var a=n(37);t.exports=function(t,e){return a(e,function(e){return t[e]})}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.doingAjax?n("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),n("div",{staticClass:"settings_header"},[n("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[n("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[n("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),n("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+t.tableId+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),n("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[n("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),n("a",{attrs:{href:t.preview_url,target:"_blank"}},[n("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Buy Pro")))])],1)],1)]),t._v(" "),n("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[n("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,function(e){return n("router-link",{key:e.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:e.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(e.title)+"\n ")])}),1),t._v(" "),t.config?n("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{title:"Update Table Info",visible:t.editTableModalShow,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editTableModalShow=e}}},[t.editTableModalShow?n("edit_table",{attrs:{table:t.table},on:{modal_close:function(e){t.editTableModalShow=!t.editTableModalShow}}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(466),n(550),!1,function(t){n(464)},null,null);t.exports=a.exports},function(t,e,n){var a=n(465);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0a2166c0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-table{margin-top:10px;margin-bottom:10px}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{padding-left:5px;cursor:pointer;opacity:0;display:inline-block}.nt-column-config:hover{color:#58b7ff}.instruction_block{padding:30px 20px;background:#fff}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(218),o=n(53),i=n.n(o),s=n(219),l=n.n(s),r=n(475),c=n.n(r),u=n(209),d=n.n(u),p=n(222),_=n.n(p),f=n(493),m=n.n(f),v=n(223),h=n.n(v),b=n(82),g=n.n(b),y=n(522),w=n.n(y),x=n(527),k=n.n(x),C=n(532),S=n.n(C),j=n(537),$=n.n(j),T=n(542),P=n.n(T),E=n(547),A=n.n(E);e.default={name:"TableDataItems",components:{add_data_modal:c.a,ninja_pagination:d.a,Alert:_.a,DeletePopOver:m.a,SortableUpgradeNotice:h.a,columnsEditor:g.a,FluentFormNav:w.a,ExternalSourceNav:k.a,WPPostsNav:$.a,RawSqlNav:S.a,WooNavEdit:P.a,ShowEditableCell:A.a},props:["config","getColumnSettings","hasPro"],data:function(){return{columnModal:!1,show_meta:!1,new_column:{},has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,isCompact:!0,tableWidth:"100%",tableData:[],searchString:"",doingAjax:!1,addDataModal:!1,tableId:this.$route.params.table_id,loading:!1,syncing:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:20},multipleSelection:[],updateItem:null,editIndex:null,sorting:!1,sortableInstance:null,sortableUpgradeNotice:!1,insertAfterPosition:null,showColumnEditor:!1,currentEditingColumn:!1,addDataModalTitle:"Add Row",dataModalType:"add",dataSource:"default",isUpdatingTableSettings:!1,externalDataSourceUrl:this.config.table.remoteURL,insertAfterId:!1,insertAfterHash:!1}},watch:{searchString:function(){""==this.searchString&&this.getData()},sorting:function(t){if(t){if(!this.has_pro)return this.sorting=!1,void window.ninjaTableBus.$emit("show_pro_popup");if(!this.hasSortable)return this.sorting=!1,void(this.sortableUpgradeNotice=!0)}this.toggleSorting(t)},"new_column.name":function(){this.new_column.key=l()(this.new_column.name)}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},columnLength:function(){return this.columns.length},dataSourceType:function(){var t=this.config;return t&&"dataSourceType"in t.table?t.table.dataSourceType:"default"},isEditable:function(){var t=this.config;return!(t&&"isEditable"in t.table)||t.table.isEditable},isEditableMessage:function(){var t=this.config;return t&&"isEditableMessage"in t.table?t.table.isEditableMessage:null}},methods:{getData:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"get-table-data",table_id:this.tableId,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};return this.loading=!0,this.$get(e).success(function(e){t.items=e.data,t.dataSource=e.data_source,t.paginate.total=parseInt(e.total),t.paginate.last_page=parseInt(e.last_page)}).fail(function(t){}).always(function(){t.loading=!1})},addTableData:function(){},getItemNumber:function(t){return this.paginate.per_page*(this.paginate.current_page-1)+(t+1)},goToPage:function(t){this.paginate.current_page=t,this.getData()},handleSizeChange:function(t){this.paginate.per_page=t,this.getData()},confirmDeleteTable:function(t){confirm(this.$t("Are you sure, You want to delete this table"))&&this.deleteTable(t)},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(n).then(function(t){e.fetchTables(),alert(t.message)}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.multipleSelection=t},handleBulkAction:function(){this.multipleSelection.length&&"delete"==this.bulkAction&&this.handleBulkDelete()},handleBulkDelete:function(){var t=this;this.$confirm(this.$t("This will permanently delete the selected rows. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){var e=t.multipleSelection.map(function(t){return t.id});t.deleteItem(e)}).catch(function(){t.$message({type:"info",message:t.$t("Delete canceled")})})},deleteItem:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-data",table_id:this.tableId,id:t},a=this;this.$post(n).then(function(t){e.$message({showClose:!0,message:t.message,type:"success"}),a.getData()}).fail(function(t){e.$message({showClose:!0,message:e.$t("Something is wrong! Please try again"),type:"error"})})},closeDataModal:function(t){this.addDataModal=!1,this.editIndex=null,this.insertAfterPosition=null,this.dataModalType="add",this.insertAfterId=!1,this.insertAfterHash=!1,t&&this.getData()},updateItemOnTable:function(t){this.items[this.editIndex].values=t.values,this.items[this.editIndex].settings=t.settings,t.created_at&&(this.items[this.editIndex].created_at=t.created_at)},addItemOnTable:function(t,e){e||(e=t.position),"last-first"==e&&(e="new_first"==this.config.settings.default_sorting?"first":"last"),e?"last"==e?this.items.push(t):"first"==e?this.items.unshift(t):!1!==this.insertAfterHash?(this.insertAfterHash++,this.items.splice(this.insertAfterHash,-1,t)):this.items.push(t):this.items.unshift(t),this.insertAfterPosition&&(this.insertAfterPosition=t.position),this.insertAfterId&&(this.insertAfterId=t.id),this.paginate.total++},showUpdateModal:function(t){this.updateItem=t.row,this.editIndex=t.$index,this.addDataModal=!0,this.dataModalType="update",this.addDataModalTitle="Update Row"},addColumn:function(){this.columnModal=!0},validateColumn:function(t){return t.name?t.key?-1===i()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.config.columns.push(this.new_column),this.setNewColumn(),this.columnModal=!1,this.storeSettings())},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",timeFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType&&(t.source_type="custom"),this.new_column=t},initSortable:function(){var t=document.querySelector(".js-sortable-table tbody"),e=this;this.sortableInstance=a.default.create(t,{onEnd:function(t){var n=t.newIndex,a=t.oldIndex,o=e.items[a];e.sortTable(o.id,e.items[n].position);var i=e.items.splice(a,1)[0];e.items.splice(n,0,i)}})},toggleSorting:function(t){var e=this;t?(this.loading=!0,new Promise(function(t,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:e.tableId,page:e.paginate.current_page,per_page:e.paginate.per_page,search:e.searchString,default_sorting:e.config.settings.default_sorting},t,n)}).then(function(t){e.items=t.data,e.paginate.total=parseInt(t.total),e.paginate.last_page=parseInt(t.last_page),e.config.settings.sorting_type="manual_sort",e.initSortable()}).catch(function(t){console.log(t)}).then(function(){e.loading=!1})):this.sortableInstance&&this.sortableInstance.destroy()},sortTable:function(t,e){var n=this;this.loading=!0;var a={action:"ninja_tables_sort_table",table_id:this.tableId,id:t,newPosition:e,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};this.$post(a).then(function(t){n.items=t.data,n.paginate.total=parseInt(t.total),n.paginate.last_page=parseInt(t.last_page)}).fail(function(t){console.log(t)}).always(function(){n.loading=!1})},add:function(){this.updateItem=null,this.insertAfterPosition=null,this.addDataModal=!0,this.dataModalType="add",this.addDataModalTitle="Add Data"},addAfter:function(t){this.hasSortable?(this.updateItem=null,this.addDataModalTitle="Add Data",this.dataModalType="add-after",this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0):this.sortableUpgradeNotice=!0},showColumnConfigModal:function(t){this.currentEditingColumn=this.columns.find(function(e){return e.key===t.key}),this.showColumnEditor=!0},storeSettings:function(){var t=this;window.ninjaTableBus.$emit("updateTableColumns",function(){t.showColumnEditor=!1,t.currentEditingColumn=!1,t.dataSource&&"default"!=t.dataSource&&t.getData()})},duplicateData:function(t){this.updateItem=JSON.parse(JSON.stringify(t.row)),this.updateItem.id=null,this.hasSortable&&(this.insertAfterPosition=t.$index+1),this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0,this.dataModalType="duplicate",this.addDataModalTitle="Duplicate Data"},reloadSettingsAndData:function(){this.getColumnSettings(),this.getData()},deleteColumn:function(){var t=this,e=i()(this.config.columns,this.currentEditingColumn);this.showColumnEditor=!1,this.currentEditingColumn=!1,this.config.columns.splice(e,1),this.$nextTick(function(){return t.storeSettings()})}},mounted:function(){this.getData(),this.tableWidth=jQuery(".wrap").width()+"px",this.setNewColumn()}}},function(t,e,n){var a=n(468),o=n(469),i=n(471),s=RegExp("['’]","g");t.exports=function(t){return function(e){return a(i(o(e).replace(s,"")),t,"")}}},function(t,e){t.exports=function(t,e,n,a){var o=-1,i=null==t?0:t.length;for(a&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var a=n(470),o=n(31),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,a).replace(s,"")}},function(t,e,n){var a=n(81)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=a},function(t,e,n){var a=n(472),o=n(473),i=n(31),s=n(474);t.exports=function(t,e,n){return t=i(t),void 0===(e=n?void 0:e)?o(t)?s(t):a(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+n+"]",o="\\d+",i="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",l="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",d="(?:"+s+"|"+l+")",p="(?:"+u+"|"+l+")",_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+_+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",r,c].join("|")+")[\\ufe0e\\ufe0f]?"+_+")*"),m="(?:"+[i,r,c].join("|")+")"+f,v=RegExp([u+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[a,u,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[a,u+d,"$"].join("|")+")",u+"?"+d+"+(?:['’](?:d|ll|m|re|s|t|ve))?",u+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,m].join("|"),"g");t.exports=function(t){return t.match(v)||[]}},function(t,e,n){var a=n(0)(n(478),n(488),!1,function(t){n(476)},null,null);t.exports=a.exports},function(t,e,n){var a=n(477);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("b43c125e",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".dialog-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.dialog-footer.single-child{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.row_config_container{display:block;padding:10px 15px;background:#d8edfd;position:relative;border-radius:5px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a),i=n(42),s=n.n(i),l=n(220),r=n.n(l),c=n(481),u=n.n(c),d=n(221),p=n.n(d);e.default={name:"add_data",props:["title","show","columns","table_id","item","manualSort","insertAfterPosition","insertAfterId","type"],data:function(){return{row_config:!1,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},btnLoading:!1,continueAdding:!0,newColumn:{},has_pro:!!window.ninja_table_admin.hasPro,position:"last",modal_title:"Add Row",item_settings:{},created_at:"",adding_counter:1}},computed:{editId:function(){return this.item&&this.item.id},shouldNotContinueAdding:function(){return!(!this.editId&&"duplicate"!==this.type)}},watch:{item:function(){this.initNewColumnObj(),this.item||(this.modal_title="Add Row")}},methods:{addData:function(){var t=this,e=!1;if(o()(this.newColumn,function(t){t&&(e=!0)}),e){this.btnLoading=!0;var n={action:"ninja_tables_ajax_actions",target_action:"store-table-data",table_id:this.table_id,row:this.newColumn,id:this.editId,created_at:this.created_at,settings:this.item_settings,position:this.position};this.insertAfterId&&(n.insert_after_id=this.insertAfterId,n.position=parseInt(this.insertAfterPosition)+1),this.$post(n).then(function(e){if(e.item){if(t.$message({showClose:!0,message:e.message,type:"success"}),t.initNewColumnObj(),t.editId)t.$emit("updateItem",e.item);else{var a=n.position;t.manualSort||t.insertAfterId||(a="last-first"),t.$emit("createItem",e.item,a)}!t.editId&&t.continueAdding||t.$emit("modal_close"),"duplicate"===t.type&&t.$emit("modal_close"),t.adding_counter++}else t.$message({showClose:!0,message:"Failed to add/update data. Please reload this page and try again",type:"error"})}).fail(function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}).always(function(){t.btnLoading=!1})}else this.$message({showClose:!0,message:"Please add at least 1 value to the row",type:"error"})},closeModal:function(){this.$emit("modal_close")},initNewColumnObj:function(){var t=this,e={};o()(this.columns,function(n){t.item&&t.item.values[n.key]?e[n.key]=t.item.values[n.key]:"selection"==n.data_type&&"yes"==n.isMultiple?e[n.key]=[]:e[n.key]=""}),this.newColumn=e,this.initItemSettings()},initItemSettings:function(){var t=this;this.item&&this.item.settings&&(this.item_settings=this.item.settings),this.item_settings.cell||this.$set(this.item_settings,"cell",{}),o()(this.columns,function(e){t.item_settings.cell[e.key]||t.$set(t.item_settings.cell,e.key,{})}),this.item&&(this.created_at=this.item.created_at)},onEditorChange:function(t,e){e.editor;var n=e.html;e.text;this.newColumn[t]=n},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){this.initNewColumnObj()},components:{wp_editor:s.a,NinjaDatePicker:p.a,mayBeSelect:r.a,ImageSelector:u.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"maybe_multi_select",props:["newColumn","column","size"],data:function(){return{appReady:!1}},methods:{getFromSelectionStr:function(t){return t?t.split(/\r?\n/):[]},maybeBlur:function(t){console.log(t),t||this.$emit("blur")}},mounted:function(){if("yes"==this.column.isMultiple){var t=this.newColumn[this.column.key];t?"string"==typeof t&&(this.newColumn[this.column.key]=[t]):this.newColumn[this.column.key]=[]}this.appReady=!0}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.appReady?n("div",{staticClass:"maybe_nt_multi_select",staticStyle:{"max-width":"90%"}},["yes"==t.column.isMultiple?[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","allow-create":"",size:t.size,"default-first-option":"",placeholder:t.column.placeholder||"Select"},on:{"remove-tag":function(e){return t.$emit("blur")},change:function(e){return t.$emit("blur")}},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}),1)]:[n("el-select",{staticStyle:{width:"100%"},attrs:{size:t.size,filterable:"","allow-create":"","default-first-option":"",placeholder:t.column.placeholder||"Select"},on:{change:function(e){return t.$emit("blur")}},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}),1)]],2):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(482),n(483),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a);e.default={name:"maybe_multi_select",props:["newColumn","column","adding_counter"],data:function(){return{appReady:!1,upload_action:"",data:{},preferedThum:window.ninja_table_admin.prefered_thumb}},watch:{adding_counter:function(){console.log(this.adding_counter);this.newColumn[this.column.key]={permalink:"",image_thumb:"",image_full:""},this.data=this.newColumn[this.column.key]}},methods:{beforeAvatarUpload:function(t){return"image/jpg"==t.type||"image/gif"==t.type||"image/png"==t.type||(this.$message.error("Image need to be jpg/png/gif format"),!1)},handleAvatarSuccess:function(t,e){console.log(t)},initUploader:function(t){var e=this,n=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(t,a){console.log(a),e.newColumn[e.column.key].alt_text=a.alt||a.title,e.newColumn[e.column.key].image_full=a.url,e.newColumn[e.column.key].image_thumb=e.getThumb(a),wp.media.editor.send.attachment=n},wp.media.editor.open(),!1},initFileUploader:function(t){var e=this,n=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(t,a){e.newColumn[e.column.key].permalink=a.url,wp.media.editor.send.attachment=n},wp.media.editor.open(),!1},getThumb:function(t){var e=this,n=t.width,a=t.url,i=!1;return"original"==this.preferedThum?t.url:(o()(t.sizes,function(t,o){o==e.preferedThum&&(i=t.url),(!i||t.width>300)&&(t.width<400?i=t.url:t.width<n&&(n=t.width,a=t.url))}),i||a)},preinitUploader:function(){var t=this.newColumn[this.column.key],e={permalink:"",image_thumb:"",image_full:""};t?"string"==typeof t&&(this.newColumn[this.column.key]=e):this.newColumn[this.column.key]=e,this.data=this.newColumn[this.column.key]},remove:function(){this.data.image_thumb=""}},mounted:function(){this.preinitUploader(),this.appReady=!0}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.appReady?n("div",{staticClass:"image_selector"},["hyperlinked"==t.column.link_type||"none"==t.column.link_type||"image_light_box"==t.column.link_type||"iframe_ligtbox"==t.column.link_type?[n("div",{staticClass:"nt_form_group"},[n("label",[t._v("Upload Image")]),t._v(" "),n("div",{staticClass:"nt_form_input"},[t.data.image_thumb?n("div",{staticClass:"image_preview"},[n("img",{attrs:{src:t.data.image_thumb}})]):t._e(),t._v(" "),n("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"info"},on:{click:t.initUploader}},[t.data.image_thumb?n("span",[t._v("Change Image")]):n("span",[t._v("Upload Image")])]),t._v(" "),t.data.image_thumb?n("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"warning"},on:{click:t.remove}},[t._v("\n Remove Image\n ")]):t._e()],1)]),t._v(" "),"hyperlinked"==t.column.link_type||"iframe_ligtbox"==t.column.link_type?n("div",{staticClass:"nt_form_group"},["iframe_ligtbox"==t.column.link_type?n("label",[t._v("Iframe URL (Only The URL)")]):n("label",[t._v("Target URL")]),t._v(" "),n("div",{staticClass:"nt_form_input"},[n("el-input",{attrs:{type:"url",size:"mini",placeholder:"Permalink"},model:{value:t.data.permalink,callback:function(e){t.$set(t.data,"permalink",e)},expression:"data.permalink"}})],1)]):t._e()]:t._e()],2):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(485);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("13ef6dde",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_date_picker>.form-control{width:90%;float:left}.ninja_date_picker>.el-date-editor{width:8px!important;padding:0;margin:0;cursor:pointer}.ninja_date_picker>.el-date-editor .el-input__inner{width:10px!important;padding:15px;background:gray;height:34px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninjaDatePicker",props:["column","new_column","only_picker"],computed:{elementFormat:function(){var t=this.column.dateFormat,e="h:m:s",n="";return n="DD-MMM-YY"==t?"dd-MMM-yy":t.replace(/Y/g,"y").replace(/D/g,"d"),"date"===this.type?n:(this.column.timeFormat&&(e=this.column.timeFormat),n+" "+e)},type:function(){return"yes"===this.column.showTime?"datetime":"date"}},methods:{slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"yes"==t.only_picker?"ninja_only_picker":"ninja_date_picker"},["yes"!=t.only_picker?n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_column[t.column.key],expression:"new_column[column.key]"}],staticClass:"form-control",attrs:{placeholder:t.column.dateFormat,type:"text",size:"small",id:t.slugify(t.column.key)},domProps:{value:t.new_column[t.column.key]},on:{input:function(e){e.target.composing||t.$set(t.new_column,t.column.key,e.target.value)}}}):t._e(),t._v(" "),n("el-date-picker",{attrs:{type:t.type,size:"small","value-format":t.elementFormat,format:t.elementFormat,placeholder:"Pick a day"},on:{blur:function(e){return t.$emit("blur")}},model:{value:t.new_column[t.column.key],callback:function(e){t.$set(t.new_column,t.column.key,e)},expression:"new_column[column.key]"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.title,visible:t.show,top:"50px","close-on-click-modal":!1,"append-to-body":!0},on:{"update:visible":function(e){t.show=e},close:t.closeModal}},[t.show?n("div",[t._l(t.columns,function(e){return n("div",{key:e.key,staticClass:"form-group"},[n("label",{attrs:{for:t.slugify(e.key)}},[t._v(t._s(e.name||e.key))]),t._v(" "),"textarea"==e.data_type?n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})]):"html"==e.data_type?n("div",[n("wp_editor",{attrs:{editor_id:t.slugify(e.key)},model:{value:t.newColumn[e.key],callback:function(n){t.$set(t.newColumn,e.key,n)},expression:"newColumn[column.key]"}})],1):"date"==e.data_type?n("div",[n("ninja-date-picker",{attrs:{column:e,new_column:t.newColumn}})],1):"selection"==e.data_type?n("div",[n("may-be-select",{attrs:{column:e,newColumn:t.newColumn}})],1):"image"==e.data_type&&t.has_pro?n("div",[n("image-selector",{attrs:{adding_counter:t.adding_counter,column:e,newColumn:t.newColumn}})],1):"button"==e.data_type&&t.has_pro?n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:"Valid button URL",type:"url",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}}),t._v(" "),n("small",[t._v("Please provide valid URL")])]):n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})])])}),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():n("div",[t._v("\n Add at\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"5px"},attrs:{type:"radio",value:"last"},domProps:{checked:t._q(t.position,"last")},on:{change:function(e){t.position="last"}}}),t._v("Last\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"10px"},attrs:{type:"radio",value:"first"},domProps:{checked:t._q(t.position,"first")},on:{change:function(e){t.position="first"}}}),t._v("First\n ")])],2):t._e(),t._v(" "),t.row_config?n("div",{staticClass:"row_config_container"},[t.has_pro?[n("h3",[t._v("Row Settings")]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.row_bg,callback:function(e){t.$set(t.item_settings,"row_bg",e)},expression:"item_settings.row_bg"}})],1),t._v(" "),n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.text_color,callback:function(e){t.$set(t.item_settings,"text_color",e)},expression:"item_settings.text_color"}})],1)]),t._v(" "),n("h3",[t._v("Cell Color Customization")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column")]),t._v(" "),n("th",[t._v("Background Color")]),t._v(" "),n("th",[t._v("Text Color")])])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key]["background-color"],callback:function(n){t.$set(t.item_settings.cell[e.key],"background-color",n)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key].color,callback:function(n){t.$set(t.item_settings.cell[e.key],"color",n)},expression:"item_settings.cell[column.key]['color']"}})],1)])}),0)]),t._v(" "),t.insertAfterPosition?t._e():n("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v("\n Data Create Date\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you use table sorting by create date then you can change create date to sort your data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"Select date and time"},model:{value:t.created_at,callback:function(e){t.created_at=e},expression:"created_at"}})],1)]:[n("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),n("p",[t._v("Using this module, You can set cell and row level colors of your data, It's a pro feature, Please\n purchase pro to unlock this feature")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger el-button--mini",attrs:{type:"button"}},[n("span",[t._v("Buy Pro")])])])]],2):t._e(),t._v(" "),n("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[n("div",[n("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.continueAdding,expression:"continueAdding"}],attrs:{type:"checkbox",id:"adding_more"},domProps:{checked:Array.isArray(t.continueAdding)?t._i(t.continueAdding,null)>-1:t.continueAdding},on:{change:function(e){var n=t.continueAdding,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.continueAdding=n.concat([null])):i>-1&&(t.continueAdding=n.slice(0,i).concat(n.slice(i+1)))}else t.continueAdding=o}}}),t._v(" Continue Adding\n ")])])],t._v(" "),n("div",{staticClass:"dialog-footer-item"},[n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){t.row_config=!t.row_config}}},[n("i",{staticClass:"el-icon-setting"})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],attrs:{disabled:t.btnLoading,type:"primary",size:"small"},on:{click:t.addData}},[t.editId?n("span",[t._v(" "+t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])},staticRenderFns:[]}},function(t,e,n){var a=n(490);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("013f4f15",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}}},function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"alert",class:"alert-"+this.alertClass},[this._t("default")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(496),n(497),!1,function(t){n(494)},"data-v-590fa148",null);t.exports=a.exports},function(t,e,n){var a=n(495);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("084af8d0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".remove[data-v-590fa148]{display:inline-block}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"remove"},[n("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:t.proceedConfirmation}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1)]),t._v(" "),t.label?n("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):n("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[n("span",{staticClass:"dashicons dashicons-trash"})])],1)},staticRenderFns:[]}},function(t,e,n){var a=n(499);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("34d0fce7",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"SortableUpgradeNotice",props:["show"],data:function(){return{upgradeGuide:window.ninja_table_admin.upgradeGuide}},computed:{visible:{get:function(){return this.show},set:function(){this.close()}}},methods:{close:function(){this.$emit("close")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n ")]),t._v(" "),n("span",[t._v("\n "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("span",[n("a",{attrs:{href:t.upgradeGuide,target:"_blank"}},[t._v(t._s(t.$t("Click here")))]),t._v(" "+t._s(t.$t("to view the upgrade guide."))+"\n ")])])},staticRenderFns:[]}},function(t,e,n){var a=n(503);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("161b6e1f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-wrapper{padding:10px}.form-wrapper label{display:initial;max-width:none;margin-bottom:0}.form-wrapper .el-form-item{margin-bottom:15px}.form-wrapper .more-settings:hover{cursor:pointer}.form-wrapper .more-settings i{font-size:1.5em}.form-wrapper .form_group{margin-top:10px}.form-wrapper .basic_settings .el-select{min-width:400px;max-width:100%}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a),i=n(505),s=n.n(i),l=n(512),r=n.n(l),c=n(515),u=n.n(c),d=n(518),p=n.n(d),_=n(181),f=n.n(_);e.default={name:"ColumnsEditor",components:{wp_editor:o.a,condition:s.a,"wp-post-dynamic-column":r.a,"content-transformer":u.a,DynamicWooColumn:p.a,NinjaColorPicker:f.a},props:{model:{type:Object,default:function(){return{}}},hasPro:{type:Boolean,default:!1},updating:{type:Boolean,default:!1},moreSettings:{type:Boolean,default:!1},hideCancel:{type:Boolean,default:!1},dataSourceType:{type:String,default:"default"},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},data:function(){return{hideDelete:!1,dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},breakPointsOptions:{"":this.$t("Always show in all devices"),all:this.$t("Hidden On Desktop"),xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),hidden:this.$t("Totally hidden on all devices")},dateFormats:{"M/D/YYYY":"4/28/2018","M/D/YY":"4/28/18","MM/DD/YY":"04/28/18","MM/DD/YYYY":"04/28/2018","MMM/DD/YYYY":"Apr/28/2018","YY/MM/DD":"18/04/28","YYYY-MM-DD":"2018-04-28","DD-MMM-YY":"28-Apr-18"},timeFormats:{"h:m a":"4:8 am/pm","h:m:s a":"4:8:2 am/pm","hh:mm a":"04:08 am/pm","hh:mm:ss a":"04:08:12 am/pm","h:m A":"4:8 AM/PM","h:m:s A":"4:8:2 AM/PM","hh:mm A":"04:08 AM/PM","hh:mm:ss A":"04:08:12 AM/PM","H:m":"1:8","H:m:s":"1:8:2","HH:mm":"01:08","HH:mm:ss":"01:08:12"},weekDays:{0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},formatType:"standard",has_pro:!!window.ninja_table_admin.hasPro,alignmentOptions:{"":"Default",center:"Center",left:"Left",right:"Right",justify:"Justify",start:"Start",end:"End"},contentAlignmentOptions:{"":"Default",center:"Center",left:"Left",right:"Right"},activeTab:"basic",showConfirm:!1,doingAjax:!1}},watch:{formatType:function(){"custom"===this.formatType&&(this.model.dateFormat="")},hideDelete:function(t,e){this.hideDelete="basic"!=this.activeTab},"model.data_type":function(){"image"==this.model.data_type?this.model.link_type||this.$set(this.model,"link_type","none"):"number"!=this.model.data_type||this.model.decimal_system||(","==this.model.decimalSeparator?this.$set(this.model,"decimal_system","eu"):this.$set(this.model,"decimal_system","us"),this.changeDecimalStyle())}},methods:{addColumn:function(){this.hasPro||"button"!=this.model.data_type&&"image"!=this.model.data_type||(this.model.data_type="text"),this.$emit("add")},cancel:function(){this.$emit("cancel")},deleteColumn:function(){this.$emit("delete")},store:function(){this.$emit("store")},onTabClick:function(t,e){"basic"==t.name?this.hideDelete=!1:(this.hideDelete=!0,this.moreSettings&&(this.moreSettings=!this.moreSettings))},showProPopUp:function(){this.hasPro||window.ninjaTableBus.$emit("show_pro_popup",1)},changeDecimalStyle:function(){"us"==this.model.decimal_system?(this.$set(this.model,"decimalSeparator","."),this.$set(this.model,"thousandSeparator",",")):(this.$set(this.model,"decimalSeparator",","),this.$set(this.model,"thousandSeparator","."))}},mounted:function(){var t=this;"default"==this.dataSourceType&&this.$set(this.dataTypesOptions,"image","Image/File/Lightbox"),this.dataTypesOptions.button=this.$t("Button/Link"),this.model&&(this.model.hasOwnProperty("dateFormat")||this.$set(this.model,"dateFormat",""),this.model.dateFormat=this.model.dateFormat||"",this.model.enable_html_content=-1!==["true",!0].indexOf(this.model.enable_html_content),this.model.header_html_content=this.model.header_html_content||"",this.model.contentAlign||this.$set(this.model,"contentAlign",""),this.model.textAlign||this.$set(this.model,"textAlign",""),this.model.maxWidthUnit||this.$set(this.model,"maxWidthUnit","px"),this.model.timeFormat||this.$set(this.model,"timeFormat",""),this.model.relAttributes||this.$set(this.model,"relAttributes",[]),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}))}}},function(t,e,n){var a=n(0)(n(508),n(511),!1,function(t){n(506)},null,null);t.exports=a.exports},function(t,e,n){var a=n(507);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5281c00f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".column-condition-config .el-row{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:5px}.column-condition-config .el-col{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{width:100%;height:33px}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{margin-top:10px;font-weight:400}.column-condition-config .form_group{margin:0;height:35px}.column-condition-config .el-color-picker,.column-condition-config .el-color-picker__mask{width:100%!important}.column-condition-config .el-button--mini{padding:5px 13px}.column-condition-config .conditional-settings-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(181),o=n.n(a),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{NinjaColorPicker:o.a},data:function(){return{defaultCondition:{conditionalOperator:null,conditionalValue:null,conditionalValue2:null,targetAction:null,targetValue:null,targetValueColor:null}}},methods:{addCondition:function(){this.column.conditions||this.$set(this.column,"conditions",[]),this.column.conditions.push(i({},this.defaultCondition))},removeCondition:function(t){this.column.conditions.splice(t,1)},shouldShowColorPicker:function(t){return-1!=["set-cell-color","set-cell-bg-color","set-row-color","set-row-bg-color","set-column-color","set-column-bg-color"].indexOf(t.targetAction)}},mounted:function(){this.column&&!this.column.conditions&&this.$set(this.column,"conditions",[])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_color_picker",props:["label","value","disabled"],data:function(){return{color:"",previous_color:""}},watch:{color:function(t){"transparent"===t&&(this.color=""),this.previous_color=this.color,this.$emit("input",this.color)}},methods:{changeColor:function(t){"transparent"===this.previous_color?(this.previous_color=t,this.color="transparent"):this.color=t}},mounted:function(){this.color=this.value}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form_group"},[n("el-color-picker",{attrs:{"show-alpha":"",disabled:t.disabled},on:{"active-change":t.changeColor},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),t._v(" "),t.label?n("label",[t._v(t._s(t.label))]):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column-condition-config"},[t.hasPro?n("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),n("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n Add Condition\n ")])],1):n("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[n("div",{staticClass:"conditional-settings-title"},[n("H3",[t._v("Conditional Formatting")]),t._v(" "),n("p",[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like.\n Conditional Formatting is a pro feature which can be enabled by using Ninja Table pro Add-on. Ninja\n Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),t._m(1)],1)]),t._v(" "),n("hr"),t._v(" "),t._l(t.column.conditions,function(e,a){return n("el-row",{key:a},[n("el-col",{attrs:{sm:2,md:2}},[n("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:e.conditionalOperator,callback:function(n){t.$set(e,"conditionalOperator",n)},expression:"condition.conditionalOperator"}},[n("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),n("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than Or Equal To",value:"less-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than Or Equal To",value:"greater-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-input",{attrs:{size:"small",placeholder:"between"==e.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:e.conditionalValue,callback:function(n){t.$set(e,"conditionalValue",n)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==e.conditionalOperator?n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:e.conditionalValue2,callback:function(n){t.$set(e,"conditionalValue2",n)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:e.targetAction,callback:function(n){t.$set(e,"targetAction",n)},expression:"condition.targetAction"}},[n("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[n("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),n("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[n("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),n("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[n("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(e),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:e.targetValue,callback:function(n){t.$set(e,"targetValue",n)},expression:"condition.targetValue"}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(e),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[n("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:e.targetValueColor,callback:function(n){t.$set(e,"targetValueColor",n)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-minus",disabled:!t.hasPro},on:{click:function(e){return t.removeCondition(a)}}})],1)],1)}),t._v(" "),"date"==t.column.data_type?n("div",{staticClass:"nt_suggest"},[n("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),n("p",[t._v("Example Usage")]),t._v(" "),n("ul",[n("li",[t._v("Today's Date: "),n("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Tomorrow's Date: "),n("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Yesterday's Date: "),n("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date After 10 Days: "),n("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date Before 10 Days: "),n("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():n("el-row",[n("el-alert",{attrs:{center:"",closable:!1,title:"You haven't added any conditions for the column yet!",type:"info"}})],1)],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"conditional-settings-title"},[this._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/conditional-column-formatting/"}},[this._v("View\n Documentation")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=conditional_formatting&utm_term=upgrade",target:"_blank"}},[e("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[e("span",[this._v("Buy Pro and Enable Conditional Formatting")])])])}]}},function(t,e,n){var a=n(0)(n(513),n(514),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WPPostDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[],table_id:this.$route.params.table_id}},watch:{"column.wp_post_custom_data_type":function(){this.$set(this.column,"wp_post_custom_data_value","")}},computed:{selectedField:function(){var t=this,e=this.post_data_types.find(function(e){return e.key==t.column.wp_post_custom_data_type});return e||{}},selectedFiledValueType:function(){return this.selectedField&&this.selectedField.value_type?this.selectedField.value_type:"text"}},methods:{setFieldOptions:function(){var t=this;if(this.loading=!0,window.ninja_wp_posts_custom_fields)return this.post_data_types=window.ninja_wp_posts_custom_fields,void(this.loading=!1);this.$get({action:"ninja_table_wp-posts_get_custom_field_options",table_id:this.table_id}).then(function(e){window.ninja_wp_posts_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.setFieldOptions()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[n("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),n("hr"),t._v(" "),"custom"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Type")]),t._v(" "),n("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Field",size:"small"},model:{value:t.column.wp_post_custom_data_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_type",e)},expression:"column.wp_post_custom_data_type"}},t._l(t.post_data_types,function(t){return n("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})}),1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Value")]),t._v(" "),n("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}},t._l(t.selectedField.options,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}),1)]:n("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?n("div",{staticClass:"ninja_instruction"},[n("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?n("p",[n("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2)]:t._e(),t._v(" "),"post_data"==t.column.source_type||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),"yes"==t.column.permalinked?["post_author"==t.column.original_name?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the author as table filter action. So when user click on those filters then they will see only the selected author posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2):t._e(),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:"tax_data"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Taxonomy Separator")]),t._v(" "),n("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(516),n(517),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(222),o=n.n(a),i=n(43),s=n.n(i),l=n(83);e.default={name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},components:{ninja_alert:o.a,NinjaPremiumNotice:s.a},watch:{"settings.formula_support":function(){this.storeSettings()}},data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,tableId:this.$route.params.table_id,doingAjax:!1,supported_formullas:[],show_formulas:!1}},computed:{placeholder:function(){var t="Please Input Transform Values (HTML supported)";return"yes"==this.settings.formula_support&&(t="Please Input Transform Values (HTML and Excel Formula are supported)"),t}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,table_settings:this.settings};this.$post(e).success(function(t){}).fail(function(t){}).always(function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)})}},mounted:function(){this.supported_formullas=l.a.getSupportedFormulas()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Data Transformer is a powerful tool where you can concat any column values easily into any valid html and show as computed value.\n ")]),t._v(" "),n("el-input",{attrs:{type:"textarea",rows:"4",placeholder:t.placeholder,disabled:!t.hasPro},model:{value:t.column.transformed_value,callback:function(e){t.$set(t.column,"transformed_value",e)},expression:"column.transformed_value"}}),t._v(" "),t.hasPro?t._e():n("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),n("div",{staticClass:"ninja_instruction"},[n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no"},model:{value:t.settings.formula_support,callback:function(e){t.$set(t.settings,"formula_support",e)},expression:"settings.formula_support"}},[t._v("Enable Excel Formula support for Transform Value")]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}]},[n("p",[t._v("Note: Excel formuala is an experimental feature so all formulas may not work. We are improving this feature day by day so please don't be mad if some formulas don't work properly.")]),t._v(" "),n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.show_formulas=!0}}},[t._v("Show Formulas")]),t._v(" "),n("el-dialog",{attrs:{title:"Supported Excel Formullas",visible:t.show_formulas,width:"30%"},on:{"update:visible":function(e){t.show_formulas=e}}},[n("ul",{staticStyle:{margin:"0px 20px","padding-top":"20px"}},t._l(t.supported_formullas,function(e){return n("li",[t._v(t._s(e))])}),0)])],1)],1),t._v(" "),n("div",{staticClass:"ninja_instruction"},[n("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[t._v("{{"),n("span",[t._v("row."+t._s(e.key))]),t._v("}}")])])}),0)]),t._v(" "),n("br"),t._v(" "),t._m(1),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}],staticStyle:{"font-weight":"bold"}},[t._v("You can use any Excel formula into the transform value box")])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Column Title")]),this._v(" "),e("th",[this._v("Reference Shortcode")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("You may "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/value-transformation/",target:"_blank"}},[this._v("check the documentation here.")])])}]}},function(t,e,n){var a=n(0)(n(519),n(520),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WPWooDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[],table_id:this.$route.params.table_id}},watch:{"column.wp_post_custom_data_source_type":function(){this.$set(this.column,"source_type",this.selectedField.source_type),"tax_data"==this.selectedField.source_type&&this.$set(this.column,"taxonomy_separator",", "),this.$set(this.column,"wp_post_custom_data_key","")}},computed:{selectedField:function(){var t=this,e=this.post_data_types.find(function(e){return e.key==t.column.wp_post_custom_data_source_type});return e||{}},selectedFiledValueType:function(){return this.selectedField&&this.selectedField.value_type?this.selectedField.value_type:"text"}},methods:{setFieldOptions:function(){var t=this;if(this.loading=!0,window.ninja_wp_woo_custom_fields)return this.post_data_types=window.ninja_wp_woo_custom_fields,void(this.loading=!1);this.$get({action:"ninja_table_wp_woo_get_custom_field_options",table_id:this.table_id}).then(function(e){window.ninja_wp_woo_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.setFieldOptions()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[n("h4",[t._v(t._s(t.$t("Dynamic Column Data Settings")))]),t._v(" "),n("hr"),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Type")]),t._v(" "),n("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Data Type",size:"small"},model:{value:t.column.wp_post_custom_data_source_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_source_type",e)},expression:"column.wp_post_custom_data_source_type"}},t._l(t.post_data_types,function(t){return n("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})}),1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Value")]),t._v(" "),n("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_key,callback:function(e){t.$set(t.column,"wp_post_custom_data_key",e)},expression:"column.wp_post_custom_data_key"}},t._l(t.selectedField.options,function(t,e){return n("el-option",{key:e,attrs:{value:e,label:t}})}),1),t._v(" "),"featured_image"==t.column.wp_post_custom_data_source_type?n("div",[n("el-radio-group",{model:{value:t.column.image_permalink_type,callback:function(e){t.$set(t.column,"image_permalink_type",e)},expression:"column.image_permalink_type"}},[n("el-radio",{attrs:{label:"lightbox"}},[t._v("Make image as lightbox")]),t._v(" "),n("el-radio",{attrs:{label:"linked"}},[t._v("Link to Product page")]),t._v(" "),n("el-radio",{attrs:{label:""}},[t._v("None")])],1),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"linked"==t.column.image_permalink_type,expression:"column.image_permalink_type == 'linked'"}]},[n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"no"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}},[t._v("Open Link in new tab")])],1)],1):t._e()]:n("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?n("div",{staticClass:"ninja_instruction"},[n("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?n("p",[n("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2),t._v(" "),"buy_now_button"==t.column.wp_post_custom_data_key?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Buy Now Button Text"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Buy Now Button Text")]),t._v(" "),n("p",[t._v("Provide Buy Now Button Text")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Buy Now Button Text",size:"small"},model:{value:t.column.buy_now_button_text,callback:function(e){t.$set(t.column,"buy_now_button_text",e)},expression:"column.buy_now_button_text"}})],2):t._e(),t._v(" "),"post_title"==t.column.wp_post_custom_data_key||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.wp_post_custom_data_key?n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2)]:"tax_data"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Taxonomy Separator")]),t._v(" "),n("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[n("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Name"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Name")]),t._v(" "),n("p",[t._v("\n Enter a column name to set the header title.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Key"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Key")]),t._v(" "),n("p",[t._v("\n Column key is for data mapping, export and import table data.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:t.updating},model:{value:t.model.key,callback:function(e){t.$set(t.model,"key",e)},expression:"model.key"}}),t._v(" "),t.updating?t._e():n("small",[t._v("Please use english letters only")])],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Data Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),n("p",[t._v("\n Choose the data type of the column.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select Data Type of this column"},model:{value:t.model.data_type,callback:function(e){t.$set(t.model,"data_type",e)},expression:"model.data_type"}},t._l(t.dataTypesOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasPro,expression:"hasPro"}]},[t._v("Select HTML Field if you want to add Link, media or any type of html")])],2),t._v(" "),"date"==t.model.data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Format"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),n("p",[t._v("\n Pattern of the date value.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[n("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),n("el-radio",{attrs:{label:"custom",disabled:!t.hasPro},nativeOn:{click:function(e){return t.showProPopUp(e)}}},[t._v("Custom")])],1),t._v(" "),"custom"!=t.model.formatType?n("el-form-item",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.model.dateFormat,expression:"model.dateFormat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.model,"dateFormat",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(a)+" - (Ex: "+t._s(e)+")\n ")])})],2)]):n("el-form-item",[n("el-input",{attrs:{size:"small",placeholder:"Enter moment.js supported format"},model:{value:t.model.dateFormat,callback:function(e){t.$set(t.model,"dateFormat",e)},expression:"model.dateFormat"}})],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Show Time"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Show Time")]),t._v(" "),n("p",[t._v("\n If you select yes, then time picker will be available\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.showTime,callback:function(e){t.$set(t.model,"showTime",e)},expression:"model.showTime"}}),t._v(" "),"yes"===t.model.showTime?n("select",{directives:[{name:"model",rawName:"v-model",value:t.model.timeFormat,expression:"model.timeFormat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.model,"timeFormat",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.timeFormats,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(a)+" - (Ex: "+t._s(e)+")\n ")])})],2):t._e()],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("First Day"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("First Day")]),t._v(" "),n("p",[t._v("\n The first day of the week, e.g. Sunday, Monday, etc.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select first day of the week"},model:{value:t.model.firstDayOfWeek,callback:function(e){t.$set(t.model,"firstDayOfWeek",e)},expression:"model.firstDayOfWeek"}},t._l(t.weekDays,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2)]:"number"==t.model.data_type&&t.hasPro?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Separator Style"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),n("p",[t._v("\n Please Provide The Thousand/Decimal Separator If Any.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{on:{change:function(e){return t.changeDecimalStyle()}},model:{value:t.model.decimal_system,callback:function(e){t.$set(t.model,"decimal_system",e)},expression:"model.decimal_system"}},[n("el-radio",{attrs:{label:"us"}},[t._v("US Style - decimal point (123,234.01)")]),t._v(" "),n("el-radio",{attrs:{label:"eu"}},[t._v("European Style - decimal comma (123.234,01)")])],1)],2)]:"selection"==t.model.data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Select Items"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Select Field")]),t._v(" "),n("p",[t._v("\n Use Select Field to add data in your table from predefined list\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-form-item",[t.has_pro?t._e():n("p",[n("b",[t._v("Selection feature is only available on Pro version Please upgrade to\n pro to unlock this feature")])]),t._v(" "),n("el-input",{attrs:{type:"textarea",size:"small",disabled:!t.has_pro,placeholder:"Enter Select items one per line",autosize:{minRows:4,maxRows:8}},model:{value:t.model.selections,callback:function(e){t.$set(t.model,"selections",e)},expression:"model.selections"}}),t._v(" "),n("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Placeholder")]),t._v(" "),n("p",[t._v("\n Enter the selection placeholder, default: 'Select'\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-form-item",[n("el-input",{attrs:{type:"text",size:"small",disabled:!t.has_pro,placeholder:"Enter placeholder"},model:{value:t.model.placeholder,callback:function(e){t.$set(t.model,"placeholder",e)},expression:"model.placeholder"}})],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Enable Multi-Selection"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Multiple Selection")]),t._v(" "),n("p",[t._v("\n If you select yes, Then admin can select multiple item on create data\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.isMultiple,callback:function(e){t.$set(t.model,"isMultiple",e)},expression:"model.isMultiple"}})],2)]:"image"==t.model.data_type?[t.hasPro?t._e():[n("el-form-item",[n("p",{staticStyle:{color:"red"}},[t._v("Image upload with lightbox, download link is a pro feature. It will\n not work without Pro Version "),n("b",[n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Please upgrade to pro")])])])])],t._v(" "),n("el-form-item",{attrs:{label:"Image Linkable?"}},[n("el-radio",{attrs:{disabled:!t.hasPro,label:"none"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Image Only")]),t._v(" "),n("el-radio",{attrs:{disabled:!t.hasPro,label:"image_light_box"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Image Lightbox")]),t._v(" "),n("el-radio",{attrs:{disabled:!t.hasPro,label:"iframe_ligtbox"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Iframe Lightbox")]),t._v(" "),n("el-radio",{attrs:{disabled:!t.hasPro,label:"hyperlinked"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Link to URL")])],1),t._v(" "),"file_download"==t.model.link_type?n("el-form-item",{attrs:{label:"Download Button Text / HTML"}},[n("el-input",{attrs:{disabled:!t.hasPro,type:"textarea",placeholder:"Download Button Text / HTML"},model:{value:t.model.download_button,callback:function(e){t.$set(t.model,"download_button",e)},expression:"model.download_button"}})],1):t._e(),t._v(" "),"hyperlinked"==t.model.link_type||"file_download"==t.model.link_type?n("el-form-item",[n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"_blank","false-label":"_self"},model:{value:t.model.link_target,callback:function(e){t.$set(t.model,"link_target",e)},expression:"model.link_target"}},[t._v("Open Link\n in new window\n ")])],1):t._e()]:"button"==t.model.data_type?[t.hasPro?t._e():[n("el-form-item",[n("p",{staticStyle:{color:"red"}},[t._v("Button on Table is a pro Feature. It will not work without Pro Version. "),n("b",[n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Please upgrade to pro")])])])])],t._v(" "),n("el-form-item",{attrs:{label:"Button Text"}},[n("el-input",{attrs:{size:"small",type:"text",placeholder:"Button Text (HTML supported)"},model:{value:t.model.button_text,callback:function(e){t.$set(t.model,"button_text",e)},expression:"model.button_text"}}),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"_blank","false-label":"_self"},model:{value:t.model.link_target,callback:function(e){t.$set(t.model,"link_target",e)},expression:"model.link_target"}},[t._v("Open Link\n in new window\n ")]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"nt_rounded_btn","false-label":""},model:{value:t.model.btn_extra_class,callback:function(e){t.$set(t.model,"btn_extra_class",e)},expression:"model.btn_extra_class"}},[t._v("Make\n Button as rounded corner\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"Button Style"}},[n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Background"},model:{value:t.model.btn_bg_color,callback:function(e){t.$set(t.model,"btn_bg_color",e)},expression:"model.btn_bg_color"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Text Color"},model:{value:t.model.btn_text_color,callback:function(e){t.$set(t.model,"btn_text_color",e)},expression:"model.btn_text_color"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Border Color"},model:{value:t.model.btn_border_color,callback:function(e){t.$set(t.model,"btn_border_color",e)},expression:"model.btn_border_color"}})],1)])]),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link With Rel Attribute"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Sponsored, Nofollow & NoReferrer")]),t._v(" "),n("p",[t._v("\n Check one or multiple a rel attribute of the column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.model.relAttributes?n("el-checkbox-group",{model:{value:t.model.relAttributes,callback:function(e){t.$set(t.model,"relAttributes",e)},expression:"model.relAttributes"}},t._l(["sponsored","nofollow","noreferrer"],function(t){return n("el-checkbox",{key:t,attrs:{label:t}})}),1):t._e()],2)]:t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Responsive Breakpoint"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Responsive Breakpoint")]),t._v(" "),n("p",[t._v("\n Choose responsive breakpoints of your table columns. "),n("br"),t._v("\n For more details check "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"}},[t._v("documentation")]),t._v(".\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Select Responsive Breakpoint"},model:{value:t.model.breakpoints,callback:function(e){t.$set(t.model,"breakpoints",e)},expression:"model.breakpoints"}},t._l(t.breakPointsOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2),t._v(" "),"wp-posts"==t.dataSourceType?n("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):"wp_woo"==t.dataSourceType?[n("dynamic-woo-column",{attrs:{columns:t.columns,column:t.model}})]:t._e()],2),t._v(" "),n("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[n("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():n("div",{staticClass:"ninja_table_inline_upgrade"},[n("H3",[t._v("Advanced Column Settings")]),t._v(" "),n("p",[t._v("\n Customize your table's column's width, custom css class, content alignments, column styling\n with this feature.\n Advanced Column Settings is a pro feature and You can use it once you upgrade to Ninja\n Tables Pro.\n Ninja Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=advanced_column&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[n("span",[t._v("Buy Pro and Enable This Module")])])])],1),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Extra Classes"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Extra CSS Classes")]),t._v(" "),n("p",[t._v("\n Enter extra CSS classes to the column. "),n("br"),t._v("\n Use `space` to separate each class.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:!t.hasPro},model:{value:t.model.classes,callback:function(e){t.$set(t.model,"classes",e)},expression:"model.classes"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Max Width"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),n("p",[t._v("\n Enter the maximum width of the column. This will be applied for the entire\n column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-col",{attrs:{xs:22,md:22,lg:22,xl:22}},[n("el-form-item",[n("el-input",{attrs:{size:"small",type:"number",disabled:!t.hasPro},model:{value:t.model.width,callback:function(e){t.$set(t.model,"width",e)},expression:"model.width"}})],1)],1),t._v(" "),n("el-col",{attrs:{xs:2,md:2,lg:2,xl:2}},[n("el-form-item",[n("el-select",{attrs:{size:"small",placeholder:"Select"},model:{value:t.model.maxWidthUnit,callback:function(e){t.$set(t.model,"maxWidthUnit",e)},expression:"model.maxWidthUnit"}},[n("el-option",{attrs:{label:"px",value:"px"}}),t._v(" "),n("el-option",{attrs:{label:"%",value:"%"}})],1)],1)],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header Text Alignment")]),t._v(" "),n("p",[t._v("\n Choose the text alignment. This will be applied only for header\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Text Align"},model:{value:t.model.textAlign,callback:function(e){t.$set(t.model,"textAlign",e)},expression:"model.textAlign"}},t._l(t.alignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Row Content Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Content Text Alignment")]),t._v(" "),n("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Content Alignment"},model:{value:t.model.contentAlign,callback:function(e){t.$set(t.model,"contentAlign",e)},expression:"model.contentAlign"}},t._l(t.contentAlignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{disabled:!t.hasPro,value:!0,label:"Enable HTML Table Header Content"},model:{value:t.model.enable_html_content,callback:function(e){t.$set(t.model,"enable_html_content",e)},expression:"model.enable_html_content"}})],1),t._v(" "),t.model.enable_html_content?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header HTML Content"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header HTML Content")]),t._v(" "),n("p",[t._v("\n Provide content for table column header if you want to show html content.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("wp_editor",{model:{value:t.model.header_html_content,callback:function(e){t.$set(t.model,"header_html_content",e)},expression:"model.header_html_content"}})],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filterable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filterable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be filterable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend search for this column data"},model:{value:t.model.unfilterable,callback:function(e){t.$set(t.model,"unfilterable",e)},expression:"model.unfilterable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Sortable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Sortable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be sortable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend sorting for this column"},model:{value:t.model.unsortable,callback:function(e){t.$set(t.model,"unsortable",e)},expression:"model.unsortable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Background"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Background color")]),t._v(" "),n("p",[t._v("\n You can set background color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Text Color"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Text Color color")]),t._v(" "),n("p",[t._v("\n You can set Column Text color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[n("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[n("content-transformer",{attrs:{settings:t.settings,columns:t.columns,column:t.model}})],1),t._v(" "),n("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),n("div",{staticClass:"form_group"},[n("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():n("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[n("p",[t._v("Are you sure to delete this?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel\n ")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm\n ")])],1),t._v(" "),t.hideDelete?t._e():n("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete"))+"\n ")])],1),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.store(e)}}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])]:[t.hideCancel?t._e():n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return e.preventDefault(),t.cancel(e)}}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.addColumn(e)}}},[t._v("Add Column\n ")])]],2)])],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(525),n(526),!1,function(t){n(523)},null,null);t.exports=a.exports},function(t,e,n){var a=n(524);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("508b4bf5",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(213),o=n.n(a);e.default={name:"FluentformNav",components:{FluentForm:o.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(530),n(531),!1,function(t){n(528)},null,null);t.exports=a.exports},function(t,e,n){var a=n(529);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("514643a9",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".external-source-nav .el-collapse-item__header,.external-source-nav .el-collapse-item__wrap{padding:0 15px}.external-source-nav .sync-settings{margin-top:15px}.external-source-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(214),o=n.n(a);e.default={name:"External",components:{"external-data-source":o.a},props:{tableCreated:{type:Function},config:{type:Object},isEditableMessage:{required:!0},hasPro:{required:!0}},data:function(){return{state:!1,url:this.value,activated_features:window.ninja_table_admin.activated_features}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"external-source-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("external-data-source",{attrs:{type:t.config.table.dataSourceType,tableCreated:t.tableCreated,columns:t.config.columns,table:t.config.table,hasPro:t.hasPro,editing:!0,activated_features:t.activated_features}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(535),n(536),!1,function(t){n(533)},null,null);t.exports=a.exports},function(t,e,n){var a=n(534);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("26d13152",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(215),o=n.n(a),i=n(216),s=n.n(i);e.default={name:"RowSQLNav",components:{MySqlEditor:o.a,RemoteSqlConnection:s.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean},column_count:{type:Number}},data:function(){return{error_html:"",loading:!1,active:"",connection_details:{},has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{updateSql:function(){var t=this;this.loading=!0,this.error_html="";var e={action:"ninja_table_raw_sql_update_sql",table_id:this.config.table.ID,sql:this.config.table.sql};"external"==this.config.table.connection_type&&(e.connection_details=this.connection_details),this.$post(e).then(function(e){"string"!=typeof e?(t.tableCreated(),t.$message({showClose:!0,message:e.data.message,type:"success"})):t.error_html=e}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)}).always(function(){t.loading=!1})},getRemoteConnectionDetails:function(){var t=this;this.$get({action:"ninja_table_raw_sql_remote_connection_details",table_id:this.config.table.ID}).then(function(e){t.connection_details=e.data.connection_details}).fail(function(t){console.log(t)})}},mounted:function(){this.column_count||(this.active="1"),"external"==this.config.table.connection_type&&this.getRemoteConnectionDetails()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[t.has_sql_permission?n("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.config.table.sql,callback:function(e){t.$set(t.config.table,"sql",e)},expression:"config.table.sql"}}),t._v(" "),n("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),n("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),n("p",[t._v("Check the documentation for advanced use cases: "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://wpmanageninja.com/docs/ninja-tables/integrations/construct-table-from-custom-sql/"}},[t._v("Ninja Tables SQL Integration Documentation")])]),t._v(" "),n("p",[t._v("Available Dynamic Placeholders: "),n("code",[t._v("{current_user_id}")]),t._v(" "),n("code",[t._v("{current_date}")]),t._v(" "),n("code",[t._v("{current_date_time}")]),t._v(" "),n("code",[t._v("{current_post_id}")]),t._v(" "),n("code",[t._v("{current_post_title}")]),t._v(" "),n("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSql()}}},[t._v("Update SQL Query")])],1)],2),t._v(" "),"external"==t.config.table.connection_type?n("el-collapse-item",{attrs:{name:"2"}},[n("template",{slot:"title"},[n("strong",[t._v("SQL Connection Details:")])]),t._v(" "),n("remote-sql-connection",{attrs:{connection:t.connection_details}}),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSql()}}},[t._v("Update SQL Connection Details")])],1)],2):t._e()],1):[n("el-alert",{attrs:{title:"",type:"error",closable:!1}},[n("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles."),n("br"),t._v("\n You can only see the data and update other settings but can't alter the original SQL.\n ")]),t._v(" "),n("b",[t._v("Current SQL Query: ")]),t._v(" "),n("p",[n("code",[t._v(t._s(t.config.table.sql))])])])]],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(540),n(541),!1,function(t){n(538)},null,null);t.exports=a.exports},function(t,e,n){var a=n(539);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("499d79da",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}.el-transfer__buttons{padding:0 10px!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(210),o=n.n(a),i=n(82),s=n.n(i);e.default={name:"WPPostsNav",components:{WPPosts:o.a,columnsEditor:s.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{activeNames:["1"]}},methods:{addNewColumn:function(){this.$emit("add")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[n("el-collapse-item",{attrs:{title:"Table Query Settings and New Column",name:"1"}},[n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"Table Info"}},[n("p",[t._v('This table data is created from wp-posts. Use the "Query Settings" and "Add New Column" tab to customize the columns and query.')])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Query Settings"}},[n("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Add New Column"}},[n("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:t.hasPro,settings:t.config.settings,hideCancel:!0,dataSourceType:"wp-posts"},on:{add:function(e){return t.addNewColumn()}}})],1)],1)],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(545),n(546),!1,function(t){n(543)},null,null);t.exports=a.exports},function(t,e,n){var a=n(544);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("61ae7ebc",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".nt-woo-nav .nt-appearance label.el-checkbox{display:block}.nt-woo-nav .nt-form-group{margin-bottom:15px}.nt-woo-nav .nt-form-group label{margin-right:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(212),o=n.n(a),i=n(82),s=n.n(i);e.default={name:"woo_nav_edit",props:["config","model"],components:{WooNav:o.a,ColumnsEditor:s.a},data:function(){return{query_terms:[],appearance:this.config.table.appearance_settings||{},loading:!1}},methods:{saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_table_save_query_settings_woo_table",table_id:this.config.table.ID,query_selections:this.config.table.query_selections,query_conditions:this.config.table.query_conditions,appearance_settings:this.config.table.appearance_settings}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$emit("reloadData",1)}).fail(function(t){}).always(function(){t.saving=!1})},addNewColumn:function(){this.$emit("add")}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nt-woo-nav"},[n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{staticClass:"nt-appearance",attrs:{label:"Appearance Settings"}},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_before_table,callback:function(e){t.$set(t.appearance,"show_cart_before_table",e)},expression:"appearance.show_cart_before_table"}},[t._v("Show Cart Details Before Table")]),t._v(" "),n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_after_table,callback:function(e){t.$set(t.appearance,"show_cart_after_table",e)},expression:"appearance.show_cart_after_table"}},[t._v("Show Cart Details After Table")]),t._v(" "),n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_button,callback:function(e){t.$set(t.appearance,"show_cart_button",e)},expression:"appearance.show_cart_button"}},[t._v("Show Go to Cart Button")]),t._v(" "),n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_checkout_button,callback:function(e){t.$set(t.appearance,"show_checkout_button",e)},expression:"appearance.show_checkout_button"}},[t._v("Show Checkout Button")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"nt-form-group"},[n("label",{attrs:{for:"cartBtnText"}},[t._v("\n Cart Text\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.appearance.cartBtnText,expression:"appearance.cartBtnText"}],attrs:{type:"text",id:"cartBtnText",placeholder:"Enter cart button text"},domProps:{value:t.appearance.cartBtnText},on:{input:function(e){e.target.composing||t.$set(t.appearance,"cartBtnText",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"nt-form-group"},[n("label",{attrs:{for:"checkoutBtnText"}},[t._v("\n Checkout Text\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.appearance.checkoutBtnText,expression:"appearance.checkoutBtnText"}],attrs:{type:"text",id:"checkoutBtnText",placeholder:"Enter checkout button text"},domProps:{value:t.appearance.checkoutBtnText},on:{input:function(e){e.target.composing||t.$set(t.appearance,"checkoutBtnText",e.target.value)}}})]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Query Settings"}},[n("woo-nav",{attrs:{query_selections:t.config.table.query_selections,query_conditions:t.config.table.query_conditions}}),t._v(" "),n("br"),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Add New Column"}},[n("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:!0,settings:t.config.settings,hideCancel:!0,dataSourceType:"wp_woo"},on:{add:function(e){return t.addNewColumn()}}})],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(548),n(549),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(182),o=n(184),i=n.n(o),s=n(83),l=n(220),r=n.n(l),c=n(221),u=n.n(c),d=n(186),p=n.n(d),_=n(188),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"show_cell",props:["row","columns","column","formula_support","is_editable"],components:{mayBeSelect:r.a,NinjaDatePicker:u.a},data:function(){return{is_editing:!1,btnLoading:!1,inital_value:""}},methods:{saveOnly:function(){},maybeSave:function(t){var e=this;if("change"!=t){var n=this.column.key,a=this.row.values[n];if(this.inital_value!=a){this.inital_value=JSON.stringify(a);var o={action:"ninja_tables_ajax_actions",target_action:"update-single-cell",row_id:this.row.id,column_key:n,column_value:a};this.btnLoading=!0,this.is_editing=!1,this.$post(o).then(function(t){console.log(t)}).fail(function(t){e.$message.error("Failed")}).always(function(){e.btnLoading=!1})}else this.is_editing=!1}},renderTableCell:function(t,e,n){return"image"==e.data_type?"object"==(void 0===t?"undefined":f(t))&&t?"file_download"==e.link_type?'<a target="'+e.link_target+'" href="'+t.permalink+'">'+e.download_button+"</a>":t.image_thumb?'<img src="'+t.image_thumb+'" />':"":t:"button"==e.data_type?t?'<a target="'+e.link_target+'" rel="'+e.relAttributes.join(" ")+'" class="nt_btn '+e.btn_extra_class+'" style="color: '+e.btn_text_color+"; background-color: "+e.btn_bg_color+"; border-color: "+e.btn_border_color+"\" href='"+t+"'>"+e.button_text+"</a>":"":(Array.isArray(t)&&(t=t.join(", ")),e.transformed_value&&e.transformed_value.trim()&&(t=this.getShortcodes(t,e,this.row,this.columns),"yes"==this.formula_support)?(t=s.a.parse(t,e.decimalSeparator),","==e.decimalSeparator&&(t=Object(_.a)(t)),t):t)},getShortcodes:function(t,e,n,o){n=Object.assign({},n.values);var s=e.transformed_value;1!=n.value_transformation_complete&&(jQuery.each(n,function(t,e){var a=p()(o,["key",t]);a&&"number"==a.data_type&&("."==a.decimalSeparator?n[t]=n[t]?n[t].replace(/\,/g,""):n[t]:n[t]=n[t]?n[t].replace(/\./g,"").replace(/\,/g,"."):n[t])}),n.value_transformation_complete=!0),-1!=s.indexOf("{{")&&(s=i()(Object(a.a)(s,{row:n})));var l=s.match(/{row.([^\}]*)}/g);return l&&$.each(l,function(t,e){var a=e.substring(5,e.length-1);s=s.replace(e,n[a]||"")}),s},getTitle:function(t){return this.cell_editable?"Click to edit":this.isHtml(t)?"":t},isHtml:function(t){var e=(new DOMParser).parseFromString(t,"text/html");return Array.from(e.body.childNodes).some(function(t){return 1===t.nodeType})}},computed:{cell_editable:function(){if(!this.is_editable)return!1;return-1==["image","button","html"].indexOf(this.column.data_type)}},mounted:function(){this.is_editable&&this.row.values[this.column.key]&&(this.inital_value=JSON.stringify(this.row.values[this.column.key]))}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],class:t.is_editing&&t.cell_editable?"nt_cell_editing":"nt_cell"},[t.is_editing&&t.cell_editable?n("div",{staticClass:"cell_editing"},["selection"==t.column.data_type?n("may-be-select",{attrs:{size:"mini",newColumn:t.row.values,column:t.column},on:{blur:function(e){return t.maybeSave("blur")}}}):"date"==t.column.data_type?n("ninja-date-picker",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{only_picker:"yes",column:t.column,new_column:t.row.values},on:{blur:function(e){return t.maybeSave("blur")}}}):"textarea"==t.column.data_type?n("textarea",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.row.values[t.column.key],expression:"row['values'][column.key]"}],key:t.column.key,staticClass:"nt_inline_textarea",domProps:{value:t.row.values[t.column.key]},on:{blur:function(e){return t.maybeSave("blur")},input:function(e){e.target.composing||t.$set(t.row.values,t.column.key,e.target.value)}}}):n("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.row.values[t.column.key],expression:"row['values'][column.key]"}],key:t.column.key,staticClass:"nt_cell_input",attrs:{type:"text"},domProps:{value:t.row.values[t.column.key]},on:{blur:function(e){return t.maybeSave("blur")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.maybeSave("submit")},input:function(e){e.target.composing||t.$set(t.row.values,t.column.key,e.target.value)}}})],1):n("div",{staticClass:"cell-content",class:t.cell_editable?"nt_cell_editable":"",attrs:{title:t.getTitle(t.row.values[t.column.key])},domProps:{innerHTML:t._s(t.renderTableCell(t.row.values[t.column.key],t.column,t.row.values))},on:{click:function(e){t.is_editing=!0}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isEditable?t._e():["fluent-form"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("fluent-form-nav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData}})],1):-1!=t.dataSourceType.indexOf("csv")?n("div",{staticClass:"tablenav top"},[n("external-source-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData},model:{value:t.externalDataSourceUrl,callback:function(e){t.externalDataSourceUrl=e},expression:"externalDataSourceUrl"}})],1):"wp-posts"==t.dataSourceType&&t.new_column?n("div",{staticClass:"tablenav top"},[n("WPPostsNav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData},on:{add:function(e){return t.addNewColumn()}}})],1):"raw_sql"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("raw-sql-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,column_count:t.columns.length,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData}})],1):"wp_woo"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("div",{staticClass:"woo_data_source_config"},[n("woo-nav-edit",{attrs:{model:t.new_column,config:t.config},on:{add:function(e){return t.addNewColumn()},reloadData:function(e){return t.getData()}}})],1)]):t._e(),t._v(" "),t.columns.length||t.loading?t._e():n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v("No Data found based on your data source configaration")])])],t._v(" "),t.columns.length&&t.isEditable?[t.addDataModal?n("add_data_modal",{attrs:{title:t.addDataModalTitle,show:t.addDataModal,table_id:t.tableId,columns:t.columns,item:t.updateItem,"manual-sort":"manual_sort"===t.config.settings.sorting_type,"insert-after-position":t.insertAfterPosition,insertAfterId:t.insertAfterId,type:t.dataModalType},on:{modal_close:t.closeDataModal,updateItem:t.updateItemOnTable,createItem:t.addItemOnTable}}):t._e(),t._v(" "),n("div",{staticClass:"tablenav top"},[n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))]),t._v(" "),n("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isCompact,expression:"isCompact"}],attrs:{id:"compact_view",type:"checkbox"},domProps:{checked:Array.isArray(t.isCompact)?t._i(t.isCompact,null)>-1:t.isCompact},on:{change:function(e){var n=t.isCompact,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.isCompact=n.concat([null])):i>-1&&(t.isCompact=n.slice(0,i).concat(n.slice(i+1)))}else t.isCompact=o}}}),t._v(" Compact View\n ")]),t._v(" "),n("label",[t._v("\n | "),n("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData(e)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.sorting,expression:"sorting"}],attrs:{type:"checkbox",name:"checkbox"},domProps:{checked:Array.isArray(t.sorting)?t._i(t.sorting,null)>-1:t.sorting},on:{change:function(e){var n=t.sorting,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.sorting=n.concat([null])):i>-1&&(t.sorting=n.slice(0,i).concat(n.slice(i+1)))}else t.sorting=o}}}),t._v("\n Sort Manually\n "),t.has_pro?t._e():[t._v("(Pro Feature)")]],2)]),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))]),t._v(" "),n("el-button",{attrs:{size:"small",type:"info"},on:{click:function(e){return t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():n("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[n("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addColumn()}}},[t._v("\n Add Column\n ")])],1),t._v(" "),t.columns.length?[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"js-sortable-table",class:{compact:t.isCompact,sorting:t.sorting},style:"width: "+t.tableWidth,attrs:{data:t.items,"row-key":"id",border:"","max-height":"600"},on:{"selection-change":t.handleSelectionChange}},[t.isEditable?n("el-table-column",{attrs:{type:"selection",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,function(e,a){return n("el-table-column",{key:a,attrs:{width:t.columnLength==a+1?"":150},scopedSlots:t._u([{key:"default",fn:function(a){return[n("show-editable-cell",{attrs:{row:a.row,column:e,columns:t.columns,formula_support:t.config.settings.formula_support,is_editable:t.isEditable}})]}}],null,!0)},[t._v(" "),n("template",{slot:"header"},[n("span",[t._v("\n "+t._s(e.name||e.key)+"\n\n "),n("i",{staticClass:"el-icon-setting nt-column-config",on:{click:function(n){return t.showColumnConfigModal(e)}}})])])],2)}),t._v(" "),t.isEditable?[t.show_meta?[n("el-table-column",{attrs:{label:"Row ID",width:"100px",prop:"id"}}),t._v(" "),n("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),n("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.has_pro?n("a",{on:{click:function(n){return t.addAfter(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),n("a",{on:{click:function(n){return t.showUpdateModal(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),n("a",{on:{click:function(n){return t.duplicateData(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),n("delete-pop-over",{on:{deleted:function(n){return t.deleteItem(e.row.id)}}})]}}],null,!1,2116760848)})]:t._e()],2),t._v(" "),n("div",{staticClass:"tablenav bottom"},[t.isEditable?n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))])]):t._e(),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100,500,2e3],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1)])]:t._e(),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),n("el-dialog",{staticClass:"no_padding_body",attrs:{"close-on-click-modal":!1,"append-to-body":!0,top:"50px",title:"Edit Table Column : "+t.currentEditingColumn.name,width:"70%",visible:t.showColumnEditor},on:{"update:visible":function(e){t.showColumnEditor=e}}},[t.showColumnEditor&&t.currentEditingColumn?n("columns-editor",{attrs:{dataSourceType:t.config.table.dataSourceType,model:t.currentEditingColumn,hasPro:t.has_pro,updating:!0,columns:t.columns,settings:t.config.settings},on:{store:function(e){return t.storeSettings()},delete:function(e){return t.deleteColumn()},cancel:function(e){t.showColumnEditor=!1}}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{"close-on-click-modal":!1,top:"50px","append-to-body":!0,title:"Add Table Column",width:"70%",visible:t.columnModal},on:{"update:visible":function(e){t.columnModal=e}}},[n("columns-editor",{attrs:{model:t.new_column,hasPro:t.has_pro,columns:t.config.columns,settings:t.config.settings},on:{add:function(e){return t.addNewColumn()},cancel:function(e){t.columnModal=!t.columnModal}}})],1)],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(554),n(577),!1,function(t){n(552)},null,null);t.exports=a.exports},function(t,e,n){var a=n(553);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("327c9058",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(189),o=n.n(a),i=n(53),s=n.n(i),l=n(60),r=n.n(l),c=n(142),u=n.n(c),d=n(219),p=n.n(d),_=n(82),f=n.n(_),m=n(555),v=n.n(m),h=n(568),b=n.n(h),g=n(571),y=n.n(g),w=n(574),x=n.n(w),k=n(118);e.default={name:"TableConfiguration",components:{draggable:o.a,ColumnsEditor:f.a,NinjaCustomFilters:v.a,NinjaLanguageSettings:b.a,NinjaRenderingSettings:y.a,NinjaButtonSettings:x.a},props:["config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,active_menu:"columns",table_color_primary:"#000",table_color_secondary:"#fff",tableId:this.$route.params.table_id,tableLibs:Object(k.a)(),doingAjax:!1,addColumnStatus:!1,new_column:!1,breakPointsOptions:{xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),"":this.$t("Always show in all devices"),hidden:this.$t("Totally hidden on all devices")},dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},attributeModel:{name:null,key:null,breakpoints:""},columns:this.config.columns,tableSettings:this.config.settings,is_fluent_installed:window.ninja_table_admin.isInstalled,fluent_url:window.ninja_table_admin.fluentform_url,has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,addVisible:!1,sortableUpgradeNotice:!1}},watch:{"new_column.name":function(){this.new_column.key=p()(this.new_column.name)}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post(e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.$set(t.config,"columns",t.columns)}).fail(function(t){}).always(function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)})},openDrawer:function(t){jQuery(".drawer_body_"+t).slideToggle()},validateColumn:function(t){return t.name?t.key?-1===s()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.columns.push(this.new_column),this.setNewColumn(),this.addColumnStatus=!1,this.storeSettings())},deleteColumn:function(t){this.config.columns.splice(t,1),this.storeSettings()},showProAd:function(t){this.addVisible=!0,window.ninjaTableBus.$emit("show_pro_popup",1)},size:u.a,get:r.a,initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},headerColorsClick:function(){this.has_pro||this.showProAd()},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",timeFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType()&&(t.source_type="custom"),this.new_column=t},dataSourceType:function(){var t=this.config.table.dataSourceType||"Default";return t=t.indexOf("google")>-1?"Google SpreadSheet":t}},computed:{addable:function(){return-1!=["default","wp-posts"].indexOf(this.config.table.dataSourceType)}},mounted:function(){this.setNewColumn()}}},function(t,e,n){var a=n(0)(n(556),n(567),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a),i=n(557),s=n.n(i),l=n(189),r=n.n(l);e.default={name:"custom_filter",props:["table_id","columns"],components:{NinjaFilterEditor:s.a,draggable:r.a},data:function(){return{loading:!1,saving:!1,hasPro:!!window.ninja_table_admin.hasPro,hasAdvancedFilters:!!window.ninja_table_admin.hasAdvancedFilters,table_filters:[],activeEditor:!1,editorModal:!1,addFilterModal:!1,filter_styling:{filter_display_type:"",filter_columns:"columns_2",filter_column_label:"new_line"}}},computed:{columnKeyPairs:function(){var t={};return o()(this.columns,function(e){t[e.key]=e.name}),t}},methods:{each:o.a,fetchFilters:function(){var t=this;this.loading=!0,this.$get({action:"ninjatable_get_custom_table_filters",table_id:this.table_id}).then(function(e){t.table_filters=e.data.table_filters,t.filter_styling=e.data.filter_styling}).fail(function(t){}).always(function(){t.loading=!1})},updateFilter:function(t){this.validateFilter(t)&&this.saveFilters()},validateFilter:function(t){return t.title?t.options.length?"reset_filter"==t.type||"select"==t.type||t.columns.length?!("select"==t.type&&"dynamic_data"==t.select_value_type&&!t.dynamic_select_column)||(this.$message.error("Please Select Target Column"),!1):(this.$message.error("Please Select columns that you need to add filter"),!1):(this.$message.error("Please Provide Filter Options"),!1):(this.$message.error("Please Provide Filter Title"),!1)},saveFilters:function(){var t=this;this.saving=!0,this.$post({action:"ninjatable_update_custom_table_filters",table_id:this.table_id,ninja_filters:this.table_filters,filter_styling:this.filter_styling}).then(function(e){t.$message.success(e.data.message)}).fail(function(t){}).always(function(){t.saving=!1,t.activeEditor=!1,t.editorModal=!1,t.addFilterModal=!1})},showAddFilter:function(){this.activeEditor={placeholder:"All",options:[{value:"",label:""}],type:"select",columns:[],strict:"no",title:""},this.addFilterModal=!0},addFilter:function(t){var e=this;this.validateFilter(t)&&(this.table_filters.push(t),this.$nextTick(function(){e.saveFilters()}))},edit:function(t){this.activeEditor=t,this.editorModal=!0},deleteFilter:function(t){this.table_filters.splice(t,1),this.saveFilters()}},mounted:function(){this.hasAdvancedFilters&&this.fetchFilters()}}},function(t,e,n){var a=n(0)(n(560),n(566),!1,function(t){n(558)},"data-v-7c7cfd0a",null);t.exports=a.exports},function(t,e,n){var a=n(559);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4ecf339f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".spaced>.el-radio[data-v-7c7cfd0a]{margin-left:0;margin-right:30px!important;line-height:2}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(561),o=n.n(a),i=n(26),s=n.n(i);e.default={name:"FilterEditor",components:{KeyPairOptions:o.a},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return s()(this.columns,function(e){"date"==e.data_type&&t.push(e)}),t}if("number_range"==this.activeEditor.type){var e=[];return s()(this.columns,function(t){"number"==t.data_type&&e.push(t)}),e}return this.columns},has_filter_option:function(){return-1!==["radio","checkbox"].indexOf(this.activeEditor.type)},is_manual_select_options:function(){return"select"==this.activeEditor.type&&"manual"==this.activeEditor.select_value_type},need_placeholder:function(){return-1!==["radio","select","date_picker","text_input"].indexOf(this.activeEditor.type)},need_filter_columns:function(){return!("select"==this.activeEditor.type&&"dynamic_data"==this.activeEditor.select_value_type||"reset_filter"==this.activeEditor.type)}},watch:{"activeEditor.type":function(t){"select"==t&&this.$set(this.activeEditor,"select_value_type","manual"),Array.isArray(this.activeEditor.columns)||this.$set(this.activeEditor,"columns",[])}},mounted:function(){Array.isArray(this.activeEditor.columns)||this.$set(this.activeEditor,"columns",[])}}},function(t,e,n){var a=n(0)(n(564),n(565),!1,function(t){n(562)},null,null);t.exports=a.exports},function(t,e,n){var a=n(563);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59ffc73b",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"table.ninja_filter_table{width:100%;text-align:left;border-collapse:collapse}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(189),o=n.n(a);e.default={name:"ninja_key_pair_options",components:{draggable:o.a},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.label,callback:function(n){t.$set(e,"label",n)},expression:"filter.label"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"filter.value"}})],1),t._v(" "),n("td",[n("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){return t.deleteItem(a)}}},[t._v("-")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:a+1==t.value.length,expression:"(index + 1) == value.length"}],attrs:{type:"success",size:"mini"},on:{click:function(e){return t.add()}}},[t._v("+")])],1)])}),0)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th"),this._v(" "),e("th",[this._v("Label")]),this._v(" "),e("th",[this._v("Filter Value")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Title"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter Title")]),t._v(" "),n("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.title,callback:function(e){t.$set(t.activeEditor,"title",e)},expression:"activeEditor.title"}})],2),t._v(" "),"reset_filter"!=t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Label"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Prefix")]),t._v(" "),n("p",[t._v("This will show on your Table Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.filter_prefix,callback:function(e){t.$set(t.activeEditor,"filter_prefix",e)},expression:"activeEditor.filter_prefix"}}),t._v(" "),n("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter UI Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter UI")]),t._v(" "),n("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[n("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),n("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),n("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),n("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),n("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),n("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),n("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),n("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),"select"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Value Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.activeEditor.select_value_type,callback:function(e){t.$set(t.activeEditor,"select_value_type",e)},expression:"activeEditor.select_value_type"}},[n("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),n("el-radio-button",{attrs:{label:"dynamic_data"}},[t._v("Dynamic Data from Table Column")])],1)],2),t._v(" "),!t.is_manual_select_options&&t.activeEditor.select_value_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Target Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.dynamic_select_column,callback:function(e){t.$set(t.activeEditor,"dynamic_select_column",e)},expression:"activeEditor.dynamic_select_column"}},t._l(t.current_columns,function(e){return n("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])}),1)],2),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.parse_comma_separated,callback:function(e){t.$set(t.activeEditor,"parse_comma_separated",e)},expression:"activeEditor.parse_comma_separated"}},[t._v(" Parse Comma Separated Words")])],1),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.disable_auto_sorting,callback:function(e){t.$set(t.activeEditor,"disable_auto_sorting",e)},expression:"activeEditor.disable_auto_sorting"}},[t._v(" Disable automatic filter value sorting")])],1),t._v(" "),"yes"!=t.activeEditor.disable_auto_sorting?[n("el-form-item",{attrs:{label:"Sort Dynamic Value as: "}},[n("el-radio-group",{model:{value:t.activeEditor.sorting_type,callback:function(e){t.$set(t.activeEditor,"sorting_type",e)},expression:"activeEditor.sorting_type"}},[n("el-radio",{attrs:{label:"asc"}},[t._v("Asending Way")]),t._v(" "),n("el-radio",{attrs:{label:"desc"}},[t._v("Descending Way")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"Sort Algorithom"}},[n("el-radio-group",{model:{value:t.activeEditor.sorting_method,callback:function(e){t.$set(t.activeEditor,"sorting_method",e)},expression:"activeEditor.sorting_method"}},[n("el-radio",{attrs:{label:"text"}},[t._v("As Text Basis")]),t._v(" "),n("el-radio",{attrs:{label:"numeric"}},[t._v("As Numeric Basis")])],1)],1)]:t._e()]:t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.is_multi_select,callback:function(e){t.$set(t.activeEditor,"is_multi_select",e)},expression:"activeEditor.is_multi_select"}},[t._v("Enable Multi-Select")])],1)]:t._e(),t._v(" "),t.has_filter_option||t.is_manual_select_options?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Options"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Options")]),t._v(" "),n("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("key-pair-options",{model:{value:t.activeEditor.options,callback:function(e){t.$set(t.activeEditor,"options",e)},expression:"activeEditor.options"}})],2)]:t._e(),t._v(" "),"date_picker"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Filter Operator"))+"\n ")]),t._v(" "),n("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[n("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("From Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"From Placeholder"},model:{value:t.activeEditor.from_placeholder,callback:function(e){t.$set(t.activeEditor,"from_placeholder",e)},expression:"activeEditor.from_placeholder"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("To Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"To Placeholder"},model:{value:t.activeEditor.to_placeholder,callback:function(e){t.$set(t.activeEditor,"to_placeholder",e)},expression:"activeEditor.to_placeholder"}})],2)]:t._e(),t._v(" "),"text_input"==t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Prefix"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter Prefix")]),t._v(" "),n("p",[t._v("You can use filter prefix to append the value of user inputed value. It will join with the value and perform the search")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"Filter Prefix"},model:{value:t.activeEditor.filter_value_prefix,callback:function(e){t.$set(t.activeEditor,"filter_value_prefix",e)},expression:"activeEditor.filter_value_prefix"}})],2):t._e(),t._v(" "),t.need_filter_columns?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Columns"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Columns")]),t._v(" "),n("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?n("el-checkbox-group",{model:{value:t.activeEditor.columns,callback:function(e){t.$set(t.activeEditor,"columns",e)},expression:"activeEditor.columns"}},t._l(t.current_columns,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])}),1):n("div",[t._v("\n Sorry, No corresponding columns found based on your selection and column's data type\n ")])],2):t._e(),t._v(" "),"reset_filter"==t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Button Text"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.strict,callback:function(e){t.$set(t.activeEditor,"strict",e)},expression:"activeEditor.strict"}},[t._v("Enable Strict Mode (If Enable, Ninja Table will try to match exact value)")])],1)],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?n("div",{staticClass:"section_block"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.showAddFilter()}}},[t._v("Add New Filter")]),t._v(" "),t.table_filters.length?[n("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){return t.saveFilters()}}},t._l(t.table_filters,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(e.title))]),t._v(" "),n("td",[t._v(t._s(e.type))]),t._v(" "),n("td",t._l(e.columns,function(e){return n("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[e],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n "+t._s(t.columnKeyPairs[e])+"\n ")])}),0),t._v(" "),n("td",[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(n){return t.edit(e)}}}),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){return t.deleteFilter(a)}}})],1)])}),0)],1),t._v(" "),n("h3",[t._v("Filter Appearance")]),t._v(" "),n("el-radio-group",{model:{value:t.filter_styling.filter_display_type,callback:function(e){t.$set(t.filter_styling,"filter_display_type",e)},expression:"filter_styling.filter_display_type"}},[n("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),n("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[n("h3",[t._v("Filter Columns")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.filter_styling.filter_columns,callback:function(e){t.$set(t.filter_styling,"filter_columns",e)},expression:"filter_styling.filter_columns"}},[n("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),n("h3",[t._v("Progressive Filter")]),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.filter_styling.progressive,callback:function(e){t.$set(t.filter_styling,"progressive",e)},expression:"filter_styling.progressive"}},[t._v("Enable Progressive filter for dynamic filter options")]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{loading:t.saving,size:"small",type:"success"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?n("div",{staticClass:"section_block"},[t._m(2)]):n("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])]),t._v(" "),n("el-dialog",{attrs:{title:"Edit Custom Filter",visible:t.editorModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editorModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"Add New Custom Filter",visible:t.addFilterModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.addFilterModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",{staticClass:"ninja_block"},[this._v("Custom Search Filters")]),this._v(" "),e("p",[this._v("\n Custom Search Filters is useful if you want to add select box / Radio Button to show a group of rows of\n your table.\n "),e("br"),this._v("\n To learn more about this "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/custom-filters-on-ninja-tables/"}},[this._v("click\n here")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Name")]),this._v(" "),e("th",[this._v("Type")]),this._v(" "),e("th",[this._v("Target Columns")]),this._v(" "),e("th",[this._v("Action")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is introduced in version 2.4.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e,n){var a=n(0)(n(569),n(570),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Language Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block"},[n("div",{staticClass:"language_block"},[n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.no_result_text,expression:"tableSettings.no_result_text"}],staticClass:"form_control",attrs:{id:"no_result_text",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.no_result_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"no_result_text",e.target.value)}}}),t._v(" "),n("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_placeholder,expression:"tableSettings.search_placeholder"}],staticClass:"form_control",attrs:{id:"search_box_placeholder",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_placeholder},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_placeholder",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Box Placeholder")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_in_text,expression:"tableSettings.search_in_text"}],staticClass:"form_control",attrs:{id:"search_box_in",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_in_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_in_text",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Dropdown Box Title")])])])])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(572),n(573),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja-rendering_settings",props:["tableSettings","config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}},methods:{storeSettings:function(){this.$emit("storeSettings")},changeTableType:function(t){if(!this.hasPro&&"legacy_table"==t)return window.ninjaTableBus.$emit("show_pro_popup",1),void(this.tableSettings.render_type="ajax_table");this.tableSettings.render_type=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_rendering_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Render Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"ninja_section_block_body"},[n("div",{staticClass:"section_block_item"},[n("p",[t._v("Please the select the settings for your table render method. Using Legacy table you can use\n shortcodes in your cells and it will render the full table from php side. Table styles will be\n same for both tables. Most of the cases you will need Ajax Table which is recommended\n settings.")]),t._v(" "),n("div",{staticClass:"card_block"},[n("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("ajax_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"ajax_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'ajax_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Ajax Table")]),t._v(" "),n("p",[t._v("\n Use this settings if you have lots of data and don't need cell merge features. It will\n load your data over ajax. Please note that, shortcodes in table will not work here.\n ")])]),t._v(" "),n("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("legacy_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"legacy_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'legacy_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Disable Caching\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, we cache the table "),n("br"),t._v("\n contents. It's not recommended to disable "),n("br"),t._v("\n caching unless you know what you are doing\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.shouldNotCache,callback:function(e){t.$set(t.tableSettings,"shouldNotCache",e)},expression:"tableSettings.shouldNotCache"}})],1)])]):t._e(),t._v(" "),t.config.table.hasExternalCachingInterval?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Caching Interval\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, You can cache the table data for certain minutes "),n("br"),t._v("\n so the data will load from cached data. Please Provide the value in minutes.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.caching_interval,callback:function(e){t.$set(t.tableSettings,"caching_interval",e)},expression:"tableSettings.caching_interval"}}),t._v(" "),n("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.caching_interval/60).toFixed(2))+" hours")])]):t._e()],1)])]):t._e(),t._v(" "),"legacy_table"==t.config.settings.render_type&&"yes"!=t.tableSettings.shouldNotCache?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Enable Full HTML Cache\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then ninja tables will cache the full html of the table and"),n("br"),t._v("\n render that without interact with database. You can set the time how many minutes it will cache each iteration.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.enable_html_cache,callback:function(e){t.$set(t.tableSettings,"enable_html_cache",e)},expression:"tableSettings.enable_html_cache"}})],1),t._v(" "),"yes"==t.tableSettings.enable_html_cache?n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.html_caching_minutes,callback:function(e){t.$set(t.tableSettings,"html_caching_minutes",e)},expression:"tableSettings.html_caching_minutes"}}),t._v(" "),t.tableSettings.html_caching_minutes>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.html_caching_minutes/60).toFixed(2))+" hours")])]):t._e()],1)]):t._e()])]):t._e()])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Recommended settings for advanced features\n ")]),t._v(" "),n("ul",{staticClass:"ninja_render_features"},[n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n ")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}]}},function(t,e,n){var a=n(0)(n(575),n(576),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a);e.default={name:"button_settings",components:{wpEditor:o.a},props:["table_id"],data:function(){return{table_buttons:{csv:{status:"no",label:"CSV",all_rows:"no"},print:{status:"no",label:"Print",all_rows:"no",header_each_page:"no",footer_each_page:"no"}},fetching:!1,saving:!1,button_positions:{after_search_box:"After Search Box",before_table:"Before of the table",after_table:"Bottom of the table"},buttonAlignments:{ninja_buttons_left:"Left",ninja_buttons_center:"Center",ninja_buttons_right:"Right"},hasPro:!!window.ninja_table_admin.hasPro}},methods:{getSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_button_settings",table_id:this.table_id}).then(function(e){t.table_buttons=e.data.button_settings}).fail(function(t){}).always(function(){t.fetching=!1})},saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"update_button_settings",table_id:this.table_id,button_settings:this.table_buttons}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[n("h3",[t._v("CSV Export Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.status,callback:function(e){t.$set(t.table_buttons.csv,"status",e)},expression:"table_buttons.csv.status"}},[t._v("\n Enable CSV Export Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.csv.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.csv.label,callback:function(e){t.$set(t.table_buttons.csv,"label",e)},expression:"table_buttons.csv.label"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.bg_color,callback:function(e){t.$set(t.table_buttons.csv,"bg_color",e)},expression:"table_buttons.csv.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.text_color,callback:function(e){t.$set(t.table_buttons.csv,"text_color",e)},expression:"table_buttons.csv.text_color"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.plainText,callback:function(e){t.$set(t.table_buttons.csv,"plainText",e)},expression:"table_buttons.csv.plainText"}},[t._v("\n Export as Plain Text\n ")])],1)]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Print Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.print.status,callback:function(e){t.$set(t.table_buttons.print,"status",e)},expression:"table_buttons.print.status"}},[t._v("Enable Print\n Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.print.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.print.label,callback:function(e){t.$set(t.table_buttons.print,"label",e)},expression:"table_buttons.print.label"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_full"},[n("div",{staticClass:"form_row_half"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.bg_color,callback:function(e){t.$set(t.table_buttons.print,"bg_color",e)},expression:"table_buttons.print.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_row_half"},[n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.text_color,callback:function(e){t.$set(t.table_buttons.print,"text_color",e)},expression:"table_buttons.print.text_color"}})],1)])]),t._v(" "),n("el-collapse",{attrs:{accordion:""}},[n("el-collapse-item",{attrs:{title:"Print Screen Header",name:"header"}},[[n("label",[t._v("Header in each page")]),t._v(" "),n("el-radio",{attrs:{label:"yes"},model:{value:t.table_buttons.print.header_each_page,callback:function(e){t.$set(t.table_buttons.print,"header_each_page",e)},expression:"table_buttons.print.header_each_page"}},[t._v("Yes")]),t._v(" "),n("el-radio",{attrs:{label:"no"},model:{value:t.table_buttons.print.header_each_page,callback:function(e){t.$set(t.table_buttons.print,"header_each_page",e)},expression:"table_buttons.print.header_each_page"}},[t._v("No")])],t._v(" "),n("wp-editor",{model:{value:t.table_buttons.print.header_html,callback:function(e){t.$set(t.table_buttons.print,"header_html",e)},expression:"table_buttons.print.header_html"}})],2),t._v(" "),n("el-collapse-item",{attrs:{title:"Print Screen Footer",name:"footer"}},[[n("label",[t._v("Footer in each page")]),t._v(" "),n("el-radio",{attrs:{label:"yes"},model:{value:t.table_buttons.print.footer_each_page,callback:function(e){t.$set(t.table_buttons.print,"footer_each_page",e)},expression:"table_buttons.print.footer_each_page"}},[t._v("Yes")]),t._v(" "),n("el-radio",{attrs:{label:"no"},model:{value:t.table_buttons.print.footer_each_page,callback:function(e){t.$set(t.table_buttons.print,"footer_each_page",e)},expression:"table_buttons.print.footer_each_page"}},[t._v("No")])],t._v(" "),n("wp-editor",{model:{value:t.table_buttons.print.footer_html,callback:function(e){t.$set(t.table_buttons.print,"footer_html",e)},expression:"table_buttons.print.footer_html"}})],2)],1)]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Buttons Position")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_position,callback:function(e){t.$set(t.table_buttons,"button_position",e)},expression:"table_buttons.button_position"}},t._l(t.button_positions,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Buttons Alignment")]),t._v(" "),n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_alignment,callback:function(e){t.$set(t.table_buttons,"button_alignment",e)},expression:"table_buttons.button_alignment"}},t._l(t.buttonAlignments,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1),t._v(" "),t.hasPro?n("div",{staticClass:"form_group"},[n("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"success"},on:{click:function(e){return t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):n("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("CSV Export / Print Button Settings for Frontend")]),this._v(" "),e("p",[this._v("You can enable/disable print and csv export settings here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Export CSV and Table Print is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"table-column-settings"},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[n("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),n("span",[t._v("Columns")])]),t._v(" "),n("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[n("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),n("span",[t._v("Rendering Settings")])]),t._v(" "),n("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[n("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),n("span",[t._v("Custom Filters")])]),t._v(" "),n("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[n("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),n("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),n("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[n("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),n("span",[t._v("Language Settings")])])],1)],1),t._v(" "),n("el-main",["columns"==t.active_menu?[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Column Settings")])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"section_widget"},[n("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.columns.length,expression:"columns.length"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.addColumnStatus=!t.addColumnStatus}}},[t._v("\n "+t._s(t.$t("Add Column"))+"\n ")])],1):t._e()]),t._v(" "),n("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?n("div",{staticClass:"column"},[n("div",{staticClass:"add_column_wrapper"},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:t.new_column,settings:t.config.settings,"has-pro":t.has_pro},on:{add:function(e){return t.addNewColumn()},cancel:function(e){t.addColumnStatus=!t.addColumnStatus}}})],1)]):t._e(),t._v(" "),n("draggable",{attrs:{handle:".handle",animation:"150"},on:{end:t.storeSettings},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}},t._l(t.columns,function(e,a){return n("div",{key:e.key,staticClass:"column drawer"},[n("div",{staticClass:"header"},[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),n("span",{on:{click:function(e){return t.openDrawer(a)}}},[t._v(t._s(e.name||e.key))]),t._v(" "),n("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){return t.openDrawer(a)}}})]),t._v(" "),n("div",{staticClass:"drawer_body",class:"drawer_body_"+a},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:e,"has-pro":t.has_pro,settings:t.config.settings,updating:!0},on:{delete:function(e){return t.deleteColumn(a)},store:function(e){return t.storeSettings()}}})],1)])}),0)],1)]),t._v(" "),n("div",{staticClass:"proms"},[n("div",{staticClass:"help_section"},[n("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n video "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])]),t._v(" "),t.is_fluent_installed?t._e():n("div",{staticClass:"help_section"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form\n Builder plugin with some amazing Premium features "),n("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[n("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[n("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[n("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[n("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(579),n(588),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(580),o=n.n(a),i=n(583),s=n.n(i);e.default={name:"ExportImport",components:{export:o.a,import:s.a},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}}},function(t,e,n){var a=n(0)(n(581),n(582),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ExportTable",props:["config"],data:function(){return{tableId:this.$route.params.table_id,exportOptions:{csv:"CSV",json:"JSON"},selected:"csv"}},methods:{downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={action:"ninja_tables_ajax_actions",target_action:"export-data",table_id:this.tableId,format:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};return ajaxurl+"?"+jQuery.param(e)},doExport:function(){var t=this.downloadLink(this.selected);location.href=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?n("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),n("div",{staticClass:"ninja_export_block"},[t._v("\n "+t._s(t.$t("Format:"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selected=e.target.multiple?n:n[0]}}},t._l(t.exportOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:function(e){return e.preventDefault(),t.doExport()}}},[t._v("\n "+t._s(t.$t("Export"))+"\n ")])],1)]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not export the data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_suggest"},[e("p",[this._v("You can download the table data as CSV or JSON format, If you download as json then you can import the table to any Ninja Table Installation")])])}]}},function(t,e,n){var a=n(0)(n(586),n(587),!1,function(t){n(584)},"data-v-3dd4e718",null);t.exports=a.exports},function(t,e,n){var a=n(585);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5c22a252",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"#fileUpload[data-v-3dd4e718]{max-width:200px}.justify-items[data-v-3dd4e718]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ninja_content .ninja_suggest[data-v-3dd4e718]{background:#f1f1f1}.ninja_content[data-v-3dd4e718]{margin:1em 0}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a);e.default={name:"Import",props:["config","tableId"],data:function(){return{btnLoading:!1,replace:!1,tutorial:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",do_unicode:"no"}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},sampleData:function(){var t={};return o()(this.columns,function(e){t[e.key]="column value"}),Array(3).fill(t)}},methods:{clear:function(){jQuery("#fileUpload").val("")},upload:function(){var t=this;t.btnLoading=!0;var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","upload-data"),n.append("table_id",this.tableId),n.append("replace",this.replace),n.append("do_unicode",this.do_unicode),n.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$emit("csvUploaded"),t.clear(),t.$message.success(e.message)},error:function(e){t.$message.error(e.responseJSON.message)}}).always(function(){t.btnLoading=!1})}else t.btnLoading=!1},download:function(){var t=[],e=this.config.columns.map(function(t){return t.key});t.push(e),[1,2].forEach(function(n,a){var o=[];e.forEach(function(t,e){o.push("content_"+a+"_"+e)}),t.push(o)});var n="data:text/csv;charset=utf-8,";t.forEach(function(e,a){var o=e.join(",");n+=a<t.length?o+"\n":o});var a=encodeURI(n),o=document.createElement("a");o.setAttribute("href",a),o.setAttribute("download","sample.csv"),document.body.appendChild(o),o.click()}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?n("div",{staticClass:"ninja_content"},[t.columns.length?n("div",[n("form",{attrs:{action:"",id:"fileUploadForm"}},[n("div",{staticClass:"form-group"},[n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),n("el-checkbox",{model:{value:t.replace,callback:function(e){t.replace=e},expression:"replace"}},[t._v(t._s(t.$t("Replace Existing Data")))])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",size:"small",loading:t.btnLoading},on:{click:function(e){return e.preventDefault(),t.upload(e)}}},[t._v("\n "+t._s(t.$t("Import from CSV"))+"\n ")])],1)]),t._v(" "),n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("\n Please note that, your CSV data structure need to follow the sample CSV.\n You may want to check the "),n("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("\n Also make sure the content is in UTF-8 format, for the best result.\n ")])]),t._v(" "),n("div",{staticClass:"justify-items"},[n("h3",[t._v("\n "+t._s(t.$t("CSV Header Structure"))+"\n ")]),t._v(" "),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:t.download}},[t._v("\n "+t._s(t.$t("Download Sample CSV"))+"\n ")])],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})}),1),t._v(" "),n("h3",[t._v("or as bellow")]),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})}),1)],1):n("div",{staticClass:"error"},[n("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not import any data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[n("i",{staticClass:"el-icon-upload"}),t._v(" "),n("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),n("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[n("i",{staticClass:"el-icon-download"}),t._v(" "),n("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),n("el-main",[n(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(590),n(597),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(591),o=n.n(a),i=n(594),s=n.n(i);e.default={name:"help",components:{fluentpromoad:o.a,ninja_premium:s.a},data:function(){return{docs:[{title:"Ninja Tables Introduction",url:"https://wpmanageninja.com/r/docs/ninja-tables/getting-started/?utm_source=ninja-tables"},{title:"Ninja Tables Demo",url:"https://wpmanageninja.com/docs/ninja-tables/configure-tables/?utm_source=ninja-tables"},{title:"Setting up a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/setting-up-a-table/?utm_source=ninja-tables"},{title:"Configure Responsive Breakdowns for Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"},{title:"Import Table Data from CSV",url:"https://wpmanageninja.com/r/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Export Data from a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/export-data/?utm_source=ninja-tables"},{title:"Import Table from CSV",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from JSON file",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from Table Press Plugin",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-from-table-press-plugin/?utm_source=ninja-tables"}],img_url:window.ninja_table_admin.img_url}},methods:{imageUrl:function(t){return this.img_url+t}},mounted:function(){}}},function(t,e,n){var a=n(0)(n(592),n(593),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"fluentpromoad_2",props:["dismisable"],data:function(){return{img_url_path:window.ninja_table_admin.img_url,fluent_url:window.ninja_table_admin.fluentform_url,fluent_wp_url:window.ninja_table_admin.fluent_wp_url,is_installed:window.ninja_table_admin.isInstalled,already_dismissed:window.ninja_table_admin.dismissed}},computed:{will_it_show:function(){return!this.is_installed&&(!this.dismisable||!this.already_dismissed)}},methods:{image_url:function(t){return this.img_url_path+t},dismiss:function(){var t=this;this.$post({action:"ninja_tables_ajax_actions",target_action:"dismiss_fluent_suggest"}).then(function(t){}).fail(function(t){}).always(function(){t.is_installed=!0})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.will_it_show?n("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?n("div",{staticClass:"ninja_dismiss",on:{click:function(e){return t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),n("div",{staticClass:"ninja_form_banner"},[n("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),n("div",{staticClass:"ninja_fluent_copy"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form Builder plugin with some amazing Premium features")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),n("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(595),n(596),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_premium",data:function(){return{img_url_path:window.ninja_table_admin.img_url}},computed:{will_it_show:function(){return!window.ninja_table_admin.hasPro||""==window.ninja_table_admin.hasPro}},methods:{image_url:function(t){return this.img_url_path+t}}}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return this.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:this.image_url("banner_premium.png")}})]),this._v(" "),this._m(0)]):this._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_fluent_copy"},[e("p",[this._v("Have you checked out NinjaTables Pro Add-On yet? We have added some exciting features in Ninja Tables with Pro Add-On")]),this._v(" "),e("a",{staticClass:"button button-primary",attrs:{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"}},[this._v("Download Now")]),this._v(" "),e("a",{staticClass:"button",attrs:{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"}},[this._v("View Details")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v(t._s(t.$t("Plugin Documentation and Help")))]),t._v(" "),n("hr"),t._v(" "),n("ninja_premium"),t._v(" "),n("div",{staticClass:"ninja_documentaion_wrapper"},[n("div",{staticClass:"ninja_doc_top_blocks"},[n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),n("h3",[t._v("Try WP FluentFrom")]),t._v(" "),t._m(0),t._v(" "),t._m(1)])]),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("azonpress_logo.jpg")}}),t._v(" "),n("h3",[t._v("Amazon Affiliate Plugin")]),t._v(" "),n("p",[t._v("Amazon Affiliate WordPress Plugin for serious Amazon Affiliates")]),t._v(" "),t._m(3)])]),t._v(" "),n("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container"},[n("h3",[t._v("User Guide")]),t._v(" "),n("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),n("ul",{staticClass:"doc_items"},t._l(t.docs,function(e,a){return n("li",{key:a},[n("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])}),0)])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),n("h3",[t._v("Love this Plugin?")]),t._v(" "),n("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")]),t._v(" "),t._m(4)])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),n("h3",[t._v("Need And Expert Support?")]),t._v(" "),n("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")]),t._v(" "),t._m(5)])])])]),t._v(" "),n("fluentpromoad")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Need to build a contact form by drag and drop form builder?")]),this._v(" Try the modern contact form plugin with all the necessary input fields, notifications and connect your form with powerful integrations")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[this._v("Download from wp.org (Free)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png?rev=2108991"}}),this._v(" "),e("h3",[this._v("WPPayForm - Accept Payment Easily with WordPress Forms")]),this._v(" "),e("p",[this._v("Do you want to accept payments along with user inputs in WordPress? Then WPPayForm is the perfect plugin for you.")]),this._v(" "),e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[this._v("Download WPPayForm (Free)")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/azonpress/"}},[this._v("Download AzonPress")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/"}},[this._v("Write Review")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[this._v("Contact Support")])])}]}},function(t,e,n){var a=n(0)(n(601),n(612),!1,function(t){n(599)},null,null);t.exports=a.exports},function(t,e,n){var a=n(600);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("66bf9da4",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".js_instruction{padding:10px 20px;background:#fff;margin-bottom:20px;font-size:14px;line-height:22px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:n(602),ace_js_editor:n(607)},data:function(){return{current_tab:"additional_css",custom_css:"",custom_js:"",hasPro:!!window.ninja_table_admin.hasPro,fetching:!1}},methods:{saveScripts:function(){var t=this;this.hasPro||(this.custom_js=""),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_custom_css_js",table_id:this.config.table.ID,custom_css:this.custom_css,custom_js:this.custom_js}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$set(t.config.table,"custom_css",t.custom_css)}).then(function(t){console.log(t)}).always(function(){})},getScripts:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_custom_css_js",table_id:this.config.table.ID}).then(function(e){t.custom_css=e.data.custom_css,t.custom_js=e.data.custom_js}).fail(function(t){}).always(function(){t.fetching=!1})}},mounted:function(){this.getScripts()}}},function(t,e,n){var a=n(0)(n(605),n(606),!1,function(t){n(603)},null,null);t.exports=a.exports},function(t,e,n){var a=n(604);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("011ca082",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(610),n(611),!1,function(t){n(608)},null,null);t.exports=a.exports},function(t,e,n){var a=n(609);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("76fce250",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor_js",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_js");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fetching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[n("h3",[t._v("Loading... Please wait")])]):n("div",{staticClass:"section_block"},[n("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[n("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),n("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),n("hr"),t._v(" "),"additional_css"==t.current_tab?[n("p",[t._v("\n You may add "),n("code",[t._v("#footable_parent_"+t._s(t.config.table.ID)+" ")]),t._v(" as your css selector prefix to target this specific table.\n Alternatively, you can use "),n("code",[t._v("#footable_parent_NT_ID")]),t._v(" where "),n("b",[t._v("NT_ID")]),t._v(" will be replaced with your table ID dynamically.\n ")]),t._v(" "),n("ace_code_editor",{attrs:{editor_id:"ninja_custom_css",mode:"css"},model:{value:t.custom_css,callback:function(e){t.custom_css=e},expression:"custom_css"}}),t._v(" "),t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[n("p",[t._v("Your additional JS code will run after ninja table initialized. Please provide valid javascript code. Invalid JS code may break the table UI.")]),t._v(" "),t._m(1),t._v(" "),n("ace_js_editor",{attrs:{editor_id:"ninja_custom_js",mode:"javascript"},model:{value:t.custom_js,callback:function(e){t.custom_js=e},expression:"custom_js"}}),t._v(" "),t._m(2),t._v(" "),t.hasPro?[n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[n("p",[t._v("Custom Javascript feature is a pro feature along with many awesome features. Please upgrade to pro.")])]]:t._e()],2),t._v(" "),n("div",{staticClass:"section_block"})])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<style></style>")]),this._v(" tag")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"js_instruction"},[this._v("\n The Following Javascript variables are available that you can use: "),e("br"),this._v(" "),e("b",[this._v("$table")]),this._v(" : The Javascript DOM object of the table"),e("br"),this._v(" "),e("b",[this._v("tableConfig")]),this._v(" : The configuration object of the table.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<script><\/script>")]),this._v(" tag")])}]}},function(t,e,n){var a=n(0)(n(616),n(617),!1,function(t){n(614)},null,null);t.exports=a.exports},function(t,e,n){var a=n(615);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("44020ffa",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{width:480px;margin:0 auto}.footable_parent.ninja_device_tablet{max-width:768px;padding:0 20px;margin:0 auto}.font-setting .font{margin-top:10px}.font-setting .font label{width:30%}.ninja_footable tbody tr td{font-size:var(--ninja-table-font-size);font-family:var(--ninja-table-font-family)}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(118),o=n(60),i=n.n(o),s=n(142),l=n.n(s),r=n(106),c=n.n(r),u=n(217),d=n.n(u),p=n(223),_=n.n(p),f=n(181),m=n.n(f),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"table_preview",props:["config"],components:{SortableUpgradeNotice:_.a,NinjaColorPicker:m.a},data:function(){return{fontFamily:["cursive","fantasy","monospace","sans-serif","serif","system-ui","ui-monospace","ui-rounded","ui-sans-serif","ui-serif"],rows:[],activeDesign:"features",tableId:this.$route.params.table_id,tableSettings:this.config.settings,table_body_html:"",data_loaded:!1,script_loaded:!1,footableLoading:!1,tableLibs:Object(a.a)(),has_pro:!!window.ninja_table_admin.hasPro,savingSettings:!1,tableInnerHtml:"",showingDevice:"desktop",hasSortable:!!window.ninja_table_admin.hasSortable,sortableUpgradeNotice:!1,columnCss:""}},computed:{fontSetting:function(){return{"--ninja-table-font-family":this.tableSettings.table_font_family,"--ninja-table-font-size":this.tableSettings.table_font_size+"px"}},wrapperClasses:function(){var t=[];return t.push(this.tableSettings.css_lib),t.push("ninja_device_"+this.showingDevice),"custom_color"!=this.tableSettings.table_color_type&&"ninja_no_color_table"==this.tableSettings.table_color||t.push("colored_table"),t},tableClasses:function(){var t=this,e=[];e.push("foo_table_"+this.tableId),"custom_color"==this.tableSettings.table_color_type?(e.push("inverted"),e.push("ninja_custom_color")):(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color&&e.push("inverted"),e.push(this.tableSettings.table_color)),this.tableSettings.pagination_position?e.push("footable-paging-"+this.tableSettings.pagination_position):e.push("footable-paging-right"),this.tableSettings.hide_header_row&&e.push("ninjatable_hide_header_row"),this.tableSettings.hide_all_borders&&e.push("hide_all_borders"),e.push("ninja_table_pro"),this.tableSettings.search_position&&e.push("ninja_search_"+this.tableSettings.search_position);var n=[];return this.tableSettings.css_classes&&(n=this.availableCssClasses.filter(function(e){return-1!=t.tableSettings.css_classes.indexOf(e)})),this.tableSettings.hide_responsive_labels&&e.push("nt_hide_breakpoint_labels"),this.tableSettings.nt_search_full_width&&e.push("nt_search_full_width"),"semantic_ui"==this.tableSettings.css_lib&&e.push("ui"),[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n),e)},formattedColumns:function(){var t=this.config.columns,e=[];return jQuery.each(t,function(t,n){e.push({name:n.key,title:n.name,breakpoints:n.breakpoints,type:n.data_type,sortable:!0,classes:["ninja_column_"+t],visible:"hidden"!=n.breakpoints})}),e},app_ready:function(){return this.data_loaded&&this.script_loaded},currentTableLibs:function(){return this.tableLibs[this.tableSettings.library].css_libs},colors:function(){return this.tableLibs[this.tableSettings.library].colors},availableStyles:function(){var t=this.currentTableLibs[this.tableSettings.css_lib];return!!t&&t.styles},availableCssClasses:function(){var t=[];return c()(this.availableStyles,function(e){t.push(e.key)}),t},showProNotice:function(){return!this.has_pro&&!!("custom_color"==this.tableSettings.table_color_type&&"color_customization"==this.activeDesign||"color_customization"==this.activeDesign&&this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color)},design_tips:function(){var t=[];return"custom_color"==this.tableSettings.table_color_type&&(this.tableSettings.table_search_color_primary&&this.tableSettings.table_header_color_primary&&this.tableSettings.table_color_primary&&this.tableSettings.table_color_secondary||t.push('You should set colors at <b>"Table Colors"</b> Tab')),t}},watch:{data_loaded:function(){this.app_ready&&this.reInitFootables()},script_loaded:function(){this.app_ready&&this.reInitFootables()},tableSettings:{handler:function(t){var e=this;this.$nextTick(function(){e.generateColorCss()})},deep:!0},tableClasses:{handler:function(t){var e=this;this.$nextTick(function(){e.reInitFootables()})},deep:!0},"tableSettings.enable_search":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.column_sorting":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.show_all":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.togglePosition":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.expand_type":function(t,e){var n=this;if("default"!=t&&!this.has_pro)return this.tableSettings.expand_type="default",void window.ninjaTableBus.$emit("show_pro_popup",1);this.$nextTick(function(){n.reInitFootables()})},"tableSettings.sorting_type":function(t,e){"manual_sort"===t&&(this.has_pro?this.hasSortable?this.initManualSorting():this.hasSortable||(this.tableSettings.sorting_type=e,this.sortableUpgradeNotice=!0):(this.tableSettings.sorting_type=e,window.ninjaTableBus.$emit("show_pro_popup",1)))},activeDesign:function(){this.checkColorPro()}},methods:{fetchTableBody:function(){var t=this;this.$get({action:"ninja_tables_ajax_actions",target_action:"get_table_preview_html",table_id:this.tableId}).then(function(e){t.tableInnerHtml=e,t.data_loaded=!0}).fail(function(e){jQuery("#footable_"+t.tableId).append("<h1>Error Loading</h1>")})},initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},storeSettings:function(){var t=this;this.checkColorPro(),this.savingSettings=!0;this.filterTableSettings(this.tableSettings);var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post(e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(t){}).always(function(){t.savingSettings=!1})},filterTableSettings:function(t){var e=[];return c()(this.availableStyles,function(t){e.push(t.key)}),t.css_classes=d()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":v(FooTable))){var t=FooTable.get("#footable_"+this.tableId);t&&t.destroy()}jQuery("#footable_"+this.tableId).find("thead,tbody,tfoot").remove(),this.footableLoading=!1,jQuery("#footable_"+this.tableId).append(this.tableInnerHtml),this.initFootables()}},initFootables:function(){if(!this.footableLoading&&this.script_loaded){this.footableLoading=!0;var t=window.ninjaTableApp,e=jQuery("#footable_"+this.tableId);this.tableSettings.hide_on_empty&&e.on("expanded.ft.row",function(t,n,a){e.find("table.footable-details td:empty").parent().addClass("nt_has_hide")});var n=this.getTableConfig();t.initTable(e,n),this.footableLoading=!1}},dysel:function(t){for(var e=t.links,n=t.callback,a=t.nocache,o=t.debug,i=function(t,e){var n=(t=t.toString()).split(".").pop(),a=null;if("js"==n?((a=document.createElement("script")).setAttribute("type","text/javascript"),a.setAttribute("src",t)):("css"==n||t.indexOf("googleapis.com/css?")>-1)&&((a=document.createElement("link")).setAttribute("rel","stylesheet"),a.setAttribute("type","text/css"),a.setAttribute("href",t)),void 0!==a){if(e){var i=e;o&&(i=function(){e()}),a.onreadystatechange=i,a.onload=i}document.getElementsByTagName("head")[0].appendChild(a)}},s=n,l=e.length-1;l>=0;l--){var r=s,c=e[l];a&&(c+="?"+ +(new Date).getTime()),s=function(t){i(this,t)}.bind(c,r)}s()},loadRequiredScripts:function(){var t=this;this.dysel({links:window.ninja_table_admin.preview_required_scripts,callback:function(){t.script_loaded=!0}})},size:l.a,get:i.a,generateColorCss:function(){if("pre_defined_color"!=this.tableSettings.table_color_type){var t="#footable_"+this.tableId,e="\n "+t+" {\n background-color: "+this.tableSettings.table_color_primary+" !important;\n color: "+this.tableSettings.table_color_secondary+" !important;\n }\n "+t+" thead tr.footable-filtering th {\n background-color: "+this.tableSettings.table_search_color_primary+" !important;\n color: "+this.tableSettings.table_search_color_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) thead tr.footable-filtering th {\n "+(this.tableSettings.table_search_color_border?"\n border : 1px solid "+this.tableSettings.table_search_color_border+" !important;\n ":"\n border : 1px solid transparent !important;\n ")+"\n }\n "+t+" .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n background-color: "+this.tableSettings.table_search_color_secondary+" !important;\n color: "+this.tableSettings.table_search_color_primary+" !important;\n }\n "+t+" tr.footable-header, "+t+" tr.footable-header th {\n background-color: "+this.tableSettings.table_header_color_primary+" !important;\n color: "+this.tableSettings.table_color_header_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) tr.footable-header th {\n border-color: "+this.tableSettings.table_color_header_border+" !important;\n }\n "+t+":not(.hide_all_borders) tbody tr td {\n border-color: "+this.tableSettings.table_color_border+" !important;\n }\n "+t+" tbody tr:hover {\n background-color: "+this.tableSettings.table_color_primary_hover+" !important;\n color: "+this.tableSettings.table_color_secondary_hover+" !important;\n }\n "+t+" tbody tr:hover td {\n border-color: "+this.tableSettings.table_color_border_hover+" !important;\n }\n\n "+("yes"==this.tableSettings.alternate_color_status?"\n "+t+" tbody tr:nth-child(even) {\n background-color: "+this.tableSettings.table_alt_color_primary+";\n color: "+this.tableSettings.table_alt_color_secondary+";\n }\n "+t+" tbody tr:nth-child(odd) {\n background-color: "+this.tableSettings.table_alt_2_color_primary+";\n color: "+this.tableSettings.table_alt_2_color_secondary+";\n }\n "+t+" tbody tr:nth-child(even):hover {\n background-color: "+this.tableSettings.table_alt_color_hover+";\n }\n "+t+" tbody tr:nth-child(odd):hover {\n background-color: "+this.tableSettings.table_alt_2_color_hover+";\n }\n ":"\n ")+"\n\n "+t+" tfoot .footable-paging {\n background-color: "+this.tableSettings.table_footer_bg+" !important;\n }\n "+t+" tfoot .footable-paging .footable-page.active a {\n background-color: "+this.tableSettings.table_footer_active+" !important;\n }\n "+t+":not(.hide_all_borders) tfoot .footable-paging td {\n border-color: "+this.tableSettings.table_footer_border+" !important;\n }\n ";jQuery("#table_designer_css").html(e)}else jQuery("#table_designer_css").html("")},changeColor:function(t,e){this.$set(this.tableSettings,e,t)},checkColorPro:function(){this.has_pro||(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color||"pre_defined_color"!=this.tableSettings.table_color_type)&&(this.tableSettings.table_color_type="pre_defined_color",this.tableSettings.table_color="ninja_no_color_table")},generateDefaultCss:function(){var t=this,e=this.config.table.custom_css;this.config.columns.forEach(function(n,a){(n.background_color||n.text_color||n.contentAlign)&&(e+="#footable_parent_"+t.tableId+" thead tr th.ninja_column_"+a+", #footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { background-color: "+n.background_color+"; color: "+n.text_color+"; }",e+="#footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { text-align: "+n.contentAlign+"; }")}),jQuery("#ninja_table_designer_common_css").html(e)},getTableConfig:function(){var t={};this.config.columns.forEach(function(e,n){t["ninja_column_"+n]={"text-align":e.textAlign,width:e.width+"px"}});var e={default_sorting:"old_first",defualt_filter:!1,defualt_filter_column:null,expandAll:"expandAll"===this.tableSettings.expand_type,expandFirst:"expandFirst"===this.tableSettings.expand_type,filtering:!!this.tableSettings.enable_search,i18n:{},use_parent_width:"desktop"!==this.showingDevice,sorting:!!this.tableSettings.column_sorting,togglePosition:this.tableSettings.togglePosition},n={toggleColumn:this.tableSettings.togglePosition,cascade:!0,useParentWidth:"desktop"!==this.showingDevice,columns:this.config.columns,expandFirst:"expandFirst"===this.tableSettings.expand_type,expandAll:"expandAll"===this.tableSettings.expand_type,empty:"",filtering:{enabled:!!this.tableSettings.enable_search},paging:{enabled:"0"==this.tableSettings.show_all||0==this.tableSettings.show_all,size:10,container:"#footable_parent_"+this.tableId+" .paging-ui-container"},sorting:{enabled:!!this.tableSettings.column_sorting}};return{columns:this.formattedColumns.forEach(function(t){return Object.assign({},t)}),custom_css:t,settings:e,render_type:"legacy_table",instance_name:"ninja_table_instance_0",table_id:this.table_id,title:"",init_config:n}}},mounted:function(){this.fetchTableBody(),this.loadRequiredScripts(),this.tableSettings.table_color_type||("ninja_table_custom_color"==this.tableSettings.table_color?this.$set(this.tableSettings,"table_color_type","custom_color"):this.$set(this.tableSettings,"table_color_type","pre_defined_color")),jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px"),jQuery(window).on("resize",function(){jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px")}),this.generateDefaultCss(),this.generateColorCss()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_design"},[n("div",{staticClass:"ninja_title_section"},[n("div",{staticClass:"ninja_title"},[n("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),n("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[n("el-radio-button",{attrs:{label:"desktop"}},[n("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"tablet"}},[n("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"mobile"}},[n("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n ")])],1)],1),t._v(" "),n("el-button",{attrs:{loading:t.savingSettings,disabled:t.savingSettings,size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Settings\n ")])],1),t._v(" "),n("div",{staticClass:"ninja_design_wrapper"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.app_ready,expression:"!app_ready"}],staticClass:"design_preview",staticStyle:{background:"white",padding:"10px 20px"}},[t.showProNotice?n("div",{staticClass:"ninja_upgrade_bar"},[t._v("\n "+t._s(t.$t("Color customization is a PRO feature. Please upgrade to pro apply this feature."))+"\n "),n("a",{attrs:{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_studio"}},[t._v(t._s(t.$t("Upgrade To Pro")))])]):t._e(),t._v(" "),n("div",{staticClass:"footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent",class:t.wrapperClasses,attrs:{id:"footable_parent_"+t.tableId}},[t.tableSettings.show_title?n("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?n("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),n("table",{directives:[{name:"show",rawName:"v-show",value:t.app_ready,expression:"app_ready"}],staticClass:"table foo-table ninja_footable",class:t.tableClasses,style:t.fontSetting,attrs:{id:"footable_"+t.tableId}},[n("colgroup",t._l(t.formattedColumns,function(t,e){return n("col",{key:e,class:["ninja_column_"+e,t.breakpoints]})}),0),t._v(" "),n("thead")])]),t._v(" "),n("div",{staticClass:"ninja_demo_disclaimer"},[n("hr"),t._v(" "),"yes"==t.tableSettings.stackable?n("p",[n("b",[t._v("For Stackable Tables, Live preview is disabled here. Please check on preview url")])]):t._e(),t._v(" "),t._m(0),t._v(" "),n("p",[t._v("Some elements like custom filters and row-inline styling is not available in this design mode. Please check on live preview or in your embeded page.")])])]),t._v(" "),n("div",{staticClass:"design_controls"},[n("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[n("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[n("div",{staticClass:"form_group"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Select Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.css_lib,callback:function(e){t.$set(t.tableSettings,"css_lib",e)},expression:"tableSettings.css_lib"}},t._l(t.currentTableLibs,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}),1)],1),t._v(" "),t.availableStyles?n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.css_classes,expression:"tableSettings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,e.key)>-1:t.tableSettings.css_classes},on:{change:function(n){var a=t.tableSettings.css_classes,o=n.target,i=!!o.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);o.checked?l<0&&t.$set(t.tableSettings,"css_classes",a.concat([s])):l>-1&&t.$set(t.tableSettings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.tableSettings,"css_classes",i)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2):t._e(),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_title,expression:"tableSettings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.tableSettings.show_title)?t._i(t.tableSettings.show_title,"1")>-1:t.tableSettings.show_title},on:{change:function(e){var n=t.tableSettings.show_title,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"show_title",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"show_title",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"show_title",o)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_description,expression:"tableSettings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.tableSettings.show_description)?t._i(t.tableSettings.show_description,"1")>-1:t.tableSettings.show_description},on:{change:function(e){var n=t.tableSettings.show_description,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"show_description",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"show_description",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"show_description",o)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.enable_search,expression:"tableSettings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.tableSettings.enable_search)?t._i(t.tableSettings.enable_search,"1")>-1:t.tableSettings.enable_search},on:{change:function(e){var n=t.tableSettings.enable_search,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"enable_search",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"enable_search",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"enable_search",o)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n ")]),t._v(" "),t.tableLibs[t.tableSettings.library].supports.sorting&&!t.tableSettings.enable_ajax?n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.column_sorting,expression:"tableSettings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.tableSettings.column_sorting)?t._i(t.tableSettings.column_sorting,"1")>-1:t.tableSettings.column_sorting},on:{change:function(e){var n=t.tableSettings.column_sorting,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"column_sorting",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"column_sorting",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"column_sorting",o)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n ")]):t._e(),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_header_row,expression:"tableSettings.hide_header_row"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_header_row)?t._i(t.tableSettings.hide_header_row,null)>-1:t.tableSettings.hide_header_row},on:{change:function(e){var n=t.tableSettings.hide_header_row,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_header_row",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_header_row",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_header_row",o)}}}),t._v("\n Hide Header Row\n ")]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_all_borders,expression:"tableSettings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_all_borders)?t._i(t.tableSettings.hide_all_borders,null)>-1:t.tableSettings.hide_all_borders},on:{change:function(e){var n=t.tableSettings.hide_all_borders,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_all_borders",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_all_borders",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_all_borders",o)}}}),t._v("\n Hide All Borders\n ")]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_on_empty,expression:"tableSettings.hide_on_empty"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_on_empty)?t._i(t.tableSettings.hide_on_empty,null)>-1:t.tableSettings.hide_on_empty},on:{change:function(e){var n=t.tableSettings.hide_on_empty,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_on_empty",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_on_empty",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_on_empty",o)}}}),t._v("\n Hide empty items on responsive breakdown "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then the empty ietems will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_responsive_labels,expression:"tableSettings.hide_responsive_labels"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_responsive_labels)?t._i(t.tableSettings.hide_responsive_labels,null)>-1:t.tableSettings.hide_responsive_labels},on:{change:function(e){var n=t.tableSettings.hide_responsive_labels,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_responsive_labels",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_responsive_labels",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_responsive_labels",o)}}}),t._v("\n Hide Labels on responsive breakdown "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("\n Stackable Table Configuration\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"With stackable table, You can show your rows as list item. You can target by device width"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.stackable,callback:function(e){t.$set(t.tableSettings,"stackable",e)},expression:"tableSettings.stackable"}},[t._v("\n Enable Stackable Table\n ")]),t._v(" "),"yes"==t.tableSettings.stackable?[n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[n("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),n("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[n("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),n("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n ")])],1)]:t._e()],2)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[n("div",{staticClass:"form_group"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Select Color Scheme")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.table_color_type,callback:function(e){t.$set(t.tableSettings,"table_color_type",e)},expression:"tableSettings.table_color_type"}},[n("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),n("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?n("div",{staticClass:"form_group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.table_color,expression:"tableSettings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.colors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v(t._s(e)+"\n ")])}),0)]):n("div",{staticClass:"form_group ninja_color_customization"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_search_color_primary,callback:function(e){t.$set(t.tableSettings,"table_search_color_primary",e)},expression:"tableSettings.table_search_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_search_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_search_color_secondary",e)},expression:"tableSettings.table_search_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_search_color_border,callback:function(e){t.$set(t.tableSettings,"table_search_color_border",e)},expression:"tableSettings.table_search_color_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_header_color_primary,callback:function(e){t.$set(t.tableSettings,"table_header_color_primary",e)},expression:"tableSettings.table_header_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_header_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_header_secondary",e)},expression:"tableSettings.table_color_header_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_header_border,callback:function(e){t.$set(t.tableSettings,"table_color_header_border",e)},expression:"tableSettings.table_color_header_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),n("el-tabs",[n("el-tab-pane",{attrs:{label:"Default"}},[n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary,callback:function(e){t.$set(t.tableSettings,"table_color_primary",e)},expression:"tableSettings.table_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_secondary",e)},expression:"tableSettings.table_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border,callback:function(e){t.$set(t.tableSettings,"table_color_border",e)},expression:"tableSettings.table_color_border"}})],1)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Hover"}},[n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary_hover,callback:function(e){t.$set(t.tableSettings,"table_color_primary_hover",e)},expression:"tableSettings.table_color_primary_hover"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary_hover,callback:function(e){t.$set(t.tableSettings,"table_color_secondary_hover",e)},expression:"tableSettings.table_color_secondary_hover"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border_hover,callback:function(e){t.$set(t.tableSettings,"table_color_border_hover",e)},expression:"tableSettings.table_color_border_hover"}})],1)])])],1),t._v(" "),n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Use Alternate Color Schema for Table Rows","active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.alternate_color_status,callback:function(e){t.$set(t.tableSettings,"alternate_color_status",e)},expression:"tableSettings.alternate_color_status"}})],1),t._v(" "),"yes"==t.tableSettings.alternate_color_status?n("div",{staticClass:"ninja_alternate_colors"},[n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_2_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_primary",e)},expression:"tableSettings.table_alt_2_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_2_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_secondary",e)},expression:"tableSettings.table_alt_2_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_2_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_hover",e)},expression:"tableSettings.table_alt_2_color_hover"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_primary",e)},expression:"tableSettings.table_alt_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_secondary",e)},expression:"tableSettings.table_alt_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_color_hover",e)},expression:"tableSettings.table_alt_color_hover"}})],1)])]):t._e(),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_footer_bg,callback:function(e){t.$set(t.tableSettings,"table_footer_bg",e)},expression:"tableSettings.table_footer_bg"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Active"},model:{value:t.tableSettings.table_footer_active,callback:function(e){t.$set(t.tableSettings,"table_footer_active",e)},expression:"tableSettings.table_footer_active"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_footer_border,callback:function(e){t.$set(t.tableSettings,"table_footer_border",e)},expression:"tableSettings.table_footer_border"}})],1)])],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.tableSettings.show_all,callback:function(e){t.$set(t.tableSettings,"show_all",e)},expression:"tableSettings.show_all"}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tableSettings.show_all,expression:"tableSettings.show_all == 0"}],staticClass:"form_group"},[n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.perPage,expression:"tableSettings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all},domProps:{value:t.tableSettings.perPage},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"perPage",e.target.value)}}})]),t._v(" "),n("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all,size:"mini"},model:{value:t.tableSettings.pagination_position,callback:function(e){t.$set(t.tableSettings,"pagination_position",e)},expression:"tableSettings.pagination_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paginate_to_top,expression:"tableSettings.paginate_to_top"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.paginate_to_top)?t._i(t.tableSettings.paginate_to_top,null)>-1:t.tableSettings.paginate_to_top},on:{change:function(e){var n=t.tableSettings.paginate_to_top,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"paginate_to_top",n.concat([null])):i>-1&&t.$set(t.tableSettings,"paginate_to_top",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"paginate_to_top",o)}}}),t._v("\n Scroll to table top for pagination change "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_pager,expression:"tableSettings.show_pager"}],attrs:{disabled:!t.has_pro,type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.show_pager)?t._i(t.tableSettings.show_pager,null)>-1:t.tableSettings.show_pager},on:{change:function(e){var n=t.tableSettings.show_pager,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"show_pager",n.concat([null])):i>-1&&t.$set(t.tableSettings,"show_pager",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"show_pager",o)}}}),t._v("\n Show Page sizes change option "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then Users can change the items per page on frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.tableSettings.show_pager?n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Page Sizes (Number as Comma Separated)")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paze_sizes,expression:"tableSettings.paze_sizes"}],staticClass:"form_control",attrs:{type:"text",placeholder:"Default: 10,20,50,100"},domProps:{value:t.tableSettings.paze_sizes},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"paze_sizes",e.target.value)}}})]):t._e()],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:!t.has_pro,size:"mini"},model:{value:t.tableSettings.search_position,callback:function(e){t.$set(t.tableSettings,"search_position",e)},expression:"tableSettings.search_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),n("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.nt_search_full_width,expression:"tableSettings.nt_search_full_width"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.nt_search_full_width)?t._i(t.tableSettings.nt_search_full_width,null)>-1:t.tableSettings.nt_search_full_width},on:{change:function(e){var n=t.tableSettings.nt_search_full_width,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"nt_search_full_width",n.concat([null])):i>-1&&t.$set(t.tableSettings,"nt_search_full_width",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"nt_search_full_width",o)}}}),t._v("\n Make search input as full width "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this, Then the search input will take all the available space (100% width)"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Select Sorting Method")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.sorting_type,callback:function(e){t.$set(t.tableSettings,"sorting_type",e)},expression:"tableSettings.sorting_type"}},[n("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n Created at\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),n("el-radio-button",{attrs:{disabled:!t.config.table.isSortable,label:"manual_sort"}},[t._v("Manual Sort\n ")])],1),t._v(" "),t.config.table.isCreatedSortable&&"by_created_at"==t.tableSettings.sorting_type?n("div",{},[n("span",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.default_sorting,expression:"tableSettings.default_sorting"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"default_sorting",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),n("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?n("div",[n("label",[t._v(t._s(t.$t("Select Column"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column,expression:"tableSettings.sorting_column"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column",e.target.multiple?n:n[0])}}},t._l(t.config.columns,function(e){return n("option",{key:e.key,domProps:{value:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}),0)]),t._v(" "),n("label",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column_by,expression:"tableSettings.sorting_column_by"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),n("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):t.config.table.isSortable&&"manual_sort"==t.tableSettings.sorting_type?n("div",[n("p",[t._v("You can sort the table data from "),n("b",[t._v("Table Rows")]),t._v(" Manually. Click Sort Manually\n checkbox to sort the data using drag and drop feature")])]):t._e(),t._v(" "),t.tableSettings.sorting_type?n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.expand_type,callback:function(e){t.$set(t.tableSettings,"expand_type",e)},expression:"tableSettings.expand_type"}},[n("el-radio-button",{attrs:{label:"default"}},[t._v("\n Default\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n Expand First\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand the first row of the table when displayed on a device that\n hides any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n Expand All\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand all rows of the table when displayed on a device that hides\n any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[n("el-radio-button",{attrs:{label:"first"}},[t._v("\n First Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"last"}},[t._v("\n Last Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.extra_css_class,expression:"tableSettings.extra_css_class"}],staticClass:"form_control",attrs:{id:"extra_css_class",type:"text"},domProps:{value:t.tableSettings.extra_css_class},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"extra_css_class",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Sticky Header (beta)"))+" "),t.has_pro?t._e():n("span",[t._v("(Pro)")])]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.sticky_header,callback:function(e){t.$set(t.tableSettings,"sticky_header",e)},expression:"tableSettings.sticky_header"}},[t._v("Enable Sticky header for table\n ")]),t._v(" "),"yes"==t.tableSettings.sticky_header?[n("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sticky_header_offset,expression:"tableSettings.sticky_header_offset"}],staticClass:"form_control",attrs:{placeholder:"positive or negative number",type:"text"},domProps:{value:t.tableSettings.sticky_header_offset},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"sticky_header_offset",e.target.value)}}}),t._v(" "),n("small",[t._v("Please give positive/negative number or you can provide jquery element object\n ")]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.disable_sticky_on_mobile,callback:function(e){t.$set(t.tableSettings,"disable_sticky_on_mobile",e)},expression:"tableSettings.disable_sticky_on_mobile"}},[t._v("Disable Sticky header for mobile devices\n ")])]:t._e()],2),t._v(" "),n("div",{staticClass:"form_group font-setting"},[n("label",[t._v("Table Font Setting")]),t._v(" "),n("div",{staticClass:"font"},[n("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),n("el-select",{model:{value:t.tableSettings.table_font_family,callback:function(e){t.$set(t.tableSettings,"table_font_family",e)},expression:"tableSettings.table_font_family"}},t._l(t.fontFamily,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:t}})}),1)],1),t._v(" "),n("div",{staticClass:"font"},[n("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),n("el-input-number",{attrs:{min:1,max:50},model:{value:t.tableSettings.table_font_size,callback:function(e){t.$set(t.tableSettings,"table_font_size",e)},expression:"tableSettings.table_font_size"}})],1)])])],1),t._v(" "),t.design_tips.length?n("div",{staticClass:"ninja_design_tips"},[n("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,function(e){return n("li",[n("i",{staticClass:"el-icon-warning"}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e)}})])}),0)]):t._e(),t._v(" "),t.has_pro?t._e():n("div",{staticClass:"upgrade_box"},[n("a",{staticClass:"el-button el-button--danger el-button--small",attrs:{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_studio"}},[n("i",{staticClass:"dashicons dashicons-shield"}),t._v(" "+t._s(t.$t("Upgrade To Pro to unlock advanced features"))+"\n ")])])],1)]),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Note: ")]),this._v(" For preview purpose, you are seeing up to 25 latest rows here and and per page 10\n items if you enable paginate. Also note that, The table style may differ at the frontend as your\n theme may overwrite few css elements.\n ")])}]}},function(t,e,n){var a=n(0)(n(619),n(620),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"frontend-editing-settings",props:["config"],data:function(){return{fetching:!1,saving:!1,tableId:this.config.table.ID,columns:this.config.columns,settings:{allow_frontend:"no",user_roles_editing:[],user_roles_deleting:[]},editing_user_roles:{},user_roles:{},editing_items:{},required_items:{},default_values:{},appearance_settings:{},hasPro:!!window.ninja_table_admin.hasPro,isActivated:!!window.ninja_table_admin.activated_features.ninja_table_front_editor}},methods:{getEditSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_table_pro_get_editing_settings",table_id:this.tableId}).then(function(e){t.settings=e.data.settings,t.user_roles=e.data.user_roles,t.editing_user_roles=e.data.editing_user_roles,t.editing_items=e.data.editor_pref.editing_items,t.required_items=e.data.editor_pref.required_items,t.default_values=e.data.editor_pref.default_values,t.appearance_settings=e.data.editor_pref.appearance_settings}).fail(function(t){}).always(function(){t.fetching=!1})},updateSettings:function(){var t=this;this.saving=!0;var e={action:"ninja_table_pro_update_editing_settings",table_id:this.tableId,settings:this.settings,editing_items:this.editing_items,required_items:this.required_items,default_values:this.default_values,appearance_settings:this.appearance_settings};this.$post(e).then(function(e){t.$message({type:"success",message:e.data.message})}).fail(function(e){e.responseJSON&&e.responseJSON.data?t.$message({type:"error",message:e.responseJSON.data.message}):t.$message({type:"error",message:"Something is wrong! Please try again"})}).always(function(){t.saving=!1})}},mounted:function(){this.getEditSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",[t._v("\n Frontend Editing Settings\n ")]),t._v(" "),n("div",{staticClass:"heading_actions"},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),n("div",{staticClass:"editing_body"},[n("div",{staticClass:"editing_sub_section"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.allow_frontend,callback:function(e){t.$set(t.settings,"allow_frontend",e)},expression:"settings.allow_frontend"}},[t._v("\n Enable Frontend editing\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[n("div",{staticClass:"editing_sub_section"},[t._m(2),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Edit/Add Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can edit this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_editing,callback:function(e){t.$set(t.settings,"user_roles_editing",e)},expression:"settings.user_roles_editing"}},t._l(t.editing_user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}),1)],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Deleting Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can delete this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_deleting,callback:function(e){t.$set(t.settings,"user_roles_deleting",e)},expression:"settings.user_roles_deleting"}},t._l(t.user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}),1)],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Own Data Only\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If this is enabled, users will see and edit only the rows that were created by them"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.own_data_only,callback:function(e){t.$set(t.settings,"own_data_only",e)},expression:"settings.own_data_only"}},[t._v("\n Users can see and edit/delete only own data\n ")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.own_data_only,expression:"settings.own_data_only == 'yes'"}],staticStyle:{"line-height":"120%"}},[t._v("\n Your Selected user roles only see their own data and manage those data. Other user roles can not see any data. If you want to show all the data without editing tools to all users, you can use the following shortcode:\n "),n("br"),n("pre",[n("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),n("div",{staticClass:"ninja_editing_pref"},[n("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column Name")]),t._v(" "),n("th",[t._v("\n Editable?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Required?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Default Value\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you would like to have some values pre-defined in editors (i.e. default editor values) please enter these here."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("th",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[e.key],callback:function(n){t.$set(t.editing_items,e.key,n)},expression:"editing_items[column.key]"}})],1),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[e.key],callback:function(n){t.$set(t.required_items,e.key,n)},expression:"required_items[column.key]"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{placeholder:"Default Value for "+e.name,size:"mini"},model:{value:t.default_values[e.key],callback:function(n){t.$set(t.default_values,e.key,n)},expression:"default_values[column.key]"}})],1)])}),0)])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance_settings.alwaysShow,callback:function(e){t.$set(t.appearance_settings,"alwaysShow",e)},expression:"appearance_settings.alwaysShow"}},[t._v("\n Always Show Edit Icons\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you enable this then, Selected user roles can always see the edit buttons, Otherwise they will see a button to initialize editing"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Row Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: New row"},model:{value:t.appearance_settings.addText,callback:function(e){t.$set(t.appearance_settings,"addText",e)},expression:"appearance_settings.addText"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Rows Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit rows"},model:{value:t.appearance_settings.showText,callback:function(e){t.$set(t.appearance_settings,"showText",e)},expression:"appearance_settings.showText"}})],1)]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Add Data"},model:{value:t.appearance_settings.addModalLabel,callback:function(e){t.$set(t.appearance_settings,"addModalLabel",e)},expression:"appearance_settings.addModalLabel"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit Data"},model:{value:t.appearance_settings.editModalLabel,callback:function(e){t.$set(t.appearance_settings,"editModalLabel",e)},expression:"appearance_settings.editModalLabel"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Editor Icon Position\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Edit icon postion. If you select Right then it will append the edit icons at the last column otherwise at the first column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("br"),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.appearance_settings.position,callback:function(e){t.$set(t.appearance_settings,"position",e)},expression:"appearance_settings.position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):n("div",[n("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),n("p",[t._v('Only "Default" data source tables can be editable')])]):n("div",[t._m(1)]):n("div",[t._m(0)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",{},[t._v("\n Frontend Editing Settings\n ")])]),t._v(" "),n("div",{staticClass:"editing_body text-center"},[n("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),n("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")]),t._v(" "),n("p",[t._v("Using this module, You can let your frontend users to add/edit/delete records based on user role. Also, You can separate the records by user submission")]),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=frontend-editing&utm_term=upgrade"}},[t._v("Purchase Now")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("\n Custom Filters is introduced in version 3.2.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Data Editing Permissions")]),this._v(" "),e("p",[this._v("\n Please specific user roles to be able to edit/delete this table. Only selected user\n roles\n can edit/delete the data.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Editing Column Options")]),this._v(" "),e("p",[this._v("\n Please Specify which columns can be editable from front-end and also, You can specify\n which\n columns will be required\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Appearance Settings")]),this._v(" "),e("p",[this._v("\n You can set the Editing Component Labels and Appearances\n ")])])}]}},function(t,e,n){var a=n(0)(n(624),n(625),!1,function(t){n(622)},null,null);t.exports=a.exports},function(t,e,n){var a=n(623);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5dfcde6f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-message{z-index:999999!important;top:5px}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"TableApp",data:function(){return{addVisible:!1,integrity:window.ninja_table_admin.nt_integrity,admin_notices:window.ninja_table_admin.admin_notices}},mounted:function(){var t=this;window.ninjaTableBus.$on("show_pro_popup",function(e){t.addVisible=!0}),jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrap"},[t._l(t.admin_notices,function(e,a){return n("el-alert",{key:a,attrs:{type:e.type,closable:e.closable,effect:"dark"}},[n("div",{domProps:{innerHTML:t._s(e.message)}})])}),t._v(" "),n("router-view"),t._v(" "),n("div",{staticClass:"pro_feature_dialog"},[n("el-dialog",{attrs:{title:"NinjaTable Pro Features",visible:t.addVisible},on:{"update:visible":function(e){t.addVisible=e}}},[n("div",{staticClass:"add_content"},[n("ul",{staticClass:"list_features"},[n("li",[t._v("Use Unlimited Colors in Your Tables")]),t._v(" "),n("li",[t._v("Add Media to Your Table Cells")]),t._v(" "),n("li",[t._v("Drag and Drop Table Data Sorting")]),t._v(" "),n("li",[t._v("Use Advanced Date Sorting")]),t._v(" "),n("li",[t._v("Colspan/Cell Merging Feature")]),t._v(" "),n("li",[t._v("Create Custom Filter UI in Table")]),t._v(" "),n("li",[t._v("Use Shortcode in your table cell")]),t._v(" "),n("li",[t._v("Use Advanced Data Filtering")]),t._v(" "),n("li",[t._v("Use Advanced Customization Features")]),t._v(" "),n("li",[t._v("Get VIP Support for any Issue")]),t._v(" "),n("li",[t._v("Incremental New Premium Features")]),t._v(" "),n("li",[t._v("And Many More feature")])])]),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Buy Pro Now")])])])],1),t._v(" "),"nope"==t.integrity?n("div",{staticStyle:{"margin-top":"90px",color:"rgb(236, 62, 62)","font-size":"16px","margin-bottom":"30px"}},[n("b",[t._v("Notice:")]),t._v(" Ninja Tables Pro integrity is not valid. You may downloaded from other sources. Please download ninja tables pro from "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?integrity=1"}},[t._v("WPManageNinja")]),t._v(" to keep it upto date.\n ")]):t._e()],2)},staticRenderFns:[]}}]);
1
+ !function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=297)}([function(t,e){t.exports=function(t,e,n,a,o,i){var s,l=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(s=t,l=t.default);var c,u="function"==typeof l?l.options:l;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):a&&(c=a),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:s,exports:l,options:u}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var o=(s=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(a[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&a[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o=n(310),i={},s=a&&(document.head||document.getElementsByTagName("head")[0]),l=null,r=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t){for(var e=0;e<t.length;e++){var n=t[e],a=i[n.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(v(n.parts[o]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(v(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,a=document.querySelector("style["+p+'~="'+t.id+'"]');if(a){if(c)return u;a.parentNode.removeChild(a)}if(_){var o=r++;a=l||(l=m()),e=g.bind(null,a,o,!1),n=g.bind(null,a,o,!0)}else a=m(),e=function(t,e){var n=e.css,a=e.media,o=e.sourceMap;a&&t.setAttribute("media",a);d.ssrId&&t.setAttribute(p,e.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,a),n=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else n()}}t.exports=function(t,e,n,a){c=n,d=a||{};var s=o(t,e);return f(s),function(e){for(var n=[],a=0;a<s.length;a++){var l=s[a];(r=i[l.id]).refs--,n.push(r)}e?f(s=o(t,e)):s=[];for(a=0;a<n.length;a++){var r;if(0===(r=n[a]).refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete i[r.id]}}}};var h,b=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function g(t,e,n,a){var o=n?"":a.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var i=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e,n){var a=n(45),o="object"==typeof self&&self&&self.Object===Object&&self,i=a||o||Function("return this")();t.exports=i},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var a=n(122),o=n(125);t.exports=function(t,e){var n=o(t,e);return a(n)?n:void 0}},,function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var a=n(12),o=n(110),i=n(111),s="[object Null]",l="[object Undefined]",r=a?a.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?l:s:r&&r in Object(t)?o(t):i(t)}},,,function(t,e,n){var a=n(107),o=n(75),i=n(22);t.exports=function(t){return i(t)?a(t):o(t)}},function(t,e,n){var a=n(3).Symbol;t.exports=a},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var a=n(5)(Object,"create");t.exports=a},function(t,e,n){var a=n(130),o=n(131),i=n(132),s=n(133),l=n(134);function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(52);t.exports=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}},function(t,e,n){var a=n(136);t.exports=function(t,e){var n=t.__data__;return a(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var a=n(8),o=n(7),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&a(t)==i}},function(t,e,n){var a=n(18),o=1/0;t.exports=function(t){if("string"==typeof t||a(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){var a=n(50),o=n(27);t.exports=function(t){return null!=t&&o(t.length)&&!a(t)}},,,,function(t,e,n){t.exports=n(106)},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var a=n(119),o=n(135),i=n(137),s=n(138),l=n(139);function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(5)(n(3),"Map");t.exports=a},function(t,e,n){var a=n(4),o=n(18),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var a=n(172);t.exports=function(t){return null==t?"":a(t)}},,,,,function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,o=Array(a);++n<a;)o[n]=e(t[n],n,t);return o}},,,,,function(t,e,n){var a=n(0)(n(335),n(336),!1,function(t){n(333)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(352),n(353),!1,function(t){n(350)},"data-v-06fd6e1a",null);t.exports=a.exports},function(t,e,n){var a=n(109),o=n(7),i=Object.prototype,s=i.hasOwnProperty,l=i.propertyIsEnumerable,r=a(function(){return arguments}())?a:function(t){return o(t)&&s.call(t,"callee")&&!l.call(t,"callee")};t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(20))},function(t,e,n){(function(t){var a=n(3),o=n(112),i="object"==typeof e&&e&&!e.nodeType&&e,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,l=s&&s.exports===i?a.Buffer:void 0,r=(l?l.isBuffer:void 0)||o;t.exports=r}).call(e,n(47)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&a.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var a=n(113),o=n(74),i=n(114),s=i&&i.isTypedArray,l=s?o(s):a;t.exports=l},function(t,e,n){var a=n(8),o=n(13),i="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",r="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=a(t);return e==s||e==l||e==i||e==r}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var a=n(77),o=n(54),i=n(178),s=Math.max;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var r=null==n?0:i(n);return r<0&&(r=s(l+r,0)),a(t,o(e,3),r)}},function(t,e,n){var a=n(147),o=n(168),i=n(36),s=n(4),l=n(176);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):a(t):l(t)}},function(t,e,n){var a=n(15),o=n(149),i=n(150),s=n(151),l=n(152),r=n(153);function c(t){var e=this.__data__=new a(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=l,c.prototype.set=r,t.exports=c},function(t,e,n){var a=n(154),o=n(7);t.exports=function t(e,n,i,s,l){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:a(e,n,i,s,t,l))}},function(t,e,n){var a=n(76),o=n(155),i=n(78),s=1,l=2;t.exports=function(t,e,n,r,c,u){var d=n&s,p=t.length,_=e.length;if(p!=_&&!(d&&_>p))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var m=-1,v=!0,h=n&l?new a:void 0;for(u.set(t,e),u.set(e,t);++m<p;){var b=t[m],g=e[m];if(r)var y=d?r(g,b,m,e,t,u):r(b,g,m,t,e,u);if(void 0!==y){if(y)continue;v=!1;break}if(h){if(!o(e,function(t,e){if(!i(h,e)&&(b===t||c(b,t,n,r,u)))return h.push(e)})){v=!1;break}}else if(b!==g&&!c(b,g,n,r,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,n){var a=n(13);t.exports=function(t){return t==t&&!a(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var a=n(61);t.exports=function(t,e,n){var o=null==t?void 0:a(t,e);return void 0===o?n:o}},function(t,e,n){var a=n(62),o=n(19);t.exports=function(t,e){for(var n=0,i=(e=a(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){var a=n(4),o=n(30),i=n(169),s=n(31);t.exports=function(t,e){return a(t)?t:o(t,e)?[t]:i(s(t))}},,,,,,,,,,,,function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var a=n(115),o=n(116),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!a(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var a=n(28),o=n(140),i=n(141);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new a;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},function(t,e){t.exports=function(t,e,n,a){for(var o=t.length,i=n+(a?1:-1);a?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var a=n(143),o=n(29),i=n(144),s=n(145),l=n(146),r=n(8),c=n(51),u=c(a),d=c(o),p=c(i),_=c(s),f=c(l),m=r;(a&&"[object DataView]"!=m(new a(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||s&&"[object Set]"!=m(new s)||l&&"[object WeakMap]"!=m(new l))&&(m=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,a=n?c(n):"";if(a)switch(a){case u:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case _:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var a=n(0)(n(504),n(521),!1,function(t){n(502)},null,null);t.exports=a.exports},function(t,e,n){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"object"==("undefined"==typeof formulaParser?"undefined":a(formulaParser))?(this.instance=new formulaParser.Parser,this._addFunctionNUMVAL(this.instance),this._addFunctionDATEVAL(this.instance)):this.instance=!1}return o(t,[{key:"parse",value:function(t){var e=this;arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||!this.instance)return t;var n=this.advancedParsablesShortcodes(t);if(n&&n.forEach(function(n){var a=n.replace("[f]","").replace("[/f]","");if(a){var o=e.instance.parse(a),i=o.result?o.result:"";t=t.replace(n,i)}}),this.isParsable(t)){var a=t.substr(1);if(a){var o=this.instance.parse(a);t=o.result?o.result:""}}return t}},{key:"isParsable",value:function(t){return"string"==typeof t&&0===t.indexOf("=")}},{key:"advancedParsablesShortcodes",value:function(t){if(-1==t.indexOf("[f]",t))return!1;var e=t.match(/\[f][\s\S]*?\[\/f]/g);return e||!1}},{key:"getSupportedFormulas",value:function(){var t=formulaParser.SUPPORTED_FORMULAS;return t.includes("NUMVAL")||(t.push("NUMVAL"),t.push("DATEVAL")),t}},{key:"getInstance",value:function(){return this.instance}},{key:"_addFunctionNUMVAL",value:function(t){t.setFunction("NUMVAL",function(t){var e=t[0]||"";if(!e)return e;e=e.toString().replace(/[^\d\.,]+/g,"");var n=t[1]||",";e=e.indexOf(n)>-1?e.split(n).join(""):e.split(",").join("");var a=t[2]||".";e.indexOf(a)>-1&&(e=e.split(a).join("."));var o=Number(e);return isNaN(o)?e:o})}},{key:"_addFunctionDATEVAL",value:function(t){t.setFunction("DATEVAL",function(t){var e=t[0]||"",n=t[1]||"";return e&&n?moment(e,n).unix():e})}}]),t}();e.a=new i},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var a=n(360),o=n(361),i=n(366),s=n(4);t.exports=function(t,e){return(s(t)?a:o)(t,i(e))}},function(t,e,n){var a=n(108),o=n(44),i=n(4),s=n(46),l=n(48),r=n(49),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),u=!n&&o(t),d=!n&&!u&&s(t),p=!n&&!u&&!d&&r(t),_=n||u||d||p,f=_?a(t.length,String):[],m=f.length;for(var v in t)!e&&!c.call(t,v)||_&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||f.push(v);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}},function(t,e,n){var a=n(8),o=n(7),i="[object Arguments]";t.exports=function(t){return o(t)&&a(t)==i}},function(t,e,n){var a=n(12),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,l=a?a.toStringTag:void 0;t.exports=function(t){var e=i.call(t,l),n=t[l];try{t[l]=void 0;var a=!0}catch(t){}var o=s.call(t);return a&&(e?t[l]=n:delete t[l]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var a=n(8),o=n(27),i=n(7),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[a(t)]}},function(t,e,n){(function(t){var a=n(45),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o&&a.process,l=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=l}).call(e,n(47)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var a=n(117)(Object.keys,Object);t.exports=a},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var a=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"}}}}},function(t,e,n){var a=n(120),o=n(15),i=n(29);t.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||o),string:new a}}},function(t,e,n){var a=n(121),o=n(126),i=n(127),s=n(128),l=n(129);function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var a=t[e];this.set(a[0],a[1])}}r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=i,r.prototype.has=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(14);t.exports=function(){this.__data__=a?a(null):{},this.size=0}},function(t,e,n){var a=n(50),o=n(123),i=n(13),s=n(51),l=/^\[object .+?Constructor\]$/,r=Function.prototype,c=Object.prototype,u=r.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(a(t)?p:l).test(s(t))}},function(t,e,n){var a,o=n(124),i=(a=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var a=n(3)["__core-js_shared__"];t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var a=n(14),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(a){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var a=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return a?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var a=n(14),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=a&&void 0===e?o:e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var a=n(16),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=a(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e,n){var a=n(16);t.exports=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var a=n(16);t.exports=function(t){return a(this.__data__,t)>-1}},function(t,e,n){var a=n(16);t.exports=function(t,e){var n=this.__data__,o=a(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var a=n(17);t.exports=function(t){var e=a(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var a=n(17);t.exports=function(t){return a(this,t).get(t)}},function(t,e,n){var a=n(17);t.exports=function(t){return a(this,t).has(t)}},function(t,e,n){var a=n(17);t.exports=function(t,e){var n=a(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(75),o=n(79),i=n(22),s=n(455),l=n(456),r="[object Map]",c="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return s(t)?l(t):t.length;var e=o(t);return e==r||e==c?t.size:a(t).length}},function(t,e,n){var a=n(5)(n(3),"DataView");t.exports=a},function(t,e,n){var a=n(5)(n(3),"Promise");t.exports=a},function(t,e,n){var a=n(5)(n(3),"Set");t.exports=a},function(t,e,n){var a=n(5)(n(3),"WeakMap");t.exports=a},function(t,e,n){var a=n(148),o=n(167),i=n(59);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||a(n,t,e)}}},function(t,e,n){var a=n(55),o=n(56),i=1,s=2;t.exports=function(t,e,n,l){var r=n.length,c=r,u=!l;if(null==t)return!c;for(t=Object(t);r--;){var d=n[r];if(u&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++r<c;){var p=(d=n[r])[0],_=t[p],f=d[1];if(u&&d[2]){if(void 0===_&&!(p in t))return!1}else{var m=new a;if(l)var v=l(_,f,p,t,e,m);if(!(void 0===v?o(f,_,i|s,l,m):v))return!1}}return!0}},function(t,e,n){var a=n(15);t.exports=function(){this.__data__=new a,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(15),o=n(29),i=n(28),s=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof a){var l=n.__data__;if(!o||l.length<s-1)return l.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(l)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var a=n(55),o=n(57),i=n(156),s=n(160),l=n(79),r=n(4),c=n(46),u=n(49),d=1,p="[object Arguments]",_="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,h,b){var g=r(t),y=r(e),w=g?_:l(t),x=y?_:l(e),k=(w=w==p?f:w)==f,C=(x=x==p?f:x)==f,S=w==x;if(S&&c(t)){if(!c(e))return!1;g=!0,k=!1}if(S&&!k)return b||(b=new a),g||u(t)?o(t,e,n,v,h,b):i(t,e,w,n,v,h,b);if(!(n&d)){var j=k&&m.call(t,"__wrapped__"),$=C&&m.call(e,"__wrapped__");if(j||$){var T=j?t.value():t,P=$?e.value():e;return b||(b=new a),h(T,P,n,v,b)}}return!!S&&(b||(b=new a),s(t,e,n,v,h,b))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var a=n(12),o=n(157),i=n(52),s=n(57),l=n(158),r=n(159),c=1,u=2,d="[object Boolean]",p="[object Date]",_="[object Error]",f="[object Map]",m="[object Number]",v="[object RegExp]",h="[object Set]",b="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",x=a?a.prototype:void 0,k=x?x.valueOf:void 0;t.exports=function(t,e,n,a,x,C,S){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case y:return!(t.byteLength!=e.byteLength||!C(new o(t),new o(e)));case d:case p:case m:return i(+t,+e);case _:return t.name==e.name&&t.message==e.message;case v:case b:return t==e+"";case f:var j=l;case h:var $=a&c;if(j||(j=r),t.size!=e.size&&!$)return!1;var T=S.get(t);if(T)return T==e;a|=u,S.set(t,e);var P=s(j(t),j(e),a,x,C,S);return S.delete(t),P;case g:if(k)return k.call(t)==k.call(e)}return!1}},function(t,e,n){var a=n(3).Uint8Array;t.exports=a},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,a){n[++e]=[a,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var a=n(161),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,l,r){var c=n&o,u=a(t),d=u.length;if(d!=a(e).length&&!c)return!1;for(var p=d;p--;){var _=u[p];if(!(c?_ in e:i.call(e,_)))return!1}var f=r.get(t);if(f&&r.get(e))return f==e;var m=!0;r.set(t,e),r.set(e,t);for(var v=c;++p<d;){var h=t[_=u[p]],b=e[_];if(s)var g=c?s(b,h,_,e,t,r):s(h,b,_,t,e,r);if(!(void 0===g?h===b||l(h,b,n,s,r):g)){m=!1;break}v||(v="constructor"==_)}if(m&&!v){var y=t.constructor,w=e.constructor;y!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(m=!1)}return r.delete(t),r.delete(e),m}},function(t,e,n){var a=n(162),o=n(164),i=n(11);t.exports=function(t){return a(t,i,o)}},function(t,e,n){var a=n(163),o=n(4);t.exports=function(t,e,n){var i=e(t);return o(t)?i:a(i,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=e.length,o=t.length;++n<a;)t[o+n]=e[n];return t}},function(t,e,n){var a=n(165),o=n(166),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),a(s(t),function(e){return i.call(t,e)}))}:o;t.exports=l},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,o=0,i=[];++n<a;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var a=n(58),o=n(11);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,a(s)]}return e}},function(t,e,n){var a=n(56),o=n(60),i=n(173),s=n(30),l=n(58),r=n(59),c=n(19),u=1,d=2;t.exports=function(t,e){return s(t)&&l(e)?r(c(t),e):function(n){var s=o(n,t);return void 0===s&&s===e?i(n,t):a(e,s,u|d)}}},function(t,e,n){var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n(170)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,function(t,n,a,i){e.push(a?i.replace(o,"$1"):n||t)}),e});t.exports=i},function(t,e,n){var a=n(171),o=500;t.exports=function(t){var e=a(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var a=n(28),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var a=arguments,o=e?e.apply(this,a):a[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,a);return n.cache=i.set(o,s)||i,s};return n.cache=new(i.Cache||a),n}i.Cache=a,t.exports=i},function(t,e,n){var a=n(12),o=n(37),i=n(4),s=n(18),l=1/0,r=a?a.prototype:void 0,c=r?r.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-l?"-0":n}},function(t,e,n){var a=n(174),o=n(175);t.exports=function(t,e){return null!=t&&o(t,e,a)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var a=n(62),o=n(44),i=n(4),s=n(48),l=n(27),r=n(19);t.exports=function(t,e,n){for(var c=-1,u=(e=a(e,t)).length,d=!1;++c<u;){var p=r(e[c]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&l(u)&&s(p,u)&&(i(t)||o(t))}},function(t,e,n){var a=n(80),o=n(177),i=n(30),s=n(19);t.exports=function(t){return i(t)?a(s(t)):o(t)}},function(t,e,n){var a=n(61);t.exports=function(t){return function(e){return a(e,t)}}},function(t,e,n){var a=n(179);t.exports=function(t){var e=a(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var a=n(180),o=1/0,i=1.7976931348623157e308;t.exports=function(t){return t?(t=a(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,n){var a=n(13),o=n(18),i=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=r.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):l.test(t)?i:+t}},function(t,e,n){var a=n(0)(n(509),n(510),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(183).polyfill(),e.a=function t(e,n,o,i){var s,l=t,r="";function c(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?c(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=i?0 in n?[]:[1]:n;for(s=0;s<n.length;s++){var u,d="",p=0,_="object"==a(n[s])?n[s]:{};(_=Object.assign({},o,_))[""]={"":n[s]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,function(t,e,n,o,i,s,f){p?d+=p&&!i||p>1?t:e:(r+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,function(t,e,n,a,o,i){return e?c(_,e):a?c(_,i):o?l(c(_,i),_):n?"":new Option(c(_,i)).innerHTML}),u=s),i?--p||(f=c(_,f),/^f/.test(void 0===f?"undefined":a(f))?r+=f.call(_,d,function(t){return l(t,_)}):r+=l(d,f,_,u),d=""):++p})}return r}},function(t,e,n){"use strict";function a(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),a=1;a<arguments.length;a++){var o=arguments[a];if(void 0!==o&&null!==o)for(var i=Object.keys(Object(o)),s=0,l=i.length;s<l;s++){var r=i[s],c=Object.getOwnPropertyDescriptor(o,r);void 0!==c&&c.enumerable&&(n[r]=o[r])}}return n}t.exports={assign:a,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:a})}}},function(t,e,n){var a=n(31),o=n(185),i=/&(?:amp|lt|gt|quot|#39);/g,s=RegExp(i.source);t.exports=function(t){return(t=a(t))&&s.test(t)?t.replace(i,o):t}},function(t,e,n){var a=n(81)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=a},function(t,e,n){var a=n(187)(n(53));t.exports=a},function(t,e,n){var a=n(54),o=n(22),i=n(11);t.exports=function(t){return function(e,n,s){var l=Object(e);if(!o(e)){var r=a(n,3);e=i(e),n=function(t){return r(l[t],t,l)}}var c=t(e,n,s);return c>-1?l[r?e[c]:c]:void 0}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var a=function(t){var e=(t=t.toString()).split(".")[1],n=e?e.length:0;return Number(t).toLocaleString("es-ES",{minimumFractionDigits:n})}},function(t,e,n){t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var a=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var i,s,l=String(o(e)),r=a(n),c=l.length;return r<0||r>=c?t?"":void 0:(i=l.charCodeAt(r))<55296||i>56319||r+1===c||(s=l.charCodeAt(r+1))<56320||s>57343?t?l.charAt(r):i:t?l.slice(r,r+2):s-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var a=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?a(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var a=n("cb7c");t.exports=function(){var t=a(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var a=n("3a38"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?o(t+e,0):i(t,e)}},1654:function(t,e,n){"use strict";var a=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=a(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(t,e,n){var a=n("63b6");a(a.S,"Array",{isArray:n("9003")})},"1bc3":function(t,e,n){var a=n("f772");t.exports=function(t,e){if(!a(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!a(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var a=n("f772"),o=n("e53d").document,i=a(o)&&a(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var a=n("d9f6"),o=n("aebd");t.exports=function(t,e,n){e in t?a.f(t,e,o(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var a=n("2aba"),o=n("32e9"),i=n("79e5"),s=n("be13"),l=n("2b4c"),r=n("520a"),c=l("species"),u=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=l(t),_=!i(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),f=_?!i(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!e}):void 0;if(!_||!f||"replace"===t&&!u||"split"===t&&!d){var m=/./[p],v=n(s,p,""[t],function(t,e,n,a,o){return e.exec===r?_&&!o?{done:!0,value:m.call(e,n,a)}:{done:!0,value:t.call(n,e,a)}:{done:!1}}),h=v[0],b=v[1];a(String.prototype,t,h),o(RegExp.prototype,p,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var a=n("d3f4"),o=n("7726").document,i=a(o)&&a(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"23c6":function(t,e,n){var a=n("2d95"),o=n("2b4c")("toStringTag"),i="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?a(e):"Object"==(s=a(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,n){var a=n("25eb");t.exports=function(t){return Object(a(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var a=n("7726"),o=n("32e9"),i=n("69a8"),s=n("ca5a")("src"),l=n("fa5b"),r=(""+l).split("toString");n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,s)||o(n,s,t[e]?""+t[e]:r.join(String(e)))),t===a?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||l.call(this)})},"2b4c":function(t,e,n){var a=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,s="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=a},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var a=n("5ca1"),o=n("d2c8");a(a.P+a.F*n("5147")("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,n){"use strict";var a=n("b8e3"),o=n("63b6"),i=n("9138"),s=n("35e8"),l=n("481b"),r=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),p=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(t,e,n,f,m,v,h){r(n,e,f);var b,g,y,w=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",k="values"==m,C=!1,S=t.prototype,j=S[d]||S["@@iterator"]||m&&S[m],$=j||w(m),T=m?k?w("entries"):$:void 0,P="Array"==e&&S.entries||j;if(P&&(y=u(P.call(new t)))!==Object.prototype&&y.next&&(c(y,x,!0),a||"function"==typeof y[d]||s(y,d,_)),k&&j&&"values"!==j.name&&(C=!0,$=function(){return j.call(this)}),a&&!h||!p&&!C&&S[d]||s(S,d,$),l[e]=$,l[x]=_,m)if(b={values:k?$:w("values"),keys:v?$:w("keys"),entries:T},h)for(g in b)g in S||i(S,g,b[g]);else o(o.P+o.F*(p||C),e,b);return b}},"32a6":function(t,e,n){var a=n("241e"),o=n("c3a1");n("ce7e")("keys",function(){return function(t){return o(a(t))}})},"32e9":function(t,e,n){var a=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return a.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var a=n("e53d").document;t.exports=a&&a.documentElement},"335c":function(t,e,n){var a=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var a=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return a.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var a=n("335c"),o=n("25eb");t.exports=function(t){return a(o(t))}},3702:function(t,e,n){var a=n("481b"),o=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||i[o]===t)}},"3a38":function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},"40c3":function(t,e,n){var a=n("6b4c"),o=n("5168")("toStringTag"),i="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?a(e):"Object"==(s=a(e))&&"function"==typeof e.callee?"Arguments":s}},4588:function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},"45f2":function(t,e,n){var a=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&a(t,i,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"469f":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("7d7b")},"481b":function(t,e){t.exports={}},"4aa6":function(t,e,n){t.exports=n("dc62")},"4bf8":function(t,e,n){var a=n("be13");t.exports=function(t){return Object(a(t))}},"4ee1":function(t,e,n){var a=n("5168")("iterator"),o=!1;try{var i=[7][a]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],s=i[a]();s.next=function(){return{done:n=!0}},i[a]=function(){return s},t(i)}catch(t){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var a=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,!"/./"[t](e)}catch(t){}}return!0}},5168:function(t,e,n){var a=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,s="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=a},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var a,o,i=n("0bfb"),s=RegExp.prototype.exec,l=String.prototype.replace,r=s,c=(a=/a/,o=/b*/g,s.call(a,"a"),s.call(o,"a"),0!==a.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(r=function(t){var e,n,a,o,r=this;return u&&(n=new RegExp("^"+r.source+"$(?!\\s)",i.call(r))),c&&(e=r.lastIndex),a=s.call(r,t),c&&a&&(r.lastIndex=r.global?a.index+a[0].length:e),u&&a&&a.length>1&&l.call(a[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)}),a}),t.exports=r},"53e2":function(t,e,n){var a=n("07e3"),o=n("241e"),i=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),a(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"549b":function(t,e,n){"use strict";var a=n("d864"),o=n("63b6"),i=n("241e"),s=n("b0dc"),l=n("3702"),r=n("b447"),c=n("20fd"),u=n("7cd6");o(o.S+o.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,d,p=i(t),_="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,v=void 0!==m,h=0,b=u(p);if(v&&(m=a(m,f>2?arguments[2]:void 0,2)),void 0==b||_==Array&&l(b))for(n=new _(e=r(p.length));e>h;h++)c(n,h,v?m(p[h],h):p[h]);else for(d=b.call(p),n=new _;!(o=d.next()).done;h++)c(n,h,v?s(d,m,[o.value,h],!0):o.value);return n.length=h,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},5537:function(t,e,n){var a=n("8378"),o=n("7726"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var a=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return a[t]||(a[t]=o(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var a=n("36c3"),o=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,s){var l,r=a(e),c=o(r.length),u=i(s,c);if(t&&n!=n){for(;c>u;)if((l=r[u++])!=l)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var a=n("7726"),o=n("8378"),i=n("32e9"),s=n("2aba"),l=n("9b43"),r=function(t,e,n){var c,u,d,p,_=t&r.F,f=t&r.G,m=t&r.S,v=t&r.P,h=t&r.B,b=f?a:m?a[e]||(a[e]={}):(a[e]||{}).prototype,g=f?o:o[e]||(o[e]={}),y=g.prototype||(g.prototype={});for(c in f&&(n=e),n)d=((u=!_&&b&&void 0!==b[c])?b:n)[c],p=h&&u?l(d,a):v&&"function"==typeof d?l(Function.call,d):d,b&&s(b,c,d,t&r.U),g[c]!=d&&i(g,c,p),v&&y[c]!=d&&(y[c]=d)};a.core=o,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},"5d73":function(t,e,n){t.exports=n("469f")},"5f1b":function(t,e,n){"use strict";var a=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"626a":function(t,e,n){var a=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},"63b6":function(t,e,n){var a=n("e53d"),o=n("584a"),i=n("d864"),s=n("35e8"),l=n("07e3"),r=function(t,e,n){var c,u,d,p=t&r.F,_=t&r.G,f=t&r.S,m=t&r.P,v=t&r.B,h=t&r.W,b=_?o:o[e]||(o[e]={}),g=b.prototype,y=_?a:f?a[e]:(a[e]||{}).prototype;for(c in _&&(n=e),n)(u=!p&&y&&void 0!==y[c])&&l(b,c)||(d=u?y[c]:n[c],b[c]=_&&"function"!=typeof y[c]?n[c]:v&&u?i(d,a):h&&y[c]==d?function(t){var e=function(e,n,a){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,a)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?i(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[c]=d,t&r.R&&g&&!g[c]&&s(g,c,d)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},6762:function(t,e,n){"use strict";var a=n("5ca1"),o=n("c366")(!0);a(a.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var a=n("626a"),o=n("be13");t.exports=function(t){return a(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var a=n("d3f4");t.exports=function(t,e){if(!a(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!a(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var a=n("e53d"),o=n("35e8"),i=n("481b"),s=n("5168")("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),r=0;r<l.length;r++){var c=l[r],u=a[c],d=u&&u.prototype;d&&!d[s]&&o(d,s,c),i[c]=i.Array}},"71c1":function(t,e,n){var a=n("3a38"),o=n("25eb");t.exports=function(t){return function(e,n){var i,s,l=String(o(e)),r=a(n),c=l.length;return r<0||r>=c?t?"":void 0:(i=l.charCodeAt(r))<55296||i>56319||r+1===c||(s=l.charCodeAt(r+1))<56320||s>57343?t?l.charAt(r):i:t?l.slice(r,r+2):s-56320+(i-55296<<10)+65536}}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var a=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?o(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7cd6":function(t,e,n){var a=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[a(t)]}},"7d7b":function(t,e,n){var a=n("e4ae"),o=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return a(e.call(t))}},"7e90":function(t,e,n){var a=n("d9f6"),o=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);for(var n,s=i(e),l=s.length,r=0;l>r;)a.f(t,n=s[r++],e[n]);return t}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,n){var a=n("cb7c"),o=n("c69a"),i=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var a=n("a159"),o=n("aebd"),i=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=a(s,{next:o(1,n)}),i(t,e+" Iterator")}},9003:function(t,e,n){var a=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==a(t)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var a=n("c3a1"),o=n("9aa9"),i=n("355d"),s=n("241e"),l=n("335c"),r=Object.assign;t.exports=!r||n("294c")(function(){var t={},e={},n=Symbol(),a="abcdefghijklmnopqrst";return t[n]=7,a.split("").forEach(function(t){e[t]=t}),7!=r({},t)[n]||Object.keys(r({},e)).join("")!=a})?function(t,e){for(var n=s(t),r=arguments.length,c=1,u=o.f,d=i.f;r>c;)for(var p,_=l(arguments[c++]),f=u?a(_).concat(u(_)):a(_),m=f.length,v=0;m>v;)d.call(_,p=f[v++])&&(n[p]=_[p]);return n}:r},9427:function(t,e,n){var a=n("63b6");a(a.S,"Object",{create:n("a159")})},"95d5":function(t,e,n){var a=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(a(e))}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var a=n("d8e8");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,o){return t.call(e,n,a,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var a=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[a]&&n("32e9")(o,a,{}),t.exports=function(t){o[a][t]=!0}},"9def":function(t,e,n){var a=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(a(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var a=n("e4ae"),o=n("7e90"),i=n("1691"),s=n("5559")("IE_PROTO"),l=function(){},r=function(){var t,e=n("1ec9")("iframe"),a=i.length;for(e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),r=t.F;a--;)delete r.prototype[i[a]];return r()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=a(t),n=new l,l.prototype=null,n[s]=t):n=r(),void 0===e?n:o(n,e)}},a352:function(t,e){t.exports=n(218)},a3c3:function(t,e,n){var a=n("63b6");a(a.S+a.F,"Object",{assign:n("9306")})},a481:function(t,e,n){"use strict";var a=n("cb7c"),o=n("4bf8"),i=n("9def"),s=n("4588"),l=n("0390"),r=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,function(t,e,n,f){return[function(a,o){var i=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,i,o):n.call(String(i),a,o)},function(t,e){var o=f(n,t,this,e);if(o.done)return o.value;var d=a(t),p=String(this),_="function"==typeof e;_||(e=String(e));var v=d.global;if(v){var h=d.unicode;d.lastIndex=0}for(var b=[];;){var g=r(d,p);if(null===g)break;if(b.push(g),!v)break;""===String(g[0])&&(d.lastIndex=l(p,i(d.lastIndex),h))}for(var y,w="",x=0,k=0;k<b.length;k++){g=b[k];for(var C=String(g[0]),S=c(u(s(g.index),p.length),0),j=[],$=1;$<g.length;$++)j.push(void 0===(y=g[$])?y:String(y));var T=g.groups;if(_){var P=[C].concat(j,S,p);void 0!==T&&P.push(T);var E=String(e.apply(void 0,P))}else E=m(C,p,S,j,T,e);S>=x&&(w+=p.slice(x,S)+E,x=S+C.length)}return w+p.slice(x)}];function m(t,e,a,i,s,l){var r=a+t.length,c=i.length,u=_;return void 0!==s&&(s=o(s),u=p),n.call(l,u,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,a);case"'":return e.slice(r);case"<":l=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}l=i[u-1]}return void 0===l?"":l})}})},a4bb:function(t,e,n){t.exports=n("8aae")},a745:function(t,e,n){t.exports=n("f410")},aae3:function(t,e,n){var a=n("d3f4"),o=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},b0dc:function(t,e,n){var a=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(a(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&a(i.call(t)),e}}},b447:function(t,e,n){var a=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(a(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var a=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,s){var l,r=a(e),c=o(r.length),u=i(s,c);if(t&&n!=n){for(;c>u;)if((l=r[u++])!=l)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===n)return t||u||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var a=n("8436"),o=n("50ed"),i=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},c3a1:function(t,e,n){var a=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return a(t,o)}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",function(){return d}),n.d(e,"a",function(){return c}),n.d(e,"b",function(){return i}),n.d(e,"d",function(){return u});n("a481");var a=n("4aa6"),o=n.n(a);var i="undefined"!=typeof window?window.console:t.console;var s,l,r=/-(\w)/g,c=(s=function(t){return t.replace(r,function(t,e){return e?e.toUpperCase():""})},l=o()(null),function(t){return l[t]||(l[t]=s(t))});function u(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function d(t,e,n){var a=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,a)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},ca5a:function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},cb7c:function(t,e,n){var a=n("d3f4");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},ce7e:function(t,e,n){var a=n("63b6"),o=n("584a"),i=n("294c");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),a(a.S+a.F*i(function(){n(1)}),"Object",s)}},d2c8:function(t,e,n){var a=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,n){var a=n("79aa");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,o){return t.call(e,n,a,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var a=n("e4ae"),o=n("794b"),i=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var a=n("584a"),o=n("e53d"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(t,e,n){n("9427");var a=n("584a").Object;t.exports=function(t,e){return a.create(t,e)}},e4ae:function(t,e,n){var a=n("f772");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var a=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,l=o(t),r=0,c=[];for(n in l)n!=s&&a(l,n)&&c.push(n);for(;e.length>r;)a(l,n=e[r++])&&(~i(c,n)||c.push(n));return c}},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f559:function(t,e,n){"use strict";var a=n("5ca1"),o=n("9def"),i=n("d2c8"),s="".startsWith;a(a.P+a.F*n("5147")("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),a=String(t);return s?s.call(e,a,n):e.slice(n,n+a.length)===a}})},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var a;(n.r(e),"undefined"!=typeof window)&&((a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]));var o=n("5176"),i=n.n(o),s=(n("f559"),n("a4bb")),l=n.n(s),r=n("a745"),c=n.n(r);var u=n("5d73"),d=n.n(u);function p(t,e){return function(t){if(c()(t))return t}(t)||function(t,e){var n=[],a=!0,o=!1,i=void 0;try{for(var s,l=d()(t);!(a=(s=l.next()).done)&&(n.push(s.value),!e||n.length!==e);a=!0);}catch(t){o=!0,i=t}finally{try{a||null==l.return||l.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n("6762"),n("2fdb");var _=n("774e"),f=n.n(_),m=n("c8bb"),v=n.n(m);function h(t){return function(t){if(c()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(v()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return f()(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var b=n("a352"),g=n.n(b),y=n("c649");function w(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function x(t){return["transition-group","TransitionGroup"].includes(t)}function k(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var C=["Start","Add","Remove","Update","End"],S=["Choose","Unchoose","Sort","Filter","Clone"],j=["Move"].concat(C,S).map(function(t){return"on"+t}),$=null,T={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=p(t,1)[0].componentOptions;return!!e&&x(e.tag)}(e);var n=function(t,e,n){var a=0,o=0,i=k(e,n,"header");i&&(a=i.length,t=t?[].concat(h(i),h(t)):h(i));var s=k(e,n,"footer");return s&&(o=s.length,t=t?[].concat(h(t),h(s)):h(s)),{children:t,headerOffset:a,footerOffset:o}}(e,this.$slots,this.$scopedSlots),a=n.children,o=n.headerOffset,s=n.footerOffset;this.headerOffset=o,this.footerOffset=s;var r=function(t,e){var n=null,a=function(t,e){n=function(t,e,n){return void 0===n?t:((t=t||{})[e]=n,t)}(n,t,e)};if(a("attrs",l()(t).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(e,n){return e[n]=t[n],e},{})),!e)return n;var o=e.on,s=e.props,r=e.attrs;return a("on",o),a("props",s),i()(n.attrs,r),n}(this.$attrs,this.componentData);return t(this.getTag(),r,a)},created:function(){null!==this.list&&null!==this.value&&y.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&y.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&y.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};C.forEach(function(n){e["on"+n]=function(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),w.call(e,t,n)}}.call(t,n)}),S.forEach(function(n){e["on"+n]=w.bind(t,n)});var n=l()(this.$attrs).reduce(function(e,n){return e[Object(y.a)(n)]=t.$attrs[n],e},{}),a=i()({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new g.a(this.rootContainer,a),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(y.a)(e);-1===j.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=function(t,e,n,a){if(!t)return[];var o=t.map(function(t){return t.elm}),i=e.length-a,s=h(e).map(function(t,e){return e>=i?o.length:o.indexOf(t)});return n?s.filter(function(t){return-1!==t}):s}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=function(t,e){return t.map(function(t){return t.elm}).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&x(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)t(this.list);else{var e=h(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,h(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,a=this.getUnderlyingPotencialDraggableComponent(e);if(!a)return{component:a};var o=a.realList,s={list:o,component:a};if(e!==n&&o&&a.getUnderlyingVm){var l=a.getUnderlyingVm(n);if(l)return i()(l,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),$=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(y.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var a={element:e,newIndex:n};this.emitChanges({added:a})}},onDragRemove:function(t){if(Object(y.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(y.d)(t.clone)},onDragUpdate:function(t){Object(y.d)(t.item),Object(y.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var a={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:a})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=h(e.to.children).filter(function(t){return"none"!==t.style.display}),a=n.indexOf(e.related),o=t.component.getVmIndex(a);return-1!==n.indexOf($)||!e.willInsertAfter?o:o+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(t),o=this.context,s=this.computeFutureIndex(a,t);return i()(o,{futureIndex:s}),n(i()({},t,{relatedContext:a,draggedContext:o}),e)},onDragEnd:function(){this.computeIndexes(),$=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var P=T;e.default=P}}).default},,,,,,,,,,,,,,,,,,,,function(t,e,n){var a=n(0)(n(326),n(327),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(339),n(356),!1,function(t){n(337)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(354),n(355),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(359),n(367),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(371),n(372),!1,function(t){n(369)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(373),n(374),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(386),n(387),!1,function(t){n(384)},"data-v-ad6aab96",null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(388),n(389),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(37),o=n(418),i=n(424),s=n(432),l=i(function(t){var e=a(t,s);return e.length&&e[0]===t[0]?o(e):[]});t.exports=l},function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),a.forEach(function(e){o(t,e,n[e])})}return t}function l(t,e){if(null==t)return{};var n,a,o=function(t,e){if(null==t)return{};var n,a,o={},i=Object.keys(t);for(a=0;a<i.length;a++)n=i[a],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"MultiDrag",function(){return ge}),n.d(e,"Sortable",function(){return Rt}),n.d(e,"Swap",function(){return re});function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),_=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),f=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),v={capture:!1,passive:!1};function h(t,e,n){t.addEventListener(e,n,!u&&v)}function b(t,e,n){t.removeEventListener(e,n,!u&&v)}function g(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,n,a){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&g(t,e):g(t,e))||a&&t===n)return t;if(t===n)break}while(t=y(t))}return null}var x,k=/\s+/g;function C(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(k," ")}}function S(t,e,n){var a=t&&t.style;if(a){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in a||-1!==e.indexOf("webkit")||(e="-webkit-"+e),a[e]=n+("string"==typeof n?"":"px")}}function j(t,e){var n="";if("string"==typeof t)n=t;else do{var a=S(t,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return o&&new o(n)}function $(t,e,n){if(t){var a=t.getElementsByTagName(e),o=0,i=a.length;if(n)for(;o<i;o++)n(a[o],o);return a}return[]}function T(){return u?document.documentElement:document.scrollingElement}function P(t,e,n,a,o){if(t.getBoundingClientRect||t===window){var i,s,l,r,c,d,p;if(t!==window&&t!==T()?(s=(i=t.getBoundingClientRect()).top,l=i.left,r=i.bottom,c=i.right,d=i.height,p=i.width):(s=0,l=0,r=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!u))do{if(o&&o.getBoundingClientRect&&("none"!==S(o,"transform")||n&&"static"!==S(o,"position"))){var _=o.getBoundingClientRect();s-=_.top+parseInt(S(o,"border-top-width")),l-=_.left+parseInt(S(o,"border-left-width")),r=s+i.height,c=l+i.width;break}}while(o=o.parentNode);if(a&&t!==window){var f=j(o||t),m=f&&f.a,v=f&&f.d;f&&(r=(s/=v)+(d/=v),c=(l/=m)+(p/=m))}return{top:s,left:l,bottom:r,right:c,width:p,height:d}}}function E(t,e,n){for(var a=F(t,!0),o=P(t)[e];a;){var i=P(a)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return a;if(a===T())break;a=F(a,!1)}return!1}function A(t,e,n){for(var a=0,o=0,i=t.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Rt.ghost&&i[o]!==Rt.dragged&&w(i[o],n.draggable,t,!1)){if(a===e)return i[o];a++}o++}return null}function O(t,e){for(var n=t.lastElementChild;n&&(n===Rt.ghost||"none"===S(n,"display")||e&&!g(n,e));)n=n.previousElementSibling;return n||null}function D(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Rt.clone||e&&!g(t,e)||n++;return n}function N(t){var e=0,n=0,a=T();if(t)do{var o=j(t),i=o.a,s=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*s}while(t!==a&&(t=t.parentNode));return[e,n]}function F(t,e){if(!t||!t.getBoundingClientRect)return T();var n=t,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return T();if(a||e)return n;a=!0}}}while(n=n.parentNode);return T()}function I(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function M(t,e){return function(){if(!x){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),x=setTimeout(function(){x=void 0},e)}}}function L(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function R(t,e){S(t,"position","absolute"),S(t,"top",e.top),S(t,"left",e.left),S(t,"width",e.width),S(t,"height",e.height)}function B(t){S(t,"position",""),S(t,"top",""),S(t,"left",""),S(t,"width",""),S(t,"height","")}var q="Sortable"+(new Date).getTime();function U(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==S(t,"display")&&t!==Rt.ghost){e.push({target:t,rect:P(t)});var n=s({},e[e.length-1].rect);if(t.thisAnimationDuration){var a=j(t,!0);a&&(n.top-=a.f,n.left-=a.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var a in e)if(e.hasOwnProperty(a)&&e[a]===t[n][a])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var a=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,i=0;e.forEach(function(t){var e=0,n=t.target,s=n.fromRect,l=P(n),r=n.prevFromRect,c=n.prevToRect,u=t.rect,d=j(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&I(r,l)&&!I(s,l)&&(u.top-l.top)/(u.left-l.left)==(s.top-l.top)/(s.left-l.left)&&(e=function(t,e,n,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*a.animation}(u,r,c,a.options)),I(l,s)||(n.prevFromRect=s,n.prevToRect=l,e||(e=a.options.animation),a.animate(n,u,l,e)),e&&(o=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),o?t=setTimeout(function(){"function"==typeof n&&n()},i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,a){if(a){S(t,"transition",""),S(t,"transform","");var o=j(this.el),i=o&&o.a,s=o&&o.d,l=(e.left-n.left)/(i||1),r=(e.top-n.top)/(s||1);t.animatingX=!!l,t.animatingY=!!r,S(t,"transform","translate3d("+l+"px,"+r+"px,0)"),function(t){t.offsetWidth}(t),S(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),S(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){S(t,"transition",""),S(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}var V=[],H={initializeByDefault:!0},Y={mount:function(t){for(var e in H)!H.hasOwnProperty(e)||e in t||(t[e]=H[e]);V.push(t)},pluginEvent:function(t,e,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=t+"Global";V.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](s({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](s({sortable:e},n)))})},initializePlugins:function(t,e,n,a){for(var o in V.forEach(function(a){var o=a.pluginName;if(t.options[o]||a.initializeByDefault){var s=new a(t,e,t.options);s.sortable=t,s.options=t.options,t[o]=s,i(n,s.defaults)}}),t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);void 0!==s&&(t.options[o]=s)}},getEventProperties:function(t,e){var n={};return V.forEach(function(a){"function"==typeof a.eventProperties&&i(n,a.eventProperties.call(e[a.pluginName],t))}),n},modifyOption:function(t,e,n){var a;return V.forEach(function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(a=o.optionListeners[e].call(t[o.pluginName],n))}),a}};function W(t){var e=t.sortable,n=t.rootEl,a=t.name,o=t.targetEl,i=t.cloneEl,l=t.toEl,r=t.fromEl,c=t.oldIndex,p=t.newIndex,_=t.oldDraggableIndex,f=t.newDraggableIndex,m=t.originalEvent,v=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[q]){var b,g=e.options,y="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(a,!0,!0):b=new CustomEvent(a,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=r||n,b.item=o||n,b.clone=i,b.oldIndex=c,b.newIndex=p,b.oldDraggableIndex=_,b.newDraggableIndex=f,b.originalEvent=m,b.pullMode=v?v.lastPutMode:void 0;var w=s({},h,Y.getEventProperties(a,e));for(var x in w)b[x]=w[x];n&&n.dispatchEvent(b),g[y]&&g[y].call(e,b)}}var J=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,o=l(n,["evt"]);Y.pluginEvent.bind(Rt)(t,e,s({dragEl:G,parentEl:K,ghostEl:X,rootEl:Z,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:at,dragStarted:vt,putSortable:ct,activeSortable:Rt.active,originalEvent:a,oldIndex:ot,oldDraggableIndex:st,newIndex:it,newDraggableIndex:lt,hideGhostForTarget:It,unhideGhostForTarget:Mt,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(t){Q({sortable:e,name:t,originalEvent:a})}},o))};function Q(t){W(s({putSortable:ct,cloneEl:nt,targetEl:G,rootEl:Z,oldIndex:ot,oldDraggableIndex:st,newIndex:it,newDraggableIndex:lt},t))}var G,K,X,Z,tt,et,nt,at,ot,it,st,lt,rt,ct,ut,dt,pt,_t,ft,mt,vt,ht,bt,gt,yt,wt=!1,xt=!1,kt=[],Ct=!1,St=!1,jt=[],$t=!1,Tt=[],Pt="undefined"!=typeof document,Et=f,At=d||u?"cssFloat":"float",Ot=Pt&&!m&&!f&&"draggable"in document.createElement("div"),Dt=function(){if(Pt){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var n=S(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=A(t,0,e),i=A(t,1,e),s=o&&S(o),l=i&&S(i),r=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&"none"!==s.float){var u="left"===s.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||r>=a&&"none"===n[At]||i&&"none"===n[At]&&r+c>a)?"vertical":"horizontal"},Ft=function(t){function e(t,n){return function(a,o,i,s){var l=a.options.group.name&&o.options.group.name&&a.options.group.name===o.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(a,o,i,s),n)(a,o,i,s);var r=(n?a:o).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var n={},o=t.group;o&&"object"==a(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},It=function(){!Dt&&X&&S(X,"display","none")},Mt=function(){!Dt&&X&&S(X,"display","")};Pt&&document.addEventListener("click",function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1},!0);var Lt=function(t){if(G){t=t.touches?t.touches[0]:t;var e=(o=t.clientX,i=t.clientY,kt.some(function(t){if(!O(t)){var e=P(t),n=t[q].options.emptyInsertThreshold,a=o>=e.left-n&&o<=e.right+n,l=i>=e.top-n&&i<=e.bottom+n;return n&&a&&l?s=t:void 0}}),s);if(e){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[q]._onDragOver(n)}}var o,i,s},zt=function(t){G&&G.parentNode[q]._isOutsideThisEl(t.target)};function Rt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=i({},e),t[q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Rt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in Y.initializePlugins(this,t,n),n)!(a in e)&&(e[a]=n[a]);for(var o in Ft(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),i(this,U())}function Bt(t,e,n,a,o,i,s,l){var r,c,p=t[q],_=p.options.onMove;return!window.CustomEvent||u||d?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=n,r.draggedRect=a,r.related=o||e,r.relatedRect=i||P(e),r.willInsertAfter=l,r.originalEvent=s,t.dispatchEvent(r),_&&(c=_.call(p,r,s)),c}function qt(t){t.draggable=!1}function Ut(){$t=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,a=0;n--;)a+=e.charCodeAt(n);return a.toString(36)}function Ht(t){return setTimeout(t,0)}function Yt(t){return clearTimeout(t)}Rt.prototype={constructor:Rt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ht=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,G):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,a=this.options,o=a.preventOnFilter,i=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(s||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=a.filter;if(function(t){Tt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var a=e[n];a.checked&&Tt.push(a)}}(n),!G&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||a.disabled||r.isContentEditable||(l=w(l,a.draggable,n,!1))&&l.animated||et===l)){if(ot=D(l),st=D(l,a.draggable),"function"==typeof c){if(c.call(this,t,l,this))return Q({sortable:e,rootEl:r,name:"filter",targetEl:l,toEl:n,fromEl:n}),J("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(a){if(a=w(r,a.trim(),n,!1))return Q({sortable:e,rootEl:a,name:"filter",targetEl:l,fromEl:n,toEl:n}),J("filter",e,{evt:t}),!0})))return void(o&&t.cancelable&&t.preventDefault());a.handle&&!w(r,a.handle,n,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,e,n){var a,o=this,i=o.el,s=o.options,l=i.ownerDocument;if(n&&!G&&n.parentNode===i){var r=P(n);if(Z=i,K=(G=n).parentNode,tt=G.nextSibling,et=n,rt=s.group,Rt.dragged=G,ut={target:G,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-r.left,mt=ut.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,G.style["will-change"]="all",a=function(){J("delayEnded",o,{evt:t}),Rt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!p&&o.nativeDraggable&&(G.draggable=!0),o._triggerDragStart(t,e),Q({sortable:o,name:"choose",originalEvent:t}),C(G,s.chosenClass,!0))},s.ignore.split(",").forEach(function(t){$(G,t.trim(),qt)}),h(l,"dragover",Lt),h(l,"mousemove",Lt),h(l,"touchmove",Lt),h(l,"mouseup",o._onDrop),h(l,"touchend",o._onDrop),h(l,"touchcancel",o._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),J("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))a();else{if(Rt.eventCanceled)return void this._onDrop();h(l,"mouseup",o._disableDelayedDrag),h(l,"touchend",o._disableDelayedDrag),h(l,"touchcancel",o._disableDelayedDrag),h(l,"mousemove",o._delayedDragTouchMoveHandler),h(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&h(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&qt(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,e?"touchmove":"mousemove",this._onTouchMove):(h(G,"dragend",this),h(Z,"dragstart",this._onDragStart));try{document.selection?Ht(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,Z&&G){J("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",zt);var n=this.options;!t&&C(G,n.dragClass,!1),C(G,n.ghostClass,!0),Rt.active=this,t&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,It();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(G.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){if(e[q]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Mt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,a=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=X&&j(X),s=X&&i&&i.a,l=X&&i&&i.d,r=Et&&yt&&N(yt),c=(o.clientX-ut.clientX+a.x)/(s||1)+(r?r[0]-jt[0]:0)/(s||1),u=(o.clientY-ut.clientY+a.y)/(l||1)+(r?r[1]-jt[1]:0)/(l||1);if(!Rt.active&&!wt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(X){i?(i.e+=c-(pt||0),i.f+=u-(_t||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");S(X,"webkitTransform",d),S(X,"mozTransform",d),S(X,"msTransform",d),S(X,"transform",d),pt=c,_t=u,dt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!X){var t=this.options.fallbackOnBody?document.body:Z,e=P(G,!0,Et,!0,t),n=this.options;if(Et){for(yt=t;"static"===S(yt,"position")&&"none"===S(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=T()),e.top+=yt.scrollTop,e.left+=yt.scrollLeft):yt=T(),jt=N(yt)}C(X=G.cloneNode(!0),n.ghostClass,!1),C(X,n.fallbackClass,!0),C(X,n.dragClass,!0),S(X,"transition",""),S(X,"transform",""),S(X,"box-sizing","border-box"),S(X,"margin",0),S(X,"top",e.top),S(X,"left",e.left),S(X,"width",e.width),S(X,"height",e.height),S(X,"opacity","0.8"),S(X,"position",Et?"absolute":"fixed"),S(X,"zIndex","100000"),S(X,"pointerEvents","none"),Rt.ghost=X,t.appendChild(X),S(X,"transform-origin",ft/parseInt(X.style.width)*100+"% "+mt/parseInt(X.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,a=t.dataTransfer,o=n.options;J("dragStart",this,{evt:t}),Rt.eventCanceled?this._onDrop():(J("setupClone",this),Rt.eventCanceled||((nt=z(G)).draggable=!1,nt.style["will-change"]="",this._hideClone(),C(nt,this.options.chosenClass,!1),Rt.clone=nt),n.cloneId=Ht(function(){J("clone",n),Rt.eventCanceled||(n.options.removeCloneOnHide||Z.insertBefore(nt,G),n._hideClone(),Q({sortable:n,name:"clone"}))}),!e&&C(G,o.dragClass,!0),e?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,G)),h(document,"drop",n),S(G,"transform","translateZ(0)")),wt=!0,n._dragStartId=Ht(n._dragStarted.bind(n,e,t)),h(document,"selectstart",n),vt=!0,_&&S(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,a,o,i=this.el,l=t.target,r=this.options,c=r.group,u=Rt.active,d=rt===c,p=r.sort,_=ct||u,f=this,m=!1;if(!$t){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=w(l,r.draggable,i,!0),I("dragOver"),Rt.eventCanceled)return m;if(G.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return z(!1);if(xt=!1,u&&!r.disabled&&(d?p||(a=!Z.contains(G)):ct===this||(this.lastPutMode=rt.checkPull(this,u,G,t))&&c.checkPut(this,u,G,t))){if(o="vertical"===this._getDirection(t,l),e=P(G),I("dragOverValid"),Rt.eventCanceled)return m;if(a)return K=Z,M(),this._hideClone(),I("revert"),Rt.eventCanceled||(tt?Z.insertBefore(G,tt):Z.appendChild(G)),z(!0);var v=O(i,r.draggable);if(!v||function(t,e,n){var a=P(O(n.el,n.options.draggable));return e?t.clientX>a.right+10||t.clientX<=a.right&&t.clientY>a.bottom&&t.clientX>=a.left:t.clientX>a.right&&t.clientY>a.top||t.clientX<=a.right&&t.clientY>a.bottom+10}(t,o,this)&&!v.animated){if(v===G)return z(!1);if(v&&i===t.target&&(l=v),l&&(n=P(l)),!1!==Bt(Z,i,G,e,l,n,t,!!l))return M(),i.appendChild(G),K=i,R(),z(!0)}else if(l.parentNode===i){n=P(l);var h,b,g,y=G.parentNode!==i,x=!function(t,e,n){var a=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,s=n?e.left:e.top,l=n?e.right:e.bottom,r=n?e.width:e.height;return a===s||o===l||a+i/2===s+r/2}(G.animated&&G.toRect||e,l.animated&&l.toRect||n,o),k=o?"top":"left",j=E(l,"top","top")||E(G,"top","top"),$=j?j.scrollTop:void 0;if(ht!==l&&(b=n[k],Ct=!1,St=!x&&r.invertSwap||y),0!==(h=function(t,e,n,a,o,i,s,l){var r=a?t.clientY:t.clientX,c=a?n.height:n.width,u=a?n.top:n.left,d=a?n.bottom:n.right,p=!1;if(!s)if(l&&gt<c*o){if(!Ct&&(1===bt?r>u+c*i/2:r<d-c*i/2)&&(Ct=!0),Ct)p=!0;else if(1===bt?r<u+gt:r>d-gt)return-bt}else if(r>u+c*(1-o)/2&&r<d-c*(1-o)/2)return function(t){return D(G)<D(t)?1:-1}(e);if((p=p||s)&&(r<u+c*i/2||r>d-c*i/2))return r>u+c/2?1:-1;return 0}(t,l,n,o,x?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,St,ht===l))){var T=D(G);do{T-=h,g=K.children[T]}while(g&&("none"===S(g,"display")||g===X))}if(0===h||g===l)return z(!1);ht=l,bt=h;var A=l.nextElementSibling,N=!1,F=Bt(Z,i,G,e,l,n,t,N=1===h);if(!1!==F)return 1!==F&&-1!==F||(N=1===F),$t=!0,setTimeout(Ut,30),M(),N&&!A?i.appendChild(G):l.parentNode.insertBefore(G,N?A:l),j&&L(j,0,$-j.scrollTop),K=G.parentNode,void 0===b||St||(gt=Math.abs(b-P(l)[k])),R(),z(!0)}if(i.contains(G))return z(!1)}return!1}function I(r,c){J(r,f,s({evt:t,isOwner:d,axis:o?"vertical":"horizontal",revert:a,dragRect:e,targetRect:n,canSort:p,fromSortable:_,target:l,completed:z,onMove:function(n,a){return Bt(Z,i,G,e,n,P(n),t,a)},changed:R},c))}function M(){I("dragOverAnimationCapture"),f.captureAnimationState(),f!==_&&_.captureAnimationState()}function z(e){return I("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(f),f!==_&&(C(G,ct?ct.options.ghostClass:u.options.ghostClass,!1),C(G,r.ghostClass,!0)),ct!==f&&f!==Rt.active?ct=f:f===Rt.active&&ct&&(ct=null),_===f&&(f._ignoreWhileAnimating=l),f.animateAll(function(){I("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==_&&(_.animateAll(),_._ignoreWhileAnimating=null)),(l===G&&!G.animated||l===i&&!l.animated)&&(ht=null),r.dragoverBubble||t.rootEl||l===document||(G.parentNode[q]._isOutsideThisEl(t.target),!e&&Lt(t)),!r.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function R(){it=D(G),lt=D(G,r.draggable),Q({sortable:f,name:"change",toEl:i,newIndex:it,newDraggableIndex:lt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Lt),b(document,"mousemove",Lt),b(document,"touchmove",Lt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;it=D(G),lt=D(G,n.draggable),J("drop",this,{evt:t}),K=G&&G.parentNode,it=D(G),lt=D(G,n.draggable),Rt.eventCanceled?this._nulling():(wt=!1,St=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yt(this.cloneId),Yt(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&S(document.body,"user-select",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Z===K||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),G&&(this.nativeDraggable&&b(G,"dragend",this),qt(G),G.style["will-change"]="",vt&&!wt&&C(G,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(G,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:K,newIndex:null,newDraggableIndex:null,originalEvent:t}),Z!==K?(it>=0&&(Q({rootEl:K,name:"add",toEl:K,fromEl:Z,originalEvent:t}),Q({sortable:this,name:"remove",toEl:K,originalEvent:t}),Q({rootEl:K,name:"sort",toEl:K,fromEl:Z,originalEvent:t}),Q({sortable:this,name:"sort",toEl:K,originalEvent:t})),ct&&ct.save()):it!==ot&&it>=0&&(Q({sortable:this,name:"update",toEl:K,originalEvent:t}),Q({sortable:this,name:"sort",toEl:K,originalEvent:t})),Rt.active&&(null!=it&&-1!==it||(it=ot,lt=st),Q({sortable:this,name:"end",toEl:K,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){J("nulling",this),Z=G=K=X=tt=nt=et=at=ut=dt=vt=it=lt=ot=st=ht=bt=ct=rt=Rt.dragged=Rt.ghost=Rt.clone=Rt.active=null,Tt.forEach(function(t){t.checked=!0}),Tt.length=pt=_t=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":G&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,a=0,o=n.length,i=this.options;a<o;a++)w(t=n[a],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Vt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,a){var o=n.children[a];w(o,this.options.draggable,n,!1)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return w(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var a=Y.modifyOption(this,t,e);n[t]=void 0!==a?a:e,"group"===t&&Ft(n)},destroy:function(){J("destroy",this);var t=this.el;t[q]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),kt.splice(kt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!at){if(J("hideClone",this),Rt.eventCanceled)return;S(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),at=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(at){if(J("showClone",this),Rt.eventCanceled)return;Z.contains(G)&&!this.options.group.revertClone?Z.insertBefore(nt,G):tt?Z.insertBefore(nt,tt):Z.appendChild(nt),this.options.group.revertClone&&this.animate(G,nt),S(nt,"display",""),at=!1}}else this._hideClone()}},Pt&&h(document,"touchmove",function(t){(Rt.active||wt)&&t.cancelable&&t.preventDefault()}),Rt.utils={on:h,off:b,css:S,find:$,is:function(t,e){return!!w(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:M,closest:w,toggleClass:C,clone:z,index:D,nextTick:Ht,cancelNextTick:Yt,detectDirection:Nt,getChild:A},Rt.get=function(t){return t[q]},Rt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Rt.utils=s({},Rt.utils,t.utils)),Y.mount(t)})},Rt.create=function(t,e){return new Rt(t,e)},Rt.version="1.10.1";var Wt,Jt,Qt,Gt,Kt,Xt,Zt=[],te=!1;function ee(){Zt.forEach(function(t){clearInterval(t.pid)}),Zt=[]}function ne(){clearInterval(Xt)}var ae,oe=M(function(t,e,n,a){if(e.scroll){var o,i=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,r=e.scrollSpeed,c=T(),u=!1;Jt!==n&&(Jt=n,ee(),Wt=e.scroll,o=e.scrollFn,!0===Wt&&(Wt=F(n,!0)));var d=0,p=Wt;do{var _=p,f=P(_),m=f.top,v=f.bottom,h=f.left,b=f.right,g=f.width,y=f.height,w=void 0,x=void 0,k=_.scrollWidth,C=_.scrollHeight,j=S(_),$=_.scrollLeft,E=_.scrollTop;_===c?(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY));var A=w&&(Math.abs(b-i)<=l&&$+g<k)-(Math.abs(h-i)<=l&&!!$),O=x&&(Math.abs(v-s)<=l&&E+y<C)-(Math.abs(m-s)<=l&&!!E);if(!Zt[d])for(var D=0;D<=d;D++)Zt[D]||(Zt[D]={});Zt[d].vx==A&&Zt[d].vy==O&&Zt[d].el===_||(Zt[d].el=_,Zt[d].vx=A,Zt[d].vy=O,clearInterval(Zt[d].pid),0==A&&0==O||(u=!0,Zt[d].pid=setInterval(function(){a&&0===this.layer&&Rt.active._onTouchMove(Kt);var e=Zt[this.layer].vy?Zt[this.layer].vy*r:0,n=Zt[this.layer].vx?Zt[this.layer].vx*r:0;"function"==typeof o&&"continue"!==o.call(Rt.dragged.parentNode[q],n,e,t,Kt,Zt[this.layer].el)||L(Zt[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=F(p,!1)));te=u}},30),ie=function(t){var e=t.originalEvent,n=t.putSortable,a=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var r=n||o;s();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),r&&!r.el.contains(u)&&(i("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function se(){}function le(){}function re(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ae=e},dragOverValid:function(t){var e=t.completed,n=t.target,a=t.onMove,o=t.activeSortable,i=t.changed,s=t.cancel;if(o.options.swap){var l=this.sortable.el,r=this.options;if(n&&n!==l){var c=ae;!1!==a(n)?(C(n,r.swapClass,!0),ae=n):ae=null,c&&c!==ae&&C(c,r.swapClass,!1)}i(),e(!0),s()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,a=t.dragEl,o=n||this.sortable,i=this.options;ae&&C(ae,i.swapClass,!1),ae&&(i.swap||n&&n.options.swap)&&a!==ae&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),function(t,e){var n,a,o=t.parentNode,i=e.parentNode;if(!o||!i||o.isEqualNode(e)||i.isEqualNode(t))return;n=D(t),a=D(e),o.isEqualNode(i)&&n<a&&a++;o.insertBefore(e,o.children[n]),i.insertBefore(t,i.children[a])}(a,ae),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){ae=null}},i(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ae}}})}se.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=A(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ie},i(se,{pluginName:"revertOnSpill"}),le.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:ie},i(le,{pluginName:"removeOnSpill"});var ce,ue,de,pe,_e,fe=[],me=[],ve=!1,he=!1,be=!1;function ge(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag)),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var a="";fe.length&&ue===t?fe.forEach(function(t,e){a+=(e?", ":"")+t.textContent}):a=n.textContent,e.setData("Text",a)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~fe.indexOf(de)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var a=0;a<fe.length;a++)me.push(z(fe[a])),me[a].sortableIndex=fe[a].sortableIndex,me[a].draggable=!1,me[a].style["will-change"]="",C(me[a],this.options.selectedClass,!1),fe[a]===de&&C(me[a],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,a=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||fe.length&&ue===e&&(ye(!0,n),a("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,a=t.cancel;this.isMultiDrag&&(ye(!1,n),me.forEach(function(t){S(t,"display","")}),e(),_e=!1,a())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),a=t.cancel;this.isMultiDrag&&(me.forEach(function(t){S(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),_e=!0,a())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),fe.forEach(function(t){t.sortableIndex=D(t)}),fe=fe.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){fe.forEach(function(t){t!==de&&S(t,"position","absolute")});var a=P(de,!1,!0,!0);fe.forEach(function(t){t!==de&&R(t,a)}),he=!0,ve=!0}n.animateAll(function(){he=!1,ve=!1,e.options.animation&&fe.forEach(function(t){B(t)}),e.options.sort&&we()})}},dragOver:function(t){var e=t.target,n=t.completed,a=t.cancel;he&&~fe.indexOf(e)&&(n(!1),a())},revert:function(t){var e=t.fromSortable,n=t.rootEl,a=t.sortable,o=t.dragRect;fe.length>1&&(fe.forEach(function(t){a.addAnimationState({target:t,rect:he?P(t):o}),B(t),t.fromRect=o,e.removeAnimationState(t)}),he=!1,function(t,e){fe.forEach(function(n,a){var o=e.children[n.sortableIndex+(t?Number(a):0)];o?e.insertBefore(n,o):e.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,a=t.insertion,o=t.activeSortable,i=t.parentEl,s=t.putSortable,l=this.options;if(a){if(n&&o._hideClone(),ve=!1,l.animation&&fe.length>1&&(he||!n&&!o.options.sort&&!s)){var r=P(de,!1,!0,!0);fe.forEach(function(t){t!==de&&(R(t,r),i.appendChild(t))}),he=!0}if(!n)if(he||we(),fe.length>1){var c=_e;o._showClone(e),o.options.animation&&!_e&&c&&me.forEach(function(t){o.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null})}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,a=t.activeSortable;if(fe.forEach(function(t){t.thisAnimationDuration=null}),a.options.animation&&!n&&a.multiDrag.isMultiDrag){pe=i({},e);var o=j(de,!0);pe.top-=o.f,pe.left-=o.e}},dragOverAnimationComplete:function(){he&&(he=!1,we())},drop:function(t){var e=t.originalEvent,n=t.rootEl,a=t.parentEl,o=t.sortable,i=t.dispatchSortableEvent,s=t.oldIndex,l=t.putSortable,r=l||this.sortable;if(e){var c=this.options,u=a.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(de,c.selectedClass,!~fe.indexOf(de)),~fe.indexOf(de))fe.splice(fe.indexOf(de),1),ce=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:de,originalEvt:e});else{if(fe.push(de),W({sortable:o,rootEl:n,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&o.el.contains(ce)){var d,p,_=D(ce),f=D(de);if(~_&&~f&&_!==f)for(f>_?(p=_,d=f):(p=f,d=_+1);p<d;p++)~fe.indexOf(u[p])||(C(u[p],c.selectedClass,!0),fe.push(u[p]),W({sortable:o,rootEl:n,name:"select",targetEl:u[p],originalEvt:e}))}else ce=de;ue=r}if(be&&this.isMultiDrag){if((a[q].options.sort||a!==n)&&fe.length>1){var m=P(de),v=D(de,":not(."+this.options.selectedClass+")");if(!ve&&c.animation&&(de.thisAnimationDuration=null),r.captureAnimationState(),!ve&&(c.animation&&(de.fromRect=m,fe.forEach(function(t){if(t.thisAnimationDuration=null,t!==de){var e=he?P(t):m;t.fromRect=e,r.addAnimationState({target:t,rect:e})}})),we(),fe.forEach(function(t){u[v]?a.insertBefore(t,u[v]):a.appendChild(t),v++}),s===D(de))){var h=!1;fe.forEach(function(t){t.sortableIndex===D(t)||(h=!0)}),h&&i("update")}fe.forEach(function(t){B(t)}),r.animateAll()}ue=r}(n===a||l&&"clone"!==l.lastPutMode)&&me.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=be=!1,me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!be&&ue===this.sortable&&!(t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;fe.length;){var e=fe[0];C(e,this.options.selectedClass,!1),fe.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[q];e&&e.options.multiDrag&&!~fe.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),C(t,e.options.selectedClass,!0),fe.push(t))},deselect:function(t){var e=t.parentNode[q],n=fe.indexOf(t);e&&e.options.multiDrag&&~n&&(C(t,e.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return fe.forEach(function(a){var o;e.push({multiDragElement:a,index:a.sortableIndex}),o=he&&a!==de?-1:he?D(a,":not(."+t.options.selectedClass+")"):D(a),n.push({multiDragElement:a,index:o})}),{items:r(fe),clones:[].concat(me),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){me.forEach(function(n,a){var o=e.children[n.sortableIndex+(t?Number(a):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function we(){fe.forEach(function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)})}Rt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):e.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(x),x=void 0},nulling:function(){Kt=Jt=Wt=te=Xt=Qt=Gt=null,Zt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,a=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(a,o);if(Kt=t,e||d||u||_){oe(t,this.options,i,e);var s=F(i,!0);!te||Xt&&a===Qt&&o===Gt||(Xt&&ne(),Xt=setInterval(function(){var i=F(document.elementFromPoint(a,o),!0);i!==s&&(s=i,ee()),oe(t,n.options,i,e)},10),Qt=a,Gt=o)}else{if(!this.options.bubbleScroll||F(i,!0)===T())return void ee();oe(t,this.options,F(i,!1),!1)}}},i(t,{pluginName:"scroll",initializeByDefault:!0})}),Rt.mount(le,se),e.default=Rt},function(t,e,n){var a=n(467)(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});t.exports=a},function(t,e,n){var a=n(0)(n(479),n(480),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(486),n(487),!1,function(t){n(484)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(491),n(492),!1,function(t){n(489)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(500),n(501),!1,function(t){n(498)},null,null);t.exports=a.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(298)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(299),o=n.n(a),i=n(307),s=n(313),l=n(403),r=n(406),c=n(411),u=n(416),d=n(435),p=n(440),_=n(443),f=n(448),m=n(463),v=n(551),h=n(578),b=n(589),g=n(598),y=[{path:"/",component:i,props:!0,children:[{path:"home",name:"home",component:s},{path:"/tools",component:l,children:[{path:"",name:"import_tables",component:r},{path:"default_table_appearance",name:"default_table_appearance",component:u},{path:"permission",name:"permission",component:c},{path:"licensing",name:"licensing",component:d},{path:"global_settings",name:"global_settings",component:p}]},{path:"/help",name:"help",component:b}]},{path:"/tables/:table_id",component:f,props:!0,children:[{path:"",name:"data_items",component:m},{path:"columns",name:"data_columns",component:v},{path:"design_studio",name:"design_studio",component:n(613)},{path:"additional_css",name:"additional_css",component:g},{path:"import-export",name:"import-export",component:h},{path:"table_editing",name:"table_editing",component:n(618)}]},{path:"/charts",component:_,props:!0}],w=n(621),x=n.n(w);window.ninjaTableBus=new window.NINJATABLE.Vue,window.NINJATABLE.Vue.mixin({methods:{$t:function(t){var e=ninja_table_admin.i18n[t];return e||t},setStoreData:function(t,e){window.localStorage&&localStorage.setItem("ninjatable_"+t,e)},getFromStore:function(t,e){if(window.localStorage){var n=localStorage.getItem("ninjatable_"+t);if(n)return n}return e},applyFilters:window.NINJATABLE.applyFilters,addFilter:window.NINJATABLE.addFilter,addAction:window.NINJATABLE.addFilter,doAction:window.NINJATABLE.doAction,$get:window.NINJATABLE.$get,$post:window.NINJATABLE.$post,$getJSON:window.NINJATABLE.$getJSON,clipboard:function(){var t=this;window.clipboard||(window.clipboard=new o.a(".copy"),window.clipboard.on("success",function(e){t.$message({message:"Copied to Clipboard!",type:"success"})}))}},data:function(){return{}},directives:{focus:{inserted:function(t){t.focus()}}},filters:{ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}});var k=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",y),linkActiveClass:"active"});x.a.router=k,window.ninjaApp=new window.NINJATABLE.Vue(x.a).$mount("#data-tables-app")},function(t,e,n){var a,o,i,s;s=function(t,e,n,a){"use strict";var o=l(e),i=l(n),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a.resolveOptions(n),a.listenClick(t),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),c(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,s.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){var e=d("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}();function d(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=u},o=[t,n(300),n(302),n(303)],void 0===(i="function"==typeof(a=s)?a.apply(e,o):a)||(t.exports=i)},function(t,e,n){var a,o,i,s;s=function(t,e){"use strict";var n,a=(n=e)&&n.__esModule?n:{default:n};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},o=[t,n(301)],void 0===(i="function"==typeof(a=s)?a.apply(e,o):a)||(t.exports=i)},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var a=window.getSelection(),o=document.createRange();o.selectNodeContents(t),a.removeAllRanges(),a.addRange(o),e=a.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var a=this;function o(){a.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),a=0,o=n.length;a<o;a++)n[a].fn.apply(n[a].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),a=n[t],o=[];if(a&&e)for(var i=0,s=a.length;i<s;i++)a[i].fn!==e&&a[i].fn._!==e&&o.push(a[i]);return o.length?n[t]=o:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var a=n(304),o=n(305);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!a.string(e))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(a.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}(t,e,n);if(a.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(306);function o(t,e,n,o,i){var s=function(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,s,i),{destroy:function(){t.removeEventListener(n,s,i)}}}t.exports=function(t,e,n,a,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,a,i)}))}},function(t,e){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==n;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){var a=n(0)(n(311),n(312),!1,function(t){n(308)},null,null);t.exports=a.exports},function(t,e,n){var a=n(309);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("2e816551",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-menu.el-menu--horizontal{border-bottom:none}",""])},function(t,e){t.exports=function(t,e){for(var n=[],a={},o=0;o<e.length;o++){var i=e[o],s=i[0],l={id:t+":"+o,css:i[1],media:i[2],sourceMap:i[3]};a[s]?a[s].parts.push(l):n.push(a[s]={id:s,parts:[l]})}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"home",data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[]}},computed:{activeMenu:function(){return-1!=["home","help"].indexOf(this.$route.name)?this.$route.name:"import_tables"}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])}},mounted:function(){this.setTopMenu()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_main_nav"},[n("el-menu",{attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[n("span",{staticClass:"plugin-name"},[t._v("\n "+t._s(t.$t("Ninja Tables"))+" "),t.has_pro?[t._v(t._s(t.$t("Pro")))]:t._e()],2),t._v(" "),t._l(t.topMenus,function(e){return n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[n("i",{class:e.icon_class}),t._v(" "),n("span",[t._v("\n "+t._s(e.title)+"\n ")])])}),t._v(" "),n("el-menu-item",{staticClass:"buy_pro_tab",attrs:{index:"buy-pro"}},[t.has_pro?t._e():n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("\n "+t._s(t.$t("Upgrade To Pro"))+"\n ")])])],2)],1),t._v(" "),n("router-view",{attrs:{"has-pro":t.has_pro}})],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(316),n(402),!1,function(t){n(314)},null,null);t.exports=a.exports},function(t,e,n){var a=n(315);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("00d75314",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"label.form_group.search_action{padding-top:0;margin-bottom:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(317),o=n(322),i=n(329),s=n(392),l=n(397);e.default={name:"all_tables",components:{Welcome:a,"list-all-tables":o,"add-table-modal":i,"lead-modal":s,NinjaReviewDialog:l},props:["hasPro"],data:function(){return{modalVisible:!1,published_tables:parseInt(window.ninja_table_admin.published_tables),searchAction:0,searchString:"",selected:[],review_option:window.ninja_table_admin.show_review_dialog}},methods:{addTableAction:function(t){this.$router.push({name:"data_items",params:{table_id:t}}),this.modalVisible=!1},getData:function(){this.searchAction++},makeSelection:function(t){this.selected=t},handleBulkActions:function(t){"delete"===t&&this.deleteTables()},deleteTables:function(){this.selected.length&&this.$confirm(this.$t("This will permanently delete the selected tables. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){}).catch(function(){})}},mounted:function(){var t=this;window.ninjaTableBus.$on("addedTable",function(){t.published_tables||(window.ninja_table_admin.published_tables=1)})}}},function(t,e,n){var a=n(0)(n(320),n(321),!1,function(t){n(318)},null,null);t.exports=a.exports},function(t,e,n){var a=n(319);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59acd174",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_intro_welcome{max-width:600px;margin:45px auto 0;padding:30px 20px;background:#fff;text-align:center}.ninja_intro_welcome h2{font-size:30px}.ninja_intro_welcome .ninja_actions{margin-bottom:30px}.ninja_intro_welcome .ninja_docs{text-align:left}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_intro_welcome"},[n("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),n("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),n("div",{staticClass:"ninja_actions"},[n("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),n("hr"),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_docs"},[e("h4",[this._v("Ninja Tables Documentation:")]),this._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[this._v("\n Demo and Basic Settings\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[this._v("\n Setting Up a Table\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[this._v("\n Make Your Table Looks Great on All Devices\n ")])])])])}]}},function(t,e,n){var a=n(0)(n(325),n(328),!1,function(t){n(323)},null,null);t.exports=a.exports},function(t,e,n){var a=n(324);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("131f02a6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-tables.el-table td,.ninja-tables.el-table th{padding:5px 0}.ninja-tables.el-table span.row-delete a{color:#a00}.ninja-tables.el-table a{text-decoration:none}.ninja-tables.el-table .description .cell{max-height:60px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(209);e.default={name:"Home",components:{ninja_pagination:a},props:["searchAction","searchString"],watch:{searchAction:function(){this.paginate.current_page=1,this.fetchTables()}},data:function(){return{loading:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:parseInt(this.getFromStore("tables_per_page",20))},hasPro:!!window.ninja_table_admin.hasPro,img_url_path:window.ninja_table_admin.img_url,is_installed:window.ninja_table_admin.isInstalled,orderBy:"date",order:"DESC"}},methods:{fetchTables:function(){var t=this;this.pageLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-all-tables",per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString,orderBy:this.orderBy,order:this.order};this.$get(e).done(function(e){t.items=e.data,t.paginate.total=e.total,t.paginate.current_page=e.current_page,t.paginate.last_page=e.last_page,t.pageLoading=!1,e.total&&t.$emit("total_table",e.total)}).fail(function(t){vueNotification.error("Something went wrong, please try again.")})},goToPage:function(t){this.paginate.current_page=t,this.fetchTables()},handleSizeChange:function(t){this.paginate.per_page=t,this.setStoreData("tables_per_page",t),this.fetchTables()},confirmDeleteTable:function(t){var e=this;this.$confirm("Are you sure, You want to delete this table?","Warning",{confirmButtonText:"Yes, Delete",cancelButtonText:"Cancel",type:"warning"}).then(function(){e.deleteTable(t)}).catch(function(){e.$message({type:"info",message:"Delete canceled"})})},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(n).then(function(t){e.fetchTables(),e.$message({type:"success",message:t.message})}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.$emit("selection",t.map(function(t){return t.ID}))},duplicate:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"duplicate-table",tableId:t};this.$post(n).then(function(t){e.$message({type:"success",message:t.data.message}),e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})}).fail(function(t){alert(t.responseJSON.data.message)})},shouldBeVisible:function(t){return"fluent-form"!=t.dataSourceType||window.ninja_table_admin.hasFluentForm},dataSourceType:function(t){var e=t.dataSourceType||"Default";return"raw_sql"==e?"SQL":e=e.indexOf("google")>-1?"Google SpreadSheet":e},handleTableSort:function(t){this.orderBy=t.prop,this.order="ascending"===t.order?"ASC":"DESC",this.fetchTables()}},mounted:function(){this.fetchTables(),this.clipboard()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"NinjaPagination",props:["paginate"],data:function(){return{pageNumberInput:1}},methods:{goToPage:function(t){t>=1&&t<=this.paginate.last_page?(this.$emit("change_page",t),this.pageNumberInput=t):alert("invalid page number")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tablenav-pages"},[t.paginate.total?n("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),n("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[n("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),n("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pageNumberInput,expression:"pageNumberInput"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",size:"2","aria-describedby":"table-paging"},domProps:{value:t.pageNumberInput},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.goToPage(t.pageNumberInput))},input:function(e){e.target.composing||(t.pageNumberInput=e.target.value)}}}),t._v("\n "+t._s(t.$t("of"))+"\n "),n("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[n("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),n("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.pageLoading,expression:"pageLoading",modifiers:{body:!0}}],staticClass:"ninja-tables compact",staticStyle:{},attrs:{data:t.items,border:"","aria-label":"all-tables"},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleTableSort}},[n("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t.shouldBeVisible(e.row)?[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.post_title)+"\n ")])]:[t._v("\n "+t._s(e.row.post_title)+"\n ")],t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=e.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(e.row.post_status)+")\n ")])],2),t._v(" "),n("div",{staticClass:"row-actions"},[t.shouldBeVisible(e.row)?n("span",{staticClass:"row-edit"},[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-preview"},[n("a",{attrs:{rel:"noopener",href:e.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.duplicate(e.row.ID)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)&&e.row.fluentfrom_url?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:e.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),n("span",{staticClass:"row-delete"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.confirmDeleteTable(e.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(e.row.post_content)}})]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t._v(t._s(t.dataSourceType(e.row)))]),t._v(" "),e.row.remoteURL?[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.remoteURL,placement:"top-start"}},[n("i",{staticClass:"dashicons dashicons-info"})])]:t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+e.row.ID+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(e.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1),t._v(" "),!t.loading&&!t.is_installed&&t.items.length>2&&!t.hasPro?n("div",[n("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[n("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?n("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[n("hr"),t._v(" "),n("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{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"}},[t._v("Upgrade To Pro")])]):t._e()],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(332),n(391),!1,function(t){n(330)},null,null);t.exports=a.exports},function(t,e,n){var a=n(331);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6da5e417",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-add-table .el-main{padding:0 1px 0 15px;min-height:0}.ninja-add-table .el-menu{border-right:initial}.ninja-add-table .el-menu-item .el-icon-fluent-form{height:18px}.ninja-add-table .el-menu-item .dashicons{width:24px;height:18px;margin-right:5px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a),i=n(210),s=n.n(i),l=n(357),r=n.n(l),c=n(213),u=n.n(c),d=n(214),p=n.n(d),_=n(375),f=n.n(_),m=n(380),v=n.n(m),h=n(43),b=n.n(h);e.default={name:"add_table",components:{wp_editor:o.a,"wp-posts-data-source":s.a,"woo-data-source":r.a,"fluent-form-data-source":u.a,"external-data-source":p.a,ImportTable:f.a,RawSqlForm:v.a,PremiumNotice:b.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:""}}},hasPro:{required:!0}},data:function(){return{activeTabName:"default",btnLoading:!1,activated_features:window.ninja_table_admin.activated_features,has_sql_permission:"yes"==window.ninja_table_admin.sql_permission,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},isCollapse:!1,fluentFormIcon:window.ninja_table_admin.fluent_form_icon,wooIcon:window.ninja_table_admin.img_url+"woo-logo.png",has_woo:!!window.ninja_table_admin.has_woocommerce}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),window.ninjaTableBus.$emit("addedTable"),t.table.ID?t.closeModal():t.fireTableCreated(e.table_id)}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")},onEditorChange:function(t){t.editor;var e=t.html;t.text;this.table.post_content=e},fireTableCreated:function(t){this.$emit("table_inserted",t)},checkScreenSize:function(){window.innerWidth<1e3?this.isCollapse=!0:this.isCollapse=!1}},mounted:function(){var t=this;this.checkScreenSize(),jQuery(window).resize(function(){t.checkScreenSize()})}}},function(t,e,n){var a=n(334);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6c745972",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"button.button.ninja_demo_media_button{position:absolute;z-index:9999999999;cursor:pointer}.wp_vue_editor{width:100%;min-height:100px}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{z-index:2;position:absolute;top:0;left:0}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"wp_editor",props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()}},value:{type:String,default:function(){return""}}},data:function(){return{hasWpEditor:!!window.wp.editor,plain_content:this.value,has_pro:!!window.ninja_table_admin.hasPro}},computed:{ninja_editor_id:function(){var t=this.slugify(this.editor_id);return t.match(/^[A-Za-z]+$/)||(t="editor_english_"+Math.floor(1001*Math.random())+"_"+Math.floor(101*Math.random())),"ninja_editor_"+this.slugify(t)}},watch:{plain_content:function(){this.$emit("input",this.plain_content)},value:function(){this.value||this.reloadEditor()}},methods:{initEditor:function(){if(this.hasWpEditor){wp.editor.remove(this.ninja_editor_id);var t=this;wp.editor.initialize(this.ninja_editor_id,{mediaButtons:this.has_pro,mode:"none",tinymce:{toolbar1:"formatselect,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,underline,forecolor,codeformat,removeformat,undo,redo",valid_elements:"*[*]",forced_root_block:"",setup:function(e){e.on("change",function(e,n){t.changeContentEvent()})}},quicktags:!0}),jQuery("#"+this.ninja_editor_id).on("change",function(e){t.changeContentEvent()})}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},reloadEditor:function(){wp.editor.remove(this.ninja_editor_id),jQuery("#"+this.ninja_editor_id).val(""),this.initEditor()},changeContentEvent:function(){var t=wp.editor.getContent(this.ninja_editor_id);this.$emit("input",t)},showPro:function(){window.ninjaTableBus.$emit("show_pro_popup",1)}},mounted:function(){this.initEditor()},beforeDestroy:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():n("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[n("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),n("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:t.plain_content},on:{input:function(e){e.target.composing||(t.plain_content=e.target.value)}}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticStyle:{"font-style":"italic"}},[e("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}]}},function(t,e,n){var a=n(338);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0e957631",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_tables_wpposts .el-checkbox-group{overflow:scroll!important}.ninja_tables_wpposts .el-transfer-panel,.ninja_tables_wpposts .table-rows .el-transfer-panel{width:230px!important}.ninja_tables_wpposts .el-transfer-panel__item{display:block!important}.no-margin{margin:0}.nt_conditions .el-collapse-item.is-active{border:1px solid #ebeef5}.nt_conditions .el-collapse-item.is-active .el-collapse-item__wrap{background:#ebeef5}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(340),o=n.n(a),i=n(345),s=n.n(i),l=n(43),r=n.n(l),c=n(211),u=n.n(c);e.default={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":o.a,PremiumNotice:r.a,UpgradeNotice:u.a,WpPostMetaQuery:s.a},data:function(){return{loading:!1,saving:!1,title:null,tableId:null,postStatuses:[],all_types:[],all_fields:[],post_types:[],selected_post_types:[],post_types_fields:[],selected_post_types_fields:[],conditions_section:"conditions",conditions:[],meta_query:"meta",metas:[],active_step:0,query_extra:{},activated_features:window.ninja_table_admin.activated_features,hasPro:!!window.ninja_table_admin.hasPro,queryable_fields:["ID","post_author","comment_count","post_date","post_modified","post_status"]}},computed:{query_able_post_types_fields:function(){var t=this;return this.post_types_fields.filter(function(e){return-1!=t.queryable_fields.indexOf(e.key)||-1!=e.key.indexOf(".")})}},methods:{nextStep:function(){var t="";if(this.title||(t+=" The title field is required."),this.selected_post_types.length||(t+=" At least select one post type."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1&&(this.active_step=0)},handlePostTypeChange:function(t,e,n){var a=this,o=[];this.selected_post_types.forEach(function(t){a.all_types[t]&&a.all_types[t].fields.forEach(function(t){o.push({key:t,label:t})})}),this.post_types_fields=this.all_fields.concat(o),this._updateSelectedFields()},_updateSelectedFields:function(){var t=this;if(!this.selected_post_types.length)return this.post_types_fields=[],void(this.selected_post_types_fields=[]);this.selected_post_types_fields.filter(function(t){return!!t}).forEach(function(e,n){var a=e.split(".");a.length>1&&-1==t.selected_post_types.indexOf(a[0])&&t.selected_post_types_fields.splice(n,1)})},save:function(){var t=this;this.saving=!0;var e={post_types:this.selected_post_types,columns:this.selected_post_types_fields,where:this.conditions.map(function(t){return Object.assign({},t)}),metas:this.metas.map(function(t){return Object.assign({},t)}),query_extra:!(!this.config||!this.config.table)&&this.config.table.query_extra};_.forEach(e.where,function(t){delete t.selectableOptions}),this.$post({action:"ninja_table_wp-posts_create_table",post_title:this.title,tableId:this.tableId,data:e}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.saving=!1})},getPostTypes:function(){var t=this;this.loading=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_types"}).then(function(e){t.all_types=e.data.post_types,t.postStatuses=e.data.postStatuses,jQuery.each(t.all_types,function(e,n){var a="";"private"===n.status&&(a=" (private)"),t.post_types.push({key:e,label:e+a})}),t.all_fields=e.data.post_fields.map(function(t){return{key:t,label:t}}),t.config&&(t.tableId=t.config.table.ID,t.conditions=t.config.table.whereConditions||[],t.metas=t.config.table.metaQuery||[],t.selected_post_types=t.config.table.post_types,t.selected_post_types_fields=t.config.columns.map(function(t){return t.original_name}),t.handlePostTypeChange())}).fail(function(t){console.log(t)}).always(function(){t.loading=!1})}},mounted:function(){this.getPostTypes()}}},function(t,e,n){var a=n(0)(n(343),n(344),!1,function(t){n(341)},null,null);t.exports=a.exports},function(t,e,n){var a=n(342);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("52b76c46",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}e.default={name:"WPPostConditions",props:["config","fields","conditions","allPostTypes","postStatuses","selected_post_types"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[],common_operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"}],uncommon_operators:[{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"}],other_operators:[{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}],query_limit:0,orderByFields:["ID","post_date","post_author","post_title","post_status","menu_order","comment_count"],authors:[]}},watch:{selected_post_types:function(){this.getPostAuthors()}},methods:{addCondition:function(t){this.conditions.push(a({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e,n){e.operators=[].concat(o(this.common_operators)),"comment_count"==t&&e.operators.map(function(t,n){"!="==t.key&&e.operators.splice(n,1)}),-1!=["ID","comment_count","post_date","post_modified"].indexOf(t)?e.operators=[].concat(o(e.operators.concat(this.other_operators))):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=[].concat(o(this.uncommon_operators))),this.setValueField(t,e,n)},setValueField:function(t,e,n){if("post_status"==t)e.value=n||[],e.is_selectable="true",e.selectableOptions=this.postStatuses;else if("post_author"==t)e.value=n||[],e.is_selectable="true",e.selectableOptions=this.authors.map(function(t){return{key:t.ID,label:t.display_name}});else if(-1!=t.indexOf(".")){e.value=n||[],e.is_selectable="true";var a=[].concat(o(t.split("."))),i=a[0],s=a[1],l=this.allPostTypes[i].taxonomies[s];e.selectableOptions=l.map(function(t){return{key:t.slug,label:t.name}})}else e.value=n||null,e.is_selectable="false",e.selectableOptions=[]},isDateField:function(t){return-1!=["post_date","post_modified"].indexOf(t.field)},isSelectable:function(t){return"true"==t.is_selectable},getPostAuthors:function(){var t=this;return this.$getJSON({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_authors",post_types:this.selected_post_types}).then(function(e){t.authors=e.data.authors})}},mounted:function(){var t=this;this.getPostAuthors().then(function(){_.each(t.conditions,function(e){t.setOperators(e.field,e,e.value)})})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp-post-conditions"},[n("el-row",[n("el-col",{attrs:{md:21}},[n("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,function(e,a){return[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},on:{change:function(n){return t.setOperators(n,e)}},model:{value:e.field,callback:function(n){t.$set(e,"field",n)},expression:"condition.field"}},t._l(t.fields,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1)],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(n){t.$set(e,"operator",n)},expression:"condition.operator"}},t._l(e.operators,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}),1)],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(e)||t.isDateField(e)?!t.isSelectable(e)&&t.isDateField(e)?n("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}}):t.isSelectable(e)?n("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}},t._l(e.selectableOptions,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1):t._e():n("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(a,e)}}})],1)],1)]}),t._v(" "),t.config&&t.config.table.query_extra?n("div",{staticClass:"ninja_post_query_limit"},[n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Query Limit")]),t._v(" "),n("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.config.table.query_extra.query_limit,callback:function(e){t.$set(t.config.table.query_extra,"query_limit",e)},expression:"config.table.query_extra.query_limit"}}),t._v(" "),t._m(0)],1),t._v(" "),n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Column")]),t._v(" "),n("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by_column,callback:function(e){t.$set(t.config.table.query_extra,"order_by_column",e)},expression:"config.table.query_extra.order_by_column"}},t._l(t.orderByFields,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}),1)],1),t._v(" "),n("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Type")]),t._v(" "),n("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by,callback:function(e){t.$set(t.config.table.query_extra,"order_by",e)},expression:"config.table.query_extra.order_by"}},[n("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),n("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}]}},function(t,e,n){var a=n(0)(n(348),n(349),!1,function(t){n(346)},null,null);t.exports=a.exports},function(t,e,n){var a=n(347);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("d5fbe0d6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}.compact{padding:0!important;margin-top:3px!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"WPPostMetaQuery",props:["metas"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"},{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"},{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}]}},methods:{addCondition:function(t){this.metas.push(a({},this.default_condition))},removeCondition:function(t,e){this.metas.splice(t,1)},setOperators:function(t,e){e.operators=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(this.operators)),this.setValueField(t,e)},setValueField:function(t,e){e.value=null,e.is_selectable="false",e.selectableOptions=[]},shouldShowInfo:function(t){return-1!==["IN","NOT IN"].indexOf(t)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp-post-conditions"},[n("el-row",[n("el-col",{attrs:{md:21}},[n("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.metas,function(e,a){return[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:7,sm:7}},[n("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(n){return t.setOperators(n,e)}},model:{value:e.field,callback:function(n){t.$set(e,"field",n)},expression:"condition.field"}})],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(n){t.$set(e,"operator",n)},expression:"condition.operator"}},t._l(e.operators,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}),1)],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(e.operator)?[n("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(a,e)}}})],1)],1)]})],2)},staticRenderFns:[]}},function(t,e,n){var a=n(351);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("17456e14",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".premium-notice .buy_now_button[data-v-06fd6e1a]{text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"PremiumNotice",props:["highlight"]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[n("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?n("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),n("b",[t._v("unlimited customizations")]),t._v(",\n "),n("b",[t._v("data filters")]),t._v(",\n "),n("b",[t._v("professional looks")]),t._v(",\n "),n("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("\n Get Premium Version Now\n ")])])},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"UpgradeNotice"}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[this._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n ")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?n("div",[t.hasPLainLayout?[n("el-row",[n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1),t._v(" "),n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)],1),t._v(" "),t.loading?t._e():n("el-row",[n("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),n("wp-post-conditions",{attrs:{config:t.config,selected_post_types:t.selected_post_types,postStatuses:t.postStatuses,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}})],2)],1),t._v(" "),n("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),n("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),n("el-row",[n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",size:"small",loading:t.saving},on:{click:t.save}},[t._v("Update\n ")])],1)]:t._e(),t._v(" "),t.hasPLainLayout?t._e():[n("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1)])]:t._e(),t._v(" "),1==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)]),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",[n("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?n("wp-post-conditions",{attrs:{postStatuses:t.postStatuses,selected_post_types:t.selected_post_types,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}}):t._e()],1)],1)],1)])]:t._e(),t._v(" "),n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),n("el-col",{attrs:{md:12}},[t.active_step>0?n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",disabled:!t.activated_features.wp_posts_table,loading:t.saving},on:{click:t.save}},[t._v("Save\n ")]):t._e()],1)],1)]],2):[n("upgrade-notice")]:[n("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Displays website content in a searchable, sortable with Ninja Tables. It supports custom posts,\n pages, &\n custom post types. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-posts-table/"}},[this._v("Learn more\n about this module")])])}]}},function(t,e,n){var a=n(0)(n(358),n(368),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(212),o=n.n(a);e.default={name:"woo_product_table",components:{WooNav:o.a},data:function(){return{loading:!1,saving:!1,query_selections:{},post_title:"",query_conditions:{}}},props:{tableCreated:{type:Function}},methods:{save:function(){var t=this;this.post_title?(this.saving=!0,this.$post({action:"ninja_table_woocommerece_create_table",post_title:this.post_title,query_selections:this.query_selections,query_conditions:this.query_conditions}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.saving=!1})):this.$message({showClose:!0,message:"Please Provide a Table Title",type:"error"})}},mounted:function(){}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a);e.default={name:"woo_conditions",props:["query_selections","query_conditions"],data:function(){return{query_terms:[],loading:!1,product_orders:{post_title:"Product Title",date:"Date",menu_order:"Menu Order",average_rating:"Average Rating",price:"price",popularity:"Popularity (Sales)",random:"Random"}}},methods:{getWooSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_table_woocommerece_get_options"}).then(function(e){var n=e.data.query_terms;o()(n,function(e,n){t.query_selections[n]||t.$set(t.query_selections,n,[])}),t.query_terms=n}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.getWooSettings()}}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a&&!1!==e(t[n],n,t););return t}},function(t,e,n){var a=n(362),o=n(365)(a);t.exports=o},function(t,e,n){var a=n(363),o=n(11);t.exports=function(t,e){return t&&a(t,e,o)}},function(t,e,n){var a=n(364)();t.exports=a},function(t,e){t.exports=function(t){return function(e,n,a){for(var o=-1,i=Object(e),s=a(e),l=s.length;l--;){var r=s[t?l:++o];if(!1===n(i[r],r,i))break}return e}}},function(t,e,n){var a=n(22);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!a(n))return t(n,o);for(var i=n.length,s=e?i:-1,l=Object(n);(e?s--:++s<i)&&!1!==o(l[s],s,l););return n}}},function(t,e,n){var a=n(36);t.exports=function(t){return"function"==typeof t?t:a}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,function(e,a){return n("div",{staticClass:"nt_each_selection"},[n("div",{staticClass:"nt_query_header"},[n("h3",[t._v(t._s(e.title))]),t._v(" "),n("p",[t._v(t._s(e.description))])]),t._v(" "),n("div",{staticClass:"nt_query_body"},[n("el-checkbox-group",{model:{value:t.query_selections[a],callback:function(e){t.$set(t.query_selections,a,e)},expression:"query_selections[term_name]"}},t._l(e.terms,function(e){return n("el-checkbox",{key:e.slug,attrs:{label:e.slug}},[t._v(t._s(e.name)+" ("+t._s(e.count)+")\n ")])}),1)],1)])}),t._v(" "),n("div",{staticClass:"nt_each_selection"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.query_conditions.hide_out_of_stock,callback:function(e){t.$set(t.query_conditions,"hide_out_of_stock",e)},expression:"query_conditions.hide_out_of_stock"}},[t._v("\n Hide "),n("b",[t._v("out of stocks")]),t._v(" items\n ")])],1),t._v(" "),n("div",{staticClass:"nt_each_selection"},[n("label",[t._v("\n Initial Order By\n "),n("el-select",{attrs:{size:"mini",placeholder:"Order By"},model:{value:t.query_conditions.order_by,callback:function(e){t.$set(t.query_conditions,"order_by",e)},expression:"query_conditions.order_by"}},t._l(t.product_orders,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1),t._v(" "),n("el-select",{directives:[{name:"show",rawName:"v-show",value:t.query_conditions.order_by&&"random"!=t.query_conditions.order_by,expression:"query_conditions.order_by && query_conditions.order_by != 'random'"}],attrs:{size:"mini",placeholder:"Order By Type"},model:{value:t.query_conditions.order_by_type,callback:function(e){t.$set(t.query_conditions,"order_by_type",e)},expression:"query_conditions.order_by_type"}},[n("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),n("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),n("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:function(e){return t.save()}}},[t._v("\n Create Products Table\n ")])],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"nt_module_header"},[e("h3",[this._v("\n Construct Table from Your WooCommerce Products\n ")]),this._v(" "),e("p",{staticClass:"ninja_subtitle"},[this._v("\n Displays products content in a searchable, sortable with Ninja Tables. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/woocommerce-product-table/"}},[this._v("Learn more\n about wocommerece integration")])])])}]}},function(t,e,n){var a=n(370);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("49eaadc7",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"FluentForm",props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object}},data:function(){return{installing:!1,fetching:!1,forms:[],fields:[],btnLoading:!1,post_title:"",form:{id:null,fields:[],entry_status:"all",entry_limit:1e3},hasFluentForm:!!window.ninja_table_admin.hasFluentForm,isFluentFormUpdated:!!window.ninja_table_admin.isFluentFormUpdated}},methods:{fetchForms:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_get-fluentform-forms"}).then(function(e){return t.forms=e.data}).fail(function(t){return console.log(t)}).always(function(){t.fetching=!1})},handleFormSelectionChange:function(t){var e=this;this.$get({form_Id:t,action:"ninja-tables_get-fluentform-fields"}).then(function(t){e.fields=t.data,e.editing&&(e.form.entry_limit=e.config.table.entry_limit,e.form.entry_status=e.config.table.entry_status,e.$nextTick(function(){var t=e.config.columns.map(function(t){return t.original_name});e.fields.filter(function(e){return-1!=t.indexOf(e.name)}).forEach(function(t){e.$refs.rowSelectableTable.toggleRowSelection(t)})}))}).fail(function(t){}).always(function(){})},handleFieldsSelectionChange:function(t){this.form.fields=t},save:function(){var t=this;this.btnLoading=!0,this.config&&this.config.table.current_user_entry_only&&(this.form.current_user_entry_only=this.config.table.current_user_entry_only),this.$post({action:"ninja_tables_save_fluentform_table",post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null}).then(function(e){return t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.btnLoading=!1})},installFluentFrom:function(){var t=this;this.installing=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"install_fluent_form"}).then(function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)}).fail(function(e){t.$message.error(e.responseJSON.message)}).always(function(){t.installing=!1})}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():n("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():n("p",{staticClass:"ninja_subtitle"},[t._v("\n Prepare your table from your existing WP Fluent Forms submissions. It can be used to easily showcase\n your form submissions.\n "),n("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-fluent-form-integration/"}},[t._v("Click\n here to learn more about WP Fluent From Integration")])]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"Select a Form"},on:{change:t.handleFormSelectionChange},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}},t._l(t.forms,function(t){return n("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})}),1)],1),t._v(" "),t.form.id?n("div",{staticClass:"form-group"},[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("strong",[t._v("Options (Optional)")]),t._v(" "),n("hr"),t._v(" "),n("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[n("el-col",{attrs:{md:12}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),n("el-col",{attrs:{md:18}},[n("el-input",{model:{value:t.form.entry_limit,callback:function(e){t.$set(t.form,"entry_limit",e)},expression:"form.entry_limit"}})],1)],1)],1),t._v(" "),n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[n("el-row",[n("el-col",{attrs:{md:6}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),n("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[n("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[n("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),n("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),n("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.config.table.current_user_entry_only,callback:function(e){t.$set(t.config.table,"current_user_entry_only",e)},expression:"config.table.current_user_entry_only"}},[t._v("Show current user submissions only at frontend")])]:t._e()],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{staticStyle:{"margin-top":"12px",float:"right"},attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.save}},[t._v(t._s(t.editing?t.$t("Update"):t.$t("Save"))+"\n ")])],1)]:t.hasFluentForm?[n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("To use this feature your WP Fluent Form need to be updated. Please update WP Fluent From from plugins\n screen")])]),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(0)]:n("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),n("div",[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?n("span",[t._v("Installing WP Fluent From...")]):n("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?n("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(2)])],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[this._v("WP Fluent Form")]),this._v(" is a WordPress\n Contact Form plugin packed with all the premium features you would need to create\n a responsive, customizable, drag and drop form. Using this module, You can easily show your form entries\n in Ninja Tables.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(43),o=n.n(a),i=n(211),s=n.n(i),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"Remote-Data-Source",components:{PremiumNotice:o.a,UpgradeNotice:s.a},props:{columns:{type:Array},type:{type:String,required:!0},tableCreated:{type:Function,required:!0},hasPro:{required:!0},table:{type:Object,default:function(){return{post_title:"",remote_url:"",fields:[],table_id:null}}},editing:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},data:function(){return{fields:[],active_step:0,saving:!1,fetching:!1}},methods:{nextStep:function(){var t="";if(this.table.post_title||(t+=" The title field is required."),this.table.remote_url||(t+=" The url field is required."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1?this.active_step=0:this.fatchRemoteData()},fatchRemoteData:function(){var t=this;this.fetching=!0;var e=l({action:"ninja_table_external_data_source_create"},this.table,{type:this.type,get_headers_only:!0});delete e.custom_css,this.$post(e).then(function(e){var n=[];if(jQuery.each(e.data,function(t){return n.push({name:t})}),t.fields=n,t.editing){var a=t.columns.map(function(t){return t.original_name});t.$nextTick(function(){t.fields.filter(function(t){return-1!=a.indexOf(t.name)}).forEach(function(e){t.$refs.rowSelectableTable.toggleRowSelection(e)})})}}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.fetching=!1})},handleFieldsSelectionChange:function(t){this.table.fields=t},save:function(t){var e=this;this.saving=!0;var n=l({},this.table,{type:this.type,action:"ninja_table_external_data_source_create"});delete n.custom_css,this.$post(n).then(function(t){var n=t.data;return e.tableCreated(n.ID)}).fail(function(t){var n="",a=t.responseJSON.data.message;for(var o in a)n+=" "+a[o];e.$message({showClose:!0,message:n,type:"error"})}).always(function(){return e.saving=!1})}},created:function(){this.editing&&(this.table.table_id=this.table.ID,this.fatchRemoteData())}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.editing?[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:n("div",{staticClass:"ninja_modal-body"},[n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[n("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[n("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.remote_url,expression:"table.remote_url"}],staticClass:"form-control",attrs:{id:"remote_url",type:"text",placeholder:"Enter your source URL",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.remote_url},on:{input:function(e){e.target.composing||t.$set(t.table,"remote_url",e.target.value)}}})])]:[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[n("UpgradeNotice")]:[n("premium-notice")],t._v(" "),n("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"left"},attrs:{type:"primary",size:"small"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),t.active_step>0?n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"small",loading:t.saving,disabled:!t.activated_features.external_data_source},on:{click:t.save}},[t._v(t._s(t.$t("Save"))+"\n ")])],1):t._e()],1)],1),t._v(" "),t.editing?n("div",{staticStyle:{"margin-top":"15px"}},[n("el-input",{attrs:{placeholder:"Remote URL..."},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fatchRemoteData(e)}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[n("el-button",{attrs:{slot:"prepend",loading:t.fetching,size:"small",plain:""},on:{click:t.fatchRemoteData},slot:"prepend"},[t._v(t._s(t.$t("Fetch Columns"))+"\n ")]),t._v(" "),n("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:""},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Whenever your Google Sheets data changes it will be automatically reflected here. You won't have\n to do a thing. Please provide the publishable public URL of your google sheet.\n "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/construct-table-from-google-sheets/"}},[this._v("View\n Documentation Here")])])}]}},function(t,e,n){var a=n(0)(n(378),n(379),!1,function(t){n(376)},"data-v-417a7c88",null);t.exports=a.exports},function(t,e,n){var a=n(377);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5d06b8da",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".hint[data-v-417a7c88]{width:100%;background-color:#f4f4f5;color:#909399;padding:8px 16px}.form_group.ninja_errors[data-v-417a7c88]{background:#ffd7d7;padding:10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ImportTable",data:function(){return{imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",errors:[],btnLoading:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,this.errors=[],"file"===this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),n.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$message({showClose:!0,message:e.message,type:"success"}),e.tableId&&t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.errors=e.responseJSON.data.errors,t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}),t.btnLoading=!1}})}else this.btnLoading=!1}else this.btnLoading=!0}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("Import Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-group"},["file"===t.imports.source?[n("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("br"),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],staticClass:"form-control",attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])}),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])]:t._e(),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"json"===t.imports.format||"ninjaJson"===t.imports.format,expression:"imports.format === 'json' || imports.format === 'ninjaJson'"}],staticClass:"hint"},[t._v("\n Check tutorial for importing Table from JSON file\n\n "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),t.errors.length?n("div",{staticClass:"form_group ninja_errors"},[n("ul",t._l(t.errors,function(e,a){return n("li",{key:a},[t._v("\n "+t._s(e.info)+"\n ")])}),0)]):t._e()])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"hint"},[this._v("\n Check tutorial for importing data from CSV file\n "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])}]}},function(t,e,n){var a=n(0)(n(383),n(390),!1,function(t){n(381)},null,null);t.exports=a.exports},function(t,e,n){var a=n(382);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("2e5dea9c",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(215),o=n.n(a),i=n(43),s=n.n(i),l=n(216),r=n.n(l);e.default={name:"CustomSQLQuery",components:{MySqlEditor:o.a,PremiumNotice:s.a,RemoteSqlConnection:r.a},props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object},activated_features:{type:Object}},data:function(){return{installing:!1,fetching:!1,btnLoading:!1,post_title:"",connection_type:"local",remote_connection:{db_name:"",db_username:"",db_userpassword:"",db_host:"localhost",db_host_port:3306},sql:"",error_html:"",isActivated:this.activated_features.raw_sql_query,hasPro:!!ninja_table_admin.hasPro,has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{save:function(){var t=this;this.btnLoading=!0,this.error_html="",this.$post({action:"ninja_tables_save_raw_sql_table",post_title:this.post_title,sql:this.sql,connection_details:this.remote_connection,connection_type:this.connection_type,table_Id:this.config&&this.config.table.ID||null}).then(function(e){console.log(e),"string"!=typeof e&&e&&e.data&&e.data.table_id?t.tableCreated(e.data.table_id):t.error_html=e}).fail(function(e){if(console.log(e),"string"!=typeof e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)}else t.error_html=res}).always(function(e){return t.btnLoading=!1})}},mounted:function(){}}},function(t,e,n){var a=n(385);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0fa77a67",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor[data-v-ad6aab96]{min-height:180px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ad6aab96]{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"remote_sql_form",props:["connection"],data:function(){return{}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sql_connection_wrapper"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB Name\n "),n("el-input",{attrs:{size:"mini",placeholder:"DB Name"},model:{value:t.connection.db_name,callback:function(e){t.$set(t.connection,"db_name",e)},expression:"connection.db_name"}})],1)]),t._v(" "),n("div",{staticClass:"nt_row_2"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB username\n "),n("el-input",{attrs:{size:"mini",placeholder:"DB User Name"},model:{value:t.connection.db_username,callback:function(e){t.$set(t.connection,"db_username",e)},expression:"connection.db_username"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB User Password\n "),n("el-input",{attrs:{size:"mini",type:"password",placeholder:"DB User Password"},model:{value:t.connection.db_userpassword,callback:function(e){t.$set(t.connection,"db_userpassword",e)},expression:"connection.db_userpassword"}})],1)])]),t._v(" "),n("div",{staticClass:"nt_row_2"},[n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB Host\n "),n("el-input",{attrs:{size:"mini",placeholder:"DB Host"},model:{value:t.connection.db_host,callback:function(e){t.$set(t.connection,"db_host",e)},expression:"connection.db_host"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n DB Host Port\n "),n("el-input",{attrs:{size:"mini",type:"number",placeholder:"Default: 3306 "},model:{value:t.connection.db_host_port,callback:function(e){t.$set(t.connection,"db_host_port",e)},expression:"connection.db_host_port"}})],1)])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),n("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.sql,callback:function(e){t.sql=e},expression:"sql"}}),t._v(" "),t._m(0)],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),n("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[n("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),n("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),n("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[n("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[n("el-alert",{attrs:{title:"",type:"error",closable:!1}},[n("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles.\n ")])])]:[n("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[this._v("$wpdb->get_results()")]),this._v(" function")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():n("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[n("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[n("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[n("i",{staticClass:"el-icon-setting"}),t._v(" "),n("span",[t._v("Default")])]),t._v(" "),n("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[n("i",{staticClass:"el-icon-upload2"}),t._v(" "),n("span",[t._v("Import Table")])]),t._v(" "),n("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[n("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),n("span",[t._v("Connect Fluent Form")])]),t._v(" "),n("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[n("i",{staticClass:"el-icon-news"}),t._v(" "),n("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?n("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[n("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),n("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),n("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[n("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),n("span",[t._v("Connect Google Sheets")])]),t._v(" "),n("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[n("i",{staticClass:"el-icon-document"}),t._v(" "),n("span",[t._v("Connect External CSV")])]),t._v(" "),n("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[n("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),n("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),n("el-main",["default"==t.activeTabName?[n("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[n("h3",[t._v("Manually Create a Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Manually create your table columns and rows to get complete\n control over your data with tons of customizations.\n ")])],t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)],2),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?n("span",[t._v(t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"import_table"===t.activeTabName?[n("import-table")]:"google_spread_sheet"==t.activeTabName?[n("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[n("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[n("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[n("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?n("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?n("div",[n("p",[t._v("Please update to latest version of "),n("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?n("div",{staticClass:"ninja_no_woo"},[n("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),n("premium-notice",{attrs:{highlight:"WooCommerce Integration module where you can create and build table with Woocomerce produsts and increase your conversion rate"}})],1):t._e()]:"raw_sql"==t.activeTabName?[n("raw-sql-form",{attrs:{has_sql_permission:t.has_sql_permission,tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(395),n(396),!1,function(t){n(393)},null,null);t.exports=a.exports},function(t,e,n){var a=n(394);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("cf67c8a0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{font-size:12px;color:gray;text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_lead",data:function(){return{loading:!1,leadVisible:!!window.ninja_table_admin.show_lead_pop_up,display_name:window.ninja_table_admin.current_user_name,showPermission:!1}},methods:{optin:function(t){var e=this;this.loading=!0,this.$post({action:"ninja_table_lead_optin",status:t}).then(function(t){e.$message({showClose:!0,message:t.data.message,type:"success"})}).fail(function(t){}).always(function(){e.leadVisible=!1,e.loading=!1,"yes"===t&&(window.ninja_table_admin.show_lead_pop_up=!1)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.leadVisible?n("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[n("p",[t._v("Hey "+t._s(t.display_name)+","),n("br"),t._v("\n Never miss an important update - opt in to our security & feature updates notifications. We will never\n spam / share your data, We will only send emails about important updates")]),t._v(" "),n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),n("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),n("div",{staticClass:"ninja_permissions"},[n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.showPermission,expression:"showPermission"}],staticClass:"permissions"},[t._v("\n Name, email, Site URL, Plugins info, ip Address and uninstall event\n ")])])],1)]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(400),n(401),!1,function(t){n(398)},null,null);t.exports=a.exports},function(t,e,n){var a=n(399);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("44160329",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".review_dialog{background:#fff;padding:10px 15px 20px;font-size:16px;position:relative}.review_dialog span.consentDismiss{position:absolute;right:7px;top:2px;z-index:99999;cursor:pointer;color:gray}.review_dialog p{font-size:16px}.review_dialog a{text-decoration:none;cursor:pointer;margin-right:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"review_dialog",methods:{recordActivity:function(t){var e=this;this.$post({action:"ninja_table_review_consent",status:t}).then(function(){}).fail(function(){}).always(function(){e.$emit("hideNotification",!0)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"review_dialog"},[n("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),n("div",{staticClass:"consent_body"},[n("p",[t._v("Thank You for using Ninja Tables Plugin. We are continuously working on it to improve this plugin. If You can spare a minute, Please help us by leaving a five star rating on wordpress.org")]),t._v(" "),n("a",{staticClass:"el-button el-button--success el-button--small",attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/ninja-tables/reviews/#new-post"},on:{click:function(e){return t.recordActivity("yes")}}},[t._v("Happy To Help")]),t._v(" "),n("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){return t.recordActivity("no")}}},[t._v("Hide Notification")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.published_tables?[n("div",{staticClass:"row clearfix"},[n("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),t.review_option?n("ninja-review-dialog",{on:{hideNotification:function(e){t.review_option=!1}}}):t._e(),t._v(" "),n("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData(e)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{size:"small",type:"success"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1)],1)],1),t._v(" "),n("hr"),t._v(" "),n("list-all-tables",{directives:[{name:"show",rawName:"v-show",value:t.published_tables,expression:"published_tables"}],attrs:{searchString:t.searchString,searchAction:t.searchAction},on:{total_table:function(e){t.published_tables=!0},selection:t.makeSelection}})]:n("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),n("el-dialog",{attrs:{"close-on-click-modal":!1,title:t.$t("How would you like to create your table?"),visible:t.modalVisible,top:"50px",width:"75%","append-to-body":!0,"custom-class":"create-table-modal"},on:{"update:visible":function(e){t.modalVisible=e}}},[n("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),n("lead-modal")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(404),n(405),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:!!window.ninja_table_admin.hasPro,menuItems:[]}},computed:{active_menu:function(){return this.$route.name}},methods:{setUpMenuItems:function(){this.menuItems=this.applyFilters("ninja_table_settings_tools",[{route:"import_tables",title:this.$t("Import"),icon_class:"el-icon-upload",status:!0},{route:"default_table_appearance",title:this.$t("Global Appearance"),icon_class:"el-icon-star-off",status:!0},{route:"permission",title:this.$t("Permission"),icon_class:"el-icon-setting",status:!0},{route:"licensing",title:this.$t("License"),icon_class:"ninja-tables-dashicons dashicons dashicons-shield",status:this.has_pro},{route:"global_settings",title:this.$t("Global Settings"),icon_class:"el-icon-menu",status:!0}])}},mounted:function(){this.setUpMenuItems()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,function(e){return e.status?n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[n("i",{class:e.icon_class}),t._v(" "),n("span",[t._v(t._s(e.title))])]):t._e()}),1)],1),t._v(" "),n("el-main",[n("router-view")],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(409),n(410),!1,function(t){n(407)},"data-v-0ccd418e",null);t.exports=a.exports},function(t,e,n){var a=n(408);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("46d36986",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-item[data-v-0ccd418e]{margin:10px 0}.form-item label[data-v-0ccd418e]{width:100px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:window.ninja_table_admin.hasPro,active_menu:"import",activeNames:["1","2"],imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",UltimateTables:"Ultimate Tables",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1,UltimateTables:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),n.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){alert(e.message),t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.btnLoading=!1,alert(e.responseJSON.message)}})}else this.btnLoading=!1}else this.btnLoading=!0},importFromOtherPlugin:function(t){var e=this;this.selectedPlugin=t,this.btnsLoading[t]=!0;var n={action:"ninja_tables_ajax_actions",target_action:"get-tables-from-plugin",plugin:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};jQuery.ajax({url:ajaxurl,data:n,type:"POST",success:function(n){n.tables?e.btnsLoading[t]=!1:e.$message.error("No Table Found"),e.showPluginModal=!0,e.otherPluginTables=n.tables},error:function(n){e.btnsLoading[t]=!1,n.responseJSON?e.$message.error(n.responseJSON.message):e.$message.error("No Table Found")}})},closePluginModal:function(){this.otherPluginTables=[],this.btnsLoading[this.selectedPlugin]=!1,this.showPluginModal=!1,this.selectedPlugin=null},importThisTable:function(t,e){var n=this;this.importing=!0;var a={action:"ninja_tables_ajax_actions",target_action:"import-table-from-plugin",plugin:this.selectedPlugin,tableId:t.ID,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};jQuery.ajax({url:ajaxurl,data:a,type:"POST",success:function(t){n.$message.success(t.data.message),n.importing=!1,n.$set(n.otherPluginTables[e],"ninja_table_id",t.data.tableId)},error:function(t){n.$message.error(t.responseJSON.data.message),n.importing=!1}})}},mounted:function(){var t=this;this.$route.query.active_menu&&(this.active_menu=this.$route.query.active_menu),jQuery(".ninja_table_tools_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_import_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_license_menu").on("click",function(){t.active_menu="license"})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("p",[t._v("\n "+t._s(t.$t("NinjaTables can import tables from existing data, like from a CSV or JSON file. You can also import existing tables from the other WordPress table plugins."))+"\n ")])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),n("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-item"},["file"==t.imports.source?[n("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-item"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])}),0),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),n("div",{staticClass:"form-item"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1)]:t._e(),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"json"==t.imports.format||"ninjaJson"==t.imports.format,expression:"imports.format == 'json' || imports.format == 'ninjaJson'"}],staticClass:"help"},[t._v("\n Check tutorial for importing Table from JSON file "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),n("div",{staticClass:"form-item"},[n("el-button",{attrs:{type:"primary",size:"small",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),n("table",{staticStyle:{"min-width":"400px"}},[n("tbody",t._l(t.otherPlugins,function(e,a){return n("tr",[n("td",[t._v(t._s(e))]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-default btn-sm",on:{click:function(e){return t.importFromOtherPlugin(a)}}},[t.btnsLoading[a]?[t._v("\n "+t._s(t.$t("Processing..."))+"\n "),n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])}),0)])])]),t._v(" "),n("el-dialog",{attrs:{title:"Your current tables",visible:t.showPluginModal},on:{"update:visible":function(e){t.showPluginModal=e},close:function(e){return t.closePluginModal()}}},[t.otherPluginTables.length?[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[n("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_already_imported?n("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(e.row.post_title)+"\n ")]}}],null,!1,2469912787)}),t._v(" "),n("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.importThisTable(e.row,e.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),e.row.ninja_table_id?n("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:e.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}],null,!1,3480308331)})],1),t._v(" "),t.importing?[n("br"),n("br"),t._v(" "),n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n "+t._s(t.$t("Importing the table, please wait a bit ..."))+"\n ")])]:t._e()]:n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n You don't have any tables in your "+t._s(t.selectedPlugin)+" plugin.\n ")])],2)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n Select the intended format and click "),e("strong",[this._v("Import")]),this._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"help"},[this._v("\n Check tutorial for importing data from CSV file "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n To import from other WordPress plugins click the respective "),e("strong",[this._v("Import")]),this._v("\n button.\n ")])}]}},function(t,e,n){var a=n(0)(n(414),n(415),!1,function(t){n(412)},null,null);t.exports=a.exports},function(t,e,n){var a=n(413);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("62afeb6e",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Privacy",data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,sql_permission:"no",capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then(function(e){t.capability=e.capability,t.roles=e.roles,t.sql_permission=e.sql_permission,t.handleCheckedCapabilitiesChange(t.capability)}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability,sql_permission:this.sql_permission};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})})},handleCheckAllChange:function(t){this.capability=t?this.roles.map(function(t){return t.key}):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Permission "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),n("hr"),t._v(" "),t.hasPro?[n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("\n "+t._s(t.$t("Check all"))+"\n ")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}),1)],1),t._v(" "),t.capability&&t.capability.length?n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.sql_permission,callback:function(e){t.sql_permission=e},expression:"sql_permission"}},[t._v("Enable SQL-Module Permission for selected user roles")])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.store}},[t._v("Save")])],1)]:[t._v("\n "+t._s(t.$t("Activate Ninja Tables Pro Add-on plugin to unlock this feature"))+"\n "),n("p",[n("a",{attrs:{target:"_blank",href:t.upgrade}},[t._v("Buy Ninja Tables Pro Add-On")])])]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("By default, Only Administrator have access to manage the tables. By selecting additional roles bellow, You can give access to manage your Tables to other user roles.")])])}]}},function(t,e,n){var a=n(0)(n(417),n(434),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(118),o=n(217),i=n.n(o),s=n(106),l=n.n(s);e.default={name:"Privacy",data:function(){return{fetching:!1,saving:!1,tableLibs:{},default_settings:{},fontFamily:["inherit","cursive","fantasy","monospace","sans-serif","serif","system-ui","ui-monospace","ui-rounded","ui-sans-serif","ui-serif"]}},computed:{tableColors:function(){return Object(a.a)().footable.colors},table_styles:function(){return Object(a.a)().footable.css_libs},availableStyles:function(){var t=this.table_styles[this.default_settings.css_lib];return!!t&&t.styles}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_default_settings"}).then(function(e){t.default_settings=e.data.default_settings}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this;this.saving=!0;var e=[];l()(this.availableStyles,function(t){e.push(t.key)}),this.default_settings.css_classes=i()(e,this.default_settings.css_classes),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_default_settings",default_settings:this.default_settings}).then(function(e){t.$message.success({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.get()}}},function(t,e,n){var a=n(76),o=n(419),i=n(423),s=n(37),l=n(74),r=n(78),c=Math.min;t.exports=function(t,e,n){for(var u=n?i:o,d=t[0].length,p=t.length,_=p,f=Array(p),m=1/0,v=[];_--;){var h=t[_];_&&e&&(h=s(h,l(e))),m=c(h.length,m),f[_]=!n&&(e||d>=120&&h.length>=120)?new a(_&&h):void 0}h=t[0];var b=-1,g=f[0];t:for(;++b<d&&v.length<m;){var y=h[b],w=e?e(y):y;if(y=n||0!==y?y:0,!(g?r(g,w):u(v,w,n))){for(_=p;--_;){var x=f[_];if(!(x?r(x,w):u(t[_],w,n)))continue t}g&&g.push(w),v.push(y)}}return v}},function(t,e,n){var a=n(420);t.exports=function(t,e){return!(null==t||!t.length)&&a(t,e,0)>-1}},function(t,e,n){var a=n(77),o=n(421),i=n(422);t.exports=function(t,e,n){return e==e?i(t,e,n):a(t,o,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var a=n-1,o=t.length;++a<o;)if(t[a]===e)return a;return-1}},function(t,e){t.exports=function(t,e,n){for(var a=-1,o=null==t?0:t.length;++a<o;)if(n(e,t[a]))return!0;return!1}},function(t,e,n){var a=n(36),o=n(425),i=n(427);t.exports=function(t,e){return i(o(t,e,a),t+"")}},function(t,e,n){var a=n(426),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,l=o(i.length-e,0),r=Array(l);++s<l;)r[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=n(r),a(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var a=n(428),o=n(431)(a);t.exports=o},function(t,e,n){var a=n(429),o=n(430),i=n(36),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:a(e),writable:!0})}:i;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var a=n(5),o=function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){var n=800,a=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var s=o(),l=a-(s-i);if(i=s,l>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var a=n(433);t.exports=function(t){return a(t)?t:[]}},function(t,e,n){var a=n(22),o=n(7);t.exports=function(t){return o(t)&&a(t)}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),n("hr"),t._v(" "),[n("div",{staticClass:"ninja_block"},[n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}),1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,e.key)>-1:t.default_settings.css_classes},on:{change:function(n){var a=t.default_settings.css_classes,o=n.target,i=!!o.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);o.checked?l<0&&t.$set(t.default_settings,"css_classes",a.concat([s])):l>-1&&t.$set(t.default_settings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.default_settings,"css_classes",i)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_title,expression:"default_settings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.default_settings.show_title)?t._i(t.default_settings.show_title,"1")>-1:t.default_settings.show_title},on:{change:function(e){var n=t.default_settings.show_title,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"show_title",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"show_title",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"show_title",o)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_description,expression:"default_settings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.default_settings.show_description)?t._i(t.default_settings.show_description,"1")>-1:t.default_settings.show_description},on:{change:function(e){var n=t.default_settings.show_description,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"show_description",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"show_description",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"show_description",o)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.enable_search,expression:"default_settings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.default_settings.enable_search)?t._i(t.default_settings.enable_search,"1")>-1:t.default_settings.enable_search},on:{change:function(e){var n=t.default_settings.enable_search,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"enable_search",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"enable_search",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"enable_search",o)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n ")]),t._v(" "),n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.column_sorting,expression:"default_settings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.default_settings.column_sorting)?t._i(t.default_settings.column_sorting,"1")>-1:t.default_settings.column_sorting},on:{change:function(e){var n=t.default_settings.column_sorting,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.default_settings,"column_sorting",n.concat(["1"])):i>-1&&t.$set(t.default_settings,"column_sorting",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"column_sorting",o)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n ")]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.hide_all_borders,expression:"default_settings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.default_settings.hide_all_borders)?t._i(t.default_settings.hide_all_borders,null)>-1:t.default_settings.hide_all_borders},on:{change:function(e){var n=t.default_settings.hide_all_borders,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.default_settings,"hide_all_borders",n.concat([null])):i>-1&&t.$set(t.default_settings,"hide_all_borders",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.default_settings,"hide_all_borders",o)}}}),t._v("\n Hide All Borders\n ")])]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("h3",[t._v("Default Table Color")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_color,expression:"default_settings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.default_settings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.tableColors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Pagination Setting")]),t._v(" "),n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.default_settings.show_all,callback:function(e){t.$set(t.default_settings,"show_all",e)},expression:"default_settings.show_all"}})],1)]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.perPage,expression:"default_settings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.default_settings.show_all||"1"==t.default_settings.show_all},domProps:{value:t.default_settings.perPage},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"perPage",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"font-setting"},[n("h3",[t._v("Default Font Setting")]),t._v(" "),n("div",{staticClass:"font form_group "},[n("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_font_family,expression:"default_settings.table_font_family"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.default_settings,"table_font_family",e.target.multiple?n:n[0])}}},t._l(t.fontFamily,function(t,e){return n("option",{key:e,attrs:{label:"inherit"===t?"theme-font":t},domProps:{value:t}})}),0)]),t._v(" "),n("div",{staticClass:"font form_group",staticStyle:{"max-width":"400px"}},[n("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_font_size,expression:"default_settings.table_font_size"}],staticClass:"form_control",attrs:{type:"number",min:1,max:50},domProps:{value:t.default_settings.table_font_size},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"table_font_size",e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[n("el-button",{attrs:{loading:t.saving,type:"success",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Appearance Settings")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("\n The following settings will be applied to the newly created tables. Of course, You can customize the\n appearance settings to each table level.\n ")])])}]}},function(t,e,n){var a=n(0)(n(438),n(439),!1,function(t){n(436)},null,null);t.exports=a.exports},function(t,e,n){var a=n(437);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("77aff560",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".license_form{text-align:center;padding:20px 0}.license_form label{font-size:30px;font-weight:400;display:block;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{min-width:400px;height:48px;width:50%;margin-bottom:20px;border-radius:5px;border:1px solid gray;background:#fbfdff;font-size:20px;padding:0 10px}.license_form .error_message{margin-top:40px;padding:10px;background:#ffe491;color:#000;font-weight:700;border-radius:5px}.license_success{text-align:center;padding:40px 0}.license_renew_box{padding:10px;border:2px dashed #ff0;background:#ffee9b}.license_renew_box p{font-size:18px}.license_renew_box a{font-weight:700;text-transform:capitalize;border:1px solid gray;text-decoration:none;padding:5px 15px;background:#0073aa;color:#fff;border-radius:21px}.license_renew_box a:hover{background:#fff;color:#0073aa}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"license",data:function(){return{licenseKey:"",error_message:"",enter_new_license:!1,checkingLicense:!1,doing_ajax:!1,renewLicenseHtml:"",renewHtml:"",is_valid:window.ninja_table_admin.hasValidLicense}},methods:{activateLicense:function(){var t=this;this.licenseKey?(this.doing_ajax=!0,this.error_message="",this.$post({action:"_ninjatables_pro_license_activate_license",_ninjatables_pro_license_key:this.licenseKey}).then(function(e){e.data&&e.data.message?(jQuery(".error_notice_ninjatables_pro_license").remove(),t.is_valid="valid"):t.error_message="Something is wrong when contacting with license server. Please make sure you have curl installed you server",t.doing_ajax=!1}).fail(function(e){e.responseJSON&&e.responseJSON.data?t.error_message=e.responseJSON.data.message:t.error_message="Sorry, Something is wrong! Please make sure you have ninja tables pro installed and curl installed on your server",t.doing_ajax=!1}).always(function(){t.doing_ajax=!1})):this.error_message="Please provide a license key"},deactivateLicense:function(){var t=this;this.doing_ajax=!0,this.error_message="",this.$post({action:"_ninjatables_pro_license_deactivate_license"}).then(function(e){t.is_valid=!1}).fail(function(e){console.log(e),t.error_message=e.responseJSON.data.message,e.responseJSON&&e.responseJSON.data?t.$message.error(e.responseJSON.data.message):t.$message.error("Sorry, Something is wrong! Please try again")}).always(function(){t.doing_ajax=!1})},get_license_info:function(){var t=this;this.checkingLicense=!0,this.error_message="",this.$get({action:"_ninjatables_pro_license_get_license_info"}).then(function(e){t.renewLicenseHtml=e.data.renewHtml,t.is_valid=e.data.status,t.renewHtml=e.data.renewHtml}).fail(function(e){t.error_message=e.responseJSON.data.message}).always(function(){t.checkingLicense=!1})}},mounted:function(){this.get_license_info()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"license"},[n("div",{staticClass:"ninja_header"},["valid"==t.is_valid?n("div",[n("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[n("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):n("div",[n("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?n("div",{staticClass:"license_success"},[n("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"default",size:"mini"},on:{click:function(e){return t.deactivateLicense()}}},[t._v(t._s(t.$t("Deactivate License")))]),t._v(" "),t.renewHtml?n("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[n("div",{staticClass:"checking_license license_renew_box",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),n("p",[t._v("If you already renewed your license then please "),n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),n("p",[t._v("Have a new license key? Please "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){return t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){return t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n You need to activate your Ninja Table Pro by providing the license key bellow. If you don't have a\n license key please "),e("a",{attrs:{href:"https://wpmanageninja.com/checkout/purchase-history/",target:"_blank"}},[this._v("Click\n Here")]),this._v(" to get a license key from your purchase. "),e("br"),this._v("Any questions or problems with your license? "),e("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[this._v("Contact us!")])])}]}},function(t,e,n){var a=n(0)(n(441),n(442),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"GlobalSettings",data:function(){return{loading:!1,ninja_suppress_error:"log_silently"}},methods:{getSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_global_settings"}).then(function(e){t.ninja_suppress_error=e.data.ninja_suppress_error}).fail(function(t){}).always(function(){t.loading=!1})},storeSettings:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"update_global_settings",suppress_error:this.ninja_suppress_error};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})},clearCache:function(){var t=this;this.$post({action:"ninja_tables_ajax_actions",target_action:"clear_tables_cache"}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),n("el-radio-group",{staticClass:"spaced_new_line",model:{value:t.ninja_suppress_error,callback:function(e){t.ninja_suppress_error=e},expression:"ninja_suppress_error"}},[n("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),n("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),n("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),n("div",{staticClass:"ninja_block ninja_heightlight_block"},[n("h3",[t._v("Clear Table Cache")]),t._v(" "),n("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){return t.clearCache()}}},[t._v("Clear Table Cache")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Settings")])])}]}},function(t,e,n){var a=n(0)(n(446),n(447),!1,function(t){n(444)},"data-v-6779a907",null);t.exports=a.exports},function(t,e,n){var a=n(445);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("dd52e676",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_intro_welcome[data-v-6779a907]{max-width:600px;margin:45px auto 0;padding:30px;background:#fff;text-align:center}.ninja_intro_welcome img[data-v-6779a907]{width:100%}.ninja_intro_welcome h2[data-v-6779a907]{font-size:30px}.ninja_intro_welcome .ninja_actions[data-v-6779a907]{margin-top:30px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Charts",data:function(){return{imgUrl:window.ninja_table_admin.img_url,loading:!1}},beforeRouteEnter:function(t,e,n){window.ninja_table_admin.ninja_charts_url?window.location=window.ninja_table_admin.ninja_charts_url:n()},methods:{imageUrl:function(t){return this.imgUrl+t},click:function(){var t=this;this.loading=!0;this.$post({action:"ninja_tables_ajax_actions",target_action:"install-extra-plugins",plugin:"ninja-charts"}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),window.location=e.data.redirect}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.loading=!1})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_intro_welcome"},[n("div",{staticClass:"ninja_charts_promo_banner"},[n("img",{attrs:{src:t.imageUrl("ninja-charts-promo.png"),alt:"Ninja Charts"}})]),t._v(" "),n("h2",[t._v("Welcome to Ninja Charts")]),t._v(" "),n("p",[t._v("Best WP Charts Plugin for WordPress")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"ninja_actions"},[n("el-button",{attrs:{type:"danger",loading:t.loading},on:{click:function(e){return t.click()}}},[t._v("\n Enable Ninja Charts\n ")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_charts_promo"},[e("iframe",{attrs:{width:"600",height:"315",src:"https://www.youtube.com/embed/vIHR3_vNOFM",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}]}},function(t,e,n){var a=n(0)(n(451),n(462),!1,function(t){n(449)},null,null);t.exports=a.exports},function(t,e,n){var a=n(450);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1dc527de",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".settings_header{font-size:20px;padding-bottom:20px;background:#fff;margin-top:-20px;padding-top:20px;margin-right:-20px;margin-left:-20px;padding-left:24px}.settings_header .action{font-size:16px;cursor:pointer}.settings_header .action:hover{color:#0085ba}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(452),o=n.n(a),i=n(26),s=n.n(i),l=n(142),r=n.n(l),c=n(460),u=n.n(c),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"table_home",components:{edit_table:o.a},data:function(){return{table_tabs:[],is_data_saving:!1,is_form_saving:!1,tableId:this.$route.params.table_id,config:null,table:{},doingAjax:!1,doingAjaxTest:!1,user_tab:this.$route.query.user_tab,editTableModalShow:!1,preview_url:"#",has_pro:window.ninja_table_admin.hasPro}},methods:{updateTableColumns:function(t){var e=this;this.doingAjax=!0;var n={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.config.columns};this.$post(n).success(function(n){e.$message({showClose:!0,message:n.message,type:"success"}),t(n)}).fail(function(t){}).always(function(){e.doingAjax=!1})},getSettings:function(){var t=this;this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-table-settings",table_id:this.tableId};this.$getJSON(e).then(function(e){"[object Object]"==Object.prototype.toString.call(e.columns)&&(e.columns=u()(e.columns)),t.config=e,t.table=e.table,t.preview_url=e.preview_url}).fail(function(e){t.$message.error(e.responseJSON.data.message),e.responseJSON.data.route&&t.$router.push({name:e.responseJSON.data.route})}).always(function(){return t.doingAjax=!1})},goToTab:function(t){this.user_tab=t,this.$router.push({name:"custom_tab",params:{table_id:this.tableId},query:{user_tab:t}})},size:r.a,each:s.a,initTableTabs:function(){this.table_tabs=this.applyFilters("ninja_table_table_tabs",[{route:"data_items",title:"Table Rows"},{route:"data_columns",title:"Table Configuration"},{route:"design_studio",title:"Table Design"},{route:"table_editing",title:"Frontend Editing"},{route:"additional_css",title:"Custom CSS/JS"},{route:"import-export",title:"Import - Export"}])}},mounted:function(){var t=this;this.initTableTabs(),this.getSettings(),this.clipboard(),window.ninjaTableBus.$on("initManualSorting",function(e,n,a){var o=d({action:"ninja_tables_init_sortable"},e);t.$post(o).success(function(t){return n(t)}).fail(function(t){return a(t)})}),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}),window.ninjaTableBus.$off("updateTableColumns"),window.ninjaTableBus.$on("updateTableColumns",function(e){t.updateTableColumns(e)}),window.ninjaTableBus.$emit("addedTable")}}},function(t,e,n){var a=n(0)(n(453),n(454),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a);e.default={name:"add_table",components:{wp_editor:o.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:"",table_caption:""}}}},data:function(){return{btnLoading:!1}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,table_caption:this.table.table_caption,tableId:this.table.ID};this.$post(e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.closeModal()}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_table_edit"},[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("el-input",{attrs:{type:"text",size:"small",placeholder:"Enter a title to identify your table"},model:{value:t.table.post_title,callback:function(e){t.$set(t.table,"post_title",e)},expression:"table.post_title"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),n("el-input",{attrs:{size:"small",type:"text",placeholder:"Enter a table caption if you want to show"},model:{value:t.table.table_caption,callback:function(e){t.$set(t.table,"table_caption",e)},expression:"table.table_caption"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{loading:t.btnLoading,type:"primary",size:"small"},on:{click:t.addTable}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(8),o=n(4),i=n(7),s="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&a(t)==s}},function(t,e,n){var a=n(457),o=n(458),i=n(459);t.exports=function(t){return o(t)?i(t):a(t)}},function(t,e,n){var a=n(80)("length");t.exports=a},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+a+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+r+("(?:\\u200d(?:"+[i,s,l].join("|")+")[\\ufe0e\\ufe0f]?"+r+")*"),u="(?:"+[i+a+"?",a,s,l,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+u+c,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},function(t,e,n){var a=n(461),o=n(11);t.exports=function(t){return null==t?[]:a(t,o(t))}},function(t,e,n){var a=n(37);t.exports=function(t,e){return a(e,function(e){return t[e]})}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.doingAjax?n("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),n("div",{staticClass:"settings_header"},[n("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[n("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[n("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),n("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+t.tableId+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),n("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[n("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),n("a",{attrs:{href:t.preview_url,target:"_blank"}},[n("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Buy Pro")))])],1)],1)]),t._v(" "),n("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[n("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,function(e){return n("router-link",{key:e.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:e.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(e.title)+"\n ")])}),1),t._v(" "),t.config?n("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{title:"Update Table Info",visible:t.editTableModalShow,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editTableModalShow=e}}},[t.editTableModalShow?n("edit_table",{attrs:{table:t.table},on:{modal_close:function(e){t.editTableModalShow=!t.editTableModalShow}}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(466),n(550),!1,function(t){n(464)},null,null);t.exports=a.exports},function(t,e,n){var a=n(465);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0a2166c0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-table{margin-top:10px;margin-bottom:10px}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{padding-left:5px;cursor:pointer;opacity:0;display:inline-block}.nt-column-config:hover{color:#58b7ff}.instruction_block{padding:30px 20px;background:#fff}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(218),o=n(53),i=n.n(o),s=n(219),l=n.n(s),r=n(475),c=n.n(r),u=n(209),d=n.n(u),p=n(222),_=n.n(p),f=n(493),m=n.n(f),v=n(223),h=n.n(v),b=n(82),g=n.n(b),y=n(522),w=n.n(y),x=n(527),k=n.n(x),C=n(532),S=n.n(C),j=n(537),$=n.n(j),T=n(542),P=n.n(T),E=n(547),A=n.n(E);e.default={name:"TableDataItems",components:{add_data_modal:c.a,ninja_pagination:d.a,Alert:_.a,DeletePopOver:m.a,SortableUpgradeNotice:h.a,columnsEditor:g.a,FluentFormNav:w.a,ExternalSourceNav:k.a,WPPostsNav:$.a,RawSqlNav:S.a,WooNavEdit:P.a,ShowEditableCell:A.a},props:["config","getColumnSettings","hasPro"],data:function(){return{columnModal:!1,show_meta:!1,new_column:{},has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,isCompact:!0,tableWidth:"100%",tableData:[],searchString:"",doingAjax:!1,addDataModal:!1,tableId:this.$route.params.table_id,loading:!1,syncing:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:20},multipleSelection:[],updateItem:null,editIndex:null,sorting:!1,sortableInstance:null,sortableUpgradeNotice:!1,insertAfterPosition:null,showColumnEditor:!1,currentEditingColumn:!1,addDataModalTitle:"Add Row",dataModalType:"add",dataSource:"default",isUpdatingTableSettings:!1,externalDataSourceUrl:this.config.table.remoteURL,insertAfterId:!1,insertAfterHash:!1}},watch:{searchString:function(){""==this.searchString&&this.getData()},sorting:function(t){if(t){if(!this.has_pro)return this.sorting=!1,void window.ninjaTableBus.$emit("show_pro_popup");if(!this.hasSortable)return this.sorting=!1,void(this.sortableUpgradeNotice=!0)}this.toggleSorting(t)},"new_column.name":function(){this.new_column.key=l()(this.new_column.name)}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},columnLength:function(){return this.columns.length},dataSourceType:function(){var t=this.config;return t&&"dataSourceType"in t.table?t.table.dataSourceType:"default"},isEditable:function(){var t=this.config;return!(t&&"isEditable"in t.table)||t.table.isEditable},isEditableMessage:function(){var t=this.config;return t&&"isEditableMessage"in t.table?t.table.isEditableMessage:null}},methods:{getData:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"get-table-data",table_id:this.tableId,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};return this.loading=!0,this.$get(e).success(function(e){t.items=e.data,t.dataSource=e.data_source,t.paginate.total=parseInt(e.total),t.paginate.last_page=parseInt(e.last_page)}).fail(function(t){}).always(function(){t.loading=!1})},addTableData:function(){},getItemNumber:function(t){return this.paginate.per_page*(this.paginate.current_page-1)+(t+1)},goToPage:function(t){this.paginate.current_page=t,this.getData()},handleSizeChange:function(t){this.paginate.per_page=t,this.getData()},confirmDeleteTable:function(t){confirm(this.$t("Are you sure, You want to delete this table"))&&this.deleteTable(t)},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(n).then(function(t){e.fetchTables(),alert(t.message)}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.multipleSelection=t},handleBulkAction:function(){this.multipleSelection.length&&"delete"==this.bulkAction&&this.handleBulkDelete()},handleBulkDelete:function(){var t=this;this.$confirm(this.$t("This will permanently delete the selected rows. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){var e=t.multipleSelection.map(function(t){return t.id});t.deleteItem(e)}).catch(function(){t.$message({type:"info",message:t.$t("Delete canceled")})})},deleteItem:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-data",table_id:this.tableId,id:t},a=this;this.$post(n).then(function(t){e.$message({showClose:!0,message:t.message,type:"success"}),a.getData()}).fail(function(t){e.$message({showClose:!0,message:e.$t("Something is wrong! Please try again"),type:"error"})})},closeDataModal:function(t){this.addDataModal=!1,this.editIndex=null,this.insertAfterPosition=null,this.dataModalType="add",this.insertAfterId=!1,this.insertAfterHash=!1,t&&this.getData()},updateItemOnTable:function(t){this.items[this.editIndex].values=t.values,this.items[this.editIndex].settings=t.settings,t.created_at&&(this.items[this.editIndex].created_at=t.created_at)},addItemOnTable:function(t,e){e||(e=t.position),"last-first"==e&&(e="new_first"==this.config.settings.default_sorting?"first":"last"),e?"last"==e?this.items.push(t):"first"==e?this.items.unshift(t):!1!==this.insertAfterHash?(this.insertAfterHash++,this.items.splice(this.insertAfterHash,-1,t)):this.items.push(t):this.items.unshift(t),this.insertAfterPosition&&(this.insertAfterPosition=t.position),this.insertAfterId&&(this.insertAfterId=t.id),this.paginate.total++},showUpdateModal:function(t){this.updateItem=t.row,this.editIndex=t.$index,this.addDataModal=!0,this.dataModalType="update",this.addDataModalTitle="Update Row"},addColumn:function(){this.columnModal=!0},validateColumn:function(t){return t.name?t.key?-1===i()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.config.columns.push(this.new_column),this.setNewColumn(),this.columnModal=!1,this.storeSettings())},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",timeFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType&&(t.source_type="custom"),this.new_column=t},initSortable:function(){var t=document.querySelector(".js-sortable-table tbody"),e=this;this.sortableInstance=a.default.create(t,{onEnd:function(t){var n=t.newIndex,a=t.oldIndex,o=e.items[a];e.sortTable(o.id,e.items[n].position);var i=e.items.splice(a,1)[0];e.items.splice(n,0,i)}})},toggleSorting:function(t){var e=this;t?(this.loading=!0,new Promise(function(t,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:e.tableId,page:e.paginate.current_page,per_page:e.paginate.per_page,search:e.searchString,default_sorting:e.config.settings.default_sorting},t,n)}).then(function(t){e.items=t.data,e.paginate.total=parseInt(t.total),e.paginate.last_page=parseInt(t.last_page),e.config.settings.sorting_type="manual_sort",e.initSortable()}).catch(function(t){console.log(t)}).then(function(){e.loading=!1})):this.sortableInstance&&this.sortableInstance.destroy()},sortTable:function(t,e){var n=this;this.loading=!0;var a={action:"ninja_tables_sort_table",table_id:this.tableId,id:t,newPosition:e,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};this.$post(a).then(function(t){n.items=t.data,n.paginate.total=parseInt(t.total),n.paginate.last_page=parseInt(t.last_page)}).fail(function(t){console.log(t)}).always(function(){n.loading=!1})},add:function(){this.updateItem=null,this.insertAfterPosition=null,this.addDataModal=!0,this.dataModalType="add",this.addDataModalTitle="Add Data"},addAfter:function(t){this.hasSortable?(this.updateItem=null,this.addDataModalTitle="Add Data",this.dataModalType="add-after",this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0):this.sortableUpgradeNotice=!0},showColumnConfigModal:function(t){this.currentEditingColumn=this.columns.find(function(e){return e.key===t.key}),this.showColumnEditor=!0},storeSettings:function(){var t=this;window.ninjaTableBus.$emit("updateTableColumns",function(){t.showColumnEditor=!1,t.currentEditingColumn=!1,t.dataSource&&"default"!=t.dataSource&&t.getData()})},duplicateData:function(t){this.updateItem=JSON.parse(JSON.stringify(t.row)),this.updateItem.id=null,this.hasSortable&&(this.insertAfterPosition=t.$index+1),this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0,this.dataModalType="duplicate",this.addDataModalTitle="Duplicate Data"},reloadSettingsAndData:function(){this.getColumnSettings(),this.getData()},deleteColumn:function(){var t=this,e=i()(this.config.columns,this.currentEditingColumn);this.showColumnEditor=!1,this.currentEditingColumn=!1,this.config.columns.splice(e,1),this.$nextTick(function(){return t.storeSettings()})}},mounted:function(){this.getData(),this.tableWidth=jQuery(".wrap").width()+"px",this.setNewColumn()}}},function(t,e,n){var a=n(468),o=n(469),i=n(471),s=RegExp("['’]","g");t.exports=function(t){return function(e){return a(i(o(e).replace(s,"")),t,"")}}},function(t,e){t.exports=function(t,e,n,a){var o=-1,i=null==t?0:t.length;for(a&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var a=n(470),o=n(31),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,a).replace(s,"")}},function(t,e,n){var a=n(81)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=a},function(t,e,n){var a=n(472),o=n(473),i=n(31),s=n(474);t.exports=function(t,e,n){return t=i(t),void 0===(e=n?void 0:e)?o(t)?s(t):a(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+n+"]",o="\\d+",i="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",l="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",d="(?:"+s+"|"+l+")",p="(?:"+u+"|"+l+")",_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+_+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",r,c].join("|")+")[\\ufe0e\\ufe0f]?"+_+")*"),m="(?:"+[i,r,c].join("|")+")"+f,v=RegExp([u+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[a,u,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[a,u+d,"$"].join("|")+")",u+"?"+d+"+(?:['’](?:d|ll|m|re|s|t|ve))?",u+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,m].join("|"),"g");t.exports=function(t){return t.match(v)||[]}},function(t,e,n){var a=n(0)(n(478),n(488),!1,function(t){n(476)},null,null);t.exports=a.exports},function(t,e,n){var a=n(477);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("b43c125e",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".dialog-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.dialog-footer.single-child{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.row_config_container{display:block;padding:10px 15px;background:#d8edfd;position:relative;border-radius:5px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a),i=n(42),s=n.n(i),l=n(220),r=n.n(l),c=n(481),u=n.n(c),d=n(221),p=n.n(d);e.default={name:"add_data",props:["title","show","columns","table_id","item","manualSort","insertAfterPosition","insertAfterId","type"],data:function(){return{row_config:!1,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},btnLoading:!1,continueAdding:!0,newColumn:{},has_pro:!!window.ninja_table_admin.hasPro,position:"last",modal_title:"Add Row",item_settings:{},created_at:"",adding_counter:1}},computed:{editId:function(){return this.item&&this.item.id},shouldNotContinueAdding:function(){return!(!this.editId&&"duplicate"!==this.type)}},watch:{item:function(){this.initNewColumnObj(),this.item||(this.modal_title="Add Row")}},methods:{addData:function(){var t=this,e=!1;if(o()(this.newColumn,function(t){t&&(e=!0)}),e){this.btnLoading=!0;var n={action:"ninja_tables_ajax_actions",target_action:"store-table-data",table_id:this.table_id,row:this.newColumn,id:this.editId,created_at:this.created_at,settings:this.item_settings,position:this.position};this.insertAfterId&&(n.insert_after_id=this.insertAfterId,n.position=parseInt(this.insertAfterPosition)+1),this.$post(n).then(function(e){if(e.item){if(t.$message({showClose:!0,message:e.message,type:"success"}),t.initNewColumnObj(),t.editId)t.$emit("updateItem",e.item);else{var a=n.position;t.manualSort||t.insertAfterId||(a="last-first"),t.$emit("createItem",e.item,a)}!t.editId&&t.continueAdding||t.$emit("modal_close"),"duplicate"===t.type&&t.$emit("modal_close"),t.adding_counter++}else t.$message({showClose:!0,message:"Failed to add/update data. Please reload this page and try again",type:"error"})}).fail(function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}).always(function(){t.btnLoading=!1})}else this.$message({showClose:!0,message:"Please add at least 1 value to the row",type:"error"})},closeModal:function(){this.$emit("modal_close")},initNewColumnObj:function(){var t=this,e={};o()(this.columns,function(n){t.item&&t.item.values[n.key]?e[n.key]=t.item.values[n.key]:"selection"==n.data_type&&"yes"==n.isMultiple?e[n.key]=[]:e[n.key]=""}),this.newColumn=e,this.initItemSettings()},initItemSettings:function(){var t=this;this.item&&this.item.settings&&(this.item_settings=this.item.settings),this.item_settings.cell||this.$set(this.item_settings,"cell",{}),o()(this.columns,function(e){t.item_settings.cell[e.key]||t.$set(t.item_settings.cell,e.key,{})}),this.item&&(this.created_at=this.item.created_at)},onEditorChange:function(t,e){e.editor;var n=e.html;e.text;this.newColumn[t]=n},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){this.initNewColumnObj()},components:{wp_editor:s.a,NinjaDatePicker:p.a,mayBeSelect:r.a,ImageSelector:u.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"maybe_multi_select",props:["newColumn","column","size"],data:function(){return{appReady:!1}},methods:{getFromSelectionStr:function(t){return t?t.split(/\r?\n/):[]},maybeBlur:function(t){console.log(t),t||this.$emit("blur")}},mounted:function(){if("yes"==this.column.isMultiple){var t=this.newColumn[this.column.key];t?"string"==typeof t&&(this.newColumn[this.column.key]=[t]):this.newColumn[this.column.key]=[]}this.appReady=!0}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.appReady?n("div",{staticClass:"maybe_nt_multi_select",staticStyle:{"max-width":"90%"}},["yes"==t.column.isMultiple?[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","allow-create":"",size:t.size,"default-first-option":"",placeholder:t.column.placeholder||"Select"},on:{"remove-tag":function(e){return t.$emit("blur")},change:function(e){return t.$emit("blur")}},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}),1)]:[n("el-select",{staticStyle:{width:"100%"},attrs:{size:t.size,filterable:"","allow-create":"","default-first-option":"",placeholder:t.column.placeholder||"Select"},on:{change:function(e){return t.$emit("blur")}},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}),1)]],2):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(482),n(483),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a);e.default={name:"maybe_multi_select",props:["newColumn","column","adding_counter"],data:function(){return{appReady:!1,upload_action:"",data:{},preferedThum:window.ninja_table_admin.prefered_thumb}},watch:{adding_counter:function(){console.log(this.adding_counter);this.newColumn[this.column.key]={permalink:"",image_thumb:"",image_full:""},this.data=this.newColumn[this.column.key]}},methods:{beforeAvatarUpload:function(t){return"image/jpg"==t.type||"image/gif"==t.type||"image/png"==t.type||(this.$message.error("Image need to be jpg/png/gif format"),!1)},handleAvatarSuccess:function(t,e){console.log(t)},initUploader:function(t){var e=this,n=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(t,a){console.log(a),e.newColumn[e.column.key].alt_text=a.alt||a.title,e.newColumn[e.column.key].image_full=a.url,e.newColumn[e.column.key].image_thumb=e.getThumb(a),wp.media.editor.send.attachment=n},wp.media.editor.open(),!1},initFileUploader:function(t){var e=this,n=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(t,a){e.newColumn[e.column.key].permalink=a.url,wp.media.editor.send.attachment=n},wp.media.editor.open(),!1},getThumb:function(t){var e=this,n=t.width,a=t.url,i=!1;return"original"==this.preferedThum?t.url:(o()(t.sizes,function(t,o){o==e.preferedThum&&(i=t.url),(!i||t.width>300)&&(t.width<400?i=t.url:t.width<n&&(n=t.width,a=t.url))}),i||a)},preinitUploader:function(){var t=this.newColumn[this.column.key],e={permalink:"",image_thumb:"",image_full:""};t?"string"==typeof t&&(this.newColumn[this.column.key]=e):this.newColumn[this.column.key]=e,this.data=this.newColumn[this.column.key]},remove:function(){this.data.image_thumb=""}},mounted:function(){this.preinitUploader(),this.appReady=!0}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.appReady?n("div",{staticClass:"image_selector"},["hyperlinked"==t.column.link_type||"none"==t.column.link_type||"image_light_box"==t.column.link_type||"iframe_ligtbox"==t.column.link_type?[n("div",{staticClass:"nt_form_group"},[n("label",[t._v("Upload Image")]),t._v(" "),n("div",{staticClass:"nt_form_input"},[t.data.image_thumb?n("div",{staticClass:"image_preview"},[n("img",{attrs:{src:t.data.image_thumb}})]):t._e(),t._v(" "),n("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"info"},on:{click:t.initUploader}},[t.data.image_thumb?n("span",[t._v("Change Image")]):n("span",[t._v("Upload Image")])]),t._v(" "),t.data.image_thumb?n("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"warning"},on:{click:t.remove}},[t._v("\n Remove Image\n ")]):t._e()],1)]),t._v(" "),"hyperlinked"==t.column.link_type||"iframe_ligtbox"==t.column.link_type?n("div",{staticClass:"nt_form_group"},["iframe_ligtbox"==t.column.link_type?n("label",[t._v("Iframe URL (Only The URL)")]):n("label",[t._v("Target URL")]),t._v(" "),n("div",{staticClass:"nt_form_input"},[n("el-input",{attrs:{type:"url",size:"mini",placeholder:"Permalink"},model:{value:t.data.permalink,callback:function(e){t.$set(t.data,"permalink",e)},expression:"data.permalink"}})],1)]):t._e()]:t._e()],2):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(485);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("13ef6dde",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_date_picker>.form-control{width:90%;float:left}.ninja_date_picker>.el-date-editor{width:8px!important;padding:0;margin:0;cursor:pointer}.ninja_date_picker>.el-date-editor .el-input__inner{width:10px!important;padding:15px;background:gray;height:34px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninjaDatePicker",props:["column","new_column","only_picker"],computed:{elementFormat:function(){var t=this.column.dateFormat,e="h:m:s",n="";return n="DD-MMM-YY"==t?"dd-MMM-yy":t.replace(/Y/g,"y").replace(/D/g,"d"),"date"===this.type?n:(this.column.timeFormat&&(e=this.column.timeFormat),n+" "+e)},type:function(){return"yes"===this.column.showTime?"datetime":"date"}},methods:{slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:"yes"==t.only_picker?"ninja_only_picker":"ninja_date_picker"},["yes"!=t.only_picker?n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_column[t.column.key],expression:"new_column[column.key]"}],staticClass:"form-control",attrs:{placeholder:t.column.dateFormat,type:"text",size:"small",id:t.slugify(t.column.key)},domProps:{value:t.new_column[t.column.key]},on:{input:function(e){e.target.composing||t.$set(t.new_column,t.column.key,e.target.value)}}}):t._e(),t._v(" "),n("el-date-picker",{attrs:{type:t.type,size:"small","value-format":t.elementFormat,format:t.elementFormat,placeholder:"Pick a day"},on:{blur:function(e){return t.$emit("blur")}},model:{value:t.new_column[t.column.key],callback:function(e){t.$set(t.new_column,t.column.key,e)},expression:"new_column[column.key]"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.title,visible:t.show,top:"50px","close-on-click-modal":!1,"append-to-body":!0},on:{"update:visible":function(e){t.show=e},close:t.closeModal}},[t.show?n("div",[t._l(t.columns,function(e){return n("div",{key:e.key,staticClass:"form-group"},[n("label",{attrs:{for:t.slugify(e.key)}},[t._v(t._s(e.name||e.key))]),t._v(" "),"textarea"==e.data_type?n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})]):"html"==e.data_type?n("div",[n("wp_editor",{attrs:{editor_id:t.slugify(e.key)},model:{value:t.newColumn[e.key],callback:function(n){t.$set(t.newColumn,e.key,n)},expression:"newColumn[column.key]"}})],1):"date"==e.data_type?n("div",[n("ninja-date-picker",{attrs:{column:e,new_column:t.newColumn}})],1):"selection"==e.data_type?n("div",[n("may-be-select",{attrs:{column:e,newColumn:t.newColumn}})],1):"image"==e.data_type&&t.has_pro?n("div",[n("image-selector",{attrs:{adding_counter:t.adding_counter,column:e,newColumn:t.newColumn}})],1):"button"==e.data_type&&t.has_pro?n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:"Valid button URL",type:"url",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}}),t._v(" "),n("small",[t._v("Please provide valid URL")])]):n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})])])}),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():n("div",[t._v("\n Add at\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"5px"},attrs:{type:"radio",value:"last"},domProps:{checked:t._q(t.position,"last")},on:{change:function(e){t.position="last"}}}),t._v("Last\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"10px"},attrs:{type:"radio",value:"first"},domProps:{checked:t._q(t.position,"first")},on:{change:function(e){t.position="first"}}}),t._v("First\n ")])],2):t._e(),t._v(" "),t.row_config?n("div",{staticClass:"row_config_container"},[t.has_pro?[n("h3",[t._v("Row Settings")]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.row_bg,callback:function(e){t.$set(t.item_settings,"row_bg",e)},expression:"item_settings.row_bg"}})],1),t._v(" "),n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.text_color,callback:function(e){t.$set(t.item_settings,"text_color",e)},expression:"item_settings.text_color"}})],1)]),t._v(" "),n("h3",[t._v("Cell Color Customization")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column")]),t._v(" "),n("th",[t._v("Background Color")]),t._v(" "),n("th",[t._v("Text Color")])])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key]["background-color"],callback:function(n){t.$set(t.item_settings.cell[e.key],"background-color",n)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key].color,callback:function(n){t.$set(t.item_settings.cell[e.key],"color",n)},expression:"item_settings.cell[column.key]['color']"}})],1)])}),0)]),t._v(" "),t.insertAfterPosition?t._e():n("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v("\n Data Create Date\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you use table sorting by create date then you can change create date to sort your data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"Select date and time"},model:{value:t.created_at,callback:function(e){t.created_at=e},expression:"created_at"}})],1)]:[n("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),n("p",[t._v("Using this module, You can set cell and row level colors of your data, It's a pro feature, Please\n purchase pro to unlock this feature")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger el-button--mini",attrs:{type:"button"}},[n("span",[t._v("Buy Pro")])])])]],2):t._e(),t._v(" "),n("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[n("div",[n("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.continueAdding,expression:"continueAdding"}],attrs:{type:"checkbox",id:"adding_more"},domProps:{checked:Array.isArray(t.continueAdding)?t._i(t.continueAdding,null)>-1:t.continueAdding},on:{change:function(e){var n=t.continueAdding,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.continueAdding=n.concat([null])):i>-1&&(t.continueAdding=n.slice(0,i).concat(n.slice(i+1)))}else t.continueAdding=o}}}),t._v(" Continue Adding\n ")])])],t._v(" "),n("div",{staticClass:"dialog-footer-item"},[n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){t.row_config=!t.row_config}}},[n("i",{staticClass:"el-icon-setting"})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],attrs:{disabled:t.btnLoading,type:"primary",size:"small"},on:{click:t.addData}},[t.editId?n("span",[t._v(" "+t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])},staticRenderFns:[]}},function(t,e,n){var a=n(490);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("013f4f15",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}}},function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"alert",class:"alert-"+this.alertClass},[this._t("default")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(496),n(497),!1,function(t){n(494)},"data-v-590fa148",null);t.exports=a.exports},function(t,e,n){var a=n(495);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("084af8d0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".remove[data-v-590fa148]{display:inline-block}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"remove"},[n("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:t.proceedConfirmation}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1)]),t._v(" "),t.label?n("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):n("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[n("span",{staticClass:"dashicons dashicons-trash"})])],1)},staticRenderFns:[]}},function(t,e,n){var a=n(499);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("34d0fce7",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"SortableUpgradeNotice",props:["show"],data:function(){return{upgradeGuide:window.ninja_table_admin.upgradeGuide}},computed:{visible:{get:function(){return this.show},set:function(){this.close()}}},methods:{close:function(){this.$emit("close")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n ")]),t._v(" "),n("span",[t._v("\n "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("span",[n("a",{attrs:{href:t.upgradeGuide,target:"_blank"}},[t._v(t._s(t.$t("Click here")))]),t._v(" "+t._s(t.$t("to view the upgrade guide."))+"\n ")])])},staticRenderFns:[]}},function(t,e,n){var a=n(503);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("161b6e1f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-wrapper{padding:10px}.form-wrapper label{display:initial;max-width:none;margin-bottom:0}.form-wrapper .el-form-item{margin-bottom:15px}.form-wrapper .more-settings:hover{cursor:pointer}.form-wrapper .more-settings i{font-size:1.5em}.form-wrapper .form_group{margin-top:10px}.form-wrapper .basic_settings .el-select{min-width:400px;max-width:100%}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a),i=n(505),s=n.n(i),l=n(512),r=n.n(l),c=n(515),u=n.n(c),d=n(518),p=n.n(d),_=n(181),f=n.n(_);e.default={name:"ColumnsEditor",components:{wp_editor:o.a,condition:s.a,"wp-post-dynamic-column":r.a,"content-transformer":u.a,DynamicWooColumn:p.a,NinjaColorPicker:f.a},props:{model:{type:Object,default:function(){return{}}},hasPro:{type:Boolean,default:!1},updating:{type:Boolean,default:!1},moreSettings:{type:Boolean,default:!1},hideCancel:{type:Boolean,default:!1},dataSourceType:{type:String,default:"default"},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},data:function(){return{hideDelete:!1,dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},breakPointsOptions:{"":this.$t("Always show in all devices"),all:this.$t("Hidden On Desktop"),xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),hidden:this.$t("Totally hidden on all devices")},dateFormats:{"M/D/YYYY":"4/28/2018","M/D/YY":"4/28/18","MM/DD/YY":"04/28/18","MM/DD/YYYY":"04/28/2018","MMM/DD/YYYY":"Apr/28/2018","YY/MM/DD":"18/04/28","YYYY-MM-DD":"2018-04-28","DD-MMM-YY":"28-Apr-18"},timeFormats:{"h:m a":"4:8 am/pm","h:m:s a":"4:8:2 am/pm","hh:mm a":"04:08 am/pm","hh:mm:ss a":"04:08:12 am/pm","h:m A":"4:8 AM/PM","h:m:s A":"4:8:2 AM/PM","hh:mm A":"04:08 AM/PM","hh:mm:ss A":"04:08:12 AM/PM","H:m":"1:8","H:m:s":"1:8:2","HH:mm":"01:08","HH:mm:ss":"01:08:12"},weekDays:{0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},formatType:"standard",has_pro:!!window.ninja_table_admin.hasPro,alignmentOptions:{"":"Default",center:"Center",left:"Left",right:"Right",justify:"Justify",start:"Start",end:"End"},contentAlignmentOptions:{"":"Default",center:"Center",left:"Left",right:"Right"},activeTab:"basic",showConfirm:!1,doingAjax:!1}},watch:{formatType:function(){"custom"===this.formatType&&(this.model.dateFormat="")},hideDelete:function(t,e){this.hideDelete="basic"!=this.activeTab},"model.data_type":function(){"image"==this.model.data_type?this.model.link_type||this.$set(this.model,"link_type","none"):"number"!=this.model.data_type||this.model.decimal_system||(","==this.model.decimalSeparator?this.$set(this.model,"decimal_system","eu"):this.$set(this.model,"decimal_system","us"),this.changeDecimalStyle())}},methods:{addColumn:function(){this.hasPro||"button"!=this.model.data_type&&"image"!=this.model.data_type||(this.model.data_type="text"),this.$emit("add")},cancel:function(){this.$emit("cancel")},deleteColumn:function(){this.$emit("delete")},store:function(){this.$emit("store")},onTabClick:function(t,e){"basic"==t.name?this.hideDelete=!1:(this.hideDelete=!0,this.moreSettings&&(this.moreSettings=!this.moreSettings))},showProPopUp:function(){this.hasPro||window.ninjaTableBus.$emit("show_pro_popup",1)},changeDecimalStyle:function(){"us"==this.model.decimal_system?(this.$set(this.model,"decimalSeparator","."),this.$set(this.model,"thousandSeparator",",")):(this.$set(this.model,"decimalSeparator",","),this.$set(this.model,"thousandSeparator","."))}},mounted:function(){var t=this;"default"==this.dataSourceType&&this.$set(this.dataTypesOptions,"image","Image/File/Lightbox"),this.dataTypesOptions.button=this.$t("Button/Link"),this.model&&(this.model.hasOwnProperty("dateFormat")||this.$set(this.model,"dateFormat",""),this.model.dateFormat=this.model.dateFormat||"",this.model.enable_html_content=-1!==["true",!0].indexOf(this.model.enable_html_content),this.model.header_html_content=this.model.header_html_content||"",this.model.contentAlign||this.$set(this.model,"contentAlign",""),this.model.textAlign||this.$set(this.model,"textAlign",""),this.model.maxWidthUnit||this.$set(this.model,"maxWidthUnit","px"),this.model.timeFormat||this.$set(this.model,"timeFormat",""),this.model.relAttributes||this.$set(this.model,"relAttributes",[]),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}))}}},function(t,e,n){var a=n(0)(n(508),n(511),!1,function(t){n(506)},null,null);t.exports=a.exports},function(t,e,n){var a=n(507);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5281c00f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".column-condition-config .el-row{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:5px}.column-condition-config .el-col{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{width:100%;height:33px}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{margin-top:10px;font-weight:400}.column-condition-config .form_group{margin:0;height:35px}.column-condition-config .el-color-picker,.column-condition-config .el-color-picker__mask{width:100%!important}.column-condition-config .el-button--mini{padding:5px 13px}.column-condition-config .conditional-settings-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(181),o=n.n(a),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{NinjaColorPicker:o.a},data:function(){return{defaultCondition:{conditionalOperator:null,conditionalValue:null,conditionalValue2:null,targetAction:null,targetValue:null,targetValueColor:null}}},methods:{addCondition:function(){this.column.conditions||this.$set(this.column,"conditions",[]),this.column.conditions.push(i({},this.defaultCondition))},removeCondition:function(t){this.column.conditions.splice(t,1)},shouldShowColorPicker:function(t){return-1!=["set-cell-color","set-cell-bg-color","set-row-color","set-row-bg-color","set-column-color","set-column-bg-color"].indexOf(t.targetAction)}},mounted:function(){this.column&&!this.column.conditions&&this.$set(this.column,"conditions",[])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_color_picker",props:["label","value","disabled"],data:function(){return{color:"",previous_color:""}},watch:{color:function(t){"transparent"===t&&(this.color=""),this.previous_color=this.color,this.$emit("input",this.color)}},methods:{changeColor:function(t){"transparent"===this.previous_color?(this.previous_color=t,this.color="transparent"):this.color=t}},mounted:function(){this.color=this.value}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form_group"},[n("el-color-picker",{attrs:{"show-alpha":"",disabled:t.disabled},on:{"active-change":t.changeColor},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),t._v(" "),t.label?n("label",[t._v(t._s(t.label))]):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column-condition-config"},[t.hasPro?n("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),n("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n Add Condition\n ")])],1):n("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[n("div",{staticClass:"conditional-settings-title"},[n("H3",[t._v("Conditional Formatting")]),t._v(" "),n("p",[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like.\n Conditional Formatting is a pro feature which can be enabled by using Ninja Table pro Add-on. Ninja\n Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),t._m(1)],1)]),t._v(" "),n("hr"),t._v(" "),t._l(t.column.conditions,function(e,a){return n("el-row",{key:a},[n("el-col",{attrs:{sm:2,md:2}},[n("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:e.conditionalOperator,callback:function(n){t.$set(e,"conditionalOperator",n)},expression:"condition.conditionalOperator"}},[n("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),n("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than Or Equal To",value:"less-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than Or Equal To",value:"greater-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-input",{attrs:{size:"small",placeholder:"between"==e.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:e.conditionalValue,callback:function(n){t.$set(e,"conditionalValue",n)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==e.conditionalOperator?n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:e.conditionalValue2,callback:function(n){t.$set(e,"conditionalValue2",n)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:e.targetAction,callback:function(n){t.$set(e,"targetAction",n)},expression:"condition.targetAction"}},[n("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[n("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),n("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[n("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),n("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[n("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(e),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:e.targetValue,callback:function(n){t.$set(e,"targetValue",n)},expression:"condition.targetValue"}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(e),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[n("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:e.targetValueColor,callback:function(n){t.$set(e,"targetValueColor",n)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-minus",disabled:!t.hasPro},on:{click:function(e){return t.removeCondition(a)}}})],1)],1)}),t._v(" "),"date"==t.column.data_type?n("div",{staticClass:"nt_suggest"},[n("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),n("p",[t._v("Example Usage")]),t._v(" "),n("ul",[n("li",[t._v("Today's Date: "),n("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Tomorrow's Date: "),n("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Yesterday's Date: "),n("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date After 10 Days: "),n("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date Before 10 Days: "),n("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():n("el-row",[n("el-alert",{attrs:{center:"",closable:!1,title:"You haven't added any conditions for the column yet!",type:"info"}})],1)],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"conditional-settings-title"},[this._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/conditional-column-formatting/"}},[this._v("View\n Documentation")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=conditional_formatting&utm_term=upgrade",target:"_blank"}},[e("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[e("span",[this._v("Buy Pro and Enable Conditional Formatting")])])])}]}},function(t,e,n){var a=n(0)(n(513),n(514),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WPPostDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[],table_id:this.$route.params.table_id}},watch:{"column.wp_post_custom_data_type":function(){this.$set(this.column,"wp_post_custom_data_value","")}},computed:{selectedField:function(){var t=this,e=this.post_data_types.find(function(e){return e.key==t.column.wp_post_custom_data_type});return e||{}},selectedFiledValueType:function(){return this.selectedField&&this.selectedField.value_type?this.selectedField.value_type:"text"}},methods:{setFieldOptions:function(){var t=this;if(this.loading=!0,window.ninja_wp_posts_custom_fields)return this.post_data_types=window.ninja_wp_posts_custom_fields,void(this.loading=!1);this.$get({action:"ninja_table_wp-posts_get_custom_field_options",table_id:this.table_id}).then(function(e){window.ninja_wp_posts_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.setFieldOptions()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[n("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),n("hr"),t._v(" "),"custom"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Type")]),t._v(" "),n("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Field",size:"small"},model:{value:t.column.wp_post_custom_data_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_type",e)},expression:"column.wp_post_custom_data_type"}},t._l(t.post_data_types,function(t){return n("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})}),1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Value")]),t._v(" "),n("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}},t._l(t.selectedField.options,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}),1)]:n("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?n("div",{staticClass:"ninja_instruction"},[n("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?n("p",[n("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2)]:t._e(),t._v(" "),"post_data"==t.column.source_type||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),"yes"==t.column.permalinked?["post_author"==t.column.original_name?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the author as table filter action. So when user click on those filters then they will see only the selected author posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2):t._e(),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:"tax_data"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Taxonomy Separator")]),t._v(" "),n("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(516),n(517),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(222),o=n.n(a),i=n(43),s=n.n(i),l=n(83);e.default={name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},components:{ninja_alert:o.a,NinjaPremiumNotice:s.a},watch:{"settings.formula_support":function(){this.storeSettings()}},data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,tableId:this.$route.params.table_id,doingAjax:!1,supported_formullas:[],show_formulas:!1}},computed:{placeholder:function(){var t="Please Input Transform Values (HTML supported)";return"yes"==this.settings.formula_support&&(t="Please Input Transform Values (HTML and Excel Formula are supported)"),t}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,table_settings:this.settings};this.$post(e).success(function(t){}).fail(function(t){}).always(function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)})}},mounted:function(){this.supported_formullas=l.a.getSupportedFormulas()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Data Transformer is a powerful tool where you can concat any column values easily into any valid html and show as computed value.\n ")]),t._v(" "),n("el-input",{attrs:{type:"textarea",rows:"4",placeholder:t.placeholder,disabled:!t.hasPro},model:{value:t.column.transformed_value,callback:function(e){t.$set(t.column,"transformed_value",e)},expression:"column.transformed_value"}}),t._v(" "),t.hasPro?t._e():n("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),n("div",{staticClass:"ninja_instruction"},[n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no"},model:{value:t.settings.formula_support,callback:function(e){t.$set(t.settings,"formula_support",e)},expression:"settings.formula_support"}},[t._v("Enable Excel Formula support for Transform Value")]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}]},[n("p",[t._v("Note: Excel formuala is an experimental feature so all formulas may not work. We are improving this feature day by day so please don't be mad if some formulas don't work properly.")]),t._v(" "),n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.show_formulas=!0}}},[t._v("Show Formulas")]),t._v(" "),n("el-dialog",{attrs:{title:"Supported Excel Formullas",visible:t.show_formulas,width:"30%"},on:{"update:visible":function(e){t.show_formulas=e}}},[n("ul",{staticStyle:{margin:"0px 20px","padding-top":"20px"}},t._l(t.supported_formullas,function(e){return n("li",[t._v(t._s(e))])}),0)])],1)],1),t._v(" "),n("div",{staticClass:"ninja_instruction"},[n("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[t._v("{{"),n("span",[t._v("row."+t._s(e.key))]),t._v("}}")])])}),0)]),t._v(" "),n("br"),t._v(" "),t._m(1),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}],staticStyle:{"font-weight":"bold"}},[t._v("You can use any Excel formula into the transform value box")])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Column Title")]),this._v(" "),e("th",[this._v("Reference Shortcode")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("You may "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/value-transformation/",target:"_blank"}},[this._v("check the documentation here.")])])}]}},function(t,e,n){var a=n(0)(n(519),n(520),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WPWooDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[],table_id:this.$route.params.table_id}},watch:{"column.wp_post_custom_data_source_type":function(){this.$set(this.column,"source_type",this.selectedField.source_type),"tax_data"==this.selectedField.source_type&&this.$set(this.column,"taxonomy_separator",", "),this.$set(this.column,"wp_post_custom_data_key","")}},computed:{selectedField:function(){var t=this,e=this.post_data_types.find(function(e){return e.key==t.column.wp_post_custom_data_source_type});return e||{}},selectedFiledValueType:function(){return this.selectedField&&this.selectedField.value_type?this.selectedField.value_type:"text"}},methods:{setFieldOptions:function(){var t=this;if(this.loading=!0,window.ninja_wp_woo_custom_fields)return this.post_data_types=window.ninja_wp_woo_custom_fields,void(this.loading=!1);this.$get({action:"ninja_table_wp_woo_get_custom_field_options",table_id:this.table_id}).then(function(e){window.ninja_wp_woo_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.setFieldOptions()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[n("h4",[t._v(t._s(t.$t("Dynamic Column Data Settings")))]),t._v(" "),n("hr"),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Type")]),t._v(" "),n("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Data Type",size:"small"},model:{value:t.column.wp_post_custom_data_source_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_source_type",e)},expression:"column.wp_post_custom_data_source_type"}},t._l(t.post_data_types,function(t){return n("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})}),1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Value")]),t._v(" "),n("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_key,callback:function(e){t.$set(t.column,"wp_post_custom_data_key",e)},expression:"column.wp_post_custom_data_key"}},t._l(t.selectedField.options,function(t,e){return n("el-option",{key:e,attrs:{value:e,label:t}})}),1),t._v(" "),"featured_image"==t.column.wp_post_custom_data_source_type?n("div",[n("el-radio-group",{model:{value:t.column.image_permalink_type,callback:function(e){t.$set(t.column,"image_permalink_type",e)},expression:"column.image_permalink_type"}},[n("el-radio",{attrs:{label:"lightbox"}},[t._v("Make image as lightbox")]),t._v(" "),n("el-radio",{attrs:{label:"linked"}},[t._v("Link to Product page")]),t._v(" "),n("el-radio",{attrs:{label:""}},[t._v("None")])],1),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"linked"==t.column.image_permalink_type,expression:"column.image_permalink_type == 'linked'"}]},[n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"no"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}},[t._v("Open Link in new tab")])],1)],1):t._e()]:n("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?n("div",{staticClass:"ninja_instruction"},[n("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?n("p",[n("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2),t._v(" "),"buy_now_button"==t.column.wp_post_custom_data_key?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Buy Now Button Text"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Buy Now Button Text")]),t._v(" "),n("p",[t._v("Provide Buy Now Button Text")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Buy Now Button Text",size:"small"},model:{value:t.column.buy_now_button_text,callback:function(e){t.$set(t.column,"buy_now_button_text",e)},expression:"column.buy_now_button_text"}})],2):t._e(),t._v(" "),"post_title"==t.column.wp_post_custom_data_key||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.wp_post_custom_data_key?n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2)]:"tax_data"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Taxonomy Separator")]),t._v(" "),n("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[n("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Name"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Name")]),t._v(" "),n("p",[t._v("\n Enter a column name to set the header title.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Key"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Key")]),t._v(" "),n("p",[t._v("\n Column key is for data mapping, export and import table data.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:t.updating},model:{value:t.model.key,callback:function(e){t.$set(t.model,"key",e)},expression:"model.key"}}),t._v(" "),t.updating?t._e():n("small",[t._v("Please use english letters only")])],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Data Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),n("p",[t._v("\n Choose the data type of the column.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select Data Type of this column"},model:{value:t.model.data_type,callback:function(e){t.$set(t.model,"data_type",e)},expression:"model.data_type"}},t._l(t.dataTypesOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasPro,expression:"hasPro"}]},[t._v("Select HTML Field if you want to add Link, media or any type of html")])],2),t._v(" "),"date"==t.model.data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Format"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),n("p",[t._v("\n Pattern of the date value.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[n("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),n("el-radio",{attrs:{label:"custom",disabled:!t.hasPro},nativeOn:{click:function(e){return t.showProPopUp(e)}}},[t._v("Custom")])],1),t._v(" "),"custom"!=t.model.formatType?n("el-form-item",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.model.dateFormat,expression:"model.dateFormat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.model,"dateFormat",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(a)+" - (Ex: "+t._s(e)+")\n ")])})],2)]):n("el-form-item",[n("el-input",{attrs:{size:"small",placeholder:"Enter moment.js supported format"},model:{value:t.model.dateFormat,callback:function(e){t.$set(t.model,"dateFormat",e)},expression:"model.dateFormat"}})],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Show Time"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Show Time")]),t._v(" "),n("p",[t._v("\n If you select yes, then time picker will be available\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.showTime,callback:function(e){t.$set(t.model,"showTime",e)},expression:"model.showTime"}}),t._v(" "),"yes"===t.model.showTime?n("select",{directives:[{name:"model",rawName:"v-model",value:t.model.timeFormat,expression:"model.timeFormat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.model,"timeFormat",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.timeFormats,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(a)+" - (Ex: "+t._s(e)+")\n ")])})],2):t._e()],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("First Day"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("First Day")]),t._v(" "),n("p",[t._v("\n The first day of the week, e.g. Sunday, Monday, etc.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select first day of the week"},model:{value:t.model.firstDayOfWeek,callback:function(e){t.$set(t.model,"firstDayOfWeek",e)},expression:"model.firstDayOfWeek"}},t._l(t.weekDays,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2)]:"number"==t.model.data_type&&t.hasPro?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Separator Style"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),n("p",[t._v("\n Please Provide The Thousand/Decimal Separator If Any.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{on:{change:function(e){return t.changeDecimalStyle()}},model:{value:t.model.decimal_system,callback:function(e){t.$set(t.model,"decimal_system",e)},expression:"model.decimal_system"}},[n("el-radio",{attrs:{label:"us"}},[t._v("US Style - decimal point (123,234.01)")]),t._v(" "),n("el-radio",{attrs:{label:"eu"}},[t._v("European Style - decimal comma (123.234,01)")])],1)],2)]:"selection"==t.model.data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Select Items"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Select Field")]),t._v(" "),n("p",[t._v("\n Use Select Field to add data in your table from predefined list\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-form-item",[t.has_pro?t._e():n("p",[n("b",[t._v("Selection feature is only available on Pro version Please upgrade to\n pro to unlock this feature")])]),t._v(" "),n("el-input",{attrs:{type:"textarea",size:"small",disabled:!t.has_pro,placeholder:"Enter Select items one per line",autosize:{minRows:4,maxRows:8}},model:{value:t.model.selections,callback:function(e){t.$set(t.model,"selections",e)},expression:"model.selections"}}),t._v(" "),n("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Placeholder")]),t._v(" "),n("p",[t._v("\n Enter the selection placeholder, default: 'Select'\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-form-item",[n("el-input",{attrs:{type:"text",size:"small",disabled:!t.has_pro,placeholder:"Enter placeholder"},model:{value:t.model.placeholder,callback:function(e){t.$set(t.model,"placeholder",e)},expression:"model.placeholder"}})],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Enable Multi-Selection"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Multiple Selection")]),t._v(" "),n("p",[t._v("\n If you select yes, Then admin can select multiple item on create data\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.isMultiple,callback:function(e){t.$set(t.model,"isMultiple",e)},expression:"model.isMultiple"}})],2)]:"image"==t.model.data_type?[t.hasPro?t._e():[n("el-form-item",[n("p",{staticStyle:{color:"red"}},[t._v("Image upload with lightbox, download link is a pro feature. It will\n not work without Pro Version "),n("b",[n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Please upgrade to pro")])])])])],t._v(" "),n("el-form-item",{attrs:{label:"Image Linkable?"}},[n("el-radio",{attrs:{disabled:!t.hasPro,label:"none"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Image Only")]),t._v(" "),n("el-radio",{attrs:{disabled:!t.hasPro,label:"image_light_box"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Image Lightbox")]),t._v(" "),n("el-radio",{attrs:{disabled:!t.hasPro,label:"iframe_ligtbox"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Iframe Lightbox")]),t._v(" "),n("el-radio",{attrs:{disabled:!t.hasPro,label:"hyperlinked"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Link to URL")])],1),t._v(" "),"file_download"==t.model.link_type?n("el-form-item",{attrs:{label:"Download Button Text / HTML"}},[n("el-input",{attrs:{disabled:!t.hasPro,type:"textarea",placeholder:"Download Button Text / HTML"},model:{value:t.model.download_button,callback:function(e){t.$set(t.model,"download_button",e)},expression:"model.download_button"}})],1):t._e(),t._v(" "),"hyperlinked"==t.model.link_type||"file_download"==t.model.link_type?n("el-form-item",[n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"_blank","false-label":"_self"},model:{value:t.model.link_target,callback:function(e){t.$set(t.model,"link_target",e)},expression:"model.link_target"}},[t._v("Open Link\n in new window\n ")])],1):t._e()]:"button"==t.model.data_type?[t.hasPro?t._e():[n("el-form-item",[n("p",{staticStyle:{color:"red"}},[t._v("Button on Table is a pro Feature. It will not work without Pro Version. "),n("b",[n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Please upgrade to pro")])])])])],t._v(" "),n("el-form-item",{attrs:{label:"Button Text"}},[n("el-input",{attrs:{size:"small",type:"text",placeholder:"Button Text (HTML supported)"},model:{value:t.model.button_text,callback:function(e){t.$set(t.model,"button_text",e)},expression:"model.button_text"}}),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"_blank","false-label":"_self"},model:{value:t.model.link_target,callback:function(e){t.$set(t.model,"link_target",e)},expression:"model.link_target"}},[t._v("Open Link\n in new window\n ")]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"nt_rounded_btn","false-label":""},model:{value:t.model.btn_extra_class,callback:function(e){t.$set(t.model,"btn_extra_class",e)},expression:"model.btn_extra_class"}},[t._v("Make\n Button as rounded corner\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"Button Style"}},[n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Background"},model:{value:t.model.btn_bg_color,callback:function(e){t.$set(t.model,"btn_bg_color",e)},expression:"model.btn_bg_color"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Text Color"},model:{value:t.model.btn_text_color,callback:function(e){t.$set(t.model,"btn_text_color",e)},expression:"model.btn_text_color"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Border Color"},model:{value:t.model.btn_border_color,callback:function(e){t.$set(t.model,"btn_border_color",e)},expression:"model.btn_border_color"}})],1)])]),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link With Rel Attribute"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Sponsored, Nofollow & NoReferrer")]),t._v(" "),n("p",[t._v("\n Check one or multiple a rel attribute of the column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.model.relAttributes?n("el-checkbox-group",{model:{value:t.model.relAttributes,callback:function(e){t.$set(t.model,"relAttributes",e)},expression:"model.relAttributes"}},t._l(["sponsored","nofollow","noreferrer"],function(t){return n("el-checkbox",{key:t,attrs:{label:t}})}),1):t._e()],2)]:t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Responsive Breakpoint"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Responsive Breakpoint")]),t._v(" "),n("p",[t._v("\n Choose responsive breakpoints of your table columns. "),n("br"),t._v("\n For more details check "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"}},[t._v("documentation")]),t._v(".\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Select Responsive Breakpoint"},model:{value:t.model.breakpoints,callback:function(e){t.$set(t.model,"breakpoints",e)},expression:"model.breakpoints"}},t._l(t.breakPointsOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2),t._v(" "),"wp-posts"==t.dataSourceType?n("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):"wp_woo"==t.dataSourceType?[n("dynamic-woo-column",{attrs:{columns:t.columns,column:t.model}})]:t._e()],2),t._v(" "),n("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[n("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():n("div",{staticClass:"ninja_table_inline_upgrade"},[n("H3",[t._v("Advanced Column Settings")]),t._v(" "),n("p",[t._v("\n Customize your table's column's width, custom css class, content alignments, column styling\n with this feature.\n Advanced Column Settings is a pro feature and You can use it once you upgrade to Ninja\n Tables Pro.\n Ninja Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=advanced_column&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[n("span",[t._v("Buy Pro and Enable This Module")])])])],1),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Extra Classes"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Extra CSS Classes")]),t._v(" "),n("p",[t._v("\n Enter extra CSS classes to the column. "),n("br"),t._v("\n Use `space` to separate each class.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:!t.hasPro},model:{value:t.model.classes,callback:function(e){t.$set(t.model,"classes",e)},expression:"model.classes"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Max Width"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),n("p",[t._v("\n Enter the maximum width of the column. This will be applied for the entire\n column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-col",{attrs:{xs:22,md:22,lg:22,xl:22}},[n("el-form-item",[n("el-input",{attrs:{size:"small",type:"number",disabled:!t.hasPro},model:{value:t.model.width,callback:function(e){t.$set(t.model,"width",e)},expression:"model.width"}})],1)],1),t._v(" "),n("el-col",{attrs:{xs:2,md:2,lg:2,xl:2}},[n("el-form-item",[n("el-select",{attrs:{size:"small",placeholder:"Select"},model:{value:t.model.maxWidthUnit,callback:function(e){t.$set(t.model,"maxWidthUnit",e)},expression:"model.maxWidthUnit"}},[n("el-option",{attrs:{label:"px",value:"px"}}),t._v(" "),n("el-option",{attrs:{label:"%",value:"%"}})],1)],1)],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header Text Alignment")]),t._v(" "),n("p",[t._v("\n Choose the text alignment. This will be applied only for header\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Text Align"},model:{value:t.model.textAlign,callback:function(e){t.$set(t.model,"textAlign",e)},expression:"model.textAlign"}},t._l(t.alignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Row Content Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Content Text Alignment")]),t._v(" "),n("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Content Alignment"},model:{value:t.model.contentAlign,callback:function(e){t.$set(t.model,"contentAlign",e)},expression:"model.contentAlign"}},t._l(t.contentAlignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}),1)],2),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{disabled:!t.hasPro,value:!0,label:"Enable HTML Table Header Content"},model:{value:t.model.enable_html_content,callback:function(e){t.$set(t.model,"enable_html_content",e)},expression:"model.enable_html_content"}})],1),t._v(" "),t.model.enable_html_content?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header HTML Content"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header HTML Content")]),t._v(" "),n("p",[t._v("\n Provide content for table column header if you want to show html content.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("wp_editor",{model:{value:t.model.header_html_content,callback:function(e){t.$set(t.model,"header_html_content",e)},expression:"model.header_html_content"}})],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filterable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filterable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be filterable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend search for this column data"},model:{value:t.model.unfilterable,callback:function(e){t.$set(t.model,"unfilterable",e)},expression:"model.unfilterable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Sortable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Sortable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be sortable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend sorting for this column"},model:{value:t.model.unsortable,callback:function(e){t.$set(t.model,"unsortable",e)},expression:"model.unsortable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Background"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Background color")]),t._v(" "),n("p",[t._v("\n You can set background color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Text Color"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Text Color color")]),t._v(" "),n("p",[t._v("\n You can set Column Text color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[n("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[n("content-transformer",{attrs:{settings:t.settings,columns:t.columns,column:t.model}})],1),t._v(" "),n("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),n("div",{staticClass:"form_group"},[n("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():n("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[n("p",[t._v("Are you sure to delete this?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel\n ")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm\n ")])],1),t._v(" "),t.hideDelete?t._e():n("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete"))+"\n ")])],1),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.store(e)}}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])]:[t.hideCancel?t._e():n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return e.preventDefault(),t.cancel(e)}}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.addColumn(e)}}},[t._v("Add Column\n ")])]],2)])],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(525),n(526),!1,function(t){n(523)},null,null);t.exports=a.exports},function(t,e,n){var a=n(524);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("508b4bf5",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(213),o=n.n(a);e.default={name:"FluentformNav",components:{FluentForm:o.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(530),n(531),!1,function(t){n(528)},null,null);t.exports=a.exports},function(t,e,n){var a=n(529);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("514643a9",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".external-source-nav .el-collapse-item__header,.external-source-nav .el-collapse-item__wrap{padding:0 15px}.external-source-nav .sync-settings{margin-top:15px}.external-source-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(214),o=n.n(a);e.default={name:"External",components:{"external-data-source":o.a},props:{tableCreated:{type:Function},config:{type:Object},isEditableMessage:{required:!0},hasPro:{required:!0}},data:function(){return{state:!1,url:this.value,activated_features:window.ninja_table_admin.activated_features}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"external-source-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("external-data-source",{attrs:{type:t.config.table.dataSourceType,tableCreated:t.tableCreated,columns:t.config.columns,table:t.config.table,hasPro:t.hasPro,editing:!0,activated_features:t.activated_features}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(535),n(536),!1,function(t){n(533)},null,null);t.exports=a.exports},function(t,e,n){var a=n(534);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("26d13152",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(215),o=n.n(a),i=n(216),s=n.n(i);e.default={name:"RowSQLNav",components:{MySqlEditor:o.a,RemoteSqlConnection:s.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean},column_count:{type:Number}},data:function(){return{error_html:"",loading:!1,active:"",connection_details:{},has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{updateSql:function(){var t=this;this.loading=!0,this.error_html="";var e={action:"ninja_table_raw_sql_update_sql",table_id:this.config.table.ID,sql:this.config.table.sql};"external"==this.config.table.connection_type&&(e.connection_details=this.connection_details),this.$post(e).then(function(e){"string"!=typeof e?(t.tableCreated(),t.$message({showClose:!0,message:e.data.message,type:"success"})):t.error_html=e}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var o in a)n+=" "+a[o];t.$message({showClose:!0,message:n,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)}).always(function(){t.loading=!1})},getRemoteConnectionDetails:function(){var t=this;this.$get({action:"ninja_table_raw_sql_remote_connection_details",table_id:this.config.table.ID}).then(function(e){t.connection_details=e.data.connection_details}).fail(function(t){console.log(t)})}},mounted:function(){this.column_count||(this.active="1"),"external"==this.config.table.connection_type&&this.getRemoteConnectionDetails()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[t.has_sql_permission?n("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.config.table.sql,callback:function(e){t.$set(t.config.table,"sql",e)},expression:"config.table.sql"}}),t._v(" "),n("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),n("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),n("p",[t._v("Check the documentation for advanced use cases: "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://wpmanageninja.com/docs/ninja-tables/integrations/construct-table-from-custom-sql/"}},[t._v("Ninja Tables SQL Integration Documentation")])]),t._v(" "),n("p",[t._v("Available Dynamic Placeholders: "),n("code",[t._v("{current_user_id}")]),t._v(" "),n("code",[t._v("{current_date}")]),t._v(" "),n("code",[t._v("{current_date_time}")]),t._v(" "),n("code",[t._v("{current_post_id}")]),t._v(" "),n("code",[t._v("{current_post_title}")]),t._v(" "),n("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSql()}}},[t._v("Update SQL Query")])],1)],2),t._v(" "),"external"==t.config.table.connection_type?n("el-collapse-item",{attrs:{name:"2"}},[n("template",{slot:"title"},[n("strong",[t._v("SQL Connection Details:")])]),t._v(" "),n("remote-sql-connection",{attrs:{connection:t.connection_details}}),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSql()}}},[t._v("Update SQL Connection Details")])],1)],2):t._e()],1):[n("el-alert",{attrs:{title:"",type:"error",closable:!1}},[n("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles."),n("br"),t._v("\n You can only see the data and update other settings but can't alter the original SQL.\n ")]),t._v(" "),n("b",[t._v("Current SQL Query: ")]),t._v(" "),n("p",[n("code",[t._v(t._s(t.config.table.sql))])])])]],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(540),n(541),!1,function(t){n(538)},null,null);t.exports=a.exports},function(t,e,n){var a=n(539);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("499d79da",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}.el-transfer__buttons{padding:0 10px!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(210),o=n.n(a),i=n(82),s=n.n(i);e.default={name:"WPPostsNav",components:{WPPosts:o.a,columnsEditor:s.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{activeNames:["1"]}},methods:{addNewColumn:function(){this.$emit("add")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[n("el-collapse-item",{attrs:{title:"Table Query Settings and New Column",name:"1"}},[n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"Table Info"}},[n("p",[t._v('This table data is created from wp-posts. Use the "Query Settings" and "Add New Column" tab to customize the columns and query.')])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Query Settings"}},[n("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Add New Column"}},[n("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:t.hasPro,settings:t.config.settings,hideCancel:!0,dataSourceType:"wp-posts"},on:{add:function(e){return t.addNewColumn()}}})],1)],1)],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(545),n(546),!1,function(t){n(543)},null,null);t.exports=a.exports},function(t,e,n){var a=n(544);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("61ae7ebc",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".nt-woo-nav .nt-appearance label.el-checkbox{display:block}.nt-woo-nav .nt-form-group{margin-bottom:15px}.nt-woo-nav .nt-form-group label{margin-right:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(212),o=n.n(a),i=n(82),s=n.n(i);e.default={name:"woo_nav_edit",props:["config","model"],components:{WooNav:o.a,ColumnsEditor:s.a},data:function(){return{query_terms:[],appearance:this.config.table.appearance_settings||{},loading:!1}},methods:{saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_table_save_query_settings_woo_table",table_id:this.config.table.ID,query_selections:this.config.table.query_selections,query_conditions:this.config.table.query_conditions,appearance_settings:this.config.table.appearance_settings}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$emit("reloadData",1)}).fail(function(t){}).always(function(){t.saving=!1})},addNewColumn:function(){this.$emit("add")}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nt-woo-nav"},[n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{staticClass:"nt-appearance",attrs:{label:"Appearance Settings"}},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_before_table,callback:function(e){t.$set(t.appearance,"show_cart_before_table",e)},expression:"appearance.show_cart_before_table"}},[t._v("Show Cart Details Before Table")]),t._v(" "),n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_after_table,callback:function(e){t.$set(t.appearance,"show_cart_after_table",e)},expression:"appearance.show_cart_after_table"}},[t._v("Show Cart Details After Table")]),t._v(" "),n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_button,callback:function(e){t.$set(t.appearance,"show_cart_button",e)},expression:"appearance.show_cart_button"}},[t._v("Show Go to Cart Button")]),t._v(" "),n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_checkout_button,callback:function(e){t.$set(t.appearance,"show_checkout_button",e)},expression:"appearance.show_checkout_button"}},[t._v("Show Checkout Button")]),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"nt-form-group"},[n("label",{attrs:{for:"cartBtnText"}},[t._v("\n Cart Text\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.appearance.cartBtnText,expression:"appearance.cartBtnText"}],attrs:{type:"text",id:"cartBtnText",placeholder:"Enter cart button text"},domProps:{value:t.appearance.cartBtnText},on:{input:function(e){e.target.composing||t.$set(t.appearance,"cartBtnText",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"nt-form-group"},[n("label",{attrs:{for:"checkoutBtnText"}},[t._v("\n Checkout Text\n ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.appearance.checkoutBtnText,expression:"appearance.checkoutBtnText"}],attrs:{type:"text",id:"checkoutBtnText",placeholder:"Enter checkout button text"},domProps:{value:t.appearance.checkoutBtnText},on:{input:function(e){e.target.composing||t.$set(t.appearance,"checkoutBtnText",e.target.value)}}})]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Query Settings"}},[n("woo-nav",{attrs:{query_selections:t.config.table.query_selections,query_conditions:t.config.table.query_conditions}}),t._v(" "),n("br"),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Add New Column"}},[n("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:!0,settings:t.config.settings,hideCancel:!0,dataSourceType:"wp_woo"},on:{add:function(e){return t.addNewColumn()}}})],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(548),n(549),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(182),o=n(184),i=n.n(o),s=n(83),l=n(220),r=n.n(l),c=n(221),u=n.n(c),d=n(186),p=n.n(d),_=n(188),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"show_cell",props:["row","columns","column","formula_support","is_editable"],components:{mayBeSelect:r.a,NinjaDatePicker:u.a},data:function(){return{is_editing:!1,btnLoading:!1,inital_value:""}},methods:{saveOnly:function(){},maybeSave:function(t){var e=this;if("change"!=t){var n=this.column.key,a=this.row.values[n];if(this.inital_value!=a){this.inital_value=JSON.stringify(a);var o={action:"ninja_tables_ajax_actions",target_action:"update-single-cell",row_id:this.row.id,column_key:n,column_value:a};this.btnLoading=!0,this.is_editing=!1,this.$post(o).then(function(t){console.log(t)}).fail(function(t){e.$message.error("Failed")}).always(function(){e.btnLoading=!1})}else this.is_editing=!1}},renderTableCell:function(t,e,n){return"image"==e.data_type?"object"==(void 0===t?"undefined":f(t))&&t?"file_download"==e.link_type?'<a target="'+e.link_target+'" href="'+t.permalink+'">'+e.download_button+"</a>":t.image_thumb?'<img src="'+t.image_thumb+'" />':"":t:"button"==e.data_type?t?'<a target="'+e.link_target+'" rel="'+e.relAttributes.join(" ")+'" class="nt_btn '+e.btn_extra_class+'" style="color: '+e.btn_text_color+"; background-color: "+e.btn_bg_color+"; border-color: "+e.btn_border_color+"\" href='"+t+"'>"+e.button_text+"</a>":"":(Array.isArray(t)&&(t=t.join(", ")),e.transformed_value&&e.transformed_value.trim()&&(t=this.getShortcodes(t,e,this.row,this.columns),"yes"==this.formula_support)?(t=s.a.parse(t,e.decimalSeparator),","==e.decimalSeparator&&(t=Object(_.a)(t)),t):t)},getShortcodes:function(t,e,n,o){n=Object.assign({},n.values);var s=e.transformed_value;1!=n.value_transformation_complete&&(jQuery.each(n,function(t,e){var a=p()(o,["key",t]);a&&"number"==a.data_type&&("."==a.decimalSeparator?n[t]=n[t]?n[t].replace(/\,/g,""):n[t]:n[t]=n[t]?n[t].replace(/\./g,"").replace(/\,/g,"."):n[t])}),n.value_transformation_complete=!0),-1!=s.indexOf("{{")&&(s=i()(Object(a.a)(s,{row:n})));var l=s.match(/{row.([^\}]*)}/g);return l&&$.each(l,function(t,e){var a=e.substring(5,e.length-1);s=s.replace(e,n[a]||"")}),s},getTitle:function(t){return this.cell_editable?"Click to edit":this.isHtml(t)?"":t},isHtml:function(t){var e=(new DOMParser).parseFromString(t,"text/html");return Array.from(e.body.childNodes).some(function(t){return 1===t.nodeType})}},computed:{cell_editable:function(){if(!this.is_editable)return!1;return-1==["image","button","html"].indexOf(this.column.data_type)}},mounted:function(){this.is_editable&&this.row.values[this.column.key]&&(this.inital_value=JSON.stringify(this.row.values[this.column.key]))}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],class:t.is_editing&&t.cell_editable?"nt_cell_editing":"nt_cell"},[t.is_editing&&t.cell_editable?n("div",{staticClass:"cell_editing"},["selection"==t.column.data_type?n("may-be-select",{attrs:{size:"mini",newColumn:t.row.values,column:t.column},on:{blur:function(e){return t.maybeSave("blur")}}}):"date"==t.column.data_type?n("ninja-date-picker",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{only_picker:"yes",column:t.column,new_column:t.row.values},on:{blur:function(e){return t.maybeSave("blur")}}}):"textarea"==t.column.data_type?n("textarea",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.row.values[t.column.key],expression:"row['values'][column.key]"}],key:t.column.key,staticClass:"nt_inline_textarea",domProps:{value:t.row.values[t.column.key]},on:{blur:function(e){return t.maybeSave("blur")},input:function(e){e.target.composing||t.$set(t.row.values,t.column.key,e.target.value)}}}):n("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.row.values[t.column.key],expression:"row['values'][column.key]"}],key:t.column.key,staticClass:"nt_cell_input",attrs:{type:"text"},domProps:{value:t.row.values[t.column.key]},on:{blur:function(e){return t.maybeSave("blur")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.maybeSave("submit")},input:function(e){e.target.composing||t.$set(t.row.values,t.column.key,e.target.value)}}})],1):n("div",{staticClass:"cell-content",class:t.cell_editable?"nt_cell_editable":"",attrs:{title:t.getTitle(t.row.values[t.column.key])},domProps:{innerHTML:t._s(t.renderTableCell(t.row.values[t.column.key],t.column,t.row.values))},on:{click:function(e){t.is_editing=!0}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isEditable?t._e():["fluent-form"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("fluent-form-nav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData}})],1):-1!=t.dataSourceType.indexOf("csv")?n("div",{staticClass:"tablenav top"},[n("external-source-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData},model:{value:t.externalDataSourceUrl,callback:function(e){t.externalDataSourceUrl=e},expression:"externalDataSourceUrl"}})],1):"wp-posts"==t.dataSourceType&&t.new_column?n("div",{staticClass:"tablenav top"},[n("WPPostsNav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData},on:{add:function(e){return t.addNewColumn()}}})],1):"raw_sql"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("raw-sql-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,column_count:t.columns.length,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData}})],1):"wp_woo"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("div",{staticClass:"woo_data_source_config"},[n("woo-nav-edit",{attrs:{model:t.new_column,config:t.config},on:{add:function(e){return t.addNewColumn()},reloadData:function(e){return t.getData()}}})],1)]):t._e(),t._v(" "),t.columns.length||t.loading?t._e():n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v("No Data found based on your data source configaration")])])],t._v(" "),t.columns.length&&t.isEditable?[t.addDataModal?n("add_data_modal",{attrs:{title:t.addDataModalTitle,show:t.addDataModal,table_id:t.tableId,columns:t.columns,item:t.updateItem,"manual-sort":"manual_sort"===t.config.settings.sorting_type,"insert-after-position":t.insertAfterPosition,insertAfterId:t.insertAfterId,type:t.dataModalType},on:{modal_close:t.closeDataModal,updateItem:t.updateItemOnTable,createItem:t.addItemOnTable}}):t._e(),t._v(" "),n("div",{staticClass:"tablenav top"},[n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))]),t._v(" "),n("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isCompact,expression:"isCompact"}],attrs:{id:"compact_view",type:"checkbox"},domProps:{checked:Array.isArray(t.isCompact)?t._i(t.isCompact,null)>-1:t.isCompact},on:{change:function(e){var n=t.isCompact,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.isCompact=n.concat([null])):i>-1&&(t.isCompact=n.slice(0,i).concat(n.slice(i+1)))}else t.isCompact=o}}}),t._v(" Compact View\n ")]),t._v(" "),n("label",[t._v("\n | "),n("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData(e)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.sorting,expression:"sorting"}],attrs:{type:"checkbox",name:"checkbox"},domProps:{checked:Array.isArray(t.sorting)?t._i(t.sorting,null)>-1:t.sorting},on:{change:function(e){var n=t.sorting,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.sorting=n.concat([null])):i>-1&&(t.sorting=n.slice(0,i).concat(n.slice(i+1)))}else t.sorting=o}}}),t._v("\n Sort Manually\n "),t.has_pro?t._e():[t._v("(Pro Feature)")]],2)]),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))]),t._v(" "),n("el-button",{attrs:{size:"small",type:"info"},on:{click:function(e){return t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():n("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[n("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addColumn()}}},[t._v("\n Add Column\n ")])],1),t._v(" "),t.columns.length?[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"js-sortable-table",class:{compact:t.isCompact,sorting:t.sorting},style:"width: "+t.tableWidth,attrs:{data:t.items,"row-key":"id",border:"","max-height":"600"},on:{"selection-change":t.handleSelectionChange}},[t.isEditable?n("el-table-column",{attrs:{type:"selection",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,function(e,a){return n("el-table-column",{key:a,attrs:{width:t.columnLength==a+1?"":150},scopedSlots:t._u([{key:"default",fn:function(a){return[n("show-editable-cell",{attrs:{row:a.row,column:e,columns:t.columns,formula_support:t.config.settings.formula_support,is_editable:t.isEditable}})]}}],null,!0)},[t._v(" "),n("template",{slot:"header"},[n("span",[t._v("\n "+t._s(e.name||e.key)+"\n\n "),n("i",{staticClass:"el-icon-setting nt-column-config",on:{click:function(n){return t.showColumnConfigModal(e)}}})])])],2)}),t._v(" "),t.isEditable?[t.show_meta?[n("el-table-column",{attrs:{label:"Row ID",width:"100px",prop:"id"}}),t._v(" "),n("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),n("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.has_pro?n("a",{on:{click:function(n){return t.addAfter(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),n("a",{on:{click:function(n){return t.showUpdateModal(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),n("a",{on:{click:function(n){return t.duplicateData(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),n("delete-pop-over",{on:{deleted:function(n){return t.deleteItem(e.row.id)}}})]}}],null,!1,2116760848)})]:t._e()],2),t._v(" "),n("div",{staticClass:"tablenav bottom"},[t.isEditable?n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))])]):t._e(),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100,500,2e3],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1)])]:t._e(),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),n("el-dialog",{staticClass:"no_padding_body",attrs:{"close-on-click-modal":!1,"append-to-body":!0,top:"50px",title:"Edit Table Column : "+t.currentEditingColumn.name,width:"70%",visible:t.showColumnEditor},on:{"update:visible":function(e){t.showColumnEditor=e}}},[t.showColumnEditor&&t.currentEditingColumn?n("columns-editor",{attrs:{dataSourceType:t.config.table.dataSourceType,model:t.currentEditingColumn,hasPro:t.has_pro,updating:!0,columns:t.columns,settings:t.config.settings},on:{store:function(e){return t.storeSettings()},delete:function(e){return t.deleteColumn()},cancel:function(e){t.showColumnEditor=!1}}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{"close-on-click-modal":!1,top:"50px","append-to-body":!0,title:"Add Table Column",width:"70%",visible:t.columnModal},on:{"update:visible":function(e){t.columnModal=e}}},[n("columns-editor",{attrs:{model:t.new_column,hasPro:t.has_pro,columns:t.config.columns,settings:t.config.settings},on:{add:function(e){return t.addNewColumn()},cancel:function(e){t.columnModal=!t.columnModal}}})],1)],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(554),n(577),!1,function(t){n(552)},null,null);t.exports=a.exports},function(t,e,n){var a=n(553);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("327c9058",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(189),o=n.n(a),i=n(53),s=n.n(i),l=n(60),r=n.n(l),c=n(142),u=n.n(c),d=n(219),p=n.n(d),_=n(82),f=n.n(_),m=n(555),v=n.n(m),h=n(568),b=n.n(h),g=n(571),y=n.n(g),w=n(574),x=n.n(w),k=n(118);e.default={name:"TableConfiguration",components:{draggable:o.a,ColumnsEditor:f.a,NinjaCustomFilters:v.a,NinjaLanguageSettings:b.a,NinjaRenderingSettings:y.a,NinjaButtonSettings:x.a},props:["config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,active_menu:"columns",table_color_primary:"#000",table_color_secondary:"#fff",tableId:this.$route.params.table_id,tableLibs:Object(k.a)(),doingAjax:!1,addColumnStatus:!1,new_column:!1,breakPointsOptions:{xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),"":this.$t("Always show in all devices"),hidden:this.$t("Totally hidden on all devices")},dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},attributeModel:{name:null,key:null,breakpoints:""},columns:this.config.columns,tableSettings:this.config.settings,is_fluent_installed:window.ninja_table_admin.isInstalled,fluent_url:window.ninja_table_admin.fluentform_url,has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,addVisible:!1,sortableUpgradeNotice:!1}},watch:{"new_column.name":function(){this.new_column.key=p()(this.new_column.name)}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post(e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.$set(t.config,"columns",t.columns)}).fail(function(t){}).always(function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)})},openDrawer:function(t){jQuery(".drawer_body_"+t).slideToggle()},validateColumn:function(t){return t.name?t.key?-1===s()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.columns.push(this.new_column),this.setNewColumn(),this.addColumnStatus=!1,this.storeSettings())},deleteColumn:function(t){this.config.columns.splice(t,1),this.storeSettings()},showProAd:function(t){this.addVisible=!0,window.ninjaTableBus.$emit("show_pro_popup",1)},size:u.a,get:r.a,initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},headerColorsClick:function(){this.has_pro||this.showProAd()},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",timeFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType()&&(t.source_type="custom"),this.new_column=t},dataSourceType:function(){var t=this.config.table.dataSourceType||"Default";return t=t.indexOf("google")>-1?"Google SpreadSheet":t}},computed:{addable:function(){return-1!=["default","wp-posts"].indexOf(this.config.table.dataSourceType)}},mounted:function(){this.setNewColumn()}}},function(t,e,n){var a=n(0)(n(556),n(567),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a),i=n(557),s=n.n(i),l=n(189),r=n.n(l);e.default={name:"custom_filter",props:["table_id","columns"],components:{NinjaFilterEditor:s.a,draggable:r.a},data:function(){return{loading:!1,saving:!1,hasPro:!!window.ninja_table_admin.hasPro,hasAdvancedFilters:!!window.ninja_table_admin.hasAdvancedFilters,table_filters:[],activeEditor:!1,editorModal:!1,addFilterModal:!1,filter_styling:{filter_display_type:"",filter_columns:"columns_2",filter_column_label:"new_line"}}},computed:{columnKeyPairs:function(){var t={};return o()(this.columns,function(e){t[e.key]=e.name}),t}},methods:{each:o.a,fetchFilters:function(){var t=this;this.loading=!0,this.$get({action:"ninjatable_get_custom_table_filters",table_id:this.table_id}).then(function(e){t.table_filters=e.data.table_filters,t.filter_styling=e.data.filter_styling}).fail(function(t){}).always(function(){t.loading=!1})},updateFilter:function(t){this.validateFilter(t)&&this.saveFilters()},validateFilter:function(t){return t.title?t.options.length?"reset_filter"==t.type||"select"==t.type||t.columns.length?!("select"==t.type&&"dynamic_data"==t.select_value_type&&!t.dynamic_select_column)||(this.$message.error("Please Select Target Column"),!1):(this.$message.error("Please Select columns that you need to add filter"),!1):(this.$message.error("Please Provide Filter Options"),!1):(this.$message.error("Please Provide Filter Title"),!1)},saveFilters:function(){var t=this;this.saving=!0,this.$post({action:"ninjatable_update_custom_table_filters",table_id:this.table_id,ninja_filters:this.table_filters,filter_styling:this.filter_styling}).then(function(e){t.$message.success(e.data.message)}).fail(function(t){}).always(function(){t.saving=!1,t.activeEditor=!1,t.editorModal=!1,t.addFilterModal=!1})},showAddFilter:function(){this.activeEditor={placeholder:"All",options:[{value:"",label:""}],type:"select",columns:[],strict:"no",title:""},this.addFilterModal=!0},addFilter:function(t){var e=this;this.validateFilter(t)&&(this.table_filters.push(t),this.$nextTick(function(){e.saveFilters()}))},edit:function(t){this.activeEditor=t,this.editorModal=!0},deleteFilter:function(t){this.table_filters.splice(t,1),this.saveFilters()}},mounted:function(){this.hasAdvancedFilters&&this.fetchFilters()}}},function(t,e,n){var a=n(0)(n(560),n(566),!1,function(t){n(558)},"data-v-7c7cfd0a",null);t.exports=a.exports},function(t,e,n){var a=n(559);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4ecf339f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".spaced>.el-radio[data-v-7c7cfd0a]{margin-left:0;margin-right:30px!important;line-height:2}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(561),o=n.n(a),i=n(26),s=n.n(i);e.default={name:"FilterEditor",components:{KeyPairOptions:o.a},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return s()(this.columns,function(e){"date"==e.data_type&&t.push(e)}),t}if("number_range"==this.activeEditor.type){var e=[];return s()(this.columns,function(t){"number"==t.data_type&&e.push(t)}),e}return this.columns},has_filter_option:function(){return-1!==["radio","checkbox"].indexOf(this.activeEditor.type)},is_manual_select_options:function(){return"select"==this.activeEditor.type&&"manual"==this.activeEditor.select_value_type},need_placeholder:function(){return-1!==["radio","select","date_picker","text_input"].indexOf(this.activeEditor.type)},need_filter_columns:function(){return!("select"==this.activeEditor.type&&"dynamic_data"==this.activeEditor.select_value_type||"reset_filter"==this.activeEditor.type)}},watch:{"activeEditor.type":function(t){"select"==t&&this.$set(this.activeEditor,"select_value_type","manual"),Array.isArray(this.activeEditor.columns)||this.$set(this.activeEditor,"columns",[])}},mounted:function(){Array.isArray(this.activeEditor.columns)||this.$set(this.activeEditor,"columns",[])}}},function(t,e,n){var a=n(0)(n(564),n(565),!1,function(t){n(562)},null,null);t.exports=a.exports},function(t,e,n){var a=n(563);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59ffc73b",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"table.ninja_filter_table{width:100%;text-align:left;border-collapse:collapse}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(189),o=n.n(a);e.default={name:"ninja_key_pair_options",components:{draggable:o.a},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.label,callback:function(n){t.$set(e,"label",n)},expression:"filter.label"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"filter.value"}})],1),t._v(" "),n("td",[n("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){return t.deleteItem(a)}}},[t._v("-")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:a+1==t.value.length,expression:"(index + 1) == value.length"}],attrs:{type:"success",size:"mini"},on:{click:function(e){return t.add()}}},[t._v("+")])],1)])}),0)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th"),this._v(" "),e("th",[this._v("Label")]),this._v(" "),e("th",[this._v("Filter Value")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Title"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter Title")]),t._v(" "),n("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.title,callback:function(e){t.$set(t.activeEditor,"title",e)},expression:"activeEditor.title"}})],2),t._v(" "),"reset_filter"!=t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Label"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Prefix")]),t._v(" "),n("p",[t._v("This will show on your Table Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.filter_prefix,callback:function(e){t.$set(t.activeEditor,"filter_prefix",e)},expression:"activeEditor.filter_prefix"}}),t._v(" "),n("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter UI Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter UI")]),t._v(" "),n("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[n("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),n("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),n("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),n("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),n("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),n("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),n("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),n("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),"select"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Value Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.activeEditor.select_value_type,callback:function(e){t.$set(t.activeEditor,"select_value_type",e)},expression:"activeEditor.select_value_type"}},[n("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),n("el-radio-button",{attrs:{label:"dynamic_data"}},[t._v("Dynamic Data from Table Column")])],1)],2),t._v(" "),!t.is_manual_select_options&&t.activeEditor.select_value_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Target Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.dynamic_select_column,callback:function(e){t.$set(t.activeEditor,"dynamic_select_column",e)},expression:"activeEditor.dynamic_select_column"}},t._l(t.current_columns,function(e){return n("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])}),1)],2),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.parse_comma_separated,callback:function(e){t.$set(t.activeEditor,"parse_comma_separated",e)},expression:"activeEditor.parse_comma_separated"}},[t._v(" Parse Comma Separated Words")])],1),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.disable_auto_sorting,callback:function(e){t.$set(t.activeEditor,"disable_auto_sorting",e)},expression:"activeEditor.disable_auto_sorting"}},[t._v(" Disable automatic filter value sorting")])],1),t._v(" "),"yes"!=t.activeEditor.disable_auto_sorting?[n("el-form-item",{attrs:{label:"Sort Dynamic Value as: "}},[n("el-radio-group",{model:{value:t.activeEditor.sorting_type,callback:function(e){t.$set(t.activeEditor,"sorting_type",e)},expression:"activeEditor.sorting_type"}},[n("el-radio",{attrs:{label:"asc"}},[t._v("Asending Way")]),t._v(" "),n("el-radio",{attrs:{label:"desc"}},[t._v("Descending Way")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"Sort Algorithom"}},[n("el-radio-group",{model:{value:t.activeEditor.sorting_method,callback:function(e){t.$set(t.activeEditor,"sorting_method",e)},expression:"activeEditor.sorting_method"}},[n("el-radio",{attrs:{label:"text"}},[t._v("As Text Basis")]),t._v(" "),n("el-radio",{attrs:{label:"numeric"}},[t._v("As Numeric Basis")])],1)],1)]:t._e()]:t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.is_multi_select,callback:function(e){t.$set(t.activeEditor,"is_multi_select",e)},expression:"activeEditor.is_multi_select"}},[t._v("Enable Multi-Select")])],1)]:t._e(),t._v(" "),t.has_filter_option||t.is_manual_select_options?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Options"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Options")]),t._v(" "),n("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("key-pair-options",{model:{value:t.activeEditor.options,callback:function(e){t.$set(t.activeEditor,"options",e)},expression:"activeEditor.options"}})],2)]:t._e(),t._v(" "),"date_picker"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Filter Operator"))+"\n ")]),t._v(" "),n("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[n("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("From Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"From Placeholder"},model:{value:t.activeEditor.from_placeholder,callback:function(e){t.$set(t.activeEditor,"from_placeholder",e)},expression:"activeEditor.from_placeholder"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("To Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"To Placeholder"},model:{value:t.activeEditor.to_placeholder,callback:function(e){t.$set(t.activeEditor,"to_placeholder",e)},expression:"activeEditor.to_placeholder"}})],2)]:t._e(),t._v(" "),"text_input"==t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Prefix"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter Prefix")]),t._v(" "),n("p",[t._v("You can use filter prefix to append the value of user inputed value. It will join with the value and perform the search")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"Filter Prefix"},model:{value:t.activeEditor.filter_value_prefix,callback:function(e){t.$set(t.activeEditor,"filter_value_prefix",e)},expression:"activeEditor.filter_value_prefix"}})],2):t._e(),t._v(" "),t.need_filter_columns?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Columns"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Columns")]),t._v(" "),n("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?n("el-checkbox-group",{model:{value:t.activeEditor.columns,callback:function(e){t.$set(t.activeEditor,"columns",e)},expression:"activeEditor.columns"}},t._l(t.current_columns,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])}),1):n("div",[t._v("\n Sorry, No corresponding columns found based on your selection and column's data type\n ")])],2):t._e(),t._v(" "),"reset_filter"==t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Button Text"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.strict,callback:function(e){t.$set(t.activeEditor,"strict",e)},expression:"activeEditor.strict"}},[t._v("Enable Strict Mode (If Enable, Ninja Table will try to match exact value)")])],1)],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?n("div",{staticClass:"section_block"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.showAddFilter()}}},[t._v("Add New Filter")]),t._v(" "),t.table_filters.length?[n("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){return t.saveFilters()}}},t._l(t.table_filters,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(e.title))]),t._v(" "),n("td",[t._v(t._s(e.type))]),t._v(" "),n("td",t._l(e.columns,function(e){return n("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[e],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n "+t._s(t.columnKeyPairs[e])+"\n ")])}),0),t._v(" "),n("td",[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(n){return t.edit(e)}}}),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){return t.deleteFilter(a)}}})],1)])}),0)],1),t._v(" "),n("h3",[t._v("Filter Appearance")]),t._v(" "),n("el-radio-group",{model:{value:t.filter_styling.filter_display_type,callback:function(e){t.$set(t.filter_styling,"filter_display_type",e)},expression:"filter_styling.filter_display_type"}},[n("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),n("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[n("h3",[t._v("Filter Columns")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.filter_styling.filter_columns,callback:function(e){t.$set(t.filter_styling,"filter_columns",e)},expression:"filter_styling.filter_columns"}},[n("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),n("h3",[t._v("Progressive Filter")]),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.filter_styling.progressive,callback:function(e){t.$set(t.filter_styling,"progressive",e)},expression:"filter_styling.progressive"}},[t._v("Enable Progressive filter for dynamic filter options")]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{loading:t.saving,size:"small",type:"success"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?n("div",{staticClass:"section_block"},[t._m(2)]):n("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])]),t._v(" "),n("el-dialog",{attrs:{title:"Edit Custom Filter",visible:t.editorModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editorModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"Add New Custom Filter",visible:t.addFilterModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.addFilterModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",{staticClass:"ninja_block"},[this._v("Custom Search Filters")]),this._v(" "),e("p",[this._v("\n Custom Search Filters is useful if you want to add select box / Radio Button to show a group of rows of\n your table.\n "),e("br"),this._v("\n To learn more about this "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/custom-filters-on-ninja-tables/"}},[this._v("click\n here")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Name")]),this._v(" "),e("th",[this._v("Type")]),this._v(" "),e("th",[this._v("Target Columns")]),this._v(" "),e("th",[this._v("Action")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is introduced in version 2.4.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e,n){var a=n(0)(n(569),n(570),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Language Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block"},[n("div",{staticClass:"language_block"},[n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.no_result_text,expression:"tableSettings.no_result_text"}],staticClass:"form_control",attrs:{id:"no_result_text",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.no_result_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"no_result_text",e.target.value)}}}),t._v(" "),n("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_placeholder,expression:"tableSettings.search_placeholder"}],staticClass:"form_control",attrs:{id:"search_box_placeholder",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_placeholder},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_placeholder",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Box Placeholder")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_in_text,expression:"tableSettings.search_in_text"}],staticClass:"form_control",attrs:{id:"search_box_in",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_in_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_in_text",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Dropdown Box Title")])])])])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(572),n(573),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja-rendering_settings",props:["tableSettings","config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}},methods:{storeSettings:function(){this.$emit("storeSettings")},changeTableType:function(t){if(!this.hasPro&&"legacy_table"==t)return window.ninjaTableBus.$emit("show_pro_popup",1),void(this.tableSettings.render_type="ajax_table");this.tableSettings.render_type=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_rendering_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Render Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"ninja_section_block_body"},[n("div",{staticClass:"section_block_item"},[n("p",[t._v("Please the select the settings for your table render method. Using Legacy table you can use\n shortcodes in your cells and it will render the full table from php side. Table styles will be\n same for both tables. Most of the cases you will need Ajax Table which is recommended\n settings.")]),t._v(" "),n("div",{staticClass:"card_block"},[n("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("ajax_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"ajax_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'ajax_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Ajax Table")]),t._v(" "),n("p",[t._v("\n Use this settings if you have lots of data and don't need cell merge features. It will\n load your data over ajax. Please note that, shortcodes in table will not work here.\n ")])]),t._v(" "),n("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("legacy_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"legacy_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'legacy_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Disable Caching\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, we cache the table "),n("br"),t._v("\n contents. It's not recommended to disable "),n("br"),t._v("\n caching unless you know what you are doing\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.shouldNotCache,callback:function(e){t.$set(t.tableSettings,"shouldNotCache",e)},expression:"tableSettings.shouldNotCache"}})],1)])]):t._e(),t._v(" "),t.config.table.hasExternalCachingInterval?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Caching Interval\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, You can cache the table data for certain minutes "),n("br"),t._v("\n so the data will load from cached data. Please Provide the value in minutes.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.caching_interval,callback:function(e){t.$set(t.tableSettings,"caching_interval",e)},expression:"tableSettings.caching_interval"}}),t._v(" "),n("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.caching_interval/60).toFixed(2))+" hours")])]):t._e()],1)])]):t._e(),t._v(" "),"legacy_table"==t.config.settings.render_type&&"yes"!=t.tableSettings.shouldNotCache?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Enable Full HTML Cache\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then ninja tables will cache the full html of the table and"),n("br"),t._v("\n render that without interact with database. You can set the time how many minutes it will cache each iteration.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.enable_html_cache,callback:function(e){t.$set(t.tableSettings,"enable_html_cache",e)},expression:"tableSettings.enable_html_cache"}})],1),t._v(" "),"yes"==t.tableSettings.enable_html_cache?n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.html_caching_minutes,callback:function(e){t.$set(t.tableSettings,"html_caching_minutes",e)},expression:"tableSettings.html_caching_minutes"}}),t._v(" "),t.tableSettings.html_caching_minutes>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.html_caching_minutes/60).toFixed(2))+" hours")])]):t._e()],1)]):t._e()])]):t._e()])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Recommended settings for advanced features\n ")]),t._v(" "),n("ul",{staticClass:"ninja_render_features"},[n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n ")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}]}},function(t,e,n){var a=n(0)(n(575),n(576),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(42),o=n.n(a);e.default={name:"button_settings",components:{wpEditor:o.a},props:["table_id"],data:function(){return{table_buttons:{csv:{status:"no",label:"CSV",all_rows:"no"},print:{status:"no",label:"Print",all_rows:"no",header_each_page:"no",footer_each_page:"no"}},fetching:!1,saving:!1,button_positions:{after_search_box:"After Search Box",before_table:"Before of the table",after_table:"Bottom of the table"},buttonAlignments:{ninja_buttons_left:"Left",ninja_buttons_center:"Center",ninja_buttons_right:"Right"},hasPro:!!window.ninja_table_admin.hasPro}},methods:{getSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_button_settings",table_id:this.table_id}).then(function(e){t.table_buttons=e.data.button_settings}).fail(function(t){}).always(function(){t.fetching=!1})},saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"update_button_settings",table_id:this.table_id,button_settings:this.table_buttons}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[n("h3",[t._v("CSV Export Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.status,callback:function(e){t.$set(t.table_buttons.csv,"status",e)},expression:"table_buttons.csv.status"}},[t._v("\n Enable CSV Export Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.csv.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.csv.label,callback:function(e){t.$set(t.table_buttons.csv,"label",e)},expression:"table_buttons.csv.label"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.bg_color,callback:function(e){t.$set(t.table_buttons.csv,"bg_color",e)},expression:"table_buttons.csv.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.text_color,callback:function(e){t.$set(t.table_buttons.csv,"text_color",e)},expression:"table_buttons.csv.text_color"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.plainText,callback:function(e){t.$set(t.table_buttons.csv,"plainText",e)},expression:"table_buttons.csv.plainText"}},[t._v("\n Export as Plain Text\n ")])],1)]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Print Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.print.status,callback:function(e){t.$set(t.table_buttons.print,"status",e)},expression:"table_buttons.print.status"}},[t._v("Enable Print\n Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.print.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.print.label,callback:function(e){t.$set(t.table_buttons.print,"label",e)},expression:"table_buttons.print.label"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_full"},[n("div",{staticClass:"form_row_half"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.bg_color,callback:function(e){t.$set(t.table_buttons.print,"bg_color",e)},expression:"table_buttons.print.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_row_half"},[n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.text_color,callback:function(e){t.$set(t.table_buttons.print,"text_color",e)},expression:"table_buttons.print.text_color"}})],1)])]),t._v(" "),n("el-collapse",{attrs:{accordion:""}},[n("el-collapse-item",{attrs:{title:"Print Screen Header",name:"header"}},[[n("label",[t._v("Header in each page")]),t._v(" "),n("el-radio",{attrs:{label:"yes"},model:{value:t.table_buttons.print.header_each_page,callback:function(e){t.$set(t.table_buttons.print,"header_each_page",e)},expression:"table_buttons.print.header_each_page"}},[t._v("Yes")]),t._v(" "),n("el-radio",{attrs:{label:"no"},model:{value:t.table_buttons.print.header_each_page,callback:function(e){t.$set(t.table_buttons.print,"header_each_page",e)},expression:"table_buttons.print.header_each_page"}},[t._v("No")])],t._v(" "),n("wp-editor",{model:{value:t.table_buttons.print.header_html,callback:function(e){t.$set(t.table_buttons.print,"header_html",e)},expression:"table_buttons.print.header_html"}})],2),t._v(" "),n("el-collapse-item",{attrs:{title:"Print Screen Footer",name:"footer"}},[[n("label",[t._v("Footer in each page")]),t._v(" "),n("el-radio",{attrs:{label:"yes"},model:{value:t.table_buttons.print.footer_each_page,callback:function(e){t.$set(t.table_buttons.print,"footer_each_page",e)},expression:"table_buttons.print.footer_each_page"}},[t._v("Yes")]),t._v(" "),n("el-radio",{attrs:{label:"no"},model:{value:t.table_buttons.print.footer_each_page,callback:function(e){t.$set(t.table_buttons.print,"footer_each_page",e)},expression:"table_buttons.print.footer_each_page"}},[t._v("No")])],t._v(" "),n("wp-editor",{model:{value:t.table_buttons.print.footer_html,callback:function(e){t.$set(t.table_buttons.print,"footer_html",e)},expression:"table_buttons.print.footer_html"}})],2)],1)]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Buttons Position")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_position,callback:function(e){t.$set(t.table_buttons,"button_position",e)},expression:"table_buttons.button_position"}},t._l(t.button_positions,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Buttons Alignment")]),t._v(" "),n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_alignment,callback:function(e){t.$set(t.table_buttons,"button_alignment",e)},expression:"table_buttons.button_alignment"}},t._l(t.buttonAlignments,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1),t._v(" "),t.hasPro?n("div",{staticClass:"form_group"},[n("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"success"},on:{click:function(e){return t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):n("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("CSV Export / Print Button Settings for Frontend")]),this._v(" "),e("p",[this._v("You can enable/disable print and csv export settings here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Export CSV and Table Print is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"table-column-settings"},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[n("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),n("span",[t._v("Columns")])]),t._v(" "),n("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[n("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),n("span",[t._v("Rendering Settings")])]),t._v(" "),n("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[n("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),n("span",[t._v("Custom Filters")])]),t._v(" "),n("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[n("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),n("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),n("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[n("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),n("span",[t._v("Language Settings")])])],1)],1),t._v(" "),n("el-main",["columns"==t.active_menu?[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Column Settings")])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"section_widget"},[n("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.columns.length,expression:"columns.length"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.addColumnStatus=!t.addColumnStatus}}},[t._v("\n "+t._s(t.$t("Add Column"))+"\n ")])],1):t._e()]),t._v(" "),n("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?n("div",{staticClass:"column"},[n("div",{staticClass:"add_column_wrapper"},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:t.new_column,settings:t.config.settings,"has-pro":t.has_pro},on:{add:function(e){return t.addNewColumn()},cancel:function(e){t.addColumnStatus=!t.addColumnStatus}}})],1)]):t._e(),t._v(" "),n("draggable",{attrs:{handle:".handle",animation:"150"},on:{end:t.storeSettings},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}},t._l(t.columns,function(e,a){return n("div",{key:e.key,staticClass:"column drawer"},[n("div",{staticClass:"header"},[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),n("span",{on:{click:function(e){return t.openDrawer(a)}}},[t._v(t._s(e.name||e.key))]),t._v(" "),n("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){return t.openDrawer(a)}}})]),t._v(" "),n("div",{staticClass:"drawer_body",class:"drawer_body_"+a},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:e,"has-pro":t.has_pro,settings:t.config.settings,updating:!0},on:{delete:function(e){return t.deleteColumn(a)},store:function(e){return t.storeSettings()}}})],1)])}),0)],1)]),t._v(" "),n("div",{staticClass:"proms"},[n("div",{staticClass:"help_section"},[n("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n video "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])]),t._v(" "),t.is_fluent_installed?t._e():n("div",{staticClass:"help_section"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form\n Builder plugin with some amazing Premium features "),n("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[n("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[n("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[n("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[n("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(579),n(588),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(580),o=n.n(a),i=n(583),s=n.n(i);e.default={name:"ExportImport",components:{export:o.a,import:s.a},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}}},function(t,e,n){var a=n(0)(n(581),n(582),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ExportTable",props:["config"],data:function(){return{tableId:this.$route.params.table_id,exportOptions:{csv:"CSV",json:"JSON"},selected:"csv"}},methods:{downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={action:"ninja_tables_ajax_actions",target_action:"export-data",table_id:this.tableId,format:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};return ajaxurl+"?"+jQuery.param(e)},doExport:function(){var t=this.downloadLink(this.selected);location.href=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?n("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),n("div",{staticClass:"ninja_export_block"},[t._v("\n "+t._s(t.$t("Format:"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selected=e.target.multiple?n:n[0]}}},t._l(t.exportOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])}),0),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:function(e){return e.preventDefault(),t.doExport()}}},[t._v("\n "+t._s(t.$t("Export"))+"\n ")])],1)]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not export the data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_suggest"},[e("p",[this._v("You can download the table data as CSV or JSON format, If you download as json then you can import the table to any Ninja Table Installation")])])}]}},function(t,e,n){var a=n(0)(n(586),n(587),!1,function(t){n(584)},"data-v-3dd4e718",null);t.exports=a.exports},function(t,e,n){var a=n(585);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5c22a252",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"#fileUpload[data-v-3dd4e718]{max-width:200px}.justify-items[data-v-3dd4e718]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ninja_content .ninja_suggest[data-v-3dd4e718]{background:#f1f1f1}.ninja_content[data-v-3dd4e718]{margin:1em 0}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(26),o=n.n(a);e.default={name:"Import",props:["config","tableId"],data:function(){return{btnLoading:!1,replace:!1,tutorial:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",do_unicode:"no"}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},sampleData:function(){var t={};return o()(this.columns,function(e){t[e.key]="column value"}),Array(3).fill(t)}},methods:{clear:function(){jQuery("#fileUpload").val("")},upload:function(){var t=this;t.btnLoading=!0;var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","upload-data"),n.append("table_id",this.tableId),n.append("replace",this.replace),n.append("do_unicode",this.do_unicode),n.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$emit("csvUploaded"),t.clear(),t.$message.success(e.message)},error:function(e){t.$message.error(e.responseJSON.message)}}).always(function(){t.btnLoading=!1})}else t.btnLoading=!1},download:function(){var t=[],e=this.config.columns.map(function(t){return t.key});t.push(e),[1,2].forEach(function(n,a){var o=[];e.forEach(function(t,e){o.push("content_"+a+"_"+e)}),t.push(o)});var n="data:text/csv;charset=utf-8,";t.forEach(function(e,a){var o=e.join(",");n+=a<t.length?o+"\n":o});var a=encodeURI(n),o=document.createElement("a");o.setAttribute("href",a),o.setAttribute("download","sample.csv"),document.body.appendChild(o),o.click()}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?n("div",{staticClass:"ninja_content"},[t.columns.length?n("div",[n("form",{attrs:{action:"",id:"fileUploadForm"}},[n("div",{staticClass:"form-group"},[n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),n("el-checkbox",{model:{value:t.replace,callback:function(e){t.replace=e},expression:"replace"}},[t._v(t._s(t.$t("Replace Existing Data")))])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",size:"small",loading:t.btnLoading},on:{click:function(e){return e.preventDefault(),t.upload(e)}}},[t._v("\n "+t._s(t.$t("Import from CSV"))+"\n ")])],1)]),t._v(" "),n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("\n Please note that, your CSV data structure need to follow the sample CSV.\n You may want to check the "),n("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("\n Also make sure the content is in UTF-8 format, for the best result.\n ")])]),t._v(" "),n("div",{staticClass:"justify-items"},[n("h3",[t._v("\n "+t._s(t.$t("CSV Header Structure"))+"\n ")]),t._v(" "),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:t.download}},[t._v("\n "+t._s(t.$t("Download Sample CSV"))+"\n ")])],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})}),1),t._v(" "),n("h3",[t._v("or as bellow")]),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})}),1)],1):n("div",{staticClass:"error"},[n("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not import any data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[n("i",{staticClass:"el-icon-upload"}),t._v(" "),n("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),n("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[n("i",{staticClass:"el-icon-download"}),t._v(" "),n("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),n("el-main",[n(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(590),n(597),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(591),o=n.n(a),i=n(594),s=n.n(i);e.default={name:"help",components:{fluentpromoad:o.a,ninja_premium:s.a},data:function(){return{docs:[{title:"Ninja Tables Introduction",url:"https://wpmanageninja.com/r/docs/ninja-tables/getting-started/?utm_source=ninja-tables"},{title:"Ninja Tables Demo",url:"https://wpmanageninja.com/docs/ninja-tables/configure-tables/?utm_source=ninja-tables"},{title:"Setting up a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/setting-up-a-table/?utm_source=ninja-tables"},{title:"Configure Responsive Breakdowns for Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"},{title:"Import Table Data from CSV",url:"https://wpmanageninja.com/r/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Export Data from a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/export-data/?utm_source=ninja-tables"},{title:"Import Table from CSV",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from JSON file",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from Table Press Plugin",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-from-table-press-plugin/?utm_source=ninja-tables"}],img_url:window.ninja_table_admin.img_url}},methods:{imageUrl:function(t){return this.img_url+t}},mounted:function(){}}},function(t,e,n){var a=n(0)(n(592),n(593),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"fluentpromoad_2",props:["dismisable"],data:function(){return{img_url_path:window.ninja_table_admin.img_url,fluent_url:window.ninja_table_admin.fluentform_url,fluent_wp_url:window.ninja_table_admin.fluent_wp_url,is_installed:window.ninja_table_admin.isInstalled,already_dismissed:window.ninja_table_admin.dismissed}},computed:{will_it_show:function(){return!this.is_installed&&(!this.dismisable||!this.already_dismissed)}},methods:{image_url:function(t){return this.img_url_path+t},dismiss:function(){var t=this;this.$post({action:"ninja_tables_ajax_actions",target_action:"dismiss_fluent_suggest"}).then(function(t){}).fail(function(t){}).always(function(){t.is_installed=!0})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.will_it_show?n("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?n("div",{staticClass:"ninja_dismiss",on:{click:function(e){return t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),n("div",{staticClass:"ninja_form_banner"},[n("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),n("div",{staticClass:"ninja_fluent_copy"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form Builder plugin with some amazing Premium features")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),n("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(595),n(596),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_premium",data:function(){return{img_url_path:window.ninja_table_admin.img_url}},computed:{will_it_show:function(){return!window.ninja_table_admin.hasPro||""==window.ninja_table_admin.hasPro}},methods:{image_url:function(t){return this.img_url_path+t}}}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return this.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:this.image_url("banner_premium.png")}})]),this._v(" "),this._m(0)]):this._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_fluent_copy"},[e("p",[this._v("Have you checked out NinjaTables Pro Add-On yet? We have added some exciting features in Ninja Tables with Pro Add-On")]),this._v(" "),e("a",{staticClass:"button button-primary",attrs:{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"}},[this._v("Download Now")]),this._v(" "),e("a",{staticClass:"button",attrs:{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"}},[this._v("View Details")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v(t._s(t.$t("Plugin Documentation and Help")))]),t._v(" "),n("hr"),t._v(" "),n("ninja_premium"),t._v(" "),n("div",{staticClass:"ninja_documentaion_wrapper"},[n("div",{staticClass:"ninja_doc_top_blocks"},[n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),n("h3",[t._v("Try WP FluentFrom")]),t._v(" "),t._m(0),t._v(" "),t._m(1)])]),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("azonpress_logo.jpg")}}),t._v(" "),n("h3",[t._v("Amazon Affiliate Plugin")]),t._v(" "),n("p",[t._v("Amazon Affiliate WordPress Plugin for serious Amazon Affiliates")]),t._v(" "),t._m(3)])]),t._v(" "),n("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container"},[n("h3",[t._v("User Guide")]),t._v(" "),n("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),n("ul",{staticClass:"doc_items"},t._l(t.docs,function(e,a){return n("li",{key:a},[n("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])}),0)])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),n("h3",[t._v("Love this Plugin?")]),t._v(" "),n("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")]),t._v(" "),t._m(4)])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),n("h3",[t._v("Need And Expert Support?")]),t._v(" "),n("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")]),t._v(" "),t._m(5)])])])]),t._v(" "),n("fluentpromoad")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Need to build a contact form by drag and drop form builder?")]),this._v(" Try the modern contact form plugin with all the necessary input fields, notifications and connect your form with powerful integrations")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[this._v("Download from wp.org (Free)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png?rev=2108991"}}),this._v(" "),e("h3",[this._v("WPPayForm - Accept Payment Easily with WordPress Forms")]),this._v(" "),e("p",[this._v("Do you want to accept payments along with user inputs in WordPress? Then WPPayForm is the perfect plugin for you.")]),this._v(" "),e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[this._v("Download WPPayForm (Free)")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/azonpress/"}},[this._v("Download AzonPress")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/"}},[this._v("Write Review")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[this._v("Contact Support")])])}]}},function(t,e,n){var a=n(0)(n(601),n(612),!1,function(t){n(599)},null,null);t.exports=a.exports},function(t,e,n){var a=n(600);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("66bf9da4",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".js_instruction{padding:10px 20px;background:#fff;margin-bottom:20px;font-size:14px;line-height:22px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:n(602),ace_js_editor:n(607)},data:function(){return{current_tab:"additional_css",custom_css:"",custom_js:"",hasPro:!!window.ninja_table_admin.hasPro,fetching:!1}},methods:{saveScripts:function(){var t=this;this.hasPro||(this.custom_js=""),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_custom_css_js",table_id:this.config.table.ID,custom_css:this.custom_css,custom_js:this.custom_js}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$set(t.config.table,"custom_css",t.custom_css)}).then(function(t){console.log(t)}).always(function(){})},getScripts:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_custom_css_js",table_id:this.config.table.ID}).then(function(e){t.custom_css=e.data.custom_css,t.custom_js=e.data.custom_js}).fail(function(t){}).always(function(){t.fetching=!1})}},mounted:function(){this.getScripts()}}},function(t,e,n){var a=n(0)(n(605),n(606),!1,function(t){n(603)},null,null);t.exports=a.exports},function(t,e,n){var a=n(604);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("011ca082",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(610),n(611),!1,function(t){n(608)},null,null);t.exports=a.exports},function(t,e,n){var a=n(609);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("76fce250",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor_js",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_js");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fetching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[n("h3",[t._v("Loading... Please wait")])]):n("div",{staticClass:"section_block"},[n("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[n("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),n("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),n("hr"),t._v(" "),"additional_css"==t.current_tab?[n("p",[t._v("\n You may add "),n("code",[t._v("#footable_parent_"+t._s(t.config.table.ID)+" ")]),t._v(" as your css selector prefix to target this specific table.\n Alternatively, you can use "),n("code",[t._v("#footable_parent_NT_ID")]),t._v(" where "),n("b",[t._v("NT_ID")]),t._v(" will be replaced with your table ID dynamically.\n ")]),t._v(" "),n("ace_code_editor",{attrs:{editor_id:"ninja_custom_css",mode:"css"},model:{value:t.custom_css,callback:function(e){t.custom_css=e},expression:"custom_css"}}),t._v(" "),t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[n("p",[t._v("Your additional JS code will run after ninja table initialized. Please provide valid javascript code. Invalid JS code may break the table UI.")]),t._v(" "),t._m(1),t._v(" "),n("ace_js_editor",{attrs:{editor_id:"ninja_custom_js",mode:"javascript"},model:{value:t.custom_js,callback:function(e){t.custom_js=e},expression:"custom_js"}}),t._v(" "),t._m(2),t._v(" "),t.hasPro?[n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[n("p",[t._v("Custom Javascript feature is a pro feature along with many awesome features. Please upgrade to pro.")])]]:t._e()],2),t._v(" "),n("div",{staticClass:"section_block"})])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<style></style>")]),this._v(" tag")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"js_instruction"},[this._v("\n The Following Javascript variables are available that you can use: "),e("br"),this._v(" "),e("b",[this._v("$table")]),this._v(" : The Javascript DOM object of the table"),e("br"),this._v(" "),e("b",[this._v("tableConfig")]),this._v(" : The configuration object of the table.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<script><\/script>")]),this._v(" tag")])}]}},function(t,e,n){var a=n(0)(n(616),n(617),!1,function(t){n(614)},null,null);t.exports=a.exports},function(t,e,n){var a=n(615);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("7360df50",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{width:480px;margin:0 auto}.footable_parent.ninja_device_tablet{max-width:768px;padding:0 20px;margin:0 auto}.font-setting .font{margin-top:10px}.font-setting .font label{width:30%}.ninja_footable tbody tr td{font-size:var(--ninja-table-font-size);font-family:var(--ninja-table-font-family)}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(118),o=n(60),i=n.n(o),s=n(142),l=n.n(s),r=n(106),c=n.n(r),u=n(217),d=n.n(u),p=n(223),_=n.n(p),f=n(181),m=n.n(f),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"table_preview",props:["config"],components:{SortableUpgradeNotice:_.a,NinjaColorPicker:m.a},data:function(){return{fontFamily:["inherit","cursive","fantasy","monospace","sans-serif","serif","system-ui","ui-monospace","ui-rounded","ui-sans-serif","ui-serif"],rows:[],activeDesign:"features",tableId:this.$route.params.table_id,tableSettings:this.config.settings,table_body_html:"",data_loaded:!1,script_loaded:!1,footableLoading:!1,tableLibs:Object(a.a)(),has_pro:!!window.ninja_table_admin.hasPro,savingSettings:!1,tableInnerHtml:"",showingDevice:"desktop",hasSortable:!!window.ninja_table_admin.hasSortable,sortableUpgradeNotice:!1,columnCss:""}},computed:{fontSetting:function(){return{"--ninja-table-font-family":this.tableSettings.table_font_family,"--ninja-table-font-size":this.tableSettings.table_font_size+"px"}},wrapperClasses:function(){var t=[];return t.push(this.tableSettings.css_lib),t.push("ninja_device_"+this.showingDevice),"custom_color"!=this.tableSettings.table_color_type&&"ninja_no_color_table"==this.tableSettings.table_color||t.push("colored_table"),t},tableClasses:function(){var t=this,e=[];e.push("foo_table_"+this.tableId),"custom_color"==this.tableSettings.table_color_type?(e.push("inverted"),e.push("ninja_custom_color")):(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color&&e.push("inverted"),e.push(this.tableSettings.table_color)),this.tableSettings.pagination_position?e.push("footable-paging-"+this.tableSettings.pagination_position):e.push("footable-paging-right"),this.tableSettings.hide_header_row&&e.push("ninjatable_hide_header_row"),this.tableSettings.hide_all_borders&&e.push("hide_all_borders"),e.push("ninja_table_pro"),this.tableSettings.search_position&&e.push("ninja_search_"+this.tableSettings.search_position);var n=[];return this.tableSettings.css_classes&&(n=this.availableCssClasses.filter(function(e){return-1!=t.tableSettings.css_classes.indexOf(e)})),this.tableSettings.hide_responsive_labels&&e.push("nt_hide_breakpoint_labels"),this.tableSettings.nt_search_full_width&&e.push("nt_search_full_width"),"semantic_ui"==this.tableSettings.css_lib&&e.push("ui"),[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n),e)},formattedColumns:function(){var t=this.config.columns,e=[];return jQuery.each(t,function(t,n){e.push({name:n.key,title:n.name,breakpoints:n.breakpoints,type:n.data_type,sortable:!0,classes:["ninja_column_"+t],visible:"hidden"!=n.breakpoints})}),e},app_ready:function(){return this.data_loaded&&this.script_loaded},currentTableLibs:function(){return this.tableLibs[this.tableSettings.library].css_libs},colors:function(){return this.tableLibs[this.tableSettings.library].colors},availableStyles:function(){var t=this.currentTableLibs[this.tableSettings.css_lib];return!!t&&t.styles},availableCssClasses:function(){var t=[];return c()(this.availableStyles,function(e){t.push(e.key)}),t},showProNotice:function(){return!this.has_pro&&!!("custom_color"==this.tableSettings.table_color_type&&"color_customization"==this.activeDesign||"color_customization"==this.activeDesign&&this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color)},design_tips:function(){var t=[];return"custom_color"==this.tableSettings.table_color_type&&(this.tableSettings.table_search_color_primary&&this.tableSettings.table_header_color_primary&&this.tableSettings.table_color_primary&&this.tableSettings.table_color_secondary||t.push('You should set colors at <b>"Table Colors"</b> Tab')),t}},watch:{data_loaded:function(){this.app_ready&&this.reInitFootables()},script_loaded:function(){this.app_ready&&this.reInitFootables()},tableSettings:{handler:function(t){var e=this;this.$nextTick(function(){e.generateColorCss()})},deep:!0},tableClasses:{handler:function(t){var e=this;this.$nextTick(function(){e.reInitFootables()})},deep:!0},"tableSettings.enable_search":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.column_sorting":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.show_all":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.togglePosition":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.expand_type":function(t,e){var n=this;if("default"!=t&&!this.has_pro)return this.tableSettings.expand_type="default",void window.ninjaTableBus.$emit("show_pro_popup",1);this.$nextTick(function(){n.reInitFootables()})},"tableSettings.sorting_type":function(t,e){"manual_sort"===t&&(this.has_pro?this.hasSortable?this.initManualSorting():this.hasSortable||(this.tableSettings.sorting_type=e,this.sortableUpgradeNotice=!0):(this.tableSettings.sorting_type=e,window.ninjaTableBus.$emit("show_pro_popup",1)))},activeDesign:function(){this.checkColorPro()}},methods:{fetchTableBody:function(){var t=this;this.$get({action:"ninja_tables_ajax_actions",target_action:"get_table_preview_html",table_id:this.tableId}).then(function(e){t.tableInnerHtml=e,t.data_loaded=!0}).fail(function(e){jQuery("#footable_"+t.tableId).append("<h1>Error Loading</h1>")})},initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},storeSettings:function(){var t=this;this.checkColorPro(),this.savingSettings=!0;this.filterTableSettings(this.tableSettings);var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post(e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(t){}).always(function(){t.savingSettings=!1})},filterTableSettings:function(t){var e=[];return c()(this.availableStyles,function(t){e.push(t.key)}),t.css_classes=d()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":v(FooTable))){var t=FooTable.get("#footable_"+this.tableId);t&&t.destroy()}jQuery("#footable_"+this.tableId).find("thead,tbody,tfoot").remove(),this.footableLoading=!1,jQuery("#footable_"+this.tableId).append(this.tableInnerHtml),this.initFootables()}},initFootables:function(){if(!this.footableLoading&&this.script_loaded){this.footableLoading=!0;var t=window.ninjaTableApp,e=jQuery("#footable_"+this.tableId);this.tableSettings.hide_on_empty&&e.on("expanded.ft.row",function(t,n,a){e.find("table.footable-details td:empty").parent().addClass("nt_has_hide")});var n=this.getTableConfig();t.initTable(e,n),this.footableLoading=!1}},dysel:function(t){for(var e=t.links,n=t.callback,a=t.nocache,o=t.debug,i=function(t,e){var n=(t=t.toString()).split(".").pop(),a=null;if("js"==n?((a=document.createElement("script")).setAttribute("type","text/javascript"),a.setAttribute("src",t)):("css"==n||t.indexOf("googleapis.com/css?")>-1)&&((a=document.createElement("link")).setAttribute("rel","stylesheet"),a.setAttribute("type","text/css"),a.setAttribute("href",t)),void 0!==a){if(e){var i=e;o&&(i=function(){e()}),a.onreadystatechange=i,a.onload=i}document.getElementsByTagName("head")[0].appendChild(a)}},s=n,l=e.length-1;l>=0;l--){var r=s,c=e[l];a&&(c+="?"+ +(new Date).getTime()),s=function(t){i(this,t)}.bind(c,r)}s()},loadRequiredScripts:function(){var t=this;this.dysel({links:window.ninja_table_admin.preview_required_scripts,callback:function(){t.script_loaded=!0}})},size:l.a,get:i.a,generateColorCss:function(){if("pre_defined_color"!=this.tableSettings.table_color_type){var t="#footable_"+this.tableId,e="\n "+t+" {\n background-color: "+this.tableSettings.table_color_primary+" !important;\n color: "+this.tableSettings.table_color_secondary+" !important;\n }\n "+t+" thead tr.footable-filtering th {\n background-color: "+this.tableSettings.table_search_color_primary+" !important;\n color: "+this.tableSettings.table_search_color_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) thead tr.footable-filtering th {\n "+(this.tableSettings.table_search_color_border?"\n border : 1px solid "+this.tableSettings.table_search_color_border+" !important;\n ":"\n border : 1px solid transparent !important;\n ")+"\n }\n "+t+" .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n background-color: "+this.tableSettings.table_search_color_secondary+" !important;\n color: "+this.tableSettings.table_search_color_primary+" !important;\n }\n "+t+" tr.footable-header, "+t+" tr.footable-header th {\n background-color: "+this.tableSettings.table_header_color_primary+" !important;\n color: "+this.tableSettings.table_color_header_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) tr.footable-header th {\n border-color: "+this.tableSettings.table_color_header_border+" !important;\n }\n "+t+":not(.hide_all_borders) tbody tr td {\n border-color: "+this.tableSettings.table_color_border+" !important;\n }\n "+t+" tbody tr:hover {\n background-color: "+this.tableSettings.table_color_primary_hover+" !important;\n color: "+this.tableSettings.table_color_secondary_hover+" !important;\n }\n "+t+" tbody tr:hover td {\n border-color: "+this.tableSettings.table_color_border_hover+" !important;\n }\n\n "+("yes"==this.tableSettings.alternate_color_status?"\n "+t+" tbody tr:nth-child(even) {\n background-color: "+this.tableSettings.table_alt_color_primary+";\n color: "+this.tableSettings.table_alt_color_secondary+";\n }\n "+t+" tbody tr:nth-child(odd) {\n background-color: "+this.tableSettings.table_alt_2_color_primary+";\n color: "+this.tableSettings.table_alt_2_color_secondary+";\n }\n "+t+" tbody tr:nth-child(even):hover {\n background-color: "+this.tableSettings.table_alt_color_hover+";\n }\n "+t+" tbody tr:nth-child(odd):hover {\n background-color: "+this.tableSettings.table_alt_2_color_hover+";\n }\n ":"\n ")+"\n\n "+t+" tfoot .footable-paging {\n background-color: "+this.tableSettings.table_footer_bg+" !important;\n }\n "+t+" tfoot .footable-paging .footable-page.active a {\n background-color: "+this.tableSettings.table_footer_active+" !important;\n }\n "+t+":not(.hide_all_borders) tfoot .footable-paging td {\n border-color: "+this.tableSettings.table_footer_border+" !important;\n }\n ";jQuery("#table_designer_css").html(e)}else jQuery("#table_designer_css").html("")},changeColor:function(t,e){this.$set(this.tableSettings,e,t)},checkColorPro:function(){this.has_pro||(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color||"pre_defined_color"!=this.tableSettings.table_color_type)&&(this.tableSettings.table_color_type="pre_defined_color",this.tableSettings.table_color="ninja_no_color_table")},generateDefaultCss:function(){var t=this,e=this.config.table.custom_css;this.config.columns.forEach(function(n,a){(n.background_color||n.text_color||n.contentAlign)&&(e+="#footable_parent_"+t.tableId+" thead tr th.ninja_column_"+a+", #footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { background-color: "+n.background_color+"; color: "+n.text_color+"; }",e+="#footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { text-align: "+n.contentAlign+"; }")}),jQuery("#ninja_table_designer_common_css").html(e)},getTableConfig:function(){var t={};this.config.columns.forEach(function(e,n){t["ninja_column_"+n]={"text-align":e.textAlign,width:e.width+"px"}});var e={default_sorting:"old_first",defualt_filter:!1,defualt_filter_column:null,expandAll:"expandAll"===this.tableSettings.expand_type,expandFirst:"expandFirst"===this.tableSettings.expand_type,filtering:!!this.tableSettings.enable_search,i18n:{},use_parent_width:"desktop"!==this.showingDevice,sorting:!!this.tableSettings.column_sorting,togglePosition:this.tableSettings.togglePosition},n={toggleColumn:this.tableSettings.togglePosition,cascade:!0,useParentWidth:"desktop"!==this.showingDevice,columns:this.config.columns,expandFirst:"expandFirst"===this.tableSettings.expand_type,expandAll:"expandAll"===this.tableSettings.expand_type,empty:"",filtering:{enabled:!!this.tableSettings.enable_search},paging:{enabled:"0"==this.tableSettings.show_all||0==this.tableSettings.show_all,size:10,container:"#footable_parent_"+this.tableId+" .paging-ui-container"},sorting:{enabled:!!this.tableSettings.column_sorting}};return{columns:this.formattedColumns.forEach(function(t){return Object.assign({},t)}),custom_css:t,settings:e,render_type:"legacy_table",instance_name:"ninja_table_instance_0",table_id:this.table_id,title:"",init_config:n}}},mounted:function(){this.fetchTableBody(),this.loadRequiredScripts(),this.tableSettings.table_color_type||("ninja_table_custom_color"==this.tableSettings.table_color?this.$set(this.tableSettings,"table_color_type","custom_color"):this.$set(this.tableSettings,"table_color_type","pre_defined_color")),jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px"),jQuery(window).on("resize",function(){jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px")}),this.generateDefaultCss(),this.generateColorCss()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_design"},[n("div",{staticClass:"ninja_title_section"},[n("div",{staticClass:"ninja_title"},[n("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),n("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[n("el-radio-button",{attrs:{label:"desktop"}},[n("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"tablet"}},[n("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"mobile"}},[n("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n ")])],1)],1),t._v(" "),n("el-button",{attrs:{loading:t.savingSettings,disabled:t.savingSettings,size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Settings\n ")])],1),t._v(" "),n("div",{staticClass:"ninja_design_wrapper"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.app_ready,expression:"!app_ready"}],staticClass:"design_preview",staticStyle:{background:"white",padding:"10px 20px"}},[t.showProNotice?n("div",{staticClass:"ninja_upgrade_bar"},[t._v("\n "+t._s(t.$t("Color customization is a PRO feature. Please upgrade to pro apply this feature."))+"\n "),n("a",{attrs:{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_studio"}},[t._v(t._s(t.$t("Upgrade To Pro")))])]):t._e(),t._v(" "),n("div",{staticClass:"footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent",class:t.wrapperClasses,attrs:{id:"footable_parent_"+t.tableId}},[t.tableSettings.show_title?n("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?n("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),n("table",{directives:[{name:"show",rawName:"v-show",value:t.app_ready,expression:"app_ready"}],staticClass:"table foo-table ninja_footable",class:t.tableClasses,style:t.fontSetting,attrs:{id:"footable_"+t.tableId}},[n("colgroup",t._l(t.formattedColumns,function(t,e){return n("col",{key:e,class:["ninja_column_"+e,t.breakpoints]})}),0),t._v(" "),n("thead")])]),t._v(" "),n("div",{staticClass:"ninja_demo_disclaimer"},[n("hr"),t._v(" "),"yes"==t.tableSettings.stackable?n("p",[n("b",[t._v("For Stackable Tables, Live preview is disabled here. Please check on preview url")])]):t._e(),t._v(" "),t._m(0),t._v(" "),n("p",[t._v("Some elements like custom filters and row-inline styling is not available in this design mode. Please check on live preview or in your embeded page.")])])]),t._v(" "),n("div",{staticClass:"design_controls"},[n("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[n("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[n("div",{staticClass:"form_group"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Select Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.css_lib,callback:function(e){t.$set(t.tableSettings,"css_lib",e)},expression:"tableSettings.css_lib"}},t._l(t.currentTableLibs,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}),1)],1),t._v(" "),t.availableStyles?n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.css_classes,expression:"tableSettings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,e.key)>-1:t.tableSettings.css_classes},on:{change:function(n){var a=t.tableSettings.css_classes,o=n.target,i=!!o.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);o.checked?l<0&&t.$set(t.tableSettings,"css_classes",a.concat([s])):l>-1&&t.$set(t.tableSettings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.tableSettings,"css_classes",i)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2):t._e(),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_title,expression:"tableSettings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.tableSettings.show_title)?t._i(t.tableSettings.show_title,"1")>-1:t.tableSettings.show_title},on:{change:function(e){var n=t.tableSettings.show_title,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"show_title",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"show_title",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"show_title",o)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_description,expression:"tableSettings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.tableSettings.show_description)?t._i(t.tableSettings.show_description,"1")>-1:t.tableSettings.show_description},on:{change:function(e){var n=t.tableSettings.show_description,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"show_description",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"show_description",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"show_description",o)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.enable_search,expression:"tableSettings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.tableSettings.enable_search)?t._i(t.tableSettings.enable_search,"1")>-1:t.tableSettings.enable_search},on:{change:function(e){var n=t.tableSettings.enable_search,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"enable_search",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"enable_search",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"enable_search",o)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n ")]),t._v(" "),t.tableLibs[t.tableSettings.library].supports.sorting&&!t.tableSettings.enable_ajax?n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.column_sorting,expression:"tableSettings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.tableSettings.column_sorting)?t._i(t.tableSettings.column_sorting,"1")>-1:t.tableSettings.column_sorting},on:{change:function(e){var n=t.tableSettings.column_sorting,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,"1");a.checked?i<0&&t.$set(t.tableSettings,"column_sorting",n.concat(["1"])):i>-1&&t.$set(t.tableSettings,"column_sorting",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"column_sorting",o)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n ")]):t._e(),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_header_row,expression:"tableSettings.hide_header_row"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_header_row)?t._i(t.tableSettings.hide_header_row,null)>-1:t.tableSettings.hide_header_row},on:{change:function(e){var n=t.tableSettings.hide_header_row,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_header_row",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_header_row",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_header_row",o)}}}),t._v("\n Hide Header Row\n ")]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_all_borders,expression:"tableSettings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_all_borders)?t._i(t.tableSettings.hide_all_borders,null)>-1:t.tableSettings.hide_all_borders},on:{change:function(e){var n=t.tableSettings.hide_all_borders,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_all_borders",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_all_borders",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_all_borders",o)}}}),t._v("\n Hide All Borders\n ")]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_on_empty,expression:"tableSettings.hide_on_empty"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_on_empty)?t._i(t.tableSettings.hide_on_empty,null)>-1:t.tableSettings.hide_on_empty},on:{change:function(e){var n=t.tableSettings.hide_on_empty,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_on_empty",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_on_empty",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_on_empty",o)}}}),t._v("\n Hide empty items on responsive breakdown "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then the empty ietems will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_responsive_labels,expression:"tableSettings.hide_responsive_labels"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_responsive_labels)?t._i(t.tableSettings.hide_responsive_labels,null)>-1:t.tableSettings.hide_responsive_labels},on:{change:function(e){var n=t.tableSettings.hide_responsive_labels,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"hide_responsive_labels",n.concat([null])):i>-1&&t.$set(t.tableSettings,"hide_responsive_labels",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"hide_responsive_labels",o)}}}),t._v("\n Hide Labels on responsive breakdown "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("\n Stackable Table Configuration\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"With stackable table, You can show your rows as list item. You can target by device width"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.stackable,callback:function(e){t.$set(t.tableSettings,"stackable",e)},expression:"tableSettings.stackable"}},[t._v("\n Enable Stackable Table\n ")]),t._v(" "),"yes"==t.tableSettings.stackable?[n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[n("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),n("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[n("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),n("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n ")])],1)]:t._e()],2)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[n("div",{staticClass:"form_group"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Select Color Scheme")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.table_color_type,callback:function(e){t.$set(t.tableSettings,"table_color_type",e)},expression:"tableSettings.table_color_type"}},[n("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),n("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?n("div",{staticClass:"form_group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.table_color,expression:"tableSettings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.colors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v(t._s(e)+"\n ")])}),0)]):n("div",{staticClass:"form_group ninja_color_customization"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_search_color_primary,callback:function(e){t.$set(t.tableSettings,"table_search_color_primary",e)},expression:"tableSettings.table_search_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_search_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_search_color_secondary",e)},expression:"tableSettings.table_search_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_search_color_border,callback:function(e){t.$set(t.tableSettings,"table_search_color_border",e)},expression:"tableSettings.table_search_color_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_header_color_primary,callback:function(e){t.$set(t.tableSettings,"table_header_color_primary",e)},expression:"tableSettings.table_header_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_header_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_header_secondary",e)},expression:"tableSettings.table_color_header_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_header_border,callback:function(e){t.$set(t.tableSettings,"table_color_header_border",e)},expression:"tableSettings.table_color_header_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),n("el-tabs",[n("el-tab-pane",{attrs:{label:"Default"}},[n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary,callback:function(e){t.$set(t.tableSettings,"table_color_primary",e)},expression:"tableSettings.table_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_secondary",e)},expression:"tableSettings.table_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border,callback:function(e){t.$set(t.tableSettings,"table_color_border",e)},expression:"tableSettings.table_color_border"}})],1)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Hover"}},[n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary_hover,callback:function(e){t.$set(t.tableSettings,"table_color_primary_hover",e)},expression:"tableSettings.table_color_primary_hover"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary_hover,callback:function(e){t.$set(t.tableSettings,"table_color_secondary_hover",e)},expression:"tableSettings.table_color_secondary_hover"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border_hover,callback:function(e){t.$set(t.tableSettings,"table_color_border_hover",e)},expression:"tableSettings.table_color_border_hover"}})],1)])])],1),t._v(" "),n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Use Alternate Color Schema for Table Rows","active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.alternate_color_status,callback:function(e){t.$set(t.tableSettings,"alternate_color_status",e)},expression:"tableSettings.alternate_color_status"}})],1),t._v(" "),"yes"==t.tableSettings.alternate_color_status?n("div",{staticClass:"ninja_alternate_colors"},[n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_2_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_primary",e)},expression:"tableSettings.table_alt_2_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_2_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_secondary",e)},expression:"tableSettings.table_alt_2_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_2_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_hover",e)},expression:"tableSettings.table_alt_2_color_hover"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_primary",e)},expression:"tableSettings.table_alt_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_secondary",e)},expression:"tableSettings.table_alt_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_color_hover",e)},expression:"tableSettings.table_alt_color_hover"}})],1)])]):t._e(),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_footer_bg,callback:function(e){t.$set(t.tableSettings,"table_footer_bg",e)},expression:"tableSettings.table_footer_bg"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Active"},model:{value:t.tableSettings.table_footer_active,callback:function(e){t.$set(t.tableSettings,"table_footer_active",e)},expression:"tableSettings.table_footer_active"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_footer_border,callback:function(e){t.$set(t.tableSettings,"table_footer_border",e)},expression:"tableSettings.table_footer_border"}})],1)])],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.tableSettings.show_all,callback:function(e){t.$set(t.tableSettings,"show_all",e)},expression:"tableSettings.show_all"}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tableSettings.show_all,expression:"tableSettings.show_all == 0"}],staticClass:"form_group"},[n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.perPage,expression:"tableSettings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all},domProps:{value:t.tableSettings.perPage},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"perPage",e.target.value)}}})]),t._v(" "),n("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all,size:"mini"},model:{value:t.tableSettings.pagination_position,callback:function(e){t.$set(t.tableSettings,"pagination_position",e)},expression:"tableSettings.pagination_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paginate_to_top,expression:"tableSettings.paginate_to_top"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.paginate_to_top)?t._i(t.tableSettings.paginate_to_top,null)>-1:t.tableSettings.paginate_to_top},on:{change:function(e){var n=t.tableSettings.paginate_to_top,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"paginate_to_top",n.concat([null])):i>-1&&t.$set(t.tableSettings,"paginate_to_top",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"paginate_to_top",o)}}}),t._v("\n Scroll to table top for pagination change "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_pager,expression:"tableSettings.show_pager"}],attrs:{disabled:!t.has_pro,type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.show_pager)?t._i(t.tableSettings.show_pager,null)>-1:t.tableSettings.show_pager},on:{change:function(e){var n=t.tableSettings.show_pager,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"show_pager",n.concat([null])):i>-1&&t.$set(t.tableSettings,"show_pager",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"show_pager",o)}}}),t._v("\n Show Page sizes change option "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then Users can change the items per page on frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.tableSettings.show_pager?n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Page Sizes (Number as Comma Separated)")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paze_sizes,expression:"tableSettings.paze_sizes"}],staticClass:"form_control",attrs:{type:"text",placeholder:"Default: 10,20,50,100"},domProps:{value:t.tableSettings.paze_sizes},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"paze_sizes",e.target.value)}}})]):t._e()],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:!t.has_pro,size:"mini"},model:{value:t.tableSettings.search_position,callback:function(e){t.$set(t.tableSettings,"search_position",e)},expression:"tableSettings.search_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),n("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.nt_search_full_width,expression:"tableSettings.nt_search_full_width"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.nt_search_full_width)?t._i(t.tableSettings.nt_search_full_width,null)>-1:t.tableSettings.nt_search_full_width},on:{change:function(e){var n=t.tableSettings.nt_search_full_width,a=e.target,o=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&t.$set(t.tableSettings,"nt_search_full_width",n.concat([null])):i>-1&&t.$set(t.tableSettings,"nt_search_full_width",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(t.tableSettings,"nt_search_full_width",o)}}}),t._v("\n Make search input as full width "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this, Then the search input will take all the available space (100% width)"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Select Sorting Method")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.sorting_type,callback:function(e){t.$set(t.tableSettings,"sorting_type",e)},expression:"tableSettings.sorting_type"}},[n("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n Created at\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),n("el-radio-button",{attrs:{disabled:!t.config.table.isSortable,label:"manual_sort"}},[t._v("Manual Sort\n ")])],1),t._v(" "),t.config.table.isCreatedSortable&&"by_created_at"==t.tableSettings.sorting_type?n("div",{},[n("span",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.default_sorting,expression:"tableSettings.default_sorting"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"default_sorting",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),n("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?n("div",[n("label",[t._v(t._s(t.$t("Select Column"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column,expression:"tableSettings.sorting_column"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column",e.target.multiple?n:n[0])}}},t._l(t.config.columns,function(e){return n("option",{key:e.key,domProps:{value:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}),0)]),t._v(" "),n("label",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column_by,expression:"tableSettings.sorting_column_by"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),n("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):t.config.table.isSortable&&"manual_sort"==t.tableSettings.sorting_type?n("div",[n("p",[t._v("You can sort the table data from "),n("b",[t._v("Table Rows")]),t._v(" Manually. Click Sort Manually\n checkbox to sort the data using drag and drop feature")])]):t._e(),t._v(" "),t.tableSettings.sorting_type?n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.expand_type,callback:function(e){t.$set(t.tableSettings,"expand_type",e)},expression:"tableSettings.expand_type"}},[n("el-radio-button",{attrs:{label:"default"}},[t._v("\n Default\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n Expand First\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand the first row of the table when displayed on a device that\n hides any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n Expand All\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand all rows of the table when displayed on a device that hides\n any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[n("el-radio-button",{attrs:{label:"first"}},[t._v("\n First Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"last"}},[t._v("\n Last Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.extra_css_class,expression:"tableSettings.extra_css_class"}],staticClass:"form_control",attrs:{id:"extra_css_class",type:"text"},domProps:{value:t.tableSettings.extra_css_class},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"extra_css_class",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Sticky Header (beta)"))+" "),t.has_pro?t._e():n("span",[t._v("(Pro)")])]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.sticky_header,callback:function(e){t.$set(t.tableSettings,"sticky_header",e)},expression:"tableSettings.sticky_header"}},[t._v("Enable Sticky header for table\n ")]),t._v(" "),"yes"==t.tableSettings.sticky_header?[n("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sticky_header_offset,expression:"tableSettings.sticky_header_offset"}],staticClass:"form_control",attrs:{placeholder:"positive or negative number",type:"text"},domProps:{value:t.tableSettings.sticky_header_offset},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"sticky_header_offset",e.target.value)}}}),t._v(" "),n("small",[t._v("Please give positive/negative number or you can provide jquery element object\n ")]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.disable_sticky_on_mobile,callback:function(e){t.$set(t.tableSettings,"disable_sticky_on_mobile",e)},expression:"tableSettings.disable_sticky_on_mobile"}},[t._v("Disable Sticky header for mobile devices\n ")])]:t._e()],2),t._v(" "),n("div",{staticClass:"form_group font-setting"},[n("label",[t._v("Table Font Setting")]),t._v(" "),n("div",{staticClass:"font"},[n("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),n("el-select",{attrs:{placeholder:"Select Font"},model:{value:t.tableSettings.table_font_family,callback:function(e){t.$set(t.tableSettings,"table_font_family",e)},expression:"tableSettings.table_font_family"}},t._l(t.fontFamily,function(t,e){return n("el-option",{key:e,attrs:{label:"inherit"===t?"theme-font":t,value:t}})}),1)],1),t._v(" "),n("div",{staticClass:"font"},[n("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),n("el-input-number",{attrs:{min:1,max:50},model:{value:t.tableSettings.table_font_size,callback:function(e){t.$set(t.tableSettings,"table_font_size",e)},expression:"tableSettings.table_font_size"}})],1)])])],1),t._v(" "),t.design_tips.length?n("div",{staticClass:"ninja_design_tips"},[n("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,function(e){return n("li",[n("i",{staticClass:"el-icon-warning"}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e)}})])}),0)]):t._e(),t._v(" "),t.has_pro?t._e():n("div",{staticClass:"upgrade_box"},[n("a",{staticClass:"el-button el-button--danger el-button--small",attrs:{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_studio"}},[n("i",{staticClass:"dashicons dashicons-shield"}),t._v(" "+t._s(t.$t("Upgrade To Pro to unlock advanced features"))+"\n ")])])],1)]),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Note: ")]),this._v(" For preview purpose, you are seeing up to 25 latest rows here and and per page 10\n items if you enable paginate. Also note that, The table style may differ at the frontend as your\n theme may overwrite few css elements.\n ")])}]}},function(t,e,n){var a=n(0)(n(619),n(620),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"frontend-editing-settings",props:["config"],data:function(){return{fetching:!1,saving:!1,tableId:this.config.table.ID,columns:this.config.columns,settings:{allow_frontend:"no",user_roles_editing:[],user_roles_deleting:[]},editing_user_roles:{},user_roles:{},editing_items:{},required_items:{},default_values:{},appearance_settings:{},hasPro:!!window.ninja_table_admin.hasPro,isActivated:!!window.ninja_table_admin.activated_features.ninja_table_front_editor}},methods:{getEditSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_table_pro_get_editing_settings",table_id:this.tableId}).then(function(e){t.settings=e.data.settings,t.user_roles=e.data.user_roles,t.editing_user_roles=e.data.editing_user_roles,t.editing_items=e.data.editor_pref.editing_items,t.required_items=e.data.editor_pref.required_items,t.default_values=e.data.editor_pref.default_values,t.appearance_settings=e.data.editor_pref.appearance_settings}).fail(function(t){}).always(function(){t.fetching=!1})},updateSettings:function(){var t=this;this.saving=!0;var e={action:"ninja_table_pro_update_editing_settings",table_id:this.tableId,settings:this.settings,editing_items:this.editing_items,required_items:this.required_items,default_values:this.default_values,appearance_settings:this.appearance_settings};this.$post(e).then(function(e){t.$message({type:"success",message:e.data.message})}).fail(function(e){e.responseJSON&&e.responseJSON.data?t.$message({type:"error",message:e.responseJSON.data.message}):t.$message({type:"error",message:"Something is wrong! Please try again"})}).always(function(){t.saving=!1})}},mounted:function(){this.getEditSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",[t._v("\n Frontend Editing Settings\n ")]),t._v(" "),n("div",{staticClass:"heading_actions"},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),n("div",{staticClass:"editing_body"},[n("div",{staticClass:"editing_sub_section"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.allow_frontend,callback:function(e){t.$set(t.settings,"allow_frontend",e)},expression:"settings.allow_frontend"}},[t._v("\n Enable Frontend editing\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[n("div",{staticClass:"editing_sub_section"},[t._m(2),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Edit/Add Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can edit this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_editing,callback:function(e){t.$set(t.settings,"user_roles_editing",e)},expression:"settings.user_roles_editing"}},t._l(t.editing_user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}),1)],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Deleting Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can delete this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_deleting,callback:function(e){t.$set(t.settings,"user_roles_deleting",e)},expression:"settings.user_roles_deleting"}},t._l(t.user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}),1)],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Own Data Only\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If this is enabled, users will see and edit only the rows that were created by them"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.own_data_only,callback:function(e){t.$set(t.settings,"own_data_only",e)},expression:"settings.own_data_only"}},[t._v("\n Users can see and edit/delete only own data\n ")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.own_data_only,expression:"settings.own_data_only == 'yes'"}],staticStyle:{"line-height":"120%"}},[t._v("\n Your Selected user roles only see their own data and manage those data. Other user roles can not see any data. If you want to show all the data without editing tools to all users, you can use the following shortcode:\n "),n("br"),n("pre",[n("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),n("div",{staticClass:"ninja_editing_pref"},[n("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column Name")]),t._v(" "),n("th",[t._v("\n Editable?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Required?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Default Value\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you would like to have some values pre-defined in editors (i.e. default editor values) please enter these here."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("th",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[e.key],callback:function(n){t.$set(t.editing_items,e.key,n)},expression:"editing_items[column.key]"}})],1),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[e.key],callback:function(n){t.$set(t.required_items,e.key,n)},expression:"required_items[column.key]"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{placeholder:"Default Value for "+e.name,size:"mini"},model:{value:t.default_values[e.key],callback:function(n){t.$set(t.default_values,e.key,n)},expression:"default_values[column.key]"}})],1)])}),0)])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance_settings.alwaysShow,callback:function(e){t.$set(t.appearance_settings,"alwaysShow",e)},expression:"appearance_settings.alwaysShow"}},[t._v("\n Always Show Edit Icons\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you enable this then, Selected user roles can always see the edit buttons, Otherwise they will see a button to initialize editing"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Row Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: New row"},model:{value:t.appearance_settings.addText,callback:function(e){t.$set(t.appearance_settings,"addText",e)},expression:"appearance_settings.addText"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Rows Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit rows"},model:{value:t.appearance_settings.showText,callback:function(e){t.$set(t.appearance_settings,"showText",e)},expression:"appearance_settings.showText"}})],1)]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Add Data"},model:{value:t.appearance_settings.addModalLabel,callback:function(e){t.$set(t.appearance_settings,"addModalLabel",e)},expression:"appearance_settings.addModalLabel"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit Data"},model:{value:t.appearance_settings.editModalLabel,callback:function(e){t.$set(t.appearance_settings,"editModalLabel",e)},expression:"appearance_settings.editModalLabel"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Editor Icon Position\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Edit icon postion. If you select Right then it will append the edit icons at the last column otherwise at the first column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("br"),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.appearance_settings.position,callback:function(e){t.$set(t.appearance_settings,"position",e)},expression:"appearance_settings.position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):n("div",[n("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),n("p",[t._v('Only "Default" data source tables can be editable')])]):n("div",[t._m(1)]):n("div",[t._m(0)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",{},[t._v("\n Frontend Editing Settings\n ")])]),t._v(" "),n("div",{staticClass:"editing_body text-center"},[n("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),n("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")]),t._v(" "),n("p",[t._v("Using this module, You can let your frontend users to add/edit/delete records based on user role. Also, You can separate the records by user submission")]),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=frontend-editing&utm_term=upgrade"}},[t._v("Purchase Now")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("\n Custom Filters is introduced in version 3.2.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Data Editing Permissions")]),this._v(" "),e("p",[this._v("\n Please specific user roles to be able to edit/delete this table. Only selected user\n roles\n can edit/delete the data.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Editing Column Options")]),this._v(" "),e("p",[this._v("\n Please Specify which columns can be editable from front-end and also, You can specify\n which\n columns will be required\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Appearance Settings")]),this._v(" "),e("p",[this._v("\n You can set the Editing Component Labels and Appearances\n ")])])}]}},function(t,e,n){var a=n(0)(n(624),n(625),!1,function(t){n(622)},null,null);t.exports=a.exports},function(t,e,n){var a=n(623);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5dfcde6f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-message{z-index:999999!important;top:5px}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"TableApp",data:function(){return{addVisible:!1,integrity:window.ninja_table_admin.nt_integrity,admin_notices:window.ninja_table_admin.admin_notices}