b0y-101 Mini Shell


Current Path : E:/www2/kidsbangna/wp-content/plugins/ninja-tables/assets/js/
File Upload :
Current File : E:/www2/kidsbangna/wp-content/plugins/ninja-tables/assets/js/ninja-tables-admin.js

/*! For license information please see ninja-tables-admin.js.LICENSE.txt */
(()=>{var t={2152:function(t){var e;e=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return x}});var a=n(279),i=n.n(a),o=n(370),l=n.n(o),s=n(817),r=n.n(s);function c(t){try{return document.execCommand(t)}catch(t){return!1}}var u=function(t){var e=r()(t);return c("cut"),e},d=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(a,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var a=r()(n);return c("copy"),n.remove(),a},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=d(t.value,e):(n=r()(t),c("copy")),n};function m(t){return m="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},m(t)}var h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,a=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?p(o,{container:a}):i?"cut"===n?u(i):p(i,{container:a}):void 0};function _(t){return _="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 f(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)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,n)}}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function y(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(o,t);var e,n,a,i=b(o);function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this)).resolveOptions(e),n.listenClick(t),n}return e=o,n=[{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"===_(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",a=h({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(a?"success":"error",{action:n,text:a,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],a=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(t,e)}},{key:"cut",value:function(t){return u(t)}},{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}}],n&&f(e.prototype,n),a&&f(e,a),o}(i()),x=w},828:function(t){var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,n){for(;t&&t.nodeType!==e;){if("function"==typeof t.matches&&t.matches(n))return t;t=t.parentNode}}},438:function(t,e,n){var a=n(828);function i(t,e,n,a,i){var l=o.apply(this,arguments);return t.addEventListener(n,l,i),{destroy:function(){t.removeEventListener(n,l,i)}}}function o(t,e,n,i){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=function(t,e,n,a,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,a,o)})))}},879: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)}},370:function(t,e,n){var a=n(879),i=n(438);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 i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){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(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i),e=a.toString()}return e}},279:function(t){function e(){}e.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 i(){a.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),a=0,i=n.length;a<i;a++)n[a].fn.apply(n[a].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),a=n[t],i=[];if(a&&e)for(var o=0,l=a.length;o<l;o++)a[o].fn!==e&&a[o].fn._!==e&&i.push(a[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={exports:{}};return t[a](i,i.exports,n),i.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=e()},6679:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_doc_top_blocks .ff_block .ff_block_box{display:flex;flex-direction:column;justify-content:space-between}.ninja_doc_top_blocks .ff_block .ff_block_box>p{margin-bottom:0}",""]);const o=i},4861:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".el-menu.el-menu--horizontal{border-bottom:none}",""]);const o=i},8347:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".js_instruction{background:#fff;font-size:14px;line-height:22px;margin-bottom:20px;padding:10px 20px}",""]);const o=i},5264:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".space-between{align-items:center;display:flex;justify-content:space-between}",""]);const o=i},7174:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".radioButton[data-v-1e6d9ba6]{align-items:center;display:flex;justify-content:space-between;margin-right:10px}",""]);const o=i},6924:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja-tables-component .el-slider{margin-left:0!important}",""]);const o=i},2508:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".color-picker-margin[data-v-58e28a60]{margin-right:10px}",""]);const o=i},299:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".form-item[data-v-84643dba]{margin:10px 0}.form-item label[data-v-84643dba]{width:100px}",""]);const o=i},3449:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""]);const o=i},3587:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".remove[data-v-b1ff19ee]{display:inline-block}",""]);const o=i},2859:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert{border:1px solid transparent;border-radius:4px;margin-bottom:20px;padding:15px}",""]);const o=i},2926:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor{height:auto;min-height:350px}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""]);const o=i},8491:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor{height:auto;min-height:350px}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""]);const o=i},9333:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor[data-v-ef65b914]{height:auto;min-height:180px}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ef65b914]{display:none}",""]);const o=i},8514:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".el-message{top:5px;z-index:999999!important}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""]);const o=i},5981:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,"label.form_group.search_action{margin-bottom:0;padding-top:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""]);const o=i},7548:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_intro_welcome[data-v-07f09a0d]{background:#fff;margin:45px auto 0;max-width:600px;padding:30px;text-align:center}.ninja_intro_welcome img[data-v-07f09a0d]{width:100%}.ninja_intro_welcome h2[data-v-07f09a0d]{font-size:30px}.ninja_intro_welcome .ninja_actions[data-v-07f09a0d]{margin-top:30px}",""]);const o=i},992:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},9004:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},2635:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""]);const o=i},7489:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}.compact{margin-top:3px!important;padding:0!important}",""]);const o=i},5688:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},2498:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_date_picker>.form-control{float:left;width:90%}.ninja_date_picker>.el-date-editor{cursor:pointer;margin:0;padding:0;width:8px!important}.ninja_date_picker>.el-date-editor .el-input__inner{background:grey;height:34px;padding:15px;width:10px!important}",""]);const o=i},5508:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".review_dialog{background:#fff;font-size:16px;padding:10px 15px 20px;position:relative}.review_dialog span.consentDismiss{color:grey;cursor:pointer;position:absolute;right:7px;top:2px;z-index:99999}.review_dialog p{font-size:16px}.review_dialog a{cursor:pointer;margin-right:20px;text-decoration:none}",""]);const o=i},6548:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{color:gray;font-size:12px;text-decoration:none}",""]);const o=i},7718:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".form-wrapper{padding:10px}.form-wrapper label{display:initial;margin-bottom:0;max-width:none}.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{max-width:100%;min-width:400px}",""]);const o=i},1356:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""]);const o=i},4973:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".column-condition-config .el-row{display:flex;margin-bottom:5px}.column-condition-config .el-col{display:flex;margin:0 5px}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{height:33px;width:100%}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{font-weight:400;margin-top:10px}.column-condition-config .form_group{height:35px;margin:0}.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{align-items:center;display:flex;justify-content:space-between}",""]);const o=i},7946:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{margin:0 auto;width:480px}.footable_parent.ninja_device_tablet{margin:0 auto;max-width:768px;padding:0 20px}.font-setting .font{margin-top:10px}.font-setting .font label{width:30%}.ninja_footable tbody tr td{font-family:var(--ninja-table-font-family);font-size:var(--ninja-table-font-size)}",""]);const o=i},7587:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".spaced>.el-radio[data-v-5185e382]{line-height:2;margin-left:0;margin-right:30px!important}",""]);const o=i},477:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,"table.ninja_filter_table{border-collapse:collapse;text-align:left;width:100%}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""]);const o=i},6368:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".settings_header{background:#fff;font-size:20px;margin-left:-20px;margin-right:-20px;margin-top:-20px;padding-bottom:20px;padding-left:24px;padding-top:20px}.settings_header .action{cursor:pointer;font-size:16px}.settings_header .action:hover{color:#0085ba}",""]);const o=i},719:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".el-table{margin-bottom:10px;margin-top:10px}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert{border:1px solid transparent;border-radius:4px;margin-bottom:20px;padding:15px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{cursor:pointer;display:inline-block;opacity:0;padding-left:5px}.nt-column-config:hover{color:#58b7ff}.instruction_block{background:#fff;padding:30px 20px}.js-sortable-table table tr td span,.js-sortable-table table tr th span{word-break:break-word}.js-sortable-table table tr td span i,.js-sortable-table table tr th span i{padding:0}",""]);const o=i},7689:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,"#fileUpload[data-v-515ad830]{max-width:200px}.justify-items[data-v-515ad830]{align-items:center;display:flex;justify-content:space-between}.ninja_content .ninja_suggest[data-v-515ad830]{background:#f1f1f1}.ninja_content[data-v-515ad830]{margin:1em 0}",""]);const o=i},2342:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".dialog-footer{align-items:center;display:flex;justify-content:space-between}.dialog-footer.single-child{justify-content:flex-end}.row_config_container{background:#d8edfd;border-radius:5px;display:block;padding:10px 15px;position:relative}",""]);const o=i},694:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".nt-checkbox-group .el-checkbox-group{display:grid}",""]);const o=i},4674:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ntb-ace-editor .ninja_custom_css_editor{min-height:200px}.ntb-ace-editor .ninja_css_errors,.ntb-ace-editor .ninja_javascript_errors{display:none}.ninja-tables-component .el-collapse-item__content{padding-bottom:6px}.ninja-tables-component .accordions .export .el-select{width:50%}.ninja-tables-component .accordions .export .el-button{margin-top:10px;width:100%}.ninja-tables-component .accordions>.is-active{max-height:410px;overflow-y:scroll}.ninja-tables-component .accordions>.is-active::-webkit-scrollbar{width:.2em}.ninja-tables-component .accordions>.is-active::-webkit-scrollbar-thumb{background-color:#409eff;outline:1px solid #409eff}.ninja-tables-component .accordions>.is-active .el-collapse-item__arrow.is-active{margin-right:6px}.ninja-tables-component .accordions .el-tabs__item.is-active{display:initial}.ninja-tables-component .el-slider__runway{margin-left:12px}.ninja-tables-component .el-slider{margin-left:10px}.ninja-tables-component .element-style{align-items:center;display:flex;justify-content:center;padding:10px 0}.ninja-tables-component .element-style .button-component{padding:15px;width:120px}.ninja-tables-component .element-style .button-component i{font-size:15px}.ninja-tables-component .element-style .button-component:hover{cursor:move}.ninja-tables-component .element-style .pro-component:hover{cursor:not-allowed}.ninja-tables-component .element-style .item .el-badge__content{right:33px}.ninja-tables-component .ntb-manage-button{display:block;margin:10px auto;padding:10px 20px}.ninja-tables-component .component-spacing,.ninja-tables-component .component-wrapper>*{padding:6px 0}",""]);const o=i},5217:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".new-table-wrapper .table-type-heading h2{background-color:#1c2024;color:#fff;padding:10px;text-align:center}.new-table-wrapper .table-type-heading h2 .ready-made-name{margin-top:40px}.new-table-wrapper .table-title-style{display:table;margin:5px auto 20px}.new-table-wrapper .ready-made-table-image{position:relative}.new-table-wrapper .ready-made-table-image img{opacity:.6}.new-table-wrapper .ready-made-table-image .ready-made-table-button{opacity:1}.new-table-wrapper .ready-made-table-button{left:50%;opacity:0;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transition:.5s ease}.new-table-wrapper .new_table{border:2px solid #ddd;display:grid;height:200px;margin-left:40px;margin-top:50px;position:relative;width:200px}.new-table-wrapper .new_table .table-column-input{position:absolute;top:-40px;width:200px}.new-table-wrapper .new_table .table-row-input{left:-120px;position:absolute;top:80px;transform:rotate(-90deg);width:200px}.new-table-wrapper .new_table .table-row-column{border:.5px solid #ccc}.new-table-wrapper .create-button .el-button{left:42px;margin-top:10px;position:relative;width:200px}.new-table-wrapper .import-button{align-items:center;display:flex;justify-content:center}",""]);const o=i},1620:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,'.ninja-tables-layout .table-customize-button{padding-bottom:20px}.ninja-tables-layout .sortable-ghost{border:1px dashed grey;font-size:0;overflow:hidden;width:100%}.ninja-tables-layout .button-group{display:flex!important;justify-content:center;margin:5px auto}.ninja-tables-layout .manage-button{display:block;margin:0 auto 10px;padding:10px 20px}.ninja-tables-layout .ntb_table_wrapper{overflow:auto;overflow-wrap:break-word;padding-left:var(--table-wrapper-padding);padding-top:5px;position:relative;z-index:1}.ninja-tables-layout .ntb_table_wrapper .pixel-bar-slider{background:#3b503f;border-radius:10px;margin:10px auto;padding:0 20px;width:50%}.ninja-tables-layout .ntb_table_wrapper .table .table-header{display:table-caption;margin-bottom:var(--margin-bottom);margin-left:var(--column-arrow);position:sticky;position:-webkit-sticky;top:0;z-index:99}.ninja-tables-layout .ntb_table_wrapper .table .table-header th .column-options span i{border:1px solid;color:#fff;font-size:12px;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active{background-color:#409eff;display:block;margin-left:var(--td-th-active-margin);margin-top:var(--margin-top)}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active:hover{background-color:#5f6368;cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active:hover .column-options span i{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .tbody{display:block;margin-left:var(--td-th-active-margin)}.ninja-tables-layout .ntb_table_wrapper .table .tbody .td-highlight{background:inherit;border:none!important;position:relative;z-index:9}.ninja-tables-layout .ntb_table_wrapper .table .tbody .td-highlight:before{background:inherit;box-shadow:var(--offset-x) var(--offset-y) var(--blur-radius) var(--shadow-color);content:"";height:100%;left:-15px;position:absolute;top:0;width:calc(100% + 30px);z-index:-1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:first-child .td-highlight:before{top:var(--highlight-height-top)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:first-child .td-highlight:before,.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:last-child .td-highlight:before{height:calc(100% + var(--highlight-height-bottom))}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr.firstRowSticky{position:sticky;top:-5px;z-index:2}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr,.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td{position:relative}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .sortIcon{font-size:30px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options{top:calc(50% - 10px)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options span i{border:1px solid;color:#000;font-size:12px;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options span span{color:#000}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options:hover i{color:#fff;cursor:pointer;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options:hover span{color:#fff;cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move{height:100%;position:absolute;right:-37px;top:0}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button{width:30px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button i{transform:rotate(270deg)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button .top{margin-top:15px;position:absolute}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button .bottom{margin-bottom:15px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active{background-color:#409eff;border-bottom:var(--border-size) solid var(--border-color);cursor:move;max-width:20px;opacity:1;position:sticky;position:-webkit-sticky;z-index:99}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active .row-options span i{color:#fff;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active .row-options span span{color:#fff}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active:hover{background-color:#5f6368}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-inactive{opacity:0;right:10px;visibility:hidden}.ninja-tables-layout .ntb_table_wrapper .table .single-item{border:0 solid transparent;display:block;position:relative}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style{color:#fff;display:flex;font-size:14px;height:auto;justify-content:flex-end;left:0;opacity:0;position:absolute;right:0;top:-15px;width:100%}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style .el-icon-rank{cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style i{background:#3f9eff;font-weight:700;padding:0 2px}.ninja-tables-layout .ntb_table_wrapper .table .other-item .hover-item{border:1px solid transparent}.ninja-tables-layout .ntb_table_wrapper .table .other-item.item-active .hover-item{border-color:#3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover .hover-item{border-color:#3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover .icon-style{opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon{position:absolute}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .bookmark,.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .corner,.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .side{border:1px solid #3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .icon-style{justify-content:flex-start;opacity:1;top:0;z-index:3}@keyframes selected-item-move{0%{background-position:0 50%}to{background-position:100% 50%}}.ninja-tables-layout .ntb_table_wrapper .table #selected-item{animation:selected-item-move 40s linear infinite reverse;background:repeating-linear-gradient(45deg,#fff,#fff 5px,#3299d1 0,#3299d1 10px);background-size:400% 400%;height:100%;left:0;opacity:.2;top:0;width:100%}.responsive-mode:hover{cursor:pointer}',""]);const o=i},8947:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,'.ribbon-wrapper{max-width:600px;position:relative;width:90%;z-index:1}.ribbon-wrapper .corner{height:100px;overflow:hidden;position:absolute;width:120px}.ribbon-wrapper .corner .content{box-shadow:0 1px 2px rgba(0,0,0,.5);display:block;position:absolute;text-align:center}.ribbon-wrapper .corner .left{right:-25px;top:30px;transform:rotate(-45deg)}.ribbon-wrapper .corner .right{left:-25px;top:30px;transform:rotate(45deg)}.ribbon-wrapper .bookmark{filter:drop-shadow(2px 3px 2px rgba(0,0,0,.5));overflow:hidden;position:absolute}.ribbon-wrapper .bookmark>.content{font-size:1.25rem;font-weight:400;padding:8px 2px 4px;text-align:center}.ribbon-wrapper .bookmark.up>.content{-webkit-clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%)}.ribbon-wrapper .side{background-size:cover;float:left;position:relative}.ribbon-wrapper .side .content{box-shadow:1px 2px 3px rgba(0,0,0,.5);padding:8px 10px;position:absolute}.ribbon-wrapper .side .content:before{background:inherit;border-radius:5px 0 0 5px;content:"";height:100%;left:-6.5px;padding:1px 0 7px;position:absolute;top:0;width:7px}.ribbon-wrapper .side .content:after{background:#add8e6;border-radius:5px 0 0 5px;bottom:-5px;content:"";height:5px;left:-4.5px;position:absolute;width:5px}.ribbon-wrapper .horizontal{box-shadow:1px 2px 3px rgba(0,0,0,.5);position:relative}.ribbon-wrapper .horizontal .content{position:absolute}.ntb-datas-wrapper .svgIcon{display:inline-block;flex:none;mask-size:cover;-webkit-mask-size:cover}.ntb-datas-wrapper .ntb-progress .el-progress .el-progress__text{color:var(--progress-bar-text-color);font-size:var(--progress-bar-font-size)!important}.ntb-datas-wrapper .ntb-rating{height:auto}.ntb-datas-wrapper .ntb-rating .el-rate__item i{font-size:var(--rating-font-size)}.ntb-datas-wrapper .ntb-rating .el-rate__text{display:block;font-size:var(--rating-font-size)}.ntb-datas-wrapper .ntb-list ol,.ntb-datas-wrapper .ntb-list ul{margin:0}.ntb-datas-wrapper dd,.ntb-datas-wrapper li{margin-bottom:0}.ntb-datas-wrapper .ntb-list-style li{border:1px solid transparent;position:relative;transition:border .1s}.ntb-datas-wrapper .ntb-list-style li .icon-styles{color:#fff;font-size:12px;height:auto;justify-content:flex-end;opacity:0;position:absolute;visibility:hidden;width:auto;z-index:1}.ntb-datas-wrapper .ntb-list-style li .icon-styles i{background:#3f9eff;font-weight:700;padding:0 1px}.ntb-datas-wrapper .ntb-list-style li:hover{border-color:#3f9eff;cursor:pointer}.ntb-datas-wrapper .ntb-list-style li:hover .icon-styles{opacity:1;right:0;top:-17px;visibility:visible}.ntb-datas-wrapper .button-content-wrapper{align-items:center;display:flex;justify-content:center;overflow-wrap:break-word;white-space:break-spaces}.ntb-datas-wrapper .icon-text-wrapper{align-items:center;justify-content:center;line-height:1.2}.ntb-datas-wrapper .ntb-el-button{padding:var(--padding-dashboard)}.ntb-datas-wrapper .ntb-el-button:hover .svgIcon{background-color:var(--icon-color-hover)!important}.ntb-datas-wrapper p:focus-visible,.ntb-datas-wrapper span:focus-visible{outline:none}',""]);const o=i},9604:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},9169:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},7:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},8279:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},2538:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},8305:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".license_form{padding:20px 0;text-align:center}.license_form label{display:block;font-size:30px;font-weight:400;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{background:#fbfdff;border:1px solid gray;border-radius:5px;font-size:20px;height:48px;margin-bottom:20px;min-width:400px;padding:0 10px;width:50%}.license_form .error_message{background:#ffe491;border-radius:5px;color:#000;font-weight:700;margin-top:40px;padding:10px}.license_success{padding:40px 0;text-align:center}.license_renew_box{background:#ffee9b;border:2px dashed #ff0;padding:10px}.license_renew_box p{font-size:18px}.license_renew_box a{background:#0073aa;border:1px solid gray;border-radius:21px;color:#fff;font-weight:700;padding:5px 15px;text-decoration:none;text-transform:capitalize}.license_renew_box a:hover{background:#fff;color:#0073aa}",""]);const o=i},7500:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja_intro_welcome{background:#fff;margin:45px auto 0;max-width:600px;padding:30px 20px;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}",""]);const o=i},2797:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".ninja-add-table .el-main{min-height:auto;padding:0 1px 0 15px}.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{height:18px;margin-right:5px;width:24px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""]);const o=i},8388:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".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}",""]);const o=i},364:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".hint[data-v-6662ec02]{background-color:#f4f4f5;color:#909399;padding:8px 16px;width:100%}.form_group.ninja_errors[data-v-6662ec02]{background:#ffd7d7;padding:10px}",""]);const o=i},1758:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".premium-notice .buy_now_button[data-v-4457aa2e]{text-decoration:none}",""]);const o=i},509:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""]);const o=i},1664:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var a=n(3645),i=n.n(a)()((function(t){return t[1]}));i.push([t.id,"button.button.ninja_demo_media_button{cursor:pointer;position:absolute;z-index:9999999999}.wp_vue_editor{min-height:100px;width:100%}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{left:0;position:absolute;top:0;z-index:2}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""]);const o=i},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(a)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(i[l]=!0)}for(var s=0;s<t.length;s++){var r=[].concat(t[s]);a&&i[r[0]]||(n&&(r[2]?r[2]="".concat(n," and ").concat(r[2]):r[2]=n),e.push(r))}},e}},8091:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),a=1;a<arguments.length;a++){var i=arguments[a];if(null!=i)for(var o=Object.keys(Object(i)),l=0,s=o.length;l<s;l++){var r=o[l],c=Object.getOwnPropertyDescriptor(i,r);void 0!==c&&c.enumerable&&(n[r]=i[r])}}return n}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},8552:(t,e,n)=>{var a=n(852)(n(5639),"DataView");t.exports=a},1989:(t,e,n)=>{var a=n(1789),i=n(401),o=n(7667),l=n(1327),s=n(1866);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=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},8407:(t,e,n)=>{var a=n(7040),i=n(4125),o=n(2117),l=n(7529),s=n(4705);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=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},7071:(t,e,n)=>{var a=n(852)(n(5639),"Map");t.exports=a},3369:(t,e,n)=>{var a=n(4785),i=n(1285),o=n(6e3),l=n(9916),s=n(5265);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=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},3818:(t,e,n)=>{var a=n(852)(n(5639),"Promise");t.exports=a},8525:(t,e,n)=>{var a=n(852)(n(5639),"Set");t.exports=a},8668:(t,e,n)=>{var a=n(3369),i=n(619),o=n(2385);function l(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new a;++e<n;)this.add(t[e])}l.prototype.add=l.prototype.push=i,l.prototype.has=o,t.exports=l},6384:(t,e,n)=>{var a=n(8407),i=n(7465),o=n(3779),l=n(7599),s=n(4758),r=n(4309);function c(t){var e=this.__data__=new a(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=l,c.prototype.has=s,c.prototype.set=r,t.exports=c},2705:(t,e,n)=>{var a=n(5639).Symbol;t.exports=a},1149:(t,e,n)=>{var a=n(5639).Uint8Array;t.exports=a},577:(t,e,n)=>{var a=n(852)(n(5639),"WeakMap");t.exports=a},6874:t=>{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)}},7412:t=>{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}},4963:t=>{t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,i=0,o=[];++n<a;){var l=t[n];e(l,n,t)&&(o[i++]=l)}return o}},7443:(t,e,n)=>{var a=n(2118);t.exports=function(t,e){return!!(null==t?0:t.length)&&a(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var a=-1,i=null==t?0:t.length;++a<i;)if(n(e,t[a]))return!0;return!1}},4636:(t,e,n)=>{var a=n(2545),i=n(5694),o=n(1469),l=n(4144),s=n(5776),r=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&i(t),d=!n&&!u&&l(t),p=!n&&!u&&!d&&r(t),m=n||u||d||p,h=m?a(t.length,String):[],_=h.length;for(var f in t)!e&&!c.call(t,f)||m&&("length"==f||d&&("offset"==f||"parent"==f)||p&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,_))||h.push(f);return h}},9932:t=>{t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,i=Array(a);++n<a;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,a=e.length,i=t.length;++n<a;)t[i+n]=e[n];return t}},2663:t=>{t.exports=function(t,e,n,a){var i=-1,o=null==t?0:t.length;for(a&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},2908:t=>{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}},8983:(t,e,n)=>{var a=n(371)("length");t.exports=a},9029:t=>{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},8470:(t,e,n)=>{var a=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}},9881:(t,e,n)=>{var a=n(7816),i=n(9291)(a);t.exports=i},1848:t=>{t.exports=function(t,e,n,a){for(var i=t.length,o=n+(a?1:-1);a?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},8483:(t,e,n)=>{var a=n(5063)();t.exports=a},7816:(t,e,n)=>{var a=n(8483),i=n(3674);t.exports=function(t,e){return t&&a(t,e,i)}},7786:(t,e,n)=>{var a=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,o=(e=a(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},8866:(t,e,n)=>{var a=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:a(o,n(t))}},4239:(t,e,n)=>{var a=n(2705),i=n(9607),o=n(2333),l="[object Null]",s="[object Undefined]",r=a?a.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:l:r&&r in Object(t)?i(t):o(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var a=n(1848),i=n(2722),o=n(2351);t.exports=function(t,e,n){return e==e?o(t,e,n):a(t,i,n)}},7556:(t,e,n)=>{var a=n(8668),i=n(7443),o=n(1196),l=n(9932),s=n(7518),r=n(4757),c=Math.min;t.exports=function(t,e,n){for(var u=n?o:i,d=t[0].length,p=t.length,m=p,h=Array(p),_=1/0,f=[];m--;){var v=t[m];m&&e&&(v=l(v,s(e))),_=c(v.length,_),h[m]=!n&&(e||d>=120&&v.length>=120)?new a(m&&v):void 0}v=t[0];var b=-1,g=h[0];t:for(;++b<d&&f.length<_;){var y=v[b],w=e?e(y):y;if(y=n||0!==y?y:0,!(g?r(g,w):u(f,w,n))){for(m=p;--m;){var x=h[m];if(!(x?r(x,w):u(t[m],w,n)))continue t}g&&g.push(w),f.push(y)}}return f}},9454:(t,e,n)=>{var a=n(4239),i=n(7005),o="[object Arguments]";t.exports=function(t){return i(t)&&a(t)==o}},939:(t,e,n)=>{var a=n(2492),i=n(7005);t.exports=function t(e,n,o,l,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:a(e,n,o,l,t,s))}},2492:(t,e,n)=>{var a=n(6384),i=n(7114),o=n(8351),l=n(6096),s=n(4160),r=n(1469),c=n(4144),u=n(6719),d=1,p="[object Arguments]",m="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,f,v,b){var g=r(t),y=r(e),w=g?m:s(t),x=y?m:s(e),k=(w=w==p?h:w)==h,C=(x=x==p?h:x)==h,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)?i(t,e,n,f,v,b):o(t,e,w,n,f,v,b);if(!(n&d)){var j=k&&_.call(t,"__wrapped__"),$=C&&_.call(e,"__wrapped__");if(j||$){var T=j?t.value():t,D=$?e.value():e;return b||(b=new a),v(T,D,n,f,b)}}return!!S&&(b||(b=new a),l(t,e,n,f,v,b))}},2958:(t,e,n)=>{var a=n(6384),i=n(939),o=1,l=2;t.exports=function(t,e,n,s){var r=n.length,c=r,u=!s;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],m=t[p],h=d[1];if(u&&d[2]){if(void 0===m&&!(p in t))return!1}else{var _=new a;if(s)var f=s(m,h,p,t,e,_);if(!(void 0===f?i(h,m,o|l,s,_):f))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var a=n(3560),i=n(5346),o=n(3218),l=n(346),s=/^\[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!(!o(t)||i(t))&&(a(t)?p:s).test(l(t))}},8749:(t,e,n)=>{var a=n(4239),i=n(1780),o=n(7005),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!l[a(t)]}},7206:(t,e,n)=>{var a=n(1573),i=n(6432),o=n(6557),l=n(1469),s=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?l(t)?i(t[0],t[1]):a(t):s(t)}},280:(t,e,n)=>{var a=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!a(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},1573:(t,e,n)=>{var a=n(2958),i=n(1499),o=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||a(n,t,e)}}},6432:(t,e,n)=>{var a=n(939),i=n(7361),o=n(9095),l=n(5403),s=n(9162),r=n(2634),c=n(327),u=1,d=2;t.exports=function(t,e){return l(t)&&s(e)?r(c(t),e):function(n){var l=i(n,t);return void 0===l&&l===e?o(n,t):a(e,l,u|d)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var a=n(7786);t.exports=function(t){return function(e){return a(e,t)}}},8674:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,n)=>{var a=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,a),t+"")}},6560:(t,e,n)=>{var a=n(5703),i=n(8777),o=n(6557),l=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:a(e),writable:!0})}:o;t.exports=l},2545:t=>{t.exports=function(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}},531:(t,e,n)=>{var a=n(2705),i=n(9932),o=n(1469),l=n(3448),s=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(o(e))return i(e,t)+"";if(l(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},7561:(t,e,n)=>{var a=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,a(t)+1).replace(i,""):t}},7518:t=>{t.exports=function(t){return function(e){return t(e)}}},2777:(t,e,n)=>{var a=n(9932);t.exports=function(t,e){return a(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,n)=>{var a=n(9246);t.exports=function(t){return a(t)?t:[]}},4290:(t,e,n)=>{var a=n(6557);t.exports=function(t){return"function"==typeof t?t:a}},1811:(t,e,n)=>{var a=n(1469),i=n(5403),o=n(5514),l=n(9833);t.exports=function(t,e){return a(t)?t:i(t,e)?[t]:o(l(t))}},4429:(t,e,n)=>{var a=n(5639)["__core-js_shared__"];t.exports=a},9291:(t,e,n)=>{var a=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!a(n))return t(n,i);for(var o=n.length,l=e?o:-1,s=Object(n);(e?l--:++l<o)&&!1!==i(s[l],l,s););return n}}},5063:t=>{t.exports=function(t){return function(e,n,a){for(var i=-1,o=Object(e),l=a(e),s=l.length;s--;){var r=l[t?s:++i];if(!1===n(o[r],r,o))break}return e}}},5393:(t,e,n)=>{var a=n(2663),i=n(3816),o=n(8748),l=RegExp("['’]","g");t.exports=function(t){return function(e){return a(o(i(e).replace(l,"")),t,"")}}},7740:(t,e,n)=>{var a=n(7206),i=n(8612),o=n(3674);t.exports=function(t){return function(e,n,l){var s=Object(e);if(!i(e)){var r=a(n,3);e=o(e),n=function(t){return r(s[t],t,s)}}var c=t(e,n,l);return c>-1?s[r?e[c]:c]:void 0}}},9389:(t,e,n)=>{var a=n(8674)({À:"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},8777:(t,e,n)=>{var a=n(852),i=function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var a=n(8668),i=n(2908),o=n(4757),l=1,s=2;t.exports=function(t,e,n,r,c,u){var d=n&l,p=t.length,m=e.length;if(p!=m&&!(d&&m>p))return!1;var h=u.get(t),_=u.get(e);if(h&&_)return h==e&&_==t;var f=-1,v=!0,b=n&s?new a:void 0;for(u.set(t,e),u.set(e,t);++f<p;){var g=t[f],y=e[f];if(r)var w=d?r(y,g,f,e,t,u):r(g,y,f,t,e,u);if(void 0!==w){if(w)continue;v=!1;break}if(b){if(!i(e,(function(t,e){if(!o(b,e)&&(g===t||c(g,t,n,r,u)))return b.push(e)}))){v=!1;break}}else if(g!==y&&!c(g,y,n,r,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},8351:(t,e,n)=>{var a=n(2705),i=n(1149),o=n(7813),l=n(7114),s=n(8776),r=n(1814),c=1,u=2,d="[object Boolean]",p="[object Date]",m="[object Error]",h="[object Map]",_="[object Number]",f="[object RegExp]",v="[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 i(t),new i(e)));case d:case p:case _:return o(+t,+e);case m:return t.name==e.name&&t.message==e.message;case f:case b:return t==e+"";case h:var j=s;case v: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 D=l(j(t),j(e),a,x,C,S);return S.delete(t),D;case g:if(k)return k.call(t)==k.call(e)}return!1}},6096:(t,e,n)=>{var a=n(8234),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,l,s,r){var c=n&i,u=a(t),d=u.length;if(d!=a(e).length&&!c)return!1;for(var p=d;p--;){var m=u[p];if(!(c?m in e:o.call(e,m)))return!1}var h=r.get(t),_=r.get(e);if(h&&_)return h==e&&_==t;var f=!0;r.set(t,e),r.set(e,t);for(var v=c;++p<d;){var b=t[m=u[p]],g=e[m];if(l)var y=c?l(g,b,m,e,t,r):l(b,g,m,t,e,r);if(!(void 0===y?b===g||s(b,g,n,l,r):y)){f=!1;break}v||(v="constructor"==m)}if(f&&!v){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(f=!1)}return r.delete(t),r.delete(e),f}},1957:(t,e,n)=>{var a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=a},8234:(t,e,n)=>{var a=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return a(t,o,i)}},5050:(t,e,n)=>{var a=n(7019);t.exports=function(t,e){var n=t.__data__;return a(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var a=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],l=t[o];e[n]=[o,l,a(l)]}return e}},852:(t,e,n)=>{var a=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return a(n)?n:void 0}},9607:(t,e,n)=>{var a=n(2705),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,s=a?a.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var a=!0}catch(t){}var i=l.call(t);return a&&(e?t[s]=n:delete t[s]),i}},9551:(t,e,n)=>{var a=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(t){return null==t?[]:(t=Object(t),a(l(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},4160:(t,e,n)=>{var a=n(8552),i=n(7071),o=n(3818),l=n(8525),s=n(577),r=n(4239),c=n(346),u="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",h="[object DataView]",_=c(a),f=c(i),v=c(o),b=c(l),g=c(s),y=r;(a&&y(new a(new ArrayBuffer(1)))!=h||i&&y(new i)!=u||o&&y(o.resolve())!=d||l&&y(new l)!=p||s&&y(new s)!=m)&&(y=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,a=n?c(n):"";if(a)switch(a){case _:return h;case f:return u;case v:return d;case b:return p;case g:return m}return e}),t.exports=y},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var a=n(1811),i=n(5694),o=n(1469),l=n(5776),s=n(1780),r=n(327);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)&&s(u)&&l(p,u)&&(o(t)||i(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},3157:t=>{var e=/[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 e.test(t)}},1789:(t,e,n)=>{var a=n(4536);t.exports=function(){this.__data__=a?a(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var a=n(4536),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(a){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var a=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return a?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var a=n(4536),i="__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?i:e,this}},5776:t=>{var e=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,a){var i=typeof t;return!!(a=null==a?e:a)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<a}},5403:(t,e,n)=>{var a=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(l.test(t)||!o.test(t)||null!=e&&t in Object(e))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var a,i=n(4429),o=(a=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var a=n(3218);t.exports=function(t){return t==t&&!a(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var a=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=a(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},2117:(t,e,n)=>{var a=n(8470);t.exports=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}},7529:(t,e,n)=>{var a=n(8470);t.exports=function(t){return a(this.__data__,t)>-1}},4705:(t,e,n)=>{var a=n(8470);t.exports=function(t,e){var n=this.__data__,i=a(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var a=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new a,map:new(o||i),string:new a}}},1285:(t,e,n)=>{var a=n(5050);t.exports=function(t){var e=a(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var a=n(5050);t.exports=function(t){return a(this,t).get(t)}},9916:(t,e,n)=>{var a=n(5050);t.exports=function(t){return a(this,t).has(t)}},5265:(t,e,n)=>{var a=n(5050);t.exports=function(t,e){var n=a(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,a){n[++e]=[a,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},4523:(t,e,n)=>{var a=n(8306),i=500;t.exports=function(t){var e=a(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var a=n(852)(Object,"create");t.exports=a},6916:(t,e,n)=>{var a=n(5569)(Object.keys,Object);t.exports=a},1167:(t,e,n)=>{t=n.nmd(t);var a=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,l=o&&o.exports===i&&a.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||l&&l.binding&&l.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var a=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,l=-1,s=i(o.length-e,0),r=Array(s);++l<s;)r[l]=o[e+l];l=-1;for(var c=Array(e+1);++l<e;)c[l]=o[l];return c[e]=n(r),a(t,this,c)}}},5639:(t,e,n)=>{var a=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=a||i||Function("return this")();t.exports=o},619:t=>{var e="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,e),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var a=n(6560),i=n(1275)(a);t.exports=i},1275:t=>{var e=800,n=16,a=Date.now;t.exports=function(t){var i=0,o=0;return function(){var l=a(),s=n-(l-o);if(o=l,s>0){if(++i>=e)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var a=n(8407);t.exports=function(){this.__data__=new a,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var a=n(8407),i=n(7071),o=n(3369),l=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof a){var s=n.__data__;if(!i||s.length<l-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var a=n-1,i=t.length;++a<i;)if(t[a]===e)return a;return-1}},8016:(t,e,n)=>{var a=n(8983),i=n(2689),o=n(1903);t.exports=function(t){return i(t)?o(t):a(t)}},5514:(t,e,n)=>{var a=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,l=a((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,a,i){e.push(a?i.replace(o,"$1"):n||t)})),e}));t.exports=l},327:(t,e,n)=>{var a=n(3448),i=1/0;t.exports=function(t){if("string"==typeof t||a(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3729:(t,e,n)=>{var a=n(8674)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=a},1903:t=>{var e="\\ud800-\\udfff",n="["+e+"]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+a+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+r+("(?:\\u200d(?:"+[o,l,s].join("|")+")"+c+r+")*"),d="(?:"+[o+a+"?",a,l,s,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+d+u,"g");t.exports=function(t){for(var e=p.lastIndex=0;p.test(t);)++e;return e}},2757:t=>{var e="\\ud800-\\udfff",n="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\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",l="["+o+"]",s="\\d+",r="["+n+"]",c="["+a+"]",u="[^"+e+o+s+n+a+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",m="["+i+"]",h="(?:"+c+"|"+u+")",_="(?:"+m+"|"+u+")",f="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",g="[\\ufe0e\\ufe0f]?",y=g+b+("(?:\\u200d(?:"+["[^"+e+"]",d,p].join("|")+")"+g+b+")*"),w="(?:"+[r,d,p].join("|")+")"+y,x=RegExp([m+"?"+c+"+"+f+"(?="+[l,m,"$"].join("|")+")",_+"+"+v+"(?="+[l,m+h,"$"].join("|")+")",m+"?"+h+"+"+f,m+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,w].join("|"),"g");t.exports=function(t){return t.match(x)||[]}},5703:t=>{t.exports=function(t){return function(){return t}}},3816:(t,e,n)=>{var a=n(9389),i=n(9833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,a).replace(l,"")}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3311:(t,e,n)=>{var a=n(7740)(n(998));t.exports=a},998:(t,e,n)=>{var a=n(1848),i=n(7206),o=n(554),l=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var r=null==n?0:o(n);return r<0&&(r=l(s+r,0)),a(t,i(e,3),r)}},4486:(t,e,n)=>{var a=n(7412),i=n(9881),o=n(4290),l=n(1469);t.exports=function(t,e){return(l(t)?a:i)(t,o(e))}},7361:(t,e,n)=>{var a=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:a(t,e);return void 0===i?n:i}},9095:(t,e,n)=>{var a=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,a)}},6557:t=>{t.exports=function(t){return t}},5325:(t,e,n)=>{var a=n(9932),i=n(7556),o=n(5976),l=n(4387),s=o((function(t){var e=a(t,l);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=s},5694:(t,e,n)=>{var a=n(9454),i=n(7005),o=Object.prototype,l=o.hasOwnProperty,s=o.propertyIsEnumerable,r=a(function(){return arguments}())?a:function(t){return i(t)&&l.call(t,"callee")&&!s.call(t,"callee")};t.exports=r},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var a=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!a(t)}},9246:(t,e,n)=>{var a=n(8612),i=n(7005);t.exports=function(t){return i(t)&&a(t)}},4144:(t,e,n)=>{t=n.nmd(t);var a=n(5639),i=n(5062),o=e&&!e.nodeType&&e,l=o&&t&&!t.nodeType&&t,s=l&&l.exports===o?a.Buffer:void 0,r=(s?s.isBuffer:void 0)||i;t.exports=r},3560:(t,e,n)=>{var a=n(4239),i=n(3218),o="[object AsyncFunction]",l="[object Function]",s="[object GeneratorFunction]",r="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=a(t);return e==l||e==s||e==o||e==r}},1780:t=>{var e=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},7037:(t,e,n)=>{var a=n(4239),i=n(1469),o=n(7005),l="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&a(t)==l}},3448:(t,e,n)=>{var a=n(4239),i=n(7005),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&a(t)==o}},6719:(t,e,n)=>{var a=n(8749),i=n(7518),o=n(1167),l=o&&o.isTypedArray,s=l?i(l):a;t.exports=s},3674:(t,e,n)=>{var a=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?a(t):i(t)}},8306:(t,e,n)=>{var a=n(3369),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var a=arguments,i=e?e.apply(this,a):a[0],o=n.cache;if(o.has(i))return o.get(i);var l=t.apply(this,a);return n.cache=o.set(i,l)||o,l};return n.cache=new(o.Cache||a),n}o.Cache=a,t.exports=o},9601:(t,e,n)=>{var a=n(371),i=n(9152),o=n(5403),l=n(327);t.exports=function(t){return o(t)?a(l(t)):i(t)}},4238:(t,e,n)=>{var a=n(280),i=n(4160),o=n(8612),l=n(7037),s=n(8016),r="[object Map]",c="[object Set]";t.exports=function(t){if(null==t)return 0;if(o(t))return l(t)?s(t):t.length;var e=i(t);return e==r||e==c?t.size:a(t).length}},1865:(t,e,n)=>{var a=n(5393)((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));t.exports=a},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var a=n(4841),i=1/0,o=17976931348623157e292;t.exports=function(t){return t?(t=a(t))===i||t===-i?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var a=n(8601);t.exports=function(t){var e=a(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var a=n(7561),i=n(3218),o=n(3448),l=NaN,s=/^[-+]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 l;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var n=r.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?l:+t}},9833:(t,e,n)=>{var a=n(531);t.exports=function(t){return null==t?"":a(t)}},7955:(t,e,n)=>{var a=n(9833),i=n(3729),o=/&(?:amp|lt|gt|quot|#39);/g,l=RegExp(o.source);t.exports=function(t){return(t=a(t))&&l.test(t)?t.replace(o,i):t}},2628:(t,e,n)=>{var a=n(2777),i=n(3674);t.exports=function(t){return null==t?[]:a(t,i(t))}},8748:(t,e,n)=>{var a=n(9029),i=n(3157),o=n(9833),l=n(2757);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?l(t):a(t):t.match(e)||[]}},3379:(t,e,n)=>{"use strict";var a,i=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),l=[];function s(t){for(var e=-1,n=0;n<l.length;n++)if(l[n].identifier===t){e=n;break}return e}function r(t,e){for(var n={},a=[],i=0;i<t.length;i++){var o=t[i],r=e.base?o[0]+e.base:o[0],c=n[r]||0,u="".concat(r," ").concat(c);n[r]=c+1;var d=s(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(l[d].references++,l[d].updater(p)):l.push({identifier:u,updater:f(p,e),references:1}),a.push(u)}return a}function c(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var i=n.nc;i&&(a.nonce=i)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var l=o(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,a){var i=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var o=document.createTextNode(i),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(o,l[e]):t.appendChild(o)}}function m(t,e,n){var a=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var h=null,_=0;function f(t,e){var n,a,i;if(e.singleton){var o=_++;n=h||(h=c(e)),a=p.bind(null,n,o,!1),i=p.bind(null,n,o,!0)}else n=c(e),a=m.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=r(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<n.length;a++){var i=s(n[a]);l[i].references--}for(var o=r(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===l[u].references&&(l[u].updater(),l.splice(u,1))}n=o}}}},9980:function(t,e,n){var a;"undefined"!=typeof self&&self,a=function(t){return function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));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")}({"01f9":function(t,e,n){"use strict";var a=n("2d00"),i=n("5ca1"),o=n("2aba"),l=n("32e9"),s=n("84f2"),r=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",h="values",_=function(){return this};t.exports=function(t,e,n,f,v,b,g){r(n,e,f);var y,w,x,k=function(t){if(!p&&t in $)return $[t];switch(t){case m:case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",S=v==h,j=!1,$=t.prototype,T=$[d]||$["@@iterator"]||v&&$[v],D=T||k(v),I=v?S?k("entries"):D:void 0,P="Array"==e&&$.entries||T;if(P&&(x=u(P.call(new t)))!==Object.prototype&&x.next&&(c(x,C,!0),a||"function"==typeof x[d]||l(x,d,_)),S&&T&&T.name!==h&&(j=!0,D=function(){return T.call(this)}),a&&!g||!p&&!j&&$[d]||l($,d,D),s[e]=D,s[C]=_,v)if(y={values:S?D:k(h),keys:b?D:k(m),entries:I},g)for(w in y)w in $||o($,w,y[w]);else i(i.P+i.F*(p||j),e,y);return y}},"02f4":function(t,e,n){var a=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,l,s=String(i(e)),r=a(n),c=s.length;return r<0||r>=c?t?"":void 0:(o=s.charCodeAt(r))<55296||o>56319||r+1===c||(l=s.charCodeAt(r+1))<56320||l>57343?t?s.charAt(r):o:t?s.slice(r,r+2):l-56320+(o-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)}},"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}},"0d58":function(t,e,n){var a=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return a(t,i)}},1495:function(t,e,n){var a=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,l=o(e),s=l.length,r=0;s>r;)a.f(t,n=l[r++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var a=n("2aba"),i=n("32e9"),o=n("79e5"),l=n("be13"),s=n("2b4c"),r=n("520a"),c=s("species"),u=!o((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=s(t),m=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),h=m?!o((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(!m||!h||"replace"===t&&!u||"split"===t&&!d){var _=/./[p],f=n(l,p,""[t],(function(t,e,n,a,i){return e.exec===r?m&&!i?{done:!0,value:_.call(e,n,a)}:{done:!0,value:t.call(n,e,a)}:{done:!1}})),v=f[0],b=f[1];a(String.prototype,t,v),i(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"),i=n("7726").document,o=a(i)&&a(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var a=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?a(e):"Object"==(l=a(e))&&"function"==typeof e.callee?"Arguments":l}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var a=n("7726"),i=n("32e9"),o=n("69a8"),l=n("ca5a")("src"),s=n("fa5b"),r="toString",c=(""+s).split(r);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var r="function"==typeof n;r&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(r&&(o(n,l)||i(n,l,t[e]?""+t[e]:c.join(String(e)))),t===a?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,r,(function(){return"function"==typeof this&&this[l]||s.call(this)}))},"2aeb":function(t,e,n){var a=n("cb7c"),i=n("1495"),o=n("e11e"),l=n("613b")("IE_PROTO"),s=function(){},r="prototype",c=function(){var t,e=n("230e")("iframe"),a=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;a--;)delete c[r][o[a]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[r]=a(t),n=new s,s[r]=null,n[l]=t):n=c(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var a=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,l="function"==typeof o;(t.exports=function(t){return a[t]||(a[t]=l&&o[t]||(l?o:i)("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"),i=n("d2c8"),o="includes";a(a.P+a.F*n("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var a=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return a.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var a=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),l=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),a(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},"41a0":function(t,e,n){"use strict";var a=n("2aeb"),i=n("4630"),o=n("7f20"),l={};n("32e9")(l,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=a(l,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var a=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(t){return i(a(t))}}))},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)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var a=n("be13");t.exports=function(t){return Object(a(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}},"520a":function(t,e,n){"use strict";var a,i,o=n("0bfb"),l=RegExp.prototype.exec,s=String.prototype.replace,r=l,c="lastIndex",u=(a=/a/,i=/b*/g,l.call(a,"a"),l.call(i,"a"),0!==a[c]||0!==i[c]),d=void 0!==/()??/.exec("")[1];(u||d)&&(r=function(t){var e,n,a,i,r=this;return d&&(n=new RegExp("^"+r.source+"$(?!\\s)",o.call(r))),u&&(e=r[c]),a=l.call(r,t),u&&a&&(r[c]=r.global?a.index+a[0].length:e),d&&a&&a.length>1&&s.call(a[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(a[i]=void 0)})),a}),t.exports=r},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var a=n("8378"),i=n("7726"),o="__core-js_shared__",l=i[o]||(i[o]={});(t.exports=function(t,e){return l[t]||(l[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var a=n("7726"),i=n("8378"),o=n("32e9"),l=n("2aba"),s=n("9b43"),r="prototype",c=function(t,e,n){var u,d,p,m,h=t&c.F,_=t&c.G,f=t&c.S,v=t&c.P,b=t&c.B,g=_?a:f?a[e]||(a[e]={}):(a[e]||{})[r],y=_?i:i[e]||(i[e]={}),w=y[r]||(y[r]={});for(u in _&&(n=e),n)p=((d=!h&&g&&void 0!==g[u])?g:n)[u],m=b&&d?s(p,a):v&&"function"==typeof p?s(Function.call,p):p,g&&l(g,u,p,t&c.U),y[u]!=p&&o(y,u,m),v&&w[u]!=p&&(w[u]=p)};a.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,n){var a=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],l={};l[t]=e(n),a(a.S+a.F*o((function(){n(1)})),"Object",l)}},"5f1b":function(t,e,n){"use strict";var a=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var a=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return a[t]||(a[t]=i(t))}},"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)}},6762:function(t,e,n){"use strict";var a=n("5ca1"),i=n("c366")(!0);a(a.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var a=n("626a"),i=n("be13");t.exports=function(t){return a(i(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,i;if(e&&"function"==typeof(n=t.toString)&&!a(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!a(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!a(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var a=n("0d58"),i=n("2621"),o=n("52a7"),l=n("4bf8"),s=n("626a"),r=Object.assign;t.exports=!r||n("79e5")((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=l(t),r=arguments.length,c=1,u=i.f,d=o.f;r>c;)for(var p,m=s(arguments[c++]),h=u?a(m).concat(u(m)):a(m),_=h.length,f=0;_>f;)d.call(m,p=h[f++])&&(n[p]=m[p]);return n}:r},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)},"77f1":function(t,e,n){var a=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=a(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var a=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&a(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var a=n("cb7c"),i=n("c69a"),o=n("6a99"),l=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(a(t),e=o(e,!0),a(n),i)try{return l(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}},"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,i){return t.call(e,n,a,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var a=n("2b4c")("unscopables"),i=Array.prototype;null==i[a]&&n("32e9")(i,a,{}),t.exports=function(t){i[a][t]=!0}},"9def":function(t,e,n){var a=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(a(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var a=n("cb7c"),i=n("4bf8"),o=n("9def"),l=n("4588"),s=n("0390"),r=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,m=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,h){return[function(a,i){var o=t(this),l=null==a?void 0:a[e];return void 0!==l?l.call(a,o,i):n.call(String(o),a,i)},function(t,e){var i=h(n,t,this,e);if(i.done)return i.value;var d=a(t),p=String(this),m="function"==typeof e;m||(e=String(e));var f=d.global;if(f){var v=d.unicode;d.lastIndex=0}for(var b=[];;){var g=r(d,p);if(null===g)break;if(b.push(g),!f)break;""===String(g[0])&&(d.lastIndex=s(p,o(d.lastIndex),v))}for(var y,w="",x=0,k=0;k<b.length;k++){g=b[k];for(var C=String(g[0]),S=c(u(l(g.index),p.length),0),j=[],$=1;$<g.length;$++)j.push(void 0===(y=g[$])?y:String(y));var T=g.groups;if(m){var D=[C].concat(j,S,p);void 0!==T&&D.push(T);var I=String(e.apply(void 0,D))}else I=_(C,p,S,j,T,e);S>=x&&(w+=p.slice(x,S)+I,x=S+C.length)}return w+p.slice(x)}];function _(t,e,a,o,l,s){var r=a+t.length,c=o.length,u=m;return void 0!==l&&(l=i(l),u=p),n.call(s,u,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,a);case"'":return e.slice(r);case"<":s=l[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,n){var a=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,n){for(var a=n("cadf"),i=n("0d58"),o=n("2aba"),l=n("7726"),s=n("32e9"),r=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),p=r.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(m),_=0;_<h.length;_++){var f,v=h[_],b=m[v],g=l[v],y=g&&g.prototype;if(y&&(y[u]||s(y,u,p),y[d]||s(y,d,v),r[v]=p,b))for(f in a)y[f]||o(y,f,a[f],!0)}},b0c5:function(t,e,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},c366:function(t,e,n){var a=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,l){var s,r=a(e),c=i(r.length),u=o(l,c);if(t&&n!=n){for(;c>u;)if((s=r[u++])!=s)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return r})),n("a481");var a,i,o="undefined"!=typeof window?window.console:t.console,l=/-(\w)/g,s=(a=function(t){return t.replace(l,(function(t,e){return e?e.toUpperCase():""}))},i=Object.create(null),function(t){return i[t]||(i[t]=a(t))});function r(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(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},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))}},cadf:function(t,e,n){"use strict";var a=n("9c6c"),i=n("d53b"),o=n("84f2"),l=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=l(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,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},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}},ce10:function(t,e,n){var a=n("69a8"),i=n("6821"),o=n("c366")(!1),l=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),r=0,c=[];for(n in s)n!=l&&a(s,n)&&c.push(n);for(;e.length>r;)a(s,n=e[r++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var a=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var a=n("5ca1"),i=n("9def"),o=n("d2c8"),l="startsWith",s=""[l];a(a.P+a.F*n("5147")(l),"String",{startsWith:function(t){var e=o(this,t,l),n=i(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}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(a){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(a.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var a=n("5ca1");a(a.S+a.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var a=n("7726").document;t.exports=a&&a.documentElement},fb15:function(t,e,n){"use strict";var a;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],a=!0,i=!1,o=void 0;try{for(var l,s=t[Symbol.iterator]();!(a=(l=s.next()).done)&&(n.push(l.value),!e||n.length!==e);a=!0);}catch(t){i=!0,o=t}finally{try{a||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var r=n("a352"),c=n.n(r),u=n("c649");function d(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function p(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),d.call(e,t,n)}}function m(t){return["transition-group","TransitionGroup"].includes(t)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var _=["Start","Add","Remove","Update","End"],f=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(_,f).map((function(t){return"on"+t})),b=null,g={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=l(t,1)[0].componentOptions;return!!e&&m(e.tag)}(e);var n=function(t,e,n){var a=0,i=0,o=h(e,n,"header");o&&(a=o.length,t=t?[].concat(s(o),s(t)):s(o));var l=h(e,n,"footer");return l&&(i=l.length,t=t?[].concat(s(t),s(l)):s(l)),{children:t,headerOffset:a,footerOffset:i}}(e,this.$slots,this.$scopedSlots),a=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var r=function(t,e){var n=null,a=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(a("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{})),!e)return n;var i=e.on,o=e.props,l=e.attrs;return a("on",i),a("props",o),Object.assign(n.attrs,l),n}(this.$attrs,this.componentData);return t(this.getTag(),r,a)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.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&&u.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={};_.forEach((function(n){e["on"+n]=p.call(t,n)})),f.forEach((function(n){e["on"+n]=d.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(u.a)(n)]=t.$attrs[n],e}),{}),a=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new c.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(u.a)(e);-1===v.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 i=t.map((function(t){return t.elm})),o=e.length-a,l=s(e).map((function(t,e){return e>=o?i.length:i.indexOf(t)}));return n?l.filter((function(t){return-1!==t})):l}(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&&m(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=s(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,s(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 i=a.realList,o={list:i,component:a};if(e!==n&&i&&a.getUnderlyingVm){var l=a.getUnderlyingVm(n);if(l)return Object.assign(l,o)}return o},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),b=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.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(u.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(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.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=s(e.to.children).filter((function(t){return"none"!==t.style.display})),a=n.indexOf(e.related),i=t.component.getVmIndex(a);return-1===n.indexOf(b)&&e.willInsertAfter?i+1:i},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(t),i=this.context,o=this.computeFutureIndex(a,t);return Object.assign(i,{futureIndex:o}),n(Object.assign({},t,{relatedContext:a,draggedContext:i}),e)},onDragEnd:function(){this.computeIndexes(),b=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",g);var y=g;e.default=y}}).default},t.exports=a(n(8244))},8244:(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},a(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=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},o.apply(this,arguments)}function l(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){i(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,a,i=function(t,e){if(null==t)return{};var n,a,i={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}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")}()}n.r(e),n.d(e,{MultiDrag:()=>ge,Sortable:()=>Lt,Swap:()=>re,default:()=>xe});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),m=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),_=c(/chrome/i)&&c(/android/i),f={capture:!1,passive:!1};function v(t,e,n){t.addEventListener(e,n,!u&&f)}function b(t,e,n){t.removeEventListener(e,n,!u&&f)}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 i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function $(t,e,n){if(t){var a=t.getElementsByTagName(e),i=0,o=a.length;if(n)for(;i<o;i++)n(a[i],i);return a}return[]}function T(){var t=document.scrollingElement;return t||document.documentElement}function D(t,e,n,a,i){if(t.getBoundingClientRect||t===window){var o,l,s,r,c,d,p;if(t!==window&&t!==T()?(l=(o=t.getBoundingClientRect()).top,s=o.left,r=o.bottom,c=o.right,d=o.height,p=o.width):(l=0,s=0,r=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!u))do{if(i&&i.getBoundingClientRect&&("none"!==S(i,"transform")||n&&"static"!==S(i,"position"))){var m=i.getBoundingClientRect();l-=m.top+parseInt(S(i,"border-top-width")),s-=m.left+parseInt(S(i,"border-left-width")),r=l+o.height,c=s+o.width;break}}while(i=i.parentNode);if(a&&t!==window){var h=j(i||t),_=h&&h.a,f=h&&h.d;h&&(r=(l/=f)+(d/=f),c=(s/=_)+(p/=_))}return{top:l,left:s,bottom:r,right:c,width:p,height:d}}}function I(t,e,n){for(var a=O(t,!0),i=D(t)[e];a;){var o=D(a)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return a;if(a===T())break;a=O(a,!1)}return!1}function P(t,e,n){for(var a=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Lt.ghost&&o[i]!==Lt.dragged&&w(o[i],n.draggable,t,!1)){if(a===e)return o[i];a++}i++}return null}function E(t,e){for(var n=t.lastElementChild;n&&(n===Lt.ghost||"none"===S(n,"display")||e&&!g(n,e));)n=n.previousElementSibling;return n||null}function A(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Lt.clone||e&&!g(t,e)||n++;return n}function N(t){var e=0,n=0,a=T();if(t)do{var i=j(t),o=i.a,l=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*l}while(t!==a&&(t=t.parentNode));return[e,n]}function O(t,e){if(!t||!t.getBoundingClientRect)return T();var n=t,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return T();if(a||e)return n;a=!0}}}while(n=n.parentNode);return T()}function M(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 B(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 z(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function F(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 L(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 R(t){S(t,"position",""),S(t,"top",""),S(t,"left",""),S(t,"width",""),S(t,"height","")}var H="Sortable"+(new Date).getTime();function q(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==S(t,"display")&&t!==Lt.ghost){e.push({target:t,rect:D(t)});var n=l({},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 i=!1,o=0;e.forEach((function(t){var e=0,n=t.target,l=n.fromRect,s=D(n),r=n.prevFromRect,c=n.prevToRect,u=t.rect,d=j(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&M(r,s)&&!M(l,s)&&(u.top-s.top)/(u.left-s.left)==(l.top-s.top)/(l.left-s.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)),M(s,l)||(n.prevFromRect=l,n.prevToRect=s,e||(e=a.options.animation),a.animate(n,u,s,e)),e&&(i=!0,o=Math.max(o,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),i?t=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,a){if(a){S(t,"transition",""),S(t,"transform","");var i=j(this.el),o=i&&i.a,l=i&&i.d,s=(e.left-n.left)/(o||1),r=(e.top-n.top)/(l||1);t.animatingX=!!s,t.animatingY=!!r,S(t,"transform","translate3d("+s+"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=[],W={initializeByDefault:!0},U={mount:function(t){for(var e in W)W.hasOwnProperty(e)&&!(e in t)&&(t[e]=W[e]);V.push(t)},pluginEvent:function(t,e,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var i=t+"Global";V.forEach((function(a){e[a.pluginName]&&(e[a.pluginName][i]&&e[a.pluginName][i](l({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](l({sortable:e},n)))}))},initializePlugins:function(t,e,n,a){for(var i in V.forEach((function(a){var i=a.pluginName;if(t.options[i]||a.initializeByDefault){var l=new a(t,e,t.options);l.sortable=t,l.options=t.options,t[i]=l,o(n,l.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var l=this.modifyOption(t,i,t.options[i]);void 0!==l&&(t.options[i]=l)}},getEventProperties:function(t,e){var n={};return V.forEach((function(a){"function"==typeof a.eventProperties&&o(n,a.eventProperties.call(e[a.pluginName],t))})),n},modifyOption:function(t,e,n){var a;return V.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(a=i.optionListeners[e].call(t[i.pluginName],n))})),a}};function Y(t){var e=t.sortable,n=t.rootEl,a=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,r=t.fromEl,c=t.oldIndex,p=t.newIndex,m=t.oldDraggableIndex,h=t.newDraggableIndex,_=t.originalEvent,f=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[H]){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=s||n,b.from=r||n,b.item=i||n,b.clone=o,b.oldIndex=c,b.newIndex=p,b.oldDraggableIndex=m,b.newDraggableIndex=h,b.originalEvent=_,b.pullMode=f?f.lastPutMode:void 0;var w=l({},v,U.getEventProperties(a,e));for(var x in w)b[x]=w[x];n&&n.dispatchEvent(b),g[y]&&g[y].call(e,b)}}var Z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,i=s(n,["evt"]);U.pluginEvent.bind(Lt)(t,e,l({dragEl:X,parentEl:Q,ghostEl:G,rootEl:K,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:at,dragStarted:ft,putSortable:ct,activeSortable:Lt.active,originalEvent:a,oldIndex:it,oldDraggableIndex:lt,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:Mt,unhideGhostForTarget:Bt,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:a})}},i))};function J(t){Y(l({putSortable:ct,cloneEl:nt,targetEl:X,rootEl:K,oldIndex:it,oldDraggableIndex:lt,newIndex:ot,newDraggableIndex:st},t))}var X,Q,G,K,tt,et,nt,at,it,ot,lt,st,rt,ct,ut,dt,pt,mt,ht,_t,ft,vt,bt,gt,yt,wt=!1,xt=!1,kt=[],Ct=!1,St=!1,jt=[],$t=!1,Tt=[],Dt="undefined"!=typeof document,It=h,Pt=d||u?"cssFloat":"float",Et=Dt&&!_&&!h&&"draggable"in document.createElement("div"),At=function(){if(Dt){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),i=P(t,0,e),o=P(t,1,e),l=i&&S(i),s=o&&S(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+D(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(o).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(i&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=a&&"none"===n[Pt]||o&&"none"===n[Pt]&&r+c>a)?"vertical":"horizontal"},Ot=function(t){function e(t,n){return function(a,i,o,l){var s=a.options.group.name&&i.options.group.name&&a.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(a,i,o,l),n)(a,i,o,l);var r=(n?a:i).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var n={},i=t.group;i&&"object"==a(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Mt=function(){!At&&G&&S(G,"display","none")},Bt=function(){!At&&G&&S(G,"display","")};Dt&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var zt=function(t){if(X){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!E(t)){var e=D(t),n=t[H].options.emptyInsertThreshold,a=i>=e.left-n&&i<=e.right+n,s=o>=e.top-n&&o<=e.bottom+n;return n&&a&&s?l=t:void 0}})),l);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[H]._onDragOver(n)}}var i,o,l},Ft=function(t){X&&X.parentNode[H]._isOutsideThisEl(t.target)};function Lt(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=o({},e),t[H]=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!==Lt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in U.initializePlugins(this,t,n),n)!(a in e)&&(e[a]=n[a]);for(var i in Ot(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Et,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?v(t,"pointerdown",this._onTapStart):(v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,q())}function Rt(t,e,n,a,i,o,l,s){var r,c,p=t[H],m=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=i||e,r.relatedRect=o||D(e),r.willInsertAfter=s,r.originalEvent=l,t.dispatchEvent(r),m&&(c=m.call(p,r,l)),c}function Ht(t){t.draggable=!1}function qt(){$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 Wt(t){return setTimeout(t,0)}function Ut(t){return clearTimeout(t)}Lt.prototype={constructor:Lt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,X):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,a=this.options,i=a.preventOnFilter,o=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,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),!X&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||a.disabled||r.isContentEditable||(s=w(s,a.draggable,n,!1))&&s.animated||et===s)){if(it=A(s),lt=A(s,a.draggable),"function"==typeof c){if(c.call(this,t,s,this))return J({sortable:e,rootEl:r,name:"filter",targetEl:s,toEl:n,fromEl:n}),Z("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(a){if(a=w(r,a.trim(),n,!1))return J({sortable:e,rootEl:a,name:"filter",targetEl:s,fromEl:n,toEl:n}),Z("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());a.handle&&!w(r,a.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var a,i=this,o=i.el,l=i.options,s=o.ownerDocument;if(n&&!X&&n.parentNode===o){var r=D(n);if(K=o,Q=(X=n).parentNode,tt=X.nextSibling,et=n,rt=l.group,Lt.dragged=X,ut={target:X,clientX:(e||t).clientX,clientY:(e||t).clientY},ht=ut.clientX-r.left,_t=ut.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,X.style["will-change"]="all",a=function(){Z("delayEnded",i,{evt:t}),Lt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(X.draggable=!0),i._triggerDragStart(t,e),J({sortable:i,name:"choose",originalEvent:t}),C(X,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){$(X,t.trim(),Ht)})),v(s,"dragover",zt),v(s,"mousemove",zt),v(s,"touchmove",zt),v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),Z("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))a();else{if(Lt.eventCanceled)return void this._onDrop();v(s,"mouseup",i._disableDelayedDrag),v(s,"touchend",i._disableDelayedDrag),v(s,"touchcancel",i._disableDelayedDrag),v(s,"mousemove",i._delayedDragTouchMoveHandler),v(s,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&v(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,l.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(){X&&Ht(X),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?v(document,"pointermove",this._onTouchMove):v(document,e?"touchmove":"mousemove",this._onTouchMove):(v(X,"dragend",this),v(K,"dragstart",this._onDragStart));try{document.selection?Wt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,K&&X){Z("dragStarted",this,{evt:e}),this.nativeDraggable&&v(document,"dragover",Ft);var n=this.options;!t&&C(X,n.dragClass,!1),C(X,n.ghostClass,!0),Lt.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Mt();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(X.parentNode[H]._isOutsideThisEl(t),e)do{if(e[H]){if(e[H]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,a=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=G&&j(G,!0),l=G&&o&&o.a,s=G&&o&&o.d,r=It&&yt&&N(yt),c=(i.clientX-ut.clientX+a.x)/(l||1)+(r?r[0]-jt[0]:0)/(l||1),u=(i.clientY-ut.clientY+a.y)/(s||1)+(r?r[1]-jt[1]:0)/(s||1);if(!Lt.active&&!wt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(G){o?(o.e+=c-(pt||0),o.f+=u-(mt||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");S(G,"webkitTransform",d),S(G,"mozTransform",d),S(G,"msTransform",d),S(G,"transform",d),pt=c,mt=u,dt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!G){var t=this.options.fallbackOnBody?document.body:K,e=D(X,!0,It,!0,t),n=this.options;if(It){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(G=X.cloneNode(!0),n.ghostClass,!1),C(G,n.fallbackClass,!0),C(G,n.dragClass,!0),S(G,"transition",""),S(G,"transform",""),S(G,"box-sizing","border-box"),S(G,"margin",0),S(G,"top",e.top),S(G,"left",e.left),S(G,"width",e.width),S(G,"height",e.height),S(G,"opacity","0.8"),S(G,"position",It?"absolute":"fixed"),S(G,"zIndex","100000"),S(G,"pointerEvents","none"),Lt.ghost=G,t.appendChild(G),S(G,"transform-origin",ht/parseInt(G.style.width)*100+"% "+_t/parseInt(G.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,a=t.dataTransfer,i=n.options;Z("dragStart",this,{evt:t}),Lt.eventCanceled?this._onDrop():(Z("setupClone",this),Lt.eventCanceled||((nt=F(X)).draggable=!1,nt.style["will-change"]="",this._hideClone(),C(nt,this.options.chosenClass,!1),Lt.clone=nt),n.cloneId=Wt((function(){Z("clone",n),Lt.eventCanceled||(n.options.removeCloneOnHide||K.insertBefore(nt,X),n._hideClone(),J({sortable:n,name:"clone"}))})),!e&&C(X,i.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",i.setData&&i.setData.call(n,a,X)),v(document,"drop",n),S(X,"transform","translateZ(0)")),wt=!0,n._dragStartId=Wt(n._dragStarted.bind(n,e,t)),v(document,"selectstart",n),ft=!0,m&&S(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,a,i,o=this.el,s=t.target,r=this.options,c=r.group,u=Lt.active,d=rt===c,p=r.sort,m=ct||u,h=this,_=!1;if(!$t){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=w(s,r.draggable,o,!0),M("dragOver"),Lt.eventCanceled)return _;if(X.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return F(!1);if(xt=!1,u&&!r.disabled&&(d?p||(a=!K.contains(X)):ct===this||(this.lastPutMode=rt.checkPull(this,u,X,t))&&c.checkPut(this,u,X,t))){if(i="vertical"===this._getDirection(t,s),e=D(X),M("dragOverValid"),Lt.eventCanceled)return _;if(a)return Q=K,B(),this._hideClone(),M("revert"),Lt.eventCanceled||(tt?K.insertBefore(X,tt):K.appendChild(X)),F(!0);var f=E(o,r.draggable);if(!f||function(t,e,n){var a=D(E(n.el,n.options.draggable)),i=10;return e?t.clientX>a.right+i||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+i}(t,i,this)&&!f.animated){if(f===X)return F(!1);if(f&&o===t.target&&(s=f),s&&(n=D(s)),!1!==Rt(K,o,X,e,s,n,t,!!s))return B(),o.appendChild(X),Q=o,L(),F(!0)}else if(s.parentNode===o){n=D(s);var v,b,g,y=X.parentNode!==o,x=!function(t,e,n){var a=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,l=n?e.left:e.top,s=n?e.right:e.bottom,r=n?e.width:e.height;return a===l||i===s||a+o/2===l+r/2}(X.animated&&X.toRect||e,s.animated&&s.toRect||n,i),k=i?"top":"left",j=I(s,"top","top")||I(X,"top","top"),$=j?j.scrollTop:void 0;if(vt!==s&&(b=n[k],Ct=!1,St=!x&&r.invertSwap||y),v=function(t,e,n,a,i,o,l,s){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(!l)if(s&&gt<c*i){if(!Ct&&(1===bt?r>u+c*o/2:r<d-c*o/2)&&(Ct=!0),Ct)p=!0;else if(1===bt?r<u+gt:r>d-gt)return-bt}else if(r>u+c*(1-i)/2&&r<d-c*(1-i)/2)return function(t){return A(X)<A(t)?1:-1}(e);if((p=p||l)&&(r<u+c*o/2||r>d-c*o/2))return r>u+c/2?1:-1;return 0}(t,s,n,i,x?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,St,vt===s),0!==v){var T=A(X);do{T-=v,g=Q.children[T]}while(g&&("none"===S(g,"display")||g===G))}if(0===v||g===s)return F(!1);vt=s,bt=v;var P=s.nextElementSibling,N=!1,O=Rt(K,o,X,e,s,n,t,N=1===v);if(!1!==O)return 1!==O&&-1!==O||(N=1===O),$t=!0,setTimeout(qt,30),B(),N&&!P?o.appendChild(X):s.parentNode.insertBefore(X,N?P:s),j&&z(j,0,$-j.scrollTop),Q=X.parentNode,void 0===b||St||(gt=Math.abs(b-D(s)[k])),L(),F(!0)}if(o.contains(X))return F(!1)}return!1}function M(r,c){Z(r,h,l({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:a,dragRect:e,targetRect:n,canSort:p,fromSortable:m,target:s,completed:F,onMove:function(n,a){return Rt(K,o,X,e,n,D(n),t,a)},changed:L},c))}function B(){M("dragOverAnimationCapture"),h.captureAnimationState(),h!==m&&m.captureAnimationState()}function F(e){return M("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(h),h!==m&&(C(X,ct?ct.options.ghostClass:u.options.ghostClass,!1),C(X,r.ghostClass,!0)),ct!==h&&h!==Lt.active?ct=h:h===Lt.active&&ct&&(ct=null),m===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){M("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===X&&!X.animated||s===o&&!s.animated)&&(vt=null),r.dragoverBubble||t.rootEl||s===document||(X.parentNode[H]._isOutsideThisEl(t.target),!e&&zt(t)),!r.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function L(){ot=A(X),st=A(X,r.draggable),J({sortable:h,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",zt),b(document,"mousemove",zt),b(document,"touchmove",zt)},_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;ot=A(X),st=A(X,n.draggable),Z("drop",this,{evt:t}),Q=X&&X.parentNode,ot=A(X),st=A(X,n.draggable),Lt.eventCanceled||(wt=!1,St=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ut(this.cloneId),Ut(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&S(document.body,"user-select",""),S(X,"transform",""),t&&(ft&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(K===Q||ct&&"clone"!==ct.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),X&&(this.nativeDraggable&&b(X,"dragend",this),Ht(X),X.style["will-change"]="",ft&&!wt&&C(X,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(X,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:t}),K!==Q?(ot>=0&&(J({rootEl:Q,name:"add",toEl:Q,fromEl:K,originalEvent:t}),J({sortable:this,name:"remove",toEl:Q,originalEvent:t}),J({rootEl:Q,name:"sort",toEl:Q,fromEl:K,originalEvent:t}),J({sortable:this,name:"sort",toEl:Q,originalEvent:t})),ct&&ct.save()):ot!==it&&ot>=0&&(J({sortable:this,name:"update",toEl:Q,originalEvent:t}),J({sortable:this,name:"sort",toEl:Q,originalEvent:t})),Lt.active&&(null!=ot&&-1!==ot||(ot=it,st=lt),J({sortable:this,name:"end",toEl:Q,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),K=X=Q=G=tt=nt=et=at=ut=dt=ft=ot=st=it=lt=vt=bt=ct=rt=Lt.dragged=Lt.ghost=Lt.clone=Lt.active=null,Tt.forEach((function(t){t.checked=!0})),Tt.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":X&&(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,i=n.length,o=this.options;a<i;a++)w(t=n[a],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,a){var i=n.children[a];w(i,this.options.draggable,n,!1)&&(e[t]=i)}),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=U.modifyOption(this,t,e);n[t]=void 0!==a?a:e,"group"===t&&Ot(n)},destroy:function(){Z("destroy",this);var t=this.el;t[H]=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(),this._disableDelayedDragEvents(),kt.splice(kt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!at){if(Z("hideClone",this),Lt.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(Z("showClone",this),Lt.eventCanceled)return;K.contains(X)&&!this.options.group.revertClone?K.insertBefore(nt,X):tt?K.insertBefore(nt,tt):K.appendChild(nt),this.options.group.revertClone&&this.animate(X,nt),S(nt,"display",""),at=!1}}else this._hideClone()}},Dt&&v(document,"touchmove",(function(t){(Lt.active||wt)&&t.cancelable&&t.preventDefault()})),Lt.utils={on:v,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:B,closest:w,toggleClass:C,clone:F,index:A,nextTick:Wt,cancelNextTick:Ut,detectDirection:Nt,getChild:P},Lt.get=function(t){return t[H]},Lt.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&&(Lt.utils=l({},Lt.utils,t.utils)),U.mount(t)}))},Lt.create=function(t,e){return new Lt(t,e)},Lt.version="1.10.2";var Yt,Zt,Jt,Xt,Qt,Gt,Kt=[],te=!1;function ee(){Kt.forEach((function(t){clearInterval(t.pid)})),Kt=[]}function ne(){clearInterval(Gt)}var ae,ie=B((function(t,e,n,a){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,r=e.scrollSpeed,c=T(),u=!1;Zt!==n&&(Zt=n,ee(),Yt=e.scroll,i=e.scrollFn,!0===Yt&&(Yt=O(n,!0)));var d=0,p=Yt;do{var m=p,h=D(m),_=h.top,f=h.bottom,v=h.left,b=h.right,g=h.width,y=h.height,w=void 0,x=void 0,k=m.scrollWidth,C=m.scrollHeight,j=S(m),$=m.scrollLeft,I=m.scrollTop;m===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 P=w&&(Math.abs(b-o)<=s&&$+g<k)-(Math.abs(v-o)<=s&&!!$),E=x&&(Math.abs(f-l)<=s&&I+y<C)-(Math.abs(_-l)<=s&&!!I);if(!Kt[d])for(var A=0;A<=d;A++)Kt[A]||(Kt[A]={});Kt[d].vx==P&&Kt[d].vy==E&&Kt[d].el===m||(Kt[d].el=m,Kt[d].vx=P,Kt[d].vy=E,clearInterval(Kt[d].pid),0==P&&0==E||(u=!0,Kt[d].pid=setInterval(function(){a&&0===this.layer&&Lt.active._onTouchMove(Qt);var e=Kt[this.layer].vy?Kt[this.layer].vy*r:0,n=Kt[this.layer].vx?Kt[this.layer].vx*r:0;"function"==typeof i&&"continue"!==i.call(Lt.dragged.parentNode[H],n,e,t,Qt,Kt[this.layer].el)||z(Kt[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=O(p,!1)));te=u}}),30),oe=function(t){var e=t.originalEvent,n=t.putSortable,a=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var r=n||i;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),r&&!r.el.contains(u)&&(o("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function le(){}function se(){}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,i=t.activeSortable,o=t.changed,l=t.cancel;if(i.options.swap){var s=this.sortable.el,r=this.options;if(n&&n!==s){var c=ae;!1!==a(n)?(C(n,r.swapClass,!0),ae=n):ae=null,c&&c!==ae&&C(c,r.swapClass,!1)}o(),e(!0),l()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,a=t.dragEl,i=n||this.sortable,o=this.options;ae&&C(ae,o.swapClass,!1),ae&&(o.swap||n&&n.options.swap)&&a!==ae&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),function(t,e){var n,a,i=t.parentNode,o=e.parentNode;if(!i||!o||i.isEqualNode(e)||o.isEqualNode(t))return;n=A(t),a=A(e),i.isEqualNode(o)&&n<a&&a++;i.insertBefore(e,i.children[n]),o.insertBefore(t,o.children[a])}(a,ae),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){ae=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ae}}})}le.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=P(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:oe},o(le,{pluginName:"revertOnSpill"}),se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:oe},o(se,{pluginName:"removeOnSpill"});var ce,ue,de,pe,me,he=[],_e=[],fe=!1,ve=!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?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var a="";he.length&&ue===t?he.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=~he.indexOf(de)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var a=0;a<he.length;a++)_e.push(F(he[a])),_e[a].sortableIndex=he[a].sortableIndex,_e[a].draggable=!1,_e[a].style["will-change"]="",C(_e[a],this.options.selectedClass,!1),he[a]===de&&C(_e[a],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,a=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||he.length&&ue===e&&(ye(!0,n),a("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,a=t.cancel;this.isMultiDrag&&(ye(!1,n),_e.forEach((function(t){S(t,"display","")})),e(),me=!1,a())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),a=t.cancel;this.isMultiDrag&&(_e.forEach((function(t){S(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),me=!0,a())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),he.forEach((function(t){t.sortableIndex=A(t)})),he=he.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)){he.forEach((function(t){t!==de&&S(t,"position","absolute")}));var a=D(de,!1,!0,!0);he.forEach((function(t){t!==de&&L(t,a)})),ve=!0,fe=!0}n.animateAll((function(){ve=!1,fe=!1,e.options.animation&&he.forEach((function(t){R(t)})),e.options.sort&&we()}))}},dragOver:function(t){var e=t.target,n=t.completed,a=t.cancel;ve&&~he.indexOf(e)&&(n(!1),a())},revert:function(t){var e=t.fromSortable,n=t.rootEl,a=t.sortable,i=t.dragRect;he.length>1&&(he.forEach((function(t){a.addAnimationState({target:t,rect:ve?D(t):i}),R(t),t.fromRect=i,e.removeAnimationState(t)})),ve=!1,function(t,e){he.forEach((function(n,a){var i=e.children[n.sortableIndex+(t?Number(a):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,a=t.insertion,i=t.activeSortable,o=t.parentEl,l=t.putSortable,s=this.options;if(a){if(n&&i._hideClone(),fe=!1,s.animation&&he.length>1&&(ve||!n&&!i.options.sort&&!l)){var r=D(de,!1,!0,!0);he.forEach((function(t){t!==de&&(L(t,r),o.appendChild(t))})),ve=!0}if(!n)if(ve||we(),he.length>1){var c=me;i._showClone(e),i.options.animation&&!me&&c&&_e.forEach((function(t){i.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,a=t.activeSortable;if(he.forEach((function(t){t.thisAnimationDuration=null})),a.options.animation&&!n&&a.multiDrag.isMultiDrag){pe=o({},e);var i=j(de,!0);pe.top-=i.f,pe.left-=i.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,we())},drop:function(t){var e=t.originalEvent,n=t.rootEl,a=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,l=t.oldIndex,s=t.putSortable,r=s||this.sortable;if(e){var c=this.options,u=a.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(de,c.selectedClass,!~he.indexOf(de)),~he.indexOf(de))he.splice(he.indexOf(de),1),ce=null,Y({sortable:i,rootEl:n,name:"deselect",targetEl:de,originalEvt:e});else{if(he.push(de),Y({sortable:i,rootEl:n,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&i.el.contains(ce)){var d,p,m=A(ce),h=A(de);if(~m&&~h&&m!==h)for(h>m?(p=m,d=h):(p=h,d=m+1);p<d;p++)~he.indexOf(u[p])||(C(u[p],c.selectedClass,!0),he.push(u[p]),Y({sortable:i,rootEl:n,name:"select",targetEl:u[p],originalEvt:e}))}else ce=de;ue=r}if(be&&this.isMultiDrag){if((a[H].options.sort||a!==n)&&he.length>1){var _=D(de),f=A(de,":not(."+this.options.selectedClass+")");if(!fe&&c.animation&&(de.thisAnimationDuration=null),r.captureAnimationState(),!fe&&(c.animation&&(de.fromRect=_,he.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ve?D(t):_;t.fromRect=e,r.addAnimationState({target:t,rect:e})}}))),we(),he.forEach((function(t){u[f]?a.insertBefore(t,u[f]):a.appendChild(t),f++})),l===A(de))){var v=!1;he.forEach((function(t){t.sortableIndex===A(t)||(v=!0)})),v&&o("update")}he.forEach((function(t){R(t)})),r.animateAll()}ue=r}(n===a||s&&"clone"!==s.lastPutMode)&&_e.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,_e.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(!(void 0!==be&&be||ue!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;he.length;){var e=he[0];C(e,this.options.selectedClass,!1),he.shift(),Y({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)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[H];e&&e.options.multiDrag&&!~he.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),C(t,e.options.selectedClass,!0),he.push(t))},deselect:function(t){var e=t.parentNode[H],n=he.indexOf(t);e&&e.options.multiDrag&&~n&&(C(t,e.options.selectedClass,!1),he.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return he.forEach((function(a){var i;e.push({multiDragElement:a,index:a.sortableIndex}),i=ve&&a!==de?-1:ve?A(a,":not(."+t.options.selectedClass+")"):A(a),n.push({multiDragElement:a,index:i})})),{items:r(he),clones:[].concat(_e),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){_e.forEach((function(n,a){var i=e.children[n.sortableIndex+(t?Number(a):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function we(){he.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Lt.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?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):e.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(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(){Qt=Zt=Yt=te=Gt=Jt=Xt=null,Kt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,a=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(a,i);if(Qt=t,e||d||u||m){ie(t,this.options,o,e);var l=O(o,!0);!te||Gt&&a===Jt&&i===Xt||(Gt&&ne(),Gt=setInterval((function(){var o=O(document.elementFromPoint(a,i),!0);o!==l&&(l=o,ee()),ie(t,n.options,o,e)}),10),Jt=a,Xt=i)}else{if(!this.options.bubbleScroll||O(o,!0)===T())return void ee();ie(t,this.options,O(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Lt.mount(se,le);const xe=Lt}},e={};function n(a){var i=e[a];if(void 0!==i)return i.exports;var o=e[a]={id:a,loaded:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.nc=void 0,(()=>{"use strict";var t=n(2152),e=n.n(t);function a(t,e,n,a,i,o,l,s){var r,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),a&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),l?(r=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=r):i&&(r=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var u=c.render;c.render=function(t,e){return r.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,r):[r]}return{exports:t,options:c}}const i=a({name:"GetPro",data:function(){return{has_pro:window.ninja_table_admin.hasPro}},props:{text:{type:String,default:"Get Pro"},type:{type:String,default:"danger"},size:{type:String,default:"mini"}}},(function(){var t=this,e=t._self._c;return t.has_pro?t._e():e("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"}},[e("el-button",{attrs:{type:t.type,size:t.size}},[t._v(t._s(t.$t(t.text)))])],1)}),[],!1,null,null,null).exports,o={name:"home",components:{GetPro:i},data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[],img_url:window.ninja_table_admin.img_url}},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"}])},imageUrl:function(t){return this.img_url+t}},mounted:function(){this.setTopMenu()}};var l=n(3379),s=n.n(l),r=n(4861),c={insert:"head",singleton:!1};s()(r.Z,c);r.Z.locals;const u=a(o,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_main_nav"},[e("span",{staticClass:"plugin-name"},[e("img",{staticStyle:{height:"36px"},attrs:{src:t.imageUrl("ninja_table.svg"),alt:"ninja-tables"}}),t._v(" "),t.has_pro?e("span",{staticClass:"pro"},[t._v(t._s(t.$t("Pro")))]):t._e()]),t._v(" "),e("el-menu",{staticStyle:{float:"right"},attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[t._l(t.topMenus,(function(n){return e("el-menu-item",{key:n.route,attrs:{index:n.route,route:{name:n.route}}},[e("i",{class:n.icon_class}),t._v(" "),e("span",[t._v("\n                      "+t._s(n.title)+"\n                  ")])])})),t._v(" "),t.has_pro?t._e():e("el-menu-item",{attrs:{index:"buy-pro"}},[e("get-pro",{attrs:{size:"small"}})],1)],2)],1),t._v(" "),e("router-view",{attrs:{"has-pro":t.has_pro}})],1)}),[],!1,null,null,null).exports;const d={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}};var p=n(7500),m={insert:"head",singleton:!1};s()(p.Z,m);p.Z.locals;const h=a(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_intro_welcome"},[e("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),e("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),e("div",{staticClass:"ninja_actions"},[e("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n            Create Your First Table\n        ")]),t._v(" "),e("router-link",{attrs:{to:{name:"import_tables"}}},[e("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),e("hr"),t._v(" "),t._m(0)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_docs"},[e("h4",[t._v("Ninja Tables Documentation:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[t._v("\n                    Demo and Basic Settings\n                ")])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[t._v("\n                    Setting Up a Table\n                ")])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[t._v("\n                    Make Your Table Looks Great on All Devices\n                ")])])])])}],!1,null,null,null).exports;const f=a({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(){var t=this,e=t._self._c;return e("div",{staticClass:"tablenav-pages"},[t.paginate.total?e("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),e("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[e("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),e("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),e("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            "),e("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[e("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),e("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])}),[],!1,null,null,null).exports,v={name:"Home",components:{GetPro:i,ninja_pagination:f},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,this.$get("tables/",{per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString,orderBy:this.orderBy,order:this.order}).then((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)})).catch((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;this.$del("tables/"+t).then((function(t){e.fetchTables(),e.$message({type:"success",message:t.message})})).catch((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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.$post("tables/"+t+"/duplicate").then((function(t){e.fetchTables(),e.$message({type:"success",message:t.data.message}),"drag_and_drop"===n?e.$router.push({name:"table_builder_edit_table",params:{table_id:t.data.table_id}}):e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})})).catch((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()}};var b=n(8388),g={insert:"head",singleton:!1};s()(b.Z,g);b.Z.locals;const y=a(v,(function(){var t=this,e=t._self._c;return e("div",[e("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}},[e("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(n){return["drag_and_drop"===n.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:n.row.ID}}}},[t._v("\n              "+t._s(n.row.ID)+"\n            ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:n.row.ID}}}},[t._v("\n              "+t._s(n.row.ID)+"\n            ")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("strong",[t.shouldBeVisible(n.row)?["drag_and_drop"===n.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:n.row.ID}}}},[t._v("\n                        "+t._s(t.$t(n.row.post_title))+"\n                      ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:n.row.ID}}}},[t._v("\n                        "+t._s(t.$t(n.row.post_title))+"\n                      ")])]:[t._v("\n                        "+t._s(n.row.post_title)+"\n                    ")],t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=n.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n                        ("+t._s(n.row.post_status)+")\n                    ")])],2),t._v(" "),e("div",{staticClass:"row-actions"},[t.shouldBeVisible(n.row)?e("span",{staticClass:"row-edit"},["drag_and_drop"===n.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:n.row.ID}}}},[t._v("\n                            "+t._s(t.$t("Edit"))+"\n                          ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:n.row.ID}}}},[t._v("\n                            "+t._s(t.$t("Edit"))+"\n                          ")]),t._v(" |\n                    ")],1):t._e(),t._v(" "),t.shouldBeVisible(n.row)?e("span",{staticClass:"row-preview"},[e("a",{attrs:{rel:"noopener",href:n.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n                    ")]):t._e(),t._v(" "),t.shouldBeVisible(n.row)?e("span",{staticClass:"row-duplicate"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.duplicate(n.row.ID,n.row.dataSourceType)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n                    ")]):t._e(),t._v(" "),t.shouldBeVisible(n.row)&&n.row.fluentfrom_url?e("span",{staticClass:"row-duplicate"},[e("a",{attrs:{href:n.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n                    ")]):t._e(),t._v(" "),e("span",{staticClass:"row-delete"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.confirmDeleteTable(n.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(n.row.post_content)}})]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(n){return["drag_and_drop"===n.row.dataSourceType?e("strong",[t._v(t._s(t.$t("Drag & Drop Table")))]):e("strong",[t._v(t._s(t.dataSourceType(n.row)))]),t._v(" "),n.row.remoteURL?[e("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:n.row.remoteURL,placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Source of data")]),t._v(" "),e("p",[t._v(t._s(n.row.remoteURL))])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])]:t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},["drag_and_drop"===n.row.dataSourceType?e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_table_builder id="'.concat(n.row.ID,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_table_builder id="'+t._s(n.row.ID)+'"]\n                    ')]):e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'.concat(n.row.ID,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(n.row.ID)+'"]\n                    ')])])]}}])})],1),t._v(" "),e("div",{staticClass:"pull-right"},[e("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?e("div",[e("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[e("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?e("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[e("hr"),t._v(" "),e("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),e("get-pro")],1):t._e()],1)}),[],!1,null,null,null).exports;const w={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(){}};var x=n(1664),k={insert:"head",singleton:!1};s()(x.Z,k);x.Z.locals;const C=a(w,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():e("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[e("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),e("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),e("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)}),[function(){var t=this._self._c;return t("p",{staticStyle:{"font-style":"italic"}},[t("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}],!1,null,null,null).exports;function S(t){return S="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},S(t)}function j(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function I(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==S(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==S(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===S(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const P={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(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e,n){e.operators=j(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=j(e.operators.concat(this.other_operators)):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=j(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=j(t.split(".")),i=a[0],o=a[1],l=this.allPostTypes[i].taxonomies[o];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.$get("wp-posts/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)}))}))}};var E=n(2635),A={insert:"head",singleton:!1};s()(E.Z,A);E.Z.locals;const N=a(P,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-post-conditions"},[e("el-row",[e("el-col",{attrs:{md:21}},[e("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[e("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(n,a){return[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},on:{change:function(e){return t.setOperators(e,n)}},model:{value:n.field,callback:function(e){t.$set(n,"field",e)},expression:"condition.field"}},t._l(t.fields,(function(t){return e("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},model:{value:n.operator,callback:function(e){t.$set(n,"operator",e)},expression:"condition.operator"}},t._l(n.operators,(function(t){return e("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(n)||t.isDateField(n)?!t.isSelectable(n)&&t.isDateField(n)?e("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:n.value,callback:function(e){t.$set(n,"value",e)},expression:"condition.value"}}):t.isSelectable(n)?e("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"condition.value"}},t._l(n.selectableOptions,(function(t){return e("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1):t._e():e("el-input",{attrs:{placeholder:"Value"},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"condition.value"}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[e("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?e("div",{staticClass:"ninja_post_query_limit"},[e("div",{staticClass:"ninja_form_group"},[e("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Query Limit")]),t._v(" "),e("p",[t._v("\n                            Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("div",{staticClass:"ninja_form_group"},[e("label",[t._v(t._s(t.$t("Order By Column"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Order By Column")]),t._v(" "),e("p",[t._v("\n                            Please specify order by column. The script will order by with the selected column\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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 e("el-option",{key:t,attrs:{value:t,label:t}})})),1)],1),t._v(" "),e("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[e("label",[t._v(t._s(t.$t("Order By Type"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Order By Type")]),t._v(" "),e("p",[t._v("\n                            Please specify order by type. The script will order with your selected type\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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"}},[e("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),e("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)}),[function(){var t=this._self._c;return t("p",[t("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}],!1,null,null,null).exports;function O(t){return 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},O(t)}function M(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function F(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==O(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===O(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const L={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(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.default_condition))},removeCondition:function(t,e){this.metas.splice(t,1)},setOperators:function(t,e){e.operators=M(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)}}};var R=n(7489),H={insert:"head",singleton:!1};s()(R.Z,H);R.Z.locals;const q=a(L,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-post-conditions"},[e("el-row",[e("el-col",{attrs:{md:21}},[e("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[e("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(n,a){return[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:7,sm:7}},[e("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(e){return t.setOperators(e,n)}},model:{value:n.field,callback:function(e){t.$set(n,"field",e)},expression:"condition.field"}})],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},model:{value:n.operator,callback:function(e){t.$set(n,"operator",e)},expression:"condition.operator"}},t._l(n.operators,(function(t){return e("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-input",{attrs:{placeholder:"Value"},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(n.operator)?[e("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[e("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)}),[],!1,null,null,null).exports;const V={name:"PremiumNotice",components:{GetPro:i},props:["highlight"]};var W=n(1758),U={insert:"head",singleton:!1};s()(W.Z,U);W.Z.locals;const Y=a(V,(function(){var t=this,e=t._self._c;return e("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[e("p",[t._v("\n        This is a Premium feature. Get\n        "),t.highlight?e("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),e("b",[t._v("unlimited customizations")]),t._v(",\n        "),e("b",[t._v("data filters")]),t._v(",\n        "),e("b",[t._v("professional looks")]),t._v(",\n        "),e("b",[t._v("Many More Integrations")]),t._v("\n        and so many things from the Pro version.\n    ")]),t._v(" "),e("get-pro")],1)}),[],!1,null,"4457aa2e",null).exports;const Z=a({name:"UpgradeNotice"},(function(){var t=this._self._c;return t("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[t("p",[this._v("\n        Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n    ")])])}),[],!1,null,null,null).exports,J={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":N,PremiumNotice:Y,UpgradeNotice:Z,WpPostMetaQuery:q},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"],currentUserPosts:!1}},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,i=[];this.selected_post_types.forEach((function(t){a.all_types[t]&&a.all_types[t].fields.forEach((function(t){i.push({key:t,label:t})}))})),this.post_types_fields=this.all_fields.concat(i),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,current_user_posts:this.currentUserPosts};_.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 i in a)n+=" "+a[i];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("wp-posts").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.currentUserPosts="true"===t.config.table.query_extra.current_user_posts,t.handlePostTypeChange())})).catch((function(t){console.log(t)})),this.loading=!1}},mounted:function(){this.getPostTypes()}};var X=n(5688),Q={insert:"head",singleton:!1};s()(X.Z,Q);X.Z.locals;const G=a(J,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?e("div",[t.hasPLainLayout?[e("el-row",[e("el-col",{staticClass:"table-rows",attrs:{md:12}},[e("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(" "),e("el-col",{staticClass:"table-rows",attrs:{md:12}},[e("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():e("el-row",[e("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("el-checkbox",{model:{value:t.currentUserPosts,callback:function(e){t.currentUserPosts=e},expression:"currentUserPosts"}},[t._v("Logged in user posts")]),t._v(" "),e("template",{slot:"title"},[e("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),e("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(" "),e("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),e("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),e("el-row",[e("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():[e("h3",[t._v("\n                Construct Table from Posts / CPTs\n            ")]),t._v(" "),t._m(0),t._v(" "),e("el-steps",{attrs:{active:t.active_step,"align-center":""}},[e("el-step",{attrs:{title:"Step 1"}}),t._v(" "),e("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[e("el-row",{staticStyle:{"margin-top":"20px"}},[e("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("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?[e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("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(" "),e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",[e("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[e("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[e("el-checkbox",{model:{value:t.currentUserPosts,callback:function(e){t.currentUserPosts=e},expression:"currentUserPosts"}},[t._v("Logged in user posts")]),t._v(" "),t.conditions_section?e("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(" "),e("el-row",[e("el-col",{attrs:{md:12}},[e("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(" "),e("el-col",{attrs:{md:12}},[t.active_step>0?e("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):[e("upgrade-notice")]:[e("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"ninja_subtitle"},[t._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://ninjatables.com/docs/create-custom-column-in-wp-post-cpt-woocommerce-table/"}},[t._v("Learn more\n                about this module")])])}],!1,null,null,null).exports;var K=n(6073),tt=n.n(K);const et=a({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;tt()(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(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,(function(n,a){return e("div",{staticClass:"nt_each_selection"},[e("div",{staticClass:"nt_query_header"},[e("h3",[t._v(t._s(n.title))]),t._v(" "),e("p",[t._v(t._s(n.description))])]),t._v(" "),e("div",{staticClass:"nt_query_body"},[e("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(n.terms,(function(n){return e("el-checkbox",{key:n.slug,attrs:{label:n.slug}},[t._v(t._s(n.name)+" ("+t._s(n.count)+")\n                ")])})),1)],1)])})),t._v(" "),e("div",{staticClass:"nt_each_selection"},[e("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 "),e("b",[t._v("out of stocks")]),t._v(" items\n        ")])],1),t._v(" "),e("div",{staticClass:"nt_each_selection"},[e("label",[t._v("\n            Initial Order By\n            "),e("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,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1),t._v(" "),e("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"}},[e("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),e("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)}),[],!1,null,null,null).exports;const nt=a({name:"woo_product_table",components:{WooNav:et},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 i in a)n+=" "+a[i];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(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("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(" "),e("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),e("div",{staticClass:"form-group"},[e("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)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"nt_module_header"},[e("h3",[t._v("\n            Construct Table from Your WooCommerce Products\n        ")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n            Displays products content in a searchable, sortable with Ninja Tables.\n          "),e("a",{attrs:{target:"_blank",href:"https://ninjatables.com/docs/woocommerce-integration/"}},[t._v("\n            Learn more about woocommerece integration\n          ")])])])}],!1,null,null,null).exports;const at={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("fluent-forms").then((function(e){return t.forms=e.data})).catch((function(t){return console.log(t)})),this.fetching=!1},handleFormSelectionChange:function(t){var e=this;this.$get("fluent-forms/"+t).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)}))})))})).catch((function(t){}))},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);var e={post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null};this.$post("fluent-forms/save",e).then((function(e){return t.tableCreated(e.data.table_id)})).catch((function(e){var n="",a=e.responseJSON.data.message;for(var i in a)n+=" "+a[i];t.$message({showClose:!0,message:n,type:"error"})})),this.btnLoading=!1},installFluentFrom:function(){var t=this;this.installing=!0,this.$post("install/fluent-forms").then((function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)})).catch((function(e){t.$message.error(e.responseJSON.message)})),this.installing=!1}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}};var it=n(992),ot={insert:"head",singleton:!1};s()(it.Z,ot);it.Z.locals;const lt=a(at,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():e("h3",[t._v("\n        Construct Table from WP Fluent Form Entries\n    ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():e("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            "),e("a",{attrs:{target:"_blank",href:"https://ninjatables.com/docs/wp-fluent-forms-integration/"}},[t._v("Click\n                here to learn more about WP Fluent From Integration")])]),t._v(" "),t.editing?t._e():e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("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():e("div",{staticClass:"form-group"},[e("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 e("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})})),1)],1),t._v(" "),t.form.id?e("div",{staticClass:"form-group"},[e("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("strong",[t._v("Options (Optional)")]),t._v(" "),e("hr"),t._v(" "),e("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[e("el-col",{attrs:{md:12}},[e("el-row",[e("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[e("strong",[e("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[e("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n                                Max Records:\n                            ")],1)]),t._v(" "),e("el-col",{attrs:{md:18}},[e("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(" "),e("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[e("el-row",[e("el-col",{attrs:{md:6}},[e("strong",[e("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[e("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n                                Entry Type:\n                            ")],1)]),t._v(" "),e("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[e("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[e("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),e("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),e("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[e("br"),t._v(" "),e("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(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("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?[e("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("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(" "),e("h4",[t._v("See the form in action:")]),t._v(" "),e("br"),t._v(" "),t._m(0)]:e("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),e("div",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?e("span",[t._v("Installing WP Fluent From...")]):e("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?e("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),e("h4",[t._v("See the form in action:")]),t._v(" "),e("br"),t._v(" "),t._m(2)])],2)}),[function(){var t=this._self._c;return t("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[t("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,e=t._self._c;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[t._v("WP Fluent Form")]),t._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._self._c;return t("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[t("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:""}})])}],!1,null,null,null).exports;function st(t){return st="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},st(t)}function rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==st(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==st(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===st(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const dt=a({name:"Remote-Data-Source",components:{PremiumNotice:Y,UpgradeNotice:Z},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=ct(ct({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 i in a)n+=" "+a[i];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=ct(ct({},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 i in a)n+=" "+a[i];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(){var t=this,e=t._self._c;return e("div",[t.editing?[e("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:e("div",{staticClass:"ninja_modal-body"},[e("el-steps",{attrs:{active:t.active_step,"align-center":""}},[e("el-step",{attrs:{title:"Step 1"}}),t._v(" "),e("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[e("h3",[t._v("\n                    Construct Table from Google Sheets\n                ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[e("h3",[t._v("\n                    Construct Table from Remote CSV File\n                ")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n                    Whenever your remote CSV data changes it will be synced here automatically.\n                ")])]:t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),e("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)}}})])]:[e("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}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[e("UpgradeNotice")]:[e("premium-notice")],t._v(" "),e("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():e("el-row",[e("el-col",{attrs:{md:12}},[e("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?e("el-col",{attrs:{md:12}},[e("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?e("div",{staticStyle:{"margin-top":"15px"}},[e("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.apply(null,arguments)}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[e("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(" "),e("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:"",type:"primary"},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n            ")])],1)],1):t._e()],2)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"ninja_subtitle"},[t._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://ninjatables.com/docs/google-sheets-integration/"}},[t._v("\n                      View Documentation Here")])])}],!1,null,null,null).exports;const pt={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"),dragAndDrop:this.$t("JSON/CSV - Exported From Drag & Drop Tables")},format:"csv"},do_unicode:"no",errors:[],btnLoading:!1}},methods:{clear:function(){document.getElementById("fileUpload").value=""},importTable:function(){var t=this;if(this.btnLoading=!0,this.errors=[],"file"===this.imports.source){var e=document.getElementById("fileUpload").files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("do_unicode",this.do_unicode),this.$post("import/default",n).then((function(e){t.$message({showClose:!0,message:e.message?e.message:t.$t("Successfully added a table aaa."),type:"success"}),"dragAndDrop"===t.imports.format?t.$router.push({name:"table_builder_edit_table",params:{table_id:e.data.id}}):e.tableId&&t.$router.push({name:"data_items",params:{table_id:e.tableId}})})).catch((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}}};var mt=n(364),ht={insert:"head",singleton:!1};s()(mt.Z,ht);mt.Z.locals;const _t=a(pt,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_modal-body"},[e("h3",[t._v("Import Table")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n            Import table from existing CSV or JSON file.\n        ")]),t._v(" "),e("div",{staticClass:"form"},[e("div",{staticClass:"form-group"},["file"===t.imports.source?[e("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),e("br"),t._v(" "),e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n                    File upload url\n                ")]:[e("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),e("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),e("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(n,a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(n))+"\n                    ")])})),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),e("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(" "),e("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                    "),e("a",{attrs:{href:"https://ninjatables.com/docs/import-ninja-table-json/",target:"_blank"}},[t._v("here")])])],2),t._v(" "),t.errors.length?e("div",{staticClass:"form_group ninja_errors"},[e("ul",t._l(t.errors,(function(n,a){return e("li",{key:a},[t._v("\n                        "+t._s(n.info)+"\n                    ")])})),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n            "+t._s(t.$t("Import"))+"\n        ")])],1)])}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"hint"},[t._v("\n                        Check tutorial for importing data from CSV file\n                        "),e("a",{attrs:{href:"https://ninjatables.com/docs/import-table-data-from-a-csv/",target:"_blank"}},[t._v("here")])])}],!1,null,"6662ec02",null).exports;const ft={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()}};var vt=n(9333),bt={insert:"head",singleton:!1};s()(vt.Z,bt);vt.Z.locals;const gt=a(ft,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("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))])])])}),[],!1,null,"ef65b914",null).exports;const yt=a({name:"remote_sql_form",props:["connection"],data:function(){return{}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sql_connection_wrapper"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n            DB Name\n            "),e("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(" "),e("div",{staticClass:"nt_row_2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n                DB username\n                "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                DB User Password\n                "),e("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(" "),e("div",{staticClass:"nt_row_2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n                DB Host\n                "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                DB Host Port\n                "),e("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)])])])}),[],!1,null,null,null).exports,wt={name:"CustomSQLQuery",components:{MySqlEditor:gt,PremiumNotice:Y,RemoteSqlConnection:yt},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 i in a)n+=" "+a[i];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(){}};var xt=n(9004),kt={insert:"head",singleton:!1};s()(xt.Z,kt);xt.Z.locals;const Ct=a(wt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_modal-body"},[e("h3",[t._v("\n        Construct Table from Custom SQL Query\n    ")]),t._v(" "),e("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[e("div",{staticClass:"ninja_modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),e("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?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),e("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[e("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),e("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),e("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[t._v("\n                Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n            ")])])]:[e("el-alert",{attrs:{title:"",type:"error",closable:!1}},[e("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            ")])])]:[e("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)}),[function(){var t=this,e=t._self._c;return e("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[t._v("$wpdb->get_results()")]),t._v(" function")])}],!1,null,null,null).exports;var St=n(9980),jt=n.n(St);function $t(t){return $t="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(t)}var Tt={computed:{margin:function(){return{"margin-bottom":this.item.data.style.margin.bottom+"px","margin-left":this.item.data.style.margin.left+"px","margin-right":this.item.data.style.margin.right+"px","margin-top":this.item.data.style.margin.top+"px"}},padding:function(){return{"padding-top":this.item.data.style.padding.top+"px","padding-bottom":this.item.data.style.padding.bottom+"px","padding-left":this.item.data.style.padding.left+"px","padding-right":this.item.data.style.padding.right+"px"}},fontSize:function(){return{"font-size":""===this.item.data.style.fontSize||10===this.item.data.style.fontSize?this.setting.global_styling.options.font_size.value+"px":this.item.data.style.fontSize+"px"}},displayBlock:function(){return{display:"block"}},displayFlex:function(){return{display:"flex"}},textAlign:function(){return{"text-align":this.item.data.style.alignment}},dBlockAlign:function(){var t=this.item.data.style.alignment;return"left"===t?{"margin-right":"auto"}:"right"===t?{"margin-left":"auto"}:{"margin-left":"auto","margin-right":"auto"}},color:function(){return{color:""===this.item.data.style.color||"#000001"===this.item.data.style.color?this.setting.global_styling.options.color.value:this.item.data.style.color}},backgroundColor:function(){return{background:this.item.data.style.backgroundColor}},border:function(){return{border:"".concat(this.item.data.style.borderSize,"px solid ").concat(this.item.data.style.borderColor)}},buttonIconHover:function(){var t=this.item.data.style.hoverIconColor,e=this.item.data.style.iconColor;return{"--icon-color-hover":t=!0===this.item.data.style.isHover?this.svgExtension(this.item.data.style.iconName)?""===t?this.setting.global_styling.options.color.value:t:"transparent":this.svgExtension(this.item.data.style.iconName)?""===e?this.setting.global_styling.options.color.value:e:"transparent"}},iconStyle:function(){var t={},e=this.item.data.style.fontSize,n=this.item.data.style.color,a=""===e||10===e?this.setting.global_styling.options.font_size.value:e,i=""===n||"#000001"===n?this.setting.global_styling.options.color.value:n;return t.width=a+"px",t.height=a+"px",this.svgExtension(this.item.data.value)?(t["mask-image"]="url("+this.getAsset(this.item.data.value)+")",t["-webkit-mask-image"]="url("+this.getAsset(this.item.data.value)+")",t.background=i):(t["background-image"]="url("+this.item.data.value+")",t["background-size"]="cover"),t},iconWithOtherComponent:function(){var t={},e=this.item.data.style.iconFontSize,n=this.item.data.style.iconColor,a=""===e||10===e?this.setting.global_styling.options.font_size.value:e,i=""===n||"#000001"===n?this.setting.global_styling.options.color.value:n;return t.width=a+"px",t.height=a+"px",this.svgExtension(this.item.data.style.iconName)?(t["mask-image"]="url("+this.getAsset(this.item.data.style.iconName)+")",t["-webkit-mask-image"]="url("+this.getAsset(this.item.data.style.iconName)+")",t.background=i):(t["background-image"]="url("+this.item.data.style.iconName+")",t["background-size"]="cover"),t},buttonStyle:function(){var t=this.item.data.style.buttonSize,e=this.item.data.style.fullWidth,n="90px",a="30px";return"S"===t?(n="60px",a="27px"):"L"===t&&(n="120px",a="40px"),{"text-decoration":"none","border-radius":this.item.data.style.borderRadius+"px",width:"true"===e||!0===e?"100%":n,height:"true"===e||!0===e?"auto":a,"text-align":this.item.data.style.contentAlignment,overflow:"hidden","line-height":1,display:"inline-block","--padding-dashboard":"true"===e||!0===e?"10px":"5px","--padding-frontend":"true"===e||!0===e?"10px":"0"}},justifyContent:function(){var t="center";return"left"===this.item.data.style.alignment?t="flex-start":"right"===this.item.data.style.alignment&&(t="flex-end"),{"justify-content":t}},lineHeight:function(){return{"line-height":this.item.data.style.lineHeight+"px"}},listStyle:function(){return{padding:0,margin:"15px0px","list-style-position":"inside","list-style-type":"list"===this.item.data.type?this.item.data.style.listStyle:"none"}},progressBarTextStyle:function(){var t=this.item.data.style,e=""===t.fontSize||10===t.fontSize?this.setting.global_styling.options.font_size.value:t.fontSize;return{"--progress-bar-text-color":""===t.color?this.setting.global_styling.options.color.value:t.color,"--progress-bar-font-size":e+"px"}},ratingStyle:function(){var t=this.item.data.style.ratingSize?this.item.data.style.ratingSize:12;return{"--rating-font-size":(""===t||10===t?this.setting.global_styling.options.font_size.value:t)+"px"}},showRatingScore:function(){return"true"===this.item.data.style.showRatingValue||!0===this.item.data.style.showRatingValue},scoreTemplate:function(){var t=this.item.data.value;return Number.isInteger(t)?"".concat(t,"/").concat(this.item.data.style.maxStar):"".concat(t.toFixed(1),"/").concat(this.item.data.style.maxStar)},starRatingStyling:function(){var t=this.item.data.style.color,e=this.setting.global_styling.options.color.value;return""===t?[e,e,e]:[t,t,t]},fontWeight:function(){var t=this.item.data.style.fontWeight;if(t&&t.length>=0){for(var e="normal",n="normal",a="none",i=0;i<t.length;i++)"bold"===t[i]&&(e="bold"),"italic"===t[i]&&(n="italic"),"underline"===t[i]&&(a="underline");return{"font-weight":e,"font-style":n,"text-decoration":a}}},borderRadius:function(){return{"border-radius":("round"===this.item.data.style.shape?50:0)+"%"}},ribbonSize:function(){var t=this.item.data.style.ribbonType,e="",n="";return"bookmark"===t?(n=this.item.data.style.bookmarkWidth,e=this.item.data.style.bookmarkHeight):"side"===t?(n=this.item.data.style.sideWidth,e=this.item.data.style.sideHeight):"horizontal"===t?(n=this.item.data.style.horizontalWidth,e=this.item.data.style.horizontalHeight):(n=this.item.data.style.width,e=this.item.data.style.height),{width:n+"px",height:e+"px"}},xAxisRibbon:function(){var t=this.item.data.style,e=this.setting.general.options.cell_padding.value;return"corner"===t.ribbonType?Number(t.cornerXAxis-e+10)+"px":Number(t.xAxis-e+10)+"px"},yAxisRibbon:function(){return Number(this.item.data.style.yAxis-this.setting.general.options.cell_padding.value+10)+"px"},textStyle:function(){return{opacity:""===this.item.data.value?".4":1,"line-height":1.2}},verticalAlignMiddle:function(){return{"vertical-align":"middle"}},linkAttributes:function(){var t=this.item.data.style.linkAttributes,e="";return"object"===$t(t)&&t.length>0&&(e=t.join(" ")),e}},methods:{svgExtension:function(t){if(t){var e=t.slice(-4);return".svg"===e.slice(-4)||!e.includes(".")}}}};const Dt={name:"Datas",mixins:[Tt],props:["item","manage","setting"],methods:{updateListContent:function(){this.item.data.value.push("list item")},updateContent:function(t){var e=t.target.innerText;"custom_html"===this.item.data.type&&(e=t.target.innerHTML),this.item.data.value=e},copyItem:function(t){this.item.data.value.splice(t+1,0,this.item.data.value[t])},deleteItem:function(t){this.item.data.value.splice(t,1)},getAsset:function(t){return t.includes(window.location.origin)?t:ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"}},computed:{ratingValue:{get:function(){return Number(this.item.data.value)},set:function(t){this.item.data.value=t}},mouseOver:function(){if(!0===this.item.data.style.isHover){var t=this.item.data.style.hoverColor,e=""===t?this.setting.global_styling.options.color.value:t;return["this.style.background='"+this.item.data.style.hoverBackgroundColor+"'","this.style.color='"+e+"'","this.style.border='"+this.item.data.style.hoverBorderSize+"px solid"+this.item.data.style.hoverBorderColor+"'","this.style.transform='scale("+this.item.data.style.transition+")'"]}},mouseOut:function(){if(!0===this.item.data.style.isHover){var t=this.item.data.style.iconColor,e=""===t||"#000000"===t?this.setting.global_styling.options.color.value:t;return["this.style.background='"+this.item.data.style.backgroundColor+"'","this.style.color='"+e+"'","this.style.border='"+this.item.data.style.borderSize+"px solid"+this.item.data.style.borderColor+"'","this.style.transform='scale(1)'"]}}}},It=Dt;var Pt=n(8947),Et={insert:"head",singleton:!1};s()(Pt.Z,Et);Pt.Z.locals;var At=a(It,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ntb-datas-wrapper",style:[t.margin,{margin:"1px"}]},["text"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color,t.textStyle],attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(""===t.item.data.value?"Add New":t.item.data.value)},on:{blur:t.updateContent}}):"button"===t.item.data.type?e("div",{staticClass:"hover-item",style:[t.justifyContent,{display:t.item.data.style.fullWidth?"block":"flex"}]},[e("a",{style:[t.justifyContent,t.displayFlex,{"text-decoration":"none"}],attrs:{href:"".concat(t.item.data.style.url),target:t.item.data.style.newTab?"_black":"",rel:t.linkAttributes},on:{click:function(t){t.preventDefault()}}},[e("el-button",{staticClass:"ntb-el-button",style:[t.buttonIconHover,t.fontSize,t.color,t.backgroundColor,t.border,t.buttonStyle],attrs:{type:"primary",onmouseover:t.mouseOver,onmouseout:t.mouseOut}},[e("span",{staticClass:"button-content-wrapper",style:[t.padding]},["left"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e(),t._v(" "),e("span",{style:[t.fontWeight,{"margin-left":"left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing+"px":"0px","margin-right":"right"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing+"px":"0px"}],attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(t.item.data.value)},on:{blur:t.updateContent}}),t._v(" "),"right"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e()])])],1)]):"custom_html"===t.item.data.type?e("div",{staticClass:"hover-item",style:[t.padding],attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(t.item.data.value)},on:{blur:t.updateContent}}):"shortcode"===t.item.data.type?e("div",{staticClass:"ninja_table_builder_shortcode hover-item",style:[t.textAlign,t.padding],attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(t.item.data.value)},on:{blur:t.updateContent}}):"star_rating"===t.item.data.type?e("span",[e("el-rate",{staticClass:"ntb-rating hover-item",style:[t.ratingStyle,t.textAlign,t.padding],attrs:{"score-template":t.scoreTemplate,"allow-half":"","show-score":t.showRatingScore,"text-color":"".concat(""===t.item.data.style.color?t.setting.global_styling.options.color.value:t.item.data.style.color),max:t.item.data.style.maxStar,colors:t.starRatingStyling},model:{value:t.ratingValue,callback:function(e){t.ratingValue=e},expression:"ratingValue"}})],1):"icon"===t.item.data.type?e("span",[e("span",{staticClass:"hover-item",style:[t.padding,t.displayBlock]},[e("span",{staticClass:"svgIcon",style:[t.iconStyle,t.displayBlock,t.dBlockAlign]})])]):"progress"===t.item.data.type?e("span",{staticClass:"ntb-progress hover-item",style:[t.padding,t.displayBlock]},[Number(t.item.data.style.percentage)?e("el-progress",{style:[t.displayBlock,t.dBlockAlign,t.progressBarTextStyle,{width:"circle"===this.item.data.style.type?t.item.data.style.width+"px":"100%"}],attrs:{type:t.item.data.style.type,width:Number(t.item.data.style.width),percentage:Number(t.item.data.style.percentage),color:[t.color],"stroke-width":Number(t.item.data.style.thickness)}}):t._e()],1):"image"===t.item.data.type?e("span",[e("a",{staticClass:"hover-item",style:[t.displayBlock],attrs:{target:"_blank",href:"".concat(t.item.data.style.link),rel:t.linkAttributes},on:{click:function(t){t.preventDefault()}}},[e("img",{style:[t.displayBlock,t.dBlockAlign,t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{src:t.item.data.value,alt:"".concat(t.item.data.style.alt)}})])]):"list"===t.item.data.type||"stylist_list"===t.item.data.type?e("span",{staticClass:"ntb-list hover-item",style:[t.textAlign,t.displayFlex,t.justifyContent]},[e(t.item.data.style.listType,{tag:"component",class:t.manage?"":"ntb-list-style",style:[t.listStyle,t.padding]},t._l(t.item.data.value,(function(n,a){return e("li",{key:a,style:[t.color,t.fontSize,t.lineHeight]},[e("span",["stylist_list"===t.item.data.type?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),e("span",{style:[t.fontWeight,t.verticalAlignMiddle,{"margin-left":t.item.data.style.itemSpacing+"px"}],attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(t.item.data.value[a])},on:{input:function(e){t.item.data.value[a]=e.target.innerText},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateListContent.apply(null,arguments)}}})]),t._v(" "),t.manage?t._e():e("div",{staticClass:"icon-styles remove-elements"},[e("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return e.stopPropagation(),t.copyItem(a)}}}),t._v(" "),e("i",{staticClass:"el-icon-delete",on:{click:function(e){return e.stopPropagation(),t.deleteItem(a)}}})])])})),0)],1):t._e(),t._v(" "),"text_icon"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.displayFlex,t.justifyContent]},[e("span",{staticClass:"icon-text-wrapper",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color]},["left"===t.item.data.style.iconPosition?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),e("span",{style:"\n      vertical-align: middle;\n      margin-left: ".concat("left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0,"px;\n      margin-right: ").concat("right"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0,"px;\n      "),attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(t.item.data.value)},on:{blur:t.updateContent}}),t._v(" "),"right"===t.item.data.style.iconPosition?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e()])]):t._e(),t._v(" "),"ribbon"===t.item.data.type?[e("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[e("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[e("div",{class:["content","left"===t.item.data.style.ribbonPosition?"left":"right"],style:[t.ribbonSize,t.backgroundColor,{"text-align":"center",padding:"corner"===t.item.data.style.ribbonType?t.item.data.style.height+"px 0px":""}]},[e("p",{style:[t.fontSize,t.color,t.fontWeight,{"margin-top":t.item.data.style.textYAxis+"px","margin-left":t.item.data.style.textXAxis+"px"}],attrs:{contenteditable:"true"},on:{blur:t.updateContent}},[t._v(t._s(t.item.data.value))])])])])]:t._e()],2)}),[],!1,null,null,null);const Nt=At.exports;function Ot(t){return function(t){if(Array.isArray(t))return Mt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var Bt={data:function(){return{tdIds:[],merge:{items:[],rowColumn:[],history:{},visible:!1},split:{visible:!1}}},methods:{addTopRow:function(){this.tableData.data.unshift(this.row()),this.tableData.table.tr=Number(this.tableData.table.tr)+1,this.updateHistoryRowIndex()},addBottomRow:function(){this.tableData.data.push(this.row()),this.tableData.table.tr=Number(this.tableData.table.tr)+1,this.updateHistoryRowIndex()},addLeftColumn:function(){var t=this;this.tableData.data.forEach((function(e,n){t.$set(e.rows,t.columnName,t.defaultTd())})),this.tableData.headers.unshift(this.columnName),this.tableData.table.tc=Number(this.tableData.table.tc)+1,this.updateHistoryColumnIndex()},addRightColumn:function(){var t=this;this.tableData.data.forEach((function(e,n){t.$set(e.rows,t.columnName,t.defaultTd())})),this.tableData.headers.push(this.columnName),this.tableData.table.tc=Number(this.tableData.table.tc)+1,this.updateHistoryColumnIndex()},defaultItem:function(){var t=this.initialData.components.general.fields[0];return{id:this.id(),data:this.deepClone(t)}},row:function(){var t=this,e={};return this.tableData.headers.forEach((function(n){e[n]=t.defaultTd()})),{rows:e,style:this.trStyle()}},defaultTd:function(){return{style:this.tdStyle(),columns:[this.defaultItem()]}},tdStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{tdId:this.id(8),backgroundColor:t.backgroundColor?t.backgroundColor:"",columnWidth:t.columnWidth?t.columnWidth:"",emptyCell:t.emptyCell?t.emptyCell:"",verticalAlignment:t.verticalAlignment?t.verticalAlignment:"",rowspan:t.rowspan||0===t.rowspan?t.rowspan:1,colspan:t.colspan||0===t.colspan?t.colspan:1,highlighted:{active:!!t.highlighted&&t.highlighted.active,height:t.highlighted?t.highlighted.height:10,shadowColor:t.highlighted?t.highlighted.shadowColor:"#888",offset_x:t.highlighted?t.highlighted.offset_x:0,offset_y:t.highlighted?t.highlighted.offset_y:10,blur_radius:t.highlighted?t.highlighted.blur_radius:10}}},trStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{trId:this.id(7),backgroundColor:t.backgroundColor?t.backgroundColor:"",rowHeight:t.rowHeight?t.rowHeight:""}},copyRow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(arguments.length>1&&void 0!==arguments[1]||this.table.rowIndex,{}),a=this.isEmpty(e)?this.table.row:e;return this.tableData.headers.forEach((function(e){var i=a.rows[e],o=[];i.columns.forEach((function(e){var n={id:t.id(),data:t.deepClone(e.data)};o.push(n)})),n[e]={style:t.tdStyle(i.style),columns:o}})),{style:this.trStyle(a.style),rows:n}},removeRow:function(){var t=this,e=this.selectedColumnStyle,n=function(e){t.tableData.data.splice(e,1),t.tableData.table.tr=Number(t.tableData.table.tr)-1,t.updateHistoryRowIndex()},a=function(e,n,a){var i=e.style,o=e.columns;i.rowspan=i.rowspan-1;var l=t.tableData.data[n+1].rows[a];l.columns=o,l.style=i},i=this.table.rowIndex,o=this.mergedIndexes("rowIndexes").sort(),l=this.selectedRowSpans();this.allEqual(l)?n(i):e&&e.rowspan>1?(o.forEach((function(e){t.tableData.headers.forEach((function(n){var o=t.tableData.data[e]&&t.tableData.data[e].rows[n];e===i?t.merge.history[o.style.tdId]&&delete t.merge.history[o.style.tdId]:o.style.rowspan>1&&(a(o,e,n),t.updateHistoryByRow(o.style.tdId,e,"pop"))}))})),this.$nextTick((function(){var t=o.length-e.rowspan;o.splice(0,t),o.reverse().forEach((function(t){n(t)}))}))):(o.forEach((function(e){t.tableData.headers.forEach((function(n){var l=t.tableData.data[e]&&t.tableData.data[e].rows[n];e===i&&l.style.rowspan>1?(a(l,e,n),t.updateHistoryByRow(l.style.tdId,e,"pop")):l&&l.style.rowspan>1&&e!==Math.max.apply(Math,Ot(o))&&(l.style.rowspan=l.style.rowspan-1,t.updateHistoryByRow(l.style.tdId,e,"pop"))}))})),this.$nextTick((function(){n(i)}))),this.clearMerge()},removeColumn:function(){var t=this,e=this.selectedColumnStyle,n=function(e){var n=t.tableData.headers.indexOf(t.headerName(e));n>-1&&(t.tableData.data.forEach((function(n){delete n.rows[t.headerName(e)]})),t.tableData.headers.splice(n,1),t.tableData.table.tc=Number(t.tableData.table.tc)-1),t.updateHistoryColumnIndex()},a=function(e,n,a){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=n.style,r=n.columns;if(n.style.colspan>1){if(s.colspan=s.colspan-1,i===l?l:o[0]){var c=e.rows[t.headerName(a+1)];c.columns=r,c.style=s}t.updateHistoryByColumn(a+1,n.style.tdId,"pop")}},i=this.table.columnIndex,o=this.mergedIndexes("columnIndexes").sort(),l=this.selectedColSpans();this.allEqual(l)?n(i):e&&e.colspan>1?(o.forEach((function(e){t.tableData.data.forEach((function(n){var o=n.rows[t.headerName(e)];e===i?t.merge.history[o.style.tdId]&&delete t.merge.history[o.style.tdId]:a(n,o,e)}))})),this.$nextTick((function(){var t=o.length-e.colspan;o.splice(0,t),o.reverse().forEach((function(t){n(t)}))}))):(o.forEach((function(e){t.tableData.data.forEach((function(n){var l=n.rows[t.headerName(e)];e===i&&l.style.colspan>1?a(n,l,e,e):l&&l.style.colspan>1&&e!==Math.max.apply(Math,Ot(o))&&(l.style.colspan=l.style.colspan-1,t.updateHistoryByColumn(e+1,l.style.tdId,"pop"))}))})),this.$nextTick((function(){n(i)}))),this.clearMerge()},duplicateRow:function(){var t=this,e=this.selectedColumnStyle,n=this.selectedRowSpans(),a=this.mergedIndexes("rowIndexes").sort();a=a.length>0?a:[this.table.rowIndex];var i=this.table.rowIndex,o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.tableData.data.splice(e+1,0,t.copyRow(n,e)),t.tableData.table.tr=Number(t.tableData.table.tr)+1,t.updateHistoryRowIndex()};if(this.allEqual(n))o(i);else if(e&&e.rowspan>1||e.colspan>1)for(var l=0,s=function(e){var s=t.tableData.data[e];o(Math.max.apply(Math,Ot(a))+l,s),l++,t.tableData.headers.forEach((function(o,r){var c=s&&s.rows[o],u=t.tableData.data[Math.max.apply(Math,Ot(a))+l],d=u&&u.rows[o];if(c&&c.style.rowspan>1||c.style.colspan>1){var p=t.merge.history[c.style.tdId],m=t.deepClone(p);(d&&d.style.rowspan>1||d.style.colspan>1)&&(t.merge.history[d.style.tdId]=m,t.updateHistoryRowIndex())}if(c.style.rowspan>1&&Math.min.apply(Math,Ot(a))!==e&&i===Math.min.apply(Math,Ot(a))){var h=t.merge.history[c.style.tdId],_=[],f=[];h.forEach((function(t,e){f.push(t.columnIndex)}));var v=Ot(new Set(f)),b=Ot(new Set(f)),g=v.concat(b);h.forEach((function(t,e){Math.min.apply(Math,Ot(a))!==t.rowIndex&&t.rowIndex<=Math.max.apply(Math,Ot(a))&&_.push({rowIndex:t.rowIndex,columnIndex:g[e]})})),t.merge.history[c.style.tdId]=_,c.style.rowspan=c.style.rowspan-1,c.columns=[t.defaultItem()]}else e!==i||0!==d.style.rowspan||0!==n[r-1]&&0!==n[r+1]||(d.style.colspan=1,d.style.rowspan=1,d.columns=[t.defaultItem()])}))},r=i;r<=Math.max.apply(Math,Ot(a));r++)s(r);else{o(i);for(var c=Math.min.apply(Math,Ot(a));c<=i;c++){var u=this.tableData.data[c];Object.entries(u.rows).forEach((function(e){var n=e[1];n.style.rowspan>1&&(n.style.rowspan=n.style.rowspan+1,t.updateHistoryByRow(n.style.tdId,i,"push"))}))}this.greaterThanOneNumber(n,1)&&(n=this.selectedRowSpans(this.tableData.data[i]));var d=this.tableData.data[i+1];n.forEach((function(e,n){(0===e||e>1)&&(d.rows[t.headerName(n)].style.rowspan=0)}))}this.clearMerge()},duplicateColumn:function(){var t=this,e=this.selectedColumnStyle,n=this.table.columnIndex,a=this.mergedIndexes("columnIndexes").sort(),i=this.selectedColSpans(),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.tableData.data.forEach((function(n,o){var s=[],r=n.rows[t.headerName(e)];r.columns.forEach((function(e){var n={id:t.id(),data:t.deepClone(e.data)};s.push(n)}));var c={style:t.tdStyle(r.style),columns:s};"else"===l?e===Math.min.apply(Math,Ot(a))&&(r.style.colspan>1||0===r.style.colspan)?r.style.colspan=0:e!==Math.min.apply(Math,Ot(a))&&r.style.colspan>1&&(r.style.colspan=0,r.style.rowspan=0):"elseif"===l&&(Math.min.apply(Math,Ot(a))!==e&&r.style.colspan>1?(r.style.colspan=r.style.colspan-1,r.columns=[t.defaultItem()]):0!==c.style.colspan||0!==i[o]||0!==i[o-1]&&0!==i[o+1]||(c.style.colspan=1,c.style.rowspan=1,c.columns=[t.defaultItem()])),t.$set(n.rows,t.columnName,c);var u=t.merge.history[r.style.tdId];if(u){var d=t.deepClone(u);c.style.colspan>1&&(t.merge.history[c.style.tdId]=d)}}));var s="else"===l?n:a.length>0?Math.max.apply(Math,Ot(a))+o:n;t.tableData.headers.splice(s,0,t.columnName),t.tableData.table.tc=Number(t.tableData.table.tc)+1,t.updateHistoryColumnIndex()};if(this.allEqual(i))o(n);else if(e&&e.colspan>1){var l=a.length-e.colspan;a.splice(0,l),a.forEach((function(t,e){o(t,++e,"elseif")}))}else a.forEach((function(e){t.tableData.data.forEach((function(n){var a=n.rows[t.headerName(e)];a.style.colspan>1&&(a.style.colspan=a.style.colspan+1,t.updateHistoryByColumn(e,a.style.tdId,"push"))}))})),o(n,0,"else");this.clearMerge()},insertColumnBefore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.columnIndex,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",a=function(e){t.tableData.data.forEach((function(e,n){t.$set(e.rows,t.columnName,t.defaultTd())})),t.tableData.headers.splice(e,0,t.columnName),t.tableData.table.tc=Number(t.tableData.table.tc)+1,t.updateHistoryColumnIndex()},i=this.deepClone(e),o=this.selectedColumnStyle,l=o&&o.colspan,s=this.mergedIndexes("columnIndexes").sort(),r=this.selectedColSpans();if("before"!==n||!this.allEqual(r)&&i!==Math.min.apply(Math,Ot(s)))if("after"!==n||Math.max.apply(Math,Ot(s))!==e-1&&!this.allEqual(r)){a(e);for(var c=function(e){t.tableData.data.forEach((function(n,a){var o=n.rows[t.headerName(e)];t.greaterThanOneNumber(r,1)&&(r=t.selectedColSpans(i-1)),o.style.colspan>1?(o.style.colspan=o.style.colspan+1,t.updateHistoryByColumn(i,o.style.tdId,"push")):(0===r[a]||r[a]>1)&&(o.style.colspan=0,o.columns=[])}))},u=Math.min.apply(Math,Ot(s));u<=i;u++)c(u)}else l>1&&(e=Math.max.apply(Math,Ot(s))+1),a(e);else a(e);this.clearMerge()},insertColumnAfter:function(){this.insertColumnBefore(this.table.columnIndex+1,"after")},mergedIndexes:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rowIndexes";Object.entries(this.merge.history).map((function(n){n[1].map((function(a){("rowIndexes"!==e||a.rowIndex!==t.table.rowIndex||t.tdIds.includes(n[0]))&&("columnIndexes"!==e||a.columnIndex!==t.table.columnIndex||t.tdIds.includes(n[0]))||t.tdIds.push(n[0])}))}));var n=[];return this.tdIds.forEach((function(a){var i=t.merge.history[a];i&&i.map((function(t){n.push("rowIndexes"===e?t.rowIndex:t.columnIndex)}))})),Ot(new Set(n))},selectedColSpans:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.columnIndex,n=[];return this.tableData.data.forEach((function(a,i){var o=a.rows[t.headerName(e)];n.push(o.style.colspan)})),n},selectedRowSpans:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.isEmpty(t)?this.table.row:t,n=[];return e&&Object.values(e.rows).forEach((function(t){n.push(t.style.rowspan)})),n},insertRowBefore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.rowIndex,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",a=this.selectedColumnStyle,i=a&&a.rowspan,o=function(e){t.tableData.data.splice(e,0,t.row()),t.tableData.table.tr=Number(t.tableData.table.tr)+1,t.updateHistoryRowIndex()},l=this.deepClone(e),s=this.mergedIndexes("rowIndexes"),r=this.selectedRowSpans();if("before"!==n||!this.allEqual(r)&&l!==Math.min.apply(Math,Ot(s)))if("after"!==n||Math.max.apply(Math,Ot(s))!==e-1&&!this.allEqual(r)){o(e);for(var c=Math.min.apply(Math,Ot(s));c<l;c++){var u=this.tableData.data[c];Object.entries(u.rows).forEach((function(e){var n=e[1];n.style.rowspan>1&&(n.style.rowspan=n.style.rowspan+1,t.updateHistoryByRow(n.style.tdId,l,"push"))}))}this.greaterThanOneNumber(r,1)&&(r=this.selectedRowSpans(this.tableData.data[e-1]));var d=this.tableData.data[e];r.forEach((function(e,n){(0===e||e>1)&&(d.rows[t.headerName(n)].style.rowspan=0)}))}else i>1&&(e=Math.max.apply(Math,Ot(s))+1),o(e);else o(e);this.clearMerge()},updateHistoryColumnIndex:function(){var t=this;this.tableData.data.forEach((function(e,n){t.tableData.headers.forEach((function(n,a){var i=e.rows[n],o=t.merge.history[i.style.tdId];o&&o.forEach((function(t,e){t.columnIndex=a+Math.floor(e/2)}))}))}))},updateHistoryRowIndex:function(){var t=this;this.tableData.data.forEach((function(e,n){Object.values(e.rows).forEach((function(e){var a=t.merge.history[e.style.tdId];if(a){var i=a.map((function(t){return t.columnIndex}));t.allEqual(i)?a.forEach((function(t,e){t.rowIndex=n+e})):a.forEach((function(t,e){t.rowIndex=n+Math.floor(e/2)}))}}))}))},insertRowAfter:function(){this.insertRowBefore(this.table.rowIndex+1,"after")},dragColumn:function(t){t.moved&&(this.updateHistoryColumnIndex(),this.clearMerge())},dragRow:function(t){t.moved&&(this.updateHistoryRowIndex(),this.clearMerge())},clearMerge:function(){this.tdIds=[],this.merge.items=[],this.merge.rowColumn=[],this.split.visible=!1,this.merge.visible=!1},selectItem:function(t,e,n,a,i){var o=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.setTdIndex(),this.table.rowIndex=t,this.table.columnIndex=n,this.table.row=i,this.table.column=a;var s=jQuery("#td_id_"+a.style.tdId).attr("cellIndex");if("cells"===this.activeTab){if(l)this.split.visible=!1;else if(this.clearMerge(),a.style.colspan>1||a.style.rowspan>1){var r=Object.keys(this.merge.history).map((function(t){return parseInt(t)}));this.split.visible=r.includes(parseInt(a.style.tdId))}else this.split.visible=!1;if(this.tdIds.includes(a.style.tdId)){a.columns.forEach((function(t){var e=o.merge.items.indexOf(t);e>=0&&o.merge.items.splice(e,1)}));var c=1,u=a.style.colspan,d=a.style.rowspan;u>1&&d>1?c=u*d:u>1?c=u:d>1&&(c=d);for(var p=0;p<c;p++){var m=this.merge.rowColumn.findIndex((function(t){return t.cellIndex===s}));m>=0&&this.merge.rowColumn.splice(m,1)}var h=this.tdIds.indexOf(a.style.tdId);h>=0&&this.tdIds.splice(h,1)}else this.tdIds.push(a.style.tdId),a.columns.forEach((function(t){o.merge.items.push(t)})),this.keyExist(this.merge.history,a.style.tdId)?this.merge.history[a.style.tdId].forEach((function(t){o.merge.rowColumn.push({rowIndex:t.rowIndex,columnIndex:t.columnIndex,cellIndex:s,tdId:a.style.tdId})})):this.merge.rowColumn.push({rowIndex:t,columnIndex:n,cellIndex:s,tdId:a.style.tdId});var _=this.merge.rowColumn.map((function(t){return t.rowIndex})),f=this.merge.rowColumn.map((function(t){return t.columnIndex}));this.merge.visible=this.groupByData(_,f)}else if(l)if(this.tdIds.includes(a.style.tdId)){var v=this.tdIds.indexOf(a.style.tdId);v>=0&&this.tdIds.splice(v,1)}else this.tdIds.push(a.style.tdId);else this.tdIds=[],this.tdIds.splice(0,1,a.style.tdId);this.manageCell(!0,this.activeTab)},groupByData:function(t,e){if(t.length>1){var n=t.reduce((function(t,e){return t[e]=t[e]?t[e]+1:1,t}),{}),a=Object.values(n).every((function(t,e,n){return t===n[0]})),i=e.reduce((function(t,e){return t[e]=t[e]?t[e]+1:1,t}),{}),o=Object.values(i).every((function(t,e,n){return t===n[0]}));if(a&&o){var l=Ot(new Set(t)).sort(),s=Ot(new Set(e)).sort(),r=this.findElement(l),c=this.findElement(s);if(r&&c){if(2===t.length&&2===e.length){var u=this.merge.rowColumn.map((function(t){return Number(t.rowIndex)})),d=this.merge.rowColumn.map((function(t){return Number(t.columnIndex)}));return u[0]===u[1]||d[0]===d[1]}return!0}return!1}return!1}return!1},findElement:function(t){for(var e=1;e<t.length;e++)if(t[e]-t[e-1]>1)return!1;return!0},mergeCell:function(){var t=this,e=Math.min.apply(Math,Ot(this.merge.rowColumn.map((function(t){return t.cellIndex})))),n=this.merge.rowColumn.find((function(t){return t.cellIndex==e})),a=this.merge.rowColumn.map((function(t){return t.rowIndex})).filter((function(t,e,n){return n.indexOf(t)===e})),i=this.merge.rowColumn.map((function(t){return t.columnIndex})).filter((function(t,e,n){return n.indexOf(t)===e})),o=[];this.merge.rowColumn.forEach((function(e){var l=e.columnIndex,s=e.rowIndex,r=t.headerName(l),c=t.tableData.data[s].rows[r];o.push({rowIndex:s,columnIndex:l}),n.tdId===c.style.tdId?(c.columns=t.merge.items,c.style.rowspan=a.length,c.style.colspan=i.length,t.merge.history[n.tdId]=o):(c.style.rowspan=0,c.style.colspan=0)})),this.clearMerge(),o=[],this.tableData.table.merge.history=this.merge.history},splitCell:function(){var t=this,e=this.table.column;this.merge.history[e.style.tdId].forEach((function(e){var n=t.headerName(e.columnIndex),a=t.tableData.data[e.rowIndex].rows[n];0===a.style.rowspan&&0===a.style.colspan&&(a.columns=[t.defaultItem()]),a.style.rowspan=1,a.style.colspan=1})),delete this.merge.history[e.style.tdId],this.clearMerge()},tdActiveRowSpan:function(t){return this.selectedTrId===t?this.selectedRowSpan:1},tdActiveInactiveClass:function(t){return this.selectedTrId===t?"td-active":"td-inactive"},highlightClass:function(t,e){return!!t.rows[e].style.highlighted&&t.rows[e].style.highlighted.active?"td-highlight":""},highlightedColumnStyle:function(t,e){if(!!t.rows[e].style.highlighted&&t.rows[e].style.highlighted.active){var n=t.rows[e].style.highlighted.height,a=t.rows[e].style.highlighted.shadowColor,i=t.rows[e].style.highlighted.offset_x,o=t.rows[e].style.highlighted.offset_y,l=t.rows[e].style.highlighted.blur_radius;return{"--highlight-height-top":"-".concat(n,"px"),"--highlight-height-bottom":"".concat(n,"px"),"--shadow-color":"".concat(a),"--offset-x":"".concat(i,"px"),"--offset-y":"".concat(o,"px"),"--blur-radius":"".concat(l,"px")}}return{}},tdClass:function(t,e,n){return this.table.columnIndex===n&&1===this.tdIds.length?"single-row-column":"td_class_"+this.tdId(t,e)},thActiveInactiveClass:function(t){return this.headerName(this.table.columnIndex)===t?"th-active":"th-inactive"},trId:function(t){return this.tdIds.includes(t)?"selected-item":"tr_id_"+t},trInlineStyle:function(t,e){var n=t.style,a=this.setting.background.options,i="";return i=0===e&&""===n.backgroundColor?a.header_background.value:e%2==0&&0!==e&&""===n.backgroundColor?a.even_row_background.value:e%1==0&&0!==e&&""===n.backgroundColor?a.odd_row_background.value:n.backgroundColor,{height:n.rowHeight>"50"?n.rowHeight+"px":"",background:i}},tdInlineStyle:function(t,e){var n=this.setting.general.options.cell_padding.value,a=this.columnWidth(t,e);return 150===a&&(a=this.setting.general.options.cell_min_auto_width.value),{padding:n+"px","max-width":a+"px","min-width":a+"px","background-color":t.rows[e]?t.rows[e].style.backgroundColor:"",display:t.rows[e].style.colspan>0&&t.rows[e].style.rowspan>0?"":"none"}},tdInlineStyleResponsive:function(t,e,n,a,i,o,l){var s=Object.keys(this.headerInfo).length,r=this.responsive.responsive_settings.options.devices,c=this.setting.general.options.cell_padding.value,u=(a?1:0)+i,d=this.setting.background.options,p="";"mobile"===o?(c=r.mobile.mobile_cell_padding.value,p=.8*this.responsiveInitial.mobileActivePixel):"tablet"===o?(c=r.tablet.tablet_cell_padding.value,p=.8*this.responsiveInitial.tabletActivePixel):(c=this.setting.general.options.cell_padding.value,p=300);var m="",h="";return h=1==this.tableData.table.tr?a?p+"px":p/i+"px":a&&"column"==l?p/s+"px":p/u+"px",m=""!==t.backgroundColor?t.backgroundColor:0===n?""===e.backgroundColor?d.header_background.value:e.backgroundColor:n%2==0?""===e.backgroundColor?d.even_row_background.value:e.backgroundColor:n%1==0?""===e.backgroundColor?d.odd_row_background.value:e.backgroundColor:"",{padding:c+"px",height:""!==e.rowHeight?e.rowHeight+"px":"","max-width":h,"min-width":h,"background-color":m,"box-sizing":"border-box",overflow:"hidden",display:t.colspan>0&&t.rowspan>0||this.mobileDeviceShowHeader?"":"none"}},headerName:function(t){return this.tableData.headers[t]},updateHistoryByColumn:function(t,e,n){var a=this.merge.history[e];if(a&&n)if("push"===n){var i=Math.max.apply(Math,Ot(a.map((function(t){return t.columnIndex}))));Ot(new Set(a.map((function(t){return t.rowIndex})))).forEach((function(t){var e={rowIndex:t,columnIndex:i+1};a.push(e)}))}else"pop"===n&&a.forEach((function(e,n){if(e.columnIndex===t)for(var i=0;i<2;i++)a.splice(n,1)}))},updateHistoryByRow:function(t,e,n){var a=this.merge.history[t];if(a&&n)if("push"===n){var i=Math.max.apply(Math,Ot(a.map((function(t){return t.rowIndex}))));a.forEach((function(t,n){if(t.rowIndex===e){var o={rowIndex:i+1,columnIndex:t.columnIndex};a.push(o)}}))}else"pop"===n&&a.forEach((function(t,n){if(t.rowIndex===e)for(var i=0;i<2;i++)a.splice(n,1)}))},mergedTdIndexes:function(){var t=[],e=this.selectedColumnStyle,n=e&&e.tdId,a=this.merge.history[n];if(a){for(var i=Ot(new Set(a.map((function(t){return t.rowIndex})))),o=0;o<i.length;o++)t.push(o+this.table.rowIndex);t.shift()}return t},tableAlign:function(t){var e=this.responsive.responsive_settings.options.devices,n=this.setting.general.options.table_alignment.value;return"mobile"===t?n=e.mobile.mobile_table_alignment.value:"tablet"===t&&(n=e.tablet.tablet_table_alignment.value),this.responsiveAlign(n)},responsiveAlign:function(t){var e={};return"center"===t?e={"margin-left":"auto","margin-right":"auto"}:"left"===t?e={"margin-right":"auto"}:"right"===t&&(e={"margin-left":"auto"}),e}},computed:{tableMarginTop:function(){return{"margin-top":this.setting.global_styling.options.margin_top.value+"px"}},tableMarginBottom:function(){return{"margin-bottom":this.setting.global_styling.options.margin_bottom.value+"px"}},tableInlineStyle:function(){var t=this.setting.general.options,e=this.setting.border.options,n=t.columns_rows_separate;return{"table-layout":"fixed","border-collapse":this.getBoolean(n.value)?"separate":"collapse",border:e.table_border.value+"px solid "+e.border_color.value,"font-family":this.setting.global_styling.options.font_family.value,"border-spacing":"".concat(this.getBoolean(n.value)?n.childs.space_between_column.value+"px "+n.childs.space_between_row.value+"px":"0px")}},tableWrapperStyle:function(){var t=this.setting.general.options.container_max_width_switch;return{"max-width":this.getBoolean(t.value)?t.childs.container_max_width.value+"px":"","max-height":this.setting.general.options.container_max_height.value+"px"}},selectedTrId:function(){return this.table.row&&this.table.row.style&&this.table.row.style.trId},selectedRowSpan:function(){var t=this.selectedColumnStyle;return t&&t.rowspan?t.rowspan:1},columnName:function(){var t=this.tableData.headers,e=[];return t.forEach((function(t){e.push(t.slice(7,t.length))})),"column_"+(Math.max.apply(Math,e)+1)},selectedColumnStyle:function(){return this.table.column&&this.table.column.style}}},zt={data:function(){return{headerInfo:null,formattedResponsiveData:null,responsiveInitial:{showHeader:!1,itemsPerRow:1,tableData:{},tableDataLength:null,cell_direction:"row",mobileActivePixel:400,tabletActivePixel:750}}},methods:{calculateColSpan:function(t){return this.responsiveInitial.showHeader&&"row"===this.responsiveInitial.cell_direction?t.rowspan:this.responsiveInitial.showHeader&&"column"===this.responsiveInitial.cell_direction?t.colspan:1},calculateRowSpan:function(t){return this.responsiveInitial.showHeader&&"row"===this.responsiveInitial.cell_direction?t.colspan:this.responsiveInitial.showHeader&&"column"===this.responsiveInitial.cell_direction?t.rowspan:1},makeResponsiveDataFormat:function(){for(var t=this.deepClone(this.tableData.data),e=this.deepClone(this.tableData.headers),n={},a=0,i=function(i){e.forEach((function(o,l){var s=e.length-1===l?l:null,r=o.slice(7);n["data_"+a]=t[i].rows[o],n["data_"+a].rowIndex=i,n["data_"+a].columnIndex=r,n["data_"+a].rowStyle=t[i].style,n["data_"+a].lastColumnIndex=s,a++}))},o=0;o<t.length;o++)i(o);for(var l={},s=0;s<e.length;s++)l["data_"+s]=n["data_"+s];this.headerInfo=l,this.formattedResponsiveData=n},getResponsiveTableData:function(t,e,n,a){if("mobile"!==this.selectedDevice&&"tablet"!==this.selectedDevice)return{};a&&this.makeResponsiveDataFormat();var i=Object.keys(this.headerInfo).length,o=Object.keys(this.formattedResponsiveData).length,l={},s=0;if(e&&"row"===t)return this.headerAndCellDirectionRow(n,i,o);if(e&&"column"===t)return this.headerAndCellDirectionColumn(n,i);var r={},c=0,u=this.tableData.table.tr;if("row"===t)for(var d=0;d<o;d++)0!==this.formattedResponsiveData["data_"+d].style.rowspan&&0!==this.formattedResponsiveData["data_"+d].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+d],c++);else for(var p=0;p<i;p++)for(var m=0;m<u;m++){var h=p+m*i;0!==this.formattedResponsiveData["data_"+h].style.rowspan&&0!==this.formattedResponsiveData["data_"+h].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+h],c++)}for(var _=Object.keys(r).length,f=0;f<_;){for(var v={},b=0;b<n;b++)r["data_"+f]&&(v["data_"+b]=r["data_"+f],f++);l[s]=v,s++}return l},headerAndCellDirectionRow:function(t,e,n){var a={},i=0;if(1===Number(this.tableData.table.tr))return this.responsiveSingleRow(e);for(var o=Math.ceil((n-e)/(t*e)),l=0;l<o;l++)for(var s=0;s<e;s++){for(var r={},c=0;c<=t;c++)if(0==c)r["data_"+c]=this.formattedResponsiveData["data_"+s];else{var u=l*t*e+c*e+s;this.formattedResponsiveData["data_"+u]&&0!==this.formattedResponsiveData["data_"+u].style.rowspan&&0!==this.formattedResponsiveData["data_"+u].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+u])}a[i]=r,i++}return this.responsiveInitial.tableDataLength=Object.keys(a).length,a},headerAndCellDirectionColumn:function(t,e){var n={},a=0;if(1===Number(this.tableData.table.tr))return this.responsiveSingleRow(e);for(var i=e,o=Math.ceil((this.tableData.table.tr-1)/t),l=0;l<o;l++)for(var s=0;s<=t&&this.formattedResponsiveData["data_"+i];s++){for(var r={},c=0;c<e;c++)0===s?r["data_"+c]=this.formattedResponsiveData["data_"+c]:(this.formattedResponsiveData["data_"+i].style.rowspan>0&&this.formattedResponsiveData["data_"+i].style.colspan>0&&(r["data_"+c]=this.formattedResponsiveData["data_"+i]),i++);n[a]=r,a++}return this.responsiveInitial.tableDataLength=Object.keys(n).length,n},responsiveSingleRow:function(t){for(var e={},n=0,a=0;a<t;a++){var i={};this.headerInfo["data_"+a]&&(i["data_"+a]=this.headerInfo["data_"+a]),e[n]=i,n++}return e},bottomBorderResponsive:function(t,e,n,a){var i=Number(t)+1,o=this.deepClone(this.tableData.headers).length;return"column"===e&&i%(n+1)==0&&this.tableData.table.tr>1&&i!=this.responsiveInitial.tableDataLength||"row"===e&&i%o==0&&i!=this.responsiveInitial.tableDataLength?{borderBottom:("tablet"===this.selectedDevice?a.tablet.cell_border.value:a.mobile.cell_border.value)+"px solid black"}:void 0}},computed:{responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices},responsiveIsEnabled:function(){var t=this.responsive.general.options.enable_responsive_table.value;return this.getBoolean(t)},mobileDeviceShowHeader:function(){var t=this.responsiveDevice.mobile.top_row_as_header.value;return this.getBoolean(t)},tabletDeviceShowHeader:function(){var t=this.responsiveDevice.tablet.top_row_as_header.value;return this.getBoolean(t)},mobileDeviceItemsPerRow:function(){return this.responsiveDevice.mobile.items_per_row.value},tabletDeviceItemsPerRow:function(){return this.responsiveDevice.tablet.items_per_row.value},mobileDeviceBreakpoint:function(){var t=this.responsiveDevice.mobile.disable_breakpoint.value;return this.getBoolean(t)},tabletDeviceBreakpoint:function(){var t=this.responsiveDevice.tablet.disable_breakpoint.value;return this.getBoolean(t)},mobileDeviceCellDirection:function(){return this.responsiveDevice.mobile.cell_direction.value},tabletDeviceCellDirection:function(){return this.responsiveDevice.tablet.cell_direction.value},pixelBarValue:{get:function(){return"mobile"===this.selectedDevice?this.responsiveInitial.mobileActivePixel:this.responsiveInitial.tabletActivePixel},set:function(t){"mobile"===this.selectedDevice?this.responsiveInitial.mobileActivePixel=t:this.responsiveInitial.tabletActivePixel=t}},showPixelSlider:function(){return"mobile"!==this.selectedDevice||this.mobileDeviceBreakpoint?"tablet"!==this.selectedDevice||this.tabletDeviceBreakpoint?{preview:!1}:{preview:!0,min:700,max:1023}:{preview:!0,min:300,max:699}}}},Ft={methods:{id:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9;this.length=t,this.timestamp=+new Date;for(var e,n,a=this.timestamp.toString().split("").reverse(),i="",o=0;o<this.length;++o){i+=a[(e=0,n=a.length-1,Math.floor(Math.random()*(n-e+1))+e)]}return i},deepClone:function(t){return JSON.parse(JSON.stringify(t))},getBoolean:function(t){return!0===t||"true"===t},isEmpty:function(t){return t&&0===Object.keys(t).length},allEqual:function(t){return t.every((function(e){return e===t[0]}))},greaterThanOneNumber:function(t,e){return t.some((function(t){return t>e}))},keyExist:function(t,e){for(var n in t)if(e==n)return!0;return!1},ucWords:function(t){var e,n=t.split("_");for(e=0;e<n.length;e++)n[e]=n[e].charAt(0).toUpperCase()+n[e].slice(1);return n.join(" ")},upgradeMessage:function(){var t=(0,this.$createElement)("div",{domProps:{innerHTML:'You are using free version of ninja-tables, <a href="https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&amp;utm_medium=wp&amp;utm_campaign=wp_plugin&amp;utm_term=upgrade" target="_blank">Upgrade To Pro</a>'}});return this.$message({showClose:!0,message:this.$t(t),type:"warning"})}}};const Lt={name:"Layout",mixins:[Bt,zt,Ft],props:["setting","tableData","responsive","selectedDevice","initialData"],mounted:function(){var t=this;this.$nextTick((function(){jQuery("body").click((function(e){var n=document.querySelector(".tbody");jQuery("#leftside").click((function(e){t.isSelectedTdId=!0})),n.onclick=function(){t.isSelectedTdId=!0},!0===t.isSelectedTdId?t.isSelectedTdId=!1:(null!==t.selectedTdId&&t.$emit("editItem",""),t.selectedTdId=null,t.itemId=-1)}))}))},data:function(){return{countChangeContent:0,initialTableInfo:{tempTableData:null,tempSetting:null,tempResponsive:null},isSelectedTdId:!0,selectedTdId:null,itemId:-1,manage:!1,activeTab:"background",table:{multipleTd:!1,rowIndex:null,columnIndex:null,row:{},column:{},columns:[],rows:[]},maxWidth:""}},components:{draggable:jt(),TableData:Nt},methods:{iconSpacing:function(t){return"ribbon"===t.data.type?{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+"px","margin-left":("corner"===t.data.style.ribbonType?Number(t.data.style.cornerXAxis-this.setting.general.options.cell_padding.value+10):t.data.style.xAxis-Number(this.setting.general.options.cell_padding.value-10))+"px"}:{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+Number(t.data.style.margin.top)+"px","margin-left":"".concat(t.data.style.margin.left,"px"),"margin-right":"".concat(t.data.style.margin.right,"px"),width:"auto"}},stickyColumn:function(){return{position:"sticky",left:0,zIndex:1}},onMove:function(t){t&&t.to.id&&window.ninjaTableBus.$emit("singleTdId",t.to.id)},thInlineStyle:function(t){return{padding:"0px ".concat(this.setting.general.options.cell_padding.value,"px"),width:"".concat(this.tableHeadWidth(t),"px"),display:"".concat(this.displayHeader(t))}},displayHeader:function(t){var e=this;if(this.merge&&this.merge.rowColumn.length>1&&this.split.visible){var n=Object.values(this.merge.rowColumn).map((function(t){return e.headerName(t.columnIndex)}));return t!==this.headerName(this.table.columnIndex)&&n.includes(t)?"none":""}return""},headerColSpan:function(t){var e=this.selectedColumnStyle;return e&&e.colspan&&this.headerName(this.table.columnIndex)===t?e&&e.colspan:1},columnWidth:function(t,e){return t.rows&&t.rows[e]&&t.rows[e].style.columnWidth?t.rows[e].style.columnWidth:this.setting.general.options.cell_min_auto_width.value},tdId:function(t,e){return t.rows[e]?t.rows[e].style.tdId:null},dragRowColumn:function(t,e,n,a,i,o){this.table.columnIndex=a,this.table.rowIndex=e,this.manageCell(!0,this.activeTab)},setTdIndex:function(){for(var t=document.getElementById("ntb_table").getElementsByTagName("tbody"),e=t[0].rows,n=(e.length,e[0].getElementsByTagName("td").length-1),a=0;a<t.length;a++)for(var i=t[a].getElementsByTagName("td"),o=0;o<i.length;o++)jQuery(i[o]).attr("cellIndex",o+a*n+1)},manageCell:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"background";if(this.isSelectedTdId=!0,this.selectedTdId=null,"cells"===e){var n=this.tableData.table.merge.history;this.isEmpty(n)||(this.merge.history=n)}this.manage=t,this.activeTab=e;var a={data:{tdIds:this.tdIds,setting:this.setting,tableData:this.tableData.data,table:this.table,headers:this.tableData.headers},active:t,activeTab:e};window.ninjaTableBus.$emit("manage-cell",a)},styleChange:function(t,e,n,a,i){if(this.selectedTdId=t.id,this.manage)this.dragRowColumn(t,e,n,a,i);else if(t.id==this.itemId)this.itemId=-1;else{var o={edit:!0,item:t};this.$emit("editItem",o),window.ninjaTableBus.$emit("singleTdId","td_id_"+a.style.tdId),this.itemId=t.id}},copyItem:function(t,e,n){var a={id:this.id(),data:this.deepClone(n.data)};this.tableData.data[t].rows[e].columns.push(a)},deleteItem:function(t,e,n){this.$emit("editItem",""),this.tableData.data[t].rows[e].columns.splice(n,1)},innerBorder:function(t){var e=this.setting.border.options.inner_border,n=e.childs,a="";return 0!==t&&e.value&&(a="".concat(n.inner_border_size.value,"px solid ").concat(n.inner_border_color.value)),0===t&&e.value&&n.header_inner_border.value&&(a="".concat(n.inner_border_size.value,"px solid ").concat(n.inner_border_color.value)),{border:a}},tableHeadWidth:function(t){var e=this,n=this.table.columnIndex,a=this.table.row,i=(a&&this.columnWidth(a,t),this.headerColSpan(t)),o=11*i+(i>2?11*(i-2):0),l=this.deepClone(this.tableData.headers).splice(n,i);return i>1?(l.forEach((function(t){o+=a&&e.columnWidth(a,t)})),o):(a&&this.columnWidth(a,t))+1},detectChangesInTable:function(){if(this.countChangeContent>3&&this.initialTableInfo.tempTableData===JSON.stringify(this.tableData.data)&&this.initialTableInfo.tempSetting===JSON.stringify(this.setting)&&this.initialTableInfo.tempResponsive===JSON.stringify(this.responsive))return this.countChangeContent=3,void window.ninjaTableBus.$emit("saveData");this.countChangeContent>4||(this.countChangeContent++,4===this.countChangeContent&&window.ninjaTableBus.$emit("somethingChanged"))}},created:function(){var t=this;window.ninjaTableBus.$on("manageCell",(function(){t.table.columnIndex=null,t.table.rowIndex=null,t.selectedTdId=null,t.manage=!1,t.activeTab="background",t.clearMerge()}))},computed:{firstRowSticky:function(){var t=this.setting.sticky.options.first_row_sticky.value;return this.getBoolean(t)},firstColumnSticky:function(){var t=this.setting.sticky.options.first_column_sticky.value;return this.getBoolean(t)},tdThActiveMargin:function(){if(this.manage&&this.setting.border.options.table_border.value>0&&1===this.tdIds.length)return{"--td-th-active-margin":"-16px"}},tableWrapperActivePadding:function(){if(this.manage&&this.setting.border.options.table_border.value>0&&1===this.tdIds.length)return{"--table-wrapper-padding":"16px"}},showInnerBorder:function(){return this.setting.border.options.inner_border.value},tableBorder:function(){var t,e=this.setting.border.options,n=this.table.columnIndex,a=e.table_border?e.table_border.value:0,i=e.inner_border.childs?e.inner_border.childs.inner_border_size.value:0,o=this.getBoolean(this.setting.general.options.columns_rows_separate.value),l=this.setting.general.options?this.setting.general.options.columns_rows_separate.childs.space_between_column.value:0,s=this.setting.general.options?this.setting.general.options.columns_rows_separate.childs.space_between_row.value:0,r=0;o&&(r=2*l+(e.inner_border.value?n*i:0)),t=16+a+r-n+(e.inner_border.value?(n+1)*i:0);var c="".concat(-5-(o?s:0),"px");return{"--border-color":e.inner_border.childs.inner_border_color.value?e.inner_border.childs.inner_border_color.value:"#000000","--border-size":"".concat(i,"px"),"--column-arrow":"".concat(t,"px"),"--margin-top":c,"--margin-bottom":"-".concat(o?0===a?3*s:s:0,"px")}}},watch:{tableData:{handler:function(t,e){t&&(0===this.countChangeContent&&(this.initialTableInfo.tempTableData=JSON.stringify(this.tableData.data),this.initialTableInfo.tempSetting=JSON.stringify(this.setting),this.initialTableInfo.tempResponsive=JSON.stringify(this.responsive)),this.detectChangesInTable())},deep:!0},setting:{handler:function(t,e){t&&this.detectChangesInTable()},deep:!0},selectedDevice:function(t,e){this.responsiveInitial.showHeader="mobile"===t?this.mobileDeviceShowHeader:"tablet"===t&&this.tabletDeviceShowHeader,this.responsiveInitial.itemsPerRow="mobile"===t?this.mobileDeviceItemsPerRow:"tablet"===t?this.tabletDeviceItemsPerRow:1,this.responsiveInitial.cell_direction="mobile"===t?this.mobileDeviceCellDirection:"tablet"===t?this.tabletDeviceCellDirection:"row",this.responsiveInitial.tableData=this.getResponsiveTableData(this.responsiveInitial.cell_direction,this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow,!0)},responsive:{handler:function(t,e){t&&this.detectChangesInTable(),"mobile"===this.selectedDevice?(this.responsiveInitial.showHeader=this.getBoolean(t.mode_options.options.devices.mobile.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.mobile.items_per_row.value,this.responsiveInitial.cell_direction=t.mode_options.options.devices.mobile.cell_direction.value):"tablet"===this.selectedDevice&&(this.responsiveInitial.showHeader=this.getBoolean(t.mode_options.options.devices.tablet.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.tablet.items_per_row.value,this.responsiveInitial.cell_direction=t.mode_options.options.devices.tablet.cell_direction.value),this.responsiveInitial.tableData=this.getResponsiveTableData(this.responsiveInitial.cell_direction,this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow,!1)},deep:!0}}},Rt=Lt;var Ht=n(1620),qt={insert:"head",singleton:!1};s()(Ht.Z,qt);Ht.Z.locals;var Vt=a(Rt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja-tables-layout"},[""===t.selectedDevice?e("div",{staticClass:"table-customize-button"},["background"===t.activeTab?e("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-s-grid",size:"small"},on:{click:function(e){return t.manageCell(!0,"cells")}}},[t._v(t._s(t.$t("Manage Cells"))+"\n            ")]),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-ice-cream-square",size:"small"},on:{click:function(e){return t.manageCell(!0,"background")}}},[t._v(t._s(t.$t("Background"))+"\n            ")])],1):e("div",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-folder-checked",size:"small",disabled:t.tdIds.length<2||!1===t.merge.visible},on:{click:function(e){return t.mergeCell()}}},[t._v(t._s(t.$t("Merge"))+"\n            ")]),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-scissors",size:"small",disabled:!1===t.split.visible},on:{click:t.splitCell}},[t._v(t._s(t.$t("Split"))+"\n            ")])],1)],1):t._e(),t._v(" "),t.setting&&(t.setting.general&&t.setting.border&&t.setting.background)?e("div",{staticClass:"ntb_table_wrapper",style:[t.tableWrapperStyle,t.tableWrapperActivePadding],attrs:{id:"ninja_tables_builder_id"}},[t.responsiveIsEnabled&&t.showPixelSlider.preview?e("div",{staticClass:"pixel-bar-slider"},[e("el-slider",{attrs:{max:t.showPixelSlider.max,min:t.showPixelSlider.min,"show-input":""},model:{value:t.pixelBarValue,callback:function(e){t.pixelBarValue=e},expression:"pixelBarValue"}})],1):t._e(),t._v(" "),e("table",{class:"table ninja_tables_builder_class_"+t.tableData.id+" ntb_"+t.tableData.id,style:[t.tableMarginTop,t.tableMarginBottom,t.tableInlineStyle,t.tableAlign(t.selectedDevice)],attrs:{id:"ntb_table",role:"".concat(t.setting.accessibility.options.table_role.value)}},[t.manage?e("div",{staticClass:"table-header",style:t.tableBorder},[e("draggable",{attrs:{tag:"tr"},on:{change:t.dragColumn},model:{value:t.tableData.headers,callback:function(e){t.$set(t.tableData,"headers",e)},expression:"tableData.headers"}},t._l(t.tableData.headers,(function(n,a){return e("th",{key:n,class:t.thActiveInactiveClass(n),style:[t.tdThActiveMargin,t.thInlineStyle(n)],attrs:{scope:"col",colspan:t.headerColSpan(n)}},[t.headerName(t.table.columnIndex)!==n||1!==t.tdIds.length||t.merge.visible&&!t.split.visible?t._e():[e("el-dropdown",{staticClass:"column-options",attrs:{trigger:"click",placement:"top-start"}},[e("span",{staticClass:"el-dropdown-link"},[e("i",{staticClass:"el-icon-caret-bottom el-icon--right",class:a===t.table.columnIndex?"i-active":""})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnBefore()}}},[t._v(t._s(t.$t("Insert column before"))+"\n                                    ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert column after"))+"\n                                    ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addLeftColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert left column")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addRightColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert right column")))]),t._v(" "),e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.duplicateColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Duplicate column"))+"\n                                    ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.removeColumn.apply(null,arguments)}}},[e("p",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("Remove column")))])])],1)],1)]],2)})),0)],1):t._e(),t._v(" "),""===t.selectedDevice||"desktop"===t.selectedDevice||!t.responsiveIsEnabled||"mobile"===t.selectedDevice&&t.mobileDeviceBreakpoint||"tablet"===t.selectedDevice&&t.tabletDeviceBreakpoint?e("draggable",{staticClass:"tbody",style:t.tdThActiveMargin,attrs:{tag:"tbody"},on:{change:t.dragRow},model:{value:t.tableData.data,callback:function(e){t.$set(t.tableData,"data",e)},expression:"tableData.data"}},t._l(t.tableData.data,(function(n,a){return e("tr",{key:a,staticClass:"desktop-view",class:"".concat(t.table.rowIndex===a&&t.tdIds.length<=0?"single-row-column":"tr_class_"+n.style.trId," ").concat(t.firstRowSticky&0==a?"firstRowSticky":""),style:[t.trInlineStyle(n,a)],attrs:{id:t.trId(n.style.trId)}},[t.manage&&1===t.tdIds.length&&!t.mergedTdIndexes().includes(a)?e("td",{class:t.tdActiveInactiveClass(n.style.trId),attrs:{rowspan:t.tdActiveRowSpan(n.style.trId)}},[e("el-dropdown",{staticClass:"row-options",attrs:{trigger:"click",placement:"top-start"}},[e("span",{staticClass:"el-dropdown-link"},[e("i",{staticClass:"el-icon-caret-right"})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowBefore()}}},[t._v(t._s(t.$t("Insert row before")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert row after")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addTopRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert top row")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addBottomRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert bottom row")))]),t._v(" "),e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.duplicateRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Duplicate row"))+"\n                                ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.removeRow.apply(null,arguments)}}},[e("p",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("Remove row")))])])],1)],1)],1):t._e(),t._v(" "),t._l(t.tableData.headers,(function(i,o){return e("td",{key:i,class:[t.tdClass(n,i,o),t.highlightClass(n,i)],style:[t.tdInlineStyle(n,i),t.highlightedColumnStyle(n,i),t.showInnerBorder?t.innerBorder(a):"",t.firstColumnSticky&&0===o?t.stickyColumn():""],attrs:{id:"td_id_"+t.tdId(n,i),rowspan:n.rows[i].style.rowspan,colspan:n.rows[i].style.colspan},on:{click:[function(e){if(!e.shiftKey)return null;t.manage&&t.selectItem(a,i,o,n.rows[i],n,!0)},function(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return null;t.manage&&t.selectItem(a,i,o,n.rows[i],n,!1)}]}},[e("draggable",{attrs:{list:n.rows[i].columns,group:"people",id:t.tdIds.includes(t.tdId(n,i))?"selected-item":"td_id_"+t.tdId(n,i),move:t.onMove}},t._l(n.rows[i].columns,(function(l,s){return e("div",{key:s,staticClass:"single-item",class:[l.id===t.itemId?"item-active":"",t.manage?"single-item-edit":""===t.selectedDevice?"ribbon"===l.data.type?"only-ribbon":"other-item":"responsive-mode"]},[e("table-data",{attrs:{manage:t.manage,setting:t.setting,item:l},nativeOn:{click:function(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return null;!t.manage&&""===t.selectedDevice&&t.styleChange(l,a,o,n.rows[i],n)}}}),t._v(" "),t.manage||""!==t.selectedDevice?t._e():[e("div",{staticClass:"icon-style remove-elements",style:t.iconSpacing(l)},[e("i",{staticClass:"el-icon-rank"}),t._v(" "),e("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return t.copyItem(a,i,l)}}}),t._v(" "),e("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteItem(a,i,s)}}})])]],2)})),0)],1)}))],2)})),0):e("tbody",t._l(t.responsiveInitial.tableData,(function(n,a){return e("tr",{key:a,class:"".concat("mobile"===t.selectedDevice?"mobile-view tr_class_mobile_"+a:"tablet-view tr_class_tablet_"+a),style:[t.responsiveInitial.showHeader?t.bottomBorderResponsive(a,t.responsiveInitial.cell_direction,t.responsiveInitial.itemsPerRow,t.responsive.mode_options.options.devices):""],attrs:{id:"".concat("mobile"===t.selectedDevice?"tr_id_mobile_"+a:"tr_id_tablet_"+a)}},t._l(n,(function(a){return a.style.rowspan>0&&a.style.colspan>0?e("td",{style:[t.tdInlineStyleResponsive(a.style,a.rowStyle,a.rowIndex,t.responsiveInitial.showHeader,t.responsiveInitial.itemsPerRow,t.selectedDevice,t.responsiveInitial.cell_direction),t.innerBorder(a.rowIndex)],attrs:{id:"td_id_".concat(a.style.tdId),colspan:t.calculateColSpan(a.style),rowspan:t.calculateRowSpan(a.style)}},t._l(a.columns,(function(a,i){return e("span",{key:i},[n.id!=t.itemId?e("table-data",{staticClass:"responsive-mode",attrs:{setting:t.setting,item:a}}):t._e()],1)})),0):t._e()})),0)})),0)],1)]):t._e()])}),[],!1,null,null,null);const Wt=Vt.exports,Ut={name:"RightSideBar",props:["initialData","tableId","selectedDevice"],mixins:[Ft],components:{draggable:jt(),TableLayout:Wt},data:function(){return{newTable:!1,value:"",file:{},loading:!1,url:""}},computed:{tableRowColumn:function(){return this.initialData.table_data.table.tr*this.initialData.table_data.table.tc},hasPro:function(){return!!window.ninja_table_admin.hasPro}},methods:{upgradeToPro:function(){if(!this.hasPro)return this.upgradeMessage()},importCJ:function(){var t=this;if(this.url&&!this.hasPro)return this.upgradeMessage();this.loading=!0;var e=new FormData;e.append("file",this.file),e.append("url",this.url),this.$post("import/table-builder",e).then((function(e){t.loading=!1,t.$message({showClose:!0,message:t.$t("Imported successfully."),type:"success"}),t.$router.push({name:"table_builder_edit_table",params:{table_id:e.data.id}})})).catch((function(e){t.failedMessage()}))},handleRemove:function(t,e){this.file={}},handleFileSuccess:function(t,e){this.file=e.raw},beforeFileUpload:function(t){var e="text/csv"===t.type||"application/json"===t.type,n=t.size/1024/1024<1;return e||this.$message.error("File type must be CSV/JSON format!"),n||this.$message.error("File size can not exceed 1MB!"),e&&n},editItem:function(t){this.$emit("editItem",t)},failedMessage:function(){return this.$message({showClose:!0,message:this.$t("Something went wrong, please try again."),type:"warning"})},createTable:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t;if(!this.hasPro&&n.has_pro)return this.upgradeMessage();this.initialData.table_data.table_name?(this.initialData.table_data.table_type="default"===a?"":a,this.$post("table-builder",{data:this.initialData}).then((function(t){e.$message({showClose:!0,message:e.$t("Table created successfully."),type:"success"}),e.$router.push({name:"table_builder_edit_table",params:{table_id:t.data.id}})})).catch((function(t){e.failedMessage()}))):this.failedMessage()},getAsset:function(t){return window.ninja_table_admin.img_url+t}}};var Yt=n(5217),Zt={insert:"head",singleton:!1};s()(Yt.Z,Zt);Yt.Z.locals;const Jt=a(Ut,(function(){var t=this,e=t._self._c;return e("div",[t.tableId?t.tableId?e("el-row",[e("table-layout",{attrs:{initialData:t.initialData,tableData:t.initialData.table_data,setting:t.initialData.settings,responsive:t.initialData.responsive,selectedDevice:t.selectedDevice},on:{editItem:t.editItem}})],1):t._e():e("div",{staticStyle:{height:"500px","overflow-y":"scroll",padding:"0px 20px","box-sizing":"border-box"},attrs:{gutter:20}},[[e("h3",[t._v(t._s(t.$t("Create a Drag & Drop Table")))]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n        "+t._s(t.$t("Create your drag & drop table columns and rows to get complete control over your data with lots of customizations."))+"\n      ")])],t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.initialData.table_data.table_name,expression:"initialData.table_data.table_name"}],staticClass:"form-control",staticStyle:{width:"95%"},attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.initialData.table_data.table_name},on:{input:function(e){e.target.composing||t.$set(t.initialData.table_data,"table_name",e.target.value)}}})]),t._v(" "),t.newTable?t._e():e("el-row",{staticClass:"new-table-wrapper"},[e("el-col",{attrs:{span:12}},[[e("div",{staticClass:"new_table",style:"grid-template-rows:repeat(".concat(t.initialData.table_data.table.tr,",1fr);grid-template-columns:repeat(").concat(t.initialData.table_data.table.tc,",1fr)")},[e("el-input-number",{staticClass:"table-column-input",attrs:{step:1,min:1,max:30},model:{value:t.initialData.table_data.table.tc,callback:function(e){t.$set(t.initialData.table_data.table,"tc",e)},expression:"initialData.table_data.table.tc"}}),t._v(" "),e("el-input-number",{staticClass:"table-row-input",attrs:{step:1,min:1,max:30},model:{value:t.initialData.table_data.table.tr,callback:function(e){t.$set(t.initialData.table_data.table,"tr",e)},expression:"initialData.table_data.table.tr"}}),t._v(" "),t._l(t.tableRowColumn,(function(t){return e("span",{key:t,staticClass:"table-row-column"})}))],2),t._v(" "),e("div",{staticClass:"create-button"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.createTable("default")}}},[t._v("Create\n            ")])],1)]],2),t._v(" "),e("el-col",{attrs:{span:12}},[e("h4",[t._v(t._s(t.$t("Import Table from CSV / JSON File")))]),t._v(" "),e("hr"),t._v(" "),t.file.name?t._e():e("div",[e("el-input",{attrs:{disabled:!t.hasPro,placeholder:t.$t("Import CSV/JSON from URL")},nativeOn:{mouseover:function(e){return t.upgradeToPro.apply(null,arguments)}},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),e("hr")],1),t._v(" "),t.url?t._e():e("el-upload",{attrs:{accept:".csv, .json",drag:"",action:"#",limit:1,"before-upload":t.beforeFileUpload,"on-success":t.handleFileSuccess,"on-remove":t.handleRemove}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("div",{staticClass:"el-upload__text"},[t._v(t._s(t.$t("Drop file here or "))),e("em",[t._v(t._s(t.$t("click to upload")))])])]),t._v(" "),t.file.name||t.url?e("div",{staticClass:"import-button"},[e("el-button",{attrs:{loading:t.loading,type:"primary",size:"mini"},on:{click:t.importCJ}},[t._v("Import\n          ")])],1):t._e()],1)],1),t._v(" "),t.newTable?t._e():e("el-row",{staticClass:"new-table-wrapper"},t._l(t.initialData.ready_made_tables,(function(n,a){return e("el-col",{key:a,attrs:{span:24}},[e("div",{staticClass:"table-type-heading"},[e("h2",{staticClass:"ready-made-name"},[t._v(t._s(n.name))])]),t._v(" "),e("el-row",t._l(n.tables,(function(n,a){return e("el-col",{key:a,attrs:{span:8}},[e("div",{staticClass:"ready-made-table-image"},[e("img",{staticStyle:{margin:"0 auto",width:"180px",display:"flex"},attrs:{src:t.getAsset(n.key+".jpg"),alt:""}}),t._v(" "),e("div",{staticClass:"ready-made-table-button"},[e("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.createTable(n.key,n)}}},[e("span",[t._v(t._s(!t.hasPro&&n.has_pro?"Unlock in Pro":"Create"))])])],1)]),t._v(" "),e("h4",{staticClass:"table-title-style"},[t._v(t._s(n.name))])])})),1)],1)})),1)],2)],1)}),[],!1,null,null,null).exports,Xt={name:"add_table",components:{RightSideBar:Jt,wp_editor:C,"wp-posts-data-source":G,"woo-data-source":nt,"fluent-form-data-source":lt,"external-data-source":dt,ImportTable:_t,RawSqlForm:Ct,PremiumNotice:Y},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,initialData:{}}},methods:{createDragAndDropTable:function(){var t=this;this.$get("table-builder").then((function(e){t.initialData=e})).catch((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})}))},handleTabClick:function(t,e){setTimeout((function(){jQuery(t.$el).find("input:first").focus()}),0)},addTable:function(){var t=this;this.btnLoading=!0,this.$post("tables",{post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID}).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),t.btnLoading=!1})).catch((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"}),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(),this.createDragAndDropTable(),jQuery(window).resize((function(){t.checkScreenSize()}))}};var Qt=n(2797),Gt={insert:"head",singleton:!1};s()(Qt.Z,Gt);Qt.Z.locals;const Kt=a(Xt,(function(){var t=this,e=t._self._c;return e("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():e("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[e("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[e("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[e("i",{staticClass:"el-icon-setting"}),t._v(" "),e("span",[t._v("Default")])]),t._v(" "),e("el-menu-item",{attrs:{index:"drag_and_drop"},on:{click:function(e){t.activeTabName="drag_and_drop"}}},[e("i",{staticClass:"el-icon-s-unfold"}),t._v(" "),e("span",[t._v("Drag & Drop Table")])]),t._v(" "),e("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[e("i",{staticClass:"el-icon-upload2"}),t._v(" "),e("span",[t._v("Import Table")])]),t._v(" "),e("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[e("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),e("span",[t._v("Connect Fluent Forms")])]),t._v(" "),e("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[e("i",{staticClass:"el-icon-news"}),t._v(" "),e("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?e("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[e("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),e("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),e("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[e("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),e("span",[t._v("Connect Google Sheets")])]),t._v(" "),e("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[e("i",{staticClass:"el-icon-document"}),t._v(" "),e("span",[t._v("Connect External CSV")])]),t._v(" "),e("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[e("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),e("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),e("el-main",["default"==t.activeTabName?[e("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[e("h3",[t._v("Manually Create a Table")]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),e("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(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?e("span",[t._v(t._s(t.$t("Update")))]):e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"drag_and_drop"===t.activeTabName?[e("right-side-bar",{attrs:{initialData:t.initialData}})]:"import_table"===t.activeTabName?[e("import-table")]:"google_spread_sheet"==t.activeTabName?[e("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[e("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[e("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[e("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?e("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?e("div",[e("p",[t._v("Please update to latest version of "),e("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?e("div",{staticClass:"ninja_no_woo"},[e("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),e("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?[e("raw-sql-form",{attrs:{has_sql_permission:t.has_sql_permission,tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)}),[],!1,null,null,null).exports;const te={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)}))}}};var ee=n(6548),ne={insert:"head",singleton:!1};s()(ee.Z,ne);ee.Z.locals;const ae=a(te,(function(){var t=this,e=t._self._c;return t.leadVisible?e("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[e("p",[t._v("Hey "+t._s(t.display_name)+","),e("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(" "),e("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),e("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),e("div",{staticClass:"ninja_permissions"},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),e("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()}),[],!1,null,null,null).exports;const ie={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)}))}}};var oe=n(5508),le={insert:"head",singleton:!1};s()(oe.Z,le);oe.Z.locals;const se={name:"all_tables",components:{Welcome:h,"list-all-tables":y,"add-table-modal":Kt,"lead-modal":ae,NinjaReviewDialog:a(ie,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"review_dialog"},[e("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),e("div",{staticClass:"consent_body"},[e("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(" "),e("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(" "),e("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){return t.recordActivity("no")}}},[t._v("Hide Notification")])])])}),[],!1,null,null,null).exports},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)}))}};var re=n(5981),ce={insert:"head",singleton:!1};s()(re.Z,ce);re.Z.locals;const ue=a(se,(function(){var t=this,e=t._self._c;return e("div",[t.published_tables?[e("div",{staticClass:"row clearfix",staticStyle:{"margin-top":"10px"}},[e("h1",{staticClass:"wp-heading-inline"},[t._v("\n                    "+t._s(t.$t("All Tables"))+"\n                ")]),t._v(" "),e("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[e("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[e("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.apply(null,arguments)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),e("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),e("router-link",{attrs:{to:{name:"import_tables"}}},[e("el-button",{attrs:{size:"small"}},[t._v("\n                            "+t._s(t.$t("Import Table"))+"\n                        ")])],1),t._v(" "),e("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                    ")])],1)]),t._v(" "),e("hr"),t._v(" "),e("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}})]:e("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),e("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}}},[e("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),e("lead-modal")],2)}),[],!1,null,null,null).exports;const de=a({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(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"10px"}},[e("h1",{staticClass:"wp-heading-inline"},[t._v("\n    "+t._s(t.$t("Tools and Settings"))+"\n  ")]),t._v(" "),e("hr"),t._v(" "),e("el-container",[e("el-aside",{attrs:{width:"200px"}},[e("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(n){return n.status?e("el-menu-item",{key:n.route,attrs:{index:n.route,route:{name:n.route}}},[e("i",{class:n.icon_class}),t._v(" "),e("span",[t._v(t._s(n.title))])]):t._e()})),1)],1),t._v(" "),e("el-main",[e("router-view")],1)],1)],1)}),[],!1,null,null,null).exports;const pe={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"),dragAndDrop:this.$t("JSON/CSV - Exported From Drag & Drop Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){document.getElementById("fileUpload").value=""},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=document.getElementById("fileUpload").files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("do_unicode",this.do_unicode),this.$post("import/default",n).then((function(e){alert(e.message?e.message:t.$t("Successfully added a table.")),"dragAndDrop"===t.imports.format?t.$router.push({name:"table_builder_edit_table",params:{table_id:e.data.id}}):t.$router.push({name:"data_items",params:{table_id:e.tableId}})})).catch((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={plugin:t};this.$post("import/get-tables-from-other-plugin",n).then((function(n){n.tables?e.btnsLoading[t]=!1:e.$message.error("No Table Found"),e.showPluginModal=!0,e.otherPluginTables=n.tables})).catch((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={plugin:this.selectedPlugin,tableId:t.ID};this.$post("import/import-table-from-other-plugin",a).then((function(t){n.$message.success(t.data.message),n.importing=!1,n.$set(n.otherPluginTables[e],"ninja_table_id",t.data.tableId)})).catch((function(t){n.$message.error(t.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"}))}},me=pe;var he=n(299),_e={insert:"head",singleton:!1};s()(he.Z,_e);he.Z.locals;const fe=a(me,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_header"},[e("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"ninja_block"},[e("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(" "),e("hr"),t._v(" "),e("div",{staticClass:"ninja_block_section"},[e("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),e("p",[t._v("\n                Browse and locate a CSV/JSON file you backed up before.\n            ")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"form"},[e("div",{staticClass:"form-item"},["file"==t.imports.source?[e("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n                        File upload url\n                    ")]:[e("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),e("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),e("div",{staticClass:"form-item"},[e("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),e("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(n,a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(n))+"\n                        ")])})),0),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),e("div",{staticClass:"form-item"},[e("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(" "),e("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"),e("a",{attrs:{href:"https://ninjatables.com/docs/import-ninja-table-json/",target:"_blank"}},[t._v("here")])])],2),t._v(" "),e("div",{staticClass:"form-item"},[e("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(" "),e("hr"),t._v(" "),e("div",{staticClass:"ninja_block_section"},[e("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),e("table",{staticStyle:{"min-width":"400px"}},[e("tbody",t._l(t.otherPlugins,(function(n,a){return e("tr",[e("td",[t._v(t._s(n))]),t._v(" "),e("td",[e("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                                "),e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n                                "+t._s(t.$t("Import"))+"\n                            ")]],2)])])})),0)])])]),t._v(" "),e("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?[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[e("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.is_already_imported?e("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(n.row.post_title)+"\n                    ")]}}],null,!1,2469912787)}),t._v(" "),e("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.importThisTable(n.row,n.$index)}}},[t._v(t._s(t.$t("Import"))+"\n                        ")]),t._v(" "),n.row.ninja_table_id?e("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:n.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n                        ")]):t._e()]}}],null,!1,3480308331)})],1),t._v(" "),t.importing?[e("br"),e("br"),t._v(" "),e("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()]:e("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)}),[function(){var t=this,e=t._self._c;return e("p",[t._v("\n                Select the intended format and click "),e("strong",[t._v("Import")]),t._v(" button, we will do\n                the rest for you.\n            ")])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"help"},[t._v("\n                            Check tutorial for importing data from CSV file\n                          "),e("a",{attrs:{href:"https://ninjatables.com/docs/import-table-data-from-a-csv/",target:"_blank"}},[t._v("here")])])},function(){var t=this,e=t._self._c;return e("p",[t._v("\n                To import from other WordPress plugins click the respective "),e("strong",[t._v("Import")]),t._v("\n                button.\n            ")])}],!1,null,"84643dba",null).exports;const ve={name:"Privacy",components:{GetPro:i},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("tables/tools/permission").then((function(e){t.capability=e.capability,t.roles=e.roles,t.sql_permission=e.sql_permission,t.handleCheckedCapabilitiesChange(t.capability)})).catch((function(t){})),this.fetching=!1},store:function(){var t=this,e={capability:this.capability,sql_permission:this.sql_permission};this.$post("pro/permission",e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"})})).catch((function(e){t.$message({showClose:!0,message:e.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()}};var be=n(3449),ge={insert:"head",singleton:!1};s()(be.Z,ge);be.Z.locals;const ye=a(ve,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"privacy"},[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Permission "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),e("hr"),t._v(" "),t.hasPro?[e("div",{staticClass:"form-group"},[e("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(" "),e("div",{staticClass:"form-group"},[e("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,(function(n){return e("el-checkbox",{key:n.key,attrs:{label:n.key}},[t._v("\n                        "+t._s(n.name)+"\n                    ")])})),1)],1),t._v(" "),t.capability&&t.capability.length?e("div",{staticClass:"form-group"},[e("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(" "),e("div",{staticClass:"form-group"},[e("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           "),e("p",[e("get-pro")],1)]],2)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_block"},[t("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.")])])}],!1,null,null,null).exports;var we=n(5325),xe=n.n(we),ke=n(4486),Ce=n.n(ke);const Se=a({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{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"}}}.footable.colors},table_styles: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"}}}.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("tables/tools/default-settings").then((function(e){t.default_settings=e.data.default_settings})).catch((function(t){})),this.fetching=!1},store:function(){var t=this;this.saving=!0;var e=[];Ce()(this.availableStyles,(function(t){e.push(t.key)})),this.default_settings.css_classes=xe()(e,this.default_settings.css_classes),this.$post("tables/tools/default-settings",{default_settings:this.default_settings}).then((function(e){t.$message.success({showClose:!0,message:e.data.message,type:"success"})})).catch((function(t){})),this.saving=!1}},mounted:function(){this.get()}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"privacy"},[t._m(0),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),e("hr"),t._v(" "),[e("div",{staticClass:"ninja_block"},[e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Styling Library")]),t._v(" "),e("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(n,a){return e("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n                            "+t._s(n.title)+"\n                            "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:n.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,(function(n){return e("label",{key:n.key,attrs:{for:"table_style_"+n.key}},[e("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_"+n.key},domProps:{value:n.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,n.key)>-1:t.default_settings.css_classes},on:{change:function(e){var a=t.default_settings.css_classes,i=e.target,o=!!i.checked;if(Array.isArray(a)){var l=n.key,s=t._i(a,l);i.checked?s<0&&t.$set(t.default_settings,"css_classes",a.concat([l])):s>-1&&t.$set(t.default_settings,"css_classes",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(t.default_settings,"css_classes",o)}}}),t._v("\n                        "+t._s(n.title)+"\n                        "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:n.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2),t._v(" "),e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Features")]),t._v(" "),e("label",{attrs:{for:"show_title"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.default_settings,"show_title",n.concat(["1"])):o>-1&&t.$set(t.default_settings,"show_title",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.default_settings,"show_title",i)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n                        "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"show_description"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.default_settings,"show_description",n.concat(["1"])):o>-1&&t.$set(t.default_settings,"show_description",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.default_settings,"show_description",i)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n                        "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"enable_search"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.default_settings,"enable_search",n.concat(["1"])):o>-1&&t.$set(t.default_settings,"enable_search",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.default_settings,"enable_search",i)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n                    ")]),t._v(" "),e("label",{attrs:{for:"column_sorting"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.default_settings,"column_sorting",n.concat(["1"])):o>-1&&t.$set(t.default_settings,"column_sorting",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.default_settings,"column_sorting",i)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n                    ")]),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.default_settings,"hide_all_borders",n.concat([null])):o>-1&&t.$set(t.default_settings,"hide_all_borders",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.default_settings,"hide_all_borders",i)}}}),t._v("\n                        Hide All Borders\n                    ")])]),t._v(" "),e("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[e("h3",[t._v("Default Table Color")]),t._v(" "),e("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(n,a){return e("option",{key:a,domProps:{value:a}},[t._v("\n                            "+t._s(n)+"\n                        ")])})),0)]),t._v(" "),e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Pagination Setting")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[e("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),e("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(" "),e("div",{staticClass:"font-setting"},[e("h3",[t._v("Default Font Setting")]),t._v(" "),e("div",{staticClass:"font form_group"},[e("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),e("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,n){return e("option",{key:n,attrs:{label:"inherit"===t?"theme-font":t},domProps:{value:t}})})),0)]),t._v(" "),e("div",{staticClass:"font form_group",staticStyle:{"max-width":"400px"}},[e("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[e("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_header"},[t("h2",[this._v("Global Appearance Settings")])])},function(){var t=this._self._c;return t("div",{staticClass:"ninja_block"},[t("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            ")])])}],!1,null,null,null).exports;const je={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()}};var $e=n(8305),Te={insert:"head",singleton:!1};s()($e.Z,Te);$e.Z.locals;const De=a(je,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"license"},[e("div",{staticClass:"ninja_header"},["valid"==t.is_valid?e("div",[e("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[e("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):e("div",[e("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?e("div",{staticClass:"license_success"},[e("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),e("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?e("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[e("div",{staticClass:"checking_license license_renew_box",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),e("p",[t._v("If you already renewed your license then please "),e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),e("p",[t._v("Have a new license key? Please "),e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?e("div",{staticClass:"license_form"},[e("label",{attrs:{for:"license_form_input"}},[t._v("\n                    "+t._s(t.$t("Enter your license key"))+"\n                ")]),t._v(" "),e("div",{staticClass:"form_input"},[e("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(" "),e("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(" "),e("div",{staticClass:"nt_messages"},[t.error_message?e("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):e("div",{staticClass:"license_form"},[e("label",{attrs:{for:"license_form_input"}},[t._v("\n                "+t._s(t.$t("Enter your license key"))+"\n            ")]),t._v(" "),e("div",{staticClass:"form_input"},[e("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(" "),e("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(" "),e("div",{staticClass:"nt_messages"},[t.error_message?e("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])}),[function(){var t=this,e=t._self._c;return e("p",[t._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"}},[t._v("Click\n                Here")]),t._v(" to get a license key from your purchase. "),e("br"),t._v("Any questions or problems with your license? "),e("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[t._v("Contact us!")])])}],!1,null,null,null).exports;const Ie=a({name:"GlobalSettings",data:function(){return{loading:!1,ninja_suppress_error:"log_silently"}},methods:{getSettings:function(){var t=this;this.loading=!0,this.$get("tables/tools/global-settings").then((function(e){t.ninja_suppress_error=e.data.ninja_suppress_error})).catch((function(t){})),this.loading=!1},storeSettings:function(){var t=this;this.$post("tables/tools/global-settings",{suppress_error:this.ninja_suppress_error}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})})).catch((function(t){}))},clearCache:function(){var t=this;this.$post("tables/tools/clear-cache").then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})})).catch((function(t){}))}},mounted:function(){this.getSettings()}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"privacy"},[t._m(0),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[e("div",{staticClass:"ninja_block"},[e("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),e("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"}},[e("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),e("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),e("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),e("div",{staticClass:"ninja_block ninja_heightlight_block"},[e("h3",[t._v("Clear Table Cache")]),t._v(" "),e("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),e("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){return t.clearCache()}}},[t._v("Clear Table Cache")])],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_header"},[t("h2",[this._v("Global Settings")])])}],!1,null,null,null).exports;const Pe={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("install/ninja-charts",{plugin:"ninja-charts"}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),window.location=e.data.redirect})).catch((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"})})),this.loading=!1}}};var Ee=n(7548),Ae={insert:"head",singleton:!1};s()(Ee.Z,Ae);Ee.Z.locals;const Ne=a(Pe,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_intro_welcome"},[e("div",{staticClass:"ninja_charts_promo_banner"},[e("img",{attrs:{src:t.imageUrl("ninja-charts-promo.png"),alt:"Ninja Charts"}})]),t._v(" "),e("h2",[t._v("Welcome to Ninja Charts")]),t._v(" "),e("p",[t._v("Best WP Charts Plugin for WordPress")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"ninja_actions"},[e("el-button",{attrs:{type:"danger",loading:t.loading},on:{click:function(e){return t.click()}}},[t._v("\n            Enable Ninja Charts\n        ")])],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_charts_promo"},[t("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:""}})])}],!1,null,"07f09a0d",null).exports;const Oe=a({name:"add_table",components:{wp_editor:C},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={post_title:this.table.post_title,post_content:this.table.post_content,table_caption:this.table.table_caption,tableId:this.table.ID};this.$post("tables",e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.btnLoading=!1,t.closeModal()})).catch((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"}),t.btnLoading=!1}))},closeModal:function(){this.$emit("modal_close")}},mounted:function(){}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_table_edit"},[e("div",{staticClass:"ninja_modal-body"},[e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),e("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(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{loading:t.btnLoading,type:"primary",size:"small"},on:{click:t.addTable}},[t._v("\n            "+t._s(t.$t("Update"))+"\n        ")])],1)])}),[],!1,null,null,null).exports;var Me=n(4238),Be=n.n(Me),ze=n(2628),Fe=n.n(ze);function Le(t){return Le="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},Le(t)}function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function He(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Le(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==Le(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Le(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qe={name:"table_home",components:{edit_table:Oe},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,n=this.tableId,a={table_id:this.tableId,columns:this.config.columns};this.$post("settings/"+n,a).then((function(n){e.$message({showClose:!0,message:n.message,type:"success"}),t(n)}))},getSettings:function(){var t=this,e=this.tableId;this.$get("settings/"+e).then((function(e){"[object Object]"==Object.prototype.toString.call(e.columns)&&(e.columns=Fe()(e.columns)),t.config=e,t.table=e.table,t.preview_url=e.preview_url})).catch((function(e){t.$message.error(e.responseJSON.data.message),e.responseJSON.data.route&&t.$router.push({name:e.responseJSON.data.route})}))},goToTab:function(t){this.user_tab=t,this.$router.push({name:"custom_tab",params:{table_id:this.tableId},query:{user_tab:t}})},size:Be(),each:tt(),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 i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(n),!0).forEach((function(e){He(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e);t.$post("pro/sortable/init",i).then((function(t){return n(t)})).catch((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")}},Ve=qe;var We=n(6368),Ue={insert:"head",singleton:!1};s()(We.Z,Ue);We.Z.locals;const Ye=a(Ve,(function(){var t=this,e=t._self._c;return e("div",[t.doingAjax?e("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),e("div",{staticClass:"settings_header"},[e("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[e("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[e("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),e("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),e("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'.concat(t.tableId,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n                ')])])],1),t._v(" "),e("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[e("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),e("a",{attrs:{href:t.preview_url,target:"_blank"}},[e("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():e("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"}},[e("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Get Pro")))])],1)],1)]),t._v(" "),e("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[e("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,(function(n){return e("router-link",{key:n.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:n.route,params:{table_id:t.tableId}}}},[t._v("\n                "+t._s(n.title)+"\n            ")])})),1),t._v(" "),t.config?e("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),e("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?e("edit_table",{attrs:{table:t.table},on:{modal_close:function(e){t.editTableModalShow=!t.editTableModalShow}}}):t._e()],1)],1)}),[],!1,null,null,null).exports;function Ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(n),!0).forEach((function(e){Qe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xe(t){return Xe="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},Xe(t)}function Qe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ge(){return Ge=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},Ge.apply(this,arguments)}function Ke(t,e){if(null==t)return{};var n,a,i=function(t,e){if(null==t)return{};var n,a,i={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function tn(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var en=tn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),nn=tn(/Edge/i),an=tn(/firefox/i),on=tn(/safari/i)&&!tn(/chrome/i)&&!tn(/android/i),ln=tn(/iP(ad|od|hone)/i),sn=tn(/chrome/i)&&tn(/android/i),rn={capture:!1,passive:!1};function cn(t,e,n){t.addEventListener(e,n,!en&&rn)}function un(t,e,n){t.removeEventListener(e,n,!en&&rn)}function dn(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 pn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function mn(t,e,n,a){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&dn(t,e):dn(t,e))||a&&t===n)return t;if(t===n)break}while(t=pn(t))}return null}var hn,_n=/\s+/g;function fn(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(_n," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(_n," ")}}function vn(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 bn(t,e){var n="";if("string"==typeof t)n=t;else do{var a=vn(t,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function gn(t,e,n){if(t){var a=t.getElementsByTagName(e),i=0,o=a.length;if(n)for(;i<o;i++)n(a[i],i);return a}return[]}function yn(){var t=document.scrollingElement;return t||document.documentElement}function wn(t,e,n,a,i){if(t.getBoundingClientRect||t===window){var o,l,s,r,c,u,d;if(t!==window&&t.parentNode&&t!==yn()?(l=(o=t.getBoundingClientRect()).top,s=o.left,r=o.bottom,c=o.right,u=o.height,d=o.width):(l=0,s=0,r=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!en))do{if(i&&i.getBoundingClientRect&&("none"!==vn(i,"transform")||n&&"static"!==vn(i,"position"))){var p=i.getBoundingClientRect();l-=p.top+parseInt(vn(i,"border-top-width")),s-=p.left+parseInt(vn(i,"border-left-width")),r=l+o.height,c=s+o.width;break}}while(i=i.parentNode);if(a&&t!==window){var m=bn(i||t),h=m&&m.a,_=m&&m.d;m&&(r=(l/=_)+(u/=_),c=(s/=h)+(d/=h))}return{top:l,left:s,bottom:r,right:c,width:d,height:u}}}function xn(t,e,n){for(var a=$n(t,!0),i=wn(t)[e];a;){var o=wn(a)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return a;if(a===yn())break;a=$n(a,!1)}return!1}function kn(t,e,n,a){for(var i=0,o=0,l=t.children;o<l.length;){if("none"!==l[o].style.display&&l[o]!==Pa.ghost&&(a||l[o]!==Pa.dragged)&&mn(l[o],n.draggable,t,!1)){if(i===e)return l[o];i++}o++}return null}function Cn(t,e){for(var n=t.lastElementChild;n&&(n===Pa.ghost||"none"===vn(n,"display")||e&&!dn(n,e));)n=n.previousElementSibling;return n||null}function Sn(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Pa.clone||e&&!dn(t,e)||n++;return n}function jn(t){var e=0,n=0,a=yn();if(t)do{var i=bn(t),o=i.a,l=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*l}while(t!==a&&(t=t.parentNode));return[e,n]}function $n(t,e){if(!t||!t.getBoundingClientRect)return yn();var n=t,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=vn(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return yn();if(a||e)return n;a=!0}}}while(n=n.parentNode);return yn()}function Tn(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 Dn(t,e){return function(){if(!hn){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),hn=setTimeout((function(){hn=void 0}),e)}}}function In(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Pn(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)}var En="Sortable"+(new Date).getTime();function An(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==vn(t,"display")&&t!==Pa.ghost){e.push({target:t,rect:wn(t)});var n=Je({},e[e.length-1].rect);if(t.thisAnimationDuration){var a=bn(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 i=!1,o=0;e.forEach((function(t){var e=0,n=t.target,l=n.fromRect,s=wn(n),r=n.prevFromRect,c=n.prevToRect,u=t.rect,d=bn(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Tn(r,s)&&!Tn(l,s)&&(u.top-s.top)/(u.left-s.left)==(l.top-s.top)/(l.left-s.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)),Tn(s,l)||(n.prevFromRect=l,n.prevToRect=s,e||(e=a.options.animation),a.animate(n,u,s,e)),e&&(i=!0,o=Math.max(o,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),i?t=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,a){if(a){vn(t,"transition",""),vn(t,"transform","");var i=bn(this.el),o=i&&i.a,l=i&&i.d,s=(e.left-n.left)/(o||1),r=(e.top-n.top)/(l||1);t.animatingX=!!s,t.animatingY=!!r,vn(t,"transform","translate3d("+s+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),vn(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),vn(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){vn(t,"transition",""),vn(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),a)}}}}var Nn=[],On={initializeByDefault:!0},Mn={mount:function(t){for(var e in On)On.hasOwnProperty(e)&&!(e in t)&&(t[e]=On[e]);Nn.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Nn.push(t)},pluginEvent:function(t,e,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var i=t+"Global";Nn.forEach((function(a){e[a.pluginName]&&(e[a.pluginName][i]&&e[a.pluginName][i](Je({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](Je({sortable:e},n)))}))},initializePlugins:function(t,e,n,a){for(var i in Nn.forEach((function(a){var i=a.pluginName;if(t.options[i]||a.initializeByDefault){var o=new a(t,e,t.options);o.sortable=t,o.options=t.options,t[i]=o,Ge(n,o.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var o=this.modifyOption(t,i,t.options[i]);void 0!==o&&(t.options[i]=o)}},getEventProperties:function(t,e){var n={};return Nn.forEach((function(a){"function"==typeof a.eventProperties&&Ge(n,a.eventProperties.call(e[a.pluginName],t))})),n},modifyOption:function(t,e,n){var a;return Nn.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(a=i.optionListeners[e].call(t[i.pluginName],n))})),a}};function Bn(t){var e=t.sortable,n=t.rootEl,a=t.name,i=t.targetEl,o=t.cloneEl,l=t.toEl,s=t.fromEl,r=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,m=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[En]){var _,f=e.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||en||nn?(_=document.createEvent("Event")).initEvent(a,!0,!0):_=new CustomEvent(a,{bubbles:!0,cancelable:!0}),_.to=l||n,_.from=s||n,_.item=i||n,_.clone=o,_.oldIndex=r,_.newIndex=c,_.oldDraggableIndex=u,_.newDraggableIndex=d,_.originalEvent=p,_.pullMode=m?m.lastPutMode:void 0;var b=Je(Je({},h),Mn.getEventProperties(a,e));for(var g in b)_[g]=b[g];n&&n.dispatchEvent(_),f[v]&&f[v].call(e,_)}}var zn=["evt"],Fn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,i=Ke(n,zn);Mn.pluginEvent.bind(Pa)(t,e,Je({dragEl:Rn,parentEl:Hn,ghostEl:qn,rootEl:Vn,nextEl:Wn,lastDownEl:Un,cloneEl:Yn,cloneHidden:Zn,dragStarted:sa,putSortable:ta,activeSortable:Pa.active,originalEvent:a,oldIndex:Jn,oldDraggableIndex:Qn,newIndex:Xn,newDraggableIndex:Gn,hideGhostForTarget:$a,unhideGhostForTarget:Ta,cloneNowHidden:function(){Zn=!0},cloneNowShown:function(){Zn=!1},dispatchSortableEvent:function(t){Ln({sortable:e,name:t,originalEvent:a})}},i))};function Ln(t){Bn(Je({putSortable:ta,cloneEl:Yn,targetEl:Rn,rootEl:Vn,oldIndex:Jn,oldDraggableIndex:Qn,newIndex:Xn,newDraggableIndex:Gn},t))}var Rn,Hn,qn,Vn,Wn,Un,Yn,Zn,Jn,Xn,Qn,Gn,Kn,ta,ea,na,aa,ia,oa,la,sa,ra,ca,ua,da,pa=!1,ma=!1,ha=[],_a=!1,fa=!1,va=[],ba=!1,ga=[],ya="undefined"!=typeof document,wa=ln,xa=nn||en?"cssFloat":"float",ka=ya&&!sn&&!ln&&"draggable"in document.createElement("div"),Ca=function(){if(ya){if(en)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Sa=function(t,e){var n=vn(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=kn(t,0,e),o=kn(t,1,e),l=i&&vn(i),s=o&&vn(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+wn(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+wn(o).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(i&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=a&&"none"===n[xa]||o&&"none"===n[xa]&&r+c>a)?"vertical":"horizontal"},ja=function(t){function e(t,n){return function(a,i,o,l){var s=a.options.group.name&&i.options.group.name&&a.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(a,i,o,l),n)(a,i,o,l);var r=(n?a:i).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var n={},a=t.group;a&&"object"==Xe(a)||(a={name:a}),n.name=a.name,n.checkPull=e(a.pull,!0),n.checkPut=e(a.put),n.revertClone=a.revertClone,t.group=n},$a=function(){!Ca&&qn&&vn(qn,"display","none")},Ta=function(){!Ca&&qn&&vn(qn,"display","")};ya&&!sn&&document.addEventListener("click",(function(t){if(ma)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),ma=!1,!1}),!0);var Da=function(t){if(Rn){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,ha.some((function(t){var e=t[En].options.emptyInsertThreshold;if(e&&!Cn(t)){var n=wn(t),a=i>=n.left-e&&i<=n.right+e,s=o>=n.top-e&&o<=n.bottom+e;return a&&s?l=t:void 0}})),l);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[En]._onDragOver(n)}}var i,o,l},Ia=function(t){Rn&&Rn.parentNode[En]._isOutsideThisEl(t.target)};function Pa(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=Ge({},e),t[En]=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 Sa(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!==Pa.supportPointer&&"PointerEvent"in window&&!on,emptyInsertThreshold:5};for(var a in Mn.initializePlugins(this,t,n),n)!(a in e)&&(e[a]=n[a]);for(var i in ja(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&ka,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?cn(t,"pointerdown",this._onTapStart):(cn(t,"mousedown",this._onTapStart),cn(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(cn(t,"dragover",this),cn(t,"dragenter",this)),ha.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ge(this,An())}function Ea(t,e,n,a,i,o,l,s){var r,c,u=t[En],d=u.options.onMove;return!window.CustomEvent||en||nn?(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=i||e,r.relatedRect=o||wn(e),r.willInsertAfter=s,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function Aa(t){t.draggable=!1}function Na(){ba=!1}function Oa(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 Ma(t){return setTimeout(t,0)}function Ba(t){return clearTimeout(t)}Pa.prototype={constructor:Pa,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ra=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Rn):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,a=this.options,i=a.preventOnFilter,o=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=a.filter;if(function(t){ga.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var a=e[n];a.checked&&ga.push(a)}}(n),!Rn&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||a.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!on||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=mn(s,a.draggable,n,!1))&&s.animated||Un===s)){if(Jn=Sn(s),Qn=Sn(s,a.draggable),"function"==typeof c){if(c.call(this,t,s,this))return Ln({sortable:e,rootEl:r,name:"filter",targetEl:s,toEl:n,fromEl:n}),Fn("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(a){if(a=mn(r,a.trim(),n,!1))return Ln({sortable:e,rootEl:a,name:"filter",targetEl:s,fromEl:n,toEl:n}),Fn("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());a.handle&&!mn(r,a.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var a,i=this,o=i.el,l=i.options,s=o.ownerDocument;if(n&&!Rn&&n.parentNode===o){var r=wn(n);if(Vn=o,Hn=(Rn=n).parentNode,Wn=Rn.nextSibling,Un=n,Kn=l.group,Pa.dragged=Rn,ea={target:Rn,clientX:(e||t).clientX,clientY:(e||t).clientY},oa=ea.clientX-r.left,la=ea.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Rn.style["will-change"]="all",a=function(){Fn("delayEnded",i,{evt:t}),Pa.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!an&&i.nativeDraggable&&(Rn.draggable=!0),i._triggerDragStart(t,e),Ln({sortable:i,name:"choose",originalEvent:t}),fn(Rn,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){gn(Rn,t.trim(),Aa)})),cn(s,"dragover",Da),cn(s,"mousemove",Da),cn(s,"touchmove",Da),cn(s,"mouseup",i._onDrop),cn(s,"touchend",i._onDrop),cn(s,"touchcancel",i._onDrop),an&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Rn.draggable=!0),Fn("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(nn||en))a();else{if(Pa.eventCanceled)return void this._onDrop();cn(s,"mouseup",i._disableDelayedDrag),cn(s,"touchend",i._disableDelayedDrag),cn(s,"touchcancel",i._disableDelayedDrag),cn(s,"mousemove",i._delayedDragTouchMoveHandler),cn(s,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&cn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,l.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(){Rn&&Aa(Rn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;un(t,"mouseup",this._disableDelayedDrag),un(t,"touchend",this._disableDelayedDrag),un(t,"touchcancel",this._disableDelayedDrag),un(t,"mousemove",this._delayedDragTouchMoveHandler),un(t,"touchmove",this._delayedDragTouchMoveHandler),un(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?cn(document,"pointermove",this._onTouchMove):cn(document,e?"touchmove":"mousemove",this._onTouchMove):(cn(Rn,"dragend",this),cn(Vn,"dragstart",this._onDragStart));try{document.selection?Ma((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(pa=!1,Vn&&Rn){Fn("dragStarted",this,{evt:e}),this.nativeDraggable&&cn(document,"dragover",Ia);var n=this.options;!t&&fn(Rn,n.dragClass,!1),fn(Rn,n.ghostClass,!0),Pa.active=this,t&&this._appendGhost(),Ln({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(na){this._lastX=na.clientX,this._lastY=na.clientY,$a();for(var t=document.elementFromPoint(na.clientX,na.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(na.clientX,na.clientY))!==e;)e=t;if(Rn.parentNode[En]._isOutsideThisEl(t),e)do{if(e[En]){if(e[En]._onDragOver({clientX:na.clientX,clientY:na.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ta()}},_onTouchMove:function(t){if(ea){var e=this.options,n=e.fallbackTolerance,a=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=qn&&bn(qn,!0),l=qn&&o&&o.a,s=qn&&o&&o.d,r=wa&&da&&jn(da),c=(i.clientX-ea.clientX+a.x)/(l||1)+(r?r[0]-va[0]:0)/(l||1),u=(i.clientY-ea.clientY+a.y)/(s||1)+(r?r[1]-va[1]:0)/(s||1);if(!Pa.active&&!pa){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(qn){o?(o.e+=c-(aa||0),o.f+=u-(ia||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");vn(qn,"webkitTransform",d),vn(qn,"mozTransform",d),vn(qn,"msTransform",d),vn(qn,"transform",d),aa=c,ia=u,na=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!qn){var t=this.options.fallbackOnBody?document.body:Vn,e=wn(Rn,!0,wa,!0,t),n=this.options;if(wa){for(da=t;"static"===vn(da,"position")&&"none"===vn(da,"transform")&&da!==document;)da=da.parentNode;da!==document.body&&da!==document.documentElement?(da===document&&(da=yn()),e.top+=da.scrollTop,e.left+=da.scrollLeft):da=yn(),va=jn(da)}fn(qn=Rn.cloneNode(!0),n.ghostClass,!1),fn(qn,n.fallbackClass,!0),fn(qn,n.dragClass,!0),vn(qn,"transition",""),vn(qn,"transform",""),vn(qn,"box-sizing","border-box"),vn(qn,"margin",0),vn(qn,"top",e.top),vn(qn,"left",e.left),vn(qn,"width",e.width),vn(qn,"height",e.height),vn(qn,"opacity","0.8"),vn(qn,"position",wa?"absolute":"fixed"),vn(qn,"zIndex","100000"),vn(qn,"pointerEvents","none"),Pa.ghost=qn,t.appendChild(qn),vn(qn,"transform-origin",oa/parseInt(qn.style.width)*100+"% "+la/parseInt(qn.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,a=t.dataTransfer,i=n.options;Fn("dragStart",this,{evt:t}),Pa.eventCanceled?this._onDrop():(Fn("setupClone",this),Pa.eventCanceled||((Yn=Pn(Rn)).removeAttribute("id"),Yn.draggable=!1,Yn.style["will-change"]="",this._hideClone(),fn(Yn,this.options.chosenClass,!1),Pa.clone=Yn),n.cloneId=Ma((function(){Fn("clone",n),Pa.eventCanceled||(n.options.removeCloneOnHide||Vn.insertBefore(Yn,Rn),n._hideClone(),Ln({sortable:n,name:"clone"}))})),!e&&fn(Rn,i.dragClass,!0),e?(ma=!0,n._loopId=setInterval(n._emulateDragOver,50)):(un(document,"mouseup",n._onDrop),un(document,"touchend",n._onDrop),un(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(n,a,Rn)),cn(document,"drop",n),vn(Rn,"transform","translateZ(0)")),pa=!0,n._dragStartId=Ma(n._dragStarted.bind(n,e,t)),cn(document,"selectstart",n),sa=!0,on&&vn(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,a,i,o=this.el,l=t.target,s=this.options,r=s.group,c=Pa.active,u=Kn===r,d=s.sort,p=ta||c,m=this,h=!1;if(!ba){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=mn(l,s.draggable,o,!0),D("dragOver"),Pa.eventCanceled)return h;if(Rn.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return P(!1);if(ma=!1,c&&!s.disabled&&(u?d||(a=Hn!==Vn):ta===this||(this.lastPutMode=Kn.checkPull(this,c,Rn,t))&&r.checkPut(this,c,Rn,t))){if(i="vertical"===this._getDirection(t,l),e=wn(Rn),D("dragOverValid"),Pa.eventCanceled)return h;if(a)return Hn=Vn,I(),this._hideClone(),D("revert"),Pa.eventCanceled||(Wn?Vn.insertBefore(Rn,Wn):Vn.appendChild(Rn)),P(!0);var _=Cn(o,s.draggable);if(!_||function(t,e,n){var a=wn(Cn(n.el,n.options.draggable)),i=10;return e?t.clientX>a.right+i||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+i}(t,i,this)&&!_.animated){if(_===Rn)return P(!1);if(_&&o===t.target&&(l=_),l&&(n=wn(l)),!1!==Ea(Vn,o,Rn,e,l,n,t,!!l))return I(),_&&_.nextSibling?o.insertBefore(Rn,_.nextSibling):o.appendChild(Rn),Hn=o,E(),P(!0)}else if(_&&function(t,e,n){var a=wn(kn(n.el,0,n.options,!0)),i=10;return e?t.clientX<a.left-i||t.clientY<a.top&&t.clientX<a.right:t.clientY<a.top-i||t.clientY<a.bottom&&t.clientX<a.left}(t,i,this)){var f=kn(o,0,s,!0);if(f===Rn)return P(!1);if(n=wn(l=f),!1!==Ea(Vn,o,Rn,e,l,n,t,!1))return I(),o.insertBefore(Rn,f),Hn=o,E(),P(!0)}else if(l.parentNode===o){n=wn(l);var v,b,g,y=Rn.parentNode!==o,w=!function(t,e,n){var a=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,l=n?e.left:e.top,s=n?e.right:e.bottom,r=n?e.width:e.height;return a===l||i===s||a+o/2===l+r/2}(Rn.animated&&Rn.toRect||e,l.animated&&l.toRect||n,i),x=i?"top":"left",k=xn(l,"top","top")||xn(Rn,"top","top"),C=k?k.scrollTop:void 0;if(ra!==l&&(b=n[x],_a=!1,fa=!w&&s.invertSwap||y),v=function(t,e,n,a,i,o,l,s){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(!l)if(s&&ua<c*i){if(!_a&&(1===ca?r>u+c*o/2:r<d-c*o/2)&&(_a=!0),_a)p=!0;else if(1===ca?r<u+ua:r>d-ua)return-ca}else if(r>u+c*(1-i)/2&&r<d-c*(1-i)/2)return function(t){return Sn(Rn)<Sn(t)?1:-1}(e);if((p=p||l)&&(r<u+c*o/2||r>d-c*o/2))return r>u+c/2?1:-1;return 0}(t,l,n,i,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,fa,ra===l),0!==v){var S=Sn(Rn);do{S-=v,g=Hn.children[S]}while(g&&("none"===vn(g,"display")||g===qn))}if(0===v||g===l)return P(!1);ra=l,ca=v;var j=l.nextElementSibling,$=!1,T=Ea(Vn,o,Rn,e,l,n,t,$=1===v);if(!1!==T)return 1!==T&&-1!==T||($=1===T),ba=!0,setTimeout(Na,30),I(),$&&!j?o.appendChild(Rn):l.parentNode.insertBefore(Rn,$?j:l),k&&In(k,0,C-k.scrollTop),Hn=Rn.parentNode,void 0===b||fa||(ua=Math.abs(b-wn(l)[x])),E(),P(!0)}if(o.contains(Rn))return P(!1)}return!1}function D(s,r){Fn(s,m,Je({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:a,dragRect:e,targetRect:n,canSort:d,fromSortable:p,target:l,completed:P,onMove:function(n,a){return Ea(Vn,o,Rn,e,n,wn(n),t,a)},changed:E},r))}function I(){D("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function P(e){return D("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(m),m!==p&&(fn(Rn,ta?ta.options.ghostClass:c.options.ghostClass,!1),fn(Rn,s.ghostClass,!0)),ta!==m&&m!==Pa.active?ta=m:m===Pa.active&&ta&&(ta=null),p===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){D("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===Rn&&!Rn.animated||l===o&&!l.animated)&&(ra=null),s.dragoverBubble||t.rootEl||l===document||(Rn.parentNode[En]._isOutsideThisEl(t.target),!e&&Da(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function E(){Xn=Sn(Rn),Gn=Sn(Rn,s.draggable),Ln({sortable:m,name:"change",toEl:o,newIndex:Xn,newDraggableIndex:Gn,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){un(document,"mousemove",this._onTouchMove),un(document,"touchmove",this._onTouchMove),un(document,"pointermove",this._onTouchMove),un(document,"dragover",Da),un(document,"mousemove",Da),un(document,"touchmove",Da)},_offUpEvents:function(){var t=this.el.ownerDocument;un(t,"mouseup",this._onDrop),un(t,"touchend",this._onDrop),un(t,"pointerup",this._onDrop),un(t,"touchcancel",this._onDrop),un(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;Xn=Sn(Rn),Gn=Sn(Rn,n.draggable),Fn("drop",this,{evt:t}),Hn=Rn&&Rn.parentNode,Xn=Sn(Rn),Gn=Sn(Rn,n.draggable),Pa.eventCanceled||(pa=!1,fa=!1,_a=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ba(this.cloneId),Ba(this._dragStartId),this.nativeDraggable&&(un(document,"drop",this),un(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),on&&vn(document.body,"user-select",""),vn(Rn,"transform",""),t&&(sa&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),qn&&qn.parentNode&&qn.parentNode.removeChild(qn),(Vn===Hn||ta&&"clone"!==ta.lastPutMode)&&Yn&&Yn.parentNode&&Yn.parentNode.removeChild(Yn),Rn&&(this.nativeDraggable&&un(Rn,"dragend",this),Aa(Rn),Rn.style["will-change"]="",sa&&!pa&&fn(Rn,ta?ta.options.ghostClass:this.options.ghostClass,!1),fn(Rn,this.options.chosenClass,!1),Ln({sortable:this,name:"unchoose",toEl:Hn,newIndex:null,newDraggableIndex:null,originalEvent:t}),Vn!==Hn?(Xn>=0&&(Ln({rootEl:Hn,name:"add",toEl:Hn,fromEl:Vn,originalEvent:t}),Ln({sortable:this,name:"remove",toEl:Hn,originalEvent:t}),Ln({rootEl:Hn,name:"sort",toEl:Hn,fromEl:Vn,originalEvent:t}),Ln({sortable:this,name:"sort",toEl:Hn,originalEvent:t})),ta&&ta.save()):Xn!==Jn&&Xn>=0&&(Ln({sortable:this,name:"update",toEl:Hn,originalEvent:t}),Ln({sortable:this,name:"sort",toEl:Hn,originalEvent:t})),Pa.active&&(null!=Xn&&-1!==Xn||(Xn=Jn,Gn=Qn),Ln({sortable:this,name:"end",toEl:Hn,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Fn("nulling",this),Vn=Rn=Hn=qn=Wn=Yn=Un=Zn=ea=na=sa=Xn=Gn=Jn=Qn=ra=ca=ta=Kn=Pa.dragged=Pa.ghost=Pa.clone=Pa.active=null,ga.forEach((function(t){t.checked=!0})),ga.length=aa=ia=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Rn&&(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,i=n.length,o=this.options;a<i;a++)mn(t=n[a],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Oa(t));return e},sort:function(t,e){var n={},a=this.el;this.toArray().forEach((function(t,e){var i=a.children[e];mn(i,this.options.draggable,a,!1)&&(n[t]=i)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(a.removeChild(n[t]),a.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return mn(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=Mn.modifyOption(this,t,e);n[t]=void 0!==a?a:e,"group"===t&&ja(n)},destroy:function(){Fn("destroy",this);var t=this.el;t[En]=null,un(t,"mousedown",this._onTapStart),un(t,"touchstart",this._onTapStart),un(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(un(t,"dragover",this),un(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ha.splice(ha.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Zn){if(Fn("hideClone",this),Pa.eventCanceled)return;vn(Yn,"display","none"),this.options.removeCloneOnHide&&Yn.parentNode&&Yn.parentNode.removeChild(Yn),Zn=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Zn){if(Fn("showClone",this),Pa.eventCanceled)return;Rn.parentNode!=Vn||this.options.group.revertClone?Wn?Vn.insertBefore(Yn,Wn):Vn.appendChild(Yn):Vn.insertBefore(Yn,Rn),this.options.group.revertClone&&this.animate(Rn,Yn),vn(Yn,"display",""),Zn=!1}}else this._hideClone()}},ya&&cn(document,"touchmove",(function(t){(Pa.active||pa)&&t.cancelable&&t.preventDefault()})),Pa.utils={on:cn,off:un,css:vn,find:gn,is:function(t,e){return!!mn(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:Dn,closest:mn,toggleClass:fn,clone:Pn,index:Sn,nextTick:Ma,cancelNextTick:Ba,detectDirection:Sa,getChild:kn},Pa.get=function(t){return t[En]},Pa.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&&(Pa.utils=Je(Je({},Pa.utils),t.utils)),Mn.mount(t)}))},Pa.create=function(t,e){return new Pa(t,e)},Pa.version="1.15.0";var za,Fa,La,Ra,Ha,qa,Va=[],Wa=!1;function Ua(){Va.forEach((function(t){clearInterval(t.pid)})),Va=[]}function Ya(){clearInterval(qa)}var Za=Dn((function(t,e,n,a){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,r=e.scrollSpeed,c=yn(),u=!1;Fa!==n&&(Fa=n,Ua(),za=e.scroll,i=e.scrollFn,!0===za&&(za=$n(n,!0)));var d=0,p=za;do{var m=p,h=wn(m),_=h.top,f=h.bottom,v=h.left,b=h.right,g=h.width,y=h.height,w=void 0,x=void 0,k=m.scrollWidth,C=m.scrollHeight,S=vn(m),j=m.scrollLeft,$=m.scrollTop;m===c?(w=g<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=y<C&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=g<k&&("auto"===S.overflowX||"scroll"===S.overflowX),x=y<C&&("auto"===S.overflowY||"scroll"===S.overflowY));var T=w&&(Math.abs(b-o)<=s&&j+g<k)-(Math.abs(v-o)<=s&&!!j),D=x&&(Math.abs(f-l)<=s&&$+y<C)-(Math.abs(_-l)<=s&&!!$);if(!Va[d])for(var I=0;I<=d;I++)Va[I]||(Va[I]={});Va[d].vx==T&&Va[d].vy==D&&Va[d].el===m||(Va[d].el=m,Va[d].vx=T,Va[d].vy=D,clearInterval(Va[d].pid),0==T&&0==D||(u=!0,Va[d].pid=setInterval(function(){a&&0===this.layer&&Pa.active._onTouchMove(Ha);var e=Va[this.layer].vy?Va[this.layer].vy*r:0,n=Va[this.layer].vx?Va[this.layer].vx*r:0;"function"==typeof i&&"continue"!==i.call(Pa.dragged.parentNode[En],n,e,t,Ha,Va[this.layer].el)||In(Va[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=$n(p,!1)));Wa=u}}),30),Ja=function(t){var e=t.originalEvent,n=t.putSortable,a=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var r=n||i;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),r&&!r.el.contains(u)&&(o("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function Xa(){}function Qa(){}Xa.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=kn(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:Ja},Ge(Xa,{pluginName:"revertOnSpill"}),Qa.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:Ja},Ge(Qa,{pluginName:"removeOnSpill"});Pa.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,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?cn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?cn(document,"pointermove",this._handleFallbackAutoScroll):e.touches?cn(document,"touchmove",this._handleFallbackAutoScroll):cn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?un(document,"dragover",this._handleAutoScroll):(un(document,"pointermove",this._handleFallbackAutoScroll),un(document,"touchmove",this._handleFallbackAutoScroll),un(document,"mousemove",this._handleFallbackAutoScroll)),Ya(),Ua(),clearTimeout(hn),hn=void 0},nulling:function(){Ha=Fa=za=Wa=qa=La=Ra=null,Va.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,a=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(a,i);if(Ha=t,e||this.options.forceAutoScrollFallback||nn||en||on){Za(t,this.options,o,e);var l=$n(o,!0);!Wa||qa&&a===La&&i===Ra||(qa&&Ya(),qa=setInterval((function(){var o=$n(document.elementFromPoint(a,i),!0);o!==l&&(l=o,Ua()),Za(t,n.options,o,e)}),10),La=a,Ra=i)}else{if(!this.options.bubbleScroll||$n(o,!0)===yn())return void Ua();Za(t,this.options,$n(o,!1),!1)}}},Ge(t,{pluginName:"scroll",initializeByDefault:!0})}),Pa.mount(Qa,Xa);const Ga=Pa;var Ka=n(998),ti=n.n(Ka),ei=n(1865),ni=n.n(ei);const ai=a({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(){var t=this,e=t._self._c;return t.appReady?e("div",{staticClass:"maybe_nt_multi_select",staticStyle:{"max-width":"90%"}},["yes"==t.column.isMultiple?[e("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 e("el-option",{key:t,attrs:{label:t,value:t}})})),1)]:[e("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 e("el-option",{key:t,attrs:{label:t,value:t}})})),1)]],2):t._e()}),[],!1,null,null,null).exports;const ii=a({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:(tt()(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(){var t=this,e=t._self._c;return t.appReady?e("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?[e("div",{staticClass:"nt_form_group"},[e("label",[t._v("Upload Image")]),t._v(" "),e("div",{staticClass:"nt_form_input"},[t.data.image_thumb?e("div",{staticClass:"image_preview"},[e("img",{attrs:{src:t.data.image_thumb}})]):t._e(),t._v(" "),e("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"info"},on:{click:t.initUploader}},[t.data.image_thumb?e("span",[t._v("Change Image")]):e("span",[t._v("Upload Image")])]),t._v(" "),t.data.image_thumb?e("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?e("div",{staticClass:"nt_form_group"},["iframe_ligtbox"==t.column.link_type?e("label",[t._v("Iframe URL (Only The URL)")]):e("label",[t._v("Target URL")]),t._v(" "),e("div",{staticClass:"nt_form_input"},[e("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()}),[],!1,null,null,null).exports;const oi={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(/-+$/,"")}}};var li=n(2498),si={insert:"head",singleton:!1};s()(li.Z,si);li.Z.locals;const ri=a(oi,(function(){var t=this,e=t._self._c;return e("div",{class:"yes"==t.only_picker?"ninja_only_picker":"ninja_date_picker"},["yes"!=t.only_picker?e("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(" "),e("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)}),[],!1,null,null,null).exports,ci={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(tt()(this.newColumn,(function(t){t&&(e=!0)})),e){this.btnLoading=!0;var n={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("tables/"+this.table_id+"/item",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"})})).catch((function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})})),this.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={};tt()(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",{}),tt()(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:{GetPro:i,wp_editor:C,NinjaDatePicker:ri,mayBeSelect:ai,ImageSelector:ii}};var ui=n(2342),di={insert:"head",singleton:!1};s()(ui.Z,di);ui.Z.locals;const pi=a(ci,(function(){var t=this,e=t._self._c;return e("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?e("div",[t._l(t.columns,(function(n){return e("div",{key:n.key,staticClass:"form-group"},[e("label",{attrs:{for:t.slugify(n.key)}},[t._v(t._s(n.name||n.key))]),t._v(" "),"textarea"==n.data_type?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[n.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:n.name,id:t.slugify(n.key)},domProps:{value:t.newColumn[n.key]},on:{input:function(e){e.target.composing||t.$set(t.newColumn,n.key,e.target.value)}}})]):"html"==n.data_type?e("div",[e("wp_editor",{attrs:{editor_id:t.slugify(n.key)},model:{value:t.newColumn[n.key],callback:function(e){t.$set(t.newColumn,n.key,e)},expression:"newColumn[column.key]"}})],1):"date"==n.data_type?e("div",[e("ninja-date-picker",{attrs:{column:n,new_column:t.newColumn}})],1):"selection"==n.data_type?e("div",[e("may-be-select",{attrs:{column:n,newColumn:t.newColumn}})],1):"image"==n.data_type&&t.has_pro?e("div",[e("image-selector",{attrs:{adding_counter:t.adding_counter,column:n,newColumn:t.newColumn}})],1):"button"==n.data_type&&t.has_pro?e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[n.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:"Valid button URL",type:"url",id:t.slugify(n.key)},domProps:{value:t.newColumn[n.key]},on:{input:function(e){e.target.composing||t.$set(t.newColumn,n.key,e.target.value)}}}),t._v(" "),e("small",[t._v("Please provide valid URL")])]):e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[n.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:n.name,type:"text",id:t.slugify(n.key)},domProps:{value:t.newColumn[n.key]},on:{input:function(e){e.target.composing||t.$set(t.newColumn,n.key,e.target.value)}}})])])})),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():e("div",[t._v("\n            Add at\n            "),e("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            "),e("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?e("div",{staticClass:"row_config_container"},[t.has_pro?[e("h3",[t._v("Row Settings")]),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form-group form_row_half"},[e("label",[t._v("Row Background Color")]),t._v(" "),e("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(" "),e("div",{staticClass:"form-group form_row_half"},[e("label",[t._v("Row Text Color")]),t._v(" "),e("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(" "),e("h3",[t._v("Cell Color Customization")]),t._v(" "),e("table",{staticClass:"wp-list-table widefat fixed striped"},[e("thead",[e("tr",[e("th",[t._v("Column")]),t._v(" "),e("th",[t._v("Background Color")]),t._v(" "),e("th",[t._v("Text Color")])])]),t._v(" "),e("tbody",t._l(t.columns,(function(n){return e("tr",{key:n.key},[e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[n.key]["background-color"],callback:function(e){t.$set(t.item_settings.cell[n.key],"background-color",e)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),e("td",[e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[n.key].color,callback:function(e){t.$set(t.item_settings.cell[n.key],"color",e)},expression:"item_settings.cell[column.key]['color']"}})],1)])})),0)]),t._v(" "),t.insertAfterPosition?t._e():e("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[e("label",[t._v("\n                    Data Create Date\n                    "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("span",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Create Date")]),t._v("\n                          Set the date of the data creation."),e("br"),t._v("\n                          This is useful when you want to sort the data by date\n                        ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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)]:[e("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),e("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(" "),e("get-pro")]],2):t._e(),t._v(" "),e("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[e("div",[e("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&(t.continueAdding=n.concat([null])):o>-1&&(t.continueAdding=n.slice(0,o).concat(n.slice(o+1)))}else t.continueAdding=i}}}),t._v(" Continue Adding\n                ")])])],t._v(" "),e("div",{staticClass:"dialog-footer-item"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.row_config=!t.row_config}}},[e("i",{staticClass:"el-icon-setting"})]),t._v(" "),e("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?e("span",[t._v(" "+t._s(t.$t("Update")))]):e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])}),[],!1,null,null,null).exports;const mi={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}};var hi=n(2859),_i={insert:"head",singleton:!1};s()(hi.Z,_i);hi.Z.locals;const fi=a(mi,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"alert",class:"alert-"+t.alertClass},[t._t("default")],2)}),[],!1,null,null,null).exports;const vi={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}};var bi=n(3587),gi={insert:"head",singleton:!1};s()(bi.Z,gi);bi.Z.locals;const yi=a(vi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"remove"},[e("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),e("div",{staticStyle:{"text-align":"right",margin:"0"}},[e("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(" "),e("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?e("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):e("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[e("span",{staticClass:"dashicons dashicons-trash"})])],1)}),[],!1,null,"b1ff19ee",null).exports;const wi={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")}}};var xi=n(509),ki={insert:"head",singleton:!1};s()(xi.Z,ki);xi.Z.locals;const Ci=a(wi,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[e("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[e("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n    ")]),t._v(" "),e("span",[t._v("\n        "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n    ")]),t._v(" "),e("br"),t._v(" "),e("br"),t._v(" "),e("span",[e("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    ")])])}),[],!1,null,null,null).exports;const Si=a({name:"ninja_color_picker",props:["label","value","disabled"],model:{prop:"value",event:"update"},methods:{changeColor:function(t){this.$emit("update",t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form_group"},[e("el-color-picker",{attrs:{"show-alpha":"",value:t.value,disabled:t.disabled},on:{"active-change":t.changeColor,input:function(e){return t.$emit("update",e)}}}),t._v(" "),t.label?e("label",[t._v(t._s(t.label))]):t._e()],1)}),[],!1,null,null,null).exports;function ji(t){return ji="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},ji(t)}function $i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Ti(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==ji(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==ji(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ji(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Di={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{GetPro:i,NinjaColorPicker:Si},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(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$i(Object(n),!0).forEach((function(e){Ti(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},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",[])}},Ii=Di;var Pi=n(4973),Ei={insert:"head",singleton:!1};s()(Pi.Z,Ei);Pi.Z.locals;var Ai=a(Ii,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"column-condition-config"},[t.hasPro?e("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),e("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n            Add Condition\n        ")])],1):e("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[e("div",{staticClass:"conditional-settings-title"},[e("H3",[t._v("Conditional Formatting")]),t._v(" "),e("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(" "),e("get-pro",{attrs:{size:"small"}})],1)]),t._v(" "),e("hr"),t._v(" "),t._l(t.column.conditions,(function(n,a){return e("el-row",{key:a},[e("el-col",{attrs:{sm:2,md:2}},[e("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),e("el-col",{attrs:{sm:5,md:5}},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:n.conditionalOperator,callback:function(e){t.$set(n,"conditionalOperator",e)},expression:"condition.conditionalOperator"}},[e("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),e("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("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)?e("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)?e("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),e("el-col",{attrs:{sm:5,md:5}},[e("el-input",{attrs:{size:"small",placeholder:"between"==n.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:n.conditionalValue,callback:function(e){t.$set(n,"conditionalValue",e)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==n.conditionalOperator?e("el-col",{attrs:{sm:4,md:4}},[e("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:n.conditionalValue2,callback:function(e){t.$set(n,"conditionalValue2",e)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),e("el-col",{attrs:{sm:1,md:1}},[e("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),e("el-col",{attrs:{sm:5,md:5}},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:n.targetAction,callback:function(e){t.$set(n,"targetAction",e)},expression:"condition.targetAction"}},[e("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[e("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),e("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),e("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),e("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),e("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),e("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[e("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),e("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),e("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),e("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[e("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),e("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),e("el-col",{attrs:{sm:4,md:4}},[e("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(n),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:n.targetValue,callback:function(e){t.$set(n,"targetValue",e)},expression:"condition.targetValue"}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(n),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[e("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:n.targetValueColor,callback:function(e){t.$set(n,"targetValueColor",e)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),e("el-col",{attrs:{sm:1,md:1}},[e("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?e("div",{staticClass:"nt_suggest"},[e("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),e("p",[t._v("Example Usage")]),t._v(" "),e("ul",[e("li",[t._v("Today's Date: "),e("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Tomorrow's Date: "),e("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Yesterday's Date: "),e("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Date After 10 Days: "),e("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Date Before 10 Days: "),e("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():e("el-row",[e("el-alert",{attrs:{center:"",closable:!1,title:"You haven't added any conditions for the column yet!",type:"info"}})],1)],2)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"conditional-settings-title"},[t._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-conditional-column-formatting/"}},[t._v("View\n            Documentation")])])}],!1,null,null,null);const Ni=Ai.exports;const Oi=a({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(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[e("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),e("hr"),t._v(" "),"custom"==t.column.source_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Field Type"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Type")]),t._v(" "),e("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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 e("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})})),1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Field Value"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Value")]),t._v(" "),e("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[e("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 e("el-option",{key:t,attrs:{value:t,label:t}})})),1)]:e("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?e("div",{staticClass:"ninja_instruction"},[e("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?e("p",[e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Link"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),e("p",[t._v("\n                            Enable this if you want to link to post/Author permalink\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?e("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"}}):e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Permalink Action"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Permalink Action Type")]),t._v(" "),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Open Link To New tab"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Open Link To New tab")]),t._v(" "),e("p",[t._v("\n                                Enable this if you want to open the links to new tab\n                            ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Link"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),e("p",[t._v("\n                            Enable this if you want to link to Taxonomy permalink\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Taxonomy Separator"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Taxonomy Separator")]),t._v(" "),e("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Permalink Action"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Permalink Action Type")]),t._v(" "),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Open Link To New tab"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Open Link To New tab")]),t._v(" "),e("p",[t._v("\n                                Enable this if you want to open the links to new tab\n                            ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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)}),[],!1,null,null,null).exports;function Mi(t){return Mi="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},Mi(t)}function Bi(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,(i=a.key,o=void 0,o=function(t,e){if("object"!==Mi(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==Mi(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Mi(o)?o:String(o)),a)}var i,o}const zi=new(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":Mi(formulaParser))?(this.instance=new formulaParser.Parser,this._addFunctionNUMVAL(this.instance),this._addFunctionDATEVAL(this.instance)):this.instance=!1}var e,n,a;return e=t,(n=[{key:"parse",value:function(t){var e=this;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 i=e.instance.parse(a),o=i.result?i.result:"";t=t.replace(n,o)}})),this.isParsable(t)){var a=t.substr(1);if(a){var i=this.instance.parse(a);t=i.result?i.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 i=Number(e);return isNaN(i)?e:i}))}},{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}))}}])&&Bi(e.prototype,n),a&&Bi(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}());const Fi={name:"ColumnsEditor",components:{GetPro:i,wp_editor:C,condition:Ni,"wp-post-dynamic-column":Oi,"content-transformer":a({name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},components:{ninja_alert:fi,NinjaPremiumNotice:Y},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(){window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var t={table_id:this.tableId,table_settings:this.settings};this.$post("settings/"+this.tableId,t).success((function(t){})).catch((function(t){})),this.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)}},mounted:function(){this.hasPro&&(this.supported_formullas=zi.getSupportedFormulas())}},(function(){var t=this,e=t._self._c;return e("div",[e("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(" "),e("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():e("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),e("div",{staticClass:"ninja_instruction"},[e("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(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}]},[e("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(" "),e("el-button",{attrs:{size:"mini"},on:{click:function(e){t.show_formulas=!0}}},[t._v("Show Formulas")]),t._v(" "),e("el-dialog",{attrs:{title:"Supported Excel Formullas",visible:t.show_formulas,width:"30%"},on:{"update:visible":function(e){t.show_formulas=e}}},[e("ul",{staticStyle:{margin:"0px 20px","padding-top":"20px"}},t._l(t.supported_formullas,(function(n){return e("li",[t._v(t._s(n))])})),0)])],1)],1),t._v(" "),e("div",{staticClass:"ninja_instruction"},[e("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),e("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),e("tbody",t._l(t.columns,(function(n){return e("tr",{key:n.key},[e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v("{{"),e("span",[t._v("row."+t._s(n.key))]),t._v("}}")])])})),0)]),t._v(" "),e("br"),t._v(" "),t._m(1),t._v(" "),e("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)}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Column Title")]),t._v(" "),e("th",[t._v("Reference Shortcode")])])])},function(){var t=this,e=t._self._c;return e("p",[t._v("You may "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/value-transformation/",target:"_blank"}},[t._v("check the documentation here.")])])}],!1,null,null,null).exports,DynamicWooColumn:a({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(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[e("h4",[t._v(t._s(t.$t("Dynamic Column Data Settings")))]),t._v(" "),e("hr"),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Field Type"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Type")]),t._v(" "),e("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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 e("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})})),1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Field Value"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Value")]),t._v(" "),e("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[e("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,n){return e("el-option",{key:n,attrs:{value:n,label:t}})})),1),t._v(" "),"featured_image"==t.column.wp_post_custom_data_source_type?e("div",[e("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"}},[e("el-radio",{attrs:{label:"lightbox"}},[t._v("Make image as lightbox")]),t._v(" "),e("el-radio",{attrs:{label:"linked"}},[t._v("Link to Product page")]),t._v(" "),e("el-radio",{attrs:{label:""}},[t._v("None")])],1),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:"linked"==t.column.image_permalink_type,expression:"column.image_permalink_type == 'linked'"}]},[e("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()]:e("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?e("div",{staticClass:"ninja_instruction"},[e("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?e("p",[e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Buy Now Button Text"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Buy Now Button Text")]),t._v(" "),e("p",[t._v("Provide Buy Now Button Text")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Link"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),e("p",[t._v("\n                            Enable this if you want to link to post/Author permalink\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.wp_post_custom_data_key?e("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"}}):e("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(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Link"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),e("p",[t._v("\n                            Enable this if you want to link to Taxonomy permalink\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Taxonomy Separator"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Taxonomy Separator")]),t._v(" "),e("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Permalink Action"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Permalink Action Type")]),t._v(" "),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Open Link To New tab"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Open Link To New tab")]),t._v(" "),e("p",[t._v("\n                                Enable this if you want to open the links to new tab\n                            ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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)}),[],!1,null,null,null).exports,NinjaColorPicker:Si},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",[]),this.model.force_download||this.$set(this.model,"force_download",""),window.ninjaTableBus.$on("tableDoingAjax",(function(e){t.doingAjax=e})))}};var Li=n(7718),Ri={insert:"head",singleton:!1};s()(Li.Z,Ri);Li.Z.locals;const Hi=a(Fi,(function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[e("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Column Name"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Column Name")]),t._v(" "),e("p",[t._v("\n                                Enter a column name to set the header title.\n                            ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Column Key"))+"\n\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Column Key")]),t._v(" "),e("p",[t._v("\n                                Column key is for data mapping, export and import table data.\n                            ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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():e("small",[t._v("Please use english letters only")])],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Data Type"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),e("p",[t._v("\n                                Choose the data type of the column.\n                            ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Date Format"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),e("p",[t._v("\n                                    Pattern of the date value.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[e("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),e("el-radio",{attrs:{label:"custom",disabled:!t.hasPro},nativeOn:{click:function(e){return t.showProPopUp.apply(null,arguments)}}},[t._v("Custom")])],1),t._v(" "),"custom"!=t.model.formatType?e("el-form-item",[e("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])}}},[e("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,(function(n,a){return e("option",{key:a,domProps:{value:a}},[t._v("\n                                "+t._s(a)+" - (Ex: "+t._s(n)+")\n                            ")])}))],2)]):e("el-form-item",[e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Show Time"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Show Time")]),t._v(" "),e("p",[t._v("\n                                    If you select yes, then time picker will be available\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?e("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])}}},[e("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.timeFormats,(function(n,a){return e("option",{key:a,domProps:{value:a}},[t._v("\n                        "+t._s(a)+" - (Ex: "+t._s(n)+")\n                      ")])}))],2):t._e()],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("First Day"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("First Day")]),t._v(" "),e("p",[t._v("\n                                    The first day of the week, e.g. Sunday, Monday, etc.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1)],2)]:"number"==t.model.data_type&&t.hasPro?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Separator Style"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),e("p",[t._v("\n                                    Please Provide The Thousand/Decimal Separator If Any.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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"}},[e("el-radio",{attrs:{label:"us"}},[t._v("US Style - decimal point (123,234.01)")]),t._v(" "),e("el-radio",{attrs:{label:"eu"}},[t._v("European Style - decimal comma (123.234,01)")])],1)],2)]:"selection"==t.model.data_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Select Items"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Select Field")]),t._v(" "),e("p",[t._v("\n                                    Use Select Field to add data in your table from predefined list\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-form-item",[t.has_pro?t._e():e("p",[e("b",[t._v("Selection feature is only available on Pro version Please upgrade to\n                            pro to unlock this feature")])]),t._v(" "),e("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(" "),e("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Placeholder"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Placeholder")]),t._v(" "),e("p",[t._v("\n                                    Enter the selection placeholder, default: 'Select'\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-form-item",[e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Enable Multi-Selection"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Multiple Selection")]),t._v(" "),e("p",[t._v("\n                                    If you select yes, Then admin can select multiple item on create data\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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():[e("el-form-item",[e("p",{staticStyle:{color:"red"}},[t._v("Image upload with lightbox, download link is a pro feature. It will\n                            not work without Pro Version "),e("b",[e("get-pro")],1)])])],t._v(" "),e("el-form-item",{attrs:{label:"Image Linkable?"}},[e("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(" "),e("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(" "),e("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(" "),e("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?e("el-form-item",{attrs:{label:"Download Button Text / HTML"}},[e("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?e("el-form-item",[e("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():[e("el-form-item",[e("p",{staticStyle:{color:"red"}},[t._v("Button on Table is a pro Feature. It will not work without Pro Version. "),e("b",[e("get-pro")],1)])])],t._v(" "),e("el-form-item",{attrs:{label:"Button Text"}},[e("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(" "),e("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 tab\n                    ")]),t._v(" "),e("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                    ")]),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"download","false-label":""},model:{value:t.model.force_download,callback:function(e){t.$set(t.model,"force_download",e)},expression:"model.force_download"}},[t._v("Make\n                    Force download\n                  ")])],1),t._v(" "),e("el-form-item",{attrs:{label:"Button Style"}},[e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Link With Rel Attribute"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Sponsored, Nofollow & NoReferrer")]),t._v(" "),e("p",[t._v("\n                          Check one or multiple a rel attribute of the column\n                        ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.model.relAttributes?e("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 e("el-checkbox",{key:t,attrs:{label:t}})})),1):t._e()],2)]:t._e(),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Responsive Breakpoint"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Responsive Breakpoint")]),t._v(" "),e("p",[t._v("\n                                Choose responsive breakpoints of your table columns. "),e("br"),t._v("\n                                For more details check "),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1)],2),t._v(" "),"wp-posts"==t.dataSourceType?e("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):"wp_woo"==t.dataSourceType?[e("dynamic-woo-column",{attrs:{columns:t.columns,column:t.model}})]:t._e()],2),t._v(" "),e("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[e("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():e("div",{staticClass:"ninja_table_inline_upgrade"},[e("H3",[t._v("Advanced Column Settings")]),t._v(" "),e("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(" "),e("get-pro",{attrs:{size:"small"}})],1),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Extra Classes"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Extra CSS Classes")]),t._v(" "),e("p",[t._v("\n                                    Enter extra CSS classes to the column. "),e("br"),t._v("\n                                    Use `space` to separate each class.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Max Width"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),e("p",[t._v("\n                                    Enter the maximum width of the column. This will be applied for the entire\n                                    column\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-col",{attrs:{xs:22,md:22,lg:22,xl:22}},[e("el-form-item",[e("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(" "),e("el-col",{attrs:{xs:2,md:2,lg:2,xl:2}},[e("el-form-item",[e("el-select",{attrs:{size:"small",placeholder:"Select"},model:{value:t.model.maxWidthUnit,callback:function(e){t.$set(t.model,"maxWidthUnit",e)},expression:"model.maxWidthUnit"}},[e("el-option",{attrs:{label:"px",value:"px"}}),t._v(" "),e("el-option",{attrs:{label:"%",value:"%"}})],1)],1)],1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Header Text Align"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Header Text Alignment")]),t._v(" "),e("p",[t._v("\n                                    Choose the text alignment. This will be applied only for header\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Row Content Text Align"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Content Text Alignment")]),t._v(" "),e("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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,n){return e("el-option",{key:n,attrs:{label:t,value:n}})})),1)],2),t._v(" "),e("el-form-item",[e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Header HTML Content"))+"\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Header HTML Content")]),t._v(" "),e("p",[t._v("\n                                    Provide content for table column header if you want to show html content.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Filterable"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filterable")]),t._v(" "),e("p",[t._v("\n                                    If You enable this then this column data will not be filterable at the frontend.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Sortable"))+"\n\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Sortable")]),t._v(" "),e("p",[t._v("\n                                    If You enable this then this column data will not be sortable at the frontend.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Column Background"))+"\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Background color")]),t._v(" "),e("p",[t._v("\n                                    You can set background color of this particular column that will show on the\n                                    frontend table.\n                                ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":"",size:"small"},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                        "+t._s(t.$t("Column Text Color"))+"\n                        "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Text Color color")]),t._v(" "),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":"",size:"small"},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),e("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[e("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[e("content-transformer",{attrs:{settings:t.settings,columns:t.columns,column:t.model}})],1),t._v(" "),e("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),e("div",{staticClass:"form_group"},[e("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():e("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[e("p",[t._v("Are you sure to delete this?")]),t._v(" "),e("div",{staticStyle:{"text-align":"right",margin:"0"}},[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel\n                            ")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm\n                            ")])],1),t._v(" "),t.hideDelete?t._e():e("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete"))+"\n                        ")])],1),t._v(" "),e("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.store.apply(null,arguments)}}},[t._v("\n                        "+t._s(t.$t("Update"))+"\n                    ")])]:[t.hideCancel?t._e():e("el-button",{attrs:{size:"small"},on:{click:function(e){return e.preventDefault(),t.cancel.apply(null,arguments)}}},[t._v("\n                        "+t._s(t.$t("Cancel"))+"\n                    ")]),t._v(" "),e("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.addColumn.apply(null,arguments)}}},[t._v("Add Column\n                    ")])]],2)])],1)],1)}),[],!1,null,null,null).exports;const qi={name:"FluentformNav",components:{FluentForm:lt},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}};var Vi=n(9169),Wi={insert:"head",singleton:!1};s()(Vi.Z,Wi);Vi.Z.locals;const Ui=a(qi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-form-nav"},[e("el-collapse",[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),e("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n            ")]),t._v(" "),e("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)}),[],!1,null,null,null).exports;const Yi={name:"External",components:{"external-data-source":dt},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}}};var Zi=n(9604),Ji={insert:"head",singleton:!1};s()(Zi.Z,Ji);Zi.Z.locals;const Xi=a(Yi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"external-source-nav"},[e("el-collapse",[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),e("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n            ")]),t._v(" "),e("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)}),[],!1,null,null,null).exports;const Qi={name:"RowSQLNav",components:{MySqlEditor:gt,RemoteSqlConnection:yt},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,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0,this.error_html="";var n={action:"ninja_table_raw_sql_update_sql",table_id:this.config.table.ID,sql:this.config.table.sql};"external"==this.config.table.connection_type&&(n.connection_details=this.connection_details),this.$post(n).then((function(n){"string"!=typeof n?(t.tableCreated(),e||t.$message({showClose:!0,message:n.data.message,type:"success"})):t.error_html=n})).fail((function(e){var n="",a=e.responseJSON.data.message;for(var i in a)n+=" "+a[i];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.updateSql(!0),this.column_count||(this.active="1"),"external"==this.config.table.connection_type&&this.getRemoteConnectionDetails()}};var Gi=n(7),Ki={insert:"head",singleton:!1};s()(Gi.Z,Ki);Gi.Z.locals;const to=a(Qi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-form-nav"},[t.has_sql_permission?e("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),e("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n            ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),e("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(" "),e("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),e("p",[t._v("Check the documentation for advanced use cases: "),e("a",{attrs:{target:"_blank",rel:"noopener",href:"https://ninjatables.com/docs/create-table-from-custom-sql/"}},[t._v("Ninja Tables SQL Integration Documentation")])]),t._v(" "),e("p",[t._v("Available Dynamic Placeholders: "),e("code",[t._v("{current_user_id}")]),t._v(" "),e("code",[t._v("{current_date}")]),t._v(" "),e("code",[t._v("{current_date_time}")]),t._v(" "),e("code",[t._v("{current_post_id}")]),t._v(" "),e("code",[t._v("{current_post_title}")]),t._v(" "),e("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[e("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?e("el-collapse-item",{attrs:{name:"2"}},[e("template",{slot:"title"},[e("strong",[t._v("SQL Connection Details:")])]),t._v(" "),e("remote-sql-connection",{attrs:{connection:t.connection_details}}),t._v(" "),t.error_html?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[e("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):[e("el-alert",{attrs:{title:"",type:"error",closable:!1}},[e("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."),e("br"),t._v("\n                You can only see the data and update other settings but can't alter the original SQL.\n            ")]),t._v(" "),e("b",[t._v("Current SQL Query: ")]),t._v(" "),e("p",[e("code",[t._v(t._s(t.config.table.sql))])])])]],2)}),[],!1,null,null,null).exports;const eo={name:"WPPostsNav",components:{WPPosts:G,columnsEditor:Hi},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")}}};var no=n(8279),ao={insert:"head",singleton:!1};s()(no.Z,ao);no.Z.locals;const io=a(eo,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-form-nav"},[e("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{title:"Table Query Settings and New Column",name:"1"}},[e("el-tabs",{attrs:{type:"border-card"}},[e("el-tab-pane",{attrs:{label:"Table Info"}},[e("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(" "),e("el-tab-pane",{attrs:{label:"Query Settings"}},[e("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Add New Column"}},[e("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)}),[],!1,null,null,null).exports;const oo={name:"woo_nav_edit",props:["config","model"],components:{WooNav:et,ColumnsEditor:Hi},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(){}};var lo=n(2538),so={insert:"head",singleton:!1};s()(lo.Z,so);lo.Z.locals;const ro=a(oo,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"nt-woo-nav"},[e("el-tabs",{attrs:{type:"border-card"}},[e("el-tab-pane",{staticClass:"nt-appearance",attrs:{label:"Appearance"}},[e("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(" "),e("br"),t._v(" "),e("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(" "),e("br"),t._v(" "),e("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(" "),e("br"),t._v(" "),e("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(" "),e("br"),t._v(" "),e("div",{staticClass:"nt-form-group"},[e("label",{attrs:{for:"cartBtnText"}},[t._v("\n                    Cart Text\n                ")]),t._v(" "),e("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(" "),e("div",{staticClass:"nt-form-group"},[e("label",{attrs:{for:"checkoutBtnText"}},[t._v("\n                    Checkout Text\n                ")]),t._v(" "),e("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(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Query Settings"}},[e("woo-nav",{attrs:{query_selections:t.config.table.query_selections,query_conditions:t.config.table.query_conditions}}),t._v(" "),e("br"),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Add New Column"}},[e("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)}),[],!1,null,null,null).exports;function co(t){return co="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},co(t)}n(8091).polyfill();const uo=function t(e,n,a,i){var o,l=t,s="";function r(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?r(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=i?0 in n?[]:[1]:n;for(o=0;o<n.length;o++){var c,u="",d=0,p="object"==co(n[o])?n[o]:{};(p=Object.assign({},a,p))[""]={"":n[o]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,(function(t,e,n,a,i,o,m){d?u+=d&&!i||d>1?t:e:(s+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,(function(t,e,n,a,i,o){return e?r(p,e):a?r(p,o):i?l(r(p,o),p):n?"":new Option(r(p,o)).innerHTML})),c=o),i?--d||(m=r(p,m),/^f/.test(co(m))?s+=m.call(p,u,(function(t){return l(t,p)})):s+=l(u,m,p,c),u=""):++d}))}return s};var po=n(7955),mo=n.n(po),ho=n(3311),_o=n.n(ho);function fo(t){return fo="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},fo(t)}const vo={name:"TableDataItems",components:{add_data_modal:pi,ninja_pagination:f,Alert:fi,DeletePopOver:yi,SortableUpgradeNotice:Ci,columnsEditor:Hi,FluentFormNav:Ui,ExternalSourceNav:Xi,WPPostsNav:io,RawSqlNav:to,WooNavEdit:ro,ShowEditableCell:a({name:"show_cell",props:["row","columns","column","formula_support","is_editable"],components:{mayBeSelect:ai,NinjaDatePicker:ri},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 i=this.row.id,o={row_id:this.row.id,column_key:n,column_value:a};this.btnLoading=!0,this.is_editing=!1,this.$put("tables/"+i+"/item",o).then((function(t){e.$message.success({showClose:!0,message:t.data.message,type:"success"})})).catch((function(t){e.$message.error("Failed to update!")})),this.btnLoading=!1}else this.is_editing=!1}},renderTableCell:function(t,e,n){return"image"==e.data_type?"object"==fo(t)&&t?"file_download"==e.link_type?'<a target="'.concat(e.link_target,'" href="').concat(t.permalink,'">').concat(e.download_button,"</a>"):t.image_thumb?'<img src="'.concat(t.image_thumb,'" />'):"":t:"button"==e.data_type?t?"<a ".concat(e.force_download,' target="').concat(e.link_target,'" rel="').concat(e.relAttributes?e.relAttributes.join(" "):"",'" class="nt_btn ').concat(e.btn_extra_class,'" style="color: ').concat(e.btn_text_color,"; background-color: ").concat(e.btn_bg_color,"; border-color: ").concat(e.btn_border_color,"\" href='").concat(t,"'>").concat(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=zi.parse(t,e.decimalSeparator),","==e.decimalSeparator&&(t=function(t){var e=(t=t.toString()).split(".")[1],n=e?e.length:0;return Number(t).toLocaleString("es-ES",{minimumFractionDigits:n})}(t)),t):t)},getShortcodes:function(t,e,n,a){n=Object.assign({},n.values);var i=e.transformed_value;1!=n.value_transformation_complete&&(jQuery.each(n,(function(t,e){var i=_o()(a,["key",t]);i&&"number"==i.data_type&&("."==i.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!=i.indexOf("{{")&&(i=mo()(uo(i,{row:n})));var o=i.match(/{row.([^\}]*)}/g);return o&&$.each(o,(function(t,e){var a=e.substring(5,e.length-1);i=i.replace(e,n[a]||"")})),i},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(){var t=this,e=t._self._c;return e("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?e("div",{staticClass:"cell_editing"},["selection"==t.column.data_type?e("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?e("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?e("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)}}}):e("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):e("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}}})])}),[],!1,null,null,null).exports},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=ni()(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={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("tables/"+this.tableId+"/item",e).then((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),t.loading=!1})).catch((function(e){console.log(e),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;this.$del("tables/"+t).then((function(t){e.fetchTables(),alert(t.message)})).catch((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={table_id:this.tableId,id:t},a=this;this.$del("tables/"+this.tableId+"/item",n).then((function(t){e.$message({showClose:!0,message:t.message,type:"success"}),a.getData()})).catch((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===ti()(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=Ga.create(t,{onEnd:function(t){var n=t.newIndex,a=t.oldIndex,i=e.items[a];e.sortTable(i.id,e.items[n].position);var o=e.items.splice(a,1)[0];e.items.splice(n,0,o)}})},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={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("pro/sortable",a).then((function(t){n.items=t.data,n.paginate.total=parseInt(t.total),n.paginate.last_page=parseInt(t.last_page)})).catch((function(t){console.log(t)})).finally((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=ti()(this.config.columns,this.currentEditingColumn);this.showColumnEditor=!1,this.currentEditingColumn=!1,this.config.columns.splice(e,1),this.$nextTick((function(){return t.storeSettings()}))},compare:function(t,e){var n=this;return function(a,i){var o=n.columns.find((function(e){return e.key===t})),l=a.values[t],s=i.values[t];return"number"===o.data_type?(l=parseFloat(l),s=parseFloat(s)):"date"===o.data_type&&(l=new Date(l).getTime(),s=new Date(s).getTime()),l===s?0:l<s?"ascending"===e?-1:1:"ascending"===e?1:-1}},onSortChange:function(t){var e=t.prop,n=t.order;this.items.sort(this.compare(e,n))}},mounted:function(){this.getData(),this.tableWidth=jQuery(".wrap").width()+"px",this.setNewColumn()}},bo=vo;var go=n(719),yo={insert:"head",singleton:!1};s()(go.Z,yo);go.Z.locals;var wo=a(bo,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"table-rows"},[t.isEditable?t._e():["fluent-form"==t.dataSourceType?e("div",{staticClass:"tablenav top"},[e("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")?e("div",{staticClass:"tablenav top"},[e("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?e("div",{staticClass:"tablenav top"},[e("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?e("div",{staticClass:"tablenav top"},[e("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?e("div",{staticClass:"tablenav top"},[e("div",{staticClass:"woo_data_source_config"},[e("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():e("div",[e("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?e("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(" "),e("div",{staticClass:"tablenav top"},[e("div",{staticClass:"alignleft actions bulkactions"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n                    "+t._s(t.$t("Select bulk action"))+"\n                ")]),t._v(" "),e("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]}}},[e("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),e("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),e("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction.apply(null,arguments)}}},[t._v(t._s(t.$t("Apply")))]),t._v(" "),e("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&(t.isCompact=n.concat([null])):o>-1&&(t.isCompact=n.slice(0,o).concat(n.slice(o+1)))}else t.isCompact=i}}}),t._v(" Compact View\n                ")]),t._v(" "),e("label",{staticClass:"show-meta-data"},[t._v("\n                    | "),e("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),e("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[e("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.apply(null,arguments)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),e("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),e("label",{staticClass:"form_group"},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&(t.sorting=n.concat([null])):o>-1&&(t.sorting=n.slice(0,o).concat(n.slice(o+1)))}else t.sorting=i}}}),t._v("\n                    Sort Manually\n                    "),t.has_pro?t._e():[t._v("(Pro Feature)")]],2)]),t._v(" "),e("div",{staticClass:"pull-right"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))]),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():e("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[e("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.addColumn()}}},[t._v("\n            Add Column\n        ")])],1),t._v(" "),t.columns.length?[e("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:{"sort-change":t.onSortChange,"selection-change":t.handleSelectionChange}},[t.isEditable?e("el-table-column",{attrs:{type:"selection",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,(function(n,a){return e("el-table-column",{key:a,attrs:{"sort-orders":["ascending","descending"],prop:n.key,"sort-method":t.compare,sortable:"",width:t.columnLength==a+1?"":150},scopedSlots:t._u([{key:"default",fn:function(a){return[e("show-editable-cell",{attrs:{row:a.row,column:n,columns:t.columns,formula_support:t.config.settings.formula_support,is_editable:t.isEditable}})]}}],null,!0)},[t._v(" "),e("template",{slot:"header"},[e("span",[t._v("\n                        "+t._s(n.name||n.key)),e("i",{staticClass:"el-icon-setting nt-column-config",on:{click:function(e){return t.showColumnConfigModal(n)}}})])])],2)})),t._v(" "),t.isEditable?[t.show_meta?[e("el-table-column",{attrs:{label:"Row ID",width:"100px",prop:"id"}}),t._v(" "),e("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),e("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),e("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[t.has_pro?e("a",{on:{click:function(e){return t.addAfter(n)}}},[e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[e("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),e("a",{on:{click:function(e){return t.showUpdateModal(n)}}},[e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[e("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),e("a",{on:{click:function(e){return t.duplicateData(n)}}},[e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[e("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),e("delete-pop-over",{on:{deleted:function(e){return t.deleteItem(n.row.id)}}})]}}],null,!1,2116760848)})]:t._e()],2),t._v(" "),e("div",{staticClass:"tablenav bottom"},[t.isEditable?e("div",{staticClass:"alignleft actions bulkactions"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n                    "+t._s(t.$t("Select bulk action"))+"\n                ")]),t._v(" "),e("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]}}},[e("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),e("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),e("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction.apply(null,arguments)}}},[t._v(t._s(t.$t("Apply")))])]):t._e(),t._v(" "),e("div",{staticClass:"pull-right"},[e("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(" "),e("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),e("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?e("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(" "),e("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}}},[e("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)}),[],!1,null,null,null);const xo=wo.exports;var ko=n(7361),Co=n.n(ko);const So={name:"ninja_key_pair_options",components:{draggable:jt()},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}},jo=So;var $o=n(477),To={insert:"head",singleton:!1};s()($o.Z,To);$o.Z.locals;var Do=a(jo,(function(){var t=this,e=t._self._c;return e("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),e("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,(function(n,a){return e("tr",[e("td",[e("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),e("td",[e("el-input",{attrs:{size:"mini",type:"text"},model:{value:n.label,callback:function(e){t.$set(n,"label",e)},expression:"filter.label"}})],1),t._v(" "),e("td",[e("el-input",{attrs:{size:"mini",type:"text"},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"filter.value"}})],1),t._v(" "),e("td",[e("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){return t.deleteItem(a)}}},[t._v("-")]),t._v(" "),e("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)}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v("Label")]),t._v(" "),e("th",[t._v("Filter Value")])])])}],!1,null,null,null);const Io={name:"FilterEditor",components:{KeyPairOptions:Do.exports},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return tt()(this.columns,(function(e){"date"==e.data_type&&t.push(e)})),t}if("number_range"==this.activeEditor.type){var e=[];return tt()(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",[])}};var Po=n(7587),Eo={insert:"head",singleton:!1};s()(Po.Z,Eo);Po.Z.locals;const Ao={name:"custom_filter",props:["table_id","columns"],components:{GetPro:i,NinjaFilterEditor:a(Io,(function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Filter Title"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filter Title")]),t._v(" "),e("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Filter Label"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Prefix")]),t._v(" "),e("p",[t._v("This will show on your Table Filter")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Filter UI Type"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filter UI")]),t._v(" "),e("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[e("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),e("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),e("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),e("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),e("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),e("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),e("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),e("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Placeholder"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Default Placeholder")]),t._v(" "),e("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Value Type"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Value")]),t._v(" "),e("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                    "+t._s(t.$t("Target Column"))+"\n                    "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Column")]),t._v(" "),e("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(n){return e("el-radio",{key:n.key,attrs:{label:n.key}},[t._v(t._s(n.name))])})),1)],2),t._v(" "),e("el-form-item",[e("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(" "),e("el-form-item",[e("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?[e("el-form-item",{attrs:{label:"Sort Dynamic Value as: "}},[e("el-radio-group",{model:{value:t.activeEditor.sorting_type,callback:function(e){t.$set(t.activeEditor,"sorting_type",e)},expression:"activeEditor.sorting_type"}},[e("el-radio",{attrs:{label:"asc"}},[t._v("Ascending Way")]),t._v(" "),e("el-radio",{attrs:{label:"desc"}},[t._v("Descending Way")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"Sort Algorithm"}},[e("el-radio-group",{model:{value:t.activeEditor.sorting_method,callback:function(e){t.$set(t.activeEditor,"sorting_method",e)},expression:"activeEditor.sorting_method"}},[e("el-radio",{attrs:{label:"text"}},[t._v("As Text Basis")]),t._v(" "),e("el-radio",{attrs:{label:"numeric"}},[t._v("As Numeric Basis")])],1)],1)]:t._e()]:t._e(),t._v(" "),e("el-form-item",[e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Filter Options"))+"\n                "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Options")]),t._v(" "),e("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("Date Filter Operator"))+"\n            ")]),t._v(" "),e("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[e("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),e("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),e("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("From Placeholder"))+"\n            ")]),t._v(" "),e("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(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n                "+t._s(t.$t("To Placeholder"))+"\n            ")]),t._v(" "),e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Filter Prefix"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filter Prefix")]),t._v(" "),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Filter Columns"))+"\n            "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Columns")]),t._v(" "),e("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?e("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(n){return e("el-checkbox",{key:n.key,attrs:{label:n.key}},[t._v(t._s(n.name))])})),1):e("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?e("el-form-item",[e("template",{slot:"label"},[t._v("\n            "+t._s(t.$t("Button Text"))+"\n        ")]),t._v(" "),e("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(" "),e("el-form-item",[e("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)}),[],!1,null,"5185e382",null).exports,draggable:jt()},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 tt()(this.columns,(function(e){t[e.key]=e.name})),t}},methods:{each:tt(),fetchFilters:function(){var t=this;this.loading=!0,this.$get("pro/custom-filter",{table_id:this.table_id}).then((function(e){t.table_filters=e.data.table_filters,t.filter_styling=e.data.filter_styling})).catch((function(t){})).finally((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;var e={table_id:this.table_id,ninja_filters:this.table_filters,filter_styling:this.filter_styling};this.$post("pro/custom-filter",e).then((function(e){t.$message.success(e.data.message)})).catch((function(t){})).finally((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()}};const No=a(Ao,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?e("div",{staticClass:"section_block"},[e("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?[e("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),e("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){return t.saveFilters()}}},t._l(t.table_filters,(function(n,a){return e("tr",[e("td",[e("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(n.title))]),t._v(" "),e("td",[t._v(t._s(n.type))]),t._v(" "),e("td",t._l(n.columns,(function(n){return e("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[n],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n                                    "+t._s(t.columnKeyPairs[n])+"\n                                ")])})),0),t._v(" "),e("td",[e("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(e){return t.edit(n)}}}),t._v(" "),e("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){return t.deleteFilter(a)}}})],1)])})),0)],1),t._v(" "),e("h3",[t._v("Filter Appearance")]),t._v(" "),e("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"}},[e("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),e("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[e("h3",[t._v("Filter Columns")]),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),e("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),e("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),e("h3",[t._v("Progressive Filter")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{loading:t.saving,size:"small",type:"primary"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?e("div",{staticClass:"section_block"},[t._m(2)]):e("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),e("get-pro")],1)]),t._v(" "),e("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?e("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),e("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?e("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),e("span",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_header"},[e("h2",{staticClass:"ninja_block"},[t._v("Custom Search Filters")]),t._v(" "),e("p",[t._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"),t._v("\n            To learn more about this "),e("a",{attrs:{target:"_blank",href:"https://ninjatables.com/docs/custom-filters/"}},[t._v("click here")])])])},function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Target Columns")]),t._v(" "),e("th",[t._v("Action")])])])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Custom Filters is introduced in version 2.4.0. Please update "),e("b",[t._v("Ninja tables pro")]),t._v(" plugin to use\n                this feature")])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Custom Filters is pro only features. Please purchase "),e("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature\n            ")])}],!1,null,null,null).exports;const Oo=a({name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_Language_settings"},[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Language Settings")]),t._v(" "),e("div",{staticClass:"ninja_actions_action"},[e("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(" "),e("div",{staticClass:"ninja_style_wrapper"},[e("div",{staticClass:"section_block"},[e("div",{staticClass:"language_block"},[e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),e("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(" "),e("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),e("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(" "),e("small",[t._v("Search Box Placeholder")])]),t._v(" "),e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),e("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(" "),e("small",[t._v("Search Dropdown Box Title")])])])])])])}),[],!1,null,null,null).exports;const Mo=a({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(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_rendering_settings"},[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Table Render Settings")]),t._v(" "),e("div",{staticClass:"ninja_actions_action"},[e("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(" "),e("div",{staticClass:"ninja_style_wrapper"},[e("div",{staticClass:"ninja_section_block_body"},[e("div",{staticClass:"section_block_item"},[e("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(" "),e("div",{staticClass:"card_block"},[e("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("ajax_table")}}},[e("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(" "),e("h4",[t._v("Ajax Table")]),t._v(" "),e("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(" "),e("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("legacy_table")}}},[e("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(" "),e("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?e("div",{staticClass:"section_block_item"},[e("h3",[t._v("\n                    Disable Caching\n                    "),e("el-tooltip",{attrs:{placement:"right",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Disable Caching")]),t._v("\n                            To optimize and load faster, we cache the table "),e("br"),t._v("\n                            contents. It's not recommended to disable "),e("br"),t._v("\n                            caching unless you know what you are doing\n                        ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Display Frontend Loader")]),t._v(" "),e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.frontend_loader,callback:function(e){t.$set(t.tableSettings,"frontend_loader",e)},expression:"tableSettings.frontend_loader"}})],1)]),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),e("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?e("div",{staticClass:"section_block_item"},[e("h3",[t._v("\n                    Caching Interval\n                    "),e("el-tooltip",{attrs:{placement:"right",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Caching Interval")]),t._v("\n                            To optimize and load faster, You can cache the table data for certain minutes "),e("br"),t._v("\n                            so the data will load from cached data. Please Provide the value in minutes.\n                        ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),e("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(" "),e("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?e("p",[t._v("Current Caching Interval: "),e("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?e("div",{staticClass:"section_block_item"},[e("h3",[t._v("\n                    Enable Full HTML Cache\n                    "),e("el-tooltip",{attrs:{placement:"right",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("HTML Cache")]),t._v("\n                            If you enable this then ninja tables will cache the full html of the table and"),e("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(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),e("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?e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),e("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?e("p",[t._v("Current Caching Interval: "),e("b",[t._v(t._s((t.tableSettings.html_caching_minutes/60).toFixed(2))+" hours")])]):t._e()],1)]):t._e()])]):t._e()])])])}),[function(){var t=this,e=t._self._c;return e("div",[e("p",[t._v("\n                                Recommended settings for advanced features\n                            ")]),t._v(" "),e("ul",{staticClass:"ninja_render_features"},[e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n                                ")]),t._v(" "),e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}],!1,null,null,null).exports;const Bo=a({name:"button_settings",components:{GetPro:i,wpEditor:C},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("settings/"+this.table_id+"/button").then((function(e){t.table_buttons=e.data.button_settings,t.fetching=!1})).catch((function(e){t.fetching=!1}))},saveSettings:function(){var t=this;this.saving=!0;var e={table_id:this.table_id,button_settings:this.table_buttons};this.$put("settings/"+this.table_id+"/button",e).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.saving=!1})).catch((function(e){t.saving=!1}))}},mounted:function(){this.getSettings()}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[e("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[e("h3",[t._v("CSV Export Button Settings")]),t._v(" "),e("div",{staticClass:"form_group"},[e("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?[e("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[e("label",[t._v("Button Label")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Button Background Color")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Button Text Color")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group"},[e("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(" "),e("hr"),t._v(" "),e("h3",[t._v("Print Button Settings")]),t._v(" "),e("div",{staticClass:"form_group"},[e("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?[e("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[e("label",[t._v("Button Label")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group form_row_full"},[e("div",{staticClass:"form_row_half"},[e("label",[t._v("Button Background Color")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_row_half"},[e("div",{staticClass:"form_group"},[e("label",[t._v("Button Text Color")]),t._v(" "),e("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(" "),e("el-collapse",{attrs:{accordion:""}},[e("el-collapse-item",{attrs:{title:"Print Screen Header",name:"header"}},[[e("label",[t._v("Header in each page")]),t._v(" "),e("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(" "),e("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(" "),e("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(" "),e("el-collapse-item",{attrs:{title:"Print Screen Footer",name:"footer"}},[[e("label",[t._v("Footer in each page")]),t._v(" "),e("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(" "),e("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(" "),e("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(" "),e("hr"),t._v(" "),e("h3",[t._v("Buttons Position")]),t._v(" "),e("div",{staticClass:"form_group"},[e("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(n,a){return e("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(n))])})),1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Buttons Alignment")]),t._v(" "),e("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(n,a){return e("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(n))])})),1)],1),t._v(" "),t.hasPro?e("div",{staticClass:"form_group"},[e("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"primary"},on:{click:function(e){return t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):e("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),e("get-pro")],1)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_header"},[e("h2",[t._v("CSV Export / Print Button Settings for Frontend")]),t._v(" "),e("p",[t._v("You can enable/disable print and csv export settings here")])])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Export CSV and Table Print is pro only features. Please purchase "),e("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature\n            ")])}],!1,null,null,null).exports,zo={name:"TableConfiguration",components:{draggable:jt(),ColumnsEditor:Hi,NinjaCustomFilters:No,NinjaLanguageSettings:Oo,NinjaRenderingSettings:Mo,NinjaButtonSettings:Bo},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:{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"}}},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=ni()(this.new_column.name)}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0);var e={table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post("settings/"+this.tableId,e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.$set(t.config,"columns",t.columns),window.ninjaTableBus.$emit("tableDoingAjax",!1)})).catch((function(t){window.ninjaTableBus.$emit("tableDoingAjax",!1)}))},openDrawer:function(t){jQuery(".drawer_body_"+t).slideToggle()},validateColumn:function(t){return t.name?t.key?-1===ti()(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:Be(),get:Co(),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()}},Fo=zo;var Lo=n(1356),Ro={insert:"head",singleton:!1};s()(Lo.Z,Ro);Lo.Z.locals;var Ho=a(Fo,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"table-column-settings"},[e("el-container",[e("el-aside",{attrs:{width:"200px"}},[e("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[e("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[e("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),e("span",[t._v("Columns")])]),t._v(" "),e("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[e("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),e("span",[t._v("Rendering Settings")])]),t._v(" "),e("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[e("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),e("span",[t._v("Custom Filters")])]),t._v(" "),e("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[e("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),e("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),e("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[e("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),e("span",[t._v("Language Settings")])])],1)],1),t._v(" "),e("el-main",["columns"==t.active_menu?[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Table Column Settings")])]),t._v(" "),e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"section_widget"},[e("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?e("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):e("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[e("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(" "),e("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?e("div",{staticClass:"column"},[e("div",{staticClass:"add_column_wrapper"},[e("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(" "),e("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(n,a){return e("div",{key:n.key,staticClass:"column drawer"},[e("div",{staticClass:"header"},[e("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),e("span",{on:{click:function(e){return t.openDrawer(a)}}},[t._v(t._s(n.name||n.key))]),t._v(" "),e("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){return t.openDrawer(a)}}})]),t._v(" "),e("div",{staticClass:"drawer_body",class:"drawer_body_"+a},[e("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:n,"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(" "),e("div",{staticClass:"proms"},[e("div",{staticClass:"help_section"},[e("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n                                    video "),e("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():e("div",{staticClass:"help_section"},[e("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 "),e("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n                                        WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[e("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[e("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[e("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[e("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])}),[],!1,null,null,null);const qo=Ho.exports;const Vo=a({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={table_id:this.tableId,format:t};return window.ninja_table_admin.rest.url+"/export/default?"+jQuery.param(e)},doExport:function(){location.href=this.downloadLink(this.selected)}}},(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_header"},[e("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?e("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),e("div",{staticClass:"ninja_export_block"},[t._v("\n            "+t._s(t.$t("Format:"))+"\n            "),e("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(n,a){return e("option",{domProps:{value:a}},[t._v("\n                    "+t._s(n)+"\n                ")])})),0),t._v(" "),e("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)]):e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"ninja_suggest"},[e("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)+")")])])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_suggest"},[t("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")])])}],!1,null,null,null).exports;const Wo={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 tt()(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=document.getElementById("fileUpload").files[0];if(e){var n=new FormData;n.append("file",e),n.append("table_id",this.tableId),n.append("replace",this.replace),n.append("do_unicode",this.do_unicode),this.$post("import/upload-csv-in-existing-table",n).then((function(e){t.$emit("csvUploaded"),t.clear(),t.$message.success(e.data.message)})).catch((function(e){t.$message.error(e.data.message)})),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 i=[];e.forEach((function(t,e){i.push("content_"+a+"_"+e)})),t.push(i)}));var n="data:text/csv;charset=utf-8,";t.forEach((function(e,a){var i=e.join(",");n+=a<t.length?i+"\n":i}));var a=encodeURI(n),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download","sample.csv"),document.body.appendChild(i),i.click()}}},Uo=Wo;var Yo=n(7689),Zo={insert:"head",singleton:!1};s()(Yo.Z,Zo);Yo.Z.locals;var Jo=a(Uo,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_header"},[e("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?e("div",{staticClass:"ninja_content"},[t.columns.length?e("div",[e("form",{attrs:{action:"",id:"fileUploadForm"}},[e("div",{staticClass:"form-group"},[e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("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(" "),e("div",{staticClass:"form-group"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",size:"small",loading:t.btnLoading},on:{click:function(e){return e.preventDefault(),t.upload.apply(null,arguments)}}},[t._v("\n                        "+t._s(t.$t("Import from CSV"))+"\n                    ")])],1)]),t._v(" "),e("div",{staticClass:"ninja_suggest"},[e("p",[t._v("\n                    Please note that, your CSV data structure need to follow the sample CSV.\n                    You may want to check the "),e("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),e("br"),t._v(" "),e("p",[t._v("\n                    Also make sure the content is in UTF-8 format, for the best result.\n                ")])]),t._v(" "),e("div",{staticClass:"justify-items"},[e("h3",[t._v("\n                    "+t._s(t.$t("CSV Header Structure"))+"\n                ")]),t._v(" "),e("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(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,(function(t){return e("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})})),1),t._v(" "),e("h3",[t._v("or as bellow")]),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,(function(t){return e("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})})),1)],1):e("div",{staticClass:"error"},[e("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"ninja_suggest"},[e("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)+")")])])])])}),[],!1,null,"515ad830",null);const Xo=a({name:"ExportImport",components:{export:Vo,import:Jo.exports},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}},(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"15px"}},[e("el-container",[e("el-aside",{attrs:{width:"200px"}},[e("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[e("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),e("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[e("i",{staticClass:"el-icon-download"}),t._v(" "),e("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),e("el-main",[e(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)}),[],!1,null,null,null).exports;const Qo={name:"help",components:{fluentpromoad:a({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(){this.$post("tables/dismiss-fluent-suggest").then((function(t){})).catch((function(t){})),this.is_installed=!0}}},(function(){var t=this,e=t._self._c;return t.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?e("div",{staticClass:"ninja_dismiss",on:{click:function(e){return t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),e("div",{staticClass:"ninja_fluent_copy"},[e("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(" "),e("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()}),[],!1,null,null,null).exports,ninja_premium:a({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(){var t=this,e=t._self._c;return t.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:t.image_url("banner_premium.png")}})]),t._v(" "),t._m(0)]):t._e()}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_fluent_copy"},[e("p",[t._v("Have you checked out NinjaTables Pro Add-On yet? We have added some exciting features in Ninja Tables with Pro Add-On")]),t._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"}},[t._v("Download Now")]),t._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"}},[t._v("View Details")])])}],!1,null,null,null).exports},data:function(){return{docs:[{title:"Getting started with Ninja Tables",url:"https://ninjatables.com/docs-category/getting-started-with-ninja-tables/"},{title:"Ninja Tables Demo",url:"https://ninjatables.com/demo/"},{title:"Ninja Tables Drag and Drop",url:"https://ninjatables.com/docs-category/simple-mode/"},{title:"Ninja Tables Advanced Mode: ",url:"https://ninjatables.com/docs-category/advanced-mode/"},{title:"Export/Import Data from Ninja Tables",url:"https://ninjatables.com/docs-category/import-export/"},{title:"Ninja Tables Integrations",url:"https://ninjatables.com/docs-category/integrations/"},{title:"Responsive breakpoint settings",url:"https://ninjatables.com/docs-category/responsive-settings/"}],img_url:window.ninja_table_admin.img_url}},methods:{imageUrl:function(t){return this.img_url+t}},mounted:function(){}};var Go=n(6679),Ko={insert:"head",singleton:!1};s()(Go.Z,Ko);Go.Z.locals;var tl=a(Qo,(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"10px"}},[e("h1",{staticClass:"wp-heading-inline"},[t._v(t._s(t.$t("Help and Documentation")))]),t._v(" "),e("hr"),t._v(" "),e("ninja_premium"),t._v(" "),e("div",{staticClass:"ninja_documentaion_wrapper"},[e("div",{staticClass:"ninja_doc_top_blocks"},[e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),e("h3",[t._v("Try Fluent Forms")]),t._v(" "),t._m(0)]),t._v(" "),t._m(1)])]),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("div",[e("img",{staticClass:"block_icon",staticStyle:{height:"220px",width:"220px"},attrs:{src:t.imageUrl("fluentCRM-logo.svg")}}),t._v(" "),e("h3",[t._v("Try Fluent CRM")]),t._v(" "),e("p",[t._v("The easiest and fastest email newsletter, email marketing plugin & CRM solutions for Wordpress.")])]),t._v(" "),t._m(2)])]),t._v(" "),t._m(3),t._v(" "),e("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box ninja_tables_user_guide help_container"},[e("h3",[t._v("User Guide")]),t._v(" "),e("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),e("ul",{staticClass:"doc_items"},t._l(t.docs,(function(n,a){return e("li",{key:a},[e("a",{attrs:{href:n.url,target:"_blank"}},[t._v(t._s(n.title))])])})),0)])]),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),e("h3",[t._v("Love this Plugin?")]),t._v(" "),e("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")])]),t._v(" "),t._m(4)])]),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),e("h3",[t._v("Need An Expert Support?")]),t._v(" "),e("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")])]),t._v(" "),t._m(5)])])])]),t._v(" "),e("fluentpromoad")],1)}),[function(){var t=this,e=t._self._c;return e("p",[e("b",[t._v("Need to build a contact form by drag and drop form builder?")]),t._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._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[this._v("Download Fluent Forms")])])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluent-crm/"}},[this._v("Download FluentCRM")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png?rev=2745100"}}),t._v(" "),e("h3",[t._v("Paymattic - Accept Payment Easily with WordPress Forms")]),t._v(" "),e("p",[t._v("Do you want to accept payments along with user inputs in WordPress? Then Paymattic is the perfect plugin for you.")])]),t._v(" "),e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[t._v("Download Paymattic")])])]),t._v(" "),e("div")])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/"}},[this._v("Write Review")])])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[this._v("Contact Support")])])}],!1,null,null,null);const el=tl.exports;const nl={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()}};var al=n(2926),il={insert:"head",singleton:!1};s()(al.Z,il);al.Z.locals;const ol=a(nl,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("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))])])])}),[],!1,null,null,null).exports;const ll={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,hasPro:!!window.ninja_table_admin.hasPro}},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.hasPro||(e.setReadOnly(!0),e.destroy()),this.loading=!1}},mounted:function(){this.loadDependencies()}};var sl=n(8491),rl={insert:"head",singleton:!1};s()(sl.Z,rl);sl.Z.locals;const cl=a(ll,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("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))])])])}),[],!1,null,null,null).exports,ul={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:ol,ace_js_editor:cl},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="");var e=this.config.table.ID,n={table_id:this.config.table.ID,custom_css:this.custom_css,custom_js:this.custom_js};this.$post("settings/"+e+"/custom-styles",n).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$set(t.config.table,"custom_css",t.custom_css)})).catch((function(t){console.log(t)}))},getScripts:function(){var t=this;this.fetching=!0;var e=this.config.table.ID;this.$get("settings/"+e+"/custom-styles").then((function(e){t.custom_css=e.data.custom_css,t.custom_js=e.data.custom_js})).catch((function(t){})).finally((function(){t.fetching=!1}))}},mounted:function(){this.getScripts()}};var dl=n(8347),pl={insert:"head",singleton:!1};s()(dl.Z,pl);dl.Z.locals;const ml=a(ul,(function(){var t=this,e=t._self._c;return e("div",[t.fetching?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[e("h3",[t._v("Loading... Please wait")])]):e("div",{staticClass:"section_block"},[e("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[e("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),e("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),e("hr"),t._v(" "),"additional_css"==t.current_tab?[e("p",[t._v("\n                You may add "),e("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 "),e("code",[t._v("#footable_parent_NT_ID")]),t._v(" where "),e("b",[t._v("NT_ID")]),t._v(" will be replaced with your table ID dynamically.\n            ")]),t._v(" "),e("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(" "),e("br"),t._v(" "),e("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[e("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(" "),e("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?[e("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[e("p",[t._v("\n                  Custom Javascript feature is a pro feature along with many awesome features.\n                ")]),t._v(" "),e("a",{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"}},[e("el-button",{staticClass:"el-button--danger",attrs:{size:"small"}},[e("span",[t._v("Get Pro")])])],1)]]:t._e()],2),t._v(" "),e("div",{staticClass:"section_block"})])}),[function(){var t=this,e=t._self._c;return e("span",[t._v("Please don't include "),e("code",[t._v("<style></style>")]),t._v(" tag")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"js_instruction"},[t._v("\n                The Following Javascript variables are available that you can use: "),e("br"),t._v(" "),e("b",[t._v("$table")]),t._v(" : The Javascript DOM object of the table"),e("br"),t._v(" "),e("b",[t._v("tableConfig")]),t._v(" : The configuration object of the table.\n            ")])},function(){var t=this,e=t._self._c;return e("span",[t._v("Please don't include "),e("code",[t._v("<script><\/script>")]),t._v(" tag")])}],!1,null,null,null).exports;function hl(t){return hl="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},hl(t)}function _l(t){return function(t){if(Array.isArray(t))return fl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return fl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fl(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}const vl={name:"table_preview",props:["config"],components:{GetPro:i,SortableUpgradeNotice:Ci,NinjaColorPicker:Si},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:{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"}}},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(_l(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 Ce()(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("tables/".concat(this.tableId,"/table-inner-html")).then((function(e){t.tableInnerHtml=e,t.data_loaded=!0})).catch((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={columns:this.columns,table_settings:this.tableSettings};this.$post("settings/".concat(this.tableId),e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"})})).catch((function(t){})).finally((function(){t.savingSettings=!1}))},filterTableSettings:function(t){var e=[];return Ce()(this.availableStyles,(function(t){e.push(t.key)})),t.css_classes=xe()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":hl(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,i=t.debug,o=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 o=e;i&&(o=function(){e()}),a.onreadystatechange=o,a.onload=o}document.getElementsByTagName("head")[0].appendChild(a)}},l=n,s=e.length-1;s>=0;s--){var r=l,c=e[s];a&&(c+="?"+ +(new Date).getTime()),l=function(t){o(this,t)}.bind(c,r)}l()},loadRequiredScripts:function(){var t=this;this.dysel({links:window.ninja_table_admin.preview_required_scripts,callback:function(){t.script_loaded=!0}})},size:Be(),get:Co(),generateColorCss:function(){if("pre_defined_color"!=this.tableSettings.table_color_type){var t="#footable_"+this.tableId,e="\n                    ".concat(t," {\n                        background-color: ").concat(this.tableSettings.table_color_primary," !important;\n                        color: ").concat(this.tableSettings.table_color_secondary," !important;\n                    }\n                     ").concat(t," thead tr.footable-filtering th {\n                        background-color: ").concat(this.tableSettings.table_search_color_primary," !important;\n                        color: ").concat(this.tableSettings.table_search_color_secondary," !important;\n                    }\n                    ").concat(t,":not(.hide_all_borders) thead tr.footable-filtering th {\n                        ").concat(this.tableSettings.table_search_color_border?"\n                         border : 1px solid ".concat(this.tableSettings.table_search_color_border," !important;\n                        "):"\n                        border : 1px solid transparent !important;\n                        ","\n                    }\n                    ").concat(t," .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n                         background-color: ").concat(this.tableSettings.table_search_color_secondary," !important;\n                         color: ").concat(this.tableSettings.table_search_color_primary," !important;\n                    }\n                     ").concat(t," tr.footable-header, ").concat(t," tr.footable-header th {\n                        background-color: ").concat(this.tableSettings.table_header_color_primary," !important;\n                        color: ").concat(this.tableSettings.table_color_header_secondary," !important;\n                    }\n                     ").concat(t," tr.footable-header, ").concat(t," tr.footable-header th span::before {\n                        background-color: ").concat(this.tableSettings.table_color_header_secondary," !important;\n                    }\n                    ").concat(t,":not(.hide_all_borders) tr.footable-header th {\n                        border-color: ").concat(this.tableSettings.table_color_header_border," !important;\n                    }\n                    ").concat(t,":not(.hide_all_borders) tbody tr td {\n                       border-color: ").concat(this.tableSettings.table_color_border," !important;\n                    }\n                    ").concat(t," tbody tr:hover {\n                        background-color: ").concat(this.tableSettings.table_color_primary_hover," !important;\n                        color: ").concat(this.tableSettings.table_color_secondary_hover," !important;\n                    }\n                    ").concat(t," tbody tr:hover td {\n                        border-color: ").concat(this.tableSettings.table_color_border_hover," !important;\n                    }\n\n                     ").concat("yes"==this.tableSettings.alternate_color_status?"\n                         ".concat(t," tbody tr:nth-child(even) {\n                             background-color: ").concat(this.tableSettings.table_alt_color_primary," !important;\n                             color: ").concat(this.tableSettings.table_alt_color_secondary," !important;\n                         }\n                         ").concat(t," tbody tr:nth-child(odd) {\n                             background-color: ").concat(this.tableSettings.table_alt_2_color_primary," !important;\n                             color: ").concat(this.tableSettings.table_alt_2_color_secondary," !important;\n                         }\n                         ").concat(t," tbody tr:nth-child(even):hover {\n                             background-color: ").concat(this.tableSettings.table_alt_color_hover," !important;\n                         }\n                         ").concat(t," tbody tr:nth-child(odd):hover {\n                             background-color: ").concat(this.tableSettings.table_alt_2_color_hover," !important;\n                         }\n                     "):"\n                     ","\n\n                     ").concat(t," tfoot .footable-paging {\n                       background-color: ").concat(this.tableSettings.table_footer_bg," !important;\n                    }\n                    ").concat(t," tfoot .footable-paging .footable-page.active a {\n                        background-color: ").concat(this.tableSettings.table_footer_active," !important;\n                    }\n                    ").concat(t,":not(.hide_all_borders) tfoot .footable-paging td {\n                        border-color: ").concat(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_".concat(t.tableId," thead tr th.ninja_column_").concat(a,", #footable_parent_").concat(t.tableId," tbody tr td.ninja_column_").concat(a," { background-color: ").concat(n.background_color,"; color: ").concat(n.text_color,"; }"),e+="#footable_parent_".concat(t.tableId," tbody tr td.ninja_column_").concat(a," { text-align: ").concat(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")),void 0===this.tableSettings.alternate_color_status&&this.$set(this.tableSettings,"alternate_color_status","no"),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()}},bl=vl;var gl=n(7946),yl={insert:"head",singleton:!1};s()(gl.Z,yl);gl.Z.locals;const wl=a(bl,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_design"},[e("div",{staticClass:"ninja_title_section"},[e("div",{staticClass:"ninja_title"},[e("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),e("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[e("el-radio-button",{attrs:{label:"desktop"}},[e("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n                ")]),t._v(" "),e("el-radio-button",{attrs:{label:"tablet"}},[e("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n                ")]),t._v(" "),e("el-radio-button",{attrs:{label:"mobile"}},[e("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n                ")])],1)],1),t._v(" "),e("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(" "),e("div",{staticClass:"ninja_design_wrapper"},[e("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?e("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                "),e("get-pro",{attrs:{type:"primary"}})],1):t._e(),t._v(" "),e("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?e("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?e("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),e("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}},[e("colgroup",t._l(t.formattedColumns,(function(t,n){return e("col",{key:n,class:["ninja_column_"+n,t.breakpoints]})})),0),t._v(" "),e("thead")])]),t._v(" "),e("div",{staticClass:"ninja_demo_disclaimer"},[e("hr"),t._v(" "),"yes"==t.tableSettings.stackable?e("p",[e("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(" "),e("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(" "),e("div",{staticClass:"design_controls"},[e("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[e("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[e("div",{staticClass:"form_group"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Select Styling Library")]),t._v(" "),e("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(n,a){return e("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n                                "+t._s(n.title)+"\n                                "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:n.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),t.availableStyles?e("div",{staticClass:"form_group label-normalize"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,(function(n){return e("label",{key:n.key,attrs:{for:"table_style_"+n.key}},[e("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_"+n.key},domProps:{value:n.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,n.key)>-1:t.tableSettings.css_classes},on:{change:function(e){var a=t.tableSettings.css_classes,i=e.target,o=!!i.checked;if(Array.isArray(a)){var l=n.key,s=t._i(a,l);i.checked?s<0&&t.$set(t.tableSettings,"css_classes",a.concat([l])):s>-1&&t.$set(t.tableSettings,"css_classes",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(t.tableSettings,"css_classes",o)}}}),t._v("\n                            "+t._s(n.title)+"\n                            "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:n.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2):t._e(),t._v(" "),e("div",{staticClass:"form_group label-normalize"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),e("label",{attrs:{for:"show_title"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.tableSettings,"show_title",n.concat(["1"])):o>-1&&t.$set(t.tableSettings,"show_title",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"show_title",i)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n                            "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"show_description"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.tableSettings,"show_description",n.concat(["1"])):o>-1&&t.$set(t.tableSettings,"show_description",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"show_description",i)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n                            "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"enable_search"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.tableSettings,"enable_search",n.concat(["1"])):o>-1&&t.$set(t.tableSettings,"enable_search",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"enable_search",i)}}}),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?e("label",{attrs:{for:"column_sorting"}},[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,"1");a.checked?o<0&&t.$set(t.tableSettings,"column_sorting",n.concat(["1"])):o>-1&&t.$set(t.tableSettings,"column_sorting",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"column_sorting",i)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n                        ")]):t._e(),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"hide_header_row",n.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_header_row",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"hide_header_row",i)}}}),t._v("\n                            Hide Header Row\n                        ")]),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"hide_all_borders",n.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_all_borders",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"hide_all_borders",i)}}}),t._v("\n                            Hide All Borders\n                        ")]),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"hide_on_empty",n.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_on_empty",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"hide_on_empty",i)}}}),t._v("\n                            Hide empty items on responsive breakdown "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"hide_responsive_labels",n.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_responsive_labels",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"hide_responsive_labels",i)}}}),t._v("\n                            Hide Labels on responsive breakdown "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),e("div",{staticClass:"form_group label-normalize"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("\n                            Stackable Table Configuration\n                            "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"form_group"},[e("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?[e("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n                                    "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[e("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),e("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),e("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),e("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),e("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n                                    "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[e("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),e("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n                                    ")])],1)]:t._e()],2)])]),t._v(" "),e("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[e("div",{staticClass:"form_group"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Select Color Scheme")]),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),e("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?e("div",{staticClass:"form_group"},[e("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(n,a){return e("option",{key:a,domProps:{value:a}},[t._v(t._s(n)+"\n                            ")])})),0)]):e("div",{staticClass:"form_group ninja_color_customization"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Icon"},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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),e("el-tabs",[e("el-tab-pane",{attrs:{label:"Default"}},[e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("el-tab-pane",{attrs:{label:"Hover"}},[e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_switch_wrapper"},[e("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?e("div",{staticClass:"ninja_alternate_colors"},[e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("div",{staticClass:"ninja_color_block"},[e("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(" "),e("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[e("div",{staticClass:"ninja_switch_wrapper"},[e("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(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tableSettings.show_all,expression:"tableSettings.show_all == 0"}],staticClass:"form_group"},[e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),e("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(" "),e("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),e("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),e("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"paginate_to_top",n.concat([null])):o>-1&&t.$set(t.tableSettings,"paginate_to_top",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"paginate_to_top",i)}}}),t._v("\n                            Scroll to table top for pagination change "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"show_pager",n.concat([null])):o>-1&&t.$set(t.tableSettings,"show_pager",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"show_pager",i)}}}),t._v("\n                            Show Page sizes change option "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then Users can change the items per page on frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.tableSettings.show_pager?e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Page Sizes (Number as Comma Separated)")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),e("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),e("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),e("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),e("label",[e("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,i=!!a.checked;if(Array.isArray(n)){var o=t._i(n,null);a.checked?o<0&&t.$set(t.tableSettings,"nt_search_full_width",n.concat([null])):o>-1&&t.$set(t.tableSettings,"nt_search_full_width",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.tableSettings,"nt_search_full_width",i)}}}),t._v("\n                            Make search input as full width "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("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)"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Select Sorting Method")]),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n                                Created at\n                            ")]),t._v(" "),e("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),e("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?e("div",{},[e("span",[t._v(t._s(t.$t("Sort Type"))+"\n                                "),e("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])}}},[e("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),e("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?e("div",[e("label",[t._v(t._s(t.$t("Select Column"))+"\n                                "),e("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(n){return e("option",{key:n.key,domProps:{value:n.key}},[t._v("\n                                        "+t._s(n.name)+"\n                                    ")])})),0)]),t._v(" "),e("label",[t._v(t._s(t.$t("Sort Type"))+"\n                                "),e("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])}}},[e("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),e("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):t.config.table.isSortable&&"manual_sort"==t.tableSettings.sorting_type?e("div",[e("p",[t._v("You can sort the table data from "),e("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?e("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n                        ")]):t._e()],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"default"}},[t._v("\n                                Default\n                                "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n                                Expand First\n                                "),e("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."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n                                Expand All\n                                "),e("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."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[e("el-radio-button",{attrs:{label:"first"}},[t._v("\n                                First Column\n                                "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-button",{attrs:{label:"last"}},[t._v("\n                                Last Column\n                                "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Sticky Header"))+" "),t.has_pro?t._e():e("span",[t._v("(Pro)")])]),t._v(" "),e("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?[e("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n                                "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("small",[t._v("Please give positive/negative number or you can provide jquery element object\n                            ")]),t._v(" "),e("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(" "),e("div",{staticClass:"form_group font-setting"},[e("label",[t._v("Table Font Setting")]),t._v(" "),e("div",{staticClass:"font"},[e("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),e("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,n){return e("el-option",{key:n,attrs:{label:"inherit"===t?"theme-font":t,value:t}})})),1)],1),t._v(" "),e("div",{staticClass:"font"},[e("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),e("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?e("div",{staticClass:"ninja_design_tips"},[e("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,(function(n){return e("li",[e("i",{staticClass:"el-icon-warning"}),t._v(" "),e("span",{domProps:{innerHTML:t._s(n)}})])})),0)]):t._e(),t._v(" "),t.has_pro?t._e():e("div",{staticClass:"upgrade_box"},[e("get-pro",{attrs:{text:"Get Pro"}})],1)],1)]),t._v(" "),e("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)}),[function(){var t=this,e=t._self._c;return e("p",[e("b",[t._v("Note: ")]),t._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                ")])}],!1,null,null,null).exports;const xl=a({name:"frontend-editing-settings",components:{GetPro:i},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(){var t=this,e=t._self._c;return e("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[e("div",{staticClass:"ninja_header_editing"},[e("h2",[t._v("\n                Frontend Editing Settings\n            ")]),t._v(" "),e("div",{staticClass:"heading_actions"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),e("div",{staticClass:"editing_body"},[e("div",{staticClass:"editing_sub_section"},[e("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                    "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[e("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n                                User Roles for Edit/Add Table Rows\n                                "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(n,a){return e("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n                                    "+t._s(n)+"\n                                ")])})),1)],1),t._v(" "),e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n                                User Roles for Deleting Table Rows\n                                "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(n,a){return e("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n                                    "+t._s(n)+"\n                                ")])})),1)],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                            Own Data Only\n                            "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"form-group"},[e("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(" "),e("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                            "),e("br"),e("pre",[e("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),e("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),e("div",{staticClass:"ninja_editing_pref"},[e("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[e("thead",[e("tr",[e("th",[t._v("Column Name")]),t._v(" "),e("th",[t._v("\n                                    Editable?\n                                    "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("th",[t._v("\n                                    Required?\n                                    "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("th",[t._v("\n                                    Default Value\n                                    "),e("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."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),e("tbody",t._l(t.columns,(function(n){return e("tr",{key:n.key},[e("th",[t._v(t._s(n.name))]),t._v(" "),e("td",[e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[n.key],callback:function(e){t.$set(t.editing_items,n.key,e)},expression:"editing_items[column.key]"}})],1),t._v(" "),e("td",[e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[n.key],callback:function(e){t.$set(t.required_items,n.key,e)},expression:"required_items[column.key]"}})],1),t._v(" "),e("td",[e("el-input",{attrs:{placeholder:"Default Value for "+n.name,size:"mini"},model:{value:t.default_values[n.key],callback:function(e){t.$set(t.default_values,n.key,e)},expression:"default_values[column.key]"}})],1)])})),0)])])]),t._v(" "),e("div",{staticClass:"editing_sub_section"},[t._m(5),t._v(" "),e("div",{staticClass:"form-group"},[e("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                            "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n                                Add Row Button Label\n                                "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n                                Edit Rows Button Label\n                                "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n                                Add Popup Heading\n                                "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n                                Edit Popup Heading\n                                "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("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(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n                            Editor Icon Position\n                            "),e("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"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("br"),t._v(" "),e("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"}},[e("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),e("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),e("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):e("div",[e("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),e("p",[t._v('Only "Default" data source tables can be editable')])]):e("div",[t._m(2)]):e("div",[e("div",{staticClass:"el-main-editing"},[t._m(0),t._v(" "),e("div",{staticClass:"editing_body text-center"},[t._m(1),t._v(" "),e("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(" "),e("get-pro")],1)])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_header_editing"},[t("h2",{},[this._v("\n                    Frontend Editing Settings\n                ")])])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),e("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")])},function(){var t=this,e=t._self._c;return e("h3",[t._v("\n            Custom Filters is introduced in version 3.2.0. Please update "),e("b",[t._v("Ninja tables pro")]),t._v(" plugin to use\n            this feature\n        ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[t._v("Data Editing Permissions")]),t._v(" "),e("p",[t._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,e=t._self._c;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[t._v("Editing Column Options")]),t._v(" "),e("p",[t._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,e=t._self._c;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[t._v("Appearance Settings")]),t._v(" "),e("p",[t._v("\n                            You can set the Editing Component Labels and Appearances\n                        ")])])}],!1,null,null,null).exports;const kl=a({name:"TopNav",props:["initialData","tableId","selectedDevice"],data:function(){return{id:""}},methods:{saveTableData:function(){var t=this;window.ninjaTableBus.$emit("closeManageCell"),window.ninjaTableBus.$emit("saveData"),""!==this.selectedDevice&&this.$emit("deviceSelected",""),this.$nextTick((function(){var e=document.getElementById("ninja_tables_builder_id").innerHTML.replace(/<!--[\s\S]*?-->/g,"").replace(/ contenteditable="[^"]*"/g,"").replace(/ data-gramm="[^"]*"/g,"").replace(/<div[^>]*class="[^"]*remove-elements[^"]*"[^>]*>[\s\S]*?<\/div>/g,"");if(""===t.initialData.table_data.table_name)return t.$message({showClose:!0,message:t.$t("Table name field is required"),type:"error"}),!1;t.$patch("table-builder/".concat(t.id),{data:JSON.stringify(t.initialData),table_html:e,table_id:t.id}).then((function(e){t.$message({showClose:!0,message:t.$t("Table data saved successfully."),type:"success"}),t.id=e.data.id})).catch((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})}))}))},fullScreenEnableDisable:function(){jQuery("body").toggleClass("folded")}},computed:{idExist:function(){return this.tableId?(this.id=this.tableId,this.id):!!this.id&&this.id},previewURL:function(){return window.location.origin+"/?ninjatable_builder_preview="+this.id}}},(function(){var t=this,e=t._self._c;return e("el-menu",{staticStyle:{transform:"translateY(-12px)"}},[e("el-row",{attrs:{type:"flex",align:"middle"}},[e("el-col",{attrs:{span:6}},[e("div",[t.initialData.table_data?e("el-input",{staticClass:"plugin-name",attrs:{placeholder:t.$t("Enter table name here....")},model:{value:t.initialData.table_data.table_name,callback:function(e){t.$set(t.initialData.table_data,"table_name",e)},expression:"initialData.table_data.table_name"}}):t._e()],1)]),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18}},[e("div",[t.idExist?e("el-button",{staticClass:"copy",attrs:{size:"small",type:"info","data-clipboard-text":'[ninja_table_builder id="'.concat(t.id,'"]'),icon:"el-icon-document-copy"}},[t._v('[ninja_table_builder id="'+t._s(t.id)+'"]\n        ')]):t._e(),t._v(" "),t.idExist?e("a",{attrs:{href:t.previewURL,target:"_blank"}},[e("el-button",{attrs:{size:"small"}},[t._v(t._s(t.$t("Preview")))])],1):t._e(),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.saveTableData}},[t._v(t._s(t.$t("Save Table")))]),t._v(" "),e("el-button",{attrs:{type:"default",size:"small",icon:"el-icon-full-screen",circle:""},on:{click:t.fullScreenEnableDisable}})],1)])],1)],1)}),[],!1,null,null,null).exports;const Cl={name:"SliderInput",model:{prop:["value"],event:"update"},computed:{mainValue:function(){return Number(this.value)},maxValue:function(){return Number(this.max)},minValue:function(){return Number(this.min)},stepValue:function(){return Number(this.step)}},props:{value:{type:[Number,String],default:12},max:{type:[Number,String],default:50},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},disableSlider:{type:Boolean,default:!1},enableResponsiveNClickDesktop:{type:Boolean,default:!1},mobileDisableBreakpoint:{type:Boolean,default:!1},tabletDisableBreakpoint:{type:Boolean,default:!1}}};var Sl=n(6924),jl={insert:"head",singleton:!1};s()(Sl.Z,jl);Sl.Z.locals;const $l=a(Cl,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),t._v(" "),"Table margin top"===t.label?e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("p",{attrs:{slot:"content"},slot:"content"},[t._v("Use margin top only for"),e("br"),t._v("horizontal ribbon positioning. ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})]):t._e(),t._v(" "),e("el-slider",{staticStyle:{"margin-right":"10px"},attrs:{value:t.mainValue,max:t.maxValue,min:t.minValue,step:t.stepValue,"show-input":"","input-size":"mini",disabled:t.disableResponsive||t.enableResponsiveNClickDesktop||t.mobileDisableBreakpoint||t.tabletDisableBreakpoint||t.disableSlider},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;const Tl=a({name:"SwitchInput",model:{prop:"value",event:"update"},props:{value:{type:[Boolean,String],default:!1},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},enableResponsiveNClickDesktop:{type:Boolean,default:!1},mobileDisableBreakpoint:{type:Boolean,default:!1},tabletDisableBreakpoint:{type:Boolean,default:!1}},computed:{mainValue:function(){return"true"===this.value||!0===this.value}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block space-between"},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("el-switch",{staticStyle:{"margin-right":"10px","margin-top":"1px"},attrs:{value:t.mainValue,disabled:t.disableResponsive||t.enableResponsiveNClickDesktop||t.mobileDisableBreakpoint||t.tabletDisableBreakpoint},on:{input:function(e){return t.$emit("update",e)}}},[t._v("\n  >")])],1)}),[],!1,null,null,null).exports;const Dl=a({name:"Alignment",model:{prop:"value",event:"update"},props:{value:{type:String,default:"left"},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},mobileDisableBreakpoint:{type:Boolean,default:!1},tabletDisableBreakpoint:{type:Boolean,default:!1}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-radio-group",{staticStyle:{display:"flex","justify-content":"space-around","margin-right":"10px"},attrs:{value:t.value,disabled:t.disableResponsive||t.mobileDisableBreakpoint||t.tabletDisableBreakpoint},on:{input:function(e){return t.$emit("update",e)}}},[e("el-radio",{attrs:{label:"left"}},[t._v(t._s(t.$t("Left")))]),t._v(" "),e("el-radio",{attrs:{label:"center"}},[t._v(t._s(t.$t("Center")))]),t._v(" "),e("el-radio",{attrs:{label:"right"}},[t._v(t._s(t.$t("Right")))])],1)],1)}),[],!1,null,null,null).exports;const Il={name:"ColorInput",data:function(){return{color:"#ff4500",predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#000000","#dddddd","#379D13"]}},model:{prop:"value",event:"update"},props:{value:{type:String,default:"#ffffff"},label:{type:String,default:""}},methods:{colorUpdate:function(t){var e=t;null===t&&(e=""),this.$emit("update",e)}}};var Pl=n(5264),El={insert:"head",singleton:!1};s()(Pl.Z,El);Pl.Z.locals;const Al=a(Il,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block space-between"},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("el-color-picker",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini",value:t.value,predefine:t.predefineColors},on:{change:t.colorUpdate,"active-change":t.colorUpdate,input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;const Nl=a({name:"SelectInput",data:function(){return{}},model:{prop:"value",event:"update"},computed:{mainValue:{get:function(){return this.value},set:function(t){this.value=t}}},props:{value:{type:String,default:""},label:{type:String,default:""},items:{type:Array,default:""},disableResponsive:{type:Boolean,default:!1},mobileDisableBreakpoint:{type:Boolean,default:!1},tabletDisableBreakpoint:{type:Boolean,default:!1}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-select",{attrs:{value:t.mainValue,placeholder:"Select",size:"mini",disabled:t.disableResponsive||t.mobileDisableBreakpoint||t.tabletDisableBreakpoint},on:{change:function(e){return t.$emit("update",e)}}},t._l(t.items,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)}),[],!1,null,null,null).exports;const Ol=a({name:"AllInputElement",props:["initialData","item","disableResponsive","mobileDisableBreakpoint","tabletDisableBreakpoint","deviceName"],components:{SliderInput:$l,SwitchInput:Tl,Alignment:Dl,ColorInput:Al,SelectInput:Nl},computed:{enableResponsive:function(){return!!this.initialData&&Boolean(this.initialData.responsive.general.options.enable_responsive_table.value)},tableRow:function(){return this.initialData?Number(this.initialData.table_data.table.tr):null},tableCol:function(){return this.initialData?Number(this.initialData.table_data.table.tc):null},showHeaderMobile:function(){return this.initialData?Boolean(this.initialData.responsive.mode_options.options.devices.mobile.top_row_as_header.value):null},showHeaderTablet:function(){return this.initialData?Boolean(this.initialData.responsive.mode_options.options.devices.tablet.top_row_as_header.value):null},separateRowColumn:function(){return this.initialData?Boolean(this.initialData.settings.general.options.columns_rows_separate.value):null},maxValue:function(){return"items_per_header"===this.item.key&&this.initialData?1==this.tableRow?this.tableCol:!this.showHeaderTablet&&"tablet"===this.deviceName||!this.showHeaderMobile&&"mobile"===this.deviceName?this.tableRow*this.tableCol:this.tableRow-1:this.item.max},showSlider:function(){var t=this.initialData?Number(this.initialData.responsive.mode_options.options.devices[this.deviceName].items_per_row.value):null;return!!this.enableResponsive&&(!(1!==this.tableRow||"items_per_header"!=this.item.key||!("mobile"===this.deviceName&&this.showHeaderMobile||"tablet"===this.deviceName&&this.showHeaderTablet))||(1===this.tableRow&&("mobile_cell_border"==this.item.key||"tablet_cell_border"==this.item.key)||("mobile_cell_border"==this.item.key&&!this.showHeaderMobile||"tablet_cell_border"==this.item.key&&!this.showHeaderTablet||(!(!this.separateRowColumn||"mobile_cell_border"!==this.item.key&&"tablet_cell_border"!==this.item.key)||!(t!==this.tableRow-1||!("mobile_cell_border"===this.item.key&&this.showHeaderMobile||"tablet_cell_border"===this.item.key&&this.showHeaderTablet))))))}}},(function(){var t=this,e=t._self._c;return e("div",["slider"===t.item.type?e("slider-input",{attrs:{label:t.item.label,max:t.maxValue,min:t.item.min,disableSlider:t.showSlider,disableResponsive:t.disableResponsive,enableResponsiveNClickDesktop:"desktop"===this.deviceName,mobileDisableBreakpoint:t.mobileDisableBreakpoint,tabletDisableBreakpoint:t.tabletDisableBreakpoint},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"switch"===t.item.type?e("switch-input",{attrs:{label:t.$t(t.item.label),disableResponsive:t.disableResponsive,enableResponsiveNClickDesktop:"desktop"===this.deviceName,mobileDisableBreakpoint:t.mobileDisableBreakpoint,tabletDisableBreakpoint:t.tabletDisableBreakpoint},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"alignment"===t.item.type?e("alignment",{attrs:{label:t.$t(t.item.label),disableResponsive:t.disableResponsive,mobileDisableBreakpoint:t.mobileDisableBreakpoint,tabletDisableBreakpoint:t.tabletDisableBreakpoint},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"color"===t.item.type?e("color-input",{attrs:{label:t.$t(t.item.label)},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"select"===t.item.type?e("select-input",{attrs:{label:t.$t(t.item.label),items:t.item.items,disableResponsive:t.disableResponsive,mobileDisableBreakpoint:t.mobileDisableBreakpoint,tabletDisableBreakpoint:t.tabletDisableBreakpoint},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):t._e()],1)}),[],!1,null,null,null).exports;const Ml={name:"CheckboxInput",model:{prop:"value",event:"update"},props:{value:{type:Array,default:function(){return[]}},label:{type:String,default:""},options:{type:Array,default:function(){return[]}}}};var Bl=n(694),zl={insert:"head",singleton:!1};s()(Bl.Z,zl);Bl.Z.locals;const Fl=a(Ml,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block nt-checkbox-group"},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("el-checkbox-group",{attrs:{size:"mini",value:t.value},on:{input:function(e){return t.$emit("update",e)}}},t._l(t.options,(function(n){return e("el-checkbox",{key:n.value,attrs:{label:n.value}},[t._v(t._s(n.value))])})),1)],1)}),[],!1,null,null,null).exports;const Ll=a({name:"TextOption",data:function(){return{fontStyleOptions:[{label:"Bold",value:"bold"},{label:"Italic",value:"italic"},{label:"Underline",value:"underline"}]}},props:["item"],components:{ColorInput:Al,SliderInput:$l,Alignment:Dl,Checkbox:Fl}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("el-input",{staticStyle:{width:"96%","margin-bottom":"3px"},attrs:{type:"textarea",autosize:{minRows:3},placeholder:t.$t("Enter here")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Font Size"),min:10,max:45,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Font Style"),options:t.fontStyleOptions},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1)}),[],!1,null,null,null).exports;const Rl=a({name:"TextInput",model:{prop:"value",event:"update"},props:{value:{type:String,default:"https://google.com"},label:{type:String,default:""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",{staticStyle:{float:"left"}},[t._v(t._s(t.label))]),t._v(" "),e("el-input",{staticStyle:{width:"96%","margin-bottom":"2px"},attrs:{size:"mini",value:t.value},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;var Hl=["accessibility-outline","accessibility","add-circle-outline","add-circle","add","airplane-outline","airplane","alarm-outline","alarm","albums-outline","albums","alert-circle-outline","alert-circle","alert","american-football-outline","american-football","analytics-outline","analytics","aperture-outline","aperture","apps-outline","apps","archive-outline","archive","arrow-back-circle-outline","arrow-back-circle","arrow-back","arrow-down-circle-outline","arrow-down-circle","arrow-down","arrow-forward-circle-outline","arrow-forward-circle","arrow-forward","arrow-redo-circle-outline","arrow-redo-circle","arrow-redo-outline","arrow-redo","arrow-undo-circle-outline","arrow-undo-circle","arrow-undo-outline","arrow-undo","arrow-up-circle-outline","arrow-up-circle","arrow-up","at-circle-outline","at-circle","at","attach","backspace-outline","backspace","bag-add-outline","bag-add","bag-check-outline","bag-check","bag-handle-outline","bag-handle","bag-outline","bag-remove","bag","balloon-outline","balloon","ban","bandage-outline","bandage","bar-chart-outline","bar-chart","barbell","barcode-outline","barcode","baseball-outline","baseball","basket-outline","basket","basketball-outline","basketball","battery-charging","battery-dead","battery-full","battery-half","beaker-outline","beaker","bed-outline","bed","beer-outline","beer","bicycle","bluetooth","boat-outline","boat","body-outline","body","bonfire-outline","bonfire","book-outline","book","bookmark-outline","bookmark","bookmarks-outline","bookmarks","bowling-ball-outline","bowling-ball","briefcase-outline","briefcase","browsers-outline","browsers","brush-outline","brush","bug-outline","bug","build-outline","build","bulb-outline","bulb","bus-outline","bus","business-outline","business","cafe-outline","cafe","calculator-outline","calculator","calendar-clear-outline","calendar-clear","calendar-number-outline","calendar-number","calendar-outline","calendar","call-outline","call","camera-outline","camera-reverse-outline","camera-reverse","camera","car-outline","car-sport-outline","car-sport","car","card-outline","card","caret-back-circle-outline","caret-back-circle","caret-back","caret-down-circle-outline","caret-down-circle","caret-down","caret-forward-circle-outline","caret-forward-circle","caret-forward","caret-up-circle-outline","caret-up-circle","caret-up","cart-outline","cart","cash-outline","cash","cellular-outline","cellular","chatbox-ellipses-outline","chatbox-ellipses","chatbox-outline","chatbox","chatbubble-ellipses-outline","chatbubble-ellipses","chatbubble-outline","chatbubble","chatbubbles-outline","chatbubbles","checkbox","checkmark-circle-outline","checkmark-circle","checkmark-done-circle-outline","checkmark-done-circle","checkmark-done","checkmark","chevron-back-circle-outline","chevron-back-circle","chevron-back","chevron-down-circle-outline","chevron-down-circle","chevron-down","chevron-forward-circle-outline","chevron-forward-circle","chevron-forward","chevron-up-circle-outline","chevron-up-circle","chevron-up","clipboard-outline","clipboard","close-circle","close","cloud-circle-outline","cloud-circle","cloud-done-outline","cloud-done","cloud-download-outline","cloud-download","cloud-offline-outline","cloud-offline","cloud-outline","cloud-upload-outline","cloud-upload","cloud","cloudy-night-outline","cloudy-night","cloudy-outline","cloudy","code-download","code-slash","code-working","code","cog","color-fill-outline","color-fill","color-filter-outline","color-filter","color-palette-outline","color-palette","color-wand-outline","color-wand","compass-outline","compass","construct-outline","construct","contract","contrast-outline","contrast","copy-outline","copy","create-outline","create","crop","cube-outline","cube","cut-outline","cut","desktop-outline","desktop","diamond-outline","diamond","dice-outline","dice","disc-outline","disc","document-attach-outline","document-attach","document-lock-outline","document-lock","document-outline","document-text-outline","document-text","document","documents-outline","documents","download-outline","download","duplicate-outline","duplicate","ear-outline","ear","earth-outline","earth","easel-outline","easel","egg-outline","egg","ellipse","ellipsis-horizontal-circle","ellipsis-horizontal-outline","ellipsis-horizontal","ellipsis-vertical-circle","ellipsis-vertical-outline","ellipsis-vertical","enter-outline","enter","exit-outline","exit","expand","extension-puzzle-outline","extension-puzzle","eye-off-outline","eye-off","eye-outline","eye","eyedrop-outline","eyedrop","fast-food-outline","fast-food","female","file-tray-full-outline","file-tray-full","file-tray-outline","file-tray-stacked-outline","file-tray-stacked","file-tray","film-outline","film","filter-circle-outline","filter-circle","filter","finger-print","fish-outline","fish","fitness-outline","fitness","flag-outline","flag","flame-outline","flame","flash-off-outline","flash-off","flash-outline","flash","flashlight-outline","flashlight","flask-outline","flask","flower-outline","flower","folder-open-outline","folder-open","folder-outline","folder","football-outline","football","footsteps-outline","footsteps","funnel-outline","funnel","game-controller-outline","game-controller","gift-outline","gift","git-branch","git-commit","git-compare","git-merge","git-network","git-pull-request","glasses-outline","glasses","globe-outline","globe","golf-outline","golf","grid-outline","grid","hammer-outline","hammer","hand-left-outline","hand-left","hand-right-outline","hand-right","happy-outline","happy","hardware-chip-outline","hardware-chip","headset-outline","headset","heart-circle-outline","heart-circle","heart-dislike-circle-outline","heart-dislike-circle","heart-dislike-outline","heart-dislike","heart-half","heart-outline","heart","help-buoy-outline","help-buoy","help-circle-outline","help-circle","help","home-outline","home","hourglass-outline","hourglass","ice-cream-outline","ice-cream","id-card-outline","id-card","image-outline","image","images-outline","images","infinite","information-circle-outline","information-circle","information","invert-mode-outline","invert-mode","journal-outline","journal","key-outline","key","keypad-outline","keypad","language-outline","language","laptop-outline","laptop","layers-outline","layers","leaf-outline","leaf","library-outline","library","link","list-circle-outline","list-circle","list","locate","location-outline","location","lock-closed-outline","lock-closed","lock-open-outline","lock-open","log-in-outline","log-in","log-out-outline","log-out","logo-alipay","logo-amazon","logo-amplify","logo-android","logo-angular","logo-apple-appstore","logo-apple-ar","logo-apple","logo-behance","logo-bitbucket","logo-bitcoin","logo-buffer","logo-capacitor","logo-chrome","logo-closed-captioning","logo-codepen","logo-css3","logo-designernews","logo-deviantart","logo-discord","logo-docker","logo-dribbble","logo-dropbox","logo-edge","logo-electron","logo-euro","logo-facebook","logo-figma","logo-firebase","logo-firefox","logo-flickr","logo-foursquare","logo-github","logo-gitlab","logo-google-playstore","logo-google","logo-hackernews","logo-html5","logo-instagram","logo-ionic","logo-ionitron","logo-javascript","logo-laravel","logo-linkedin","logo-markdown","logo-mastodon","logo-medium","logo-microsoft","logo-no-smoking","logo-nodejs","logo-npm","logo-octocat","logo-paypal","logo-pinterest","logo-playstation","logo-pwa","logo-python","logo-react","logo-reddit","logo-rss","logo-sass","logo-skype","logo-slack","logo-snapchat","logo-soundcloud","logo-stackoverflow","logo-steam","logo-stencil","logo-tableau","logo-tiktok","logo-tumblr","logo-tux","logo-twitch","logo-twitter","logo-usd","logo-venmo","logo-vercel","logo-vimeo","logo-vk","logo-vue","logo-web-component","logo-wechat","logo-whatsapp","logo-windows","logo-wordpress","logo-xbox","logo-xing","logo-yahoo","logo-yen","logo-youtube","magnet-outline","magnet","mail-open-outline","mail-open","mail-outline","mail-unread-outline","mail-unread","mail","male-female","male","man-outline","man","map-outline","map","medal-outline","medal","medical-outline","medical","medkit-outline","medkit","megaphone-outline","megaphone","menu-outline","menu","mic-circle-outline","mic-circle","mic-off-circle-outline","mic-off-circle","mic-off-outline","mic-off","mic-outline","mic","moon-outline","moon","move","musical-note-outline","musical-note","musical-notes-outline","musical-notes","navigate-circle-outline","navigate-circle","navigate-outline","navigate","newspaper-outline","newspaper","notifications-circle-outline","notifications-circle","notifications-off-circle-outline","notifications-off-circle","notifications-off-outline","notifications-off","notifications-outline","notifications","nuclear-outline","nuclear","nutrition-outline","nutrition","open-outline","open","options-outline","options","paper-plane-outline","paper-plane","partly-sunny-outline","partly-sunny","pause-circle-outline","pause-circle","pause","paw-outline","paw","pencil","people-circle-outline","people-circle","people-outline","people","person-add-outline","person-add","person-circle-outline","person-circle","person-outline","person-remove-outline","person-remove","person","phone-landscape-outline","phone-landscape","phone-portrait-outline","phone-portrait","pie-chart-outline","pie-chart","pin-outline","pin","pint-outline","pint","pizza-outline","pizza","planet-outline","planet","play-back-circle-outline","play-back-circle","play-back-outline","play-back","play-circle-outline","play-circle","play-forward-circle-outline","play-forward-circle","play-forward-outline","play-forward","play-outline","play-skip-back-circle-outline","play-skip-back-circle","play-skip-back-outline","play-skip-back","play-skip-forward-circle-outline","play-skip-forward-circle","play-skip-forward-outline","play-skip-forward","play","podium-outline","podium","power","pricetag-outline","pricetag","pricetags-outline","pricetags","print-outline","print","prism-outline","prism","pulse","push-outline","push","qr-code-outline","qr-code","radio-button-off-outline","radio-button-off","radio","rainy-outline","rainy","reader-outline","reader","receipt-outline","receipt","recording-outline","recording","refresh-circle-outline","refresh-circle","refresh","reload-circle-outline","reload-circle","reload","remove-circle-outline","remove-circle","remove","reorder-four","reorder-three","reorder-two","repeat","resize","restaurant-outline","restaurant","return-down-back","return-down-forward","return-up-back","return-up-forward","ribbon-outline","ribbon","rocket-outline","rocket","rose-outline","rose","sad-outline","sad","save-outline","save","scale-outline","scale","scan-circle-outline","scan-circle","scan","school-outline","school","search-circle-outline","search-circle","search-outline","search","send-outline","send","server-outline","server","settings-outline","settings","shapes-outline","shapes","share-outline","share-social-outline","share-social","share","shield-checkmark-outline","shield-checkmark","shield-half-outline","shield-half","shield-outline","shield","shirt-outline","shirt","shuffle","skull-outline","skull","snow-outline","snow","sparkles-outline","sparkles","speedometer-outline","speedometer","square-outline","square","star-half-outline","star-half","star-outline","star","stats-chart-outline","stats-chart","stop-circle-outline","stop-circle","stop-outline","stop","stopwatch-outline","stopwatch","storefront-outline","storefront","subway-outline","subway","sunny-outline","sunny","swap-horizontal","swap-vertical","sync-circle-outline","sync-circle","sync","tablet-landscape-outline","tablet-landscape","tablet-portrait-outline","tablet-portrait","telescope-outline","telescope","tennisball-outline","tennisball","terminal-outline","terminal","text","thermometer-outline","thermometer","thumbs-down-outline","thumbs-down","thumbs-up-outline","thumbs-up","thunderstorm-outline","thunderstorm","ticket-outline","ticket","time-outline","time","timer-outline","timer","today-outline","today","toggle-outline","toggle","trail-sign-outline","trail-sign","train-outline","train","transgender","trash-bin-outline","trash-bin","trash-outline","trash","trending-down","trending-up","triangle-outline","triangle","trophy-outline","trophy","tv-outline","tv","umbrella-outline","umbrella","unlink","videocam-off-outline","videocam-off","videocam-outline","videocam","volume-high-outline","volume-high","volume-low-outline","volume-low","volume-medium-outline","volume-medium","volume-mute-outline","volume-mute","volume-off-outline","volume-off","walk-outline","walk","wallet-outline","wallet","warning-outline","warning","watch-outline","watch","water-outline","water","wifi","wine-outline","wine","woman-outline","woman","ninja-table"];var ql=a({name:"Icon",props:["item","setValue"],data:function(){return{icons:Hl,keyword:""}},methods:{newIcon:function(){var t=this,e=wp.media({title:"Choose Icon",multiple:!1}).on("select",(function(){var n=e.state().get("selection").first().toJSON();"icon"===t.item.data.type?t.item.data.value=n.url:t.item.data.style[t.setValue]=n.url})).open()},chooseIcon:function(t){"icon"===this.item.data.type?this.item.data.value=t:this.item.data.style[this.setValue]=t},getAsset:function(t){return ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"}},computed:{iconList:function(){var t=this;return this.icons.filter((function(e){return t.keyword.toLowerCase().split(" ").every((function(t){return e.toLowerCase().includes(t)}))}))}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tooltip",{attrs:{effect:"dark",placement:"top-right",content:"If you choose svg you can customize the color otherwise can't"}},[e("el-button",{attrs:{size:"mini",type:"primary",round:"",icon:"el-icon-upload"},on:{click:function(e){return e.preventDefault(),t.newIcon.apply(null,arguments)}}},[t._v("\n      "+t._s(t.$t("Choose Icon"))+"\n    ")])],1),t._v(" "),e("el-input",{staticStyle:{margin:"10px 0",width:"96%"},attrs:{size:"mini",placeholder:t.$t("Search Icon")},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),e("div",{staticStyle:{height:"100px",width:"100%","overflow-y":"scroll"}},t._l(t.iconList,(function(n,a){return e("span",{key:a},[e("img",{attrs:{src:t.getAsset(n),width:"30px",height:"30px"},on:{click:function(e){return t.chooseIcon("".concat(n))}}})])})),0)],1)}),[],!1,null,null,null);const Vl=ql.exports;const Wl={name:"RadioButton",model:{prop:"value",event:"update"},props:{value:{type:String,default:"M"},options:{type:Array,default:function(){return[]}},event:{type:String,default:"update"},label:{type:String,default:""}}};var Ul=n(7174),Yl={insert:"head",singleton:!1};s()(Ul.Z,Yl);Ul.Z.locals;var Zl=a(Wl,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"radioButton"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-radio-group",{attrs:{value:t.value,size:"small"},on:{input:function(e){return t.$emit("update",e)}}},t._l(t.options,(function(t){return e("el-radio-button",{key:t.value,attrs:{label:t.label}})})),1)],1)}),[],!1,null,"1e6d9ba6",null);const Jl=a({data:function(){return{activeName:"general",buttonSize:[{value:"small",label:"S"},{value:"medium",label:"M"},{value:"large",label:"L"}],fontStyleOptions:[{label:"Bold",value:"bold"},{label:"Italic",value:"italic"},{label:"Underline",value:"underline"}],linkOptions:[{label:"sponsored",value:"sponsored"},{label:"nofollow",value:"nofollow"},{label:"noreferrer",value:"noreferrer"}]}},name:"ButtonOption",props:["item"],components:{ColorInput:Al,SliderInput:$l,SwitchInput:Tl,TextInput:Rl,Icon:Vl,Alignment:Dl,Checkbox:Fl,RadioButton:Zl.exports},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},extension:function(){var t=this.item.data.style.iconName.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t._self._c;return e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("el-input",{staticStyle:{width:"96%","margin-bottom":"3px"},attrs:{size:"mini",type:"text",placeholder:t.$t("Enter here")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Background color")},model:{value:t.item.data.style.backgroundColor,callback:function(e){t.$set(t.item.data.style,"backgroundColor",e)},expression:"item.data.style.backgroundColor"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Border color")},model:{value:t.item.data.style.borderColor,callback:function(e){t.$set(t.item.data.style,"borderColor",e)},expression:"item.data.style.borderColor"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Border Size"),max:10,min:0,step:1},model:{value:t.item.data.style.borderSize,callback:function(e){t.$set(t.item.data.style,"borderSize",e)},expression:"item.data.style.borderSize"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Border Radius"),max:30,min:0,step:1},model:{value:t.item.data.style.borderRadius,callback:function(e){t.$set(t.item.data.style,"borderRadius",e)},expression:"item.data.style.borderRadius"}}),t._v(" "),e("switch-input",{attrs:{label:t.$t("Full Width")},model:{value:t.item.data.style.fullWidth,callback:function(e){t.$set(t.item.data.style,"fullWidth",e)},expression:"item.data.style.fullWidth"}}),t._v(" "),!1===t.item.data.style.fullWidth?e("radio-button",{attrs:{label:t.$t("Button Size"),options:t.buttonSize},model:{value:t.item.data.style.buttonSize,callback:function(e){t.$set(t.item.data.style,"buttonSize",e)},expression:"item.data.style.buttonSize"}}):t._e(),t._v(" "),!1===t.item.data.style.fullWidth?e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}):t._e(),t._v(" "),e("text-input",{attrs:{label:t.$t("URL")},model:{value:t.item.data.style.url,callback:function(e){t.$set(t.item.data.style,"url",e)},expression:"item.data.style.url"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Link rel attributes"),options:t.linkOptions},model:{value:t.item.data.style.linkAttributes,callback:function(e){t.$set(t.item.data.style,"linkAttributes",e)},expression:"item.data.style.linkAttributes"}}),t._v(" "),e("switch-input",{staticStyle:{"margin-top":"12px"},attrs:{label:t.$t("Open in another tab")},model:{value:t.item.data.style.newTab,callback:function(e){t.$set(t.item.data.style,"newTab",e)},expression:"item.data.style.newTab"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Font Style")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{attrs:{label:t.$t("Icon"),name:"icon"}},[t.hasPro?t._e():[e("span",{staticClass:"text-warning"},[t._v(t._s(t.$t("You are using free version of ninja-tables")))])],t._v(" "),t.hasPro?e("switch-input",{staticClass:"component-spacing",attrs:{label:t.$t("Enable Icon")},model:{value:t.item.data.style.enableIcon,callback:function(e){t.$set(t.item.data.style,"enableIcon",e)},expression:"item.data.style.enableIcon"}}):t._e(),t._v(" "),t.item.data.style.enableIcon&&t.hasPro?e("div",{staticClass:"component-wrapper"},[t.extension?e("color-input",{attrs:{label:t.$t("Icon Color")},model:{value:t.item.data.style.iconColor,callback:function(e){t.$set(t.item.data.style,"iconColor",e)},expression:"item.data.style.iconColor"}}):t._e(),t._v(" "),e("slider-input",{attrs:{label:t.$t("Icon Size"),max:50,min:10,step:1},model:{value:t.item.data.style.iconFontSize,callback:function(e){t.$set(t.item.data.style,"iconFontSize",e)},expression:"item.data.style.iconFontSize"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Item Spacing"),max:100,min:0,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("icon",{attrs:{item:t.item,setValue:"iconName"}}),t._v(" "),e("div",[e("p",[t._v(t._s(t.$t("Icon Position")))]),t._v(" "),e("el-select",{attrs:{size:"mini",placeholder:"Select"},model:{value:t.item.data.style.iconPosition,callback:function(e){t.$set(t.item.data.style,"iconPosition",e)},expression:"item.data.style.iconPosition"}},t._l(["left","right"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1):t._e()],2),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Hover"),name:"hover"}},[e("switch-input",{attrs:{label:t.$t("Button Hover")},model:{value:t.item.data.style.isHover,callback:function(e){t.$set(t.item.data.style,"isHover",e)},expression:"item.data.style.isHover"}}),t._v(" "),t.item.data.style.isHover?e("color-input",{attrs:{label:t.$t("Background Color")},model:{value:t.item.data.style.hoverBackgroundColor,callback:function(e){t.$set(t.item.data.style,"hoverBackgroundColor",e)},expression:"item.data.style.hoverBackgroundColor"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("color-input",{attrs:{label:t.$t("Text Color")},model:{value:t.item.data.style.hoverColor,callback:function(e){t.$set(t.item.data.style,"hoverColor",e)},expression:"item.data.style.hoverColor"}}):t._e(),t._v(" "),t.item.data.style.isHover&&t.item.data.style.enableIcon&&t.hasPro&&t.extension?e("color-input",{attrs:{label:t.$t("Icon Color")},model:{value:t.item.data.style.hoverIconColor,callback:function(e){t.$set(t.item.data.style,"hoverIconColor",e)},expression:"item.data.style.hoverIconColor"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("color-input",{attrs:{label:t.$t("Border color")},model:{value:t.item.data.style.hoverBorderColor,callback:function(e){t.$set(t.item.data.style,"hoverBorderColor",e)},expression:"item.data.style.hoverBorderColor"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("slider-input",{attrs:{label:t.$t("Border Size"),max:10,min:0,step:1},model:{value:t.item.data.style.hoverBorderSize,callback:function(e){t.$set(t.item.data.style,"hoverBorderSize",e)},expression:"item.data.style.hoverBorderSize"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("slider-input",{attrs:{label:t.$t("Scale"),max:3,min:1,step:.1},model:{value:t.item.data.style.transition,callback:function(e){t.$set(t.item.data.style,"transition",e)},expression:"item.data.style.transition"}}):t._e()],1)],1)}),[],!1,null,null,null).exports;const Xl=a({name:"StarRatingOption",props:["item"],components:{SliderInput:$l,ColorInput:Al,AlignmentInput:Dl,SwitchInput:Tl}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("slider-input",{attrs:{label:t.$t("Star Size"),max:50,min:10,step:1},model:{value:t.item.data.style.ratingSize,callback:function(e){t.$set(t.item.data.style,"ratingSize",e)},expression:"item.data.style.ratingSize"}}),t._v(" "),e("alignment-input",{attrs:{label:t.$t("Align")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("switch-input",{attrs:{label:t.$t("Show Rating Value")},model:{value:t.item.data.style.showRatingValue,callback:function(e){t.$set(t.item.data.style,"showRatingValue",e)},expression:"item.data.style.showRatingValue"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Maximum Star"),max:10,min:3,step:1},model:{value:t.item.data.style.maxStar,callback:function(e){t.$set(t.item.data.style,"maxStar",e)},expression:"item.data.style.maxStar"}})],1)}),[],!1,null,null,null).exports;const Ql=a({name:"IconOption",props:["item"],components:{ColorInput:Al,AlignmentInput:Dl,Slider:$l,Icon:Vl},computed:{extension:function(){var t=this.item.data.value.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[t.extension?e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Icon Size"),max:150,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("alignment-input",{attrs:{label:t.$t("Align")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("icon",{attrs:{item:t.item}})],1)}),[],!1,null,null,null).exports;const Gl=a({name:"ProgressOption",data:function(){return{types:["line","circle","dashboard"]}},props:["item"],components:{ColorInput:Al,Slider:$l,Alignment:Dl}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("div",[e("span",[t._v(t._s(t.$t("Progress Type")))]),t._v(" "),e("el-select",{staticStyle:{width:"97%","margin-bottom":"7px"},attrs:{placeholder:t.$t("Progress Bar Type"),size:"mini"},model:{value:t.item.data.style.type,callback:function(e){t.$set(t.item.data.style,"type",e)},expression:"item.data.style.type"}},t._l(t.types,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),t._v(" "),e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Text Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Progressbar Percentage"),max:100,min:10,step:1},model:{value:t.item.data.style.percentage,callback:function(e){t.$set(t.item.data.style,"percentage",e)},expression:"item.data.style.percentage"}}),t._v(" "),"line"!==t.item.data.style.type?e("slider",{attrs:{label:t.$t("Progressbar Width"),max:150,min:50,step:1},model:{value:t.item.data.style.width,callback:function(e){t.$set(t.item.data.style,"width",e)},expression:"item.data.style.width"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Progressbar Thickness"),max:15,min:2,step:1},model:{value:t.item.data.style.thickness,callback:function(e){t.$set(t.item.data.style,"thickness",e)},expression:"item.data.style.thickness"}}),t._v(" "),"line"!==t.item.data.style.type?e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}):t._e()],1)}),[],!1,null,null,null).exports;const Kl=a({name:"ListOption",props:["item","settings"],data:function(){return{activeName:"general",list:{ul:["circle","square","disc","none"],ol:["upper-roman","lower-roman","upper-alpha","lower-alpha","decimal"]},fontStyleOptions:[{label:"Bold",value:"bold"},{label:"Italic",value:"italic"},{label:"Underline",value:"underline"}]}},components:{ColorInput:Al,Slider:$l,Alignment:Dl,Checkbox:Fl},computed:{updatedList:function(){return this.item.data.style.listStyle="ul"===this.item.data.style.listType?"circle":"upper-roman",this.list[this.item.data.style.listType]},globalFontValue:function(){return Number(this.settings.global_styling.options.font_size.value)-Number(2)}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("slider",{attrs:{label:t.$t("Item Spacing Vertically"),max:50,min:t.globalFontValue,step:1},model:{value:t.item.data.style.lineHeight,callback:function(e){t.$set(t.item.data.style,"lineHeight",e)},expression:"item.data.style.lineHeight"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Space Between Icon and Text"),max:100,min:-5,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Font Style"),options:t.fontStyleOptions},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("List"),name:"list"}},[e("div",[e("p",[t._v(t._s(t.$t("List Type")))]),t._v(" "),e("el-radio-group",{model:{value:t.item.data.style.listType,callback:function(e){t.$set(t.item.data.style,"listType",e)},expression:"item.data.style.listType"}},[e("el-radio",{attrs:{label:"ul"}},[t._v(t._s(t.$t("Unordered List")))]),t._v(" "),e("el-radio",{attrs:{label:"ol"}},[t._v(t._s(t.$t("Ordered List")))])],1)],1),t._v(" "),e("div",[e("p",[t._v(t._s(t.$t("List Icon")))]),t._v(" "),e("el-select",{attrs:{size:"mini",placeholder:t.$t("List Icon")},model:{value:t.item.data.style.listStyle,callback:function(e){t.$set(t.item.data.style,"listStyle",e)},expression:"item.data.style.listStyle"}},t._l(t.updatedList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)])],1)],1)}),[],!1,null,null,null).exports;const ts=a({name:"CustomHTML",props:["item"]},(function(){var t=this,e=t._self._c;return e("div",[e("el-input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:t.$t("write html")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}})],1)}),[],!1,null,null,null).exports;const es=a({name:"ShortcodeOption",props:["item"],components:{AlignmentInput:Dl}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:"write html"},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("alignment-input",{attrs:{label:t.$t("Align")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1)}),[],!1,null,null,null).exports;const ns=a({name:"StylistListOption",props:["item","settings"],data:function(){return{activeName:"general",fontStyleOptions:[{label:"Bold",value:"bold"},{label:"Italic",value:"italic"},{label:"Underline",value:"underline"}]}},components:{Slider:$l,ColorInput:Al,Alignment:Dl,Icon:Vl,Checkbox:Fl},computed:{extension:function(){var t=this.item.data.style.iconName.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")},globalFontValue:function(){return Number(this.settings.global_styling.options.font_size.value)-Number(2)}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("slider",{attrs:{label:t.$t("Space Between Icon and Text"),max:200,min:0,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Item Spacing Vertically"),max:50,min:t.globalFontValue,step:1},model:{value:t.item.data.style.lineHeight,callback:function(e){t.$set(t.item.data.style,"lineHeight",e)},expression:"item.data.style.lineHeight"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Font Style"),options:t.fontStyleOptions},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Icon"),name:"icon"}},[t.extension?e("color-input",{attrs:{label:t.$t("Icon Color")},model:{value:t.item.data.style.iconColor,callback:function(e){t.$set(t.item.data.style,"iconColor",e)},expression:"item.data.style.iconColor"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Icon Size"),max:50,min:10,step:1},model:{value:t.item.data.style.iconFontSize,callback:function(e){t.$set(t.item.data.style,"iconFontSize",e)},expression:"item.data.style.iconFontSize"}}),t._v(" "),e("icon",{attrs:{item:t.item,setValue:"iconName"}})],1)],1)],1)}),[],!1,null,null,null).exports;var as=a({name:"Shape",model:{prop:"value",event:"update"},props:{value:{type:String,default:"square"},label:{type:String,default:""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-radio-group",{staticStyle:{"margin-top":"5px"},attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}},[e("el-radio",{attrs:{label:"square"}},[t._v(t._s(t.$t("Square")))]),t._v(" "),e("el-radio",{attrs:{label:"round"}},[t._v(t._s(t.$t("Round")))])],1)],1)}),[],!1,null,null,null);const is=a({name:"ImageOption",props:["item"],data:function(){return{linkOptions:[{label:"sponsored",value:"sponsored"},{label:"nofollow",value:"nofollow"},{label:"noreferrer",value:"noreferrer"}]}},components:{Alignment:Dl,TextInput:Rl,SliderInput:$l,Shape:as.exports,Checkbox:Fl},methods:{replaceImage:function(){var t=this,e=wp.media({title:"Choose Image",multiple:!1}).on("select",(function(){var n=e.state().get("selection").first().toJSON();t.item.data.value=n.url})).open()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("el-button",{attrs:{size:"medium",type:"primary",round:"",icon:"el-icon-upload"},on:{click:function(e){return e.preventDefault(),t.replaceImage.apply(null,arguments)}}},[t._v("\n        "+t._s(t.$t("Replace Image"))+"\n    ")]),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Image Size"),max:100,min:10,step:1},model:{value:t.item.data.style.size,callback:function(e){t.$set(t.item.data.style,"size",e)},expression:"item.data.style.size"}}),t._v(" "),e("shape",{attrs:{label:t.$t("Image Shape")},model:{value:t.item.data.style.shape,callback:function(e){t.$set(t.item.data.style,"shape",e)},expression:"item.data.style.shape"}}),t._v(" "),e("text-input",{attrs:{label:t.$t("Image Alternative Text")},model:{value:t.item.data.style.alt,callback:function(e){t.$set(t.item.data.style,"alt",e)},expression:"item.data.style.alt"}}),t._v(" "),e("text-input",{attrs:{label:t.$t("Image Link")},model:{value:t.item.data.style.link,callback:function(e){t.$set(t.item.data.style,"link",e)},expression:"item.data.style.link"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Link rel attributes"),options:t.linkOptions},model:{value:t.item.data.style.linkAttributes,callback:function(e){t.$set(t.item.data.style,"linkAttributes",e)},expression:"item.data.style.linkAttributes"}})],1)}),[],!1,null,null,null).exports;const os=a({name:"SpacingInput",data:function(){return{lock:!1,activeName:"margin"}},props:["item","types"],components:{SliderInput:$l},methods:{marginPadding:function(t,e){this.lock?(this.item.data.style[this.activeName].top=t,this.item.data.style[this.activeName].bottom=t,this.item.data.style[this.activeName].left=t,this.item.data.style[this.activeName].right=t):this.item.data.style[this.activeName][e]=t}},computed:{top:{get:function(){return this.item.data.style[this.activeName].top},set:function(t){this.marginPadding(t,"top")}},bottom:{get:function(){return this.item.data.style[this.activeName].bottom},set:function(t){this.marginPadding(t,"bottom")}},left:{get:function(){return this.item.data.style[this.activeName].left},set:function(t){this.marginPadding(t,"left")}},right:{get:function(){return this.item.data.style[this.activeName].right},set:function(t){this.marginPadding(t,"right")}}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("i",{class:"el-icon-".concat(!1===t.lock?"unlock":"lock"),staticStyle:{"font-size":"25px","text-align":"right",display:"block"},on:{click:function(e){t.lock=!t.lock}}}),t._v(" "),t._l(t.types,(function(n){return e("el-tab-pane",{key:n,attrs:{label:t.$t("margin"===n?"Margin":"Padding"),name:n}},[e("slider-input",{attrs:{label:t.$t("Top"),max:100,min:0},model:{value:t.top,callback:function(e){t.top=e},expression:"top"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Bottom"),max:100,min:0},model:{value:t.bottom,callback:function(e){t.bottom=e},expression:"bottom"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Left"),max:100,min:0},model:{value:t.left,callback:function(e){t.left=e},expression:"left"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Right"),max:100,min:0},model:{value:t.right,callback:function(e){t.right=e},expression:"right"}})],1)}))],2)],1)}),[],!1,null,null,null).exports;const ls=a({name:"TextIconOption",props:["item"],data:function(){return{activeName:"general",fontStyleOptions:[{label:"Bold",value:"bold"},{label:"Italic",value:"italic"},{label:"Underline",value:"underline"}]}},components:{Slider:$l,ColorInput:Al,Alignment:Dl,Icon:Vl,Checkbox:Fl},computed:{extension:function(){var t=this.item.data.style.iconName.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:3},placeholder:t.$t("Enter here")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Item Spacing"),max:200,min:0,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Font Style"),options:t.fontStyleOptions},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Icon"),name:"icon"}},[t.extension?e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.iconColor,callback:function(e){t.$set(t.item.data.style,"iconColor",e)},expression:"item.data.style.iconColor"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Icon Size"),max:50,min:10,step:1},model:{value:t.item.data.style.iconFontSize,callback:function(e){t.$set(t.item.data.style,"iconFontSize",e)},expression:"item.data.style.iconFontSize"}}),t._v(" "),e("icon",{attrs:{item:t.item,setValue:"iconName"}}),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Icon Position")))]),e("br"),t._v(" "),e("el-select",{attrs:{placeholder:"Select",size:"mini"},model:{value:t.item.data.style.iconPosition,callback:function(e){t.$set(t.item.data.style,"iconPosition",e)},expression:"item.data.style.iconPosition"}},t._l(["left","right"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1)],1)],1)}),[],!1,null,null,null).exports;const ss=a({name:"RibbonOption",props:["item","maxWidth","settings"],data:function(){return{cellPadding:this.settings.general.options.cell_padding.value,activeTabName:"general",fontStyleOptions:[{label:"Bold",value:"bold"},{label:"Italic",value:"italic"},{label:"Underline",value:"underline"}]}},methods:{leftToRight:function(){var t=0;t="right"===this.item.data.style.ribbonPosition?this.cornerMaxWidth-10:-13,this.item.data.style.cornerXAxis=t}},computed:{cornerMaxWidth:function(){return Number(this.maxWidth)+Number(2*(this.cellPadding-10))-100},cornerXAxis:function(){return Number(this.maxWidth)+Number(2*(this.cellPadding-10))-100},bookmarkXAxis:function(){return Number(this.maxWidth)+Number(6)+Number(2*(this.cellPadding-10))-Number(this.item.data.style.bookmarkWidth)},horizontalMaxWidth:function(){return Number(this.maxWidth)+Number(20)+Number(2*(this.cellPadding-10))},sideMaxWidth:function(){return Number(this.maxWidth)+Number(2*(this.cellPadding-10))},bookmarkMaxWidth:function(){return Number(this.maxWidth)+Number(16)+Number(2*(this.cellPadding-10))}},components:{ColorInput:Al,Slider:$l,Checkbox:Fl}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeTabName,callback:function(e){t.activeTabName=e},expression:"activeTabName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("span",[t._v(t._s(t.$t("Ribbon Type")))]),t._v(" "),e("el-select",{staticStyle:{width:"97%","margin-bottom":"7px"},attrs:{size:"mini"},model:{value:t.item.data.style.ribbonType,callback:function(e){t.$set(t.item.data.style,"ribbonType",e)},expression:"item.data.style.ribbonType"}},t._l(["side","bookmark","corner","horizontal"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1),t._v(" "),"corner"===t.item.data.style.ribbonType?e("p",[t._v(t._s(t.$t("Ribbon Position")))]):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("el-select",{attrs:{size:"mini",placeholder:"Select"},on:{change:t.leftToRight},model:{value:t.item.data.style.ribbonPosition,callback:function(e){t.$set(t.item.data.style,"ribbonPosition",e)},expression:"item.data.style.ribbonPosition"}},t._l(["left","right"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:500,min:100},model:{value:t.item.data.style.width,callback:function(e){t.$set(t.item.data.style,"width",e)},expression:"item.data.style.width"}}):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:60,min:10},model:{value:t.item.data.style.height,callback:function(e){t.$set(t.item.data.style,"height",e)},expression:"item.data.style.height"}}):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("X Offset"),max:t.cornerXAxis,min:-30,step:1},model:{value:t.item.data.style.cornerXAxis,callback:function(e){t.$set(t.item.data.style,"cornerXAxis",e)},expression:"item.data.style.cornerXAxis"}}):t._e(),t._v(" "),"side"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:t.sideMaxWidth,min:20},model:{value:t.item.data.style.sideWidth,callback:function(e){t.$set(t.item.data.style,"sideWidth",e)},expression:"item.data.style.sideWidth"}}):t._e(),t._v(" "),"side"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:100,min:10},model:{value:t.item.data.style.sideHeight,callback:function(e){t.$set(t.item.data.style,"sideHeight",e)},expression:"item.data.style.sideHeight"}}):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:t.bookmarkMaxWidth,min:30},model:{value:t.item.data.style.bookmarkWidth,callback:function(e){t.$set(t.item.data.style,"bookmarkWidth",e)},expression:"item.data.style.bookmarkWidth"}}):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:200,min:5},model:{value:t.item.data.style.bookmarkHeight,callback:function(e){t.$set(t.item.data.style,"bookmarkHeight",e)},expression:"item.data.style.bookmarkHeight"}}):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("X Offset"),max:t.bookmarkXAxis,min:-10,step:1},model:{value:t.item.data.style.xAxis,callback:function(e){t.$set(t.item.data.style,"xAxis",e)},expression:"item.data.style.xAxis"}}):t._e(),t._v(" "),"horizontal"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:t.horizontalMaxWidth,min:30},model:{value:t.item.data.style.horizontalWidth,callback:function(e){t.$set(t.item.data.style,"horizontalWidth",e)},expression:"item.data.style.horizontalWidth"}}):t._e(),t._v(" "),"horizontal"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:100,min:5},model:{value:t.item.data.style.horizontalHeight,callback:function(e){t.$set(t.item.data.style,"horizontalHeight",e)},expression:"item.data.style.horizontalHeight"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Y Offset"),max:150,min:-150,step:1},model:{value:t.item.data.style.yAxis,callback:function(e){t.$set(t.item.data.style,"yAxis",e)},expression:"item.data.style.yAxis"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Table margin top"),max:t.item.data.style.horizontalHeight,min:0},model:{value:t.settings.global_styling.options.margin_top.value,callback:function(e){t.$set(t.settings.global_styling.options.margin_top,"value",e)},expression:"settings.global_styling.options.margin_top.value"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("el-input",{staticStyle:{width:"96%","margin-bottom":"7px"},attrs:{size:"mini",type:"text",placeholder:t.$t("Ribbon Text")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font X Offset"),max:100,min:-100,step:1},model:{value:t.item.data.style.textXAxis,callback:function(e){t.$set(t.item.data.style,"textXAxis",e)},expression:"item.data.style.textXAxis"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Y Offset"),max:100,min:-100,step:1},model:{value:t.item.data.style.textYAxis,callback:function(e){t.$set(t.item.data.style,"textYAxis",e)},expression:"item.data.style.textYAxis"}}),t._v(" "),e("checkbox",{attrs:{label:t.$t("Font Style"),options:t.fontStyleOptions},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Background"),name:"background"}},[e("color-input",{attrs:{label:t.$t("Background color")},model:{value:t.item.data.style.backgroundColor,callback:function(e){t.$set(t.item.data.style,"backgroundColor",e)},expression:"item.data.style.backgroundColor"}})],1)],1)],1)}),[],!1,null,null,null).exports;const rs={name:"BackgroundColor",components:{ColorInput:Al},props:["manageCell"],data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#000000","#dddddd","#379D13"]}},methods:{changeTdBackground:function(t){var e=this,n=t;null===t&&(n=""),this.manageCell.data.tableData.forEach((function(t){t.rows[e.manageCell.data.headers[e.manageCell.data.table.columnIndex]].style.backgroundColor=n}))},changeSelectedCellBackground:function(t){var e=this,n=t;(null===t&&(n=""),this.manageCell.data.tdIds.length>0)&&this.manageCell.data.tableData.forEach((function(t){Object.values(t.rows).forEach((function(t){e.manageCell.data.tdIds.includes(t.style.tdId)&&(t.style.backgroundColor=n)}))}))}},computed:{headerBackground:{get:function(){return this.manageCell.data.setting.background.options.header_background.value},set:function(t){var e=this.manageCell.data.setting.background;e.options.header_background.value=""==t&&e?"#fff":t}},cellBackground:{get:function(){if(this.manageCell.data.table.column.style)return this.manageCell.data.table.column.style.backgroundColor},set:function(t){this.manageCell.data.table.column.style.backgroundColor=t}},trBackground:{get:function(){if(this.manageCell.data.table.row.style)return this.manageCell.data.table.row.style.backgroundColor},set:function(t){this.manageCell.data.table.row.style.backgroundColor=t}}}};var cs=n(2508),us={insert:"head",singleton:!1};s()(cs.Z,us);cs.Z.locals;const ds=a(rs,(function(){var t=this,e=t._self._c;return e("div",[e("h3",[t._v(t._s(t.$t("General Color Options")))]),t._v(" "),e("div",{staticClass:"component-wrapper"},[e("color-input",{attrs:{label:t.$t("Header Background")},model:{value:t.headerBackground,callback:function(e){t.headerBackground=e},expression:"headerBackground"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Even Row Background")},model:{value:t.manageCell.data.setting.background.options.even_row_background.value,callback:function(e){t.$set(t.manageCell.data.setting.background.options.even_row_background,"value",e)},expression:"manageCell.data.setting.background.options.even_row_background.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Odd Row Background")},model:{value:t.manageCell.data.setting.background.options.odd_row_background.value,callback:function(e){t.$set(t.manageCell.data.setting.background.options.odd_row_background,"value",e)},expression:"manageCell.data.setting.background.options.odd_row_background.value"}})],1),t._v(" "),[1===t.manageCell.data.tdIds.length?[e("br"),t._v(" "),e("h3",[t._v(t._s(t.$t("Selected Color Options")))]),t._v(" "),e("div",{staticClass:"component-wrapper"},[e("div",{staticClass:"block space-between"},[e("span",[t._v(t._s(t.$t("Selected Cell Row Background")))]),t._v(" "),e("color-input",{attrs:{predefine:t.predefineColors},model:{value:t.trBackground,callback:function(e){t.trBackground=e},expression:"trBackground"}})],1),t._v(" "),e("div",{staticClass:"block space-between"},[e("span",[t._v(t._s(t.$t("Selected Cell Column Background")))]),t._v(" "),e("el-color-picker",{staticClass:"color-picker-margin",attrs:{size:"mini",predefine:t.predefineColors},on:{"active-change":t.changeTdBackground,change:t.changeTdBackground},model:{value:t.cellBackground,callback:function(e){t.cellBackground=e},expression:"cellBackground"}})],1)])]:t._e(),t._v(" "),t.manageCell.data.tdIds.length>=1?e("div",{staticClass:"block component-spacing space-between"},[e("span",[t._v(t._s(t.$t("Selected Cell Background")))]),t._v(" "),e("el-color-picker",{staticClass:"color-picker-margin",attrs:{size:"mini",predefine:t.predefineColors},on:{"active-change":t.changeSelectedCellBackground,change:t.changeSelectedCellBackground},model:{value:t.cellBackground,callback:function(e){t.cellBackground=e},expression:"cellBackground"}})],1):t._e(),t._v(" "),t.manageCell.data.tdIds.length<=0?e("h5",[e("b",[t._v(t._s(t.$t('Select a row/column/cell to change their background properties. Hold "SHIFT" and click on cells to select multiple cells.')))])]):t._e()]],2)}),[],!1,null,"58e28a60",null).exports;function ps(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,i,o,l,s=[],r=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;r=!1}else for(;!(r=(a=o.call(n)).done)&&(s.push(a.value),s.length!==e);r=!0);}catch(t){c=!0,i=t}finally{try{if(!r&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ms(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ms(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ms(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}const hs={name:"LeftSideBar",props:["initialData","singleItem","selectedDevice"],mixins:[Ft],components:{ace_code_editor:ol,ace_js_editor:cl,GetPro:i,SelectInput:Nl,CellSetting:a({name:"CellSetting",data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#000000","#dddddd","#379D13"]}},components:{GetPro:i},props:["manageCell","setting"],methods:{updateChangesValues:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this.manageCell.data.tableData,i=this.manageCell.data.headers[this.manageCell.data.table.columnIndex];a.forEach((function(a){n?a.rows[i].style.highlighted[t]=e:a.rows[i].style[t]=e}))},changeColumnWidth:function(){this.updateChangesValues("columnWidth",this.columnWidth)},changeHcActive:function(){this.updateChangesValues("active",this.hcActive,!0)},changeHcHeight:function(t){this.updateChangesValues("height",t,!0),this.changeMarginTopBottom()},changeHcShadowColor:function(t){var e=t;null===t&&(e=""),this.updateChangesValues("shadowColor",e,!0)},changeHcOffsetX:function(t){this.updateChangesValues("offset_x",t,!0)},changeHcOffsetY:function(t){this.updateChangesValues("offset_y",t,!0)},changeHcBlurRadius:function(t){this.updateChangesValues("blur_radius",t,!0),this.changeMarginTopBottom()},changeMarginTopBottom:function(){for(var t=this.manageCell.data.tableData,e=this.manageCell.data.table.rowIndex,n=0,a=0,i=Object.entries(t[e].rows);a<i.length;a++){var o=ps(i[a],2),l=(o[0],o[1]),s=0;s+=l.style.highlighted.active?l.style.highlighted.height:0,(s+=l.style.highlighted.active?l.style.highlighted.blur_radius:0)>n&&(n=s)}this.setting.global_styling.options.margin_top.value=n,this.setting.global_styling.options.margin_bottom.value=n+30}},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},highlightedIsPro:function(){return Boolean(this.manageCell.data.table.column.style.highlighted.has_pro)},hcActive:{get:function(){return this.manageCell.data.table.column.style.highlighted.active},set:function(t){this.manageCell.data.table.column.style.highlighted.active=t,this.changeMarginTopBottom()}},rowHeight:{get:function(){return Number(this.manageCell.data.table.row.style.rowHeight)},set:function(t){this.manageCell.data.table.row.style.rowHeight=t}},columnWidth:{get:function(){var t=this.manageCell.data.setting.general.options.cell_min_auto_width.value,e=this.manageCell.data.table.column.style.columnWidth;return Number(e||t)},set:function(t){this.manageCell.data.table.column.style.columnWidth=t}}}},(function(){var t=this,e=t._self._c;return e("div",[1!==t.manageCell.data.tdIds.length?e("div",[e("p",[t._v("\n      "+t._s(t.$t("Click on a cell to get cell-specific options. Selected cells will be highlighted."))+" "),e("br"),e("br"),t._v("\n      "+t._s(t.$t('Hold "SHIFT" and click on cells to select multiple cells for merge cells.'))+"\n    ")])]):1===t.manageCell.data.tdIds.length?e("div",[e("div",{staticClass:"block"},[e("div",{staticClass:"component-spacing"},[e("span",[t._v(t._s(t.$t("Highlight Column")))]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("template",{slot:"content"},[e("h3",[t._v(t._s(t.$t("Highlight Column")))]),t._v(" "),e("p",[t._v("This is a Pro feature.\n              "),e("get-pro")],1)]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info",staticStyle:{"margin-left":"2px"}})],2),t._v(" "),e("el-switch",{staticStyle:{float:"right"},attrs:{disabled:!t.hasPro&&t.highlightedIsPro},on:{change:t.changeHcActive,input:t.changeHcActive},model:{value:t.hcActive,callback:function(e){t.hcActive=e},expression:"hcActive"}})],1),t._v(" "),t.hcActive?e("div",{staticClass:"component-wrapper"},[e("div",[e("span",[t._v(t._s(t.$t("Highlighted Column Height")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:40,min:1,step:1,"show-input":""},on:{input:t.changeHcHeight},model:{value:t.manageCell.data.table.column.style.highlighted.height,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"height",e)},expression:"manageCell.data.table.column.style.highlighted.height"}})],1),t._v(" "),e("div",{staticClass:"space-between"},[e("span",[t._v(t._s(t.$t("Shadow Color")))]),t._v(" "),e("el-color-picker",{attrs:{size:"mini",predefine:t.predefineColors},on:{"active-change":t.changeHcShadowColor,change:t.changeHcShadowColor},model:{value:t.manageCell.data.table.column.style.highlighted.shadowColor,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"shadowColor",e)},expression:"manageCell.data.table.column.style.highlighted.shadowColor"}})],1),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Shadow Effect (X-Axis)")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:30,min:-30,step:1,"show-input":""},on:{input:t.changeHcOffsetX},model:{value:t.manageCell.data.table.column.style.highlighted.offset_x,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"offset_x",e)},expression:"manageCell.data.table.column.style.highlighted.offset_x"}})],1),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Shadow Effect (Y-Axis)")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:30,min:1,step:1,"show-input":""},on:{input:t.changeHcOffsetY},model:{value:t.manageCell.data.table.column.style.highlighted.offset_y,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"offset_y",e)},expression:"manageCell.data.table.column.style.highlighted.offset_y"}})],1),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Shadow Effect (Blur Radius)")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:30,min:10,step:1,"show-input":""},on:{input:t.changeHcBlurRadius},model:{value:t.manageCell.data.table.column.style.highlighted.blur_radius,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"blur_radius",e)},expression:"manageCell.data.table.column.style.highlighted.blur_radius"}})],1)]):t._e()]),t._v(" "),e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.$t("Row height")))]),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:500,min:50,step:1,"show-input":""},model:{value:t.rowHeight,callback:function(e){t.rowHeight=e},expression:"rowHeight"}})],1),t._v(" "),e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.$t("Column Width")))]),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:500,min:100,step:1,"show-input":""},on:{change:t.changeColumnWidth},model:{value:t.columnWidth,callback:function(e){t.columnWidth=e},expression:"columnWidth"}})],1)]):t._e()])}),[],!1,null,null,null).exports,BackgroundColor:ds,ColorInput:Al,RibbonOption:ss,TextIconOption:ls,SpacingInput:os,ButtonOption:Jl,AllInputElement:Ol,draggable:jt(),TextOption:Ll,StarRating:Xl,IconOption:Ql,ProgressOption:Gl,ListOption:Kl,CustomHtmlOption:ts,ShortcodeOption:es,StylistListOption:ns,ImageOption:is},data:function(){return{activeName:"elements",activeNames:["general"],deviceActiveName:"desktop",deviceLastSelected:"",activeOption:1,item:{},manageCell:{},maxWidth:{},exports:{items:[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}],format:"csv"}}},methods:{exportTable:function(){location.href=this.downloadLink(this.exports.format)},downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={table_id:this.$route.params.table_id,format:t};return window.ninja_table_admin.rest.url+"/export/drag-and-drop?"+jQuery.param(e)},maximumWidth:function(t){return jQuery("td#"+t).attr("style").split(";")[1].split(" ")[2].split("px")[0]},end:function(t){t&&t.to.id&&(this.maxWidth=this.maximumWidth(t.to.id))},customClone:function(t){if(this.hasPro||!t.has_pro)return{id:this.id(),data:this.deepClone(t)};this.upgradeMessage()},handleClick:function(t,e){"responsiveness"===t.$options.propsData.name?""===this.deviceLastSelected?this.$emit("deviceSelected",""):this.$emit("deviceSelected",this.deviceLastSelected):this.$emit("deviceSelected",""),"options"!==t.$options.propsData.name&&window.ninjaTableBus.$emit("manageCell")},handleChange:function(t){""!==this.deviceLastSelected&&(this.deviceLastSelected="",this.$emit("deviceSelected",""))},handleDeviceClick:function(t,e){var n=t.$options.propsData.name;this.deviceActiveName=n,this.deviceLastSelected=n,this.$emit("deviceSelected",n)},handleChangeResponsive:function(t){"responsive_settings"===t&&"desktop"===this.deviceActiveName&&(this.deviceActiveName="tablet"),this.deviceLastSelected=this.deviceActiveName,this.$emit("deviceSelected",this.deviceActiveName)},accorDianChange:function(t){this.activeOption=t},manageRowColumns:function(){var t=this;window.ninjaTableBus.$on("manage-cell",(function(e){e.active?(t.manageCell=e,t.activeName=e.activeTab):t.closeCellEditing()}))},closeCellEditing:function(){this.manageCell=!1,this.activeName="elements",window.ninjaTableBus.$emit("manageCell")}},created:function(){var t=this;this.manageRowColumns(),window.ninjaTableBus.$on("closeManageCell",(function(){t.closeCellEditing()})),window.ninjaTableBus.$on("singleTdId",(function(e){t.maxWidth=t.maximumWidth(e)}))},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},enableResponsive:function(){var t=this.initialData.responsive.general.options.enable_responsive_table.value;return this.getBoolean(t)},showOptions:function(){return"options"===this.activeName},responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices},isDisableMobileBreakpoint:function(){var t=this.responsiveDevice.mobile.disable_breakpoint.value;return this.getBoolean(t)},isDisableTabletBreakpoint:function(){var t=this.responsiveDevice.tablet.disable_breakpoint.value;return this.getBoolean(t)}},watch:{singleItem:{handler:function(t,e){t?(this.activeOption="2"===this.activeOption?"2":"1",this.activeName="options",this.item=t.item):this.activeName="elements"},deep:!0},"initialData.settings.custom_css.value":{handler:function(t){if(t){var e=this.initialData.table_data.id,n="ninja_table_builder_custom_css_".concat(e);({type:"text/css",style:document.querySelector('style[data-id="'.concat(n,'"]'))||document.createElement("style"),content:t,append:function(){this.style.setAttribute("data-id",n),this.style.innerHTML=this.content,document.querySelector('style[data-id="'.concat(n,'"]'))||document.head.appendChild(this.style)}}).append()}},deep:!0},"initialData.settings.custom_js.value":{handler:function(t){var e=this.initialData.table_data.id,n="ninja_table_builder_custom_js_".concat(e);({type:"text/javascript",script:document.querySelector('script[data-id="'.concat(n,'"]'))||document.createElement("script"),content:t,append:function(){this.script.setAttribute("data-id",n),this.script.innerHTML=this.content,document.querySelector('script[data-id="'.concat(n,'"]'))||document.body.appendChild(this.script)}}).append()},deep:!0}}};var _s=n(4674),fs={insert:"head",singleton:!1};s()(_s.Z,fs);_s.Z.locals;var vs=a(hs,(function(){var t=this,e=t._self._c;return e("el-tabs",{staticClass:"ninja-tables-component",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.manageCell.active?t._e():e("el-tab-pane",{attrs:{label:t.$t("Elements"),name:"elements"}},t._l(t.initialData.components,(function(n,a){return e("el-collapse",{key:n.key,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},["container"!==n.key?e("el-collapse-item",{attrs:{title:n.name,name:a}},[e("el-row",{attrs:{gutter:20,align:"middle",justify:"center"}},[e("draggable",{attrs:{list:n.fields,group:{name:"people",pull:"clone",put:!1},clone:t.customClone},on:{end:t.end}},t._l(n.fields,(function(n,a){return e("el-col",{key:a,staticClass:"element-style",attrs:{span:12}},[e("el-badge",{staticClass:"item",attrs:{value:!t.hasPro&&n.has_pro?"Pro":""}},[e("el-button",{staticClass:"button-component",class:!t.hasPro&&n.has_pro?"pro-component":"",attrs:{disabled:!t.hasPro&&n.has_pro,size:"small",type:"default",plain:"",icon:null!==n.icon?n.icon:"el-icon-s-grid"}},[t._v(t._s(n.name)+"\n                ")])],1)],1)})),1)],1)],1):t._e()],1)})),1),t._v(" "),t.item&&t.item.data&&t.item.data.type&&!t.manageCell.active&&t.showOptions?e("el-tab-pane",{attrs:{label:t.$t("Options"),name:"options"}},[e("el-collapse",{staticClass:"accordions",attrs:{accordion:""},on:{change:t.accorDianChange},model:{value:t.activeOption,callback:function(e){t.activeOption=e},expression:"activeOption"}},[e("el-collapse-item",{attrs:{title:t.$t(t.ucWords(t.item.data.type)+" Options"),name:"1"}},["text"===t.item.data.type?e("text-option",{attrs:{item:t.item}}):"button"===t.item.data.type?e("button-option",{attrs:{item:t.item}}):"star_rating"===t.item.data.type?e("star-rating",{attrs:{item:t.item}}):"icon"===t.item.data.type?e("icon-option",{attrs:{item:t.item}}):"progress"===t.item.data.type?e("progress-option",{attrs:{item:t.item}}):"list"===t.item.data.type?e("list-option",{attrs:{item:t.item,settings:t.initialData.settings}}):"custom_html"===t.item.data.type?e("custom-html-option",{attrs:{item:t.item}}):"shortcode"===t.item.data.type?e("shortcode-option",{attrs:{item:t.item}}):"stylist_list"===t.item.data.type?e("stylist-list-option",{attrs:{item:t.item,settings:t.initialData.settings}}):"image"===t.item.data.type?e("image-option",{attrs:{item:t.item}}):"text_icon"===t.item.data.type?e("text-icon-option",{attrs:{item:t.item}}):"ribbon"===t.item.data.type?e("ribbon-option",{attrs:{item:t.item,maxWidth:t.maxWidth,settings:t.initialData.settings}}):t._e()],1),t._v(" "),"ribbon"!==t.item.data.type?e("el-collapse-item",{attrs:{title:t.$t("Spacing"),name:"2"}},[e("spacing-input",{attrs:{types:["margin","padding"],item:t.item}})],1):t._e()],1)],1):t._e(),t._v(" "),t.manageCell.active?t._e():e("el-tab-pane",{attrs:{label:t.$t("Settings"),name:"settings"}},[t._l(t.initialData.settings,(function(n,a){return e("el-collapse",{key:a,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{name:a}},[e("template",{slot:"title"},[t._v("\n          "+t._s(n.name)+"\n          "),"global_styling"===n.key||"sticky"===n.key||"ace_editor_js"===n.key?e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("template",{slot:"content"},[e("h3",[t._v(t._s(n.name))]),t._v(" "),"sticky"===n.key||"ace_editor_js"===n.key?e("p",[t._v("\n                This is a Pro feature.\n                "),e("get-pro")],1):e("p",[t._v("The global style will be applied if the "),e("br"),t._v(" component individual style is not applied.")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info",staticStyle:{"margin-left":"2px"}})],2):t._e()],1),t._v(" "),"ace_editor_css"==n.key?e("div",{staticClass:"ntb-ace-editor",staticStyle:{"margin-right":"3px"}},[e("label",[t._v("Add Your Custom CSS")]),t._v(" "),e("p",[t._v("\n            You may add "),e("code",[t._v(".ntb_"+t._s(t.initialData.table_data.id)+" ")]),t._v(" as your css selector prefix to target this specific table.\n          ")]),t._v(" "),e("ace_code_editor",{attrs:{editor_id:"ninja_custom_css",mode:"css"},model:{value:t.initialData.settings.custom_css.value,callback:function(e){t.$set(t.initialData.settings.custom_css,"value",e)},expression:"initialData.settings.custom_css.value"}}),t._v(" "),e("span",[t._v("Please don't include "),e("code",[t._v("<style></style>")]),t._v(" tag")])],1):"ace_editor_js"==n.key?e("div",{staticClass:"ntb-ace-editor",staticStyle:{"margin-right":"3px"}},[e("label",[t._v("Add Your Custom JS")]),t._v(" "),e("p",[t._v("\n              You may use "),e("code",[t._v(".ntb_"+t._s(t.initialData.table_data.id)+" ")]),t._v(" to target this specific table.\n            ")]),t._v(" "),e("ace_js_editor",{attrs:{editor_id:"ninja_custom_js",mode:"javascript"},model:{value:t.initialData.settings.custom_js.value,callback:function(e){t.$set(t.initialData.settings.custom_js,"value",e)},expression:"initialData.settings.custom_js.value"}}),t._v(" "),e("span",[t._v("Please don't include "),e("code",[t._v("<script><\/script>")]),t._v(" tag")])],1):t._l(n.options,(function(a,i,o){return e("div",{key:i,staticClass:"component-spacing"},[e("all-input-element",{attrs:{disableResponsive:t.getBoolean(!t.hasPro&&n.has_pro),item:a}}),t._v(" "),a.childs&&t.getBoolean(a.value)?[t._l(a.childs,(function(t,n,a){return[e("all-input-element",{key:n,staticClass:"component-spacing",attrs:{item:t}})]}))]:t._e()],2)}))],2)],1)})),t._v(" "),e("el-collapse",{staticClass:"accordions",on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{staticClass:"export",attrs:{title:t.$t("Export Table")}},[e("select-input",{attrs:{items:t.exports.items,label:t.$t("Select Format")},model:{value:t.exports.format,callback:function(e){t.$set(t.exports,"format",e)},expression:"exports.format"}}),t._v(" "),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.exportTable}},[t._v("Export")])],1)],1)],2),t._v(" "),t.manageCell.active?t._e():e("el-tab-pane",{attrs:{label:t.$t("Responsiveness"),name:"responsiveness"}},t._l(t.initialData.responsive,(function(n,a){return e("el-collapse",{key:a,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChangeResponsive},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{title:n.name,name:a}},t._l(n.options,(function(n,a){return e("div",{key:a,staticClass:"component-spacing"},[e("div","devices"===a?[e("el-tabs",{on:{"tab-click":t.handleDeviceClick},model:{value:t.deviceActiveName,callback:function(e){t.deviceActiveName=e},expression:"deviceActiveName"}},t._l(n,(function(n,a){return e("el-tab-pane",{key:a,attrs:{label:n.name,name:n.key}},t._l(n,(function(a,i,o){return"name"!=i&&"key"!=i?e("div",{key:i},[e("all-input-element",{staticClass:"component-spacing",attrs:{initialData:t.initialData,item:a,disableResponsive:!t.enableResponsive,mobileDisableBreakpoint:"mobile"===n.key&&t.isDisableMobileBreakpoint&&"disable_breakpoint"!==a.key,tabletDisableBreakpoint:"tablet"===n.key&&t.isDisableTabletBreakpoint&&"disable_breakpoint"!==a.key,deviceName:n.key}})],1):t._e()})),0)})),1)]:[e("all-input-element",{attrs:{item:n}})],1)])})),0)],1)})),1),t._v(" "),"cells"===t.manageCell.activeTab?e("el-tab-pane",{attrs:{label:t.$t("Manage cell"),name:"cells"}},[e("cell-setting",{attrs:{manageCell:t.manageCell,setting:t.initialData.settings}}),t._v(" "),e("el-button",{staticClass:"ntb-manage-button",attrs:{type:"primary"},on:{click:t.closeCellEditing}},[t._v(" "+t._s(t.$t("Close")))])],1):t._e(),t._v(" "),"background"===t.manageCell.activeTab?e("el-tab-pane",{attrs:{label:t.$t("Background"),name:"background"}},[e("background-color",{attrs:{manageCell:t.manageCell}}),t._v(" "),e("el-button",{staticClass:"ntb-manage-button",attrs:{type:"primary"},on:{click:t.closeCellEditing}},[t._v(" "+t._s(t.$t("Close")))])],1):t._e()],1)}),[],!1,null,null,null);const bs=a({name:"TableBuilderHome",data:function(){return{tableId:"",initialData:{},singleItem:{},selectedDevice:"",changeSomething:!1}},components:{TopNav:kl,LeftSideBar:vs.exports,RightSideBar:Jt},methods:{deviceSelected:function(t){this.selectedDevice=t},editItem:function(t){this.singleItem=t},addOrEditTable:function(){var t=this;this.$get("table-builder/".concat(this.$route.params.table_id),{id:this.$route.params.table_id}).then((function(e){t.initialData=e.data})).catch((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})}))}},mounted:function(){this.clipboard(),this.addOrEditTable()},beforeRouteLeave:function(t,e,n){this.changeSomething?window.confirm("Changes that you made may not be saved")?(n(),window.onbeforeunload=null):n(!1):n()},created:function(){var t=this;window.ninjaTableBus.$on("somethingChanged",(function(){t.changeSomething=!0,window.onbeforeunload=function(){return!0}})),window.ninjaTableBus.$on("saveData",(function(){t.changeSomething=!1,window.onbeforeunload=null}))}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja-table-dg-wrapper"},[e("div",{staticClass:"ninja_main_nav"},[e("top-nav",{attrs:{initialData:t.initialData,selectedDevice:t.selectedDevice,tableId:t.$route.params.table_id},on:{deviceSelected:t.deviceSelected}})],1),t._v(" "),e("el-row",{attrs:{align:"middle",gutter:20}},[e("el-col",{attrs:{xs:24,sm:10,md:9,lg:6,xl:6,id:"leftside"}},[e("left-side-bar",{attrs:{singleItem:t.singleItem,initialData:t.initialData,selectedDevice:t.selectedDevice},on:{deviceSelected:t.deviceSelected}})],1),t._v(" "),e("el-col",{attrs:{xs:24,sm:14,md:15,lg:18,xl:18}},[t.initialData?e("right-side-bar",{staticStyle:{height:"auto","padding-bottom":"25px"},attrs:{table:t.initialData.table,selectedDevice:t.selectedDevice,initialData:t.initialData,tableId:t.$route.params.table_id},on:{editItem:t.editItem}}):t._e()],1)],1)],1)}),[],!1,null,null,null).exports;var gs=[{path:"/",component:u,props:!0,children:[{path:"home",name:"home",component:ue},{path:"/tools",component:de,children:[{path:"",name:"import_tables",component:fe},{path:"default_table_appearance",name:"default_table_appearance",component:Se},{path:"permission",name:"permission",component:ye},{path:"licensing",name:"licensing",component:De},{path:"global_settings",name:"global_settings",component:Ie}]},{path:"/help",name:"help",component:el}]},{path:"/tables/:table_id",component:Ye,props:!0,children:[{path:"",name:"data_items",component:xo},{path:"columns",name:"data_columns",component:qo},{path:"design_studio",name:"design_studio",component:wl},{path:"additional_css",name:"additional_css",component:ml},{path:"import-export",name:"import-export",component:Xo},{path:"table_editing",name:"table_editing",component:xl}]},{path:"/charts",component:Ne,props:!0},{path:"/table_builder_edit_table/:table_id",name:"table_builder_edit_table",component:bs,props:!0},{path:"/table_builder_add_table",name:"table_builder_add_table",component:bs,props:!0}];const ys={name:"TableApp",components:{GetPro:i},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()}};var ws=n(8514),xs={insert:"head",singleton:!1};s()(ws.Z,xs);ws.Z.locals;const ks=a(ys,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[t._l(t.admin_notices,(function(n,a){return e("el-alert",{key:a,attrs:{type:n.type,closable:n.closable,effect:"dark"}},[e("div",{domProps:{innerHTML:t._s(n.message)}})])})),t._v(" "),e("router-view"),t._v(" "),e("div",{staticClass:"pro_feature_dialog"},[e("el-dialog",{attrs:{title:"NinjaTable Pro Features",visible:t.addVisible},on:{"update:visible":function(e){t.addVisible=e}}},[e("div",{staticClass:"add_content"},[e("ul",{staticClass:"list_features"},[e("li",[t._v("Use Unlimited Colors in Your Tables")]),t._v(" "),e("li",[t._v("Add Media to Your Table Cells")]),t._v(" "),e("li",[t._v("Drag and Drop Table Data Sorting")]),t._v(" "),e("li",[t._v("Use Advanced Date Sorting")]),t._v(" "),e("li",[t._v("Colspan/Cell Merging Feature")]),t._v(" "),e("li",[t._v("Create Custom Filter UI in Table")]),t._v(" "),e("li",[t._v("Use Shortcode in your table cell")]),t._v(" "),e("li",[t._v("Use Advanced Data Filtering")]),t._v(" "),e("li",[t._v("Use Advanced Customization Features")]),t._v(" "),e("li",[t._v("Get VIP Support for any Issue")]),t._v(" "),e("li",[t._v("Incremental New Premium Features")]),t._v(" "),e("li",[t._v("And Many More feature")])])]),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("get-pro")],1)])],1),t._v(" "),"nope"==t.integrity?e("div",{staticStyle:{"margin-top":"90px",color:"rgb(236, 62, 62)","font-size":"16px","margin-bottom":"30px"}},[e("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 "),e("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)}),[],!1,null,null,null).exports;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,$del:window.NINJATABLE.$del,$put:window.NINJATABLE.$put,$patch:window.NINJATABLE.$patch,$getJSON:window.NINJATABLE.$getJSON,clipboard:function(){var t=this;window.clipboard||(window.clipboard=new(e())(".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 Cs=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",gs),linkActiveClass:"active"});ks.router=Cs,window.ninjaApp=new window.NINJATABLE.Vue(ks).$mount("#data-tables-app")})()})();

Copyright © 2019 by b0y-101