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

Version Description

Download this release

Release Info

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

Code changes from version 3.4.3 to 3.4.5

admin/NinjaTablesAdmin.php CHANGED
@@ -393,6 +393,7 @@ class NinjaTablesAdmin
393
  'update_button_settings' => 'updateButtonSettings',
394
  'get_global_settings' => 'getGlobalSettings',
395
  'update_global_settings' => 'updateGlobalSettings',
 
396
  );
397
 
398
  $importRoutes = array(
@@ -947,7 +948,11 @@ class NinjaTablesAdmin
947
  foreach ($data as $item) {
948
  $temp = array();
949
  foreach ($header as $accessor => $name) {
950
- $temp[] = $item[$accessor];
 
 
 
 
951
  }
952
  array_push($exportData, $temp);
953
  }
@@ -1558,12 +1563,20 @@ class NinjaTablesAdmin
1558
  $key = get_network_option(get_main_network_id(), '_ninjatables_pro_license_key');
1559
  }
1560
  $length = strlen($key);
1561
- if ($length < 30 || $length > 34) {
1562
- return 'nope';
1563
  }
1564
  }
1565
  }
1566
- return 'valid';
1567
  }
1568
 
 
 
 
 
 
 
 
 
1569
  }
393
  'update_button_settings' => 'updateButtonSettings',
394
  'get_global_settings' => 'getGlobalSettings',
395
  'update_global_settings' => 'updateGlobalSettings',
396
+ 'clear_tables_cache' => 'clearTablesCache'
397
  );
398
 
399
  $importRoutes = array(
948
  foreach ($data as $item) {
949
  $temp = array();
950
  foreach ($header as $accessor => $name) {
951
+ $value = \NinjaTables\Classes\ArrayHelper::get($item, $accessor);
952
+ if(is_array($value)) {
953
+ $value = implode(', ', $value);
954
+ }
955
+ $temp[] = $value;
956
  }
957
  array_push($exportData, $temp);
958
  }
1563
  $key = get_network_option(get_main_network_id(), '_ninjatables_pro_license_key');
1564
  }
1565
  $length = strlen($key);
1566
+ if ( $length < 20 ) {
1567
+ return apply_filters('ninja_table_integrity', 'nope');
1568
  }
1569
  }
1570
  }
1571
+ return apply_filters('ninja_table_integrity', 'valid');
1572
  }
1573
 
1574
+
1575
+ public function clearTablesCache()
1576
+ {
1577
+ ninja_table_clear_all_cache();
1578
+ wp_send_json_success(array(
1579
+ 'message' => __('All Cache successfully cleared', 'ninja_tables')
1580
+ ), 200);
1581
+ }
1582
  }
assets/css/ninja-tables-admin.css CHANGED
@@ -1 +1 @@
1
- .ninja_main_nav{display:block;width:100%;overflow:hidden;border-bottom:1px solid #ddd;background:#fff;margin:-20px -20px 0;padding:20px 20px 0}.ninja_main_nav span.plugin-name{font-size:16px;color:#6e6e6e;margin-right:30px}.ninja_main_nav .ninja-tab{padding:10px;display:inline-block;text-decoration:none;color:#000;font-size:15px;line-height:16px;margin-right:15px;border-bottom:2px solid transparent}.ninja_main_nav .ninja-tab:focus{-webkit-box-shadow:none;box-shadow:none}.ninja_main_nav .ninja-tab.ninja-tab-active{font-weight:700;border-bottom:2px solid #ffd65b}.ninja_main_nav .ninja-tab.buy_pro_tab{background:#e04f5e;padding:10px 25px;color:#fff}.pageLoading{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:150px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pageLoading .fooicon{font-size:20px}.btn-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.btn-flex .fooicon{margin-left:5px}h4{margin-bottom:0;font-size:18px}a.btn{text-decoration:none}.modal-open .modal{z-index:1000}label.form_group{padding-top:5px;padding-left:10px}.editr--toolbar .dashboard{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .5rem}.editr--toolbar .dashboard .dropzone{max-height:86px;min-height:50px!important;background:#f6f6f6}.compact .cell{height:28px;-ms-text-overflow:ellipsis!important}.compact .cell,.compact .cell *{text-overflow:ellipsis!important;overflow:hidden;white-space:nowrap}.compact .cell *{margin:0;padding:0;font-size:14px}.cell .cell-content img{max-width:100%;height:auto}.paginate{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:25px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:2px solid #ccc;padding-bottom:8px}.btn.pag-btn{background:#b2ccda;color:#fff}.btn.pag-btn:hover{opacity:.9}.btn.pag-btn:focus,.btn.pag-btn:hover{color:#fff;outline:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.text-right{text-align:right}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder,.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}.input-group{display:table;position:relative}.input-group .form-control,.input-group .input-btn{display:table-cell;vertical-align:middle}.input-group .form-control{float:left;border-bottom-right-radius:0;border-top-right-radius:0}.input-group .input-btn{width:1%}.input-group .input-btn .btn{border-bottom-left-radius:0;border-top-left-radius:0}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:after,.nav:before{display:table;content:" "}.nav:after{clear:both}.nav>li,.nav>li>a{position:relative;display:block}.nav>li>a{padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0;text-decoration:none}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li>a:focus{-webkit-box-shadow:none;box-shadow:none}.nav-tabs>li.router-link-exact-active>a,.nav-tabs>li.router-link-exact-active>a:focus,.nav-tabs>li.router-link-exact-active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.tab-content>.tab-pane{padding:20px 0}.form-group{margin-bottom:15px}.table-title{font-size:18px;margin-bottom:0}.table_data_press .help{font-size:90%;color:gray;font-weight:300}.row_full{overflow:hidden}.row_full .pull-left{float:left}.search_action{position:relative;margin-top:0;padding-top:0}.search_action input{width:98%;font-size:95%;padding-right:30px}.search_action i{position:absolute;right:8px;top:10px;font-size:16px}.tablenav{clear:both;height:auto;margin:6px 0 4px;vertical-align:middle;overflow:hidden;display:block}.tablenav .form_group{padding-top:0;padding-bottom:0;margin-bottom:0;margin-top:0}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{-webkit-box-shadow:none;box-shadow:none}ul.doc_items{margin-left:45px}ul.doc_items li{font-size:14px;margin-bottom:10px;list-style:disc}ul.doc_items li a{text-decoration:none}.el-aside{background-color:#535c63;color:#333;line-height:200px}.el-main{background-color:#fff;color:#000;min-height:70vh;padding:15px}.el-menu-item.is-active{background-color:#434a50!important;color:#fff!important}.ninja_header{padding-bottom:15px;border-bottom:1px solid #eae7e7;background:#fbfdff}.ninja_content{display:block;position:relative;width:100%}.ninja_content .ninja_suggest{overflow:hidden;display:block;background:#e5e5e5;padding:20px 10px;color:#000;font-size:18px;margin:10px 0}.ninja_content .ninja_suggest p{font-size:16px;padding:0;margin:0}.ninja_content .ninja_block p{font-size:16px}.ninja_content .ninja_export_block{display:block;margin-top:25px}.ninja_content .ninja_block_section{margin:20px 0}.ninja_suggest_plugin{margin:0 0 20px;padding:20px;position:relative;background:#fff;-webkit-box-shadow:0 0 5px 5px rgba(0,0,0,.05);box-shadow:0 0 5px 5px rgba(0,0,0,.05);overflow:hidden;width:96%;margin-top:40px}.ninja_suggest_plugin .ninja_dismiss{position:absolute;right:10px;top:5px;cursor:pointer}.ninja_suggest_plugin .ninja_form_banner{width:35%;float:left;padding-right:3%;margin:-20px 0 -24px -20px}@media (max-width:768px){.ninja_suggest_plugin .ninja_form_banner{width:100%;margin:0;padding-right:0;float:none;display:block;margin-bottom:10px}}.ninja_suggest_plugin .ninja_form_banner img{max-width:100%}.ninja_doc_top_blocks{display:block;width:100%;position:relative;margin-bottom:20px;overflow:hidden}.ninja_doc_top_blocks>*{-webkit-box-sizing:border-box;box-sizing:border-box}.ninja_doc_top_blocks .block_1_3{width:33.33%;float:left;padding-right:30px;margin-bottom:30px}@media (max-width:768px){.ninja_doc_top_blocks .block_1_3{width:100%;float:none;padding-right:0;margin-bottom:30px}}.ninja_doc_top_blocks .ff_block .ff_block_box{padding:15px;background:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.05);box-shadow:0 0 5px rgba(0,0,0,.05);border-radius:4px}.ninja_doc_top_blocks .ff_block .ff_block_box img.block_icon{max-height:62px}.ninja_doc_top_blocks .ff_block .ff_block_box ul{list-style:disc;margin-left:20px}.ninja_doc_top_blocks .ff_block .ff_block_box ul li a{font-size:14px;text-decoration:none;line-height:22px}.pro_feature_dialog .el-dialog{background:#fdf5f5}.pro_feature_dialog .el-dialog__body{padding-top:0}.pro_feature_dialog .buy_now_button{text-decoration:none;font-size:20px;padding:10px 25px}.pro_feature_dialog .list_features{margin-left:45px;list-style:disc;font-size:18px}.section_block{margin-bottom:20px;display:block;width:100%;overflow:hidden}.section_card{width:48%;float:left;padding:5px 10px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;margin-right:2%;cursor:pointer;position:relative;border:3px solid #ccc}.section_card h4{margin-top:10px}.section_card.expand_card{width:30%;min-height:120px;padding:5px 10px}.section_card .selected_ribbon{position:absolute;right:0;top:0;padding:5px 15px;background:#4caf50;color:#fff;font-weight:700}.section_card.selected_type{border:5px solid #4caf50;background:#f6fff7}.clearfix:after{display:block;content:"";clear:both}.language_block .form_group{margin-bottom:20px}.language_block .form_group:last-child{margin-bottom:0}.language_block .form_group label{display:block}.language_block .form_group input{height:32px;padding:5px 10px;min-width:400px}.text-warning{color:#e6a23c}.actions a{cursor:pointer}.card_block{overflow:hidden;display:block;width:100%}.ninja_section_block{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:0;width:100%;display:block;margin-top:0}.ninja_section_block .ninja_section_block_header{padding:12px 20px;border-bottom:2px solid #e8e4e4;border-top:2px solid #e8e4e4;cursor:pointer}.ninja_section_block .ninja_section_block_header h3{margin:0;display:inline-block}.ninja_section_block .ninja_section_block_header .ninja_header_action{display:inline-block;float:right}.ninja_section_block .ninja_section_block_header .ninja_header_action span{cursor:pointer}.ninja_section_block .ninja_section_block_body{padding:10px 20px 20px;background:#fafafa}.ninja_section_block .ninja_section_block_body.ninja_section_hide{display:none}ul.ninja_render_features li{display:inline-block;margin-right:10px;list-style:none}ul.ninja_render_features li span{color:#4caf4f}.ninja_settings_blocks,.ninja_settings_blocks .ninja_save_button{margin-top:20px}.loading-wrapper{padding:10px;background:#fff}.text-center{text-align:center}.ninja_sidebar{margin-top:10px}.add_column_wrapper{padding:0 10px}.ninja_widget{display:block;overflow:hidden;padding:15px 10px;background:#f9f9f9;margin-bottom:15px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.ninja_widget .title{margin:-15px -10px 0;border-bottom:1px solid #f1f1f1;font-size:14px;padding:8px 12px;line-height:1.4;background:#434d53;color:#fff}.ninja_widget .widget_body{padding-top:10px}.ninja_widget .button-block{width:100%}.pull-right{float:right}.section_widget .heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;overflow:hidden;padding:10px 0}.section_widget .heading .title{float:left;padding:0;margin:0}.section_widget .heading .inline_action{float:right}.section_widget .widget_body{background:#fff;padding:0}.drawer{display:block;border-bottom:1px solid #434a50}.drawer .drawer_body{padding:10px;display:none}.drawer .header{padding:15px 10px;background:#535c63;color:#fff;font-size:17px}.drawer .header .edit_icon{float:right;font-size:12px;cursor:pointer}.drawer .header .handle{cursor:move;font-size:20px;margin-right:5px}.form_group{overflow:hidden;margin-bottom:10px;padding-right:2px}.form_group>label{display:block}.form_group .form_control{display:block;width:100%}.form_group .normalLabel{display:initial;font-weight:400}.form_group .mt5{margin-top:5px}.section-container{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.section-column-9{-webkit-box-flex:2;-ms-flex:2;flex:2;padding:10px}.section-column-3{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:480px){.section-container{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-orient:vertical;-ms-flex-orient:vertical;-webkit-orient:vertical;orient:vertical}.section-column-9{-webkit-box-ordinal-group:1;-ms-flex-order:1;order:1}.section-column-3{-webkit-box-ordinal-group:2;-ms-flex-order:2;order:2}}.section-column:first-child{margin-right:20px}.tooltip{display:block!important;padding:4px;z-index:10000}.tooltip .tooltip-inner{background:#000;color:#fff;border-radius:16px;padding:5px 10px 4px}.tooltip .tooltip-arrow{display:none}.tooltip[aria-hidden=true]{visibility:hidden;opacity:0;-webkit-transition:opacity .15s,visibility .15s;transition:opacity .15s,visibility .15s}.tooltip[aria-hidden=false]{visibility:visible;opacity:1;-webkit-transition:opacity .15s;transition:opacity .15s}.help_section{margin-top:45px!important}.ninja_widget label{font-weight:400}.ninja_style_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ninja_style_wrapper .ninja_column{-webkit-box-flex:1;-ms-flex:1 100%;flex:1 100%}.ninja_style_wrapper .ninja_column:first-child{margin-right:15px}.ninja_style_wrapper .ninja_column:last-child{margin-left:15px}.ninja_color_blocks{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin-bottom:10px}.ninja_color_blocks .ninja_color_block{-webkit-box-flex:1;-ms-flex:1 100%;flex:1 100%;text-align:center;padding:10px 5px;border:1px solid #cacaca;background:snow}.ninja_color_blocks .ninja_color_block .form_group{margin:0}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker{width:100%;height:30px}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker .el-color-picker__trigger{min-width:100px;height:30px}.ninja_color_blocks .ninja_color_block label{padding:0;margin:0;font-size:11px}.form_group.ninja_color_customization h4{display:block;overflow:hidden;margin-top:0}.ninja_inner_title{margin:0 0 10px;font-size:15px;color:#636060}.ninja_header{overflow:hidden;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ninja_header h2{display:inline-block;margin:0}.ninja_header .ninja_actions_action{float:right}.ninja_design_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:20px;background:#fff}.ninja_design_wrapper .design_controls{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#e5e5e5;margin:0 0 -20px;border-left:1px solid #e5e5e5}.ninja_design_wrapper .design_controls .form_group:not(:last-child){border-bottom:1px solid hsla(0,0%,90%,.45);padding-bottom:10px}.ninja_design_wrapper .design_controls .el-collapse-item__header{padding:0 0 0 15px}.ninja_design_wrapper .design_controls .el-collapse-item__header i{font-weight:700;padding-top:18px}.ninja_design_wrapper .design_controls .el-collapse-item__wrap{padding:13px 15px 0;background:#e5e5e5;height:auto;overflow:scroll}.ninja_design_wrapper .design_controls .el-radio-button--mini .el-radio-button__inner{padding:7px!important}.ninja_design_wrapper .design_preview{background:#fff;padding:10px 20px;-webkit-box-flex:2;-ms-flex:2;flex:2;min-height:800px;overflow:scroll}.ninja_title_section .ninja_title,.ninja_title_section .ninja_title h3{display:inline-block}.ninja_title_section button{float:right;margin-top:10px}.ninja_switch_wrapper{margin:20px 0}.ninja_mini{padding:2px 7px;color:#0073aa;font-size:10px}.ninja_resp_tabs span.dashicons{font-size:13px;width:15px;height:10px}input.form-control::-webkit-input-placeholder{color:#ddd}input.form-control:-ms-input-placeholder,input.form-control::-ms-input-placeholder{color:#ddd}input.form-control::placeholder{color:#ddd}.search_action input::-webkit-input-placeholder{color:#969292}.search_action input:-ms-input-placeholder,.search_action input::-ms-input-placeholder{color:#969292}.search_action input::placeholder{color:#969292}.upgrade_box{text-align:center;margin-top:10px}.upgrade_box a{text-decoration:none}.upgrade_box a i{margin-top:-5px;font-size:20px;height:10px}.ninja_upgrade_bar{margin:-10px -20px 0;background:#f35a59;padding:10px 20px;overflow:hidden;color:#fff}.ninja_upgrade_bar a{color:#f35a59;font-weight:700;padding:5px 15px;border-radius:5px;text-decoration:none;background:#fff;border:1px solid #fff}.ninja_upgrade_bar a:hover{color:#fff;background-color:#f35a59;border:1px solid #fff;-webkit-transition:background-color .3s ease;transition:background-color .3s ease}.ninja_btn{text-decoration:none}.label-normalize label{font-weight:400}.ninja_design_tips{color:red;padding:10px;background:#fff;border:1px solid red}.ninja_design_tips ul.ninja_design_tips_lists{margin:0}.el-checkbox-group{overflow:hidden;width:100%}.el-checkbox-group label.el-checkbox{display:inline-block;margin-left:0;margin-right:20px}.el-dialog__wrapper{background:rgba(0,0,0,.55);z-index:9999!important}.ninja_modal-body h3{margin:0}.handle{cursor:move}.el-color-dropdown.el-color-picker__panel,.el-select-dropdown.el-popper{z-index:999999!important}.no_padding_body .el-dialog__body{padding-top:0}.ninja_table_inline_upgrade{padding:20px;margin-bottom:20px;background:#feffb3}.ninja_instruction{padding:10px 15px;background:#e5ffe7;margin-top:20px}.ninja_instruction ul{margin-left:30px;list-style:disc;font-size:110%}.ninja_instruction p{margin:3px 0}h2.nav-tab-wrapper{margin-bottom:15px!important}.doc_link{text-decoration:none;font-size:14px;color:gray}.form_row_full{display:block;overflow:hidden;width:100%}.form_row_full .form_row_half{width:48%;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:4%;float:left;display:block}.form_row_full .form_row_half>label{display:block}.form_row_full .form_row_half:last-child{padding-right:0}.el-tooltip__popper h3,.el-tooltip__popper p{margin:0;padding:0}.el-main-editing{background-color:#fff;min-height:70vh;padding:15px 25px;display:block;overflow:auto}.el-main-editing .ninja_header_editing{display:block;overflow:hidden;margin:-15px -25px 20px;padding:10px 25px;border-bottom:1px solid #eae7e7;background:#fbfdff}.el-main-editing .ninja_header_editing h2{margin:0;padding:0;float:left;line-height:30px}.el-main-editing .ninja_header_editing .heading_actions{float:right}.el-main-editing .editing_sub_section{display:block;margin-bottom:40px}.el-main-editing .editing_sub_section .ninja_section_block_header{border-bottom:1px solid #f1f1f1;margin-bottom:20px}.el-main-editing .editing_sub_section .ninja_section_block_header>h3{margin:0}.el-main-editing .editing_sub_section .ninja_section_block_header p{margin:5px 0 10px}.el-main-editing .editing_body{display:block;overflow:hidden;width:100%}.el-main-editing table.ninja_editing_table th{font-weight:500}.el-main-editing table.ninja_editing_table tr td,.el-main-editing table.ninja_editing_table tr th{border-bottom:1px solid #eaeaea!important}.el-radio-group.spaced{max-width:100%;position:relative}.el-radio-group.spaced>label{display:inline-block}.el-radio-group.spaced_new_line>label{display:block;margin-left:0!important;margin-bottom:10px}.nt_suggest{padding:10px;background:#eee;margin-top:20px;border-radius:5px}.nt_suggest h4{margin:0}.nt_suggest ul{margin-left:30px}.nt_suggest ul li{list-style:disc}
1
+ .ninja_main_nav{display:block;width:100%;overflow:hidden;border-bottom:1px solid #ddd;background:#fff;margin:-20px -20px 0;padding:20px 20px 0}.ninja_main_nav span.plugin-name{font-size:16px;color:#6e6e6e;margin-right:30px}.ninja_main_nav .ninja-tab{padding:10px;display:inline-block;text-decoration:none;color:#000;font-size:15px;line-height:16px;margin-right:15px;border-bottom:2px solid transparent}.ninja_main_nav .ninja-tab:focus{-webkit-box-shadow:none;box-shadow:none}.ninja_main_nav .ninja-tab.ninja-tab-active{font-weight:700;border-bottom:2px solid #ffd65b}.ninja_main_nav .ninja-tab.buy_pro_tab{background:#e04f5e;padding:10px 25px;color:#fff}.pageLoading{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:150px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pageLoading .fooicon{font-size:20px}.btn-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.btn-flex .fooicon{margin-left:5px}h4{margin-bottom:0;font-size:18px}a.btn{text-decoration:none}.modal-open .modal{z-index:1000}label.form_group{padding-top:5px;padding-left:10px}.editr--toolbar .dashboard{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .5rem}.editr--toolbar .dashboard .dropzone{max-height:86px;min-height:50px!important;background:#f6f6f6}.compact .cell{height:28px;-ms-text-overflow:ellipsis!important}.compact .cell,.compact .cell *{text-overflow:ellipsis!important;overflow:hidden;white-space:nowrap}.compact .cell *{margin:0;padding:0;font-size:14px}.cell .cell-content img{max-width:100%;height:auto}.paginate{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:25px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:2px solid #ccc;padding-bottom:8px}.btn.pag-btn{background:#b2ccda;color:#fff}.btn.pag-btn:hover{opacity:.9}.btn.pag-btn:focus,.btn.pag-btn:hover{color:#fff;outline:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.text-right{text-align:right}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder,.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}.input-group{display:table;position:relative}.input-group .form-control,.input-group .input-btn{display:table-cell;vertical-align:middle}.input-group .form-control{float:left;border-bottom-right-radius:0;border-top-right-radius:0}.input-group .input-btn{width:1%}.input-group .input-btn .btn{border-bottom-left-radius:0;border-top-left-radius:0}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:after,.nav:before{display:table;content:" "}.nav:after{clear:both}.nav>li,.nav>li>a{position:relative;display:block}.nav>li>a{padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0;text-decoration:none}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li>a:focus{-webkit-box-shadow:none;box-shadow:none}.nav-tabs>li.router-link-exact-active>a,.nav-tabs>li.router-link-exact-active>a:focus,.nav-tabs>li.router-link-exact-active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.tab-content>.tab-pane{padding:20px 0}.form-group{margin-bottom:15px}.table-title{font-size:18px;margin-bottom:0}.table_data_press .help{font-size:90%;color:gray;font-weight:300}.row_full{overflow:hidden}.row_full .pull-left{float:left}.search_action{position:relative;margin-top:0;padding-top:0}.search_action input{width:98%;font-size:95%;padding-right:30px}.search_action i{position:absolute;right:8px;top:10px;font-size:16px}.tablenav{clear:both;height:auto;margin:6px 0 4px;vertical-align:middle;overflow:hidden;display:block}.tablenav .form_group{padding-top:0;padding-bottom:0;margin-bottom:0;margin-top:0}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{-webkit-box-shadow:none;box-shadow:none}ul.doc_items{margin-left:45px}ul.doc_items li{font-size:14px;margin-bottom:10px;list-style:disc}ul.doc_items li a{text-decoration:none}.el-aside{background-color:#535c63;color:#333;line-height:200px}.el-main{background-color:#fff;color:#000;min-height:70vh;padding:15px}.el-menu-item.is-active{background-color:#434a50!important;color:#fff!important}.ninja_header{padding-bottom:15px;border-bottom:1px solid #eae7e7;background:#fbfdff}.ninja_content{display:block;position:relative;width:100%}.ninja_content .ninja_suggest{overflow:hidden;display:block;background:#e5e5e5;padding:20px 10px;color:#000;font-size:18px;margin:10px 0}.ninja_content .ninja_suggest p{font-size:16px;padding:0;margin:0}.ninja_content .ninja_block p{font-size:16px}.ninja_content .ninja_export_block{display:block;margin-top:25px}.ninja_content .ninja_block_section{margin:20px 0}.ninja_suggest_plugin{margin:0 0 20px;padding:20px;position:relative;background:#fff;-webkit-box-shadow:0 0 5px 5px rgba(0,0,0,.05);box-shadow:0 0 5px 5px rgba(0,0,0,.05);overflow:hidden;width:96%;margin-top:40px}.ninja_suggest_plugin .ninja_dismiss{position:absolute;right:10px;top:5px;cursor:pointer}.ninja_suggest_plugin .ninja_form_banner{width:35%;float:left;padding-right:3%;margin:-20px 0 -24px -20px}@media (max-width:768px){.ninja_suggest_plugin .ninja_form_banner{width:100%;margin:0;padding-right:0;float:none;display:block;margin-bottom:10px}}.ninja_suggest_plugin .ninja_form_banner img{max-width:100%}.ninja_doc_top_blocks{display:block;width:100%;position:relative;margin-bottom:20px;overflow:hidden}.ninja_doc_top_blocks>*{-webkit-box-sizing:border-box;box-sizing:border-box}.ninja_doc_top_blocks .block_1_3{width:33.33%;float:left;padding-right:30px;margin-bottom:30px}@media (max-width:768px){.ninja_doc_top_blocks .block_1_3{width:100%;float:none;padding-right:0;margin-bottom:30px}}.ninja_doc_top_blocks .ff_block .ff_block_box{padding:15px;background:#fff;-webkit-box-shadow:0 0 5px rgba(0,0,0,.05);box-shadow:0 0 5px rgba(0,0,0,.05);border-radius:4px}.ninja_doc_top_blocks .ff_block .ff_block_box img.block_icon{max-height:62px}.ninja_doc_top_blocks .ff_block .ff_block_box ul{list-style:disc;margin-left:20px}.ninja_doc_top_blocks .ff_block .ff_block_box ul li a{font-size:14px;text-decoration:none;line-height:22px}.pro_feature_dialog .el-dialog{background:#fdf5f5}.pro_feature_dialog .el-dialog__body{padding-top:0}.pro_feature_dialog .buy_now_button{text-decoration:none;font-size:20px;padding:10px 25px}.pro_feature_dialog .list_features{margin-left:45px;list-style:disc;font-size:18px}.section_block{margin-bottom:20px;display:block;width:100%;overflow:hidden}.section_card{width:48%;float:left;padding:5px 10px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;margin-right:2%;cursor:pointer;position:relative;border:3px solid #ccc}.section_card h4{margin-top:10px}.section_card.expand_card{width:30%;min-height:120px;padding:5px 10px}.section_card .selected_ribbon{position:absolute;right:0;top:0;padding:5px 15px;background:#4caf50;color:#fff;font-weight:700}.section_card.selected_type{border:5px solid #4caf50;background:#f6fff7}.clearfix:after{display:block;content:"";clear:both}.language_block .form_group{margin-bottom:20px}.language_block .form_group:last-child{margin-bottom:0}.language_block .form_group label{display:block}.language_block .form_group input{height:32px;padding:5px 10px;min-width:400px}.text-warning{color:#e6a23c}.actions a{cursor:pointer}.card_block{overflow:hidden;display:block;width:100%}.ninja_section_block{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:0;width:100%;display:block;margin-top:0}.ninja_section_block .ninja_section_block_header{padding:12px 20px;border-bottom:2px solid #e8e4e4;border-top:2px solid #e8e4e4;cursor:pointer}.ninja_section_block .ninja_section_block_header h3{margin:0;display:inline-block}.ninja_section_block .ninja_section_block_header .ninja_header_action{display:inline-block;float:right}.ninja_section_block .ninja_section_block_header .ninja_header_action span{cursor:pointer}.ninja_section_block .ninja_section_block_body{padding:10px 20px 20px;background:#fafafa}.ninja_section_block .ninja_section_block_body.ninja_section_hide{display:none}ul.ninja_render_features li{display:inline-block;margin-right:10px;list-style:none}ul.ninja_render_features li span{color:#4caf4f}.ninja_settings_blocks,.ninja_settings_blocks .ninja_save_button{margin-top:20px}.loading-wrapper{padding:10px;background:#fff}.text-center{text-align:center}.ninja_sidebar{margin-top:10px}.add_column_wrapper{padding:0 10px}.ninja_widget{display:block;overflow:hidden;padding:15px 10px;background:#f9f9f9;margin-bottom:15px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.ninja_widget .title{margin:-15px -10px 0;border-bottom:1px solid #f1f1f1;font-size:14px;padding:8px 12px;line-height:1.4;background:#434d53;color:#fff}.ninja_widget .widget_body{padding-top:10px}.ninja_widget .button-block{width:100%}.pull-right{float:right}.section_widget .heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;overflow:hidden;padding:10px 0}.section_widget .heading .title{float:left;padding:0;margin:0}.section_widget .heading .inline_action{float:right}.section_widget .widget_body{background:#fff;padding:0}.drawer{display:block;border-bottom:1px solid #434a50}.drawer .drawer_body{padding:10px;display:none}.drawer .header{padding:15px 10px;background:#535c63;color:#fff;font-size:17px}.drawer .header .edit_icon{float:right;font-size:12px;cursor:pointer}.drawer .header .handle{cursor:move;font-size:20px;margin-right:5px}.form_group{overflow:hidden;margin-bottom:10px;padding-right:2px}.form_group>label{display:block}.form_group .form_control{display:block;width:100%}.form_group .normalLabel{display:initial;font-weight:400}.form_group .mt5{margin-top:5px}.section-container{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.section-column-9{-webkit-box-flex:2;-ms-flex:2;flex:2;padding:10px}.section-column-3{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:480px){.section-container{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-orient:vertical;-ms-flex-orient:vertical;-webkit-orient:vertical;orient:vertical}.section-column-9{-webkit-box-ordinal-group:1;-ms-flex-order:1;order:1}.section-column-3{-webkit-box-ordinal-group:2;-ms-flex-order:2;order:2}}.section-column:first-child{margin-right:20px}.tooltip{display:block!important;padding:4px;z-index:10000}.tooltip .tooltip-inner{background:#000;color:#fff;border-radius:16px;padding:5px 10px 4px}.tooltip .tooltip-arrow{display:none}.tooltip[aria-hidden=true]{visibility:hidden;opacity:0;-webkit-transition:opacity .15s,visibility .15s;transition:opacity .15s,visibility .15s}.tooltip[aria-hidden=false]{visibility:visible;opacity:1;-webkit-transition:opacity .15s;transition:opacity .15s}.help_section{margin-top:45px!important}.ninja_widget label{font-weight:400}.ninja_style_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ninja_style_wrapper .ninja_column{-webkit-box-flex:1;-ms-flex:1 100%;flex:1 100%}.ninja_style_wrapper .ninja_column:first-child{margin-right:15px}.ninja_style_wrapper .ninja_column:last-child{margin-left:15px}.ninja_color_blocks{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin-bottom:10px}.ninja_color_blocks .ninja_color_block{-webkit-box-flex:1;-ms-flex:1 100%;flex:1 100%;text-align:center;padding:10px 5px;border:1px solid #cacaca;background:snow}.ninja_color_blocks .ninja_color_block .form_group{margin:0}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker{width:100%;height:30px}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker .el-color-picker__trigger{min-width:100px;height:30px}.ninja_color_blocks .ninja_color_block label{padding:0;margin:0;font-size:11px}.form_group.ninja_color_customization h4{display:block;overflow:hidden;margin-top:0}.ninja_inner_title{margin:0 0 10px;font-size:15px;color:#636060}.ninja_header{overflow:hidden;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ninja_header h2{display:inline-block;margin:0}.ninja_header .ninja_actions_action{float:right}.ninja_design_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:20px;background:#fff}.ninja_design_wrapper .design_controls{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#e5e5e5;margin:0 0 -20px;border-left:1px solid #e5e5e5}.ninja_design_wrapper .design_controls .form_group:not(:last-child){border-bottom:1px solid hsla(0,0%,90%,.45);padding-bottom:10px}.ninja_design_wrapper .design_controls .el-collapse-item__header{padding:0 0 0 15px}.ninja_design_wrapper .design_controls .el-collapse-item__header i{font-weight:700;padding-top:18px}.ninja_design_wrapper .design_controls .el-collapse-item__wrap{padding:13px 15px 0;background:#e5e5e5;height:auto;overflow:scroll}.ninja_design_wrapper .design_controls .el-radio-button--mini .el-radio-button__inner{padding:7px!important}.ninja_design_wrapper .design_preview{background:#fff;padding:10px 20px;-webkit-box-flex:2;-ms-flex:2;flex:2;min-height:800px;overflow:scroll}.ninja_title_section .ninja_title,.ninja_title_section .ninja_title h3{display:inline-block}.ninja_title_section button{float:right;margin-top:10px}.ninja_switch_wrapper{margin:20px 0}.ninja_mini{padding:2px 7px;color:#0073aa;font-size:10px}.ninja_resp_tabs span.dashicons{font-size:13px;width:15px;height:10px}input.form-control::-webkit-input-placeholder{color:#ddd}input.form-control:-ms-input-placeholder,input.form-control::-ms-input-placeholder{color:#ddd}input.form-control::placeholder{color:#ddd}.search_action input::-webkit-input-placeholder{color:#969292}.search_action input:-ms-input-placeholder,.search_action input::-ms-input-placeholder{color:#969292}.search_action input::placeholder{color:#969292}.upgrade_box{text-align:center;margin-top:10px}.upgrade_box a{text-decoration:none}.upgrade_box a i{margin-top:-5px;font-size:20px;height:10px}.ninja_upgrade_bar{margin:-10px -20px 0;background:#f35a59;padding:10px 20px;overflow:hidden;color:#fff}.ninja_upgrade_bar a{color:#f35a59;font-weight:700;padding:5px 15px;border-radius:5px;text-decoration:none;background:#fff;border:1px solid #fff}.ninja_upgrade_bar a:hover{color:#fff;background-color:#f35a59;border:1px solid #fff;-webkit-transition:background-color .3s ease;transition:background-color .3s ease}.ninja_btn{text-decoration:none}.label-normalize label{font-weight:400}.ninja_design_tips{color:red;padding:10px;background:#fff;border:1px solid red}.ninja_design_tips ul.ninja_design_tips_lists{margin:0}.el-checkbox-group{overflow:hidden;width:100%}.el-checkbox-group label.el-checkbox{display:inline-block;margin-left:0;margin-right:20px}.el-dialog__wrapper{background:rgba(0,0,0,.55);z-index:9999!important}.ninja_modal-body h3{margin:0}.handle{cursor:move}.el-color-dropdown.el-color-picker__panel,.el-select-dropdown.el-popper{z-index:999999!important}.no_padding_body .el-dialog__body{padding-top:0}.ninja_table_inline_upgrade{padding:20px;margin-bottom:20px;background:#feffb3}.ninja_instruction{padding:10px 15px;background:#e5ffe7;margin-top:20px}.ninja_instruction ul{margin-left:30px;list-style:disc;font-size:110%}.ninja_instruction p{margin:3px 0}h2.nav-tab-wrapper{margin-bottom:15px!important}.doc_link{text-decoration:none;font-size:14px;color:gray}.form_row_full{display:block;overflow:hidden;width:100%}.form_row_full .form_row_half{width:48%;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:4%;float:left;display:block}.form_row_full .form_row_half>label{display:block}.form_row_full .form_row_half:last-child{padding-right:0}.el-tooltip__popper h3,.el-tooltip__popper p{margin:0;padding:0}.el-main-editing{background-color:#fff;min-height:70vh;padding:15px 25px;display:block;overflow:auto}.el-main-editing .ninja_header_editing{display:block;overflow:hidden;margin:-15px -25px 20px;padding:10px 25px;border-bottom:1px solid #eae7e7;background:#fbfdff}.el-main-editing .ninja_header_editing h2{margin:0;padding:0;float:left;line-height:30px}.el-main-editing .ninja_header_editing .heading_actions{float:right}.el-main-editing .editing_sub_section{display:block;margin-bottom:40px}.el-main-editing .editing_sub_section .ninja_section_block_header{border-bottom:1px solid #f1f1f1;margin-bottom:20px}.el-main-editing .editing_sub_section .ninja_section_block_header>h3{margin:0}.el-main-editing .editing_sub_section .ninja_section_block_header p{margin:5px 0 10px}.el-main-editing .editing_body{display:block;overflow:hidden;width:100%}.el-main-editing table.ninja_editing_table th{font-weight:500}.el-main-editing table.ninja_editing_table tr td,.el-main-editing table.ninja_editing_table tr th{border-bottom:1px solid #eaeaea!important}.el-radio-group.spaced{max-width:100%;position:relative}.el-radio-group.spaced>label{display:inline-block}.el-radio-group.spaced_new_line>label{display:block;margin-left:0!important;margin-bottom:10px}.nt_suggest{padding:10px;background:#eee;margin-top:20px;border-radius:5px}.nt_suggest h4{margin:0}.nt_suggest ul{margin-left:30px}.nt_suggest ul li{list-style:disc}.ninja_heightlight_block{margin-top:50px;text-align:left;padding:0 20px 20px;border:1px solid #eae7e7;background:#fbfdff}
assets/css/ninja-tables-admin.min.css DELETED
@@ -1,811 +0,0 @@
1
- @font-face{font-family:element-icons;src:url(/fonts/element-icons.woff?d2f69a92faa6fe990d2e613c358be705) format("woff"),url(/fonts/element-icons.ttf?b02bdc1b846fd65473922f5f62832108) format("truetype");font-weight:400;font-style:normal}[class*=" el-icon-"],[class^=el-icon-]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-upload:before{content:"\E60D"}.el-icon-error:before{content:"\E62C"}.el-icon-success:before{content:"\E62D"}.el-icon-warning:before{content:"\E62E"}.el-icon-sort-down:before{content:"\E630"}.el-icon-sort-up:before{content:"\E631"}.el-icon-arrow-left:before{content:"\E600"}.el-icon-circle-plus:before{content:"\E601"}.el-icon-circle-plus-outline:before{content:"\E602"}.el-icon-arrow-down:before{content:"\E603"}.el-icon-arrow-right:before{content:"\E604"}.el-icon-arrow-up:before{content:"\E605"}.el-icon-back:before{content:"\E606"}.el-icon-circle-close:before{content:"\E607"}.el-icon-date:before{content:"\E608"}.el-icon-circle-close-outline:before{content:"\E609"}.el-icon-caret-left:before{content:"\E60A"}.el-icon-caret-bottom:before{content:"\E60B"}.el-icon-caret-top:before{content:"\E60C"}.el-icon-caret-right:before{content:"\E60E"}.el-icon-close:before{content:"\E60F"}.el-icon-d-arrow-left:before{content:"\E610"}.el-icon-check:before{content:"\E611"}.el-icon-delete:before{content:"\E612"}.el-icon-d-arrow-right:before{content:"\E613"}.el-icon-document:before{content:"\E614"}.el-icon-d-caret:before{content:"\E615"}.el-icon-edit-outline:before{content:"\E616"}.el-icon-download:before{content:"\E617"}.el-icon-goods:before{content:"\E618"}.el-icon-search:before{content:"\E619"}.el-icon-info:before{content:"\E61A"}.el-icon-message:before{content:"\E61B"}.el-icon-edit:before{content:"\E61C"}.el-icon-location:before{content:"\E61D"}.el-icon-loading:before{content:"\E61E"}.el-icon-location-outline:before{content:"\E61F"}.el-icon-menu:before{content:"\E620"}.el-icon-minus:before{content:"\E621"}.el-icon-bell:before{content:"\E622"}.el-icon-mobile-phone:before{content:"\E624"}.el-icon-news:before{content:"\E625"}.el-icon-more:before{content:"\E646"}.el-icon-more-outline:before{content:"\E626"}.el-icon-phone:before{content:"\E627"}.el-icon-phone-outline:before{content:"\E628"}.el-icon-picture:before{content:"\E629"}.el-icon-picture-outline:before{content:"\E62A"}.el-icon-plus:before{content:"\E62B"}.el-icon-printer:before{content:"\E62F"}.el-icon-rank:before{content:"\E632"}.el-icon-refresh:before{content:"\E633"}.el-icon-question:before{content:"\E634"}.el-icon-remove:before{content:"\E635"}.el-icon-share:before{content:"\E636"}.el-icon-star-on:before{content:"\E637"}.el-icon-setting:before{content:"\E638"}.el-icon-circle-check:before{content:"\E639"}.el-icon-service:before{content:"\E63A"}.el-icon-sold-out:before{content:"\E63B"}.el-icon-remove-outline:before{content:"\E63C"}.el-icon-star-off:before{content:"\E63D"}.el-icon-circle-check-outline:before{content:"\E63E"}.el-icon-tickets:before{content:"\E63F"}.el-icon-sort:before{content:"\E640"}.el-icon-zoom-in:before{content:"\E641"}.el-icon-time:before{content:"\E642"}.el-icon-view:before{content:"\E643"}.el-icon-upload2:before{content:"\E644"}.el-icon-zoom-out:before{content:"\E645"}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}@keyframes rotating{0%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}100%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}}.pageLoading {
2
- text-align: center;
3
- display: -webkit-box;
4
- display: -ms-flexbox;
5
- display: flex;
6
- height: 150px;
7
- -webkit-box-orient: vertical;
8
- -webkit-box-direction: normal;
9
- -ms-flex-direction: column;
10
- flex-direction: column;
11
- -webkit-box-align: center;
12
- -ms-flex-align: center;
13
- align-items: center;
14
- -webkit-box-pack: center;
15
- -ms-flex-pack: center;
16
- justify-content: center;
17
- }
18
-
19
- .pageLoading .fooicon {
20
- font-size: 20px;
21
- }
22
-
23
- .btn-flex {
24
- display: -webkit-inline-box !important;
25
- display: -ms-inline-flexbox !important;
26
- display: inline-flex !important;
27
- -webkit-box-align: center;
28
- -ms-flex-align: center;
29
- align-items: center;
30
- }
31
-
32
- .btn-flex .fooicon {
33
- margin-left: 5px;
34
- }
35
-
36
- /* GLOBAL STYLES */
37
-
38
- h4 {
39
- margin-bottom: 0;
40
- font-size: 18px;
41
- }
42
-
43
- a.btn {
44
- text-decoration: none;
45
- }
46
-
47
- /**
48
- * All of the CSS for your admin-specific functionality should be
49
- * included in this file.
50
- */
51
-
52
- .press_wrap {
53
- background: white;
54
- padding: 20px;
55
- }
56
-
57
- /**
58
- * All of the CSS for your admin-specific functionality should be
59
- * included in this file.
60
- */
61
-
62
- #prescription_app {
63
- margin-right: 20px;
64
- }
65
-
66
- .mt_0 {
67
- margin-top: 0;
68
- }
69
-
70
- .edited_title {
71
- text-transform: capitalize;
72
- }
73
-
74
- .sb_container {
75
- max-width: 960px;
76
- }
77
-
78
- .mt_45 {
79
- margin-top: 45px;
80
- }
81
-
82
- body .form-horizontal .control-label {
83
- text-align: left;
84
- }
85
-
86
- .container {
87
- max-width: 960px;
88
- }
89
-
90
- /*prescription page*/
91
-
92
- .pscp-profile-devide {
93
- display: -webkit-box;
94
- display: -ms-flexbox;
95
- display: flex;
96
- -ms-flex-wrap: nowrap;
97
- flex-wrap: nowrap;
98
- }
99
-
100
- .pscp-profile-devide-item {
101
- -webkit-box-flex: 1;
102
- -ms-flex-positive: 1;
103
- flex-grow: 1;
104
- -ms-flex-preferred-size: 100%;
105
- flex-basis: 100%;
106
- }
107
-
108
- .pscp-profile {
109
- display: -webkit-box;
110
- display: -ms-flexbox;
111
- display: flex;
112
- -webkit-box-align: stretch;
113
- -ms-flex-align: stretch;
114
- align-items: stretch;
115
- padding-right: 15px;
116
- border-right: 2px solid #747575;
117
- }
118
-
119
- .pscp-profile-note {
120
- margin-left: 15px;
121
- }
122
-
123
- .pscp-profile-img {
124
- margin-right: 25px;
125
- }
126
-
127
- /*Prescription View page*/
128
-
129
- .pscp-profile-holder {
130
- padding: 15px 0;
131
- border-bottom: 7px double #747575;
132
- }
133
-
134
- .pscp-items-title-wrap {
135
- display: -webkit-box;
136
- display: -ms-flexbox;
137
- display: flex;
138
- -webkit-box-pack: justify;
139
- -ms-flex-pack: justify;
140
- justify-content: space-between;
141
- }
142
-
143
- .pscp-items-title-wrap h2 {
144
- margin-top: 0;
145
- }
146
-
147
- .pscp-profile-meta .title {
148
- text-transform: capitalize;
149
- }
150
-
151
- .pscp-items-title-wrap {
152
- margin-top: 47px;
153
- }
154
-
155
- .pscp-items-title-meta .btn {
156
- background: #ddd;
157
- border: 2px solid #8f8f8f;
158
- padding: 10px 20px;
159
- color: #444;
160
- margin-right: 10px;
161
- }
162
-
163
- /*item style*/
164
-
165
- .pscp-items-box {
166
- background-color: #fbfeff;
167
- padding: 17px 15px;
168
- position: relative;
169
- margin: 30px 0;
170
- }
171
-
172
- .pscp-items-box-title-wrap {
173
- height: 0px;
174
- }
175
-
176
- .pscp-items-box:before {
177
- content: '';
178
- border: 2px solid #757575;
179
- position: absolute;
180
- width: 100%;
181
- height: calc(100% - 2px);
182
- background: transparent;
183
- bottom: 0;
184
- left: 0;
185
- }
186
-
187
- .ps_edit-box {
188
- position: absolute;
189
- right: 10px;
190
- }
191
-
192
- .pscp-items-box-title-wrap .pscp-items-box-title {
193
- margin-top: 0;
194
- margin-bottom: 0;
195
- position: relative;
196
- top: -46px;
197
- display: inline-block;
198
- background: #757575;
199
- padding: 5px 10px;
200
- color: white;
201
- }
202
-
203
- .modal-open .modal {
204
- z-index: 1000;
205
- }
206
-
207
- label.form_group {
208
- padding-top: 5px;
209
- padding-left: 10px;
210
- }
211
-
212
- .editr--toolbar .dashboard {
213
- -webkit-box-sizing: border-box;
214
- box-sizing: border-box;
215
- padding: 0rem 0.5rem;
216
- }
217
-
218
- .editr--toolbar .dashboard .dropzone {
219
- max-height: 86px;
220
- min-height: 50px !important;
221
- background: #f6f6f6;
222
- }
223
-
224
- .compact .cell .cell-content {
225
- height: 28px;
226
- overflow: hidden;
227
- white-space: nowrap;
228
- -ms-text-overflow: ellipsis;
229
- text-overflow: ellipsis;
230
- }
231
-
232
- .compact .cell .cell-content * {
233
- margin: 0px;
234
- padding: 0px;
235
- font-size: 14px;
236
- }
237
-
238
- .cell .cell-content img {
239
- max-width: 100%;
240
- height: auto;
241
- }
242
-
243
- /*pagination*/
244
-
245
- .paginate {
246
- display: -webkit-box;
247
- display: -ms-flexbox;
248
- display: flex;
249
- -ms-flex-wrap: nowrap;
250
- flex-wrap: nowrap;
251
- -webkit-box-pack: justify;
252
- -ms-flex-pack: justify;
253
- justify-content: space-between;
254
- margin-top: 25px;
255
- -webkit-box-align: center;
256
- -ms-flex-align: center;
257
- align-items: center;
258
- border-bottom: 2px solid #ccc;
259
- padding-bottom: 8px;
260
- }
261
-
262
- .btn.pag-btn {
263
- background: #b2ccda;
264
- color: #fff;
265
- }
266
-
267
- .btn.pag-btn:hover {
268
- opacity: .90;
269
- color: #fff;
270
- outline: none !important;
271
- -webkit-box-shadow: none !important;
272
- box-shadow: none !important;
273
- }
274
-
275
- .btn.pag-btn:focus {
276
- color: #fff;
277
- outline: none !important;
278
- -webkit-box-shadow: none !important;
279
- box-shadow: none !important;
280
- }
281
-
282
- .pag-btn.is-active {
283
- background: #0073ae;
284
- }
285
-
286
- /* BUTTONS */
287
-
288
- .btn {
289
- display: inline-block;
290
- padding: 6px 12px;
291
- margin-bottom: 0;
292
- font-size: 14px;
293
- font-weight: 400;
294
- line-height: 1.42857143;
295
- text-align: center;
296
- white-space: nowrap;
297
- vertical-align: middle;
298
- -ms-touch-action: manipulation;
299
- touch-action: manipulation;
300
- cursor: pointer;
301
- -webkit-user-select: none;
302
- -moz-user-select: none;
303
- -ms-user-select: none;
304
- user-select: none;
305
- background-image: none;
306
- border: 1px solid transparent;
307
- border-radius: 4px;
308
- text-decoration: none;
309
- }
310
-
311
- .btn-default {
312
- color: #333;
313
- background-color: #fff;
314
- border-color: #ccc;
315
- }
316
-
317
- .btn-primary {
318
- color: #fff;
319
- background-color: #337ab7;
320
- border-color: #2e6da4;
321
- }
322
-
323
- .btn-primary:focus,
324
- .btn-primary.focus {
325
- color: #fff;
326
- background-color: #286090;
327
- border-color: #122b40;
328
- }
329
-
330
- .btn-primary:hover,
331
- .btn-primary:active,
332
- .btn-primary.active {
333
- color: #fff;
334
- background-color: #286090;
335
- border-color: #204d74;
336
- }
337
-
338
- .btn-primary:active:hover,
339
- .btn-primary.active:hover {
340
- color: #fff;
341
- background-color: #204d74;
342
- border-color: #122b40;
343
- }
344
-
345
- .btn-primary.disabled:hover,
346
- .btn-primary[disabled]:hover {
347
- background-color: #337ab7;
348
- border-color: #2e6da4;
349
- }
350
-
351
- .btn-danger {
352
- color: #fff;
353
- background-color: #d9534f;
354
- border-color: #d43f3a;
355
- }
356
-
357
- .btn-danger:focus,
358
- .btn-danger.focus {
359
- color: #fff;
360
- background-color: #c9302c;
361
- border-color: #761c19;
362
- }
363
-
364
- .btn-danger:hover {
365
- color: #fff;
366
- background-color: #c9302c;
367
- border-color: #ac2925;
368
- }
369
-
370
- .btn-sm {
371
- padding: 5px 10px;
372
- font-size: 12px;
373
- line-height: 1.5;
374
- border-radius: 3px;
375
- }
376
-
377
- .btn-xs {
378
- padding: 1px 5px;
379
- font-size: 12px;
380
- line-height: 1.5;
381
- border-radius: 3px;
382
- }
383
-
384
- /* HELPER CLASSES */
385
-
386
- .close {
387
- float: right;
388
- font-size: 21px;
389
- font-weight: 700;
390
- line-height: 1;
391
- color: #000;
392
- text-shadow: 0 1px 0 #fff;
393
- filter: alpha(opacity=20);
394
- opacity: .2;
395
- }
396
-
397
- button.close {
398
- -webkit-appearance: none;
399
- padding: 0;
400
- cursor: pointer;
401
- background: 0 0;
402
- border: 0;
403
- }
404
-
405
- .wp-list-table > tbody > tr > td {
406
- vertical-align: middle;
407
- }
408
-
409
- .mb20 {
410
- margin-bottom: 20px;
411
- }
412
-
413
- .text-right {
414
- text-align: right;
415
- }
416
-
417
- /* MODAL STYLE */
418
-
419
- .modal {
420
- position: fixed;
421
- top: 0;
422
- right: 0;
423
- bottom: 0;
424
- background: rgba(0, 0, 0, 0.6);
425
- z-index: 1050;
426
- display: none;
427
- overflow: hidden;
428
- left: 0;
429
- }
430
-
431
- @media (min-width: 784px) {
432
- .modal {
433
- left: 36px;
434
- }
435
- }
436
-
437
- @media (min-width: 961px) {
438
- .modal {
439
- left: 160px;
440
- }
441
- }
442
-
443
- .fade {
444
- opacity: 0;
445
- -webkit-transition: opacity .15s linear;
446
- transition: opacity .15s linear;
447
- }
448
-
449
- .fade.in {
450
- opacity: 1;
451
- }
452
-
453
- .fade.in .modal-dialog {
454
- margin-top: 50px;
455
- }
456
-
457
- .modal-dialog {
458
- position: relative;
459
- -webkit-transition: all 0.35s linear;
460
- transition: all 0.35s linear;
461
- width: 600px;
462
- margin-top: 0px;
463
- margin-left: auto;
464
- margin-right: auto;
465
- }
466
-
467
- .modal-content {
468
- position: relative;
469
- background-color: #fff;
470
- background-clip: padding-box;
471
- border: 1px solid #999;
472
- border: 1px solid rgba(0, 0, 0, 0.2);
473
- border-radius: 6px;
474
- outline: 0;
475
- -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
476
- box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
477
- }
478
-
479
- .modal-header {
480
- padding: 15px;
481
- border-bottom: 1px solid #e5e5e5;
482
- }
483
-
484
- .modal-header h4 {
485
- margin-top: 0;
486
- }
487
-
488
- .modal-header .close {
489
- margin-top: -2px;
490
- }
491
-
492
- .modal-body {
493
- position: relative;
494
- padding: 15px;
495
- max-height: 65vh;
496
- overflow: auto;
497
- }
498
-
499
- .modal-footer {
500
- padding: 15px;
501
- text-align: right;
502
- border-top: 1px solid #e5e5e5;
503
- }
504
-
505
- /* INPUT */
506
-
507
- label {
508
- display: inline-block;
509
- max-width: 100%;
510
- margin-bottom: 5px;
511
- font-weight: bold;
512
- }
513
-
514
- .form-control {
515
- display: block;
516
- width: 100%;
517
- height: 34px;
518
- padding: 6px 12px;
519
- font-size: 14px;
520
- line-height: 1.42857143;
521
- color: #555;
522
- background-color: #fff;
523
- background-image: none;
524
- border: 1px solid #ccc;
525
- border-radius: 4px;
526
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
527
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
528
- -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
529
- transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
530
- transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
531
- transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
532
- }
533
-
534
- .form-control:focus {
535
- border-color: #66afe9;
536
- outline: 0;
537
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
538
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
539
- }
540
-
541
- .form-control::-moz-placeholder {
542
- color: #999;
543
- opacity: 1;
544
- }
545
-
546
- .form-control:-ms-input-placeholder,
547
- .form-control::-webkit-input-placeholder {
548
- color: #999;
549
- }
550
-
551
- .form-control::-ms-expand {
552
- background-color: transparent;
553
- border: 0;
554
- }
555
-
556
- .form-control[disabled],
557
- .form-control[readonly] {
558
- background-color: #eee;
559
- opacity: 1;
560
- }
561
-
562
- fieldset[disabled] .form-control {
563
- background-color: #eee;
564
- opacity: 1;
565
- }
566
-
567
- .form-control[disabled],
568
- fieldset[disabled] .form-control {
569
- cursor: not-allowed;
570
- }
571
-
572
- textarea.form-control {
573
- height: auto;
574
- }
575
-
576
- .input-group {
577
- display: table;
578
- position: relative;
579
- }
580
-
581
- .input-group .form-control,
582
- .input-group .input-btn {
583
- display: table-cell;
584
- vertical-align: middle;
585
- }
586
-
587
- .input-group .form-control {
588
- float: left;
589
- border-bottom-right-radius: 0;
590
- border-top-right-radius: 0;
591
- }
592
-
593
- .input-group .input-btn {
594
- width: 1%;
595
- }
596
-
597
- .input-group .input-btn .btn {
598
- border-bottom-left-radius: 0;
599
- border-top-left-radius: 0;
600
- }
601
-
602
- /* TABS */
603
-
604
- .nav {
605
- padding-left: 0;
606
- margin-bottom: 0;
607
- list-style: none;
608
- }
609
-
610
- .nav:before {
611
- display: table;
612
- content: " ";
613
- }
614
-
615
- .nav:after {
616
- display: table;
617
- content: " ";
618
- clear: both;
619
- }
620
-
621
- .nav > li {
622
- position: relative;
623
- display: block;
624
- }
625
-
626
- .nav > li > a {
627
- position: relative;
628
- display: block;
629
- padding: 10px 15px;
630
- }
631
-
632
- .nav > li > a:hover,
633
- .nav > li > a:focus {
634
- text-decoration: none;
635
- background-color: #eee;
636
- }
637
-
638
- .nav > li.disabled > a {
639
- color: #777;
640
- }
641
-
642
- .nav > li.disabled > a:hover,
643
- .nav > li.disabled > a:focus {
644
- color: #777;
645
- text-decoration: none;
646
- cursor: not-allowed;
647
- background-color: transparent;
648
- }
649
-
650
- .nav-tabs {
651
- border-bottom: 1px solid #ddd;
652
- }
653
-
654
- .nav-tabs > li {
655
- float: left;
656
- margin-bottom: -1px;
657
- }
658
-
659
- .nav-tabs > li > a {
660
- margin-right: 2px;
661
- line-height: 1.42857143;
662
- border: 1px solid transparent;
663
- border-radius: 4px 4px 0 0;
664
- text-decoration: none;
665
- }
666
-
667
- .nav-tabs > li > a:hover {
668
- border-color: #eee #eee #ddd;
669
- }
670
-
671
- .nav-tabs > li > a:focus {
672
- -webkit-box-shadow: none;
673
- box-shadow: none;
674
- }
675
-
676
- .nav-tabs > li.router-link-exact-active > a {
677
- color: #555;
678
- cursor: default;
679
- background-color: #fff;
680
- border: 1px solid #ddd;
681
- border-bottom-color: transparent;
682
- }
683
-
684
- .nav-tabs > li.router-link-exact-active > a:hover,
685
- .nav-tabs > li.router-link-exact-active > a:focus {
686
- color: #555;
687
- cursor: default;
688
- background-color: #fff;
689
- border: 1px solid #ddd;
690
- border-bottom-color: transparent;
691
- }
692
-
693
- .tab-content > .tab-pane {
694
- padding: 20px 0;
695
- }
696
-
697
- .form-group {
698
- margin-bottom: 15px;
699
- }
700
-
701
- .table-title {
702
- font-size: 18px;
703
- margin-bottom: 0;
704
- }
705
-
706
- /* vue notification */
707
-
708
- .table_data_press .help {
709
- font-size: 90%;
710
- color: gray;
711
- font-weight: 300;
712
- }
713
-
714
- .row_full {
715
- overflow: hidden;
716
- }
717
-
718
- .row_full .pull-left {
719
- float: left;
720
- }
721
-
722
- .search_action {
723
- position: relative;
724
- margin-top: 0px;
725
- padding-top: 0px;
726
- }
727
-
728
- .search_action input {
729
- width: 98%;
730
- font-size: 95%;
731
- padding-right: 30px;
732
- }
733
-
734
- .search_action i {
735
- position: absolute;
736
- right: 8px;
737
- top: 10px;
738
- font-size: 16px;
739
- }
740
-
741
- .tablenav {
742
- clear: both;
743
- height: auto;
744
- margin: 6px 0 4px;
745
- vertical-align: middle;
746
- overflow: hidden;
747
- display: block;
748
- }
749
-
750
- .tablenav .form_group {
751
- padding-top: 0px;
752
- padding-bottom: 0px;
753
- margin-bottom: 0px;
754
- margin-top: 0px;
755
- }
756
-
757
- .nav-tab-active,
758
- .nav-tab-active:focus,
759
- .nav-tab-active:focus:active,
760
- .nav-tab-active:hover {
761
- -webkit-box-shadow: none;
762
- box-shadow: none;
763
- }
764
-
765
- .pull-right {
766
- float: right;
767
- }
768
-
769
- ul.doc_items {
770
- margin-left: 45px;
771
- }
772
-
773
- ul.doc_items li {
774
- font-size: 14px;
775
- margin-bottom: 10px;
776
- list-style: disc;
777
- }
778
-
779
- ul.doc_items li a {
780
- text-decoration: none;
781
- }
782
-
783
- .el-aside {
784
- background-color: #535c63;
785
- color: #333;
786
- line-height: 200px;
787
- }
788
-
789
- .el-main {
790
- background-color: white;
791
- color: black;
792
- }
793
-
794
- .el-menu-item.is-active {
795
- background-color: #434a50 !important;
796
- color: white !important;
797
- }
798
-
799
- .ninja_header {
800
- margin: -20px -20px 20px;
801
- padding: 10px 20px;
802
- border-bottom: 1px solid #eae7e7;
803
- background: #fbfdff;
804
- }
805
-
806
- .ninja_content {
807
- display: block;
808
- position: relative;
809
- width: 100%;
810
- }
811
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/ninja-tables-public.css DELETED
@@ -1,11 +0,0 @@
1
- .foo-table span.label.label-default{display:none;visibility:hidden}.foo-table table.footable-details tr th{white-space:normal;overflow:visible!important;text-overflow:unset!important}.foo-table tr.footable-filtering th{overflow:visible!important}.foo-table .pagination{border:none;padding:0;font-weight:500}.foo-table button.btn.btn-default.dropdown-toggle{top:0;right:0;left:0}.foo-table button.btn.btn-default.dropdown-toggle:after{content:" "}.foo-table li.dropdown-header{padding-left:20px;padding-bottom:5px;color:#333}.foo-table ul.dropdown-menu.dropdown-menu-right li:last-child a{border-bottom:0!important;-webkit-box-shadow:none;box-shadow:none}.foo-table ul.dropdown-menu.dropdown-menu-right li a:hover{-webkit-box-shadow:inset 0 0 0 transparent,0 1px 0 #000;box-shadow:inset 0 0 0 transparent,0 1px 0 #000}.foo-table span.footable-toggle{cursor:pointer}.foo-table.ninjatable_hide_header_row>thead tr.footable-header{display:none!important;visibility:hidden}.foo-table.hide_all_borders,.foo-table.hide_all_borders td,.foo-table.hide_all_borders tfoot,.foo-table.hide_all_borders th,.foo-table.hide_all_borders thead,.foo-table.hide_all_borders tr{border-color:transparent!important}.foo-table.ninja_table_search_disabled>thead tr.footable-filtering{display:none!important;visibility:hidden!important}.footable_parent{overflow-x:auto}@font-face{font-family:ninja-tables-fontawesome;src:url(../fonts/ninja-tables-fontawesome.eot?0fb29fbec7db9ea5c763221346490d6f);src:url(../fonts/ninja-tables-fontawesome.eot?0fb29fbec7db9ea5c763221346490d6f) format("embedded-opentype"),url(../fonts/ninja-tables-fontawesome.woff?bc6b6cc2d737de1e7016d2a79d7a7b96) format("woff"),url(../fonts/ninja-tables-fontawesome.ttf?cbdbbb96491338197ebb7894b76c926a) format("truetype"),url(../fonts/ninja-tables-fontawesome.svg?2efdf20b500df61d7043da16a83f00fc) format("svg");font-weight:400;font-style:normal}[data-icon]:before{content:attr(data-icon)}[class*=" fooicon-"]:before,[class^=fooicon-]:before,[data-icon]:before{font-family:ninja-tables-fontawesome!important;font-style:normal!important;font-weight:400!important;font-variant:normal!important;text-transform:none!important;speak:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fooicon-search:before{content:"\F002"}.fooicon-sort-desc:before{content:"\F161"}.fooicon-sort-asc:before{content:"\F160"}.fooicon-sort:before{content:"\F0DC"}.fooicon-minus:before{content:"\F068"}.fooicon-plus:before{content:"\F067"}.fooicon-circle-o-notch:before{content:"\E000"}.fooicon-remove-1:before{content:"\F00D"}.fooicon-loader-alt:before{content:"\F01"}.fooicon-refresh:before{content:"\E001"}.fooicon-loader:before{content:"\F01E"}.bootstrap3 table{background-color:transparent}.bootstrap3 caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}.bootstrap3 th{text-align:left}.bootstrap3 .table{width:100%;max-width:100%;margin-bottom:20px}.bootstrap3 .table>tbody>tr>td,.bootstrap3 .table>tbody>tr>th,.bootstrap3 .table>tfoot>tr>td,.bootstrap3 .table>tfoot>tr>th,.bootstrap3 .table>thead>tr>td,.bootstrap3 .table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bootstrap3 .table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bootstrap3 .table>caption+thead>tr:first-child>td,.bootstrap3 .table>caption+thead>tr:first-child>th,.bootstrap3 .table>colgroup+thead>tr:first-child>td,.bootstrap3 .table>colgroup+thead>tr:first-child>th,.bootstrap3 .table>thead:first-child>tr:first-child>td,.bootstrap3 .table>thead:first-child>tr:first-child>th{border-top:0}.bootstrap3 .table>tbody+tbody{border-top:2px solid #ddd}.bootstrap3 .table .table{background-color:#fff}.bootstrap3 .table-condensed>tbody>tr>td,.bootstrap3 .table-condensed>tbody>tr>th,.bootstrap3 .table-condensed>tfoot>tr>td,.bootstrap3 .table-condensed>tfoot>tr>th,.bootstrap3 .table-condensed>thead>tr>td,.bootstrap3 .table-condensed>thead>tr>th{padding:5px}.bootstrap3 .table-bordered,.bootstrap3 .table-bordered>tbody>tr>td,.bootstrap3 .table-bordered>tbody>tr>th,.bootstrap3 .table-bordered>tfoot>tr>td,.bootstrap3 .table-bordered>tfoot>tr>th,.bootstrap3 .table-bordered>thead>tr>td,.bootstrap3 .table-bordered>thead>tr>th{border:1px solid #ddd}.bootstrap3 .table-bordered>thead>tr>td,.bootstrap3 .table-bordered>thead>tr>th{border-bottom-width:2px}.bootstrap3 .table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.bootstrap3 .table-hover>tbody>tr:hover{background-color:#f5f5f5}.bootstrap3 table col[class*=col-]{position:static;display:table-column;float:none}.bootstrap3 table td[class*=col-],.bootstrap3 table th[class*=col-]{position:static;display:table-cell;float:none}.bootstrap3 .table>tbody>tr.active>td,.bootstrap3 .table>tbody>tr.active>th,.bootstrap3 .table>tbody>tr>td.active,.bootstrap3 .table>tbody>tr>th.active,.bootstrap3 .table>tfoot>tr.active>td,.bootstrap3 .table>tfoot>tr.active>th,.bootstrap3 .table>tfoot>tr>td.active,.bootstrap3 .table>tfoot>tr>th.active,.bootstrap3 .table>thead>tr.active>td,.bootstrap3 .table>thead>tr.active>th,.bootstrap3 .table>thead>tr>td.active,.bootstrap3 .table>thead>tr>th.active{background-color:#f5f5f5}.bootstrap3 .table-hover>tbody>tr.active:hover>td,.bootstrap3 .table-hover>tbody>tr.active:hover>th,.bootstrap3 .table-hover>tbody>tr:hover>.active,.bootstrap3 .table-hover>tbody>tr>td.active:hover,.bootstrap3 .table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.bootstrap3 .table>tbody>tr.success>td,.bootstrap3 .table>tbody>tr.success>th,.bootstrap3 .table>tbody>tr>td.success,.bootstrap3 .table>tbody>tr>th.success,.bootstrap3 .table>tfoot>tr.success>td,.bootstrap3 .table>tfoot>tr.success>th,.bootstrap3 .table>tfoot>tr>td.success,.bootstrap3 .table>tfoot>tr>th.success,.bootstrap3 .table>thead>tr.success>td,.bootstrap3 .table>thead>tr.success>th,.bootstrap3 .table>thead>tr>td.success,.bootstrap3 .table>thead>tr>th.success{background-color:#dff0d8}.bootstrap3 .table-hover>tbody>tr.success:hover>td,.bootstrap3 .table-hover>tbody>tr.success:hover>th,.bootstrap3 .table-hover>tbody>tr:hover>.success,.bootstrap3 .table-hover>tbody>tr>td.success:hover,.bootstrap3 .table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.bootstrap3 .table>tbody>tr.info>td,.bootstrap3 .table>tbody>tr.info>th,.bootstrap3 .table>tbody>tr>td.info,.bootstrap3 .table>tbody>tr>th.info,.bootstrap3 .table>tfoot>tr.info>td,.bootstrap3 .table>tfoot>tr.info>th,.bootstrap3 .table>tfoot>tr>td.info,.bootstrap3 .table>tfoot>tr>th.info,.bootstrap3 .table>thead>tr.info>td,.bootstrap3 .table>thead>tr.info>th,.bootstrap3 .table>thead>tr>td.info,.bootstrap3 .table>thead>tr>th.info{background-color:#d9edf7}.bootstrap3 .table-hover>tbody>tr.info:hover>td,.bootstrap3 .table-hover>tbody>tr.info:hover>th,.bootstrap3 .table-hover>tbody>tr:hover>.info,.bootstrap3 .table-hover>tbody>tr>td.info:hover,.bootstrap3 .table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.bootstrap3 .table>tbody>tr.warning>td,.bootstrap3 .table>tbody>tr.warning>th,.bootstrap3 .table>tbody>tr>td.warning,.bootstrap3 .table>tbody>tr>th.warning,.bootstrap3 .table>tfoot>tr.warning>td,.bootstrap3 .table>tfoot>tr.warning>th,.bootstrap3 .table>tfoot>tr>td.warning,.bootstrap3 .table>tfoot>tr>th.warning,.bootstrap3 .table>thead>tr.warning>td,.bootstrap3 .table>thead>tr.warning>th,.bootstrap3 .table>thead>tr>td.warning,.bootstrap3 .table>thead>tr>th.warning{background-color:#fcf8e3}.bootstrap3 .table-hover>tbody>tr.warning:hover>td,.bootstrap3 .table-hover>tbody>tr.warning:hover>th,.bootstrap3 .table-hover>tbody>tr:hover>.warning,.bootstrap3 .table-hover>tbody>tr>td.warning:hover,.bootstrap3 .table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.bootstrap3 .table>tbody>tr.danger>td,.bootstrap3 .table>tbody>tr.danger>th,.bootstrap3 .table>tbody>tr>td.danger,.bootstrap3 .table>tbody>tr>th.danger,.bootstrap3 .table>tfoot>tr.danger>td,.bootstrap3 .table>tfoot>tr.danger>th,.bootstrap3 .table>tfoot>tr>td.danger,.bootstrap3 .table>tfoot>tr>th.danger,.bootstrap3 .table>thead>tr.danger>td,.bootstrap3 .table>thead>tr.danger>th,.bootstrap3 .table>thead>tr>td.danger,.bootstrap3 .table>thead>tr>th.danger{background-color:#f2dede}.bootstrap3 .table-hover>tbody>tr.danger:hover>td,.bootstrap3 .table-hover>tbody>tr.danger:hover>th,.bootstrap3 .table-hover>tbody>tr:hover>.danger,.bootstrap3 .table-hover>tbody>tr>td.danger:hover,.bootstrap3 .table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.bootstrap3 .table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.bootstrap3 .table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.bootstrap3 .table-responsive>.table{margin-bottom:0}.bootstrap3 .table-responsive>.table>tbody>tr>td,.bootstrap3 .table-responsive>.table>tbody>tr>th,.bootstrap3 .table-responsive>.table>tfoot>tr>td,.bootstrap3 .table-responsive>.table>tfoot>tr>th,.bootstrap3 .table-responsive>.table>thead>tr>td,.bootstrap3 .table-responsive>.table>thead>tr>th{white-space:nowrap}.bootstrap3 .table-responsive>.table-bordered{border:0}.bootstrap3 .table-responsive>.table-bordered>tbody>tr>td:first-child,.bootstrap3 .table-responsive>.table-bordered>tbody>tr>th:first-child,.bootstrap3 .table-responsive>.table-bordered>tfoot>tr>td:first-child,.bootstrap3 .table-responsive>.table-bordered>tfoot>tr>th:first-child,.bootstrap3 .table-responsive>.table-bordered>thead>tr>td:first-child,.bootstrap3 .table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.bootstrap3 .table-responsive>.table-bordered>tbody>tr>td:last-child,.bootstrap3 .table-responsive>.table-bordered>tbody>tr>th:last-child,.bootstrap3 .table-responsive>.table-bordered>tfoot>tr>td:last-child,.bootstrap3 .table-responsive>.table-bordered>tfoot>tr>th:last-child,.bootstrap3 .table-responsive>.table-bordered>thead>tr>td:last-child,.bootstrap3 .table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.bootstrap3 .table-responsive>.table-bordered>tbody>tr:last-child>td,.bootstrap3 .table-responsive>.table-bordered>tbody>tr:last-child>th,.bootstrap3 .table-responsive>.table-bordered>tfoot>tr:last-child>td,.bootstrap3 .table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}.bootstrap4 .table{width:100%;max-width:100%;margin-bottom:1rem;background-color:transparent}.bootstrap4 .table td,.bootstrap4 .table th{padding:.75rem;vertical-align:top;border-top:1px solid #e9ecef}.bootstrap4 .table thead th{vertical-align:bottom;border-bottom:2px solid #e9ecef}.bootstrap4 .table tbody+tbody{border-top:2px solid #e9ecef}.bootstrap4 .table .table{background-color:#fff;color:#000}.bootstrap4 .table-sm td,.bootstrap4 .table-sm th{padding:.3rem}.bootstrap4 .table-bordered,.bootstrap4 .table-bordered td,.bootstrap4 .table-bordered th{border:1px solid #e9ecef}.bootstrap4 .table-bordered thead td,.bootstrap4 .table-bordered thead th{border-bottom-width:2px}.bootstrap4 .table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.bootstrap4 .table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.bootstrap4 .table-primary,.bootstrap4 .table-primary>td,.bootstrap4 .table-primary>th{background-color:#b8daff}.bootstrap4 .table-hover .table-primary:hover,.bootstrap4 .table-hover .table-primary:hover>td,.bootstrap4 .table-hover .table-primary:hover>th{background-color:#9fcdff}.bootstrap4 .table-secondary,.bootstrap4 .table-secondary>td,.bootstrap4 .table-secondary>th{background-color:#dddfe2}.bootstrap4 .table-hover .table-secondary:hover,.bootstrap4 .table-hover .table-secondary:hover>td,.bootstrap4 .table-hover .table-secondary:hover>th{background-color:#cfd2d6}.bootstrap4 .table-success,.bootstrap4 .table-success>td,.bootstrap4 .table-success>th{background-color:#c3e6cb}.bootstrap4 .table-hover .table-success:hover,.bootstrap4 .table-hover .table-success:hover>td,.bootstrap4 .table-hover .table-success:hover>th{background-color:#b1dfbb}.bootstrap4 .table-info,.bootstrap4 .table-info>td,.bootstrap4 .table-info>th{background-color:#bee5eb}.bootstrap4 .table-hover .table-info:hover,.bootstrap4 .table-hover .table-info:hover>td,.bootstrap4 .table-hover .table-info:hover>th{background-color:#abdde5}.bootstrap4 .table-warning,.bootstrap4 .table-warning>td,.bootstrap4 .table-warning>th{background-color:#ffeeba}.bootstrap4 .table-hover .table-warning:hover,.bootstrap4 .table-hover .table-warning:hover>td,.bootstrap4 .table-hover .table-warning:hover>th{background-color:#ffe8a1}.bootstrap4 .table-danger,.bootstrap4 .table-danger>td,.bootstrap4 .table-danger>th{background-color:#f5c6cb}.bootstrap4 .table-hover .table-danger:hover,.bootstrap4 .table-hover .table-danger:hover>td,.bootstrap4 .table-hover .table-danger:hover>th{background-color:#f1b0b7}.bootstrap4 .table-light,.bootstrap4 .table-light>td,.bootstrap4 .table-light>th{background-color:#fdfdfe}.bootstrap4 .table-hover .table-light:hover,.bootstrap4 .table-hover .table-light:hover>td,.bootstrap4 .table-hover .table-light:hover>th{background-color:#ececf6}.bootstrap4 .table-dark,.bootstrap4 .table-dark>td,.bootstrap4 .table-dark>th{background-color:#c6c8ca}.bootstrap4 .table-hover .table-dark:hover,.bootstrap4 .table-hover .table-dark:hover>td,.bootstrap4 .table-hover .table-dark:hover>th{background-color:#b9bbbe}.bootstrap4 .table-active,.bootstrap4 .table-active>td,.bootstrap4 .table-active>th,.bootstrap4 .table-hover .table-active:hover,.bootstrap4 .table-hover .table-active:hover>td,.bootstrap4 .table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.bootstrap4 .thead-inverse th{color:#fff;background-color:#212529}.bootstrap4 .thead-default th{color:#495057;background-color:#e9ecef}.bootstrap4 .table-inverse{color:#fff;background-color:#212529}.bootstrap4 .table-inverse td,.bootstrap4 .table-inverse th,.bootstrap4 .table-inverse thead th{border-color:#32383e}.bootstrap4 .table-inverse.table-bordered{border:0}.bootstrap4 .table-inverse.table-striped tbody tr:nth-of-type(odd){background-color:hsla(0,0%,100%,.05)}.bootstrap4 .table-inverse.table-hover tbody tr:hover{background-color:hsla(0,0%,100%,.075)}@media (max-width:991px){.bootstrap4 .table-responsive{display:block;width:100%;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar}.bootstrap4 .table-responsive.table-bordered{border:0}}.semantic_ui{
2
- /*!
3
- * # Semantic UI 2.2.12 - Table
4
- * http://github.com/semantic-org/semantic-ui/
5
- *
6
- *
7
- * Released under the MIT license
8
- * http://opensource.org/licenses/MIT
9
- *
10
- */}.semantic_ui .ui.table{width:100%;background:#fff;margin:1em 0;border:1px solid rgba(34,36,38,.15);-webkit-box-shadow:none;box-shadow:none;border-radius:.28571429rem;text-align:left;color:rgba(0,0,0,.87);border-collapse:separate;border-spacing:0}.semantic_ui .ui.table:first-child{margin-top:0}.semantic_ui .ui.table:last-child{margin-bottom:0}.semantic_ui .ui.table td,.semantic_ui .ui.table th{-webkit-transition:background .1s ease,color .1s ease;transition:background .1s ease,color .1s ease}.semantic_ui .ui.table thead{-webkit-box-shadow:none;box-shadow:none}.semantic_ui .ui.table thead th{cursor:auto;background:#f9fafb;text-align:inherit;color:rgba(0,0,0,.87);padding:.92857143em .78571429em;vertical-align:inherit;font-style:none;font-weight:700;text-transform:none;border-bottom:1px solid rgba(34,36,38,.1);border-left:none}.semantic_ui .ui.table thead tr>th:first-child{border-left:none}.semantic_ui .ui.table thead tr:first-child>th:first-child{border-radius:.28571429rem 0 0 0}.semantic_ui .ui.table thead tr:first-child>th:last-child{border-radius:0 .28571429rem 0 0}.semantic_ui .ui.table thead tr:first-child>th:only-child{border-radius:.28571429rem .28571429rem 0 0}.semantic_ui .ui.table tfoot{-webkit-box-shadow:none;box-shadow:none}.semantic_ui .ui.table tfoot th{cursor:auto;border-top:1px solid rgba(34,36,38,.15);background:#f9fafb;text-align:inherit;color:rgba(0,0,0,.87);padding:.78571429em;vertical-align:middle;font-style:normal;font-weight:400;text-transform:none}.semantic_ui .ui.table tfoot tr>th:first-child{border-left:none}.semantic_ui .ui.table tfoot tr:first-child>th:first-child{border-radius:0 0 0 .28571429rem}.semantic_ui .ui.table tfoot tr:first-child>th:last-child{border-radius:0 0 .28571429rem 0}.semantic_ui .ui.table tfoot tr:first-child>th:only-child{border-radius:0 0 .28571429rem .28571429rem}.semantic_ui .ui.table tr td{border-top:1px solid rgba(34,36,38,.1)}.semantic_ui .ui.table tr:first-child td{border-top:none}.semantic_ui .ui.table td{padding:.78571429em;text-align:inherit}.semantic_ui .ui.table>.icon{vertical-align:baseline}.semantic_ui .ui.table>.icon:only-child{margin:0}.semantic_ui .ui.table.segment{padding:0}.semantic_ui .ui.table.segment:after{display:none}.semantic_ui .ui.table.segment.stacked:after{display:block}.semantic_ui .ui.table td .image,.semantic_ui .ui.table td .image img,.semantic_ui .ui.table th .image,.semantic_ui .ui.table th .image img{max-width:none}.semantic_ui .ui.structured.table{border-collapse:collapse}.semantic_ui .ui.structured.table thead th{border-left:none;border-right:none}.semantic_ui .ui.structured.sortable.table thead th{border-left:1px solid rgba(34,36,38,.15);border-right:1px solid rgba(34,36,38,.15)}.semantic_ui .ui.structured.basic.table th{border-left:none;border-right:none}.semantic_ui .ui.structured.celled.table tr td,.semantic_ui .ui.structured.celled.table tr th{border-left:1px solid rgba(34,36,38,.1);border-right:1px solid rgba(34,36,38,.1)}.semantic_ui .ui.definition.table thead:not(.full-width) th:first-child{pointer-events:none;background:transparent;font-weight:400;color:rgba(0,0,0,.4);-webkit-box-shadow:-1px -1px 0 1px #fff;box-shadow:-1px -1px 0 1px #fff}.semantic_ui .ui.definition.table tfoot:not(.full-width) th:first-child{pointer-events:none;background:transparent;font-weight:rgba(0,0,0,.4);color:normal;-webkit-box-shadow:1px 1px 0 1px #fff;box-shadow:1px 1px 0 1px #fff}.semantic_ui .ui.celled.definition.table thead:not(.full-width) th:first-child{-webkit-box-shadow:0 -1px 0 1px #fff;box-shadow:0 -1px 0 1px #fff}.semantic_ui .ui.celled.definition.table tfoot:not(.full-width) th:first-child{-webkit-box-shadow:0 1px 0 1px #fff;box-shadow:0 1px 0 1px #fff}.semantic_ui .ui.definition.table tr td.definition,.semantic_ui .ui.definition.table tr td:first-child:not(.ignored){background:rgba(0,0,0,.03);font-weight:700;color:rgba(0,0,0,.95);text-transform:"";-webkit-box-shadow:"";box-shadow:"";text-align:"";font-size:1em;padding-left:"";padding-right:""}.semantic_ui .ui.definition.table td:nth-child(2),.semantic_ui .ui.definition.table tfoot:not(.full-width) th:nth-child(2),.semantic_ui .ui.definition.table thead:not(.full-width) th:nth-child(2){border-left:1px solid rgba(34,36,38,.15)}.semantic_ui .ui.table td.positive,.semantic_ui .ui.table tr.positive{-webkit-box-shadow:0 0 0 #a3c293 inset;box-shadow:inset 0 0 0 #a3c293;background:#fcfff5!important;color:#2c662d!important}.semantic_ui .ui.table td.negative,.semantic_ui .ui.table tr.negative{-webkit-box-shadow:0 0 0 #e0b4b4 inset;box-shadow:inset 0 0 0 #e0b4b4;background:#fff6f6!important;color:#9f3a38!important}.semantic_ui .ui.table td.error,.semantic_ui .ui.table tr.error{-webkit-box-shadow:0 0 0 #e0b4b4 inset;box-shadow:inset 0 0 0 #e0b4b4;background:#fff6f6!important;color:#9f3a38!important}.semantic_ui .ui.table td.warning,.semantic_ui .ui.table tr.warning{-webkit-box-shadow:0 0 0 #c9ba9b inset;box-shadow:inset 0 0 0 #c9ba9b;background:#fffaf3!important;color:#573a08!important}.semantic_ui .ui.table td.active,.semantic_ui .ui.table tr.active{-webkit-box-shadow:0 0 0 rgba(0,0,0,.87) inset;box-shadow:inset 0 0 0 rgba(0,0,0,.87);background:#e0e0e0!important;color:rgba(0,0,0,.87)!important}.semantic_ui .ui.table tr.disabled:hover,.semantic_ui .ui.table tr.disabled td,.semantic_ui .ui.table tr:hover td.disabled,.semantic_ui .ui.table tr td.disabled{pointer-events:none;color:rgba(40,40,40,.3)}@media only screen and (max-width:991px){.semantic_ui .ui[class*="tablet stackable"].table,.semantic_ui .ui[class*="tablet stackable"].table tbody,.semantic_ui .ui[class*="tablet stackable"].table tr,.semantic_ui .ui[class*="tablet stackable"].table tr>td,.semantic_ui .ui[class*="tablet stackable"].table tr>th{width:100%!important;display:block!important}.semantic_ui .ui[class*="tablet stackable"].table{padding:0}.semantic_ui .ui[class*="tablet stackable"].table tfoot,.semantic_ui .ui[class*="tablet stackable"].table thead{display:block}.semantic_ui .ui[class*="tablet stackable"].table tr{padding-top:1em;padding-bottom:1em;-webkit-box-shadow:0 -1px 0 0 rgba(0,0,0,.1) inset!important;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1)!important}.semantic_ui .ui[class*="tablet stackable"].table tr>td,.semantic_ui .ui[class*="tablet stackable"].table tr>th{background:none;border:none!important;padding:.25em .75em;-webkit-box-shadow:none!important;box-shadow:none!important}.semantic_ui .ui.definition[class*="tablet stackable"].table thead th:first-child{-webkit-box-shadow:none!important;box-shadow:none!important}}.semantic_ui .ui.table[class*="left aligned"],.semantic_ui .ui.table [class*="left aligned"]{text-align:left}.semantic_ui .ui.table[class*="center aligned"],.semantic_ui .ui.table [class*="center aligned"]{text-align:center}.semantic_ui .ui.table[class*="right aligned"],.semantic_ui .ui.table [class*="right aligned"]{text-align:right}.semantic_ui .ui.table[class*="top aligned"],.semantic_ui .ui.table [class*="top aligned"]{vertical-align:top}.semantic_ui .ui.table[class*="middle aligned"],.semantic_ui .ui.table [class*="middle aligned"]{vertical-align:middle}.semantic_ui .ui.table[class*="bottom aligned"],.semantic_ui .ui.table [class*="bottom aligned"]{vertical-align:bottom}.semantic_ui .ui.fixed.table{table-layout:fixed}.semantic_ui .ui.fixed.table td,.semantic_ui .ui.fixed.table th{overflow:hidden;text-overflow:ellipsis}.semantic_ui .ui.selectable.table tbody tr:hover,.semantic_ui .ui.table tbody tr td.selectable:hover{background:rgba(0,0,0,.05)!important;color:rgba(0,0,0,.95)!important}.semantic_ui .ui.inverted.table tbody tr td.selectable:hover,.semantic_ui .ui.selectable.inverted.table tbody tr:hover{background:hsla(0,0%,100%,.08)!important;color:#fff!important}.semantic_ui .ui.table tbody tr td.selectable{padding:0}.semantic_ui .ui.table tbody tr td.selectable>a:not(.ui){display:block;color:inherit;padding:.78571429em}.semantic_ui .ui.selectable.table tr.error:hover,.semantic_ui .ui.selectable.table tr:hover td.error,.semantic_ui .ui.table tr td.selectable.error:hover{background:#ffe7e7!important;color:#943634!important}.semantic_ui .ui.selectable.table tr.warning:hover,.semantic_ui .ui.selectable.table tr:hover td.warning,.semantic_ui .ui.table tr td.selectable.warning:hover{background:#fff4e4!important;color:#493107!important}.semantic_ui .ui.selectable.table tr.active:hover,.semantic_ui .ui.selectable.table tr:hover td.active,.semantic_ui .ui.table tr td.selectable.active:hover{background:#e0e0e0!important;color:rgba(0,0,0,.87)!important}.semantic_ui .ui.selectable.table tr.positive:hover,.semantic_ui .ui.selectable.table tr:hover td.positive,.semantic_ui .ui.table tr td.selectable.positive:hover{background:#f7ffe6!important;color:#275b28!important}.semantic_ui .ui.selectable.table tr.negative:hover,.semantic_ui .ui.selectable.table tr:hover td.negative,.semantic_ui .ui.table tr td.selectable.negative:hover{background:#ffe7e7!important;color:#943634!important}.semantic_ui .ui.attached.table{top:0;bottom:0;border-radius:0;margin:0 -1px;width:calc(100% + 2px);max-width:calc(100% + 2px);-webkit-box-shadow:none;box-shadow:none;border:1px solid #d4d4d5}.semantic_ui .ui.attached+.ui.attached.table:not(.top){border-top:none}.semantic_ui .ui[class*="top attached"].table{bottom:0;margin-bottom:0;top:0;margin-top:1em;border-radius:.28571429rem .28571429rem 0 0}.semantic_ui .ui.table[class*="top attached"]:first-child{margin-top:0}.semantic_ui .ui[class*="bottom attached"].table{bottom:0;margin-top:0;top:0;margin-bottom:1em;-webkit-box-shadow:none,none;box-shadow:none,none;border-radius:0 0 .28571429rem .28571429rem}.semantic_ui .ui[class*="bottom attached"].table:last-child{margin-bottom:0}.semantic_ui .ui.striped.table>tr:nth-child(2n),.semantic_ui .ui.striped.table tbody tr:nth-child(2n){background-color:rgba(0,0,50,.02)}.semantic_ui .ui.inverted.striped.table>tr:nth-child(2n),.semantic_ui .ui.inverted.striped.table tbody tr:nth-child(2n){background-color:hsla(0,0%,100%,.05)}.semantic_ui .ui.striped.selectable.selectable.selectable.table tbody tr.active:hover{background:#efefef!important;color:rgba(0,0,0,.95)!important}.semantic_ui .ui.table[class*="single line"],.semantic_ui .ui.table [class*="single line"]{white-space:nowrap}.semantic_ui .ui.one.column.table td{width:100%}.semantic_ui .ui.two.column.table td{width:50%}.semantic_ui .ui.three.column.table td{width:33.33333333%}.semantic_ui .ui.four.column.table td{width:25%}.semantic_ui .ui.five.column.table td{width:20%}.semantic_ui .ui.six.column.table td{width:16.66666667%}.semantic_ui .ui.seven.column.table td{width:14.28571429%}.semantic_ui .ui.eight.column.table td{width:12.5%}.semantic_ui .ui.nine.column.table td{width:11.11111111%}.semantic_ui .ui.ten.column.table td{width:10%}.semantic_ui .ui.eleven.column.table td{width:9.09090909%}.semantic_ui .ui.twelve.column.table td{width:8.33333333%}.semantic_ui .ui.thirteen.column.table td{width:7.69230769%}.semantic_ui .ui.fourteen.column.table td{width:7.14285714%}.semantic_ui .ui.fifteen.column.table td{width:6.66666667%}.semantic_ui .ui.sixteen.column.table td,.semantic_ui .ui.table td.one.wide,.semantic_ui .ui.table th.one.wide{width:6.25%}.semantic_ui .ui.table td.two.wide,.semantic_ui .ui.table th.two.wide{width:12.5%}.semantic_ui .ui.table td.three.wide,.semantic_ui .ui.table th.three.wide{width:18.75%}.semantic_ui .ui.table td.four.wide,.semantic_ui .ui.table th.four.wide{width:25%}.semantic_ui .ui.table td.five.wide,.semantic_ui .ui.table th.five.wide{width:31.25%}.semantic_ui .ui.table td.six.wide,.semantic_ui .ui.table th.six.wide{width:37.5%}.semantic_ui .ui.table td.seven.wide,.semantic_ui .ui.table th.seven.wide{width:43.75%}.semantic_ui .ui.table td.eight.wide,.semantic_ui .ui.table th.eight.wide{width:50%}.semantic_ui .ui.table td.nine.wide,.semantic_ui .ui.table th.nine.wide{width:56.25%}.semantic_ui .ui.table td.ten.wide,.semantic_ui .ui.table th.ten.wide{width:62.5%}.semantic_ui .ui.table td.eleven.wide,.semantic_ui .ui.table th.eleven.wide{width:68.75%}.semantic_ui .ui.table td.twelve.wide,.semantic_ui .ui.table th.twelve.wide{width:75%}.semantic_ui .ui.table td.thirteen.wide,.semantic_ui .ui.table th.thirteen.wide{width:81.25%}.semantic_ui .ui.table td.fourteen.wide,.semantic_ui .ui.table th.fourteen.wide{width:87.5%}.semantic_ui .ui.table td.fifteen.wide,.semantic_ui .ui.table th.fifteen.wide{width:93.75%}.semantic_ui .ui.table td.sixteen.wide,.semantic_ui .ui.table th.sixteen.wide{width:100%}.semantic_ui .ui.sortable.table thead th{cursor:pointer;white-space:nowrap;border-left:1px solid rgba(34,36,38,.15);color:rgba(0,0,0,.87)}.semantic_ui .ui.sortable.table thead th:first-child{border-left:none}.semantic_ui .ui.sortable.table thead th.sorted,.semantic_ui .ui.sortable.table thead th.sorted:hover{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.semantic_ui .ui.sortable.table thead th:after{display:none;font-style:normal;font-weight:400;text-decoration:inherit;content:"";height:1em;width:auto;opacity:.8;margin:0 0 0 .5em;font-family:Icons}.semantic_ui .ui.sortable.table thead th.ascending:after{content:"\F0D8"}.semantic_ui .ui.sortable.table thead th.descending:after{content:"\F0D7"}.semantic_ui .ui.sortable.table th.disabled:hover{cursor:auto;color:rgba(40,40,40,.3)}.semantic_ui .ui.sortable.table thead th:hover{background:rgba(0,0,0,.05);color:rgba(0,0,0,.8)}.semantic_ui .ui.sortable.table thead th.sorted{background:rgba(0,0,0,.05);color:rgba(0,0,0,.95)}.semantic_ui .ui.sortable.table thead th.sorted:after{display:inline-block}.semantic_ui .ui.sortable.table thead th.sorted:hover{background:rgba(0,0,0,.05);color:rgba(0,0,0,.95)}.semantic_ui .ui.inverted.sortable.table thead th.sorted{background:hsla(0,0%,100%,.15) -webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.05)));background:hsla(0,0%,100%,.15) linear-gradient(transparent,rgba(0,0,0,.05));color:#fff}.semantic_ui .ui.inverted.sortable.table thead th:hover{background:hsla(0,0%,100%,.08) -webkit-gradient(linear,left top,left bottom,from(transparent),to(rgba(0,0,0,.05)));background:hsla(0,0%,100%,.08) linear-gradient(transparent,rgba(0,0,0,.05));color:#fff}.semantic_ui .ui.inverted.sortable.table thead th{border-left-color:transparent;border-right-color:transparent}.semantic_ui .ui.collapsing.table{width:auto}.semantic_ui .ui.basic.table{background:transparent;border:1px solid rgba(34,36,38,.15)}.semantic_ui .ui.basic.table,.semantic_ui .ui.basic.table tfoot,.semantic_ui .ui.basic.table thead{-webkit-box-shadow:none;box-shadow:none}.semantic_ui .ui.basic.table th{background:transparent;border-left:none}.semantic_ui .ui.basic.table tbody tr{border-bottom:1px solid rgba(0,0,0,.1)}.semantic_ui .ui.basic.table td{background:transparent}.semantic_ui .ui.basic.striped.table tbody tr:nth-child(2n){background-color:rgba(0,0,0,.05)!important}.semantic_ui .ui[class*="very basic"].table{border:none}.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) td,.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) th{padding:""}.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) td:first-child,.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) th:first-child{padding-left:0}.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) td:last-child,.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) th:last-child{padding-right:0}.semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) thead tr:first-child th{padding-top:0}.semantic_ui .ui.celled.table tr td,.semantic_ui .ui.celled.table tr th{border-left:1px solid rgba(34,36,38,.1)}.semantic_ui .ui.celled.table tr td:first-child,.semantic_ui .ui.celled.table tr th:first-child{border-left:none}.semantic_ui .ui.padded.table th{padding-left:1em;padding-right:1em}.semantic_ui .ui.padded.table td,.semantic_ui .ui.padded.table th{padding:1em}.semantic_ui .ui[class*="very padded"].table th{padding-left:1.5em;padding-right:1.5em}.semantic_ui .ui[class*="very padded"].table td{padding:1.5em}.semantic_ui .ui.compact.table th{padding-left:.7em;padding-right:.7em}.semantic_ui .ui.compact.table td{padding:.5em .7em}.semantic_ui .ui[class*="very compact"].table th{padding-left:.6em;padding-right:.6em}.semantic_ui .ui[class*="very compact"].table td{padding:.4em .6em}.semantic_ui .ui.small.table{font-size:.9em}.semantic_ui .ui.table{font-size:1em}.semantic_ui .ui.large.table{font-size:1.1em}.colored_table table.foo-table.inverted.table a{color:hsla(0,0%,100%,.7)}.colored_table table.foo-table.inverted.table a.checkbox{color:#000}.colored_table table.foo-table.inverted.red.table{background-color:#db2828!important;color:#fff!important}.colored_table table.foo-table.inverted.orange.table{background-color:#f2711c!important;color:#fff!important}.colored_table table.foo-table.inverted.yellow.table{background-color:#fbbd08!important;color:#fff!important}.colored_table table.foo-table.inverted.olive.table{background-color:#b5cc18!important;color:#fff!important}.colored_table table.foo-table.inverted.green.table{background-color:#21ba45!important;color:#fff!important}.colored_table table.foo-table.inverted.teal.table{background-color:#00b5ad!important;color:#fff!important}.colored_table table.foo-table.inverted.blue.table{background-color:#2185d0!important;color:#fff!important}.colored_table table.foo-table.inverted.violet.table{background-color:#6435c9!important;color:#fff!important}.colored_table table.foo-table.inverted.purple.table{background-color:#a333c8!important;color:#fff!important}.colored_table table.foo-table.inverted.pink.table{background-color:#e03997!important;color:#fff!important}.colored_table table.foo-table.inverted.brown.table{background-color:#a5673f!important;color:#fff!important}.colored_table table.foo-table.inverted.grey.table{background-color:#767676!important;color:#fff!important}.colored_table table.foo-table.inverted.black.table{background-color:#1b1c1d!important;color:#fff!important}.colored_table table.foo-table.inverted.table{background:#333;color:hsla(0,0%,100%,.9);border:none}.colored_table table.foo-table.inverted.table th{background-color:rgba(0,0,0,.15);border-color:hsla(0,0%,100%,.1)!important;color:hsla(0,0%,100%,.9)!important}.colored_table table.foo-table.inverted.table tr td{border-color:hsla(0,0%,100%,.1)!important}.colored_table table.foo-table.inverted.hide_all_borders.table tbody td,.colored_table table.foo-table.inverted.hide_all_borders.table tbody th,.colored_table table.foo-table.inverted.hide_all_borders.table thead,.colored_table table.foo-table.inverted.hide_all_borders.table thead td,.colored_table table.foo-table.inverted.hide_all_borders.table thead th,.colored_table table.foo-table.inverted.hide_all_borders.table thead tr{border-color:transparent!important}.colored_table table.foo-table.inverted.table tr.disabled:hover td,.colored_table table.foo-table.inverted.table tr.disabled td,.colored_table table.foo-table.inverted.table tr:hover td.disabled,.colored_table table.foo-table.inverted.table tr td.disabled{pointer-events:none;color:hsla(0,0%,88%,.3)}.colored_table table.foo-table.inverted.definition.table tfoot:not(.full-width) th:first-child,.colored_table table.foo-table.inverted.definition.table thead:not(.full-width) th:first-child{background:#fff}.colored_table table.foo-table.inverted.definition.table tr td:first-child{background:hsla(0,0%,100%,.02);color:#fff}.colored_table table.foo-table.inverted.table-striped tbody tr:nth-of-type(odd){background-color:hsla(0,0%,100%,.05)}.colored_table table.foo-table.inverted.table-hover>tbody>tr:hover{background-color:hsla(0,0%,100%,.15)}.colored_table table.foo-table.inverted .pagination>.active>a,.colored_table table.foo-table.inverted .pagination>.active>a:focus,.colored_table table.foo-table.inverted .pagination>.active>a:hover,.colored_table table.foo-table.inverted .pagination>.active>span,.colored_table table.foo-table.inverted .pagination>.active>span:focus,.colored_table table.foo-table.inverted .pagination>.active>span:hover{background-color:rgba(0,0,0,.15);border-color:hsla(0,0%,100%,.1)!important;color:hsla(0,0%,100%,.9)!important;-webkit-box-shadow:inset 0 0 0 hsla(0,0%,100%,.1),0 1px 0 hsla(0,0%,100%,.1);box-shadow:inset 0 0 0 hsla(0,0%,100%,.1),0 1px 0 hsla(0,0%,100%,.1)}.colored_table table.foo-table.inverted .pagination a.footable-page-link{color:rgba(0,0,0,.5)}.colored_table table.foo-table.inverted .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){background-color:hsla(0,0%,100%,.1);border-color:hsla(0,0%,100%,.1)!important;color:hsla(0,0%,100%,.9)!important}
11
- /*# sourceMappingURL=ninja-tables-public.css.map*/
 
 
 
 
 
 
 
 
 
 
 
assets/css/ninja-tables-public.min.css DELETED
@@ -1,1764 +0,0 @@
1
- .foo-table span.label.label-default {
2
- display: none;
3
- visibility: hidden;
4
- }
5
-
6
- .foo-table table.footable-details tr th {
7
- white-space: initial;
8
- overflow: visible !important;
9
- text-overflow: unset !important;
10
- }
11
-
12
- .foo-table tr.footable-filtering th {
13
- overflow: visible !important;
14
- }
15
-
16
- .foo-table .pagination {
17
- border: none;
18
- padding: 0px;
19
- font-weight: 500;
20
- }
21
-
22
- .foo-table button.btn.btn-default.dropdown-toggle {
23
- right: 0px;
24
- left: 0px;
25
- }
26
-
27
- .foo-table li.dropdown-header {
28
- padding-left: 20px;
29
- padding-bottom: 5px;
30
- color: #333333;
31
- }
32
-
33
- .foo-table ul.dropdown-menu.dropdown-menu-right li:last-child a {
34
- border-bottom: 0px !important;
35
- -webkit-box-shadow: none;
36
- box-shadow: none;
37
- }
38
-
39
- .foo-table ul.dropdown-menu.dropdown-menu-right li a:hover {
40
- -webkit-box-shadow: inset 0 0 0 transparent, 0 1px 0 black;
41
- box-shadow: inset 0 0 0 transparent, 0 1px 0 black;
42
- }
43
-
44
- .foo-table span.footable-toggle {
45
- cursor: pointer;
46
- }
47
-
48
- .footable_parent {
49
- overflow-x: auto;
50
- }
51
-
52
- @font-face {
53
- font-family: "ninja-tables-fontawesome";
54
- src: url(/fonts/ninja-tables-fontawesome.eot?0fb29fbec7db9ea5c763221346490d6f);
55
- src: url(/fonts/ninja-tables-fontawesome.eot?0fb29fbec7db9ea5c763221346490d6f) format("embedded-opentype"), url(/fonts/ninja-tables-fontawesome.woff?bc6b6cc2d737de1e7016d2a79d7a7b96) format("woff"), url(/fonts/ninja-tables-fontawesome.ttf?cbdbbb96491338197ebb7894b76c926a) format("truetype"), url(/fonts/ninja-tables-fontawesome.svg?2efdf20b500df61d7043da16a83f00fc) format("svg");
56
- font-weight: normal;
57
- font-style: normal;
58
- }
59
-
60
- [data-icon]:before {
61
- font-family: "ninja-tables-fontawesome" !important;
62
- content: attr(data-icon);
63
- font-style: normal !important;
64
- font-weight: normal !important;
65
- font-variant: normal !important;
66
- text-transform: none !important;
67
- speak: none;
68
- line-height: 1;
69
- -webkit-font-smoothing: antialiased;
70
- -moz-osx-font-smoothing: grayscale;
71
- }
72
-
73
- [class^="fooicon-"]:before,
74
- [class*=" fooicon-"]:before {
75
- font-family: "ninja-tables-fontawesome" !important;
76
- font-style: normal !important;
77
- font-weight: normal !important;
78
- font-variant: normal !important;
79
- text-transform: none !important;
80
- speak: none;
81
- line-height: 1;
82
- -webkit-font-smoothing: antialiased;
83
- -moz-osx-font-smoothing: grayscale;
84
- }
85
-
86
- .fooicon-search:before {
87
- content: "\F002";
88
- }
89
-
90
- .fooicon-sort-desc:before {
91
- content: "\F161";
92
- }
93
-
94
- .fooicon-sort-asc:before {
95
- content: "\F160";
96
- }
97
-
98
- .fooicon-sort:before {
99
- content: "\F0DC";
100
- }
101
-
102
- .fooicon-minus:before {
103
- content: "\F068";
104
- }
105
-
106
- .fooicon-plus:before {
107
- content: "\F067";
108
- }
109
-
110
- .fooicon-circle-o-notch:before {
111
- content: "\E000";
112
- }
113
-
114
- .fooicon-remove-1:before {
115
- content: "\F00D";
116
- }
117
-
118
- .fooicon-loader-alt:before {
119
- content: "\F01";
120
- }
121
-
122
- .fooicon-refresh:before {
123
- content: "\E001";
124
- }
125
-
126
- .fooicon-loader:before {
127
- content: "\F01E";
128
- }
129
-
130
- .bootstrap3 table {
131
- background-color: transparent;
132
- }
133
-
134
- .bootstrap3 caption {
135
- padding-top: 8px;
136
- padding-bottom: 8px;
137
- color: #777;
138
- text-align: left;
139
- }
140
-
141
- .bootstrap3 th {
142
- text-align: left;
143
- }
144
-
145
- .bootstrap3 .table {
146
- width: 100%;
147
- max-width: 100%;
148
- margin-bottom: 20px;
149
- }
150
-
151
- .bootstrap3 .table > thead > tr > th,
152
- .bootstrap3 .table > tbody > tr > th,
153
- .bootstrap3 .table > tfoot > tr > th,
154
- .bootstrap3 .table > thead > tr > td,
155
- .bootstrap3 .table > tbody > tr > td,
156
- .bootstrap3 .table > tfoot > tr > td {
157
- padding: 8px;
158
- line-height: 1.42857143;
159
- vertical-align: top;
160
- border-top: 1px solid #ddd;
161
- }
162
-
163
- .bootstrap3 .table > thead > tr > th {
164
- vertical-align: bottom;
165
- border-bottom: 2px solid #ddd;
166
- }
167
-
168
- .bootstrap3 .table > caption + thead > tr:first-child > th,
169
- .bootstrap3 .table > colgroup + thead > tr:first-child > th,
170
- .bootstrap3 .table > thead:first-child > tr:first-child > th,
171
- .bootstrap3 .table > caption + thead > tr:first-child > td,
172
- .bootstrap3 .table > colgroup + thead > tr:first-child > td,
173
- .bootstrap3 .table > thead:first-child > tr:first-child > td {
174
- border-top: 0;
175
- }
176
-
177
- .bootstrap3 .table > tbody + tbody {
178
- border-top: 2px solid #ddd;
179
- }
180
-
181
- .bootstrap3 .table .table {
182
- background-color: #fff;
183
- }
184
-
185
- .bootstrap3 .table-condensed > thead > tr > th,
186
- .bootstrap3 .table-condensed > tbody > tr > th,
187
- .bootstrap3 .table-condensed > tfoot > tr > th,
188
- .bootstrap3 .table-condensed > thead > tr > td,
189
- .bootstrap3 .table-condensed > tbody > tr > td,
190
- .bootstrap3 .table-condensed > tfoot > tr > td {
191
- padding: 5px;
192
- }
193
-
194
- .bootstrap3 .table-bordered {
195
- border: 1px solid #ddd;
196
- }
197
-
198
- .bootstrap3 .table-bordered > thead > tr > th,
199
- .bootstrap3 .table-bordered > tbody > tr > th,
200
- .bootstrap3 .table-bordered > tfoot > tr > th,
201
- .bootstrap3 .table-bordered > thead > tr > td,
202
- .bootstrap3 .table-bordered > tbody > tr > td,
203
- .bootstrap3 .table-bordered > tfoot > tr > td {
204
- border: 1px solid #ddd;
205
- }
206
-
207
- .bootstrap3 .table-bordered > thead > tr > th,
208
- .bootstrap3 .table-bordered > thead > tr > td {
209
- border-bottom-width: 2px;
210
- }
211
-
212
- .bootstrap3 .table-striped > tbody > tr:nth-of-type(odd) {
213
- background-color: #f9f9f9;
214
- }
215
-
216
- .bootstrap3 .table-hover > tbody > tr:hover {
217
- background-color: #f5f5f5;
218
- }
219
-
220
- .bootstrap3 table col[class*="col-"] {
221
- position: static;
222
- display: table-column;
223
- float: none;
224
- }
225
-
226
- .bootstrap3 table td[class*="col-"],
227
- .bootstrap3 table th[class*="col-"] {
228
- position: static;
229
- display: table-cell;
230
- float: none;
231
- }
232
-
233
- .bootstrap3 .table > thead > tr > td.active,
234
- .bootstrap3 .table > tbody > tr > td.active,
235
- .bootstrap3 .table > tfoot > tr > td.active,
236
- .bootstrap3 .table > thead > tr > th.active,
237
- .bootstrap3 .table > tbody > tr > th.active,
238
- .bootstrap3 .table > tfoot > tr > th.active,
239
- .bootstrap3 .table > thead > tr.active > td,
240
- .bootstrap3 .table > tbody > tr.active > td,
241
- .bootstrap3 .table > tfoot > tr.active > td,
242
- .bootstrap3 .table > thead > tr.active > th,
243
- .bootstrap3 .table > tbody > tr.active > th,
244
- .bootstrap3 .table > tfoot > tr.active > th {
245
- background-color: #f5f5f5;
246
- }
247
-
248
- .bootstrap3 .table-hover > tbody > tr > td.active:hover,
249
- .bootstrap3 .table-hover > tbody > tr > th.active:hover,
250
- .bootstrap3 .table-hover > tbody > tr.active:hover > td,
251
- .bootstrap3 .table-hover > tbody > tr:hover > .active,
252
- .bootstrap3 .table-hover > tbody > tr.active:hover > th {
253
- background-color: #e8e8e8;
254
- }
255
-
256
- .bootstrap3 .table > thead > tr > td.success,
257
- .bootstrap3 .table > tbody > tr > td.success,
258
- .bootstrap3 .table > tfoot > tr > td.success,
259
- .bootstrap3 .table > thead > tr > th.success,
260
- .bootstrap3 .table > tbody > tr > th.success,
261
- .bootstrap3 .table > tfoot > tr > th.success,
262
- .bootstrap3 .table > thead > tr.success > td,
263
- .bootstrap3 .table > tbody > tr.success > td,
264
- .bootstrap3 .table > tfoot > tr.success > td,
265
- .bootstrap3 .table > thead > tr.success > th,
266
- .bootstrap3 .table > tbody > tr.success > th,
267
- .bootstrap3 .table > tfoot > tr.success > th {
268
- background-color: #dff0d8;
269
- }
270
-
271
- .bootstrap3 .table-hover > tbody > tr > td.success:hover,
272
- .bootstrap3 .table-hover > tbody > tr > th.success:hover,
273
- .bootstrap3 .table-hover > tbody > tr.success:hover > td,
274
- .bootstrap3 .table-hover > tbody > tr:hover > .success,
275
- .bootstrap3 .table-hover > tbody > tr.success:hover > th {
276
- background-color: #d0e9c6;
277
- }
278
-
279
- .bootstrap3 .table > thead > tr > td.info,
280
- .bootstrap3 .table > tbody > tr > td.info,
281
- .bootstrap3 .table > tfoot > tr > td.info,
282
- .bootstrap3 .table > thead > tr > th.info,
283
- .bootstrap3 .table > tbody > tr > th.info,
284
- .bootstrap3 .table > tfoot > tr > th.info,
285
- .bootstrap3 .table > thead > tr.info > td,
286
- .bootstrap3 .table > tbody > tr.info > td,
287
- .bootstrap3 .table > tfoot > tr.info > td,
288
- .bootstrap3 .table > thead > tr.info > th,
289
- .bootstrap3 .table > tbody > tr.info > th,
290
- .bootstrap3 .table > tfoot > tr.info > th {
291
- background-color: #d9edf7;
292
- }
293
-
294
- .bootstrap3 .table-hover > tbody > tr > td.info:hover,
295
- .bootstrap3 .table-hover > tbody > tr > th.info:hover,
296
- .bootstrap3 .table-hover > tbody > tr.info:hover > td,
297
- .bootstrap3 .table-hover > tbody > tr:hover > .info,
298
- .bootstrap3 .table-hover > tbody > tr.info:hover > th {
299
- background-color: #c4e3f3;
300
- }
301
-
302
- .bootstrap3 .table > thead > tr > td.warning,
303
- .bootstrap3 .table > tbody > tr > td.warning,
304
- .bootstrap3 .table > tfoot > tr > td.warning,
305
- .bootstrap3 .table > thead > tr > th.warning,
306
- .bootstrap3 .table > tbody > tr > th.warning,
307
- .bootstrap3 .table > tfoot > tr > th.warning,
308
- .bootstrap3 .table > thead > tr.warning > td,
309
- .bootstrap3 .table > tbody > tr.warning > td,
310
- .bootstrap3 .table > tfoot > tr.warning > td,
311
- .bootstrap3 .table > thead > tr.warning > th,
312
- .bootstrap3 .table > tbody > tr.warning > th,
313
- .bootstrap3 .table > tfoot > tr.warning > th {
314
- background-color: #fcf8e3;
315
- }
316
-
317
- .bootstrap3 .table-hover > tbody > tr > td.warning:hover,
318
- .bootstrap3 .table-hover > tbody > tr > th.warning:hover,
319
- .bootstrap3 .table-hover > tbody > tr.warning:hover > td,
320
- .bootstrap3 .table-hover > tbody > tr:hover > .warning,
321
- .bootstrap3 .table-hover > tbody > tr.warning:hover > th {
322
- background-color: #faf2cc;
323
- }
324
-
325
- .bootstrap3 .table > thead > tr > td.danger,
326
- .bootstrap3 .table > tbody > tr > td.danger,
327
- .bootstrap3 .table > tfoot > tr > td.danger,
328
- .bootstrap3 .table > thead > tr > th.danger,
329
- .bootstrap3 .table > tbody > tr > th.danger,
330
- .bootstrap3 .table > tfoot > tr > th.danger,
331
- .bootstrap3 .table > thead > tr.danger > td,
332
- .bootstrap3 .table > tbody > tr.danger > td,
333
- .bootstrap3 .table > tfoot > tr.danger > td,
334
- .bootstrap3 .table > thead > tr.danger > th,
335
- .bootstrap3 .table > tbody > tr.danger > th,
336
- .bootstrap3 .table > tfoot > tr.danger > th {
337
- background-color: #f2dede;
338
- }
339
-
340
- .bootstrap3 .table-hover > tbody > tr > td.danger:hover,
341
- .bootstrap3 .table-hover > tbody > tr > th.danger:hover,
342
- .bootstrap3 .table-hover > tbody > tr.danger:hover > td,
343
- .bootstrap3 .table-hover > tbody > tr:hover > .danger,
344
- .bootstrap3 .table-hover > tbody > tr.danger:hover > th {
345
- background-color: #ebcccc;
346
- }
347
-
348
- .bootstrap3 .table-responsive {
349
- min-height: .01%;
350
- overflow-x: auto;
351
- }
352
-
353
- @media screen and (max-width: 767px) {
354
- .bootstrap3 .table-responsive {
355
- width: 100%;
356
- margin-bottom: 15px;
357
- overflow-y: hidden;
358
- -ms-overflow-style: -ms-autohiding-scrollbar;
359
- border: 1px solid #ddd;
360
- }
361
-
362
- .bootstrap3 .table-responsive > .table {
363
- margin-bottom: 0;
364
- }
365
-
366
- .bootstrap3 .table-responsive > .table > thead > tr > th,
367
- .bootstrap3 .table-responsive > .table > tbody > tr > th,
368
- .bootstrap3 .table-responsive > .table > tfoot > tr > th,
369
- .bootstrap3 .table-responsive > .table > thead > tr > td,
370
- .bootstrap3 .table-responsive > .table > tbody > tr > td,
371
- .bootstrap3 .table-responsive > .table > tfoot > tr > td {
372
- white-space: nowrap;
373
- }
374
-
375
- .bootstrap3 .table-responsive > .table-bordered {
376
- border: 0;
377
- }
378
-
379
- .bootstrap3 .table-responsive > .table-bordered > thead > tr > th:first-child,
380
- .bootstrap3 .table-responsive > .table-bordered > tbody > tr > th:first-child,
381
- .bootstrap3 .table-responsive > .table-bordered > tfoot > tr > th:first-child,
382
- .bootstrap3 .table-responsive > .table-bordered > thead > tr > td:first-child,
383
- .bootstrap3 .table-responsive > .table-bordered > tbody > tr > td:first-child,
384
- .bootstrap3 .table-responsive > .table-bordered > tfoot > tr > td:first-child {
385
- border-left: 0;
386
- }
387
-
388
- .bootstrap3 .table-responsive > .table-bordered > thead > tr > th:last-child,
389
- .bootstrap3 .table-responsive > .table-bordered > tbody > tr > th:last-child,
390
- .bootstrap3 .table-responsive > .table-bordered > tfoot > tr > th:last-child,
391
- .bootstrap3 .table-responsive > .table-bordered > thead > tr > td:last-child,
392
- .bootstrap3 .table-responsive > .table-bordered > tbody > tr > td:last-child,
393
- .bootstrap3 .table-responsive > .table-bordered > tfoot > tr > td:last-child {
394
- border-right: 0;
395
- }
396
-
397
- .bootstrap3 .table-responsive > .table-bordered > tbody > tr:last-child > th,
398
- .bootstrap3 .table-responsive > .table-bordered > tfoot > tr:last-child > th,
399
- .bootstrap3 .table-responsive > .table-bordered > tbody > tr:last-child > td,
400
- .bootstrap3 .table-responsive > .table-bordered > tfoot > tr:last-child > td {
401
- border-bottom: 0;
402
- }
403
- }
404
-
405
- .bootstrap4 .table {
406
- width: 100%;
407
- max-width: 100%;
408
- margin-bottom: 1rem;
409
- background-color: transparent;
410
- }
411
-
412
- .bootstrap4 .table th,
413
- .bootstrap4 .table td {
414
- padding: 0.75rem;
415
- vertical-align: top;
416
- border-top: 1px solid #e9ecef;
417
- }
418
-
419
- .bootstrap4 .table thead th {
420
- vertical-align: bottom;
421
- border-bottom: 2px solid #e9ecef;
422
- }
423
-
424
- .bootstrap4 .table tbody + tbody {
425
- border-top: 2px solid #e9ecef;
426
- }
427
-
428
- .bootstrap4 .table .table {
429
- background-color: #fff;
430
- color: black;
431
- }
432
-
433
- .bootstrap4 .table-sm th,
434
- .bootstrap4 .table-sm td {
435
- padding: 0.3rem;
436
- }
437
-
438
- .bootstrap4 .table-bordered {
439
- border: 1px solid #e9ecef;
440
- }
441
-
442
- .bootstrap4 .table-bordered th,
443
- .bootstrap4 .table-bordered td {
444
- border: 1px solid #e9ecef;
445
- }
446
-
447
- .bootstrap4 .table-bordered thead th,
448
- .bootstrap4 .table-bordered thead td {
449
- border-bottom-width: 2px;
450
- }
451
-
452
- .bootstrap4 .table-striped tbody tr:nth-of-type(odd) {
453
- background-color: rgba(0, 0, 0, 0.05);
454
- }
455
-
456
- .bootstrap4 .table-hover tbody tr:hover {
457
- background-color: rgba(0, 0, 0, 0.075);
458
- }
459
-
460
- .bootstrap4 .table-primary,
461
- .bootstrap4 .table-primary > th,
462
- .bootstrap4 .table-primary > td {
463
- background-color: #b8daff;
464
- }
465
-
466
- .bootstrap4 .table-hover .table-primary:hover {
467
- background-color: #9fcdff;
468
- }
469
-
470
- .bootstrap4 .table-hover .table-primary:hover > td,
471
- .bootstrap4 .table-hover .table-primary:hover > th {
472
- background-color: #9fcdff;
473
- }
474
-
475
- .bootstrap4 .table-secondary,
476
- .bootstrap4 .table-secondary > th,
477
- .bootstrap4 .table-secondary > td {
478
- background-color: #dddfe2;
479
- }
480
-
481
- .bootstrap4 .table-hover .table-secondary:hover {
482
- background-color: #cfd2d6;
483
- }
484
-
485
- .bootstrap4 .table-hover .table-secondary:hover > td,
486
- .bootstrap4 .table-hover .table-secondary:hover > th {
487
- background-color: #cfd2d6;
488
- }
489
-
490
- .bootstrap4 .table-success,
491
- .bootstrap4 .table-success > th,
492
- .bootstrap4 .table-success > td {
493
- background-color: #c3e6cb;
494
- }
495
-
496
- .bootstrap4 .table-hover .table-success:hover {
497
- background-color: #b1dfbb;
498
- }
499
-
500
- .bootstrap4 .table-hover .table-success:hover > td,
501
- .bootstrap4 .table-hover .table-success:hover > th {
502
- background-color: #b1dfbb;
503
- }
504
-
505
- .bootstrap4 .table-info,
506
- .bootstrap4 .table-info > th,
507
- .bootstrap4 .table-info > td {
508
- background-color: #bee5eb;
509
- }
510
-
511
- .bootstrap4 .table-hover .table-info:hover {
512
- background-color: #abdde5;
513
- }
514
-
515
- .bootstrap4 .table-hover .table-info:hover > td,
516
- .bootstrap4 .table-hover .table-info:hover > th {
517
- background-color: #abdde5;
518
- }
519
-
520
- .bootstrap4 .table-warning,
521
- .bootstrap4 .table-warning > th,
522
- .bootstrap4 .table-warning > td {
523
- background-color: #ffeeba;
524
- }
525
-
526
- .bootstrap4 .table-hover .table-warning:hover {
527
- background-color: #ffe8a1;
528
- }
529
-
530
- .bootstrap4 .table-hover .table-warning:hover > td,
531
- .bootstrap4 .table-hover .table-warning:hover > th {
532
- background-color: #ffe8a1;
533
- }
534
-
535
- .bootstrap4 .table-danger,
536
- .bootstrap4 .table-danger > th,
537
- .bootstrap4 .table-danger > td {
538
- background-color: #f5c6cb;
539
- }
540
-
541
- .bootstrap4 .table-hover .table-danger:hover {
542
- background-color: #f1b0b7;
543
- }
544
-
545
- .bootstrap4 .table-hover .table-danger:hover > td,
546
- .bootstrap4 .table-hover .table-danger:hover > th {
547
- background-color: #f1b0b7;
548
- }
549
-
550
- .bootstrap4 .table-light,
551
- .bootstrap4 .table-light > th,
552
- .bootstrap4 .table-light > td {
553
- background-color: #fdfdfe;
554
- }
555
-
556
- .bootstrap4 .table-hover .table-light:hover {
557
- background-color: #ececf6;
558
- }
559
-
560
- .bootstrap4 .table-hover .table-light:hover > td,
561
- .bootstrap4 .table-hover .table-light:hover > th {
562
- background-color: #ececf6;
563
- }
564
-
565
- .bootstrap4 .table-dark,
566
- .bootstrap4 .table-dark > th,
567
- .bootstrap4 .table-dark > td {
568
- background-color: #c6c8ca;
569
- }
570
-
571
- .bootstrap4 .table-hover .table-dark:hover {
572
- background-color: #b9bbbe;
573
- }
574
-
575
- .bootstrap4 .table-hover .table-dark:hover > td,
576
- .bootstrap4 .table-hover .table-dark:hover > th {
577
- background-color: #b9bbbe;
578
- }
579
-
580
- .bootstrap4 .table-active,
581
- .bootstrap4 .table-active > th,
582
- .bootstrap4 .table-active > td {
583
- background-color: rgba(0, 0, 0, 0.075);
584
- }
585
-
586
- .bootstrap4 .table-hover .table-active:hover {
587
- background-color: rgba(0, 0, 0, 0.075);
588
- }
589
-
590
- .bootstrap4 .table-hover .table-active:hover > td,
591
- .bootstrap4 .table-hover .table-active:hover > th {
592
- background-color: rgba(0, 0, 0, 0.075);
593
- }
594
-
595
- .bootstrap4 .thead-inverse th {
596
- color: #fff;
597
- background-color: #212529;
598
- }
599
-
600
- .bootstrap4 .thead-default th {
601
- color: #495057;
602
- background-color: #e9ecef;
603
- }
604
-
605
- .bootstrap4 .table-inverse {
606
- color: #fff;
607
- background-color: #212529;
608
- }
609
-
610
- .bootstrap4 .table-inverse th,
611
- .bootstrap4 .table-inverse td,
612
- .bootstrap4 .table-inverse thead th {
613
- border-color: #32383e;
614
- }
615
-
616
- .bootstrap4 .table-inverse.table-bordered {
617
- border: 0;
618
- }
619
-
620
- .bootstrap4 .table-inverse.table-striped tbody tr:nth-of-type(odd) {
621
- background-color: rgba(255, 255, 255, 0.05);
622
- }
623
-
624
- .bootstrap4 .table-inverse.table-hover tbody tr:hover {
625
- background-color: rgba(255, 255, 255, 0.075);
626
- }
627
-
628
- @media (max-width: 991px) {
629
- .bootstrap4 .table-responsive {
630
- display: block;
631
- width: 100%;
632
- overflow-x: auto;
633
- -ms-overflow-style: -ms-autohiding-scrollbar;
634
- }
635
-
636
- .bootstrap4 .table-responsive.table-bordered {
637
- border: 0;
638
- }
639
- }
640
-
641
- .semantic_ui {
642
- /*!
643
- * # Semantic UI 2.2.12 - Table
644
- * http://github.com/semantic-org/semantic-ui/
645
- *
646
- *
647
- * Released under the MIT license
648
- * http://opensource.org/licenses/MIT
649
- *
650
- */
651
- /*******************************
652
- Table
653
- *******************************/
654
- /* Prototype */
655
- /*******************************
656
- Parts
657
- *******************************/
658
- /* Table Content */
659
- /* Headers */
660
- /* Footer */
661
- /* Table Row */
662
- /* Table Cells */
663
- /* Icons */
664
- /* Table Segment */
665
- /*******************************
666
- Coupling
667
- *******************************/
668
- /* UI Image */
669
- /*******************************
670
- Types
671
- *******************************/
672
- /*--------------
673
- Complex
674
- ---------------*/
675
- /*--------------
676
- Definition
677
- ---------------*/
678
- /* Remove Border */
679
- /* Highlight Defining Column */
680
- /* Fix 2nd Column */
681
- /*******************************
682
- States
683
- *******************************/
684
- /*--------------
685
- Positive
686
- ---------------*/
687
- /*--------------
688
- Negative
689
- ---------------*/
690
- /*--------------
691
- Error
692
- ---------------*/
693
- /*--------------
694
- Warning
695
- ---------------*/
696
- /*--------------
697
- Active
698
- ---------------*/
699
- /*--------------
700
- Disabled
701
- ---------------*/
702
- /*******************************
703
- Variations
704
- *******************************/
705
- /*--------------
706
- Stackable
707
- ---------------*/
708
- /*--------------
709
- Text Alignment
710
- ---------------*/
711
- /*------------------
712
- Vertical Alignment
713
- ------------------*/
714
- /*--------------
715
- Fixed
716
- ---------------*/
717
- /*--------------
718
- Selectable
719
- ---------------*/
720
- /* Selectable Cell Link */
721
- /* Other States */
722
- /*-------------------
723
- Attached
724
- --------------------*/
725
- /* Middle */
726
- /* Top */
727
- /* Bottom */
728
- /*--------------
729
- Striped
730
- ---------------*/
731
- /* Table Striping */
732
- /* Stripes */
733
- /* Allow striped active hover */
734
- /*--------------
735
- Single Line
736
- ---------------*/
737
- /*--------------
738
- Column Count
739
- ---------------*/
740
- /* Grid Based */
741
- /* Column Width */
742
- /*--------------
743
- Sortable
744
- ---------------*/
745
- /* Hover */
746
- /* Sorted */
747
- /* Sorted Hover */
748
- /* Inverted */
749
- /*--------------
750
- Collapsing
751
- ---------------*/
752
- /*--------------
753
- Basic
754
- ---------------*/
755
- /* Very Basic */
756
- /*--------------
757
- Celled
758
- ---------------*/
759
- /*--------------
760
- Padded
761
- ---------------*/
762
- /* Very */
763
- /*--------------
764
- Compact
765
- ---------------*/
766
- /* Very */
767
- /*--------------
768
- Sizes
769
- ---------------*/
770
- /* Small */
771
- /* Standard */
772
- /* Large */
773
- }
774
-
775
- .semantic_ui .ui.table {
776
- width: 100%;
777
- background: #FFFFFF;
778
- margin: 1em 0em;
779
- border: 1px solid rgba(34, 36, 38, 0.15);
780
- -webkit-box-shadow: none;
781
- box-shadow: none;
782
- border-radius: 0.28571429rem;
783
- text-align: left;
784
- color: rgba(0, 0, 0, 0.87);
785
- border-collapse: separate;
786
- border-spacing: 0px;
787
- }
788
-
789
- .semantic_ui .ui.table:first-child {
790
- margin-top: 0em;
791
- }
792
-
793
- .semantic_ui .ui.table:last-child {
794
- margin-bottom: 0em;
795
- }
796
-
797
- .semantic_ui .ui.table th,
798
- .semantic_ui .ui.table td {
799
- -webkit-transition: background 0.1s ease, color 0.1s ease;
800
- transition: background 0.1s ease, color 0.1s ease;
801
- }
802
-
803
- .semantic_ui .ui.table thead {
804
- -webkit-box-shadow: none;
805
- box-shadow: none;
806
- }
807
-
808
- .semantic_ui .ui.table thead th {
809
- cursor: auto;
810
- background: #F9FAFB;
811
- text-align: inherit;
812
- color: rgba(0, 0, 0, 0.87);
813
- padding: 0.92857143em 0.78571429em;
814
- vertical-align: inherit;
815
- font-style: none;
816
- font-weight: bold;
817
- text-transform: none;
818
- border-bottom: 1px solid rgba(34, 36, 38, 0.1);
819
- border-left: none;
820
- }
821
-
822
- .semantic_ui .ui.table thead tr > th:first-child {
823
- border-left: none;
824
- }
825
-
826
- .semantic_ui .ui.table thead tr:first-child > th:first-child {
827
- border-radius: 0.28571429rem 0em 0em 0em;
828
- }
829
-
830
- .semantic_ui .ui.table thead tr:first-child > th:last-child {
831
- border-radius: 0em 0.28571429rem 0em 0em;
832
- }
833
-
834
- .semantic_ui .ui.table thead tr:first-child > th:only-child {
835
- border-radius: 0.28571429rem 0.28571429rem 0em 0em;
836
- }
837
-
838
- .semantic_ui .ui.table tfoot {
839
- -webkit-box-shadow: none;
840
- box-shadow: none;
841
- }
842
-
843
- .semantic_ui .ui.table tfoot th {
844
- cursor: auto;
845
- border-top: 1px solid rgba(34, 36, 38, 0.15);
846
- background: #F9FAFB;
847
- text-align: inherit;
848
- color: rgba(0, 0, 0, 0.87);
849
- padding: 0.78571429em 0.78571429em;
850
- vertical-align: middle;
851
- font-style: normal;
852
- font-weight: normal;
853
- text-transform: none;
854
- }
855
-
856
- .semantic_ui .ui.table tfoot tr > th:first-child {
857
- border-left: none;
858
- }
859
-
860
- .semantic_ui .ui.table tfoot tr:first-child > th:first-child {
861
- border-radius: 0em 0em 0em 0.28571429rem;
862
- }
863
-
864
- .semantic_ui .ui.table tfoot tr:first-child > th:last-child {
865
- border-radius: 0em 0em 0.28571429rem 0em;
866
- }
867
-
868
- .semantic_ui .ui.table tfoot tr:first-child > th:only-child {
869
- border-radius: 0em 0em 0.28571429rem 0.28571429rem;
870
- }
871
-
872
- .semantic_ui .ui.table tr td {
873
- border-top: 1px solid rgba(34, 36, 38, 0.1);
874
- }
875
-
876
- .semantic_ui .ui.table tr:first-child td {
877
- border-top: none;
878
- }
879
-
880
- .semantic_ui .ui.table td {
881
- padding: 0.78571429em 0.78571429em;
882
- text-align: inherit;
883
- }
884
-
885
- .semantic_ui .ui.table > .icon {
886
- vertical-align: baseline;
887
- }
888
-
889
- .semantic_ui .ui.table > .icon:only-child {
890
- margin: 0em;
891
- }
892
-
893
- .semantic_ui .ui.table.segment {
894
- padding: 0em;
895
- }
896
-
897
- .semantic_ui .ui.table.segment:after {
898
- display: none;
899
- }
900
-
901
- .semantic_ui .ui.table.segment.stacked:after {
902
- display: block;
903
- }
904
-
905
- .semantic_ui .ui.table th .image,
906
- .semantic_ui .ui.table th .image img,
907
- .semantic_ui .ui.table td .image,
908
- .semantic_ui .ui.table td .image img {
909
- max-width: none;
910
- }
911
-
912
- .semantic_ui .ui.structured.table {
913
- border-collapse: collapse;
914
- }
915
-
916
- .semantic_ui .ui.structured.table thead th {
917
- border-left: none;
918
- border-right: none;
919
- }
920
-
921
- .semantic_ui .ui.structured.sortable.table thead th {
922
- border-left: 1px solid rgba(34, 36, 38, 0.15);
923
- border-right: 1px solid rgba(34, 36, 38, 0.15);
924
- }
925
-
926
- .semantic_ui .ui.structured.basic.table th {
927
- border-left: none;
928
- border-right: none;
929
- }
930
-
931
- .semantic_ui .ui.structured.celled.table tr th,
932
- .semantic_ui .ui.structured.celled.table tr td {
933
- border-left: 1px solid rgba(34, 36, 38, 0.1);
934
- border-right: 1px solid rgba(34, 36, 38, 0.1);
935
- }
936
-
937
- .semantic_ui .ui.definition.table thead:not(.full-width) th:first-child {
938
- pointer-events: none;
939
- background: transparent;
940
- font-weight: normal;
941
- color: rgba(0, 0, 0, 0.4);
942
- -webkit-box-shadow: -1px -1px 0px 1px #FFFFFF;
943
- box-shadow: -1px -1px 0px 1px #FFFFFF;
944
- }
945
-
946
- .semantic_ui .ui.definition.table tfoot:not(.full-width) th:first-child {
947
- pointer-events: none;
948
- background: transparent;
949
- font-weight: rgba(0, 0, 0, 0.4);
950
- color: normal;
951
- -webkit-box-shadow: 1px 1px 0px 1px #FFFFFF;
952
- box-shadow: 1px 1px 0px 1px #FFFFFF;
953
- }
954
-
955
- .semantic_ui .ui.celled.definition.table thead:not(.full-width) th:first-child {
956
- -webkit-box-shadow: 0px -1px 0px 1px #FFFFFF;
957
- box-shadow: 0px -1px 0px 1px #FFFFFF;
958
- }
959
-
960
- .semantic_ui .ui.celled.definition.table tfoot:not(.full-width) th:first-child {
961
- -webkit-box-shadow: 0px 1px 0px 1px #FFFFFF;
962
- box-shadow: 0px 1px 0px 1px #FFFFFF;
963
- }
964
-
965
- .semantic_ui .ui.definition.table tr td:first-child:not(.ignored),
966
- .semantic_ui .ui.definition.table tr td.definition {
967
- background: rgba(0, 0, 0, 0.03);
968
- font-weight: bold;
969
- color: rgba(0, 0, 0, 0.95);
970
- text-transform: '';
971
- -webkit-box-shadow: '';
972
- box-shadow: '';
973
- text-align: '';
974
- font-size: 1em;
975
- padding-left: '';
976
- padding-right: '';
977
- }
978
-
979
- .semantic_ui .ui.definition.table thead:not(.full-width) th:nth-child(2) {
980
- border-left: 1px solid rgba(34, 36, 38, 0.15);
981
- }
982
-
983
- .semantic_ui .ui.definition.table tfoot:not(.full-width) th:nth-child(2) {
984
- border-left: 1px solid rgba(34, 36, 38, 0.15);
985
- }
986
-
987
- .semantic_ui .ui.definition.table td:nth-child(2) {
988
- border-left: 1px solid rgba(34, 36, 38, 0.15);
989
- }
990
-
991
- .semantic_ui .ui.table tr.positive,
992
- .semantic_ui .ui.table td.positive {
993
- -webkit-box-shadow: 0px 0px 0px #A3C293 inset;
994
- box-shadow: 0px 0px 0px #A3C293 inset;
995
- }
996
-
997
- .semantic_ui .ui.table tr.positive,
998
- .semantic_ui .ui.table td.positive {
999
- background: #FCFFF5 !important;
1000
- color: #2C662D !important;
1001
- }
1002
-
1003
- .semantic_ui .ui.table tr.negative,
1004
- .semantic_ui .ui.table td.negative {
1005
- -webkit-box-shadow: 0px 0px 0px #E0B4B4 inset;
1006
- box-shadow: 0px 0px 0px #E0B4B4 inset;
1007
- }
1008
-
1009
- .semantic_ui .ui.table tr.negative,
1010
- .semantic_ui .ui.table td.negative {
1011
- background: #FFF6F6 !important;
1012
- color: #9F3A38 !important;
1013
- }
1014
-
1015
- .semantic_ui .ui.table tr.error,
1016
- .semantic_ui .ui.table td.error {
1017
- -webkit-box-shadow: 0px 0px 0px #E0B4B4 inset;
1018
- box-shadow: 0px 0px 0px #E0B4B4 inset;
1019
- }
1020
-
1021
- .semantic_ui .ui.table tr.error,
1022
- .semantic_ui .ui.table td.error {
1023
- background: #FFF6F6 !important;
1024
- color: #9F3A38 !important;
1025
- }
1026
-
1027
- .semantic_ui .ui.table tr.warning,
1028
- .semantic_ui .ui.table td.warning {
1029
- -webkit-box-shadow: 0px 0px 0px #C9BA9B inset;
1030
- box-shadow: 0px 0px 0px #C9BA9B inset;
1031
- }
1032
-
1033
- .semantic_ui .ui.table tr.warning,
1034
- .semantic_ui .ui.table td.warning {
1035
- background: #FFFAF3 !important;
1036
- color: #573A08 !important;
1037
- }
1038
-
1039
- .semantic_ui .ui.table tr.active,
1040
- .semantic_ui .ui.table td.active {
1041
- -webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.87) inset;
1042
- box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.87) inset;
1043
- }
1044
-
1045
- .semantic_ui .ui.table tr.active,
1046
- .semantic_ui .ui.table td.active {
1047
- background: #E0E0E0 !important;
1048
- color: rgba(0, 0, 0, 0.87) !important;
1049
- }
1050
-
1051
- .semantic_ui .ui.table tr.disabled td,
1052
- .semantic_ui .ui.table tr td.disabled,
1053
- .semantic_ui .ui.table tr.disabled:hover,
1054
- .semantic_ui .ui.table tr:hover td.disabled {
1055
- pointer-events: none;
1056
- color: rgba(40, 40, 40, 0.3);
1057
- }
1058
-
1059
- @media only screen and (max-width: 991px) {
1060
- .semantic_ui {
1061
- /* Definition Table */
1062
- }
1063
-
1064
- .semantic_ui .ui[class*="tablet stackable"].table,
1065
- .semantic_ui .ui[class*="tablet stackable"].table tbody,
1066
- .semantic_ui .ui[class*="tablet stackable"].table tr,
1067
- .semantic_ui .ui[class*="tablet stackable"].table tr > th,
1068
- .semantic_ui .ui[class*="tablet stackable"].table tr > td {
1069
- width: 100% !important;
1070
- display: block !important;
1071
- }
1072
-
1073
- .semantic_ui .ui[class*="tablet stackable"].table {
1074
- padding: 0em;
1075
- }
1076
-
1077
- .semantic_ui .ui[class*="tablet stackable"].table thead {
1078
- display: block;
1079
- }
1080
-
1081
- .semantic_ui .ui[class*="tablet stackable"].table tfoot {
1082
- display: block;
1083
- }
1084
-
1085
- .semantic_ui .ui[class*="tablet stackable"].table tr {
1086
- padding-top: 1em;
1087
- padding-bottom: 1em;
1088
- -webkit-box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1) inset !important;
1089
- box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1) inset !important;
1090
- }
1091
-
1092
- .semantic_ui .ui[class*="tablet stackable"].table tr > th,
1093
- .semantic_ui .ui[class*="tablet stackable"].table tr > td {
1094
- background: none;
1095
- border: none !important;
1096
- padding: 0.25em 0.75em;
1097
- -webkit-box-shadow: none !important;
1098
- box-shadow: none !important;
1099
- }
1100
-
1101
- .semantic_ui .ui.definition[class*="tablet stackable"].table thead th:first-child {
1102
- -webkit-box-shadow: none !important;
1103
- box-shadow: none !important;
1104
- }
1105
- }
1106
-
1107
- .semantic_ui .ui.table[class*="left aligned"],
1108
- .semantic_ui .ui.table [class*="left aligned"] {
1109
- text-align: left;
1110
- }
1111
-
1112
- .semantic_ui .ui.table[class*="center aligned"],
1113
- .semantic_ui .ui.table [class*="center aligned"] {
1114
- text-align: center;
1115
- }
1116
-
1117
- .semantic_ui .ui.table[class*="right aligned"],
1118
- .semantic_ui .ui.table [class*="right aligned"] {
1119
- text-align: right;
1120
- }
1121
-
1122
- .semantic_ui .ui.table[class*="top aligned"],
1123
- .semantic_ui .ui.table [class*="top aligned"] {
1124
- vertical-align: top;
1125
- }
1126
-
1127
- .semantic_ui .ui.table[class*="middle aligned"],
1128
- .semantic_ui .ui.table [class*="middle aligned"] {
1129
- vertical-align: middle;
1130
- }
1131
-
1132
- .semantic_ui .ui.table[class*="bottom aligned"],
1133
- .semantic_ui .ui.table [class*="bottom aligned"] {
1134
- vertical-align: bottom;
1135
- }
1136
-
1137
- .semantic_ui .ui.fixed.table {
1138
- table-layout: fixed;
1139
- }
1140
-
1141
- .semantic_ui .ui.fixed.table th,
1142
- .semantic_ui .ui.fixed.table td {
1143
- overflow: hidden;
1144
- text-overflow: ellipsis;
1145
- }
1146
-
1147
- .semantic_ui .ui.selectable.table tbody tr:hover,
1148
- .semantic_ui .ui.table tbody tr td.selectable:hover {
1149
- background: rgba(0, 0, 0, 0.05) !important;
1150
- color: rgba(0, 0, 0, 0.95) !important;
1151
- }
1152
-
1153
- .semantic_ui .ui.selectable.inverted.table tbody tr:hover,
1154
- .semantic_ui .ui.inverted.table tbody tr td.selectable:hover {
1155
- background: rgba(255, 255, 255, 0.08) !important;
1156
- color: #ffffff !important;
1157
- }
1158
-
1159
- .semantic_ui .ui.table tbody tr td.selectable {
1160
- padding: 0em;
1161
- }
1162
-
1163
- .semantic_ui .ui.table tbody tr td.selectable > a:not(.ui) {
1164
- display: block;
1165
- color: inherit;
1166
- padding: 0.78571429em 0.78571429em;
1167
- }
1168
-
1169
- .semantic_ui .ui.selectable.table tr.error:hover,
1170
- .semantic_ui .ui.table tr td.selectable.error:hover,
1171
- .semantic_ui .ui.selectable.table tr:hover td.error {
1172
- background: #ffe7e7 !important;
1173
- color: #943634 !important;
1174
- }
1175
-
1176
- .semantic_ui .ui.selectable.table tr.warning:hover,
1177
- .semantic_ui .ui.table tr td.selectable.warning:hover,
1178
- .semantic_ui .ui.selectable.table tr:hover td.warning {
1179
- background: #fff4e4 !important;
1180
- color: #493107 !important;
1181
- }
1182
-
1183
- .semantic_ui .ui.selectable.table tr.active:hover,
1184
- .semantic_ui .ui.table tr td.selectable.active:hover,
1185
- .semantic_ui .ui.selectable.table tr:hover td.active {
1186
- background: #E0E0E0 !important;
1187
- color: rgba(0, 0, 0, 0.87) !important;
1188
- }
1189
-
1190
- .semantic_ui .ui.selectable.table tr.positive:hover,
1191
- .semantic_ui .ui.table tr td.selectable.positive:hover,
1192
- .semantic_ui .ui.selectable.table tr:hover td.positive {
1193
- background: #f7ffe6 !important;
1194
- color: #275b28 !important;
1195
- }
1196
-
1197
- .semantic_ui .ui.selectable.table tr.negative:hover,
1198
- .semantic_ui .ui.table tr td.selectable.negative:hover,
1199
- .semantic_ui .ui.selectable.table tr:hover td.negative {
1200
- background: #ffe7e7 !important;
1201
- color: #943634 !important;
1202
- }
1203
-
1204
- .semantic_ui .ui.attached.table {
1205
- top: 0px;
1206
- bottom: 0px;
1207
- border-radius: 0px;
1208
- margin: 0em -1px;
1209
- width: calc(100% + 2px);
1210
- max-width: calc(100% + 2px);
1211
- -webkit-box-shadow: none;
1212
- box-shadow: none;
1213
- border: 1px solid #D4D4D5;
1214
- }
1215
-
1216
- .semantic_ui .ui.attached + .ui.attached.table:not(.top) {
1217
- border-top: none;
1218
- }
1219
-
1220
- .semantic_ui .ui[class*="top attached"].table {
1221
- bottom: 0px;
1222
- margin-bottom: 0em;
1223
- top: 0px;
1224
- margin-top: 1em;
1225
- border-radius: 0.28571429rem 0.28571429rem 0em 0em;
1226
- }
1227
-
1228
- .semantic_ui .ui.table[class*="top attached"]:first-child {
1229
- margin-top: 0em;
1230
- }
1231
-
1232
- .semantic_ui .ui[class*="bottom attached"].table {
1233
- bottom: 0px;
1234
- margin-top: 0em;
1235
- top: 0px;
1236
- margin-bottom: 1em;
1237
- -webkit-box-shadow: none, none;
1238
- box-shadow: none, none;
1239
- border-radius: 0em 0em 0.28571429rem 0.28571429rem;
1240
- }
1241
-
1242
- .semantic_ui .ui[class*="bottom attached"].table:last-child {
1243
- margin-bottom: 0em;
1244
- }
1245
-
1246
- .semantic_ui .ui.striped.table > tr:nth-child(2n),
1247
- .semantic_ui .ui.striped.table tbody tr:nth-child(2n) {
1248
- background-color: rgba(0, 0, 50, 0.02);
1249
- }
1250
-
1251
- .semantic_ui .ui.inverted.striped.table > tr:nth-child(2n),
1252
- .semantic_ui .ui.inverted.striped.table tbody tr:nth-child(2n) {
1253
- background-color: rgba(255, 255, 255, 0.05);
1254
- }
1255
-
1256
- .semantic_ui .ui.striped.selectable.selectable.selectable.table tbody tr.active:hover {
1257
- background: #EFEFEF !important;
1258
- color: rgba(0, 0, 0, 0.95) !important;
1259
- }
1260
-
1261
- .semantic_ui .ui.table[class*="single line"],
1262
- .semantic_ui .ui.table [class*="single line"] {
1263
- white-space: nowrap;
1264
- }
1265
-
1266
- .semantic_ui .ui.table[class*="single line"],
1267
- .semantic_ui .ui.table [class*="single line"] {
1268
- white-space: nowrap;
1269
- }
1270
-
1271
- .semantic_ui .ui.one.column.table td {
1272
- width: 100%;
1273
- }
1274
-
1275
- .semantic_ui .ui.two.column.table td {
1276
- width: 50%;
1277
- }
1278
-
1279
- .semantic_ui .ui.three.column.table td {
1280
- width: 33.33333333%;
1281
- }
1282
-
1283
- .semantic_ui .ui.four.column.table td {
1284
- width: 25%;
1285
- }
1286
-
1287
- .semantic_ui .ui.five.column.table td {
1288
- width: 20%;
1289
- }
1290
-
1291
- .semantic_ui .ui.six.column.table td {
1292
- width: 16.66666667%;
1293
- }
1294
-
1295
- .semantic_ui .ui.seven.column.table td {
1296
- width: 14.28571429%;
1297
- }
1298
-
1299
- .semantic_ui .ui.eight.column.table td {
1300
- width: 12.5%;
1301
- }
1302
-
1303
- .semantic_ui .ui.nine.column.table td {
1304
- width: 11.11111111%;
1305
- }
1306
-
1307
- .semantic_ui .ui.ten.column.table td {
1308
- width: 10%;
1309
- }
1310
-
1311
- .semantic_ui .ui.eleven.column.table td {
1312
- width: 9.09090909%;
1313
- }
1314
-
1315
- .semantic_ui .ui.twelve.column.table td {
1316
- width: 8.33333333%;
1317
- }
1318
-
1319
- .semantic_ui .ui.thirteen.column.table td {
1320
- width: 7.69230769%;
1321
- }
1322
-
1323
- .semantic_ui .ui.fourteen.column.table td {
1324
- width: 7.14285714%;
1325
- }
1326
-
1327
- .semantic_ui .ui.fifteen.column.table td {
1328
- width: 6.66666667%;
1329
- }
1330
-
1331
- .semantic_ui .ui.sixteen.column.table td {
1332
- width: 6.25%;
1333
- }
1334
-
1335
- .semantic_ui .ui.table th.one.wide,
1336
- .semantic_ui .ui.table td.one.wide {
1337
- width: 6.25%;
1338
- }
1339
-
1340
- .semantic_ui .ui.table th.two.wide,
1341
- .semantic_ui .ui.table td.two.wide {
1342
- width: 12.5%;
1343
- }
1344
-
1345
- .semantic_ui .ui.table th.three.wide,
1346
- .semantic_ui .ui.table td.three.wide {
1347
- width: 18.75%;
1348
- }
1349
-
1350
- .semantic_ui .ui.table th.four.wide,
1351
- .semantic_ui .ui.table td.four.wide {
1352
- width: 25%;
1353
- }
1354
-
1355
- .semantic_ui .ui.table th.five.wide,
1356
- .semantic_ui .ui.table td.five.wide {
1357
- width: 31.25%;
1358
- }
1359
-
1360
- .semantic_ui .ui.table th.six.wide,
1361
- .semantic_ui .ui.table td.six.wide {
1362
- width: 37.5%;
1363
- }
1364
-
1365
- .semantic_ui .ui.table th.seven.wide,
1366
- .semantic_ui .ui.table td.seven.wide {
1367
- width: 43.75%;
1368
- }
1369
-
1370
- .semantic_ui .ui.table th.eight.wide,
1371
- .semantic_ui .ui.table td.eight.wide {
1372
- width: 50%;
1373
- }
1374
-
1375
- .semantic_ui .ui.table th.nine.wide,
1376
- .semantic_ui .ui.table td.nine.wide {
1377
- width: 56.25%;
1378
- }
1379
-
1380
- .semantic_ui .ui.table th.ten.wide,
1381
- .semantic_ui .ui.table td.ten.wide {
1382
- width: 62.5%;
1383
- }
1384
-
1385
- .semantic_ui .ui.table th.eleven.wide,
1386
- .semantic_ui .ui.table td.eleven.wide {
1387
- width: 68.75%;
1388
- }
1389
-
1390
- .semantic_ui .ui.table th.twelve.wide,
1391
- .semantic_ui .ui.table td.twelve.wide {
1392
- width: 75%;
1393
- }
1394
-
1395
- .semantic_ui .ui.table th.thirteen.wide,
1396
- .semantic_ui .ui.table td.thirteen.wide {
1397
- width: 81.25%;
1398
- }
1399
-
1400
- .semantic_ui .ui.table th.fourteen.wide,
1401
- .semantic_ui .ui.table td.fourteen.wide {
1402
- width: 87.5%;
1403
- }
1404
-
1405
- .semantic_ui .ui.table th.fifteen.wide,
1406
- .semantic_ui .ui.table td.fifteen.wide {
1407
- width: 93.75%;
1408
- }
1409
-
1410
- .semantic_ui .ui.table th.sixteen.wide,
1411
- .semantic_ui .ui.table td.sixteen.wide {
1412
- width: 100%;
1413
- }
1414
-
1415
- .semantic_ui .ui.sortable.table thead th {
1416
- cursor: pointer;
1417
- white-space: nowrap;
1418
- border-left: 1px solid rgba(34, 36, 38, 0.15);
1419
- color: rgba(0, 0, 0, 0.87);
1420
- }
1421
-
1422
- .semantic_ui .ui.sortable.table thead th:first-child {
1423
- border-left: none;
1424
- }
1425
-
1426
- .semantic_ui .ui.sortable.table thead th.sorted,
1427
- .semantic_ui .ui.sortable.table thead th.sorted:hover {
1428
- -webkit-user-select: none;
1429
- -moz-user-select: none;
1430
- -ms-user-select: none;
1431
- user-select: none;
1432
- }
1433
-
1434
- .semantic_ui .ui.sortable.table thead th:after {
1435
- display: none;
1436
- font-style: normal;
1437
- font-weight: normal;
1438
- text-decoration: inherit;
1439
- content: '';
1440
- height: 1em;
1441
- width: auto;
1442
- opacity: 0.8;
1443
- margin: 0em 0em 0em 0.5em;
1444
- font-family: 'Icons';
1445
- }
1446
-
1447
- .semantic_ui .ui.sortable.table thead th.ascending:after {
1448
- content: '\F0D8';
1449
- }
1450
-
1451
- .semantic_ui .ui.sortable.table thead th.descending:after {
1452
- content: '\F0D7';
1453
- }
1454
-
1455
- .semantic_ui .ui.sortable.table th.disabled:hover {
1456
- cursor: auto;
1457
- color: rgba(40, 40, 40, 0.3);
1458
- }
1459
-
1460
- .semantic_ui .ui.sortable.table thead th:hover {
1461
- background: rgba(0, 0, 0, 0.05);
1462
- color: rgba(0, 0, 0, 0.8);
1463
- }
1464
-
1465
- .semantic_ui .ui.sortable.table thead th.sorted {
1466
- background: rgba(0, 0, 0, 0.05);
1467
- color: rgba(0, 0, 0, 0.95);
1468
- }
1469
-
1470
- .semantic_ui .ui.sortable.table thead th.sorted:after {
1471
- display: inline-block;
1472
- }
1473
-
1474
- .semantic_ui .ui.sortable.table thead th.sorted:hover {
1475
- background: rgba(0, 0, 0, 0.05);
1476
- color: rgba(0, 0, 0, 0.95);
1477
- }
1478
-
1479
- .semantic_ui .ui.inverted.sortable.table thead th.sorted {
1480
- background: rgba(255, 255, 255, 0.15) -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.05)));
1481
- background: rgba(255, 255, 255, 0.15) linear-gradient(transparent, rgba(0, 0, 0, 0.05));
1482
- color: #ffffff;
1483
- }
1484
-
1485
- .semantic_ui .ui.inverted.sortable.table thead th:hover {
1486
- background: rgba(255, 255, 255, 0.08) -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.05)));
1487
- background: rgba(255, 255, 255, 0.08) linear-gradient(transparent, rgba(0, 0, 0, 0.05));
1488
- color: #ffffff;
1489
- }
1490
-
1491
- .semantic_ui .ui.inverted.sortable.table thead th {
1492
- border-left-color: transparent;
1493
- border-right-color: transparent;
1494
- }
1495
-
1496
- .semantic_ui .ui.collapsing.table {
1497
- width: auto;
1498
- }
1499
-
1500
- .semantic_ui .ui.basic.table {
1501
- background: transparent;
1502
- border: 1px solid rgba(34, 36, 38, 0.15);
1503
- -webkit-box-shadow: none;
1504
- box-shadow: none;
1505
- }
1506
-
1507
- .semantic_ui .ui.basic.table thead,
1508
- .semantic_ui .ui.basic.table tfoot {
1509
- -webkit-box-shadow: none;
1510
- box-shadow: none;
1511
- }
1512
-
1513
- .semantic_ui .ui.basic.table th {
1514
- background: transparent;
1515
- border-left: none;
1516
- }
1517
-
1518
- .semantic_ui .ui.basic.table tbody tr {
1519
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1520
- }
1521
-
1522
- .semantic_ui .ui.basic.table td {
1523
- background: transparent;
1524
- }
1525
-
1526
- .semantic_ui .ui.basic.striped.table tbody tr:nth-child(2n) {
1527
- background-color: rgba(0, 0, 0, 0.05) !important;
1528
- }
1529
-
1530
- .semantic_ui .ui[class*="very basic"].table {
1531
- border: none;
1532
- }
1533
-
1534
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) th,
1535
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) td {
1536
- padding: '';
1537
- }
1538
-
1539
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) th:first-child,
1540
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) td:first-child {
1541
- padding-left: 0em;
1542
- }
1543
-
1544
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) th:last-child,
1545
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) td:last-child {
1546
- padding-right: 0em;
1547
- }
1548
-
1549
- .semantic_ui .ui[class*="very basic"].table:not(.sortable):not(.striped) thead tr:first-child th {
1550
- padding-top: 0em;
1551
- }
1552
-
1553
- .semantic_ui .ui.celled.table tr th,
1554
- .semantic_ui .ui.celled.table tr td {
1555
- border-left: 1px solid rgba(34, 36, 38, 0.1);
1556
- }
1557
-
1558
- .semantic_ui .ui.celled.table tr th:first-child,
1559
- .semantic_ui .ui.celled.table tr td:first-child {
1560
- border-left: none;
1561
- }
1562
-
1563
- .semantic_ui .ui.padded.table th {
1564
- padding-left: 1em;
1565
- padding-right: 1em;
1566
- }
1567
-
1568
- .semantic_ui .ui.padded.table th,
1569
- .semantic_ui .ui.padded.table td {
1570
- padding: 1em 1em;
1571
- }
1572
-
1573
- .semantic_ui .ui[class*="very padded"].table th {
1574
- padding-left: 1.5em;
1575
- padding-right: 1.5em;
1576
- }
1577
-
1578
- .semantic_ui .ui[class*="very padded"].table td {
1579
- padding: 1.5em 1.5em;
1580
- }
1581
-
1582
- .semantic_ui .ui.compact.table th {
1583
- padding-left: 0.7em;
1584
- padding-right: 0.7em;
1585
- }
1586
-
1587
- .semantic_ui .ui.compact.table td {
1588
- padding: 0.5em 0.7em;
1589
- }
1590
-
1591
- .semantic_ui .ui[class*="very compact"].table th {
1592
- padding-left: 0.6em;
1593
- padding-right: 0.6em;
1594
- }
1595
-
1596
- .semantic_ui .ui[class*="very compact"].table td {
1597
- padding: 0.4em 0.6em;
1598
- }
1599
-
1600
- .semantic_ui .ui.small.table {
1601
- font-size: 0.9em;
1602
- }
1603
-
1604
- .semantic_ui .ui.table {
1605
- font-size: 1em;
1606
- }
1607
-
1608
- .semantic_ui .ui.large.table {
1609
- font-size: 1.1em;
1610
- }
1611
-
1612
- .colored_table table.foo-table.inverted {
1613
- /*-------------------
1614
- Colors
1615
- --------------------*/
1616
- /* Red */
1617
- /* Orange */
1618
- /* Yellow */
1619
- /* Olive */
1620
- /* Green */
1621
- /* Teal */
1622
- /* Blue */
1623
- /* Violet */
1624
- /* Purple */
1625
- /* Pink */
1626
- /* Brown */
1627
- /* Grey */
1628
- /* Black */
1629
- /*--------------
1630
- Inverted
1631
- ---------------*/
1632
- /* Text Color */
1633
- /* Definition */
1634
- /*******************************
1635
- Site Overrides
1636
- *******************************/
1637
- }
1638
-
1639
- .colored_table table.foo-table.inverted.red.table {
1640
- background-color: #DB2828 !important;
1641
- color: #FFFFFF !important;
1642
- }
1643
-
1644
- .colored_table table.foo-table.inverted.orange.table {
1645
- background-color: #F2711C !important;
1646
- color: #FFFFFF !important;
1647
- }
1648
-
1649
- .colored_table table.foo-table.inverted.yellow.table {
1650
- background-color: #FBBD08 !important;
1651
- color: #FFFFFF !important;
1652
- }
1653
-
1654
- .colored_table table.foo-table.inverted.olive.table {
1655
- background-color: #B5CC18 !important;
1656
- color: #FFFFFF !important;
1657
- }
1658
-
1659
- .colored_table table.foo-table.inverted.green.table {
1660
- background-color: #21BA45 !important;
1661
- color: #FFFFFF !important;
1662
- }
1663
-
1664
- .colored_table table.foo-table.inverted.teal.table {
1665
- background-color: #00B5AD !important;
1666
- color: #FFFFFF !important;
1667
- }
1668
-
1669
- .colored_table table.foo-table.inverted.blue.table {
1670
- background-color: #2185D0 !important;
1671
- color: #FFFFFF !important;
1672
- }
1673
-
1674
- .colored_table table.foo-table.inverted.violet.table {
1675
- background-color: #6435C9 !important;
1676
- color: #FFFFFF !important;
1677
- }
1678
-
1679
- .colored_table table.foo-table.inverted.purple.table {
1680
- background-color: #A333C8 !important;
1681
- color: #FFFFFF !important;
1682
- }
1683
-
1684
- .colored_table table.foo-table.inverted.pink.table {
1685
- background-color: #E03997 !important;
1686
- color: #FFFFFF !important;
1687
- }
1688
-
1689
- .colored_table table.foo-table.inverted.brown.table {
1690
- background-color: #A5673F !important;
1691
- color: #FFFFFF !important;
1692
- }
1693
-
1694
- .colored_table table.foo-table.inverted.grey.table {
1695
- background-color: #767676 !important;
1696
- color: #FFFFFF !important;
1697
- }
1698
-
1699
- .colored_table table.foo-table.inverted.black.table {
1700
- background-color: #1B1C1D !important;
1701
- color: #FFFFFF !important;
1702
- }
1703
-
1704
- .colored_table table.foo-table.inverted.table {
1705
- background: #333333;
1706
- color: rgba(255, 255, 255, 0.9);
1707
- border: none;
1708
- }
1709
-
1710
- .colored_table table.foo-table.inverted.table th {
1711
- background-color: rgba(0, 0, 0, 0.15);
1712
- border-color: rgba(255, 255, 255, 0.1) !important;
1713
- color: rgba(255, 255, 255, 0.9) !important;
1714
- }
1715
-
1716
- .colored_table table.foo-table.inverted.table tr td {
1717
- border-color: rgba(255, 255, 255, 0.1) !important;
1718
- }
1719
-
1720
- .colored_table table.foo-table.inverted.table tr.disabled td,
1721
- .colored_table table.foo-table.inverted.table tr td.disabled,
1722
- .colored_table table.foo-table.inverted.table tr.disabled:hover td,
1723
- .colored_table table.foo-table.inverted.table tr:hover td.disabled {
1724
- pointer-events: none;
1725
- color: rgba(225, 225, 225, 0.3);
1726
- }
1727
-
1728
- .colored_table table.foo-table.inverted.definition.table tfoot:not(.full-width) th:first-child,
1729
- .colored_table table.foo-table.inverted.definition.table thead:not(.full-width) th:first-child {
1730
- background: #FFFFFF;
1731
- }
1732
-
1733
- .colored_table table.foo-table.inverted.definition.table tr td:first-child {
1734
- background: rgba(255, 255, 255, 0.02);
1735
- color: #ffffff;
1736
- }
1737
-
1738
- .colored_table table.foo-table.inverted.table-striped tbody tr:nth-of-type(odd) {
1739
- background-color: rgba(255, 255, 255, 0.05);
1740
- }
1741
-
1742
- .colored_table table.foo-table.inverted .pagination > .active > a,
1743
- .colored_table table.foo-table.inverted .pagination > .active > a:focus,
1744
- .colored_table table.foo-table.inverted .pagination > .active > a:hover,
1745
- .colored_table table.foo-table.inverted .pagination > .active > span,
1746
- .colored_table table.foo-table.inverted .pagination > .active > span:focus,
1747
- .colored_table table.foo-table.inverted .pagination > .active > span:hover {
1748
- background-color: rgba(0, 0, 0, 0.15);
1749
- border-color: rgba(255, 255, 255, 0.1) !important;
1750
- color: rgba(255, 255, 255, 0.9) !important;
1751
- -webkit-box-shadow: inset 0 0 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
1752
- box-shadow: inset 0 0 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
1753
- }
1754
-
1755
- .colored_table table.foo-table.inverted .pagination a.footable-page-link {
1756
- color: rgba(0, 0, 0, 0.5);
1757
- }
1758
-
1759
- .colored_table table.foo-table.inverted .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
1760
- background-color: rgba(255, 255, 255, 0.1);
1761
- border-color: rgba(255, 255, 255, 0.1) !important;
1762
- color: rgba(255, 255, 255, 0.9) !important;
1763
- }
1764
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/ninja-tables-admin.3.1.0.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=210)}([function(t,e){t.exports=function(t,e,n,a,i,o){var s,l=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(s=t,l=t.default);var c,u="function"==typeof l?l.options:l;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):a&&(c=a),c){var d=u.functional,_=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),_(t,e)}):u.beforeCreate=_?[].concat(_,c):[c]}return{esModule:s,exports:l,options:u}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var i=(s=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(a[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&a[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i=n(215),o={},s=a&&(document.head||document.getElementsByTagName("head")[0]),l=null,r=0,c=!1,u=function(){},d=null,_="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t){for(var e=0;e<t.length;e++){var n=t[e],a=o[n.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](n.parts[i]);for(;i<n.parts.length;i++)a.parts.push(v(n.parts[i]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,a=document.querySelector("style["+_+'~="'+t.id+'"]');if(a){if(c)return u;a.parentNode.removeChild(a)}if(p){var i=r++;a=l||(l=m()),e=g.bind(null,a,i,!1),n=g.bind(null,a,i,!0)}else a=m(),e=function(t,e){var n=e.css,a=e.media,i=e.sourceMap;a&&t.setAttribute("media",a);d.ssrId&&t.setAttribute(_,e.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,a),n=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else n()}}t.exports=function(t,e,n,a){c=n,d=a||{};var s=i(t,e);return f(s),function(e){for(var n=[],a=0;a<s.length;a++){var l=s[a];(r=o[l.id]).refs--,n.push(r)}e?f(s=i(t,e)):s=[];for(a=0;a<n.length;a++){var r;if(0===(r=n[a]).refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete o[r.id]}}}};var h,b=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function g(t,e,n,a){var i=n?"":a.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}},,function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var a=n(38),i="object"==typeof self&&self&&self.Object===Object&&self,o=a||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,,function(t,e,n){var a=n(11),i=n(70),o=n(71),s="[object Null]",l="[object Undefined]",r=a?a.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?l:s:r&&r in Object(t)?i(t):o(t)}},function(t,e,n){var a=n(5).Symbol;t.exports=a},,,function(t,e,n){var a=n(315),i=n(318);t.exports=function(t,e){var n=i(t,e);return a(n)?n:void 0}},,,,,,,function(t,e){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}},function(t,e,n){t.exports=n(74)},function(t,e,n){var a=n(10),i=n(6),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&a(t)==o}},,,function(t,e,n){var a=n(78);t.exports=function(t){return null==t?"":a(t)}},,,,,,,,,function(t,e,n){var a=n(0)(n(247),n(248),!1,function(t){n(245)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(259),n(260),!1,function(t){n(257)},"data-v-06fd6e1a",null);t.exports=a.exports},function(t,e,n){var a=n(14)(Object,"create");t.exports=a},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(7))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var a=n(323),i=n(324),o=n(325),s=n(326),l=n(327);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=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(115);t.exports=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}},function(t,e,n){var a=n(329);t.exports=function(t,e){var n=t.__data__;return a(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var a=n(113),i=n(73);t.exports=function(t){return null!=t&&i(t.length)&&!a(t)}},function(t,e,n){var a=n(355),i=n(124),o=n(44);t.exports=function(t){return o(t)?a(t):i(t)}},function(t,e,n){var a=n(23),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}},,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",function(){return a});var a=function(){return{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"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:"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:"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",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}}}},function(t,e,n){var a=n(312),i=n(328),o=n(330),s=n(331),l=n(332);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=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(11),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,l=a?a.toStringTag:void 0;t.exports=function(t){var e=o.call(t,l),n=t[l];try{t[l]=void 0;var a=!0}catch(t){}var i=s.call(t);return a&&(e?t[l]=n:delete t[l]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var a=n(14)(n(5),"Map");t.exports=a},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var a=n(350),i=n(351),o=n(365),s=n(4);t.exports=function(t,e){return(s(t)?a:i)(t,o(e))}},function(t,e,n){var a=n(124),i=n(125),o=n(44),s=n(386),l=n(387),r="[object Map]",c="[object Set]";t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?l(t):t.length;var e=i(t);return e==r||e==c?t.size:a(t).length}},function(t,e,n){var a=n(134);t.exports=function(t,e,n){var i=null==t?void 0:a(t,e);return void 0===i?n:i}},function(t,e,n){var a=n(4),i=n(23),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var a=n(11),i=n(21),o=n(4),s=n(23),l=1/0,r=a?a.prototype:void 0,c=r?r.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-l?"-0":n}},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(81).polyfill(),e.a=function t(e,n,i,o){var s,l=t,r="";function c(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?c(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=o?0 in n?[]:[1]:n;for(s=0;s<n.length;s++){var u,d="",_=0,p="object"==a(n[s])?n[s]:{};(p=Object.assign({},i,p))[""]={"":n[s]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,function(t,e,n,i,o,s,f){_?d+=_&&!o||_>1?t:e:(r+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,function(t,e,n,a,i,o){return e?c(p,e):a?c(p,o):i?l(c(p,o),p):n?"":new Option(c(p,o)).innerHTML}),u=s),o?--_||(f=c(p,f),/^f/.test(void 0===f?"undefined":a(f))?r+=f.call(p,d,function(t){return l(t,p)}):r+=l(d,f,p,u),d=""):++_})}return r}},function(t,e,n){"use strict";function a(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),a=1;a<arguments.length;a++){var i=arguments[a];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),s=0,l=o.length;s<l;s++){var r=o[s],c=Object.getOwnPropertyDescriptor(i,r);void 0!==c&&c.enumerable&&(n[r]=i[r])}}return n}t.exports={assign:a,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:a})}}},function(t,e,n){var a=n(0)(n(468),n(482),!1,function(t){n(466)},null,null);t.exports=a.exports},function(t,e,n){"use strict";var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}!function(){function e(t){function e(t){t.parentElement.removeChild(t)}function n(t,e,n){var a=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,a)}function o(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}var s=["Start","Add","Remove","Update","End"],l=["Choose","Sort","Filter","Clone"],r=["Move"].concat(s,l).map(function(t){return"on"+t}),c=null;return{name:"draggable",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"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;if(e&&1===e.length){var n=e[0];n.componentOptions&&"transition-group"===n.componentOptions.tag&&(this.transitionMode=!0)}var a=e,o=this.$slots.footer;o&&(a=e?[].concat(i(e),i(o)):[].concat(i(o)));var s=null,l=function(t,e){s=function(t,e,n){return void 0==n?t:((t=null==t?{}:t)[e]=n,t)}(s,t,e)};if(l("attrs",this.$attrs),this.componentData){var r=this.componentData,c=r.on,u=r.props;l("on",c),l("props",u)}return t(this.element,s,a)},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.element.toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter element value or remove transition-group. Current element value: "+this.element);var n={};s.forEach(function(t){n["on"+t]=function(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),o.call(e,t,n)}}.call(e,t)}),l.forEach(function(t){n["on"+t]=o.bind(e,t)});var i=a({},this.options,n,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new t(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},isCloning:function(){return!!this.options&&!!this.options.group&&"clone"===this.options.group.pull},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){for(var e in t)-1==r.indexOf(e)&&this._sortable.option(e,t[e])},deep:!0},realList:function(){this.computeIndexes()}},methods:{getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1==this.$children.length,this.init=!0),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){if(!t)return[];var a=t.map(function(t){return t.elm}),o=[].concat(i(e)).map(function(t){return a.indexOf(t)});return n?o.filter(function(t){return-1!==t}):o}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode)})},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&&"transition-group"===e.$options._componentTag?e.$parent: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=[].concat(i(this.value));t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,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,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var o=i.realList,s={list:o,component:i};if(e!==n&&o&&i.getUnderlyingVm){var l=i.getUnderlyingVm(n);if(l)return a(l,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),c=t.item},onDragAdd:function(t){var n=t.item._underlying_vm_;if(void 0!==n){e(t.item);var a=this.getVmIndex(t.newIndex);this.spliceList(a,0,n),this.computeIndexes();var i={element:n,newIndex:a};this.emitChanges({added:i})}},onDragRemove:function(t){if(n(this.rootContainer,t.item,t.oldIndex),this.isCloning)e(t.clone);else{var a=this.context.index;this.spliceList(a,1);var i={element:this.context.element,oldIndex:a};this.resetTransitionData(a),this.emitChanges({removed:i})}},onDragUpdate:function(t){e(t.item),n(t.from,t.item,t.oldIndex);var a=this.context.index,i=this.getVmIndex(t.newIndex);this.updatePosition(a,i);var o={element:this.context.element,oldIndex:a,newIndex:i};this.emitChanges({moved:o})},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=[].concat(i(e.to.children)).filter(function(t){return"none"!==t.style.display}),a=n.indexOf(e.related),o=t.component.getVmIndex(a);return-1!=n.indexOf(c)||!e.willInsertAfter?o:o+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),o=this.context,s=this.computeFutureIndex(i,t);return a(o,{futureIndex:s}),a(t,{relatedContext:i,draggedContext:o}),n(t,e)},onDragEnd:function(t){this.computeIndexes(),c=null}}}}Array.from||(Array.from=function(t){return[].slice.call(t)});var o=n(127);t.exports=e(o)}()},,,,,,,,,,,,,,,,,,,,,function(t,e,n){var a,i,o,s;s=function(t,e,n,a){"use strict";var i=l(e),o=l(n),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a.resolveOptions(n),a.listenClick(t),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),c(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,s.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){var e=d("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}();function d(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=u},i=[t,n(231),n(233),n(234)],void 0===(o="function"==typeof(a=s)?a.apply(e,i):a)||(t.exports=o)},function(t,e,n){var a=n(0)(n(238),n(239),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(251),n(263),!1,function(t){n(249)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(261),n(262),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(266),n(267),!1,function(t){n(264)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(268),n(269),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(281),n(282),!1,function(t){n(279)},"data-v-ad6aab96",null);t.exports=a.exports},function(t,e,n){var a=n(21),i=n(311),o=n(340),s=n(348),l=o(function(t){var e=a(t,s);return e.length&&e[0]===t[0]?i(e):[]});t.exports=l},function(t,e,n){var a=n(69),i=n(333),o=n(334);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new a;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e,n){var a=n(10),i=n(39),o="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",r="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=a(t);return e==s||e==l||e==o||e==r}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){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}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var a=n(357),i=n(6),o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable,r=a(function(){return arguments}())?a:function(t){return i(t)&&s.call(t,"callee")&&!l.call(t,"callee")};t.exports=r},function(t,e,n){(function(t){var a=n(5),i=n(358),o="object"==typeof e&&e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,l=s&&s.exports===o?a.Buffer:void 0,r=(l?l.isBuffer:void 0)||i;t.exports=r}).call(e,n(121)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&a.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var a=n(359),i=n(117),o=n(360),s=o&&o.isTypedArray,l=s?i(s):a;t.exports=l},function(t,e,n){var a=n(361),i=n(362),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}},function(t,e,n){var a=n(382),i=n(72),o=n(383),s=n(384),l=n(385),r=n(10),c=n(114),u=c(a),d=c(i),_=c(o),p=c(s),f=c(l),m=r;(a&&"[object DataView]"!=m(new a(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||s&&"[object Set]"!=m(new s)||l&&"[object WeakMap]"!=m(new l))&&(m=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,a=n?c(n):"";if(a)switch(a){case u:return"[object DataView]";case d:return"[object Map]";case _:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var a,i;!function(o){"use strict";void 0===(i="function"==typeof(a=o)?a.call(e,n,e,t):a)||(t.exports=i)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,a,i,o,s,l,r,c,u,d,_,p,f,m,v,h,b,g,y,x={},w=/\s+/g,C=/left|right|inline/,k="Sortable"+(new Date).getTime(),S=window,j=S.document,$=S.parseInt,T=S.setTimeout,P=S.jQuery||S.Zepto,E=S.Polymer,A=!1,D="draggable"in j.createElement("div"),N=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((y=j.createElement("x")).style.cssText="pointer-events:auto","auto"===y.style.pointerEvents),O=!1,F=Math.abs,I=Math.min,M=[],L=[],z=at(function(t,e,n){if(n&&e.scroll){var a,i,o,s,u,d,_=n[k],p=e.scrollSensitivity,f=e.scrollSpeed,m=t.clientX,v=t.clientY,h=window.innerWidth,b=window.innerHeight;if(r!==n&&(l=e.scroll,r=n,c=e.scrollFn,!0===l)){l=n;do{if(l.offsetWidth<l.scrollWidth||l.offsetHeight<l.scrollHeight)break}while(l=l.parentNode)}l&&(a=l,i=l.getBoundingClientRect(),o=(F(i.right-m)<=p)-(F(i.left-m)<=p),s=(F(i.bottom-v)<=p)-(F(i.top-v)<=p)),o||s||(s=(b-v<=p)-(v<=p),((o=(h-m<=p)-(m<=p))||s)&&(a=S)),x.vx===o&&x.vy===s&&x.el===a||(x.el=a,x.vx=o,x.vy=s,clearInterval(x.pid),a&&(x.pid=setInterval(function(){if(d=s?s*f:0,u=o?o*f:0,"function"==typeof c)return c.call(_,u,d,t);a===S?S.scrollTo(S.pageXOffset+u,S.pageYOffset+d):(a.scrollTop+=d,a.scrollLeft+=u)},24)))}},30),R=function(t){function e(t,e){return void 0!==t&&!0!==t||(t=n.name),"function"==typeof t?t:function(n,a){var i=a.options.group.name;return e?t:t&&(t.join?t.indexOf(i)>-1:i==t)}}var n={},a=t.group;a&&"object"==typeof 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};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){A={capture:!1,passive:!1}}}))}catch(t){}function B(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=it({},e),t[k]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==B.supportPointer};for(var a in n)!(a in e)&&(e[a]=n[a]);for(var i in R(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&D,H(t,"mousedown",this._onTapStart),H(t,"touchstart",this._onTapStart),e.supportPointer&&H(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(H(t,"dragover",this),H(t,"dragenter",this)),L.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function U(e,n){"clone"!==e.lastPullMode&&(n=!0),a&&a.state!==n&&(J(a,"display",n?"none":""),n||a.state&&(e.options.group.revertClone?(i.insertBefore(a,o),e._animate(t,a)):i.insertBefore(a,t)),a.state=n)}function q(t,e,n){if(t){n=n||j;do{if(">*"===e&&t.parentNode===n||nt(t,e))return t}while(t=V(t))}return null}function V(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function H(t,e,n){t.addEventListener(e,n,A)}function Y(t,e,n){t.removeEventListener(e,n,A)}function Q(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(w," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(w," ")}}function J(t,e,n){var a=t&&t.style;if(a){if(void 0===n)return j.defaultView&&j.defaultView.getComputedStyle?n=j.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in a||(e="-webkit-"+e),a[e]=n+("string"==typeof n?"":"px")}}function W(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 G(t,e,n,i,o,s,l,r){t=t||e[k];var c=j.createEvent("Event"),u=t.options,d="on"+n.charAt(0).toUpperCase()+n.substr(1);c.initEvent(n,!0,!0),c.to=o||e,c.from=s||e,c.item=i||e,c.clone=a,c.oldIndex=l,c.newIndex=r,e.dispatchEvent(c),u[d]&&u[d].call(t,c)}function K(t,e,n,a,i,o,s,l){var r,c,u=t[k],d=u.options.onMove;return(r=j.createEvent("Event")).initEvent("move",!0,!0),r.to=e,r.from=t,r.dragged=n,r.draggedRect=a,r.related=i||e,r.relatedRect=o||e.getBoundingClientRect(),r.willInsertAfter=l,t.dispatchEvent(r),d&&(c=d.call(u,r,s)),c}function X(t){t.draggable=!1}function Z(){O=!1}function tt(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 et(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"===t.nodeName.toUpperCase()||">*"!==e&&!nt(t,e)||n++;return n}function nt(t,e){if(t){var n=(e=e.split(".")).shift().toUpperCase(),a=new RegExp("\\s("+e.join("|")+")(?=\\s)","g");return!(""!==n&&t.nodeName.toUpperCase()!=n||e.length&&((" "+t.className+" ").match(a)||[]).length!=e.length)}return!1}function at(t,e){var n,a;return function(){void 0===n&&(n=arguments,a=this,T(function(){1===n.length?t.call(a,n[0]):t.apply(a,n),n=void 0},e))}}function it(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function ot(t){return E&&E.dom?E.dom(t).cloneNode(!0):P?P(t).clone(!0)[0]:t.cloneNode(!0)}function st(t){return T(t,0)}function lt(t){return clearTimeout(t)}return B.prototype={constructor:B,_onTapStart:function(e){var n,a=this,i=this.el,o=this.options,l=o.preventOnFilter,r=e.type,c=e.touches&&e.touches[0],u=(c||e).target,d=e.target.shadowRoot&&e.path&&e.path[0]||u,_=o.filter;if(function(t){var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var a=e[n];a.checked&&M.push(a)}}(i),!t&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!d.isContentEditable&&(u=q(u,o.draggable,i))&&s!==u){if(n=et(u,o.draggable),"function"==typeof _){if(_.call(this,e,u,this))return G(a,d,"filter",u,i,i,n),void(l&&e.preventDefault())}else if(_&&(_=_.split(",").some(function(t){if(t=q(d,t.trim(),i))return G(a,t,"filter",u,i,i,n),!0})))return void(l&&e.preventDefault());o.handle&&!q(d,o.handle,i)||this._prepareDragStart(e,c,u,n)}},_prepareDragStart:function(n,a,l,r){var c,u=this,d=u.el,_=u.options,f=d.ownerDocument;l&&!t&&l.parentNode===d&&(h=n,i=d,e=(t=l).parentNode,o=t.nextSibling,s=l,m=_.group,p=r,this._lastX=(a||n).clientX,this._lastY=(a||n).clientY,t.style["will-change"]="all",c=function(){u._disableDelayedDrag(),t.draggable=u.nativeDraggable,Q(t,_.chosenClass,!0),u._triggerDragStart(n,a),G(u,i,"choose",t,i,i,p)},_.ignore.split(",").forEach(function(e){W(t,e.trim(),X)}),H(f,"mouseup",u._onDrop),H(f,"touchend",u._onDrop),H(f,"touchcancel",u._onDrop),H(f,"selectstart",u),_.supportPointer&&H(f,"pointercancel",u._onDrop),_.delay?(H(f,"mouseup",u._disableDelayedDrag),H(f,"touchend",u._disableDelayedDrag),H(f,"touchcancel",u._disableDelayedDrag),H(f,"mousemove",u._disableDelayedDrag),H(f,"touchmove",u._disableDelayedDrag),_.supportPointer&&H(f,"pointermove",u._disableDelayedDrag),u._dragStartTimer=T(c,_.delay)):c())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),Y(t,"mouseup",this._disableDelayedDrag),Y(t,"touchend",this._disableDelayedDrag),Y(t,"touchcancel",this._disableDelayedDrag),Y(t,"mousemove",this._disableDelayedDrag),Y(t,"touchmove",this._disableDelayedDrag),Y(t,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,n){(n=n||("touch"==e.pointerType?e:null))?(h={target:t,clientX:n.clientX,clientY:n.clientY},this._onDragStart(h,"touch")):this.nativeDraggable?(H(t,"dragend",this),H(i,"dragstart",this._onDragStart)):this._onDragStart(h,!0);try{j.selection?st(function(){j.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){if(i&&t){var e=this.options;Q(t,e.ghostClass,!0),Q(t,e.dragClass,!1),B.active=this,G(this,i,"start",t,i,i,p)}else this._nulling()},_emulateDragOver:function(){if(b){if(this._lastX===b.clientX&&this._lastY===b.clientY)return;this._lastX=b.clientX,this._lastY=b.clientY,N||J(n,"display","none");var t=j.elementFromPoint(b.clientX,b.clientY),e=t,a=L.length;if(t&&t.shadowRoot&&(e=t=t.shadowRoot.elementFromPoint(b.clientX,b.clientY)),e)do{if(e[k]){for(;a--;)L[a]({clientX:b.clientX,clientY:b.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);N||J(n,"display","")}},_onTouchMove:function(t){if(h){var e=this.options,a=e.fallbackTolerance,i=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=o.clientX-h.clientX+i.x,l=o.clientY-h.clientY+i.y,r=t.touches?"translate3d("+s+"px,"+l+"px,0)":"translate("+s+"px,"+l+"px)";if(!B.active){if(a&&I(F(o.clientX-this._lastX),F(o.clientY-this._lastY))<a)return;this._dragStarted()}this._appendGhost(),g=!0,b=o,J(n,"webkitTransform",r),J(n,"mozTransform",r),J(n,"msTransform",r),J(n,"transform",r),t.preventDefault()}},_appendGhost:function(){if(!n){var e,a=t.getBoundingClientRect(),o=J(t),s=this.options;Q(n=t.cloneNode(!0),s.ghostClass,!1),Q(n,s.fallbackClass,!0),Q(n,s.dragClass,!0),J(n,"top",a.top-$(o.marginTop,10)),J(n,"left",a.left-$(o.marginLeft,10)),J(n,"width",a.width),J(n,"height",a.height),J(n,"opacity","0.8"),J(n,"position","fixed"),J(n,"zIndex","100000"),J(n,"pointerEvents","none"),s.fallbackOnBody&&j.body.appendChild(n)||i.appendChild(n),e=n.getBoundingClientRect(),J(n,"width",2*a.width-e.width),J(n,"height",2*a.height-e.height)}},_onDragStart:function(e,n){var o=this,s=e.dataTransfer,l=o.options;o._offUpEvents(),m.checkPull(o,o,t,e)&&((a=ot(t)).draggable=!1,a.style["will-change"]="",J(a,"display","none"),Q(a,o.options.chosenClass,!1),o._cloneId=st(function(){i.insertBefore(a,t),G(o,i,"clone",t)})),Q(t,l.dragClass,!0),n?("touch"===n?(H(j,"touchmove",o._onTouchMove),H(j,"touchend",o._onDrop),H(j,"touchcancel",o._onDrop),l.supportPointer&&(H(j,"pointermove",o._onTouchMove),H(j,"pointerup",o._onDrop))):(H(j,"mousemove",o._onTouchMove),H(j,"mouseup",o._onDrop)),o._loopId=setInterval(o._emulateDragOver,50)):(s&&(s.effectAllowed="move",l.setData&&l.setData.call(o,s,t)),H(j,"drop",o),o._dragStartId=st(o._dragStarted))},_onDragOver:function(s){var l,r,c,p,f=this.el,h=this.options,b=h.group,y=B.active,x=m===b,w=!1,S=h.sort;if(void 0!==s.preventDefault&&(s.preventDefault(),!h.dragoverBubble&&s.stopPropagation()),!t.animated&&(g=!0,y&&!h.disabled&&(x?S||(p=!i.contains(t)):v===this||(y.lastPullMode=m.checkPull(this,y,t,s))&&b.checkPut(this,y,t,s))&&(void 0===s.rootEl||s.rootEl===this.el))){if(z(s,h,this.el),O)return;if(l=q(s.target,h.draggable,f),r=t.getBoundingClientRect(),v!==this&&(v=this,w=!0),p)return U(y,!0),e=i,void(a||o?i.insertBefore(t,a||o):S||i.appendChild(t));if(0===f.children.length||f.children[0]===n||f===s.target&&function(t,e){var n=t.lastElementChild.getBoundingClientRect();return e.clientY-(n.top+n.height)>5||e.clientX-(n.left+n.width)>5}(f,s)){if(0!==f.children.length&&f.children[0]!==n&&f===s.target&&(l=f.lastElementChild),l){if(l.animated)return;c=l.getBoundingClientRect()}U(y,x),!1!==K(i,f,t,r,l,c,s)&&(t.contains(f)||(f.appendChild(t),e=f),this._animate(r,t),l&&this._animate(c,l))}else if(l&&!l.animated&&l!==t&&void 0!==l.parentNode[k]){u!==l&&(u=l,d=J(l),_=J(l.parentNode));var j=(c=l.getBoundingClientRect()).right-c.left,$=c.bottom-c.top,P=C.test(d.cssFloat+d.display)||"flex"==_.display&&0===_["flex-direction"].indexOf("row"),E=l.offsetWidth>t.offsetWidth,A=l.offsetHeight>t.offsetHeight,D=(P?(s.clientX-c.left)/j:(s.clientY-c.top)/$)>.5,N=l.nextElementSibling,F=!1;if(P){var I=t.offsetTop,M=l.offsetTop;F=I===M?l.previousElementSibling===t&&!E||D&&E:l.previousElementSibling===t||t.previousElementSibling===l?(s.clientY-c.top)/$>.5:M>I}else w||(F=N!==t&&!A||D&&A);var L=K(i,f,t,r,l,c,s,F);!1!==L&&(1!==L&&-1!==L||(F=1===L),O=!0,T(Z,30),U(y,x),t.contains(f)||(F&&!N?f.appendChild(t):l.parentNode.insertBefore(t,F?N:l)),e=t.parentNode,this._animate(r,t),this._animate(c,l))}}},_animate:function(t,e){var n=this.options.animation;if(n){var a=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),J(e,"transition","none"),J(e,"transform","translate3d("+(t.left-a.left)+"px,"+(t.top-a.top)+"px,0)"),e.offsetWidth,J(e,"transition","all "+n+"ms"),J(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=T(function(){J(e,"transition",""),J(e,"transform",""),e.animated=!1},n)}},_offUpEvents:function(){var t=this.el.ownerDocument;Y(j,"touchmove",this._onTouchMove),Y(j,"pointermove",this._onTouchMove),Y(t,"mouseup",this._onDrop),Y(t,"touchend",this._onDrop),Y(t,"pointerup",this._onDrop),Y(t,"touchcancel",this._onDrop),Y(t,"pointercancel",this._onDrop),Y(t,"selectstart",this)},_onDrop:function(s){var l=this.el,r=this.options;clearInterval(this._loopId),clearInterval(x.pid),clearTimeout(this._dragStartTimer),lt(this._cloneId),lt(this._dragStartId),Y(j,"mouseover",this),Y(j,"mousemove",this._onTouchMove),this.nativeDraggable&&(Y(j,"drop",this),Y(l,"dragstart",this._onDragStart)),this._offUpEvents(),s&&(g&&(s.preventDefault(),!r.dropBubble&&s.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),i!==e&&"clone"===B.active.lastPullMode||a&&a.parentNode&&a.parentNode.removeChild(a),t&&(this.nativeDraggable&&Y(t,"dragend",this),X(t),t.style["will-change"]="",Q(t,this.options.ghostClass,!1),Q(t,this.options.chosenClass,!1),G(this,i,"unchoose",t,e,i,p),i!==e?(f=et(t,r.draggable))>=0&&(G(null,e,"add",t,e,i,p,f),G(this,i,"remove",t,e,i,p,f),G(null,e,"sort",t,e,i,p,f),G(this,i,"sort",t,e,i,p,f)):t.nextSibling!==o&&(f=et(t,r.draggable))>=0&&(G(this,i,"update",t,e,i,p,f),G(this,i,"sort",t,e,i,p,f)),B.active&&(null!=f&&-1!==f||(f=p),G(this,i,"end",t,e,i,p,f),this.save()))),this._nulling()},_nulling:function(){i=t=e=n=o=a=s=l=r=h=b=g=f=u=d=v=m=B.active=null,M.forEach(function(t){t.checked=!0}),M.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.preventDefault()}(e));break;case"mouseover":this._onDrop(e);break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,a=0,i=n.length,o=this.options;a<i;a++)q(t=n[a],o.draggable,this.el)&&e.push(t.getAttribute(o.dataIdAttr)||tt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,a){var i=n.children[a];q(i,this.options.draggable,n)&&(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(this)},closest:function(t,e){return q(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&R(n)},destroy:function(){var t=this.el;t[k]=null,Y(t,"mousedown",this._onTapStart),Y(t,"touchstart",this._onTapStart),Y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Y(t,"dragover",this),Y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),L.splice(L.indexOf(this._onDragOver),1),this._onDrop(),this.el=t=null}},H(j,"touchmove",function(t){B.active&&t.preventDefault()}),B.utils={on:H,off:Y,css:J,find:W,is:function(t,e){return!!q(t,e,t)},extend:it,throttle:at,closest:q,toggleClass:Q,clone:ot,index:et,nextTick:st,cancelNextTick:lt},B.create=function(t,e){return new B(t,e)},B.version="1.7.0",B})},function(t,e,n){var a=n(116),i=n(398),o=n(429),s=Math.max;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var r=null==n?0:o(n);return r<0&&(r=s(l+r,0)),a(t,i(e,3),r)}},function(t,e,n){var a=n(40),i=n(401),o=n(402),s=n(403),l=n(404),r=n(405);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=s,c.prototype.has=l,c.prototype.set=r,t.exports=c},function(t,e,n){var a=n(406),i=n(6);t.exports=function t(e,n,o,s,l){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:a(e,n,o,s,t,l))}},function(t,e,n){var a=n(112),i=n(407),o=n(118),s=1,l=2;t.exports=function(t,e,n,r,c,u){var d=n&s,_=t.length,p=e.length;if(_!=p&&!(d&&p>_))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var m=-1,v=!0,h=n&l?new a:void 0;for(u.set(t,e),u.set(e,t);++m<_;){var b=t[m],g=e[m];if(r)var y=d?r(g,b,m,e,t,u):r(b,g,m,t,e,u);if(void 0!==y){if(y)continue;v=!1;break}if(h){if(!i(e,function(t,e){if(!o(h,e)&&(b===t||c(b,t,n,r,u)))return h.push(e)})){v=!1;break}}else if(b!==g&&!c(b,g,n,r,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,n){var a=n(39);t.exports=function(t){return t==t&&!a(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var a=n(135),i=n(46);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}},function(t,e,n){var a=n(4),i=n(77),o=n(421),s=n(26);t.exports=function(t,e){return a(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,n){var a=n(432)(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});t.exports=a},function(t,e,n){var a=n(0)(n(455),n(456),!1,function(t){n(453)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(464),n(465),!1,function(t){n(462)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(473),n(474),!1,null,null,null);t.exports=a.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(211)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(212),i=n(218),o=n(296),s=n(299),l=n(304),r=n(309),c=n(367),u=n(372),d=n(375),_=n(394),p=n(504),f=n(531),m=n(542),v=n(551),h=[{path:"/",component:a,props:!0,children:[{path:"/",name:"home",component:i},{path:"/tools",component:o,children:[{path:"/",name:"import_tables",component:s},{path:"default_table_appearance",name:"default_table_appearance",component:r},{path:"permission",name:"permission",component:l},{path:"licensing",name:"licensing",component:c},{path:"global_settings",name:"global_settings",component:u}]},{path:"/help",name:"help",component:m}]},{path:"/tables/:table_id",component:d,props:!0,children:[{path:"/",name:"data_items",component:_},{path:"columns",name:"data_columns",component:p},{path:"design_studio",name:"design_studio",component:n(566)},{path:"additional_css",name:"additional_css",component:v},{path:"import-export",name:"import-export",component:f},{path:"table_editing",name:"table_editing",component:n(571)}]}],b=n(574),g=n.n(b);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},data:function(){return{}},filters:{ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}});var y=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",h),linkActiveClass:"active"});g.a.router=y,window.ninjaApp=new window.NINJATABLE.Vue(g.a).$mount("#data-tables-app")},function(t,e,n){var a=n(0)(n(216),n(217),!1,function(t){n(213)},null,null);t.exports=a.exports},function(t,e,n){var a=n(214);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4438693c",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".plugin-name{float:left;padding:8px 0}",""])},function(t,e){t.exports=function(t,e){for(var n=[],a={},i=0;i<e.length;i++){var o=e[i],s=o[0],l={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};a[s]?a[s].parts.push(l):n.push(a[s]={id:s,parts:[l]})}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"home",data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[]}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])}},mounted:function(){this.setTopMenu()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_main_nav"},[n("span",{staticClass:"plugin-name"},[t._v(t._s(t.$t("Ninja Tables"))),t.has_pro?n("span",[t._v(" Pro")]):t._e()]),t._v(" "),t._l(t.topMenus,function(e){return n("router-link",{key:e.route,class:["ninja-tab"],attrs:{"active-class":"ninja-tab-active",exact:"",to:{name:e.route}}},[t._v("\n "+t._s(e.title)+"\n ")])}),t._v(" "),t.has_pro?t._e():n("a",{staticClass:"ninja-tab buy_pro_tab",attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Upgrade To Pro")])],2),t._v(" "),n("router-view",{attrs:{"has-pro":t.has_pro}})],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(221),n(295),!1,function(t){n(219)},null,null);t.exports=a.exports},function(t,e,n){var a=n(220);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0512158f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"label.form_group.search_action{padding-top:0;margin-bottom:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(222),i=n(227),o=n(241),s=n(285),l=n(290);e.default={name:"all_tables",components:{Welcome:a,"list-all-tables":i,"add-table-modal":o,"lead-modal":s,NinjaReviewDialog:l},props:["hasPro"],data:function(){return{modalVisible:!1,published_tables:parseInt(window.ninja_table_admin.published_tables),searchAction:0,searchString:"",selected:[],review_option:window.ninja_table_admin.show_review_dialog}},methods:{addTableAction:function(t){this.$router.push({name:"data_items",params:{table_id:t}}),this.modalVisible=!1},getData:function(){this.searchAction++},makeSelection:function(t){this.selected=t},handleBulkActions:function(t){"delete"===t&&this.deleteTables()},deleteTables:function(){this.selected.length&&this.$confirm(this.$t("This will permanently delete the selected tables. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){}).catch(function(){})}},mounted:function(){var t=this;window.ninjaTableBus.$on("addedTable",function(){t.published_tables||(window.ninja_table_admin.published_tables=1)})}}},function(t,e,n){var a=n(0)(n(225),n(226),!1,function(t){n(223)},null,null);t.exports=a.exports},function(t,e,n){var a=n(224);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59acd174",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_intro_welcome{max-width:600px;margin:45px auto 0;padding:30px 20px;background:#fff;text-align:center}.ninja_intro_welcome h2{font-size:30px}.ninja_intro_welcome .ninja_actions{margin-bottom:30px}.ninja_intro_welcome .ninja_docs{text-align:left}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_intro_welcome"},[n("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),n("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),n("div",{staticClass:"ninja_actions"},[n("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),n("hr"),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_docs"},[e("h4",[this._v("Ninja Tables Documentation:")]),this._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[this._v("\n Demo and Basic Settings\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[this._v("\n Setting Up a Table\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[this._v("\n Make Your Table Looks Great on All Devices\n ")])])])])}]}},function(t,e,n){var a=n(0)(n(230),n(240),!1,function(t){n(228)},null,null);t.exports=a.exports},function(t,e,n){var a=n(229);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4a0dbc88",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-tables.el-table td,.ninja-tables.el-table th{padding:5px 0}.ninja-tables.el-table span.row-delete a{color:#a00}.ninja-tables.el-table a{text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(104),i=n.n(a),o=n(105);e.default={name:"Home",components:{ninja_pagination:o},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}},methods:{fetchTables:function(){var t=this;this.pageLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-all-tables",per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString};jQuery.get(ajaxurl,e).done(function(e){t.items=e.data,t.paginate.total=e.total,t.paginate.current_page=e.current_page,t.paginate.last_page=e.last_page,t.pageLoading=!1,e.total&&t.$emit("total_table",e.total)}).fail(function(t){vueNotification.error("Something went wrong, please try again.")})},goToPage:function(t){this.paginate.current_page=t,this.fetchTables()},handleSizeChange:function(t){this.paginate.per_page=t,this.setStoreData("tables_per_page",t),this.fetchTables()},confirmDeleteTable:function(t){var e=this;this.$confirm("Are you sure, You want to delete this table?","Warning",{confirmButtonText:"Yes, Delete",cancelButtonText:"Cancel",type:"warning"}).then(function(){e.deleteTable(t)}).catch(function(){e.$message({type:"info",message:"Delete canceled"})})},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};jQuery.post(ajaxurl,n).then(function(t){e.fetchTables(),e.$message({type:"success",message:t.message})}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.$emit("selection",t.map(function(t){return t.ID}))},duplicate:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"duplicate-table",tableId:t};jQuery.post(ajaxurl,n).then(function(t){e.$message({type:"success",message:t.data.message}),e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})}).fail(function(t){alert(t.responseJSON.data.message)})},shouldBeVisible:function(t){return"fluent-form"!=t.dataSourceType||window.ninja_table_admin.hasFluentForm},dataSourceType:function(t){var e=t.dataSourceType||"Default";return e=e.indexOf("google")>-1?"Google SpreadSheet":e}},mounted:function(){var t=this;this.fetchTables(),new i.a(".copy").on("success",function(e){t.$message({message:"Copied to Clipboard!",type:"success"})})}}},function(t,e,n){var a,i,o,s;s=function(t,e){"use strict";var n,a=(n=e)&&n.__esModule?n:{default:n};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},i=[t,n(232)],void 0===(o="function"==typeof(a=s)?a.apply(e,i):a)||(t.exports=o)},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var a=window.getSelection(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i),e=a.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var a=this;function 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,s=a.length;o<s;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=n},function(t,e,n){var a=n(235),i=n(236);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")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(237);function i(t,e,n,i,o){var s=function(t,e,n,i){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,s,o),{destroy:function(){t.removeEventListener(n,s,o)}}}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)}))}},function(t,e){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==n;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"NinjaPagination",props:["paginate"],data:function(){return{pageNumberInput:1}},methods:{goToPage:function(t){t>=1&&t<=this.paginate.last_page?(this.$emit("change_page",t),this.pageNumberInput=t):alert("invalid page number")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tablenav-pages"},[t.paginate.total?n("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),n("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[n("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),n("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pageNumberInput,expression:"pageNumberInput"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",size:"2","aria-describedby":"table-paging"},domProps:{value:t.pageNumberInput},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.goToPage(t.pageNumberInput)},input:function(e){e.target.composing||(t.pageNumberInput=e.target.value)}}}),t._v("\n "+t._s(t.$t("of"))+"\n "),n("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[n("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),n("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.pageLoading,expression:"pageLoading",modifiers:{body:!0}}],staticClass:"ninja-tables",staticStyle:{},attrs:{data:t.items,border:""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{label:t.$t("ID"),width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Title")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t.shouldBeVisible(e.row)?[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.post_title)+"\n ")])]:[t._v("\n "+t._s(e.row.post_title)+"\n ")],t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=e.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(e.row.post_status)+")\n ")])],2),t._v(" "),n("div",{staticClass:"row-actions"},[t.shouldBeVisible(e.row)?n("span",{staticClass:"row-edit"},[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-preview"},[n("a",{attrs:{href:e.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.duplicate(e.row.ID)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)&&e.row.fluentfrom_url?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:e.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),n("span",{staticClass:"row-delete"},[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.confirmDeleteTable(e.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"160",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t._v(t._s(t.dataSourceType(e.row)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+e.row.ID+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(e.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){t.$set(t.paginate,"current_page",e)}}})],1),t._v(" "),!t.loading&&!t.is_installed&&t.items.length>2&&!t.hasPro?n("div",[n("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[n("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?n("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[n("hr"),t._v(" "),n("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Upgrade To Pro")])]):t._e()],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(244),n(284),!1,function(t){n(242)},null,null);t.exports=a.exports},function(t,e,n){var a=n(243);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("e48dbdc6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-add-table .el-main{padding:0 1px 0 15px;min-height:0}.ninja-add-table .el-menu{border-right:initial}.ninja-add-table .el-menu-item .el-icon-fluent-form{height:18px}.ninja-add-table .el-menu-item .dashicons{width:24px;height:18px;margin-right:5px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(35),i=n.n(a),o=n(106),s=n.n(o),l=n(108),r=n.n(l),c=n(109),u=n.n(c),d=n(270),_=n.n(d),p=n(275),f=n.n(p);e.default={name:"add_table",components:{wp_editor:i.a,"wp-posts-data-source":s.a,"fluent-form-data-source":r.a,"external-data-source":u.a,ImportTable:_.a,RawSqlForm:f.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:""}}},hasPro:{required:!0}},data:function(){return{activeTabName:"default",btnLoading:!1,activated_features:window.ninja_table_admin.activated_features,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}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),window.ninjaTableBus.$emit("addedTable"),t.table.ID?t.closeModal():t.fireTableCreated(e.table_id)}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")},onEditorChange:function(t){t.editor;var e=t.html;t.text;this.table.post_content=e},fireTableCreated:function(t){this.$emit("table_inserted",t)},checkScreenSize:function(){window.innerWidth<1e3?this.isCollapse=!0:this.isCollapse=!1}},mounted:function(){var t=this;this.checkScreenSize(),jQuery(window).resize(function(){t.checkScreenSize()})}}},function(t,e,n){var a=n(246);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("69c18912",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"button.button.ninja_demo_media_button{position:absolute;z-index:9999999999;cursor:pointer}.wp_vue_editor{width:100%;min-height:100px}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{z-index:2;position:absolute;top:0;left:0}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"wp_editor",props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()}},value:{type:String,default:function(){return""}}},data:function(){return{hasWpEditor:!!window.wp.editor,plain_content:this.value,has_pro:!!window.ninja_table_admin.hasPro}},computed:{ninja_editor_id:function(){return"ninja_editor_"+this.slugify(this.editor_id)}},watch:{plain_content:function(){this.$emit("input",this.plain_content)},value:function(){this.value||this.reloadEditor()}},methods:{initEditor:function(){if(this.hasWpEditor){wp.editor.remove(this.ninja_editor_id);var t=this;wp.editor.initialize(this.ninja_editor_id,{mediaButtons:this.has_pro,mode:"none",tinymce:{toolbar1:"formatselect,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,underline,forecolor,codeformat,removeformat,undo,redo",valid_elements:"*[*]",forced_root_block:"",setup:function(e){e.on("change",function(e,n){t.changeContentEvent()})}},quicktags:!0}),jQuery("#"+this.ninja_editor_id).on("change",function(e){t.changeContentEvent()})}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},reloadEditor:function(){wp.editor.remove(this.ninja_editor_id),jQuery("#"+this.ninja_editor_id).val(""),this.initEditor()},changeContentEvent:function(){var t=wp.editor.getContent(this.ninja_editor_id);this.$emit("input",t)},showPro:function(){window.ninjaTableBus.$emit("show_pro_popup",1)}},mounted:function(){this.initEditor()},beforeDestroy:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():n("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[n("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),n("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:t.plain_content},on:{input:function(e){e.target.composing||(t.plain_content=e.target.value)}}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticStyle:{"font-style":"italic"}},[e("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}]}},function(t,e,n){var a=n(250);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("13578724",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_tables_wpposts .el-checkbox-group{overflow:scroll!important}.ninja_tables_wpposts .el-transfer-panel{width:306px!important}.ninja_tables_wpposts .table-rows .el-transfer-panel{width:250px!important}.ninja_tables_wpposts .el-transfer-panel__item{display:block!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(252),i=n.n(a),o=n(36),s=n.n(o),l=n(107),r=n.n(l);e.default={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},components:{"wp-post-conditions":i.a,PremiumNotice:s.a,UpgradeNotice:r.a},data:function(){return{loading:!1,saving:!1,title:null,tableId:null,postStatuses:[],all_types:[],all_fields:[],post_types:[],selected_post_types:[],post_types_fields:[],selected_post_types_fields:[],conditions_section:"conditions",conditions:[],active_step:0,query_extra:{},hasPro:!!window.ninja_table_admin.hasPro,queryable_fields:["ID","post_author","comment_count","post_date","post_modified","post_status"]}},computed:{query_able_post_types_fields:function(){var t=this;return this.post_types_fields.filter(function(e){return-1!=t.queryable_fields.indexOf(e.key)||-1!=e.key.indexOf(".")})}},methods:{nextStep:function(){var t="";if(this.title||(t+=" The title field is required."),this.selected_post_types.length||(t+=" At least select one post type."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1&&(this.active_step=0)},handlePostTypeChange:function(t,e,n){var a=this,i=[];this.selected_post_types.forEach(function(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,jQuery.post(ajaxurl,{action:"ninja_table_wp-posts_create_table",post_title:this.title,tableId:this.tableId,data:{post_types:this.selected_post_types,columns:this.selected_post_types_fields,where:this.conditions,query_extra:!(!this.config||!this.config.table)&&this.config.table.query_extra}}).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({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_types"}).then(function(e){t.all_types=e.data.post_types,t.postStatuses=e.data.postStatuses,jQuery.each(t.all_types,function(e,n){var a="";"private"===n.status&&(a=" (private)"),t.post_types.push({key:e,label:e+a})}),t.all_fields=e.data.post_fields.map(function(t){return{key:t,label:t}}),t.config&&(t.tableId=t.config.table.ID,t.conditions=t.config.table.whereConditions||[],t.selected_post_types=t.config.table.post_types,t.selected_post_types_fields=t.config.columns.map(function(t){return t.original_name}),t.handlePostTypeChange())}).fail(function(t){console.log(t)}).always(function(){t.loading=!1})}},mounted:function(){this.getPostTypes()}}},function(t,e,n){var a=n(0)(n(255),n(256),!1,function(t){n(253)},null,null);t.exports=a.exports},function(t,e,n){var a=n(254);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("921d84e4",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}e.default={name:"WPPostConditions",props:["config","fields","conditions","allPostTypes","postStatuses","selected_post_types"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[],common_operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"}],uncommon_operators:[{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"}],other_operators:[{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}],query_limit:0,orderByFields:["ID","post_date","post_author","post_title","post_status","menu_order","comment_count"],authors:[]}},watch:{selected_post_types:function(){this.getPostAuthors()}},methods:{addCondition:function(t){this.conditions.push(a({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e){e.operators=[].concat(i(this.common_operators)),"comment_count"==t&&e.operators.map(function(t,n){"!="==t.key&&e.operators.splice(n,1)}),-1!=["ID","comment_count","post_date","post_modified"].indexOf(t)?e.operators=[].concat(i(e.operators.concat(this.other_operators))):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=[].concat(i(this.uncommon_operators))),this.setValueField(t,e)},setValueField:function(t,e){if("post_status"==t)e.value=[],e.is_selectable="true",e.selectableOptions=this.postStatuses;else if("post_author"==t)e.value=[],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=[],e.is_selectable="true";var n=[].concat(i(t.split("."))),a=n[0],o=n[1],s=this.allPostTypes[a].taxonomies[o];e.selectableOptions=s.map(function(t){return{key:t.slug,label:t.name}})}else e.value=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;jQuery.getJSON(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"get_wp_post_authors",post_types:this.selected_post_types}).then(function(e){t.authors=e.data.authors})}},mounted:function(){this.getPostAuthors()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp-post-conditions"},[n("el-row",[n("el-col",{attrs:{md:21}},[n("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,function(e,a){return[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},on:{change:function(n){t.setOperators(n,e)}},model:{value:e.field,callback:function(n){t.$set(e,"field",n)},expression:"condition.field"}},t._l(t.fields,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}))],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(n){t.$set(e,"operator",n)},expression:"condition.operator"}},t._l(e.operators,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}))],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(e)||t.isDateField(e)?!t.isSelectable(e)&&t.isDateField(e)?n("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}}):t.isSelectable(e)?n("el-select",{attrs:{multiple:"",placeholder:"Select"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}},t._l(e.selectableOptions,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})):t._e():n("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){t.removeCondition(a,e)}}})],1)],1)]}),t._v(" "),t.config&&t.config.table.query_extra?n("div",{staticClass:"ninja_post_query_limit"},[n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Query Limit")]),t._v(" "),n("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.config.table.query_extra.query_limit,callback:function(e){t.$set(t.config.table.query_extra,"query_limit",e)},expression:"config.table.query_extra.query_limit"}}),t._v(" "),t._m(0)],1),t._v(" "),n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Column")]),t._v(" "),n("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by_column,callback:function(e){t.$set(t.config.table.query_extra,"order_by_column",e)},expression:"config.table.query_extra.order_by_column"}},t._l(t.orderByFields,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}))],1),t._v(" "),n("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Type")]),t._v(" "),n("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by,callback:function(e){t.$set(t.config.table.query_extra,"order_by",e)},expression:"config.table.query_extra.order_by"}},[n("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),n("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}]}},function(t,e,n){var a=n(258);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("17456e14",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".premium-notice .buy_now_button[data-v-06fd6e1a]{text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"PremiumNotice",props:["highlight"]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[n("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?n("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),n("b",[t._v("unlimited customizations")]),t._v(",\n "),n("b",[t._v("data filters")]),t._v(",\n "),n("b",[t._v("professional looks")]),t._v(",\n "),n("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("\n Get Premium Version Now\n ")])])},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"UpgradeNotice"}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[this._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n ")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPLainLayout?[n("el-row",[n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1),t._v(" "),n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)],1),t._v(" "),n("el-row",[n("el-collapse",{model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{title:"Conditions",name:"1"}},[n("wp-post-conditions",{attrs:{config:t.config,selected_post_types:t.selected_post_types,postStatuses:t.postStatuses,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}})],1)],1)],1),t._v(" "),n("el-row",[n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"primary",size:"small",loading:t.saving},on:{click:t.save}},[t._v("Update\n ")])],1)]:t._e(),t._v(" "),t.hasPLainLayout?t._e():[n("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),t.hasPro?t.activated_features.wp_posts_table?t._e():[n("upgrade-notice")]:[n("premium-notice")],t._v(" "),n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1)])]:t._e(),t._v(" "),1==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)]),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",[n("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?n("wp-post-conditions",{attrs:{postStatuses:t.postStatuses,selected_post_types:t.selected_post_types,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}}):t._e()],1)],1)],1)])]:t._e(),t._v(" "),n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),n("el-col",{attrs:{md:12}},[t.active_step>0?n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",disabled:!t.activated_features.wp_posts_table,loading:t.saving},on:{click:t.save}},[t._v("Save\n ")]):t._e()],1)],1)]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Displays website content in a searchable, sortable with Ninja Tables. It supports custom posts, pages, &\n custom post types. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-posts-table/"}},[this._v("Learn more\n about this module")])])}]}},function(t,e,n){var a=n(265);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("9f2741de",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"FluentForm",props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object}},data:function(){return{installing:!1,fetching:!1,forms:[],fields:[],btnLoading:!1,post_title:"",form:{id:null,fields:[],entry_status:"all",entry_limit:1e3},hasFluentForm:!!window.ninja_table_admin.hasFluentForm,isFluentFormUpdated:!!window.ninja_table_admin.isFluentFormUpdated}},methods:{fetchForms:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_get-fluentform-forms"}).then(function(e){return t.forms=e.data}).fail(function(t){return console.log(t)}).always(function(){t.fetching=!1})},handleFormSelectionChange:function(t){var e=this;this.$get({form_Id:t,action:"ninja-tables_get-fluentform-fields"}).then(function(t){e.fields=t.data,e.editing&&(e.form.entry_limit=e.config.table.entry_limit,e.form.entry_status=e.config.table.entry_status,e.$nextTick(function(){var t=e.config.columns.map(function(t){return t.original_name});e.fields.filter(function(e){return-1!=t.indexOf(e.name)}).forEach(function(t){e.$refs.rowSelectableTable.toggleRowSelection(t)})}))}).fail(function(t){}).always(function(){})},handleFieldsSelectionChange:function(t){this.form.fields=t},save:function(){var t=this;this.btnLoading=!0,this.config&&this.config.table.current_user_entry_only&&(this.form.current_user_entry_only=this.config.table.current_user_entry_only),jQuery.post(ajaxurl,{action:"ninja_tables_save_fluentform_table",post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null}).then(function(e){return t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var i in a)n+=" "+a[i];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.btnLoading=!1})},installFluentFrom:function(){var t=this;this.installing=!0,jQuery.post(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"install_fluent_form"}).then(function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)}).fail(function(e){t.$message.error(e.responseJSON.message)}).always(function(){t.installing=!1})}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():n("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():n("p",{staticClass:"ninja_subtitle"},[t._v("\n Prepare your table from your existing WP Fluent Forms submissions. It can be used to easily showcase\n your form submissions.\n "),n("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-fluent-form-integration/"}},[t._v("Click\n here to learn more about WP Fluent From Integration")])]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"Select a Form"},on:{change:t.handleFormSelectionChange},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}},t._l(t.forms,function(t){return n("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})}))],1),t._v(" "),t.form.id?n("div",{staticClass:"form-group"},[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("strong",[t._v("Options (Optional)")]),t._v(" "),n("hr"),t._v(" "),n("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[n("el-col",{attrs:{md:12}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:5}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),n("el-col",{attrs:{md:19}},[n("el-input",{model:{value:t.form.entry_limit,callback:function(e){t.$set(t.form,"entry_limit",e)},expression:"form.entry_limit"}})],1)],1)],1),t._v(" "),n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[n("el-row",[n("el-col",{attrs:{md:4}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),n("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:20}},[n("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[n("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),n("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),n("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.config.table.current_user_entry_only,callback:function(e){t.$set(t.config.table,"current_user_entry_only",e)},expression:"config.table.current_user_entry_only"}},[t._v("Show current user submissions only at frontend")])]:t._e()],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{staticStyle:{"margin-top":"12px",float:"right"},attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.save}},[t._v(t._s(t.editing?t.$t("Update"):t.$t("Save"))+"\n ")])],1)]:t.hasFluentForm?[n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("To use this feature your WP Fluent Form need to be updated. Please update WP Fluent From from plugins\n screen")])]),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(0)]:n("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),n("div",[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?n("span",[t._v("Installing WP Fluent From...")]):n("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?n("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(2)])],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[this._v("WP Fluent Form")]),this._v(" is a WordPress\n Contact Form plugin packed with all the premium features you would need to create\n a responsive, customizable, drag and drop form. Using this module, You can easily show your form entries\n in Ninja Tables.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(36),i=n.n(a),o=n(107),s=n.n(o),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"Remote-Data-Source",components:{PremiumNotice:i.a,UpgradeNotice:s.a},props:{columns:{type:Array},type:{type:String,required:!0},tableCreated:{type:Function,required:!0},hasPro:{required:!0},table:{type:Object,default:function(){return{post_title:"",remote_url:"",fields:[],table_id:null}}},editing:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},data:function(){return{fields:[],active_step:0,saving:!1,fetching:!1}},methods:{nextStep:function(){var t="";if(this.table.post_title||(t+=" The title field is required."),this.table.remote_url||(t+=" The url field is required."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1?this.active_step=0:this.fatchRemoteData()},fatchRemoteData:function(){var t=this;this.fetching=!0,jQuery.getJSON(ajaxurl,l({action:"ninja_table_external_data_source_create"},this.table,{type:this.type,get_headers_only:!0})).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,jQuery.post(ajaxurl,l({},this.table,{type:this.type,action:"ninja_table_external_data_source_create"})).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(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.editing?[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:n("div",{staticClass:"ninja_modal-body"},[n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[n("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[n("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.remote_url,expression:"table.remote_url"}],staticClass:"form-control",attrs:{id:"remote_url",type:"text",placeholder:"Enter your source URL",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.remote_url},on:{input:function(e){e.target.composing||t.$set(t.table,"remote_url",e.target.value)}}})])]:[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[n("UpgradeNotice")]:[n("premium-notice")],t._v(" "),n("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"left"},attrs:{type:"primary",size:"small"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),t.active_step>0?n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"small",loading:t.saving,disabled:!t.activated_features.external_data_source},on:{click:t.save}},[t._v(t._s(t.$t("Save"))+"\n ")])],1):t._e()],1)],1),t._v(" "),t.editing?n("div",{staticStyle:{"margin-top":"15px"}},[n("el-input",{attrs:{placeholder:"Remote URL..."},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.fatchRemoteData(e):null}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[n("el-button",{attrs:{slot:"prepend",loading:t.fetching,size:"small",plain:""},on:{click:t.fatchRemoteData},slot:"prepend"},[t._v(t._s(t.$t("Fetch Columns"))+"\n ")]),t._v(" "),n("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:""},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Whenever your Google Sheets data changes it will be automatically reflected here. You won't have\n to do a thing. Please provide the publishable public URL of your google sheet.\n "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/construct-table-from-google-sheets/"}},[this._v("View\n Documentation Here")])])}]}},function(t,e,n){var a=n(0)(n(273),n(274),!1,function(t){n(271)},"data-v-aec52ad6",null);t.exports=a.exports},function(t,e,n){var a=n(272);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4ed069d6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".hint[data-v-aec52ad6]{width:100%;background-color:#f4f4f5;color:#909399;padding:8px 16px}.form_group.ninja_errors[data-v-aec52ad6]{background:#ffd7d7;padding:10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ImportTable",data:function(){return{imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - JavaScript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",errors:[],btnLoading:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,this.errors=[],"file"===this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$message({showClose:!0,message:e.message,type:"success"}),e.tableId&&t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.errors=e.responseJSON.data.errors,t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}),t.btnLoading=!1}})}else this.btnLoading=!1}else this.btnLoading=!0}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("Import Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-group"},["file"===t.imports.source?[n("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("br"),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],staticClass:"form-control",attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])})),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])]:t._e(),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"json"===t.imports.format||"ninjaJson"===t.imports.format,expression:"imports.format === 'json' || imports.format === 'ninjaJson'"}],staticClass:"hint"},[t._v("\n Check tutorial for importing Table from JSON file\n\n "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),t.errors.length?n("div",{staticClass:"form_group ninja_errors"},[n("ul",t._l(t.errors,function(e,a){return n("li",{key:a},[t._v("\n "+t._s(e.info)+"\n ")])}))]):t._e()])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"hint"},[this._v("\n Check tutorial for importing data from CSV file\n "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])}]}},function(t,e,n){var a=n(0)(n(278),n(283),!1,function(t){n(276)},null,null);t.exports=a.exports},function(t,e,n){var a=n(277);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("600976c0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(110),i=n.n(a),o=n(36),s=n.n(o);e.default={name:"CustomSQLQuery",components:{MySqlEditor:i.a,PremiumNotice:s.a},props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object},activated_features:{type:Object}},data:function(){return{installing:!1,fetching:!1,btnLoading:!1,post_title:"",sql:"",error_html:"",isActivated:this.activated_features.raw_sql_query,hasPro:!!ninja_table_admin.hasPro}},methods:{save:function(){var t=this;this.btnLoading=!0,this.error_html="",jQuery.post(ajaxurl,{action:"ninja_tables_save_raw_sql_table",post_title:this.post_title,sql:this.sql,table_Id:this.config&&this.config.table.ID||null}).then(function(e){return t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var 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(e){return t.btnLoading=!1})}},mounted:function(){}}},function(t,e,n){var a=n(280);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0fa77a67",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor[data-v-ad6aab96]{min-height:180px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ad6aab96]{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),n("hr"),t._v(" "),t.hasPro?t.isActivated?[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.sql,callback:function(e){t.sql=e},expression:"sql"}}),t._v(" "),t._m(0)],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e()]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[n("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[n("premium-notice")]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[this._v("$wpdb->get_results()")]),this._v(" function")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():n("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[n("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[n("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[n("i",{staticClass:"el-icon-setting"}),t._v(" "),n("span",[t._v("Default")])]),t._v(" "),n("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[n("i",{staticClass:"el-icon-upload2"}),t._v(" "),n("span",[t._v("Import Table")])]),t._v(" "),n("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[n("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),n("span",[t._v("Connect Fluent Form")])]),t._v(" "),n("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[n("i",{staticClass:"el-icon-news"}),t._v(" "),n("span",[t._v("WP Posts")])]),t._v(" "),n("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[n("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),n("span",[t._v("Connect Google Sheets")])]),t._v(" "),n("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[n("i",{staticClass:"el-icon-document"}),t._v(" "),n("span",[t._v("Connect External CSV")])]),t._v(" "),n("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[n("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),n("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),n("el-main",["default"==t.activeTabName?[n("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[n("h3",[t._v("Manually Create a Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Manually create your table columns and rows to get complete\n control over your data with tons of customizations.\n ")])],t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)],2),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?n("span",[t._v(t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"import_table"===t.activeTabName?[n("import-table")]:"google_spread_sheet"==t.activeTabName?[n("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[n("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[n("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[n("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"raw_sql"==t.activeTabName?[n("raw-sql-form",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(288),n(289),!1,function(t){n(286)},null,null);t.exports=a.exports},function(t,e,n){var a=n(287);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("35eb5f12",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{font-size:12px;color:gray;text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_lead",data:function(){return{loading:!1,leadVisible:!!window.ninja_table_admin.show_lead_pop_up,display_name:window.ninja_table_admin.current_user_name,showPermission:!1}},methods:{optin:function(t){var e=this;this.loading=!0,jQuery.post(window.ajaxurl,{action:"ninja_table_lead_optin",status:t}).then(function(t){e.$message({showClose:!0,message:t.data.message,type:"success"})}).fail(function(t){}).always(function(){e.leadVisible=!1,e.loading=!1,"yes"===t&&(window.ninja_table_admin.show_lead_pop_up=!1)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.leadVisible?n("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[n("p",[t._v("Hey "+t._s(t.display_name)+","),n("br"),t._v("\n Never miss an important update - opt in to our security & feature updates notifications. We will never\n spam / share your data, We will only send emails about important updates")]),t._v(" "),n("el-button",{attrs:{type:"success"},on:{click:function(e){t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),n("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){t.optin("no")}}},[t._v("Skip")]),t._v(" "),n("div",{staticClass:"ninja_permissions"},[n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.showPermission,expression:"showPermission"}],staticClass:"permissions"},[t._v("\n Name, email, Site URL, Plugins info, ip Address and uninstall event\n ")])])],1)]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(293),n(294),!1,function(t){n(291)},null,null);t.exports=a.exports},function(t,e,n){var a=n(292);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("20d61100",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".review_dialog{background:#fff;padding:10px 15px 20px;font-size:16px;position:relative}.review_dialog span.consentDismiss{position:absolute;right:7px;top:2px;z-index:99999;cursor:pointer;color:gray}.review_dialog p{font-size:16px}.review_dialog a{text-decoration:none;cursor:pointer;margin-right:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"review_dialog",methods:{recordActivity:function(t){var e=this;jQuery.post(ajaxurl,{action:"ninja_table_review_consent",status:t}).then(function(){}).fail(function(){}).always(function(){e.$emit("hideNotification",!0)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"review_dialog"},[n("span",{staticClass:"consentDismiss",on:{click:function(e){t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),n("div",{staticClass:"consent_body"},[n("p",[t._v("Thank You for using Ninja Tables Plugin. We are continuously working on it to improve this plugin. If You can spare a minute, Please help us by leaving a five star rating on wordpress.org")]),t._v(" "),n("a",{staticClass:"el-button el-button--success el-button--small",attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/ninja-tables/reviews/#new-post"},on:{click:function(e){t.recordActivity("yes")}}},[t._v("Happy To Help")]),t._v(" "),n("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){t.recordActivity("no")}}},[t._v("Hide Notification")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.published_tables?[n("div",{staticClass:"row clearfix"},[n("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),t.review_option?n("ninja-review-dialog",{on:{hideNotification:function(e){t.review_option=!1}}}):t._e(),t._v(" "),n("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.getData(e):null},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{size:"small",type:"success"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1)],1)],1),t._v(" "),n("hr"),t._v(" "),n("list-all-tables",{directives:[{name:"show",rawName:"v-show",value:t.published_tables,expression:"published_tables"}],attrs:{searchString:t.searchString,searchAction:t.searchAction},on:{total_table:function(e){t.published_tables=!0},selection:t.makeSelection}})]:n("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),n("el-dialog",{attrs:{title:t.$t("How would you like to create your table?"),visible:t.modalVisible,top:"50px",width:"75%","append-to-body":!0,"custom-class":"create-table-modal"},on:{"update:visible":function(e){t.modalVisible=e}}},[n("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),n("lead-modal")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(297),n(298),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:!!window.ninja_table_admin.hasPro,active_menu:this.$route.name,menuItems:[]}},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:"dashicons dashicons-shield",status:this.has_pro},{route:"global_settings",title:this.$t("Global Settings"),icon_class:"el-icon-menu",status:!0}])}},mounted:function(){this.setUpMenuItems()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,function(e){return e.status?n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[n("i",{class:e.icon_class}),t._v(" "),n("span",[t._v(t._s(e.title))])]):t._e()}))],1),t._v(" "),n("el-main",[n("router-view")],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(302),n(303),!1,function(t){n(300)},"data-v-5348b674",null);t.exports=a.exports},function(t,e,n){var a=n(301);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5913cf51",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-item[data-v-5348b674]{margin:10px 0}.form-item label[data-v-5348b674]{width:100px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:window.ninja_table_admin.hasPro,active_menu:"import",activeNames:["1","2"],imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - JavaScript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",UltimateTables:"Ultimate Tables",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1,UltimateTables:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){alert(e.message),t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.btnLoading=!1,alert(e.responseJSON.message)}})}else this.btnLoading=!1}else this.btnLoading=!0},importFromOtherPlugin:function(t){var e=this;this.selectedPlugin=t,this.btnsLoading[t]=!0;var n={action:"ninja_tables_ajax_actions",target_action:"get-tables-from-plugin",plugin:t};jQuery.ajax({url:ajaxurl,data:n,type:"POST",success:function(n){n.tables?e.btnsLoading[t]=!1:e.$message.error("No Table Found"),e.showPluginModal=!0,e.otherPluginTables=n.tables},error:function(n){e.btnsLoading[t]=!1,n.responseJSON?e.$message.error(n.responseJSON.message):e.$message.error("No Table Found")}})},closePluginModal:function(){this.otherPluginTables=[],this.btnsLoading[this.selectedPlugin]=!1,this.showPluginModal=!1,this.selectedPlugin=null},importThisTable:function(t,e){var n=this;this.importing=!0;var a={action:"ninja_tables_ajax_actions",target_action:"import-table-from-plugin",plugin:this.selectedPlugin,tableId:t.ID};jQuery.ajax({url:ajaxurl,data:a,type:"POST",success:function(t){n.$message.success(t.data.message),n.importing=!1,n.$set(n.otherPluginTables[e],"ninja_table_id",t.data.tableId)},error:function(t){n.$message.error(t.responseJSON.data.message),n.importing=!1}})}},mounted:function(){var t=this;this.$route.query.active_menu&&(this.active_menu=this.$route.query.active_menu),jQuery(".ninja_table_tools_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_import_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_license_menu").on("click",function(){t.active_menu="license"})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("p",[t._v("\n "+t._s(t.$t("NinjaTables can import tables from existing data, like from a CSV or JSON file. You can also import existing tables from the other WordPress table plugins."))+"\n ")])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),n("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-item"},["file"==t.imports.source?[n("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-item"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])})),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),n("div",{staticClass:"form-item"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1)]:t._e(),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"json"==t.imports.format||"ninjaJson"==t.imports.format,expression:"imports.format == 'json' || imports.format == 'ninjaJson'"}],staticClass:"help"},[t._v("\n Check tutorial for importing Table from JSON file "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),n("div",{staticClass:"form-item"},[n("el-button",{attrs:{type:"primary",size:"small",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),n("table",{staticStyle:{"min-width":"400px"}},[n("tbody",t._l(t.otherPlugins,function(e,a){return n("tr",[n("td",[t._v(t._s(e))]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-default btn-sm",on:{click:function(e){t.importFromOtherPlugin(a)}}},[t.btnsLoading[a]?[t._v("\n "+t._s(t.$t("Processing..."))+"\n "),n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])}))])])]),t._v(" "),n("el-dialog",{attrs:{title:"Your current tables",visible:t.showPluginModal},on:{"update:visible":function(e){t.showPluginModal=e},close:function(e){t.closePluginModal()}}},[t.otherPluginTables.length?[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[n("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_already_imported?n("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(e.row.post_title)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){t.importThisTable(e.row,e.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),e.row.ninja_table_id?n("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:e.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}])})],1),t._v(" "),t.importing?[n("br"),n("br"),t._v(" "),n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n "+t._s(t.$t("Importing the table, please wait a bit ..."))+"\n ")])]:t._e()]:n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n You don't have any tables in your "+t._s(t.selectedPlugin)+" plugin.\n ")])],2)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n Select the intended format and click "),e("strong",[this._v("Import")]),this._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"help"},[this._v("\n Check tutorial for importing data from CSV file "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n To import from other WordPress plugins click the respective "),e("strong",[this._v("Import")]),this._v("\n button.\n ")])}]}},function(t,e,n){var a=n(0)(n(307),n(308),!1,function(t){n(305)},null,null);t.exports=a.exports},function(t,e,n){var a=n(306);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0b57856e",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Privacy",data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then(function(e){t.capability=e.capability,t.roles=e.roles,t.handleCheckedCapabilitiesChange(t.capability)}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(t){})},handleCheckAllChange:function(t){this.capability=t?this.roles.map(function(t){return t.key}):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Permission "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),n("hr"),t._v(" "),t.hasPro?[n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("\n "+t._s(t.$t("Check all"))+"\n ")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}))],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.store}},[t._v("Save")])],1)]:[t._v("\n "+t._s(t.$t("Activate Ninja Tables Pro Add-on plugin to unlock this feature"))+"\n "),n("p",[n("a",{attrs:{target:"_blank",href:t.upgrade}},[t._v("Buy Ninja Tables Pro Add-On")])])]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("By default, Only Administrator have access to manage the tables. By selecting additional roles bellow, You can give access to manage your Tables to other user roles.")])])}]}},function(t,e,n){var a=n(0)(n(310),n(366),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(68),i=n(111),o=n.n(i),s=n(74),l=n.n(s);e.default={name:"Privacy",data:function(){return{fetching:!1,saving:!1,tableLibs:{},default_settings:{}}},computed:{tableColors:function(){return Object(a.a)().footable.colors},table_styles:function(){return Object(a.a)().footable.css_libs},availableStyles:function(){var t=this.table_styles[this.default_settings.css_lib];return!!t&&t.styles}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_default_settings"}).then(function(e){t.default_settings=e.data.default_settings}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this;this.saving=!0;var e=[];l()(this.availableStyles,function(t){e.push(t.key)}),this.default_settings.css_classes=o()(e,this.default_settings.css_classes),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_default_settings",default_settings:this.default_settings}).then(function(e){t.$message.success({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.get()}}},function(t,e,n){var a=n(112),i=n(335),o=n(339),s=n(21),l=n(117),r=n(118),c=Math.min;t.exports=function(t,e,n){for(var u=n?o:i,d=t[0].length,_=t.length,p=_,f=Array(_),m=1/0,v=[];p--;){var h=t[p];p&&e&&(h=s(h,l(e))),m=c(h.length,m),f[p]=!n&&(e||d>=120&&h.length>=120)?new a(p&&h):void 0}h=t[0];var b=-1,g=f[0];t:for(;++b<d&&v.length<m;){var y=h[b],x=e?e(y):y;if(y=n||0!==y?y:0,!(g?r(g,x):u(v,x,n))){for(p=_;--p;){var w=f[p];if(!(w?r(w,x):u(t[p],x,n)))continue t}g&&g.push(x),v.push(y)}}return v}},function(t,e,n){var a=n(313),i=n(40),o=n(72);t.exports=function(){this.size=0,this.__data__={hash:new a,map:new(o||i),string:new a}}},function(t,e,n){var a=n(314),i=n(319),o=n(320),s=n(321),l=n(322);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=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(37);t.exports=function(){this.__data__=a?a(null):{},this.size=0}},function(t,e,n){var a=n(113),i=n(316),o=n(39),s=n(114),l=/^\[object .+?Constructor\]$/,r=Function.prototype,c=Object.prototype,u=r.toString,d=c.hasOwnProperty,_=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(a(t)?_:l).test(s(t))}},function(t,e,n){var a,i=n(317),o=(a=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var a=n(5)["__core-js_shared__"];t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var a=n(37),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}},function(t,e,n){var a=n(37),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return a?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var a=n(37),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}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var a=n(41),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))}},function(t,e,n){var a=n(41);t.exports=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var a=n(41);t.exports=function(t){return a(this.__data__,t)>-1}},function(t,e,n){var a=n(41);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}},function(t,e,n){var a=n(42);t.exports=function(t){var e=a(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var a=n(42);t.exports=function(t){return a(this,t).get(t)}},function(t,e,n){var a=n(42);t.exports=function(t){return a(this,t).has(t)}},function(t,e,n){var a=n(42);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}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(336);t.exports=function(t,e){return!(null==t||!t.length)&&a(t,e,0)>-1}},function(t,e,n){var a=n(116),i=n(337),o=n(338);t.exports=function(t,e,n){return e==e?o(t,e,n):a(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var a=n-1,i=t.length;++a<i;)if(t[a]===e)return a;return-1}},function(t,e){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}},function(t,e,n){var a=n(43),i=n(341),o=n(343);t.exports=function(t,e){return o(i(t,e,a),t+"")}},function(t,e,n){var a=n(342),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,s=-1,l=i(o.length-e,0),r=Array(l);++s<l;)r[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(r),a(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var a=n(344),i=n(347)(a);t.exports=i},function(t,e,n){var a=n(345),i=n(346),o=n(43),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:a(e),writable:!0})}:o;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var a=n(14),i=function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e){var n=800,a=16,i=Date.now;t.exports=function(t){var e=0,o=0;return function(){var s=i(),l=a-(s-o);if(o=s,l>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var a=n(349);t.exports=function(t){return a(t)?t:[]}},function(t,e,n){var a=n(44),i=n(6);t.exports=function(t){return i(t)&&a(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a&&!1!==e(t[n],n,t););return t}},function(t,e,n){var a=n(352),i=n(364)(a);t.exports=i},function(t,e,n){var a=n(353),i=n(45);t.exports=function(t,e){return t&&a(t,e,i)}},function(t,e,n){var a=n(354)();t.exports=a},function(t,e){t.exports=function(t){return function(e,n,a){for(var i=-1,o=Object(e),s=a(e),l=s.length;l--;){var r=s[t?l:++i];if(!1===n(o[r],r,o))break}return e}}},function(t,e,n){var a=n(356),i=n(119),o=n(4),s=n(120),l=n(122),r=n(123),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&i(t),d=!n&&!u&&s(t),_=!n&&!u&&!d&&r(t),p=n||u||d||_,f=p?a(t.length,String):[],m=f.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||_&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||f.push(v);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}},function(t,e,n){var a=n(10),i=n(6),o="[object Arguments]";t.exports=function(t){return i(t)&&a(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var a=n(10),i=n(73),o=n(6),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[a(t)]}},function(t,e,n){(function(t){var a=n(38),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&a.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=l}).call(e,n(121)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var a=n(363)(Object.keys,Object);t.exports=a},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var a=n(44);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,s=e?o:-1,l=Object(n);(e?s--:++s<o)&&!1!==i(l[s],s,l););return n}}},function(t,e,n){var a=n(43);t.exports=function(t){return"function"==typeof t?t:a}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),n("hr"),t._v(" "),[n("div",{staticClass:"ninja_block"},[n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],1),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,e.key)>-1:t.default_settings.css_classes},on:{change:function(n){var a=t.default_settings.css_classes,i=n.target,o=!!i.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);i.checked?l<0&&t.$set(t.default_settings,"css_classes",a.concat([s])):l>-1&&t.$set(t.default_settings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.default_settings,"css_classes",o)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_title,expression:"default_settings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.default_settings.show_title)?t._i(t.default_settings.show_title,"1")>-1:t.default_settings.show_title},on:{change:function(e){var n=t.default_settings.show_title,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_description,expression:"default_settings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.default_settings.show_description)?t._i(t.default_settings.show_description,"1")>-1:t.default_settings.show_description},on:{change:function(e){var n=t.default_settings.show_description,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.enable_search,expression:"default_settings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.default_settings.enable_search)?t._i(t.default_settings.enable_search,"1")>-1:t.default_settings.enable_search},on:{change:function(e){var n=t.default_settings.enable_search,a=e.target,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(" "),n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.column_sorting,expression:"default_settings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.default_settings.column_sorting)?t._i(t.default_settings.column_sorting,"1")>-1:t.default_settings.column_sorting},on:{change:function(e){var n=t.default_settings.column_sorting,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.hide_all_borders,expression:"default_settings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.default_settings.hide_all_borders)?t._i(t.default_settings.hide_all_borders,null)>-1:t.default_settings.hide_all_borders},on:{change:function(e){var n=t.default_settings.hide_all_borders,a=e.target,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(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("h3",[t._v("Default Table Color")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_color,expression:"default_settings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.default_settings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.tableColors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])}))]),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Pagination Setting")]),t._v(" "),n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.default_settings.show_all,callback:function(e){t.$set(t.default_settings,"show_all",e)},expression:"default_settings.show_all"}})],1)]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.perPage,expression:"default_settings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.default_settings.show_all||"1"==t.default_settings.show_all},domProps:{value:t.default_settings.perPage},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"perPage",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[n("el-button",{attrs:{loading:t.saving,type:"success",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Appearance Settings")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("\n The following settings will be applied to the newly created tables. Of course, You can customize the\n appearance settings to each table level.\n ")])])}]}},function(t,e,n){var a=n(0)(n(370),n(371),!1,function(t){n(368)},null,null);t.exports=a.exports},function(t,e,n){var a=n(369);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4435994d",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".license_form{text-align:center;padding:20px 0}.license_form label{font-size:30px;font-weight:400;display:block;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{min-width:400px;height:48px;width:50%;margin-bottom:20px;border-radius:5px;border:1px solid gray;background:#fbfdff;font-size:20px;padding:0 10px}.license_form .error_message{margin-top:40px;padding:10px;background:#ffe491;color:#000;font-weight:700;border-radius:5px}.license_success{text-align:center;padding:40px 0}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"license",data:function(){return{licenseKey:"",error_message:"",enter_new_license:!1,checkingLicense:!1,doing_ajax:!1,renewLicenseHtml:"",renewHtml:"",is_valid:window.ninja_table_admin.hasValidLicense}},methods:{activateLicense:function(){var t=this;this.licenseKey?(this.doing_ajax=!0,this.error_message="",jQuery.post(ajaxurl,{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="",jQuery.post(ajaxurl,{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="",jQuery.get(ajaxurl,{action:"_ninjatables_pro_license_get_license_info"}).then(function(e){t.renewLicenseHtml=e.data.renewHtml,t.is_valid=e.data.status,t.renewHtml=e.data.renewHtml}).fail(function(e){t.error_message=e.responseJSON.data.message}).always(function(){t.checkingLicense=!1})}},mounted:function(){this.get_license_info()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"license"},[n("div",{staticClass:"ninja_header"},["valid"==t.is_valid?n("div",[n("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[n("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):n("div",[n("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?n("div",{staticClass:"license_success"},[n("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"default",size:"mini"},on:{click:function(e){t.deactivateLicense()}}},[t._v(t._s(t.$t("Deactivate License")))]),t._v(" "),t.renewHtml?n("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[n("div",{staticClass:"checking_license",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),n("p",[t._v("If you already renewed your license then please "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),n("p",[t._v("Have a new license key? Please "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n You need to activate your Ninja Table Pro by providing the license key bellow. If you don't have a\n license key please "),e("a",{attrs:{href:"https://wpmanageninja.com/checkout/purchase-history/",target:"_blank"}},[this._v("Click\n Here")]),this._v(" to get a license key from your purchase. "),e("br"),this._v("Any questions or problems with your license? "),e("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[this._v("Contact us!")])])}]}},function(t,e,n){var a=n(0)(n(373),n(374),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"GlobalSettings",data:function(){return{loading:!1,ninja_suppress_error:"log_silently"}},methods:{getSettings:function(){var t=this;this.loading=!0,jQuery.get(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"get_global_settings"}).then(function(e){t.ninja_suppress_error=e.data.ninja_suppress_error}).fail(function(t){}).always(function(){t.loading=!1})},storeSettings:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"update_global_settings",suppress_error:this.ninja_suppress_error};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),n("el-radio-group",{staticClass:"spaced_new_line",model:{value:t.ninja_suppress_error,callback:function(e){t.ninja_suppress_error=e},expression:"ninja_suppress_error"}},[n("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently (Recommended)")]),t._v(" "),n("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),n("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors")])],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){t.storeSettings()}}},[t._v("Update Global Settings")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Settings")])])}]}},function(t,e,n){var a=n(0)(n(378),n(393),!1,function(t){n(376)},null,null);t.exports=a.exports},function(t,e,n){var a=n(377);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1d1d30f8",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".settings_header{font-size:20px;padding-bottom:20px;background:#fff;margin-top:-20px;padding-top:20px;margin-right:-20px;margin-left:-20px;padding-left:24px}.settings_header .action{font-size:16px;cursor:pointer}.settings_header .action:hover{color:#0085ba}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(104),i=n.n(a),o=n(379),s=n.n(o),l=n(22),r=n.n(l),c=n(75),u=n.n(c),d=n(391),_=n.n(d),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"table_home",components:{edit_table:s.a},data:function(){return{table_tabs:[],is_data_saving:!1,is_form_saving:!1,tableId:this.$route.params.table_id,config:null,table:{},doingAjax:!1,doingAjaxTest:!1,user_tab:this.$route.query.user_tab,editTableModalShow:!1,preview_url:"#",has_pro:window.ninja_table_admin.hasPro}},methods:{updateTableColumns:function(t){var e=this;this.doingAjax=!0;var n={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.config.columns};jQuery.post(ajaxurl,n).success(function(n){e.$message({showClose:!0,message:n.message,type:"success"}),t(n)}).fail(function(t){}).always(function(){e.doingAjax=!1})},getSettings:function(){var t=this;this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-table-settings",table_id:this.tableId};jQuery.getJSON(ajaxurl,e).then(function(e){"[object Object]"==Object.prototype.toString.call(e.columns)&&(e.columns=_()(e.columns)),t.config=e,t.table=e.table,t.preview_url=e.preview_url}).fail(function(e){t.$message.error(e.responseJSON.data.message),e.responseJSON.data.route&&t.$router.push({name:e.responseJSON.data.route})}).always(function(){return t.doingAjax=!1})},goToTab:function(t){this.user_tab=t,this.$router.push({name:"custom_tab",params:{table_id:this.tableId},query:{user_tab:t}})},size:u.a,each:r.a,initTableTabs:function(){this.table_tabs=this.applyFilters("ninja_table_table_tabs",[{route:"data_items",title:"Table Rows"},{route:"data_columns",title:"Table Configuration"},{route:"design_studio",title:"Table Design"},{route:"table_editing",title:"Frontend Editing"},{route:"additional_css",title:"Custom CSS/JS"},{route:"import-export",title:"Import - Export"}])}},mounted:function(){var t=this;this.initTableTabs(),this.getSettings(),new i.a(".copy").on("success",function(e){t.$message({message:"Copied to Clipboard!",type:"success"})}),window.ninjaTableBus.$on("initManualSorting",function(t,e,n){var a=p({action:"ninja_tables_init_sortable"},t);jQuery.post(ajaxurl,a).success(function(t){return e(t)}).fail(function(t){return n(t)})}),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}),window.ninjaTableBus.$on("updateTableColumns",function(e){t.updateTableColumns(e)}),window.ninjaTableBus.$emit("addedTable")}}},function(t,e,n){var a=n(0)(n(380),n(381),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(35),i=n.n(a);e.default={name:"add_table",components:{wp_editor:i.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:"",table_caption:""}}}},data:function(){return{btnLoading:!1}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,table_caption:this.table.table_caption,tableId:this.table.ID};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.closeModal()}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_table_edit"},[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("el-input",{attrs:{type:"text",size:"small",placeholder:"Enter a title to identify your table"},model:{value:t.table.post_title,callback:function(e){t.$set(t.table,"post_title",e)},expression:"table.post_title"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),n("el-input",{attrs:{size:"small",type:"text",placeholder:"Enter a table caption if you want to show"},model:{value:t.table.table_caption,callback:function(e){t.$set(t.table,"table_caption",e)},expression:"table.table_caption"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{loading:t.btnLoading,type:"primary",size:"small"},on:{click:t.addTable}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(14)(n(5),"DataView");t.exports=a},function(t,e,n){var a=n(14)(n(5),"Promise");t.exports=a},function(t,e,n){var a=n(14)(n(5),"Set");t.exports=a},function(t,e,n){var a=n(14)(n(5),"WeakMap");t.exports=a},function(t,e,n){var a=n(10),i=n(4),o=n(6),s="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&a(t)==s}},function(t,e,n){var a=n(388),i=n(389),o=n(390);t.exports=function(t){return i(t)?o(t):a(t)}},function(t,e,n){var a=n(126)("length");t.exports=a},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+a+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+r+("(?:\\u200d(?:"+[o,s,l].join("|")+")[\\ufe0e\\ufe0f]?"+r+")*"),u="(?:"+[o+a+"?",a,s,l,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+c,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},function(t,e,n){var a=n(392),i=n(45);t.exports=function(t){return null==t?[]:a(t,i(t))}},function(t,e,n){var a=n(21);t.exports=function(t,e){return a(e,function(e){return t[e]})}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.doingAjax?n("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),n("div",{staticClass:"settings_header"},[n("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[n("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[n("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),n("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+t.tableId+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),n("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[n("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),n("a",{attrs:{href:t.preview_url,target:"_blank"}},[n("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Buy Pro")))])],1)],1)]),t._v(" "),n("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[n("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,function(e){return n("router-link",{key:e.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:e.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(e.title)+"\n ")])})),t._v(" "),t.config?n("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{title:"Update Table Info",visible:t.editTableModalShow,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editTableModalShow=e}}},[t.editTableModalShow?n("edit_table",{attrs:{table:t.table},on:{modal_close:function(e){t.editTableModalShow=!t.editTableModalShow}}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(397),n(503),!1,function(t){n(395)},null,null);t.exports=a.exports},function(t,e,n){var a=n(396);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("eb4f6a92",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-table{margin-top:10px;margin-bottom:10px}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{padding-left:5px;cursor:pointer;opacity:0;display:inline-block}.nt-column-config:hover{color:#58b7ff}.instruction_block{padding:30px 20px;background:#fff}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(127),i=n.n(a),o=n(128),s=n.n(o),l=n(22),r=(n.n(l),n(136)),c=n.n(r),u=n(80),d=n(440),_=n.n(d),p=n(105),f=n.n(p),m=n(137),v=n.n(m),h=n(457),b=n.n(h),g=n(138),y=n.n(g),x=n(82),w=n.n(x),C=n(483),k=n.n(C),S=n(488),j=n.n(S),T=n(493),P=n.n(T),E=n(498),A=n.n(E);e.default={name:"TableDataItems",components:{add_data_modal:_.a,ninja_pagination:f.a,Alert:v.a,DeletePopOver:b.a,SortableUpgradeNotice:y.a,columnsEditor:w.a,FluentFormNav:k.a,ExternalSourceNav:j.a,WPPostsNav:A.a,RawSqlNav:P.a},props:["config","getColumnSettings","hasPro"],data:function(){return{columnModal:!1,show_meta:!1,new_column:{},has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,isCompact:!0,tableWidth:"100%",tableData:[],searchString:"",doingAjax:!1,addDataModal:!1,tableId:this.$route.params.table_id,loading:!1,syncing:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:20},multipleSelection:[],updateItem:null,editIndex:null,sorting:!1,sortableInstance:null,sortableUpgradeNotice:!1,insertAfterPosition:null,showColumnEditor:!1,currentEditingColumn:!1,addDataModalTitle:"Add Row",dataModalType:"add",dataSource:"default",isUpdatingTableSettings:!1,externalDataSourceUrl:this.config.table.remoteURL,insertAfterId:!1,insertAfterHash:!1}},watch:{searchString:function(){""==this.searchString&&this.getData()},sorting:function(t){if(t){if(!this.has_pro)return this.sorting=!1,void window.ninjaTableBus.$emit("show_pro_popup");if(!this.hasSortable)return this.sorting=!1,void(this.sortableUpgradeNotice=!0)}this.toggleSorting(t)},"new_column.name":function(){this.new_column.key=c()(this.new_column.name)}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},columnLength:function(){return this.columns.length},dataSourceType:function(){var t=this.config;return t&&"dataSourceType"in t.table?t.table.dataSourceType:"default"},isEditable:function(){var t=this.config;return!(t&&"isEditable"in t.table)||t.table.isEditable},isEditableMessage:function(){var t=this.config;return t&&"isEditableMessage"in t.table?t.table.isEditableMessage:null}},methods:{getData:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"get-table-data",table_id:this.tableId,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};return this.loading=!0,jQuery.get(ajaxurl,e).success(function(e){t.items=e.data,t.dataSource=e.data_source,t.paginate.total=parseInt(e.total),t.paginate.last_page=parseInt(e.last_page)}).fail(function(t){}).always(function(){t.loading=!1})},addTableData:function(){},getItemNumber:function(t){return this.paginate.per_page*(this.paginate.current_page-1)+(t+1)},goToPage:function(t){this.paginate.current_page=t,this.getData()},handleSizeChange:function(t){this.paginate.per_page=t,this.getData()},confirmDeleteTable:function(t){confirm(this.$t("Are you sure, You want to delete this table"))&&this.deleteTable(t)},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};jQuery.post(ajaxurl,n).then(function(t){e.fetchTables(),alert(t.message)}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.multipleSelection=t},handleBulkAction:function(){this.multipleSelection.length&&"delete"==this.bulkAction&&this.handleBulkDelete()},handleBulkDelete:function(){var t=this;this.$confirm(this.$t("This will permanently delete the selected rows. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){var e=t.multipleSelection.map(function(t){return t.id});t.deleteItem(e)}).catch(function(){t.$message({type:"info",message:t.$t("Delete canceled")})})},deleteItem:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-data",table_id:this.tableId,id:t},a=this;jQuery.post(ajaxurl,n).then(function(t){e.$message({showClose:!0,message:t.message,type:"success"}),a.getData()}).fail(function(t){e.$message({showClose:!0,message:e.$t("Something is wrong! Please try again"),type:"error"})})},closeDataModal:function(t){this.addDataModal=!1,this.editIndex=null,this.insertAfterPosition=null,this.dataModalType="add",this.insertAfterId=!1,this.insertAfterHash=!1,t&&this.getData()},updateItemOnTable:function(t){this.items[this.editIndex].values=t.values,this.items[this.editIndex].settings=t.settings,t.created_at&&(this.items[this.editIndex].created_at=t.created_at)},addItemOnTable:function(t,e){e||(e=t.position),"last-first"==e&&(e="new_first"==this.config.settings.default_sorting?"first":"last"),e?"last"==e?this.items.push(t):"first"==e?this.items.unshift(t):!1!==this.insertAfterHash?(this.insertAfterHash++,this.items.splice(this.insertAfterHash,-1,t)):this.items.push(t):this.items.unshift(t),this.insertAfterPosition&&(this.insertAfterPosition=t.position),this.insertAfterId&&(this.insertAfterId=t.id),this.paginate.total++},showUpdateModal:function(t){this.updateItem=t.row,this.editIndex=t.$index,this.addDataModal=!0,this.dataModalType="update",this.addDataModalTitle="Update Row"},addColumn:function(){this.columnModal=!0},validateColumn:function(t){return t.name?t.key?-1===s()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.config.columns.push(this.new_column),this.setNewColumn(),this.columnModal=!1,this.storeSettings())},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",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=i.a.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={action:"ninja_tables_sort_table",table_id:this.tableId,id:t,newPosition:e,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};jQuery.post(ajaxurl,a).then(function(t){n.items=t.data,n.paginate.total=parseInt(t.total),n.paginate.last_page=parseInt(t.last_page)}).fail(function(t){console.log(t)}).always(function(){n.loading=!1})},add:function(){this.updateItem=null,this.insertAfterPosition=null,this.addDataModal=!0,this.dataModalType="add",this.addDataModalTitle="Add Data"},addAfter:function(t){this.hasSortable?(this.updateItem=null,this.addDataModalTitle="Add Data",this.dataModalType="add-after",this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0):this.sortableUpgradeNotice=!0},addConfigIcon:function(t,e){var n=e.column,a=(e.$index,this),i=JSON.parse(n.label),o=t("i",{props:{size:"mini",class:"el-icon-setting",plain:!0,round:!0},class:"el-icon-setting nt-column-config",on:{click:function(t){a.showColumnConfigModal(i)}}});return t("span",null,[i.name||i.key,o])},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=Object.assign({},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=s()(this.config.columns,this.currentEditingColumn);this.showColumnEditor=!1,this.currentEditingColumn=!1,this.config.columns.splice(e,1),this.$nextTick(function(){return t.storeSettings()})},renderTableCell:function(t,e,n){return Array.isArray(t)&&(t=t.join(", ")),e.transformed_value&&e.transformed_value.trim()?this.getShortcodes(t,e,n):t},getShortcodes:function(t,e,n){var a=e.transformed_value;-1!=a.indexOf("{{")&&(a=Object(u.a)(a,{row:n}));var i=a.match(/{row.([^\}]*)}/g);return i?($.each(i,function(t,e){var i=e.substring(5,e.length-1),o="",s=i.indexOf("|");-1!==s&&(o=i.substring(s+1,i.length),i=i.substring(0,s)),a=n[i]?a.replace(e,n[i]):a.replace(e,o)}),a):a}},mounted:function(){this.getData(),this.tableWidth=jQuery(".wrap").width()+"px",this.setNewColumn()}}},function(t,e,n){var a=n(399),i=n(420),o=n(43),s=n(4),l=n(427);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):a(t):l(t)}},function(t,e,n){var a=n(400),i=n(419),o=n(133);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)}}},function(t,e,n){var a=n(129),i=n(130),o=1,s=2;t.exports=function(t,e,n,l){var r=n.length,c=r,u=!l;if(null==t)return!c;for(t=Object(t);r--;){var d=n[r];if(u&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++r<c;){var _=(d=n[r])[0],p=t[_],f=d[1];if(u&&d[2]){if(void 0===p&&!(_ in t))return!1}else{var m=new a;if(l)var v=l(p,f,_,t,e,m);if(!(void 0===v?i(f,p,o|s,l,m):v))return!1}}return!0}},function(t,e,n){var a=n(40);t.exports=function(){this.__data__=new a,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(40),i=n(72),o=n(69),s=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof a){var l=n.__data__;if(!i||l.length<s-1)return l.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(l)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var a=n(129),i=n(131),o=n(408),s=n(412),l=n(125),r=n(4),c=n(120),u=n(123),d=1,_="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,h,b){var g=r(t),y=r(e),x=g?p:l(t),w=y?p:l(e),C=(x=x==_?f:x)==f,k=(w=w==_?f:w)==f,S=x==w;if(S&&c(t)){if(!c(e))return!1;g=!0,C=!1}if(S&&!C)return b||(b=new a),g||u(t)?i(t,e,n,v,h,b):o(t,e,x,n,v,h,b);if(!(n&d)){var j=C&&m.call(t,"__wrapped__"),$=k&&m.call(e,"__wrapped__");if(j||$){var T=j?t.value():t,P=$?e.value():e;return b||(b=new a),h(T,P,n,v,b)}}return!!S&&(b||(b=new a),s(t,e,n,v,h,b))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var a=n(11),i=n(409),o=n(115),s=n(131),l=n(410),r=n(411),c=1,u=2,d="[object Boolean]",_="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",v="[object RegExp]",h="[object Set]",b="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=a?a.prototype:void 0,C=w?w.valueOf:void 0;t.exports=function(t,e,n,a,w,k,S){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case y:return!(t.byteLength!=e.byteLength||!k(new i(t),new i(e)));case d:case _:case m:return o(+t,+e);case p:return t.name==e.name&&t.message==e.message;case v:case b:return t==e+"";case f:var j=l;case h:var $=a&c;if(j||(j=r),t.size!=e.size&&!$)return!1;var T=S.get(t);if(T)return T==e;a|=u,S.set(t,e);var P=s(j(t),j(e),a,w,k,S);return S.delete(t),P;case g:if(C)return C.call(t)==C.call(e)}return!1}},function(t,e,n){var a=n(5).Uint8Array;t.exports=a},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,a){n[++e]=[a,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var a=n(413),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,l,r){var c=n&i,u=a(t),d=u.length;if(d!=a(e).length&&!c)return!1;for(var _=d;_--;){var p=u[_];if(!(c?p in e:o.call(e,p)))return!1}var f=r.get(t);if(f&&r.get(e))return f==e;var m=!0;r.set(t,e),r.set(e,t);for(var v=c;++_<d;){var h=t[p=u[_]],b=e[p];if(s)var g=c?s(b,h,p,e,t,r):s(h,b,p,t,e,r);if(!(void 0===g?h===b||l(h,b,n,s,r):g)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var y=t.constructor,x=e.constructor;y!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x)&&(m=!1)}return r.delete(t),r.delete(e),m}},function(t,e,n){var a=n(414),i=n(416),o=n(45);t.exports=function(t){return a(t,o,i)}},function(t,e,n){var a=n(415),i=n(4);t.exports=function(t,e,n){var o=e(t);return i(t)?o:a(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=e.length,i=t.length;++n<a;)t[i+n]=e[n];return t}},function(t,e,n){var a=n(417),i=n(418),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),a(s(t),function(e){return o.call(t,e)}))}:i;t.exports=l},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,i=0,o=[];++n<a;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var a=n(132),i=n(45);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,a(s)]}return e}},function(t,e,n){var a=n(130),i=n(76),o=n(424),s=n(77),l=n(132),r=n(133),c=n(46),u=1,d=2;t.exports=function(t,e){return s(t)&&l(e)?r(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):a(e,s,u|d)}}},function(t,e,n){var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(422)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,function(t,n,a,o){e.push(a?o.replace(i,"$1"):n||t)}),e});t.exports=o},function(t,e,n){var a=n(423),i=500;t.exports=function(t){var e=a(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var a=n(69),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 s=t.apply(this,a);return n.cache=o.set(i,s)||o,s};return n.cache=new(o.Cache||a),n}o.Cache=a,t.exports=o},function(t,e,n){var a=n(425),i=n(426);t.exports=function(t,e){return null!=t&&i(t,e,a)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var a=n(135),i=n(119),o=n(4),s=n(122),l=n(73),r=n(46);t.exports=function(t,e,n){for(var c=-1,u=(e=a(e,t)).length,d=!1;++c<u;){var _=r(e[c]);if(!(d=null!=t&&n(t,_)))break;t=t[_]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&l(u)&&s(_,u)&&(o(t)||i(t))}},function(t,e,n){var a=n(126),i=n(428),o=n(77),s=n(46);t.exports=function(t){return o(t)?a(s(t)):i(t)}},function(t,e,n){var a=n(134);t.exports=function(t){return function(e){return a(e,t)}}},function(t,e,n){var a=n(430);t.exports=function(t){var e=a(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var a=n(431),i=1/0,o=1.7976931348623157e308;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}},function(t,e,n){var a=n(39),i=n(23),o=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=r.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):l.test(t)?o:+t}},function(t,e,n){var a=n(433),i=n(434),o=n(436),s=RegExp("['’]","g");t.exports=function(t){return function(e){return a(o(i(e).replace(s,"")),t,"")}}},function(t,e){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}},function(t,e,n){var a=n(435),i=n(26),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,a).replace(s,"")}},function(t,e,n){var a=n(79)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=a},function(t,e,n){var a=n(437),i=n(438),o=n(26),s=n(439);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?s(t):a(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",l="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",d="(?:"+s+"|"+l+")",_="(?:"+u+"|"+l+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+p+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",r,c].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*"),m="(?:"+[o,r,c].join("|")+")"+f,v=RegExp([u+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[a,u,"$"].join("|")+")",_+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[a,u+d,"$"].join("|")+")",u+"?"+d+"+(?:['’](?:d|ll|m|re|s|t|ve))?",u+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,m].join("|"),"g");t.exports=function(t){return t.match(v)||[]}},function(t,e,n){var a=n(0)(n(443),n(452),!1,function(t){n(441)},null,null);t.exports=a.exports},function(t,e,n){var a=n(442);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6ff48a58",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".dialog-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.dialog-footer.single-child{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.row_config_container{display:block;padding:10px 15px;background:#d8edfd;position:relative;border-radius:5px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(22),i=n.n(a),o=n(35),s=n.n(o),l=n(444),r=n.n(l),c=n(447),u=n.n(c);e.default={name:"add_data",props:["title","show","columns","table_id","item","manualSort","insertAfterPosition","insertAfterId","type"],data:function(){return{row_config:!1,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},btnLoading:!1,continueAdding:!0,newColumn:{},has_pro:!!window.ninja_table_admin.hasPro,position:"last",modal_title:"Add Row",item_settings:{},created_at:"",adding_counter:1}},computed:{editId:function(){return this.item&&this.item.id},shouldNotContinueAdding:function(){return!(!this.editId&&"duplicate"!==this.type)}},watch:{item:function(){this.initNewColumnObj(),this.item||(this.modal_title="Add Row")}},methods:{addData:function(){var t=this,e=!1;if(i()(this.newColumn,function(t){t&&(e=!0)}),e){this.btnLoading=!0;var n={action:"ninja_tables_ajax_actions",target_action:"store-table-data",table_id:this.table_id,row:this.newColumn,id:this.editId,created_at:this.created_at,settings:this.item_settings,position:this.position};this.insertAfterId&&(n.insert_after_id=this.insertAfterId,n.position=parseInt(this.insertAfterPosition)+1),jQuery.post(ajaxurl,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")}else t.$message({showClose:!0,message:"Failed to add/update data. Please reload this page and try again",type:"error"})}).fail(function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}).always(function(){t.btnLoading=!1})}else this.$message({showClose:!0,message:"Please add at least 1 value to the row",type:"error"})},closeModal:function(){this.$emit("modal_close")},initNewColumnObj:function(){var t=this,e={};i()(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",{}),i()(this.columns,function(e){t.item_settings.cell[e.key]||t.$set(t.item_settings.cell,e.key,{})}),this.item&&(this.created_at=this.item.created_at)},onEditorChange:function(t,e){e.editor;var n=e.html;e.text;this.newColumn[t]=n},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){this.initNewColumnObj()},components:{wp_editor:s.a,NinjaDatePicker:u.a,mayBeSelect:r.a}}},function(t,e,n){var a=n(0)(n(445),n(446),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"maybe_multi_select",props:["newColumn","column"],data:function(){return{appReady:!1}},methods:{getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){if("yes"==this.column.isMultiple){var t=this.newColumn[this.column.key];t?"string"==typeof t&&(this.newColumn[this.column.key]=[t]):this.newColumn[this.column.key]=[]}this.appReady=!0}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.appReady?n("div",{staticClass:"maybe_nt_multi_select"},["yes"==t.column.isMultiple?[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","allow-create":"","default-first-option":"",placeholder:"Choose from the List"},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))]:[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"Choose from the List"},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))]],2):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(450),n(451),!1,function(t){n(448)},null,null);t.exports=a.exports},function(t,e,n){var a=n(449);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6807805a",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_date_picker>.form-control{width:90%;float:left}.ninja_date_picker>.el-date-editor{width:8px!important;padding:0;margin:0;cursor:pointer}.ninja_date_picker>.el-date-editor .el-input__inner{width:10px!important;padding:15px;background:gray;height:34px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninjaDatePicker",props:["column","new_column"],computed:{elementFormat:function(){return this.column.dateFormat.replace(/Y/g,"y").replace(/D/g,"d")}},methods:{slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_date_picker"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_column[t.column.key],expression:"new_column[column.key]"}],staticClass:"form-control",attrs:{placeholder:t.column.dateFormat,type:"text",size:"small",id:t.slugify(t.column.key)},domProps:{value:t.new_column[t.column.key]},on:{input:function(e){e.target.composing||t.$set(t.new_column,t.column.key,e.target.value)}}}),t._v(" "),n("el-date-picker",{attrs:{type:"date",size:"small","value-format":t.elementFormat,format:t.elementFormat,placeholder:"Pick a day"},model:{value:t.new_column[t.column.key],callback:function(e){t.$set(t.new_column,t.column.key,e)},expression:"new_column[column.key]"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.title,visible:t.show,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.show=e},close:t.closeModal}},[t.show?n("div",[t._l(t.columns,function(e){return n("div",{key:e.key,staticClass:"form-group"},[n("label",{attrs:{for:t.slugify(e.key)}},[t._v(t._s(e.name||e.key))]),t._v(" "),"textarea"==e.data_type?n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})]):"html"==e.data_type?n("div",[n("wp_editor",{attrs:{editor_id:t.slugify(e.key)},model:{value:t.newColumn[e.key],callback:function(n){t.$set(t.newColumn,e.key,n)},expression:"newColumn[column.key]"}})],1):"number"==e.data_type?n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})]):"date"==e.data_type?n("div",[n("ninja-date-picker",{attrs:{column:e,new_column:t.newColumn}})],1):"selection"==e.data_type?n("div",[n("may-be-select",{attrs:{column:e,newColumn:t.newColumn}})],1):n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})])])}),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():n("div",[t._v("\n Add at\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"5px"},attrs:{type:"radio",value:"last"},domProps:{checked:t._q(t.position,"last")},on:{change:function(e){t.position="last"}}}),t._v("Last\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"10px"},attrs:{type:"radio",value:"first"},domProps:{checked:t._q(t.position,"first")},on:{change:function(e){t.position="first"}}}),t._v("First\n ")])],2):t._e(),t._v(" "),t.row_config?n("div",{staticClass:"row_config_container"},[t.has_pro?[n("h3",[t._v("Row Settings")]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.row_bg,callback:function(e){t.$set(t.item_settings,"row_bg",e)},expression:"item_settings.row_bg"}})],1),t._v(" "),n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.text_color,callback:function(e){t.$set(t.item_settings,"text_color",e)},expression:"item_settings.text_color"}})],1)]),t._v(" "),n("h3",[t._v("Cell Color Customization")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column")]),t._v(" "),n("th",[t._v("Background Color")]),t._v(" "),n("th",[t._v("Text Color")])])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key]["background-color"],callback:function(n){t.$set(t.item_settings.cell[e.key],"background-color",n)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key].color,callback:function(n){t.$set(t.item_settings.cell[e.key],"color",n)},expression:"item_settings.cell[column.key]['color']"}})],1)])}))]),t._v(" "),t.insertAfterPosition?t._e():n("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v("\n Data Create Date\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you use table sorting by create date then you can change create date to sort your data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"Select date and time"},model:{value:t.created_at,callback:function(e){t.created_at=e},expression:"created_at"}})],1)]:[n("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),n("p",[t._v("Using this module, You can set cell and row level colors of your data, It's a pro feature, Please purchase pro to unlock this feature")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger el-button--mini",attrs:{type:"button"}},[n("span",[t._v("Buy Pro")])])])]],2):t._e(),t._v(" "),n("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[n("div",[n("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.continueAdding,expression:"continueAdding"}],attrs:{type:"checkbox",id:"adding_more"},domProps:{checked:Array.isArray(t.continueAdding)?t._i(t.continueAdding,null)>-1:t.continueAdding},on:{change:function(e){var n=t.continueAdding,a=e.target,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(" "),n("div",{staticClass:"dialog-footer-item"},[n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){t.row_config=!t.row_config}}},[n("i",{staticClass:"el-icon-setting"})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],attrs:{disabled:t.btnLoading,type:"primary",size:"small"},on:{click:t.addData}},[t.editId?n("span",[t._v(" "+t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])},staticRenderFns:[]}},function(t,e,n){var a=n(454);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("013f4f15",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}}},function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"alert",class:"alert-"+this.alertClass},[this._t("default")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(460),n(461),!1,function(t){n(458)},"data-v-590fa148",null);t.exports=a.exports},function(t,e,n){var a=n(459);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("084af8d0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".remove[data-v-590fa148]{display:inline-block}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"remove"},[n("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:t.proceedConfirmation}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1)]),t._v(" "),t.label?n("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):n("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[n("span",{staticClass:"dashicons dashicons-trash"})])],1)},staticRenderFns:[]}},function(t,e,n){var a=n(463);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("34d0fce7",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"SortableUpgradeNotice",props:["show"],data:function(){return{upgradeGuide:window.ninja_table_admin.upgradeGuide}},computed:{visible:{get:function(){return this.show},set:function(){this.close()}}},methods:{close:function(){this.$emit("close")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n ")]),t._v(" "),n("span",[t._v("\n "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("span",[n("a",{attrs:{href:t.upgradeGuide,target:"_blank"}},[t._v(t._s(t.$t("Click here")))]),t._v(" "+t._s(t.$t("to view the upgrade guide."))+"\n ")])])},staticRenderFns:[]}},function(t,e,n){var a=n(467);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4f78983a",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-wrapper{padding:10px}.form-wrapper label{display:initial;max-width:none;margin-bottom:0}.form-wrapper .el-form-item{margin-bottom:15px}.form-wrapper .more-settings:hover{cursor:pointer}.form-wrapper .more-settings i{font-size:1.5em}.form-wrapper .form_group{margin-top:10px}.form-wrapper .basic_settings .el-select{min-width:400px;max-width:100%}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(35),i=n.n(a),o=n(469),s=n.n(o),l=n(476),r=n.n(l),c=n(479),u=n.n(c);e.default={name:"ColumnsEditor",components:{wp_editor:i.a,condition:s.a,"wp-post-dynamic-column":r.a,"content-transformer":u.a},props:{model:{type:Object,default:function(){return{}}},hasPro:{type:Boolean,default:!1},updating:{type:Boolean,default:!1},moreSettings:{type:Boolean,default:!1},hideDelete:{type:Boolean,default:!1},hideCancel:{type:Boolean,default:!1},dataSourceType:{type:String,default:"default"},columns:{type:Array,default:function(){return[]}}},data:function(){return{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"},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}},methods:{addColumn:function(){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)}},mounted:function(){var t=this;this.model&&(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",""),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}))}}},function(t,e,n){var a=n(0)(n(472),n(475),!1,function(t){n(470)},null,null);t.exports=a.exports},function(t,e,n){var a=n(471);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5281c00f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".column-condition-config .el-row{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:5px}.column-condition-config .el-col{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{width:100%;height:33px}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{margin-top:10px;font-weight:400}.column-condition-config .form_group{margin:0;height:35px}.column-condition-config .el-color-picker,.column-condition-config .el-color-picker__mask{width:100%!important}.column-condition-config .el-button--mini{padding:5px 13px}.column-condition-config .conditional-settings-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(139),i=n.n(a),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};e.default={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{NinjaColorPicker:i.a},data:function(){return{defaultCondition:{conditionalOperator:null,conditionalValue:null,conditionalValue2:null,targetAction:null,targetValue:null,targetValueColor:null}}},methods:{addCondition:function(){this.column.conditions||this.$set(this.column,"conditions",[]),this.column.conditions.push(o({},this.defaultCondition))},removeCondition:function(t){this.column.conditions.splice(t,1)},shouldShowColorPicker:function(t){return-1!=["set-cell-color","set-cell-bg-color","set-row-color","set-row-bg-color","set-column-color","set-column-bg-color"].indexOf(t.targetAction)}},mounted:function(){this.column&&!this.column.conditions&&this.$set(this.column,"conditions",[])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_color_picker",props:["label","value","disabled"],data:function(){return{color:"",previous_color:""}},watch:{color:function(t){"transparent"===t&&(this.color=""),this.previous_color=this.color,this.$emit("input",this.color)}},methods:{changeColor:function(t){"transparent"===this.previous_color?(this.previous_color=t,this.color="transparent"):this.color=t}},mounted:function(){this.color=this.value}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form_group"},[n("el-color-picker",{attrs:{"show-alpha":"",disabled:t.disabled},on:{"active-change":t.changeColor},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),t._v(" "),t.label?n("label",[t._v(t._s(t.label))]):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column-condition-config"},[t.hasPro?n("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),n("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n Add Condition\n ")])],1):n("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[n("div",{staticClass:"conditional-settings-title"},[n("H3",[t._v("Conditional Formatting")]),t._v(" "),n("p",[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like.\n Conditional Formatting is a pro feature which can be enabled by using Ninja Table pro Add-on. Ninja\n Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),t._m(1)],1)]),t._v(" "),n("hr"),t._v(" "),t._l(t.column.conditions,function(e,a){return n("el-row",{key:a},[n("el-col",{attrs:{sm:2,md:2}},[n("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:e.conditionalOperator,callback:function(n){t.$set(e,"conditionalOperator",n)},expression:"condition.conditionalOperator"}},[n("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),n("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than Or Equal To",value:"less-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than Or Equal To",value:"greater-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-input",{attrs:{size:"small",placeholder:"between"==e.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:e.conditionalValue,callback:function(n){t.$set(e,"conditionalValue",n)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==e.conditionalOperator?n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:e.conditionalValue2,callback:function(n){t.$set(e,"conditionalValue2",n)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:e.targetAction,callback:function(n){t.$set(e,"targetAction",n)},expression:"condition.targetAction"}},[n("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[n("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),n("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[n("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),n("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[n("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(e),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:e.targetValue,callback:function(n){t.$set(e,"targetValue",n)},expression:"condition.targetValue"}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(e),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[n("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:e.targetValueColor,callback:function(n){t.$set(e,"targetValueColor",n)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-minus",disabled:!t.hasPro},on:{click:function(e){t.removeCondition(a)}}})],1)],1)}),t._v(" "),"date"==t.column.data_type?n("div",{staticClass:"nt_suggest"},[n("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),n("p",[t._v("Example Usage")]),t._v(" "),n("ul",[n("li",[t._v("Today's Date: "),n("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Tomorrow's Date: "),n("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Yesterday's Date: "),n("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date After 10 Days: "),n("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date Before 10 Days: "),n("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():n("el-row",[n("el-alert",{attrs:{center:"",closable:!1,title:"You haven't added any conditions for the column yet!",type:"info"}})],1)],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"conditional-settings-title"},[this._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/conditional-column-formatting/"}},[this._v("View\n Documentation")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=conditional_formatting&utm_term=upgrade",target:"_blank"}},[e("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[e("span",[this._v("Buy Pro and Enable Conditional Formatting")])])])}]}},function(t,e,n){var a=n(0)(n(477),n(478),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WPPostDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[]}},watch:{"column.wp_post_custom_data_type":function(){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);jQuery.get(ajaxurl,{action:"ninja_table_wp-posts_get_custom_field_options"}).then(function(e){window.ninja_wp_posts_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.setFieldOptions()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[n("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),n("hr"),t._v(" "),"custom"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Type")]),t._v(" "),n("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Field",size:"small"},model:{value:t.column.wp_post_custom_data_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_type",e)},expression:"column.wp_post_custom_data_type"}},t._l(t.post_data_types,function(t){return n("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})}))],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Value")]),t._v(" "),n("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}},t._l(t.selectedField.options,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}))]:n("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?n("div",{staticClass:"ninja_instruction"},[n("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?n("p",[n("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2)]:t._e(),t._v(" "),"post_data"==t.column.source_type||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),"yes"==t.column.permalinked?["post_author"==t.column.original_name?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the author as table filter action. So when user click on those filters then they will see only the selected author posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2):t._e(),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:"tax_data"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Taxonomy Separator")]),t._v(" "),n("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(480),n(481),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(137),i=n.n(a),o=n(36),s=n.n(o);e.default={name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},components:{ninja_alert:i.a,NinjaPremiumNotice:s.a},data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Data Transformer is a powerful tool where you can concat any column values easily into any valid html and show as computed value.\n ")]),t._v(" "),n("el-input",{attrs:{type:"textarea",rows:"4",placeholder:"Please Input Transform Values (HTML supported)",disabled:!t.hasPro},model:{value:t.column.transformed_value,callback:function(e){t.$set(t.column,"transformed_value",e)},expression:"column.transformed_value"}}),t._v(" "),t.hasPro?t._e():n("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),n("div",{staticClass:"ninja_instruction"},[n("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[t._v("{{"),n("span",[t._v("row."+t._s(e.key))]),t._v("}}")])])}))]),t._v(" "),n("br"),t._v(" "),t._m(1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Column Title")]),this._v(" "),e("th",[this._v("Reference Shortcode")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("You may "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/value-transformation/",target:"_blank"}},[this._v("check the documentation here.")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[n("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Name"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Name")]),t._v(" "),n("p",[t._v("\n Enter a column name to set the header title.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Key"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Key")]),t._v(" "),n("p",[t._v("\n Column key is for data mapping, export and import table data.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:t.updating},model:{value:t.model.key,callback:function(e){t.$set(t.model,"key",e)},expression:"model.key"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Data Type"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),n("p",[t._v("\n Choose the data type of the column.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Select Data Type of this column"},model:{value:t.model.data_type,callback:function(e){t.$set(t.model,"data_type",e)},expression:"model.data_type"}},t._l(t.dataTypesOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasPro,expression:"hasPro"}]},[t._v("Select HTML Field if you want to add Link, media or any type of html")])],2),t._v(" "),"date"==t.model.data_type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Format"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),n("p",[t._v("\n Pattern of the date value.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[n("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),n("el-radio",{attrs:{label:"custom",disabled:!t.hasPro},nativeOn:{click:function(e){return t.showProPopUp(e)}}},[t._v("Custom")])],1),t._v(" "),"custom"!=t.model.formatType?n("el-form-item",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.model.dateFormat,expression:"model.dateFormat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.model,"dateFormat",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(a)+" - (Ex: "+t._s(e)+")\n ")])})],2)]):n("el-form-item",[n("el-input",{attrs:{size:"small",placeholder:"Enter moment.js supported format"},model:{value:t.model.dateFormat,callback:function(e){t.$set(t.model,"dateFormat",e)},expression:"model.dateFormat"}})],1)],2):"number"==t.model.data_type&&t.hasPro?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Thousand Separator"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),n("p",[t._v("\n Please Provide The Thousand Separator If Any.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.thousandSeparator,callback:function(e){t.$set(t.model,"thousandSeparator",e)},expression:"model.thousandSeparator"}},[n("el-radio",{attrs:{label:""}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"."}},[t._v("Dot (.)")]),t._v(" "),n("el-radio",{attrs:{label:","}},[t._v("Comma (,)")])],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Decimal Separator"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),n("p",[t._v("\n Please Provide The Decimal Separator If Any.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.decimalSeparator,callback:function(e){t.$set(t.model,"decimalSeparator",e)},expression:"model.decimalSeparator"}},[n("el-radio",{attrs:{label:""}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"."}},[t._v("Dot (.)")]),t._v(" "),n("el-radio",{attrs:{label:","}},[t._v("Comma (,)")])],1)],2)]:"selection"==t.model.data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Select Items"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Select Field")]),t._v(" "),n("p",[t._v("\n Use Select Field to add data in your table from predefined list\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-form-item",[t.has_pro?t._e():n("p",[n("b",[t._v("Selection feature is only available on Pro version Please upgrade to pro to unlock this feature")])]),t._v(" "),n("el-input",{attrs:{type:"textarea",size:"small",disabled:!t.has_pro,placeholder:"Enter Select items one per line",autosize:{minRows:4,maxRows:8}},model:{value:t.model.selections,callback:function(e){t.$set(t.model,"selections",e)},expression:"model.selections"}}),t._v(" "),n("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Enable Multi-Selection"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Multiple Selection")]),t._v(" "),n("p",[t._v("\n If you select yes, Then admin can select multiple item on create data\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.isMultiple,callback:function(e){t.$set(t.model,"isMultiple",e)},expression:"model.isMultiple"}})],2)]:t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Responsive Breakpoint"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Responsive Breakpoint")]),t._v(" "),n("p",[t._v("\n Choose responsive breakpoints of your table columns. "),n("br"),t._v("\n For more details check "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"}},[t._v("documentation")]),t._v(".\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Select Responsive Breakpoint"},model:{value:t.model.breakpoints,callback:function(e){t.$set(t.model,"breakpoints",e)},expression:"model.breakpoints"}},t._l(t.breakPointsOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}))],2),t._v(" "),"wp-posts"==t.dataSourceType?n("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):t._e()],2),t._v(" "),n("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[n("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():n("div",{staticClass:"ninja_table_inline_upgrade"},[n("H3",[t._v("Advanced Column Settings")]),t._v(" "),n("p",[t._v("\n Customize your table's column's width, custom css class, content alignments, column styling with this feature.\n Advanced Column Settings is a pro feature and You can use it once you upgrade to Ninja Tables Pro.\n Ninja Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=advanced_column&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[n("span",[t._v("Buy Pro and Enable This Module")])])])],1),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Extra Classes"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Extra CSS Classes")]),t._v(" "),n("p",[t._v("\n Enter extra CSS classes to the column. "),n("br"),t._v("\n Use `space` to separate each class.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:!t.hasPro},model:{value:t.model.classes,callback:function(e){t.$set(t.model,"classes",e)},expression:"model.classes"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Max Width"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),n("p",[t._v("\n Enter the maximum width of the column. This will be applied for the entire column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",type:"number",disabled:!t.hasPro},model:{value:t.model.width,callback:function(e){t.$set(t.model,"width",e)},expression:"model.width"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header Text Alignment")]),t._v(" "),n("p",[t._v("\n Choose the text alignment. This will be applied only for header\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Text Align"},model:{value:t.model.textAlign,callback:function(e){t.$set(t.model,"textAlign",e)},expression:"model.textAlign"}},t._l(t.alignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}))],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Row Content Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Content Text Alignment")]),t._v(" "),n("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Content Alignment"},model:{value:t.model.contentAlign,callback:function(e){t.$set(t.model,"contentAlign",e)},expression:"model.contentAlign"}},t._l(t.contentAlignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}))],2),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{disabled:!t.hasPro,value:!0,label:"Enable HTML Table Header Content"},model:{value:t.model.enable_html_content,callback:function(e){t.$set(t.model,"enable_html_content",e)},expression:"model.enable_html_content"}})],1),t._v(" "),t.model.enable_html_content?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header HTML Content"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header HTML Content")]),t._v(" "),n("p",[t._v("\n Provide content for table column header if you want to show html content.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("wp_editor",{model:{value:t.model.header_html_content,callback:function(e){t.$set(t.model,"header_html_content",e)},expression:"model.header_html_content"}})],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filterable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filterable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be filterable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend search for this column data"},model:{value:t.model.unfilterable,callback:function(e){t.$set(t.model,"unfilterable",e)},expression:"model.unfilterable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Sortable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Sortable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be sortable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend sorting for this column"},model:{value:t.model.unsortable,callback:function(e){t.$set(t.model,"unsortable",e)},expression:"model.unsortable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Background"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Background color")]),t._v(" "),n("p",[t._v("\n You can set background color of this particular column that will show on the frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Text Color"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Text Color color")]),t._v(" "),n("p",[t._v("\n You can set Column Text color of this particular column that will show on the frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[n("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[n("content-transformer",{attrs:{columns:t.columns,column:t.model}})],1),t._v(" "),n("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),n("div",{staticClass:"form_group"},[n("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():n("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[n("p",[t._v("Are you sure to delete this?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm")])],1),t._v(" "),t.hideDelete?t._e():n("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete")))])],1),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.store(e)}}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])]:[t.hideCancel?t._e():n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return e.preventDefault(),t.cancel(e)}}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.addColumn(e)}}},[t._v("Add Column")])]],2)])],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(486),n(487),!1,function(t){n(484)},null,null);t.exports=a.exports},function(t,e,n){var a=n(485);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("508b4bf5",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(108),i=n.n(a);e.default={name:"FluentformNav",components:{FluentForm:i.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(491),n(492),!1,function(t){n(489)},null,null);t.exports=a.exports},function(t,e,n){var a=n(490);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("514643a9",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".external-source-nav .el-collapse-item__header,.external-source-nav .el-collapse-item__wrap{padding:0 15px}.external-source-nav .sync-settings{margin-top:15px}.external-source-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(109),i=n.n(a);e.default={name:"External",components:{"external-data-source":i.a},props:{tableCreated:{type:Function},config:{type:Object},isEditableMessage:{required:!0},hasPro:{required:!0}},data:function(){return{state:!1,url:this.value,activated_features:window.ninja_table_admin.activated_features}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"external-source-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("external-data-source",{attrs:{type:t.config.table.dataSourceType,tableCreated:t.tableCreated,columns:t.config.columns,table:t.config.table,hasPro:t.hasPro,editing:!0,activated_features:t.activated_features}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(496),n(497),!1,function(t){n(494)},null,null);t.exports=a.exports},function(t,e,n){var a=n(495);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1d4ef8a2",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(110),i=n.n(a);e.default={name:"RowSQLNav",components:{MySqlEditor:i.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean},column_count:{type:Number}},data:function(){return{error_html:"",loading:!1,active:""}},methods:{updateSql:function(){var t=this;this.loading=!0,this.error_html="",jQuery.post(ajaxurl,{action:"ninja_table_raw_sql_update_sql",table_id:this.config.table.ID,sql:this.config.table.sql}).then(function(e){t.tableCreated(),t.$message({showClose:!0,message:e.data.message,type:"success"})}).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})}},mounted:function(){this.column_count||(this.active="1")}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.config.table.sql,callback:function(e){t.$set(t.config.table,"sql",e)},expression:"config.table.sql"}}),t._v(" "),n("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),n("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),n("p",[t._v("Check the documentation for advanced use cases: "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://wpmanageninja.com/docs/ninja-tables/integrations/construct-table-from-custom-sql/"}},[t._v("Ninja Tables SQL Integration Documentation")])]),t._v(" "),n("p",[t._v("Available Dynamic Placeholders: "),n("code",[t._v("{current_user_id}")]),t._v(" "),n("code",[t._v("{current_date}")]),t._v(" "),n("code",[t._v("{current_date_time}")]),t._v(" "),n("code",[t._v("{current_post_id}")]),t._v(" "),n("code",[t._v("{current_post_title}")]),t._v(" "),n("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.updateSql()}}},[t._v("Update SQL Query")])],1)],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(501),n(502),!1,function(t){n(499)},null,null);t.exports=a.exports},function(t,e,n){var a=n(500);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("26332baa",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(106),i=n.n(a),o=n(82),s=n.n(o);e.default={name:"WPPostsNav",components:{WPPosts:i.a,columnsEditor:s.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}},methods:{addNewColumn:function(){this.$emit("add")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],2),t._v(" "),n("el-collapse-item",{attrs:{name:"2"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Add Column:")]),t._v(" You may add aditional dynamic columns here.\n ")]),t._v(" "),n("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:t.hasPro,hideCancel:!0,dataSourceType:"wp-posts"},on:{add:function(e){t.addNewColumn()}}})],2)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isEditable?t._e():["fluent-form"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("fluent-form-nav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData}})],1):-1!=t.dataSourceType.indexOf("csv")?n("div",{staticClass:"tablenav top"},[n("external-source-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData},model:{value:t.externalDataSourceUrl,callback:function(e){t.externalDataSourceUrl=e},expression:"externalDataSourceUrl"}})],1):"wp-posts"==t.dataSourceType&&t.new_column?n("div",{staticClass:"tablenav top"},[n("WPPostsNav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData},on:{add:function(e){t.addNewColumn()}}})],1):"raw_sql"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("raw-sql-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,column_count:t.columns.length,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData}})],1):t._e(),t._v(" "),t.columns.length||t.loading?t._e():n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v("No Data found based on your data source configaration")])])],t._v(" "),t.columns.length&&t.isEditable?[t.addDataModal?n("add_data_modal",{attrs:{title:t.addDataModalTitle,show:t.addDataModal,table_id:t.tableId,columns:t.columns,item:t.updateItem,"manual-sort":"manual_sort"===t.config.settings.sorting_type,"insert-after-position":t.insertAfterPosition,insertAfterId:t.insertAfterId,type:t.dataModalType},on:{modal_close:t.closeDataModal,updateItem:t.updateItemOnTable,createItem:t.addItemOnTable}}):t._e(),t._v(" "),n("div",{staticClass:"tablenav top"},[n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))]),t._v(" "),n("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isCompact,expression:"isCompact"}],attrs:{id:"compact_view",type:"checkbox"},domProps:{checked:Array.isArray(t.isCompact)?t._i(t.isCompact,null)>-1:t.isCompact},on:{change:function(e){var n=t.isCompact,a=e.target,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(" "),n("label",[t._v("\n | "),n("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.getData(e):null},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.sorting,expression:"sorting"}],attrs:{type:"checkbox",name:"checkbox"},domProps:{checked:Array.isArray(t.sorting)?t._i(t.sorting,null)>-1:t.sorting},on:{change:function(e){var n=t.sorting,a=e.target,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(" "),n("div",{staticClass:"pull-right"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))]),t._v(" "),n("el-button",{attrs:{size:"small",type:"info"},on:{click:function(e){t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():n("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[n("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.addColumn()}}},[t._v("\n Add Column\n ")])],1),t._v(" "),t.columns.length?[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"js-sortable-table",class:{compact:t.isCompact,sorting:t.sorting},style:"width: "+t.tableWidth,attrs:{data:t.items,"row-key":"id",border:""},on:{"selection-change":t.handleSelectionChange}},[t.isEditable?n("el-table-column",{attrs:{type:"selection",fixed:"",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,function(e,a){return n("el-table-column",{key:a,attrs:{label:JSON.stringify(e),"render-header":t.addConfigIcon,width:t.columnLength==a+1?"":150},scopedSlots:t._u([{key:"default",fn:function(a){return[n("div",{staticClass:"cell-content",attrs:{title:a.row.values[e.key]},domProps:{innerHTML:t._s(t.renderTableCell(a.row.values[e.key],e,a.row.values))}})]}}])})}),t._v(" "),t.isEditable?[t.show_meta?[n("el-table-column",{attrs:{label:"Data ID",width:"100px",prop:"id"}}),t._v(" "),n("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),n("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.has_pro?n("a",{on:{click:function(n){t.addAfter(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),n("a",{on:{click:function(n){t.showUpdateModal(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),n("a",{on:{click:function(n){t.duplicateData(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),n("delete-pop-over",{on:{deleted:function(n){t.deleteItem(e.row.id)}}})]}}])})]:t._e()],2),t._v(" "),n("div",{staticClass:"tablenav bottom"},[t.isEditable?n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))])]):t._e(),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100,500,2e3],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){t.$set(t.paginate,"current_page",e)}}})],1)])]:t._e(),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),n("el-dialog",{staticClass:"no_padding_body",attrs:{"append-to-body":!0,top:"50px",title:"Edit Table Column : "+t.currentEditingColumn.name,width:"70%",visible:t.showColumnEditor},on:{"update:visible":function(e){t.showColumnEditor=e}}},[t.showColumnEditor&&t.currentEditingColumn?n("columns-editor",{attrs:{dataSourceType:t.config.table.dataSourceType,model:t.currentEditingColumn,hasPro:t.has_pro,updating:!0,columns:t.columns,hideDelete:!1},on:{store:function(e){t.storeSettings()},delete:function(e){t.deleteColumn()},cancel:function(e){t.showColumnEditor=!1}}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{top:"50px","append-to-body":!0,title:"Add Table Column",width:"70%",visible:t.columnModal},on:{"update:visible":function(e){t.columnModal=e}}},[n("columns-editor",{attrs:{model:t.new_column,hasPro:t.has_pro},on:{add:function(e){t.addNewColumn()},cancel:function(e){t.columnModal=!t.columnModal}}})],1)],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(507),n(530),!1,function(t){n(505)},null,null);t.exports=a.exports},function(t,e,n){var a=n(506);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("661f50f2",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(83),i=n.n(a),o=n(128),s=n.n(o),l=n(76),r=n.n(l),c=n(75),u=n.n(c),d=n(136),_=n.n(d),p=n(82),f=n.n(p),m=n(508),v=n.n(m),h=n(521),b=n.n(h),g=n(524),y=n.n(g),x=n(527),w=n.n(x),C=n(68);e.default={name:"TableConfiguration",components:{draggable:i.a,ColumnsEditor:f.a,NinjaCustomFilters:v.a,NinjaLanguageSettings:b.a,NinjaRenderingSettings:y.a,NinjaButtonSettings:w.a},props:["config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,active_menu:"columns",table_color_primary:"#000",table_color_secondary:"#fff",tableId:this.$route.params.table_id,tableLibs:Object(C.a)(),doingAjax:!1,addColumnStatus:!1,new_column:!1,breakPointsOptions:{xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),"":this.$t("Always show in all devices"),hidden:this.$t("Totally hidden on all devices")},dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},attributeModel:{name:null,key:null,breakpoints:""},columns:this.config.columns,tableSettings:this.config.settings,is_fluent_installed:window.ninja_table_admin.isInstalled,fluent_url:window.ninja_table_admin.fluentform_url,has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,addVisible:!1,sortableUpgradeNotice:!1}},watch:{"new_column.name":function(){this.new_column.key=_()(this.new_column.name)}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};jQuery.post(ajaxurl,e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.$set(t.config,"columns",t.columns)}).fail(function(t){}).always(function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)})},openDrawer:function(t){jQuery(".drawer_body_"+t).slideToggle()},validateColumn:function(t){return t.name?t.key?-1===s()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.columns.push(this.new_column),this.setNewColumn(),this.addColumnStatus=!1,this.storeSettings())},deleteColumn:function(t){this.config.columns.splice(t,1),this.storeSettings()},showProAd:function(t){this.addVisible=!0,window.ninjaTableBus.$emit("show_pro_popup",1)},size:u.a,get:r.a,initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},headerColorsClick:function(){this.has_pro||this.showProAd()},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType()&&(t.source_type="custom"),this.new_column=t},dataSourceType:function(){var t=this.config.table.dataSourceType||"Default";return t=t.indexOf("google")>-1?"Google SpreadSheet":t}},computed:{addable:function(){return-1!=["default","wp-posts"].indexOf(this.config.table.dataSourceType)}},mounted:function(){this.setNewColumn()}}},function(t,e,n){var a=n(0)(n(509),n(520),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(22),i=n.n(a),o=n(510),s=n.n(o),l=n(83),r=n.n(l);e.default={name:"custom_filter",props:["table_id","columns"],components:{NinjaFilterEditor:s.a,draggable:r.a},data:function(){return{loading:!1,saving:!1,hasPro:!!window.ninja_table_admin.hasPro,hasAdvancedFilters:!!window.ninja_table_admin.hasAdvancedFilters,table_filters:[],activeEditor:!1,editorModal:!1,addFilterModal:!1,filter_styling:{filter_display_type:"",filter_columns:"columns_2",filter_column_label:"new_line"}}},computed:{columnKeyPairs:function(){var t={};return i()(this.columns,function(e){t[e.key]=e.name}),t}},methods:{each:i.a,fetchFilters:function(){var t=this;this.loading=!0,jQuery.get(window.ajaxurl,{action:"ninjatable_get_custom_table_filters",table_id:this.table_id}).then(function(e){t.table_filters=e.data.table_filters,t.filter_styling=e.data.filter_styling}).fail(function(t){}).always(function(){t.loading=!1})},updateFilter:function(t){this.validateFilter(t)&&this.saveFilters()},validateFilter:function(t){return t.title?t.options.length?"reset_filter"==t.type||"select"==t.type||t.columns.length?!("select"==t.type&&"dynamic_data"==t.select_value_type&&!t.dynamic_select_column)||(this.$message.error("Please Select Target Column"),!1):(this.$message.error("Please Select columns that you need to add filter"),!1):(this.$message.error("Please Provide Filter Options"),!1):(this.$message.error("Please Provide Filter Title"),!1)},saveFilters:function(){var t=this;this.saving=!0,jQuery.post(window.ajaxurl,{action:"ninjatable_update_custom_table_filters",table_id:this.table_id,ninja_filters:this.table_filters,filter_styling:this.filter_styling}).then(function(e){t.$message.success(e.data.message)}).fail(function(t){}).always(function(){t.saving=!1,t.activeEditor=!1,t.editorModal=!1,t.addFilterModal=!1})},showAddFilter:function(){this.activeEditor={placeholder:"All",options:[{value:"",label:""}],type:"select",columns:[],strict:"yes",title:""},this.addFilterModal=!0},addFilter:function(t){var e=this;this.validateFilter(t)&&(this.table_filters.push(t),this.$nextTick(function(){e.saveFilters()}))},edit:function(t){this.activeEditor=t,this.editorModal=!0},deleteFilter:function(t){this.table_filters.splice(t,1),this.saveFilters()}},mounted:function(){this.hasAdvancedFilters&&this.fetchFilters()}}},function(t,e,n){var a=n(0)(n(513),n(519),!1,function(t){n(511)},"data-v-16231d8a",null);t.exports=a.exports},function(t,e,n){var a=n(512);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("f3badeb8",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".spaced>.el-radio[data-v-16231d8a]{margin-left:0;margin-right:30px!important;line-height:2}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(514),i=n.n(a),o=n(22),s=n.n(o);e.default={name:"FilterEditor",components:{KeyPairOptions:i.a},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return s()(this.columns,function(e){"date"==e.data_type&&t.push(e)}),t}if("number_range"==this.activeEditor.type){var e=[];return s()(this.columns,function(t){"number"==t.data_type&&e.push(t)}),e}return this.columns},has_filter_option:function(){return-1!==["radio","checkbox"].indexOf(this.activeEditor.type)},is_manual_select_options:function(){return"select"==this.activeEditor.type&&"manual"==this.activeEditor.select_value_type},need_placeholder:function(){return-1!==["radio","select","date_picker","text_input"].indexOf(this.activeEditor.type)},need_filter_columns:function(){return!("select"==this.activeEditor.type&&"dynamic_data"==this.activeEditor.select_value_type||"reset_filter"==this.activeEditor.type)}},watch:{"activeEditor.type":function(t){"select"==t&&this.$set(this.activeEditor,"select_value_type","manual"),Array.isArray(this.activeEditor.columns)||(this.activeEditor.columns=[])}},mounted:function(){Array.isArray(this.activeEditor.columns)||(this.activeEditor.columns=[])}}},function(t,e,n){var a=n(0)(n(517),n(518),!1,function(t){n(515)},null,null);t.exports=a.exports},function(t,e,n){var a=n(516);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59ffc73b",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"table.ninja_filter_table{width:100%;text-align:left;border-collapse:collapse}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(83),i=n.n(a);e.default={name:"ninja_key_pair_options",components:{draggable:i.a},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.label,callback:function(n){t.$set(e,"label",n)},expression:"filter.label"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"filter.value"}})],1),t._v(" "),n("td",[n("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){t.deleteItem(a)}}},[t._v("-")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:a+1==t.value.length,expression:"(index + 1) == value.length"}],attrs:{type:"success",size:"mini"},on:{click:function(e){t.add()}}},[t._v("+")])],1)])}))],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th"),this._v(" "),e("th",[this._v("Label")]),this._v(" "),e("th",[this._v("Filter Value")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Title"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter Title")]),t._v(" "),n("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.title,callback:function(e){t.$set(t.activeEditor,"title",e)},expression:"activeEditor.title"}})],2),t._v(" "),"reset_filter"!=t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Label"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Prefix")]),t._v(" "),n("p",[t._v("This will show on your Table Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.filter_prefix,callback:function(e){t.$set(t.activeEditor,"filter_prefix",e)},expression:"activeEditor.filter_prefix"}}),t._v(" "),n("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter UI Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter UI")]),t._v(" "),n("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[n("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),n("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),n("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),n("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),n("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),n("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),n("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),n("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),"select"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Value Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.activeEditor.select_value_type,callback:function(e){t.$set(t.activeEditor,"select_value_type",e)},expression:"activeEditor.select_value_type"}},[n("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),n("el-radio-button",{attrs:{label:"dynamic_data"}},[t._v("Dynamic Data from Table Column")])],1)],2),t._v(" "),!t.is_manual_select_options&&t.activeEditor.select_value_type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Target Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.dynamic_select_column,callback:function(e){t.$set(t.activeEditor,"dynamic_select_column",e)},expression:"activeEditor.dynamic_select_column"}},t._l(t.current_columns,function(e){return n("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])}))],2):t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.is_multi_select,callback:function(e){t.$set(t.activeEditor,"is_multi_select",e)},expression:"activeEditor.is_multi_select"}},[t._v("Enable Multi-Select")])],1)]:t._e(),t._v(" "),t.has_filter_option||t.is_manual_select_options?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Options"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Options")]),t._v(" "),n("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("key-pair-options",{model:{value:t.activeEditor.options,callback:function(e){t.$set(t.activeEditor,"options",e)},expression:"activeEditor.options"}})],2)]:t._e(),t._v(" "),"date_picker"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Filter Operator"))+"\n ")]),t._v(" "),n("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[n("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("From Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"From Placeholder"},model:{value:t.activeEditor.from_placeholder,callback:function(e){t.$set(t.activeEditor,"from_placeholder",e)},expression:"activeEditor.from_placeholder"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("To Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"To Placeholder"},model:{value:t.activeEditor.to_placeholder,callback:function(e){t.$set(t.activeEditor,"to_placeholder",e)},expression:"activeEditor.to_placeholder"}})],2)]:t._e(),t._v(" "),t.need_filter_columns?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Columns"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Columns")]),t._v(" "),n("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?n("el-checkbox-group",{model:{value:t.activeEditor.columns,callback:function(e){t.$set(t.activeEditor,"columns",e)},expression:"activeEditor.columns"}},t._l(t.current_columns,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])})):n("div",[t._v("\n Sorry, No corresponding columns found based on your selection and column's data type\n ")])],2):t._e(),t._v(" "),"reset_filter"==t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Button Text"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.strict,callback:function(e){t.$set(t.activeEditor,"strict",e)},expression:"activeEditor.strict"}},[t._v("Enable Strict Mode (If Enable, Ninja Table will try to match exact value)")])],1)],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?n("div",{staticClass:"section_block"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.showAddFilter()}}},[t._v("Add New Filter")]),t._v(" "),t.table_filters.length?[n("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){t.saveFilters()}}},t._l(t.table_filters,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(e.title))]),t._v(" "),n("td",[t._v(t._s(e.type))]),t._v(" "),n("td",t._l(e.columns,function(e){return n("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[e],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n "+t._s(t.columnKeyPairs[e])+"\n ")])})),t._v(" "),n("td",[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(n){t.edit(e)}}}),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){t.deleteFilter(a)}}})],1)])}))],1),t._v(" "),n("h3",[t._v("Filter Appearance")]),t._v(" "),n("el-radio-group",{model:{value:t.filter_styling.filter_display_type,callback:function(e){t.$set(t.filter_styling,"filter_display_type",e)},expression:"filter_styling.filter_display_type"}},[n("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),n("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[n("h3",[t._v("Filter Columns")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.filter_styling.filter_columns,callback:function(e){t.$set(t.filter_styling,"filter_columns",e)},expression:"filter_styling.filter_columns"}},[n("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),n("h3",[t._v("Progressive Filter")]),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.filter_styling.progressive,callback:function(e){t.$set(t.filter_styling,"progressive",e)},expression:"filter_styling.progressive"}},[t._v("Enable Progressive filter for dynamic filter options")]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{loading:t.saving,size:"small",type:"success"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?n("div",{staticClass:"section_block"},[t._m(2)]):n("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])]),t._v(" "),n("el-dialog",{attrs:{title:"Edit Custom Filter",visible:t.editorModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editorModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"Add New Custom Filter",visible:t.addFilterModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.addFilterModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",{staticClass:"ninja_block"},[this._v("Custom Search Filters")]),this._v(" "),e("p",[this._v("\n Custom Search Filters is useful if you want to add select box / Radio Button to show a group of rows of\n your table.\n "),e("br"),this._v("\n To learn more about this "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/custom-filters-on-ninja-tables/"}},[this._v("click\n here")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Name")]),this._v(" "),e("th",[this._v("Type")]),this._v(" "),e("th",[this._v("Target Columns")]),this._v(" "),e("th",[this._v("Action")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is introduced in version 2.4.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e,n){var a=n(0)(n(522),n(523),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Language Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block"},[n("div",{staticClass:"language_block"},[n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.no_result_text,expression:"tableSettings.no_result_text"}],staticClass:"form_control",attrs:{id:"no_result_text",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.no_result_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"no_result_text",e.target.value)}}}),t._v(" "),n("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_placeholder,expression:"tableSettings.search_placeholder"}],staticClass:"form_control",attrs:{id:"search_box_placeholder",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_placeholder},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_placeholder",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Box Placeholder")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_in_text,expression:"tableSettings.search_in_text"}],staticClass:"form_control",attrs:{id:"search_box_in",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_in_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_in_text",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Dropdown Box Title")])])])])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(525),n(526),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja-rendering_settings",props:["tableSettings","config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}},methods:{storeSettings:function(){this.$emit("storeSettings")},changeTableType:function(t){if(!this.hasPro&&"legacy_table"==t)return window.ninjaTableBus.$emit("show_pro_popup",1),void(this.tableSettings.render_type="ajax_table");this.tableSettings.render_type=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_rendering_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Render Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"ninja_section_block_body"},[n("div",{staticClass:"section_block_item"},[n("p",[t._v("Please the select the settings for your table render method. Using Legacy table you can use\n shortcodes in your cells and it will render the full table from php side. Table styles will be\n same for both tables. Most of the cases you will need Ajax Table which is recommended\n settings.")]),t._v(" "),n("div",{staticClass:"card_block"},[n("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){t.changeTableType("ajax_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"ajax_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'ajax_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Ajax Table")]),t._v(" "),n("p",[t._v("\n Use this settings if you have lots of data and don't need cell merge features. It will\n load your data over ajax. Please note that, shortcodes in table will not work here.\n ")])]),t._v(" "),n("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){t.changeTableType("legacy_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"legacy_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'legacy_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Disable Caching\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, we cache the table "),n("br"),t._v("\n contents. It's not recommended to disable "),n("br"),t._v("\n caching unless you know what you are doing\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.shouldNotCache,callback:function(e){t.$set(t.tableSettings,"shouldNotCache",e)},expression:"tableSettings.shouldNotCache"}})],1)])]):t._e(),t._v(" "),t.config.table.hasExternalCachingInterval?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Caching Interval\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, You can cache the table data for certain minutes "),n("br"),t._v("\n so the data will load from cached data. Please Provide the value in minutes.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.caching_interval,callback:function(e){t.$set(t.tableSettings,"caching_interval",e)},expression:"tableSettings.caching_interval"}}),t._v(" "),n("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.caching_interval/60).toFixed(2))+" hours")])]):t._e()],1)])]):t._e(),t._v(" "),"legacy_table"==t.config.settings.render_type&&"yes"!=t.tableSettings.shouldNotCache?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Enable Full HTML Cache\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then ninja tables will cache the full html of the table and"),n("br"),t._v("\n render that without interact with database. You can set the time how many minutes it will cache each iteration.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.enable_html_cache,callback:function(e){t.$set(t.tableSettings,"enable_html_cache",e)},expression:"tableSettings.enable_html_cache"}})],1),t._v(" "),"yes"==t.tableSettings.enable_html_cache?n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.html_caching_minutes,callback:function(e){t.$set(t.tableSettings,"html_caching_minutes",e)},expression:"tableSettings.html_caching_minutes"}}),t._v(" "),t.tableSettings.html_caching_minutes>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.html_caching_minutes/60).toFixed(2))+" hours")])]):t._e()],1)]):t._e()])]):t._e()])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Recommended settings for advanced features\n ")]),t._v(" "),n("ul",{staticClass:"ninja_render_features"},[n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n ")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}]}},function(t,e,n){var a=n(0)(n(528),n(529),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"button_settings",props:["table_id"],data:function(){return{table_buttons:{csv:{status:"no",label:"CSV",all_rows:"no"},print:{status:"no",label:"Print",all_rows:"no"}},fetching:!1,saving:!1,button_positions:{after_search_box:"After Search Box",before_table:"Before of the table",after_table:"Bottom of the table"},buttonAlignments:{ninja_buttons_left:"Left",ninja_buttons_center:"Center",ninja_buttons_right:"Right"},hasPro:!!window.ninja_table_admin.hasPro}},methods:{getSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_button_settings",table_id:this.table_id}).then(function(e){t.table_buttons=e.data.button_settings}).fail(function(t){}).always(function(){t.fetching=!1})},saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"update_button_settings",table_id:this.table_id,button_settings:this.table_buttons}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[n("h3",[t._v("CSV Export Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.status,callback:function(e){t.$set(t.table_buttons.csv,"status",e)},expression:"table_buttons.csv.status"}},[t._v("\n Enable CSV Export Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.csv.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.csv.label,callback:function(e){t.$set(t.table_buttons.csv,"label",e)},expression:"table_buttons.csv.label"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.bg_color,callback:function(e){t.$set(t.table_buttons.csv,"bg_color",e)},expression:"table_buttons.csv.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.text_color,callback:function(e){t.$set(t.table_buttons.csv,"text_color",e)},expression:"table_buttons.csv.text_color"}})],1)]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Print Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.print.status,callback:function(e){t.$set(t.table_buttons.print,"status",e)},expression:"table_buttons.print.status"}},[t._v("Enable Print\n Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.print.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.print.label,callback:function(e){t.$set(t.table_buttons.print,"label",e)},expression:"table_buttons.print.label"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_full"},[n("div",{staticClass:"form_row_half"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.bg_color,callback:function(e){t.$set(t.table_buttons.print,"bg_color",e)},expression:"table_buttons.print.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_row_half"},[n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.text_color,callback:function(e){t.$set(t.table_buttons.print,"text_color",e)},expression:"table_buttons.print.text_color"}})],1)])])]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Buttons Position")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_position,callback:function(e){t.$set(t.table_buttons,"button_position",e)},expression:"table_buttons.button_position"}},t._l(t.button_positions,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}))],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Buttons Alignment")]),t._v(" "),n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_alignment,callback:function(e){t.$set(t.table_buttons,"button_alignment",e)},expression:"table_buttons.button_alignment"}},t._l(t.buttonAlignments,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}))],1),t._v(" "),t.hasPro?n("div",{staticClass:"form_group"},[n("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"success"},on:{click:function(e){t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):n("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("CSV Export / Print Button Settings for Frontend")]),this._v(" "),e("p",[this._v("You can enable/disable print and csv export settings here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Export CSV and Table Print is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"table-column-settings"},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[n("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),n("span",[t._v("Columns")])]),t._v(" "),n("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[n("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),n("span",[t._v("Rendering Settings")])]),t._v(" "),n("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[n("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),n("span",[t._v("Custom Filters")])]),t._v(" "),n("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[n("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),n("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),n("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[n("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),n("span",[t._v("Language Settings")])])],1)],1),t._v(" "),n("el-main",["columns"==t.active_menu?[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Column Settings")])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"section_widget"},[n("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.columns.length,expression:"columns.length"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.addColumnStatus=!t.addColumnStatus}}},[t._v("\n "+t._s(t.$t("Add Column"))+"\n ")])],1):t._e()]),t._v(" "),n("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?n("div",{staticClass:"column"},[n("div",{staticClass:"add_column_wrapper"},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:t.new_column,"has-pro":t.has_pro},on:{add:function(e){t.addNewColumn()},cancel:function(e){t.addColumnStatus=!t.addColumnStatus}}})],1)]):t._e(),t._v(" "),n("draggable",{attrs:{options:{handle:".handle",animation:150}},on:{end:t.storeSettings},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}},t._l(t.columns,function(e,a){return n("div",{key:e.key,staticClass:"column drawer"},[n("div",{staticClass:"header"},[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),n("span",{on:{click:function(e){t.openDrawer(a)}}},[t._v(t._s(e.name||e.key))]),t._v(" "),n("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){t.openDrawer(a)}}})]),t._v(" "),n("div",{staticClass:"drawer_body",class:"drawer_body_"+a},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:e,"has-pro":t.has_pro,updating:!0},on:{delete:function(e){t.deleteColumn(a)},store:function(e){t.storeSettings()}}})],1)])}))],1)]),t._v(" "),n("div",{staticClass:"proms"},[n("div",{staticClass:"help_section"},[n("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n video "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])]),t._v(" "),t.is_fluent_installed?t._e():n("div",{staticClass:"help_section"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form\n Builder plugin with some amazing Premium features "),n("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[n("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[n("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[n("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[n("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(532),n(541),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(533),i=n.n(a),o=n(536),s=n.n(o);e.default={name:"ExportImport",components:{export:i.a,import:s.a},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}}},function(t,e,n){var a=n(0)(n(534),n(535),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ExportTable",props:["config"],data:function(){return{tableId:this.$route.params.table_id,exportOptions:{csv:"CSV",json:"JSON"},selected:"csv"}},methods:{downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={action:"ninja_tables_ajax_actions",target_action:"export-data",table_id:this.tableId,format:t};return ajaxurl+"?"+jQuery.param(e)},doExport:function(){var t=this.downloadLink(this.selected);location.href=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?n("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),n("div",{staticClass:"ninja_export_block"},[t._v("\n "+t._s(t.$t("Format:"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selected=e.target.multiple?n:n[0]}}},t._l(t.exportOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])})),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:function(e){e.preventDefault(),t.doExport()}}},[t._v("\n "+t._s(t.$t("Export"))+"\n ")])],1)]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not export the data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_suggest"},[e("p",[this._v("You can download the table data as CSV or JSON format, If you download as json then you can import the table to any Ninja Table Installation")])])}]}},function(t,e,n){var a=n(0)(n(539),n(540),!1,function(t){n(537)},"data-v-643d3a11",null);t.exports=a.exports},function(t,e,n){var a=n(538);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("eb94fdd6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"#fileUpload[data-v-643d3a11]{max-width:200px}.justify-items[data-v-643d3a11]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ninja_content .ninja_suggest[data-v-643d3a11]{background:#f1f1f1}.ninja_content[data-v-643d3a11]{margin:1em 0}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(22),i=n.n(a);e.default={name:"Import",props:["config","tableId"],data:function(){return{btnLoading:!1,replace:!1,tutorial:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",do_unicode:"no"}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},sampleData:function(){var t={};return i()(this.columns,function(e){t[e.key]="column value"}),Array(3).fill(t)}},methods:{clear:function(){jQuery("#fileUpload").val("")},upload:function(){var t=this;t.btnLoading=!0;var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","upload-data"),n.append("table_id",this.tableId),n.append("replace",this.replace),n.append("do_unicode",this.do_unicode),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$emit("csvUploaded"),t.clear(),t.$message.success(e.message)},error:function(e){t.$message.error(e.responseJSON.message)}}).always(function(){t.btnLoading=!1})}else t.btnLoading=!1},download:function(){var t=[],e=this.config.columns.map(function(t){return t.key});t.push(e),[1,2].forEach(function(n,a){var 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()}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?n("div",{staticClass:"ninja_content"},[t.columns.length?n("div",[n("form",{attrs:{action:"",id:"fileUploadForm"}},[n("div",{staticClass:"form-group"},[n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),n("el-checkbox",{model:{value:t.replace,callback:function(e){t.replace=e},expression:"replace"}},[t._v(t._s(t.$t("Replace Existing Data")))])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",size:"small",loading:t.btnLoading},on:{click:function(e){return e.preventDefault(),t.upload(e)}}},[t._v("\n "+t._s(t.$t("Import from CSV"))+"\n ")])],1)]),t._v(" "),n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("\n Please note that, your CSV data structure need to follow the sample CSV.\n You may want to check the "),n("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("\n Also make sure the content is in UTF-8 format, for the best result.\n ")])]),t._v(" "),n("div",{staticClass:"justify-items"},[n("h3",[t._v("\n "+t._s(t.$t("CSV Header Structure"))+"\n ")]),t._v(" "),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:t.download}},[t._v("\n "+t._s(t.$t("Download Sample CSV"))+"\n ")])],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})})),t._v(" "),n("h3",[t._v("or as bellow")]),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})}))],1):n("div",{staticClass:"error"},[n("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not import any data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[n("i",{staticClass:"el-icon-upload"}),t._v(" "),n("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),n("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[n("i",{staticClass:"el-icon-download"}),t._v(" "),n("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),n("el-main",[n(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(543),n(550),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(544),i=n.n(a),o=n(547),s=n.n(o);e.default={name:"help",components:{fluentpromoad:i.a,ninja_premium:s.a},data:function(){return{docs:[{title:"Ninja Tables Introduction",url:"https://wpmanageninja.com/r/docs/ninja-tables/getting-started/?utm_source=ninja-tables"},{title:"Ninja Tables Demo",url:"https://wpmanageninja.com/docs/ninja-tables/configure-tables/?utm_source=ninja-tables"},{title:"Setting up a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/setting-up-a-table/?utm_source=ninja-tables"},{title:"Configure Responsive Breakdowns for Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"},{title:"Import Table Data from CSV",url:"https://wpmanageninja.com/r/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Export Data from a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/export-data/?utm_source=ninja-tables"},{title:"Import Table from CSV",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from JSON file",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from Table Press Plugin",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-from-table-press-plugin/?utm_source=ninja-tables"}],img_url:window.ninja_table_admin.img_url}},methods:{imageUrl:function(t){return this.img_url+t}},mounted:function(){}}},function(t,e,n){var a=n(0)(n(545),n(546),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"fluentpromoad_2",props:["dismisable"],data:function(){return{img_url_path:window.ninja_table_admin.img_url,fluent_url:window.ninja_table_admin.fluentform_url,fluent_wp_url:window.ninja_table_admin.fluent_wp_url,is_installed:window.ninja_table_admin.isInstalled,already_dismissed:window.ninja_table_admin.dismissed}},computed:{will_it_show:function(){return!this.is_installed&&(!this.dismisable||!this.already_dismissed)}},methods:{image_url:function(t){return this.img_url_path+t},dismiss:function(){var t=this;jQuery.post(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"dismiss_fluent_suggest"}).then(function(t){}).fail(function(t){}).always(function(){t.is_installed=!0})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.will_it_show?n("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?n("div",{staticClass:"ninja_dismiss",on:{click:function(e){t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),n("div",{staticClass:"ninja_form_banner"},[n("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),n("div",{staticClass:"ninja_fluent_copy"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form Builder plugin with some amazing Premium features")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),n("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(548),n(549),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_premium",data:function(){return{img_url_path:window.ninja_table_admin.img_url}},computed:{will_it_show:function(){return!window.ninja_table_admin.hasPro||""==window.ninja_table_admin.hasPro}},methods:{image_url:function(t){return this.img_url_path+t}}}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return this.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:this.image_url("banner_premium.png")}})]),this._v(" "),this._m(0)]):this._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_fluent_copy"},[e("p",[this._v("Have you checked out NinjaTables Pro Add-On yet? We have added some exciting features in Ninja Tables with Pro Add-On")]),this._v(" "),e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[this._v("Download Now")]),this._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[this._v("View Details")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v(t._s(t.$t("Plugin Documentation and Help")))]),t._v(" "),n("hr"),t._v(" "),n("ninja_premium"),t._v(" "),n("div",{staticClass:"ninja_documentaion_wrapper"},[n("div",{staticClass:"ninja_doc_top_blocks"},[n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),n("h3",[t._v("Try WP FluentFrom")]),t._v(" "),t._m(0),t._v(" "),t._m(1)])]),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("azonpress_logo.jpg")}}),t._v(" "),n("h3",[t._v("Amazon Affiliate Plugin")]),t._v(" "),n("p",[t._v("Amazon Affiliate WordPress Plugin for serious Amazon Affiliates")]),t._v(" "),t._m(3)])]),t._v(" "),n("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container"},[n("h3",[t._v("User Guide")]),t._v(" "),n("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),n("ul",{staticClass:"doc_items"},t._l(t.docs,function(e,a){return n("li",{key:a},[n("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])}))])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),n("h3",[t._v("Love this Plugin?")]),t._v(" "),n("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")]),t._v(" "),t._m(4)])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),n("h3",[t._v("Need And Expert Support?")]),t._v(" "),n("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")]),t._v(" "),t._m(5)])])])]),t._v(" "),n("fluentpromoad")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Need to build a contact form by drag and drop form builder?")]),this._v(" Try the modern contact form plugin with all the necessary input fields, notifications and connect your form with powerful integrations")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[this._v("Download from wp.org (Free)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png"}}),this._v(" "),e("h3",[this._v("WPPayForm - Accept Payment Easily with WordPress Forms")]),this._v(" "),e("p",[this._v("Do you want to accept payments along with user inputs in WordPress? Then WPPayForm is the perfect plugin for you.")]),this._v(" "),e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[this._v("Download WPPayForm (Free)")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/azonpress/"}},[this._v("Download AzonPress")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/#new-post"}},[this._v("Write Review")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[this._v("Contact Support")])])}]}},function(t,e,n){var a=n(0)(n(554),n(565),!1,function(t){n(552)},null,null);t.exports=a.exports},function(t,e,n){var a=n(553);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("dca5d8c2",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".js_instruction{padding:10px 20px;background:#fff;margin-bottom:20px;font-size:14px;line-height:22px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:n(555),ace_js_editor:n(560)},data:function(){return{current_tab:"additional_css",custom_css:"",custom_js:"",hasPro:!!window.ninja_table_admin.hasPro,fetching:!1}},methods:{saveScripts:function(){var t=this;this.hasPro||(this.custom_js=""),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_custom_css_js",table_id:this.config.table.ID,custom_css:this.custom_css,custom_js:this.custom_js}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$set(t.config.table,"custom_css",t.custom_css)}).then(function(t){console.log(t)}).always(function(){})},getScripts:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_custom_css_js",table_id:this.config.table.ID}).then(function(e){t.custom_css=e.data.custom_css,t.custom_js=e.data.custom_js}).fail(function(t){}).always(function(){t.fetching=!1})}},mounted:function(){this.getScripts()}}},function(t,e,n){var a=n(0)(n(558),n(559),!1,function(t){n(556)},null,null);t.exports=a.exports},function(t,e,n){var a=n(557);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("011ca082",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(563),n(564),!1,function(t){n(561)},null,null);t.exports=a.exports},function(t,e,n){var a=n(562);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("76fce250",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor_js",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_js");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fetching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[n("h3",[t._v("Loading... Please wait")])]):n("div",{staticClass:"section_block"},[n("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[n("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),n("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),n("hr"),t._v(" "),"additional_css"==t.current_tab?[n("p",[t._v("You may add "),n("code",[t._v("#footable_parent_"+t._s(t.config.table.ID)+" ")]),t._v(" as your css selector prefix to target this specific table")]),t._v(" "),n("ace_code_editor",{attrs:{editor_id:"ninja_custom_css",mode:"css"},model:{value:t.custom_css,callback:function(e){t.custom_css=e},expression:"custom_css"}}),t._v(" "),t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[n("p",[t._v("Your additional JS code will run after ninja table initialized. Please provide valid javascript code. Invalid JS code may break the table UI.")]),t._v(" "),t._m(1),t._v(" "),n("ace_js_editor",{attrs:{editor_id:"ninja_custom_js",mode:"javascript"},model:{value:t.custom_js,callback:function(e){t.custom_js=e},expression:"custom_js"}}),t._v(" "),t._m(2),t._v(" "),t.hasPro?[n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[n("p",[t._v("Custom Javascript feature is a pro feature along with many awesome features. Please upgrade to pro.")])]]:t._e()],2),t._v(" "),n("div",{staticClass:"section_block"})])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<style></style>")]),this._v(" tag")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"js_instruction"},[this._v("\n The Following JavaScrip variables are available that you can use: "),e("br"),this._v(" "),e("b",[this._v("$table")]),this._v(" : The Javascript DOM object of the table"),e("br"),this._v(" "),e("b",[this._v("tableConfig")]),this._v(" : The configuration object of the table.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<script><\/script>")]),this._v(" tag")])}]}},function(t,e,n){var a=n(0)(n(569),n(570),!1,function(t){n(567)},null,null);t.exports=a.exports},function(t,e,n){var a=n(568);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1c59ea7c",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{width:480px;margin:0 auto}.footable_parent.ninja_device_tablet{max-width:768px;padding:0 20px;margin:0 auto}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(68),i=n(76),o=n.n(i),s=n(75),l=n.n(s),r=n(74),c=n.n(r),u=n(111),d=n.n(u),_=n(138),p=n.n(_),f=n(139),m=n.n(f),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"table_preview",props:["config"],components:{SortableUpgradeNotice:p.a,NinjaColorPicker:m.a},data:function(){return{rows:[],activeDesign:"features",tableId:this.$route.params.table_id,tableSettings:this.config.settings,table_body_html:"",data_loaded:!1,script_loaded:!1,footableLoading:!1,tableLibs:Object(a.a)(),has_pro:!!window.ninja_table_admin.hasPro,savingSettings:!1,tableInnerHtml:"",showingDevice:"desktop",hasSortable:!!window.ninja_table_admin.hasSortable,sortableUpgradeNotice:!1,columnCss:""}},computed:{wrapperClasses:function(){var t=[];return t.push(this.tableSettings.css_lib),t.push("ninja_device_"+this.showingDevice),"custom_color"!=this.tableSettings.table_color_type&&"ninja_no_color_table"==this.tableSettings.table_color||t.push("colored_table"),t},tableClasses:function(){var t=this,e=[];e.push("foo_table_"+this.tableId),"custom_color"==this.tableSettings.table_color_type?(e.push("inverted"),e.push("ninja_custom_color")):(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color&&e.push("inverted"),e.push(this.tableSettings.table_color)),this.tableSettings.pagination_position?e.push("footable-paging-"+this.tableSettings.pagination_position):e.push("footable-paging-right"),this.tableSettings.hide_header_row&&e.push("ninjatable_hide_header_row"),this.tableSettings.hide_all_borders&&e.push("hide_all_borders"),e.push("ninja_table_pro"),this.tableSettings.search_position&&e.push("ninja_search_"+this.tableSettings.search_position);var n=[];return this.tableSettings.css_classes&&(n=this.availableCssClasses.filter(function(e){return-1!=t.tableSettings.css_classes.indexOf(e)})),this.tableSettings.hide_responsive_labels&&e.push("nt_hide_breakpoint_labels"),this.tableSettings.nt_search_full_width&&e.push("nt_search_full_width"),"semantic_ui"==this.tableSettings.css_lib&&e.push("ui"),[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n),e)},formattedColumns:function(){var t=this.config.columns,e=[];return jQuery.each(t,function(t,n){e.push({name:n.key,title:n.name,breakpoints:n.breakpoints,type:n.data_type,sortable:!0,classes:["ninja_column_"+t],visible:"hidden"!=n.breakpoints})}),e},app_ready:function(){return this.data_loaded&&this.script_loaded},currentTableLibs:function(){return this.tableLibs[this.tableSettings.library].css_libs},colors:function(){return this.tableLibs[this.tableSettings.library].colors},availableStyles:function(){var t=this.currentTableLibs[this.tableSettings.css_lib];return!!t&&t.styles},availableCssClasses:function(){var t=[];return c()(this.availableStyles,function(e){t.push(e.key)}),t},showProNotice:function(){return!this.has_pro&&!!("custom_color"==this.tableSettings.table_color_type&&"color_customization"==this.activeDesign||"color_customization"==this.activeDesign&&this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color)},design_tips:function(){var t=[];return"custom_color"==this.tableSettings.table_color_type&&(this.tableSettings.table_search_color_primary&&this.tableSettings.table_header_color_primary&&this.tableSettings.table_color_primary&&this.tableSettings.table_color_secondary||t.push('You should set colors at <b>"Table Colors"</b> Tab')),t}},watch:{data_loaded:function(){this.app_ready&&this.reInitFootables()},script_loaded:function(){this.app_ready&&this.reInitFootables()},tableSettings:{handler:function(t){var e=this;this.$nextTick(function(){e.generateColorCss()})},deep:!0},tableClasses:{handler:function(t){var e=this;this.$nextTick(function(){e.reInitFootables()})},deep:!0},"tableSettings.enable_search":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.column_sorting":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.show_all":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.togglePosition":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.expand_type":function(t,e){var n=this;if("default"!=t&&!this.has_pro)return this.tableSettings.expand_type="default",void window.ninjaTableBus.$emit("show_pro_popup",1);this.$nextTick(function(){n.reInitFootables()})},"tableSettings.sorting_type":function(t,e){"manual_sort"===t&&(this.has_pro?this.hasSortable?this.initManualSorting():this.hasSortable||(this.tableSettings.sorting_type=e,this.sortableUpgradeNotice=!0):(this.tableSettings.sorting_type=e,window.ninjaTableBus.$emit("show_pro_popup",1)))},activeDesign:function(){this.checkColorPro()},"tableSettings.stackable":function(){Array.isArray(this.tableSettings.stacks_devices)||this.$set(this.tableSettings,"stacks_devices",[]),Array.isArray(this.tableSettings.stacks_appearances)||this.$set(this.tableSettings,"stacks_appearances",[])}},methods:{fetchTableBody:function(){var t=this;jQuery.get(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"get_table_preview_html",table_id:this.tableId}).then(function(e){t.tableInnerHtml=e,t.data_loaded=!0}).fail(function(e){jQuery("#footable_"+t.tableId).append("<h1>Error Loading</h1>")})},initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},storeSettings:function(){var t=this;this.checkColorPro(),this.savingSettings=!0;this.filterTableSettings(this.tableSettings);var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};jQuery.post(ajaxurl,e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(t){}).always(function(){t.savingSettings=!1})},filterTableSettings:function(t){var e=[];return c()(this.availableStyles,function(t){e.push(t.key)}),t.css_classes=d()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":v(FooTable))){var t=FooTable.get("#footable_"+this.tableId);t&&t.destroy()}jQuery("#footable_"+this.tableId).find("thead,tbody,tfoot").remove(),this.footableLoading=!1,jQuery("#footable_"+this.tableId).append(this.tableInnerHtml),this.initFootables()}},initFootables:function(){if(!this.footableLoading&&this.script_loaded){this.footableLoading=!0;var t=window.ninjaTableApp,e=jQuery("#footable_"+this.tableId);this.tableSettings.hide_on_empty&&e.on("expanded.ft.row",function(t,n,a){e.find("table.footable-details td:empty").parent().addClass("nt_has_hide")});var n=this.getTableConfig();t.initTable(e,n),this.footableLoading=!1}},dysel:function(t){for(var e=t.links,n=t.callback,a=t.nocache,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)}},s=n,l=e.length-1;l>=0;l--){var r=s,c=e[l];a&&(c+="?"+ +(new Date).getTime()),s=function(t){o(this,t)}.bind(c,r)}s()},loadRequiredScripts:function(){var t=this;this.dysel({links:window.ninja_table_admin.preview_required_scripts,callback:function(){t.script_loaded=!0}})},size:l.a,get:o.a,generateColorCss:function(){if("pre_defined_color"!=this.tableSettings.table_color_type){var t="#footable_"+this.tableId,e="\n "+t+" {\n background-color: "+this.tableSettings.table_color_primary+" !important;\n color: "+this.tableSettings.table_color_secondary+" !important;\n }\n "+t+" thead tr.footable-filtering th {\n background-color: "+this.tableSettings.table_search_color_primary+" !important;\n color: "+this.tableSettings.table_search_color_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) thead tr.footable-filtering th {\n "+(this.tableSettings.table_search_color_border?"\n border : 1px solid "+this.tableSettings.table_search_color_border+" !important;\n ":"\n border : 1px solid transparent !important;\n ")+"\n }\n "+t+" .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n background-color: "+this.tableSettings.table_search_color_secondary+" !important;\n color: "+this.tableSettings.table_search_color_primary+" !important;\n }\n "+t+" tr.footable-header, "+t+" tr.footable-header th {\n background-color: "+this.tableSettings.table_header_color_primary+" !important;\n color: "+this.tableSettings.table_color_header_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) tr.footable-header th {\n border-color: "+this.tableSettings.table_color_header_border+" !important;\n }\n "+t+":not(.hide_all_borders) tbody tr td {\n border-color: "+this.tableSettings.table_color_border+" !important;\n }\n\n "+("yes"==this.tableSettings.alternate_color_status?"\n "+t+" tbody tr:nth-child(even) {\n background-color: "+this.tableSettings.table_alt_color_primary+";\n color: "+this.tableSettings.table_alt_color_secondary+";\n }\n "+t+" tbody tr:nth-child(odd) {\n background-color: "+this.tableSettings.table_alt_2_color_primary+";\n color: "+this.tableSettings.table_alt_2_color_secondary+";\n }\n "+t+" tbody tr:nth-child(even):hover {\n background-color: "+this.tableSettings.table_alt_color_hover+";\n }\n "+t+" tbody tr:nth-child(odd):hover {\n background-color: "+this.tableSettings.table_alt_2_color_hover+";\n }\n ":"\n ")+"\n\n "+t+" tfoot .footable-paging {\n background-color: "+this.tableSettings.table_footer_bg+" !important;\n }\n "+t+" tfoot .footable-paging .footable-page.active a {\n background-color: "+this.tableSettings.table_footer_active+" !important;\n }\n "+t+":not(.hide_all_borders) tfoot .footable-paging td {\n border-color: "+this.tableSettings.table_footer_border+" !important;\n }\n ";jQuery("#table_designer_css").html(e)}else jQuery("#table_designer_css").html("")},changeColor:function(t,e){this.$set(this.tableSettings,e,t)},checkColorPro:function(){this.has_pro||(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color||"pre_defined_color"!=this.tableSettings.table_color_type)&&(this.tableSettings.table_color_type="pre_defined_color",this.tableSettings.table_color="ninja_no_color_table")},generateDefaultCss:function(){var t=this,e=this.config.table.custom_css;this.config.columns.forEach(function(n,a){(n.background_color||n.text_color||n.contentAlign)&&(e+="#footable_parent_"+t.tableId+" thead tr th.ninja_column_"+a+", #footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { background-color: "+n.background_color+"; color: "+n.text_color+"; }",e+="#footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { text-align: "+n.contentAlign+"; }")}),jQuery("#ninja_table_designer_common_css").html(e)},getTableConfig:function(){var t={};this.config.columns.forEach(function(e,n){t["ninja_column_"+n]={"text-align":e.textAlign,width:e.width+"px"}});var e={default_sorting:"old_first",defualt_filter:!1,defualt_filter_column:null,expandAll:"expandAll"===this.tableSettings.expand_type,expandFirst:"expandFirst"===this.tableSettings.expand_type,filtering:!!this.tableSettings.enable_search,i18n:{},use_parent_width:"desktop"!==this.showingDevice,sorting:!!this.tableSettings.column_sorting,togglePosition:this.tableSettings.togglePosition},n={toggleColumn:this.tableSettings.togglePosition,cascade:!0,useParentWidth:"desktop"!==this.showingDevice,columns:this.config.columns,expandFirst:"expandFirst"===this.tableSettings.expand_type,expandAll:"expandAll"===this.tableSettings.expand_type,empty:"",filtering:{enabled:!!this.tableSettings.enable_search},paging:{enabled:"0"==this.tableSettings.show_all||0==this.tableSettings.show_all,size:10,container:"#footable_parent_"+this.tableId+" .paging-ui-container"},sorting:{enabled:!!this.tableSettings.column_sorting}};return{columns:this.formattedColumns,custom_css:t,settings:e,render_type:"legacy_table",instance_name:"ninja_table_instance_0",table_id:this.table_id,title:"",init_config:n}}},mounted:function(){this.fetchTableBody(),this.loadRequiredScripts(),this.tableSettings.table_color_type||("ninja_table_custom_color"==this.tableSettings.table_color?this.$set(this.tableSettings,"table_color_type","custom_color"):this.$set(this.tableSettings,"table_color_type","pre_defined_color")),jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px"),jQuery(window).on("resize",function(){jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px")}),this.generateDefaultCss()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_design"},[n("div",{staticClass:"ninja_title_section"},[n("div",{staticClass:"ninja_title"},[n("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),n("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[n("el-radio-button",{attrs:{label:"desktop"}},[n("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"tablet"}},[n("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"mobile"}},[n("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n ")])],1)],1),t._v(" "),n("el-button",{attrs:{loading:t.savingSettings,disabled:t.savingSettings,size:"small",type:"primary"},on:{click:function(e){t.storeSettings()}}},[t._v("Update Settings\n ")])],1),t._v(" "),n("div",{staticClass:"ninja_design_wrapper"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.app_ready,expression:"!app_ready"}],staticClass:"design_preview",staticStyle:{background:"white",padding:"10px 20px"}},[t.showProNotice?n("div",{staticClass:"ninja_upgrade_bar"},[t._v("\n "+t._s(t.$t("Color customization is a PRO feature. Please upgrade to pro apply this feature."))+"\n "),n("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_studio"}},[t._v(t._s(t.$t("Upgrade To Pro")))])]):t._e(),t._v(" "),n("div",{staticClass:"footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent",class:t.wrapperClasses,attrs:{id:"footable_parent_"+t.tableId}},[t.tableSettings.show_title?n("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?n("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),n("table",{directives:[{name:"show",rawName:"v-show",value:t.app_ready,expression:"app_ready"}],staticClass:"table foo-table ninja_footable",class:t.tableClasses,attrs:{id:"footable_"+t.tableId}},[n("colgroup",t._l(t.formattedColumns,function(t,e){return n("col",{key:e,class:["ninja_column_"+e,t.breakpoints]})})),t._v(" "),n("thead")])]),t._v(" "),n("div",{staticClass:"ninja_demo_disclaimer"},[n("hr"),t._v(" "),"yes"==t.tableSettings.stackable?n("p",[n("b",[t._v("For Stackable Tables, Live preview is disabled here. Please check on preview url")])]):t._e(),t._v(" "),t._m(0),t._v(" "),n("p",[t._v("Some elements like custom filters and row-inline styling is not available in this design mode. Please check on live preview or in your embeded page.")])])]),t._v(" "),n("div",{staticClass:"design_controls"},[n("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[n("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[n("div",{staticClass:"form_group"},[n("label",[t._v("Select Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.css_lib,callback:function(e){t.$set(t.tableSettings,"css_lib",e)},expression:"tableSettings.css_lib"}},t._l(t.currentTableLibs,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],1),t._v(" "),t.availableStyles?n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.css_classes,expression:"tableSettings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,e.key)>-1:t.tableSettings.css_classes},on:{change:function(n){var a=t.tableSettings.css_classes,i=n.target,o=!!i.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);i.checked?l<0&&t.$set(t.tableSettings,"css_classes",a.concat([s])):l>-1&&t.$set(t.tableSettings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.tableSettings,"css_classes",o)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2):t._e(),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_title,expression:"tableSettings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.tableSettings.show_title)?t._i(t.tableSettings.show_title,"1")>-1:t.tableSettings.show_title},on:{change:function(e){var n=t.tableSettings.show_title,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_description,expression:"tableSettings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.tableSettings.show_description)?t._i(t.tableSettings.show_description,"1")>-1:t.tableSettings.show_description},on:{change:function(e){var n=t.tableSettings.show_description,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.enable_search,expression:"tableSettings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.tableSettings.enable_search)?t._i(t.tableSettings.enable_search,"1")>-1:t.tableSettings.enable_search},on:{change:function(e){var n=t.tableSettings.enable_search,a=e.target,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?n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.column_sorting,expression:"tableSettings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.tableSettings.column_sorting)?t._i(t.tableSettings.column_sorting,"1")>-1:t.tableSettings.column_sorting},on:{change:function(e){var n=t.tableSettings.column_sorting,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_header_row,expression:"tableSettings.hide_header_row"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_header_row)?t._i(t.tableSettings.hide_header_row,null)>-1:t.tableSettings.hide_header_row},on:{change:function(e){var n=t.tableSettings.hide_header_row,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_all_borders,expression:"tableSettings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_all_borders)?t._i(t.tableSettings.hide_all_borders,null)>-1:t.tableSettings.hide_all_borders},on:{change:function(e){var n=t.tableSettings.hide_all_borders,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_on_empty,expression:"tableSettings.hide_on_empty"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_on_empty)?t._i(t.tableSettings.hide_on_empty,null)>-1:t.tableSettings.hide_on_empty},on:{change:function(e){var n=t.tableSettings.hide_on_empty,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then the empty ietems will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_responsive_labels,expression:"tableSettings.hide_responsive_labels"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_responsive_labels)?t._i(t.tableSettings.hide_responsive_labels,null)>-1:t.tableSettings.hide_responsive_labels},on:{change:function(e){var n=t.tableSettings.hide_responsive_labels,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("\n Stackable Table Configuration\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"With stackable table, You can show your rows as list item. You can target by device width"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.stackable,callback:function(e){t.$set(t.tableSettings,"stackable",e)},expression:"tableSettings.stackable"}},[t._v("\n Enable Stackable Table\n ")]),t._v(" "),"yes"==t.tableSettings.stackable?[n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[n("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),n("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[n("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),n("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n ")])],1)]:t._e()],2)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[n("div",{staticClass:"form_group"},[n("label",[t._v("Select Color Scheme")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.table_color_type,callback:function(e){t.$set(t.tableSettings,"table_color_type",e)},expression:"tableSettings.table_color_type"}},[n("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),n("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?n("div",{staticClass:"form_group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.table_color,expression:"tableSettings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.colors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v(t._s(e)+"\n ")])}))]):n("div",{staticClass:"form_group ninja_color_customization"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_search_color_primary,callback:function(e){t.$set(t.tableSettings,"table_search_color_primary",e)},expression:"tableSettings.table_search_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_search_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_search_color_secondary",e)},expression:"tableSettings.table_search_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_search_color_border,callback:function(e){t.$set(t.tableSettings,"table_search_color_border",e)},expression:"tableSettings.table_search_color_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_header_color_primary,callback:function(e){t.$set(t.tableSettings,"table_header_color_primary",e)},expression:"tableSettings.table_header_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_header_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_header_secondary",e)},expression:"tableSettings.table_color_header_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_header_border,callback:function(e){t.$set(t.tableSettings,"table_color_header_border",e)},expression:"tableSettings.table_color_header_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary,callback:function(e){t.$set(t.tableSettings,"table_color_primary",e)},expression:"tableSettings.table_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_secondary",e)},expression:"tableSettings.table_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border,callback:function(e){t.$set(t.tableSettings,"table_color_border",e)},expression:"tableSettings.table_color_border"}})],1)]),t._v(" "),n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Use Alternate Color Schema for Table Rows","active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.alternate_color_status,callback:function(e){t.$set(t.tableSettings,"alternate_color_status",e)},expression:"tableSettings.alternate_color_status"}})],1),t._v(" "),"yes"==t.tableSettings.alternate_color_status?n("div",{staticClass:"ninja_alternate_colors"},[n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_2_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_primary",e)},expression:"tableSettings.table_alt_2_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_2_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_secondary",e)},expression:"tableSettings.table_alt_2_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_2_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_hover",e)},expression:"tableSettings.table_alt_2_color_hover"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_primary",e)},expression:"tableSettings.table_alt_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_secondary",e)},expression:"tableSettings.table_alt_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_color_hover",e)},expression:"tableSettings.table_alt_color_hover"}})],1)])]):t._e(),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_footer_bg,callback:function(e){t.$set(t.tableSettings,"table_footer_bg",e)},expression:"tableSettings.table_footer_bg"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Active"},model:{value:t.tableSettings.table_footer_active,callback:function(e){t.$set(t.tableSettings,"table_footer_active",e)},expression:"tableSettings.table_footer_active"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_footer_border,callback:function(e){t.$set(t.tableSettings,"table_footer_border",e)},expression:"tableSettings.table_footer_border"}})],1)])])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.tableSettings.show_all,callback:function(e){t.$set(t.tableSettings,"show_all",e)},expression:"tableSettings.show_all"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.perPage,expression:"tableSettings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all},domProps:{value:t.tableSettings.perPage},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"perPage",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all,size:"mini"},model:{value:t.tableSettings.pagination_position,callback:function(e){t.$set(t.tableSettings,"pagination_position",e)},expression:"tableSettings.pagination_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paginate_to_top,expression:"tableSettings.paginate_to_top"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.paginate_to_top)?t._i(t.tableSettings.paginate_to_top,null)>-1:t.tableSettings.paginate_to_top},on:{change:function(e){var n=t.tableSettings.paginate_to_top,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:!t.has_pro,size:"mini"},model:{value:t.tableSettings.search_position,callback:function(e){t.$set(t.tableSettings,"search_position",e)},expression:"tableSettings.search_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),n("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.nt_search_full_width,expression:"tableSettings.nt_search_full_width"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.nt_search_full_width)?t._i(t.tableSettings.nt_search_full_width,null)>-1:t.tableSettings.nt_search_full_width},on:{change:function(e){var n=t.tableSettings.nt_search_full_width,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this, Then the search input will take all the available space (100% width)"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Select Sorting Method")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.sorting_type,callback:function(e){t.$set(t.tableSettings,"sorting_type",e)},expression:"tableSettings.sorting_type"}},[n("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n Created at\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),n("el-radio-button",{attrs:{disabled:!t.config.table.isSortable,label:"manual_sort"}},[t._v("Manual Sort\n ")])],1),t._v(" "),"by_created_at"==t.tableSettings.sorting_type?n("div",{},[n("span",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.default_sorting,expression:"tableSettings.default_sorting"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"default_sorting",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),n("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?n("div",[n("label",[t._v(t._s(t.$t("Select Column"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column,expression:"tableSettings.sorting_column"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column",e.target.multiple?n:n[0])}}},t._l(t.config.columns,function(e){return n("option",{key:e.key,domProps:{value:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}))]),t._v(" "),n("label",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column_by,expression:"tableSettings.sorting_column_by"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),n("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):"manual_sort"==t.tableSettings.sorting_type?n("div",[n("p",[t._v("You can sort the table data from "),n("b",[t._v("Table Rows")]),t._v(" Manually. Click Sort Manually\n checkbox to sort the data using drag and drop feature")])]):t._e(),t._v(" "),t.tableSettings.sorting_type?n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.expand_type,callback:function(e){t.$set(t.tableSettings,"expand_type",e)},expression:"tableSettings.expand_type"}},[n("el-radio-button",{attrs:{label:"default"}},[t._v("\n Default\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n Expand First\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand the first row of the table when displayed on a device that\n hides any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n Expand All\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand all rows of the table when displayed on a device that hides\n any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[n("el-radio-button",{attrs:{label:"first"}},[t._v("\n First Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"last"}},[t._v("\n Last Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.extra_css_class,expression:"tableSettings.extra_css_class"}],staticClass:"form_control",attrs:{id:"extra_css_class",type:"text"},domProps:{value:t.tableSettings.extra_css_class},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"extra_css_class",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Sticky Header (beta)"))+" "),t.has_pro?t._e():n("span",[t._v("(Pro)")])]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.sticky_header,callback:function(e){t.$set(t.tableSettings,"sticky_header",e)},expression:"tableSettings.sticky_header"}},[t._v("Enable Sticky header for table\n ")]),t._v(" "),"yes"==t.tableSettings.sticky_header?[n("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sticky_header_offset,expression:"tableSettings.sticky_header_offset"}],staticClass:"form_control",attrs:{placeholder:"positive or negative number",type:"text"},domProps:{value:t.tableSettings.sticky_header_offset},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"sticky_header_offset",e.target.value)}}}),t._v(" "),n("small",[t._v("Please give positive/negative number or you can provide jquery element object\n ")]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.disable_sticky_on_mobile,callback:function(e){t.$set(t.tableSettings,"disable_sticky_on_mobile",e)},expression:"tableSettings.disable_sticky_on_mobile"}},[t._v("Disable Sticky header for mobile devices\n ")])]:t._e()],2)])],1),t._v(" "),t.design_tips.length?n("div",{staticClass:"ninja_design_tips"},[n("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,function(e){return n("li",[n("i",{staticClass:"el-icon-warning"}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e)}})])}))]):t._e(),t._v(" "),t.has_pro?t._e():n("div",{staticClass:"upgrade_box"},[n("a",{staticClass:"el-button el-button--danger el-button--small",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_studio"}},[n("i",{staticClass:"dashicons dashicons-shield"}),t._v(" "+t._s(t.$t("Upgrade To Pro to unlock advanced features"))+"\n ")])])],1)]),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Note: ")]),this._v(" For preview purpose, you are seeing up to 25 latest rows here and and per page 10\n items if you enable paginate. Also note that, The table style may differ at the frontend as your\n theme may overwrite few css elements.\n ")])}]}},function(t,e,n){var a=n(0)(n(572),n(573),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"frontend-editing-settings",props:["config"],data:function(){return{fetching:!1,saving:!1,tableId:this.config.table.ID,columns:this.config.columns,settings:{allow_frontend:"no",user_roles_editing:[],user_roles_deleting:[]},editing_user_roles:{},user_roles:{},editing_items:{},required_items:{},default_values:{},appearance_settings:{},hasPro:!!window.ninja_table_admin.hasPro,isActivated:!!window.ninja_table_admin.activated_features.ninja_table_front_editor}},methods:{getEditSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_table_pro_get_editing_settings",table_id:this.tableId}).then(function(e){t.settings=e.data.settings,t.user_roles=e.data.user_roles,t.editing_user_roles=e.data.editing_user_roles,t.editing_items=e.data.editor_pref.editing_items,t.required_items=e.data.editor_pref.required_items,t.default_values=e.data.editor_pref.default_values,t.appearance_settings=e.data.editor_pref.appearance_settings}).fail(function(t){}).always(function(){t.fetching=!1})},updateSettings:function(){var t=this;this.saving=!0;var e={action:"ninja_table_pro_update_editing_settings",table_id:this.tableId,settings:this.settings,editing_items:this.editing_items,required_items:this.required_items,default_values:this.default_values,appearance_settings:this.appearance_settings};this.$post(e).then(function(e){t.$message({type:"success",message:e.data.message})}).fail(function(e){e.responseJSON&&e.responseJSON.data?t.$message({type:"error",message:e.responseJSON.data.message}):t.$message({type:"error",message:"Something is wrong! Please try again"})}).always(function(){t.saving=!1})}},mounted:function(){this.getEditSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",[t._v("\n Frontend Editing Settings\n ")]),t._v(" "),n("div",{staticClass:"heading_actions"},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),n("div",{staticClass:"editing_body"},[n("div",{staticClass:"editing_sub_section"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.allow_frontend,callback:function(e){t.$set(t.settings,"allow_frontend",e)},expression:"settings.allow_frontend"}},[t._v("\n Enable Frontend editing\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[n("div",{staticClass:"editing_sub_section"},[t._m(2),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Edit/Add Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can edit this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_editing,callback:function(e){t.$set(t.settings,"user_roles_editing",e)},expression:"settings.user_roles_editing"}},t._l(t.editing_user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}))],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Deleting Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can delete this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_deleting,callback:function(e){t.$set(t.settings,"user_roles_deleting",e)},expression:"settings.user_roles_deleting"}},t._l(t.user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}))],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Own Data Only\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If this is enabled, users will see and edit only the rows that were created by them"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.own_data_only,callback:function(e){t.$set(t.settings,"own_data_only",e)},expression:"settings.own_data_only"}},[t._v("\n Users can see and edit/delete only own data\n ")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.own_data_only,expression:"settings.own_data_only == 'yes'"}],staticStyle:{"line-height":"120%"}},[t._v("\n Your Selected user roles only see their own data and manage those data. Other user roles can not see any data. If you want to show all the data without editing tools to all users, you can use the following shortcode:\n "),n("br"),n("pre",[n("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),n("div",{staticClass:"ninja_editing_pref"},[n("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column Name")]),t._v(" "),n("th",[t._v("\n Editable?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Required?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Default Value\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you would like to have some values pre-defined in editors (i.e. default editor values) please enter these here."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("th",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[e.key],callback:function(n){t.$set(t.editing_items,e.key,n)},expression:"editing_items[column.key]"}})],1),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[e.key],callback:function(n){t.$set(t.required_items,e.key,n)},expression:"required_items[column.key]"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{placeholder:"Default Value for "+e.name,size:"mini"},model:{value:t.default_values[e.key],callback:function(n){t.$set(t.default_values,e.key,n)},expression:"default_values[column.key]"}})],1)])}))])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance_settings.alwaysShow,callback:function(e){t.$set(t.appearance_settings,"alwaysShow",e)},expression:"appearance_settings.alwaysShow"}},[t._v("\n Always Show Edit Icons\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you enable this then, Selected user roles can always see the edit buttons, Otherwise they will see a button to initialize editing"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Row Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: New row"},model:{value:t.appearance_settings.addText,callback:function(e){t.$set(t.appearance_settings,"addText",e)},expression:"appearance_settings.addText"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Rows Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit rows"},model:{value:t.appearance_settings.showText,callback:function(e){t.$set(t.appearance_settings,"showText",e)},expression:"appearance_settings.showText"}})],1)]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Add Data"},model:{value:t.appearance_settings.addModalLabel,callback:function(e){t.$set(t.appearance_settings,"addModalLabel",e)},expression:"appearance_settings.addModalLabel"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit Data"},model:{value:t.appearance_settings.editModalLabel,callback:function(e){t.$set(t.appearance_settings,"editModalLabel",e)},expression:"appearance_settings.editModalLabel"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Editor Icon Position\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Edit icon postion. If you select Right then it will append the edit icons at the last column otherwise at the first column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("br"),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.appearance_settings.position,callback:function(e){t.$set(t.appearance_settings,"position",e)},expression:"appearance_settings.position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):n("div",[n("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),n("p",[t._v('Only "Default" data source tables can be editable')])]):n("div",[t._m(1)]):n("div",[t._m(0)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",{},[t._v("\n Frontend Editing Settings\n ")])]),t._v(" "),n("div",{staticClass:"editing_body text-center"},[n("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),n("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")]),t._v(" "),n("p",[t._v("Using this module, You can let your frontend users to add/edit/delete records based on user role. Also, You can separate the records by user submission")]),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=frontend-editing&utm_term=upgrade"}},[t._v("Purchase Now")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("\n Custom Filters is introduced in version 3.2.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Data Editing Permissions")]),this._v(" "),e("p",[this._v("\n Please specific user roles to be able to edit/delete this table. Only selected user\n roles\n can edit/delete the data.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Editing Column Options")]),this._v(" "),e("p",[this._v("\n Please Specify which columns can be editable from front-end and also, You can specify\n which\n columns will be required\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Appearance Settings")]),this._v(" "),e("p",[this._v("\n You can set the Editing Component Labels and Appearances\n ")])])}]}},function(t,e,n){var a=n(0)(n(577),n(578),!1,function(t){n(575)},null,null);t.exports=a.exports},function(t,e,n){var a=n(576);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("3cd470e0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-message{z-index:999999!important;top:5px}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"TableApp",data:function(){return{addVisible:!1,integrity:window.ninja_table_admin.nt_integrity,admin_notices:window.ninja_table_admin.admin_notices}},mounted:function(){var t=this;window.ninjaTableBus.$on("show_pro_popup",function(e){t.addVisible=!0})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrap"},[t._l(t.admin_notices,function(e,a){return n("el-alert",{key:a,attrs:{type:e.type,closable:e.closable,effect:"dark"}},[n("div",{domProps:{innerHTML:t._s(e.message)}})])}),t._v(" "),n("router-view"),t._v(" "),n("div",{staticClass:"pro_feature_dialog"},[n("el-dialog",{attrs:{title:"NinjaTable Pro Features",visible:t.addVisible},on:{"update:visible":function(e){t.addVisible=e}}},[n("div",{staticClass:"add_content"},[n("ul",{staticClass:"list_features"},[n("li",[t._v("Use Unlimited Colors in Your Tables")]),t._v(" "),n("li",[t._v("Add Media to Your Table Cells")]),t._v(" "),n("li",[t._v("Drag and Drop Table Data Sorting")]),t._v(" "),n("li",[t._v("Use Advanced Date Sorting")]),t._v(" "),n("li",[t._v("Colspan/Cell Merging Feature")]),t._v(" "),n("li",[t._v("Create Custom Filter UI in Table")]),t._v(" "),n("li",[t._v("Use Shortcode in your table cell")]),t._v(" "),n("li",[t._v("Use Advanced Data Filtering")]),t._v(" "),n("li",[t._v("Use Advanced Customization Features")]),t._v(" "),n("li",[t._v("Get VIP Support for any Issue")]),t._v(" "),n("li",[t._v("Incremental New Premium Features")]),t._v(" "),n("li",[t._v("And Many More feature")])])]),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Buy Pro Now")])])])],1),t._v(" "),"nope"==t.integrity?n("div",{staticStyle:{"margin-top":"90px",color:"rgb(236, 62, 62)","font-size":"16px","margin-bottom":"30px"}},[n("b",[t._v("Notice:")]),t._v(" Ninja Tables Pro integrity is not valid. You may downloaded from other sources. Please download ninja tables pro from "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?integrity=1"}},[t._v("WPManageNinja")]),t._v(" to keep it upto date.\n ")]):t._e()],2)},staticRenderFns:[]}}]);
1
+ !function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=210)}([function(t,e){t.exports=function(t,e,n,a,i,o){var s,l=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(s=t,l=t.default);var c,u="function"==typeof l?l.options:l;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):a&&(c=a),c){var d=u.functional,_=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),_(t,e)}):u.beforeCreate=_?[].concat(_,c):[c]}return{esModule:s,exports:l,options:u}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var i=(s=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(a[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&a[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i=n(215),o={},s=a&&(document.head||document.getElementsByTagName("head")[0]),l=null,r=0,c=!1,u=function(){},d=null,_="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t){for(var e=0;e<t.length;e++){var n=t[e],a=o[n.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](n.parts[i]);for(;i<n.parts.length;i++)a.parts.push(v(n.parts[i]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,a=document.querySelector("style["+_+'~="'+t.id+'"]');if(a){if(c)return u;a.parentNode.removeChild(a)}if(p){var i=r++;a=l||(l=m()),e=g.bind(null,a,i,!1),n=g.bind(null,a,i,!0)}else a=m(),e=function(t,e){var n=e.css,a=e.media,i=e.sourceMap;a&&t.setAttribute("media",a);d.ssrId&&t.setAttribute(_,e.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,a),n=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else n()}}t.exports=function(t,e,n,a){c=n,d=a||{};var s=i(t,e);return f(s),function(e){for(var n=[],a=0;a<s.length;a++){var l=s[a];(r=o[l.id]).refs--,n.push(r)}e?f(s=i(t,e)):s=[];for(a=0;a<n.length;a++){var r;if(0===(r=n[a]).refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete o[r.id]}}}};var h,b=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function g(t,e,n,a){var i=n?"":a.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}},,function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var a=n(38),i="object"==typeof self&&self&&self.Object===Object&&self,o=a||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,,function(t,e,n){var a=n(11),i=n(70),o=n(71),s="[object Null]",l="[object Undefined]",r=a?a.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?l:s:r&&r in Object(t)?i(t):o(t)}},function(t,e,n){var a=n(5).Symbol;t.exports=a},,,function(t,e,n){var a=n(315),i=n(318);t.exports=function(t,e){var n=i(t,e);return a(n)?n:void 0}},,,,,,,function(t,e){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}},function(t,e,n){t.exports=n(74)},function(t,e,n){var a=n(10),i=n(6),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&a(t)==o}},,,function(t,e,n){var a=n(78);t.exports=function(t){return null==t?"":a(t)}},,,,,,,,,function(t,e,n){var a=n(0)(n(247),n(248),!1,function(t){n(245)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(259),n(260),!1,function(t){n(257)},"data-v-06fd6e1a",null);t.exports=a.exports},function(t,e,n){var a=n(14)(Object,"create");t.exports=a},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(7))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var a=n(323),i=n(324),o=n(325),s=n(326),l=n(327);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=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(115);t.exports=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}},function(t,e,n){var a=n(329);t.exports=function(t,e){var n=t.__data__;return a(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var a=n(113),i=n(73);t.exports=function(t){return null!=t&&i(t.length)&&!a(t)}},function(t,e,n){var a=n(355),i=n(124),o=n(44);t.exports=function(t){return o(t)?a(t):i(t)}},function(t,e,n){var a=n(23),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}},,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",function(){return a});var a=function(){return{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"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:"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:"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",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}}}},function(t,e,n){var a=n(312),i=n(328),o=n(330),s=n(331),l=n(332);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=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(11),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,l=a?a.toStringTag:void 0;t.exports=function(t){var e=o.call(t,l),n=t[l];try{t[l]=void 0;var a=!0}catch(t){}var i=s.call(t);return a&&(e?t[l]=n:delete t[l]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var a=n(14)(n(5),"Map");t.exports=a},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var a=n(350),i=n(351),o=n(365),s=n(4);t.exports=function(t,e){return(s(t)?a:i)(t,o(e))}},function(t,e,n){var a=n(124),i=n(125),o=n(44),s=n(386),l=n(387),r="[object Map]",c="[object Set]";t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?l(t):t.length;var e=i(t);return e==r||e==c?t.size:a(t).length}},function(t,e,n){var a=n(134);t.exports=function(t,e,n){var i=null==t?void 0:a(t,e);return void 0===i?n:i}},function(t,e,n){var a=n(4),i=n(23),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var a=n(11),i=n(21),o=n(4),s=n(23),l=1/0,r=a?a.prototype:void 0,c=r?r.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-l?"-0":n}},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(81).polyfill(),e.a=function t(e,n,i,o){var s,l=t,r="";function c(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?c(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=o?0 in n?[]:[1]:n;for(s=0;s<n.length;s++){var u,d="",_=0,p="object"==a(n[s])?n[s]:{};(p=Object.assign({},i,p))[""]={"":n[s]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,function(t,e,n,i,o,s,f){_?d+=_&&!o||_>1?t:e:(r+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,function(t,e,n,a,i,o){return e?c(p,e):a?c(p,o):i?l(c(p,o),p):n?"":new Option(c(p,o)).innerHTML}),u=s),o?--_||(f=c(p,f),/^f/.test(void 0===f?"undefined":a(f))?r+=f.call(p,d,function(t){return l(t,p)}):r+=l(d,f,p,u),d=""):++_})}return r}},function(t,e,n){"use strict";function a(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),a=1;a<arguments.length;a++){var i=arguments[a];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),s=0,l=o.length;s<l;s++){var r=o[s],c=Object.getOwnPropertyDescriptor(i,r);void 0!==c&&c.enumerable&&(n[r]=i[r])}}return n}t.exports={assign:a,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:a})}}},function(t,e,n){var a=n(0)(n(468),n(482),!1,function(t){n(466)},null,null);t.exports=a.exports},function(t,e,n){"use strict";var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}!function(){function e(t){function e(t){t.parentElement.removeChild(t)}function n(t,e,n){var a=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,a)}function o(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}var s=["Start","Add","Remove","Update","End"],l=["Choose","Sort","Filter","Clone"],r=["Move"].concat(s,l).map(function(t){return"on"+t}),c=null;return{name:"draggable",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"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;if(e&&1===e.length){var n=e[0];n.componentOptions&&"transition-group"===n.componentOptions.tag&&(this.transitionMode=!0)}var a=e,o=this.$slots.footer;o&&(a=e?[].concat(i(e),i(o)):[].concat(i(o)));var s=null,l=function(t,e){s=function(t,e,n){return void 0==n?t:((t=null==t?{}:t)[e]=n,t)}(s,t,e)};if(l("attrs",this.$attrs),this.componentData){var r=this.componentData,c=r.on,u=r.props;l("on",c),l("props",u)}return t(this.element,s,a)},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.element.toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter element value or remove transition-group. Current element value: "+this.element);var n={};s.forEach(function(t){n["on"+t]=function(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),o.call(e,t,n)}}.call(e,t)}),l.forEach(function(t){n["on"+t]=o.bind(e,t)});var i=a({},this.options,n,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new t(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},isCloning:function(){return!!this.options&&!!this.options.group&&"clone"===this.options.group.pull},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){for(var e in t)-1==r.indexOf(e)&&this._sortable.option(e,t[e])},deep:!0},realList:function(){this.computeIndexes()}},methods:{getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1==this.$children.length,this.init=!0),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){if(!t)return[];var a=t.map(function(t){return t.elm}),o=[].concat(i(e)).map(function(t){return a.indexOf(t)});return n?o.filter(function(t){return-1!==t}):o}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode)})},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&&"transition-group"===e.$options._componentTag?e.$parent: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=[].concat(i(this.value));t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,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,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var o=i.realList,s={list:o,component:i};if(e!==n&&o&&i.getUnderlyingVm){var l=i.getUnderlyingVm(n);if(l)return a(l,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),c=t.item},onDragAdd:function(t){var n=t.item._underlying_vm_;if(void 0!==n){e(t.item);var a=this.getVmIndex(t.newIndex);this.spliceList(a,0,n),this.computeIndexes();var i={element:n,newIndex:a};this.emitChanges({added:i})}},onDragRemove:function(t){if(n(this.rootContainer,t.item,t.oldIndex),this.isCloning)e(t.clone);else{var a=this.context.index;this.spliceList(a,1);var i={element:this.context.element,oldIndex:a};this.resetTransitionData(a),this.emitChanges({removed:i})}},onDragUpdate:function(t){e(t.item),n(t.from,t.item,t.oldIndex);var a=this.context.index,i=this.getVmIndex(t.newIndex);this.updatePosition(a,i);var o={element:this.context.element,oldIndex:a,newIndex:i};this.emitChanges({moved:o})},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=[].concat(i(e.to.children)).filter(function(t){return"none"!==t.style.display}),a=n.indexOf(e.related),o=t.component.getVmIndex(a);return-1!=n.indexOf(c)||!e.willInsertAfter?o:o+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),o=this.context,s=this.computeFutureIndex(i,t);return a(o,{futureIndex:s}),a(t,{relatedContext:i,draggedContext:o}),n(t,e)},onDragEnd:function(t){this.computeIndexes(),c=null}}}}Array.from||(Array.from=function(t){return[].slice.call(t)});var o=n(127);t.exports=e(o)}()},,,,,,,,,,,,,,,,,,,,,function(t,e,n){var a,i,o,s;s=function(t,e,n,a){"use strict";var i=l(e),o=l(n),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a.resolveOptions(n),a.listenClick(t),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),c(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,s.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){var e=d("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}();function d(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=u},i=[t,n(231),n(233),n(234)],void 0===(o="function"==typeof(a=s)?a.apply(e,i):a)||(t.exports=o)},function(t,e,n){var a=n(0)(n(238),n(239),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(251),n(263),!1,function(t){n(249)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(261),n(262),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(266),n(267),!1,function(t){n(264)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(268),n(269),!1,null,null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(281),n(282),!1,function(t){n(279)},"data-v-ad6aab96",null);t.exports=a.exports},function(t,e,n){var a=n(21),i=n(311),o=n(340),s=n(348),l=o(function(t){var e=a(t,s);return e.length&&e[0]===t[0]?i(e):[]});t.exports=l},function(t,e,n){var a=n(69),i=n(333),o=n(334);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new a;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e,n){var a=n(10),i=n(39),o="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",r="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=a(t);return e==s||e==l||e==o||e==r}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){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}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var a=n(357),i=n(6),o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable,r=a(function(){return arguments}())?a:function(t){return i(t)&&s.call(t,"callee")&&!l.call(t,"callee")};t.exports=r},function(t,e,n){(function(t){var a=n(5),i=n(358),o="object"==typeof e&&e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,l=s&&s.exports===o?a.Buffer:void 0,r=(l?l.isBuffer:void 0)||i;t.exports=r}).call(e,n(121)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&a.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var a=n(359),i=n(117),o=n(360),s=o&&o.isTypedArray,l=s?i(s):a;t.exports=l},function(t,e,n){var a=n(361),i=n(362),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}},function(t,e,n){var a=n(382),i=n(72),o=n(383),s=n(384),l=n(385),r=n(10),c=n(114),u=c(a),d=c(i),_=c(o),p=c(s),f=c(l),m=r;(a&&"[object DataView]"!=m(new a(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||s&&"[object Set]"!=m(new s)||l&&"[object WeakMap]"!=m(new l))&&(m=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,a=n?c(n):"";if(a)switch(a){case u:return"[object DataView]";case d:return"[object Map]";case _:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var a,i;!function(o){"use strict";void 0===(i="function"==typeof(a=o)?a.call(e,n,e,t):a)||(t.exports=i)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,a,i,o,s,l,r,c,u,d,_,p,f,m,v,h,b,g,y,x={},w=/\s+/g,C=/left|right|inline/,k="Sortable"+(new Date).getTime(),S=window,j=S.document,$=S.parseInt,T=S.setTimeout,P=S.jQuery||S.Zepto,E=S.Polymer,A=!1,D="draggable"in j.createElement("div"),N=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((y=j.createElement("x")).style.cssText="pointer-events:auto","auto"===y.style.pointerEvents),O=!1,F=Math.abs,I=Math.min,M=[],L=[],z=at(function(t,e,n){if(n&&e.scroll){var a,i,o,s,u,d,_=n[k],p=e.scrollSensitivity,f=e.scrollSpeed,m=t.clientX,v=t.clientY,h=window.innerWidth,b=window.innerHeight;if(r!==n&&(l=e.scroll,r=n,c=e.scrollFn,!0===l)){l=n;do{if(l.offsetWidth<l.scrollWidth||l.offsetHeight<l.scrollHeight)break}while(l=l.parentNode)}l&&(a=l,i=l.getBoundingClientRect(),o=(F(i.right-m)<=p)-(F(i.left-m)<=p),s=(F(i.bottom-v)<=p)-(F(i.top-v)<=p)),o||s||(s=(b-v<=p)-(v<=p),((o=(h-m<=p)-(m<=p))||s)&&(a=S)),x.vx===o&&x.vy===s&&x.el===a||(x.el=a,x.vx=o,x.vy=s,clearInterval(x.pid),a&&(x.pid=setInterval(function(){if(d=s?s*f:0,u=o?o*f:0,"function"==typeof c)return c.call(_,u,d,t);a===S?S.scrollTo(S.pageXOffset+u,S.pageYOffset+d):(a.scrollTop+=d,a.scrollLeft+=u)},24)))}},30),R=function(t){function e(t,e){return void 0!==t&&!0!==t||(t=n.name),"function"==typeof t?t:function(n,a){var i=a.options.group.name;return e?t:t&&(t.join?t.indexOf(i)>-1:i==t)}}var n={},a=t.group;a&&"object"==typeof 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};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){A={capture:!1,passive:!1}}}))}catch(t){}function B(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=it({},e),t[k]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==B.supportPointer};for(var a in n)!(a in e)&&(e[a]=n[a]);for(var i in R(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&D,H(t,"mousedown",this._onTapStart),H(t,"touchstart",this._onTapStart),e.supportPointer&&H(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(H(t,"dragover",this),H(t,"dragenter",this)),L.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function U(e,n){"clone"!==e.lastPullMode&&(n=!0),a&&a.state!==n&&(J(a,"display",n?"none":""),n||a.state&&(e.options.group.revertClone?(i.insertBefore(a,o),e._animate(t,a)):i.insertBefore(a,t)),a.state=n)}function q(t,e,n){if(t){n=n||j;do{if(">*"===e&&t.parentNode===n||nt(t,e))return t}while(t=V(t))}return null}function V(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function H(t,e,n){t.addEventListener(e,n,A)}function Y(t,e,n){t.removeEventListener(e,n,A)}function Q(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(w," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(w," ")}}function J(t,e,n){var a=t&&t.style;if(a){if(void 0===n)return j.defaultView&&j.defaultView.getComputedStyle?n=j.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in a||(e="-webkit-"+e),a[e]=n+("string"==typeof n?"":"px")}}function W(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 G(t,e,n,i,o,s,l,r){t=t||e[k];var c=j.createEvent("Event"),u=t.options,d="on"+n.charAt(0).toUpperCase()+n.substr(1);c.initEvent(n,!0,!0),c.to=o||e,c.from=s||e,c.item=i||e,c.clone=a,c.oldIndex=l,c.newIndex=r,e.dispatchEvent(c),u[d]&&u[d].call(t,c)}function K(t,e,n,a,i,o,s,l){var r,c,u=t[k],d=u.options.onMove;return(r=j.createEvent("Event")).initEvent("move",!0,!0),r.to=e,r.from=t,r.dragged=n,r.draggedRect=a,r.related=i||e,r.relatedRect=o||e.getBoundingClientRect(),r.willInsertAfter=l,t.dispatchEvent(r),d&&(c=d.call(u,r,s)),c}function X(t){t.draggable=!1}function Z(){O=!1}function tt(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 et(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"===t.nodeName.toUpperCase()||">*"!==e&&!nt(t,e)||n++;return n}function nt(t,e){if(t){var n=(e=e.split(".")).shift().toUpperCase(),a=new RegExp("\\s("+e.join("|")+")(?=\\s)","g");return!(""!==n&&t.nodeName.toUpperCase()!=n||e.length&&((" "+t.className+" ").match(a)||[]).length!=e.length)}return!1}function at(t,e){var n,a;return function(){void 0===n&&(n=arguments,a=this,T(function(){1===n.length?t.call(a,n[0]):t.apply(a,n),n=void 0},e))}}function it(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function ot(t){return E&&E.dom?E.dom(t).cloneNode(!0):P?P(t).clone(!0)[0]:t.cloneNode(!0)}function st(t){return T(t,0)}function lt(t){return clearTimeout(t)}return B.prototype={constructor:B,_onTapStart:function(e){var n,a=this,i=this.el,o=this.options,l=o.preventOnFilter,r=e.type,c=e.touches&&e.touches[0],u=(c||e).target,d=e.target.shadowRoot&&e.path&&e.path[0]||u,_=o.filter;if(function(t){var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var a=e[n];a.checked&&M.push(a)}}(i),!t&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!d.isContentEditable&&(u=q(u,o.draggable,i))&&s!==u){if(n=et(u,o.draggable),"function"==typeof _){if(_.call(this,e,u,this))return G(a,d,"filter",u,i,i,n),void(l&&e.preventDefault())}else if(_&&(_=_.split(",").some(function(t){if(t=q(d,t.trim(),i))return G(a,t,"filter",u,i,i,n),!0})))return void(l&&e.preventDefault());o.handle&&!q(d,o.handle,i)||this._prepareDragStart(e,c,u,n)}},_prepareDragStart:function(n,a,l,r){var c,u=this,d=u.el,_=u.options,f=d.ownerDocument;l&&!t&&l.parentNode===d&&(h=n,i=d,e=(t=l).parentNode,o=t.nextSibling,s=l,m=_.group,p=r,this._lastX=(a||n).clientX,this._lastY=(a||n).clientY,t.style["will-change"]="all",c=function(){u._disableDelayedDrag(),t.draggable=u.nativeDraggable,Q(t,_.chosenClass,!0),u._triggerDragStart(n,a),G(u,i,"choose",t,i,i,p)},_.ignore.split(",").forEach(function(e){W(t,e.trim(),X)}),H(f,"mouseup",u._onDrop),H(f,"touchend",u._onDrop),H(f,"touchcancel",u._onDrop),H(f,"selectstart",u),_.supportPointer&&H(f,"pointercancel",u._onDrop),_.delay?(H(f,"mouseup",u._disableDelayedDrag),H(f,"touchend",u._disableDelayedDrag),H(f,"touchcancel",u._disableDelayedDrag),H(f,"mousemove",u._disableDelayedDrag),H(f,"touchmove",u._disableDelayedDrag),_.supportPointer&&H(f,"pointermove",u._disableDelayedDrag),u._dragStartTimer=T(c,_.delay)):c())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),Y(t,"mouseup",this._disableDelayedDrag),Y(t,"touchend",this._disableDelayedDrag),Y(t,"touchcancel",this._disableDelayedDrag),Y(t,"mousemove",this._disableDelayedDrag),Y(t,"touchmove",this._disableDelayedDrag),Y(t,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,n){(n=n||("touch"==e.pointerType?e:null))?(h={target:t,clientX:n.clientX,clientY:n.clientY},this._onDragStart(h,"touch")):this.nativeDraggable?(H(t,"dragend",this),H(i,"dragstart",this._onDragStart)):this._onDragStart(h,!0);try{j.selection?st(function(){j.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){if(i&&t){var e=this.options;Q(t,e.ghostClass,!0),Q(t,e.dragClass,!1),B.active=this,G(this,i,"start",t,i,i,p)}else this._nulling()},_emulateDragOver:function(){if(b){if(this._lastX===b.clientX&&this._lastY===b.clientY)return;this._lastX=b.clientX,this._lastY=b.clientY,N||J(n,"display","none");var t=j.elementFromPoint(b.clientX,b.clientY),e=t,a=L.length;if(t&&t.shadowRoot&&(e=t=t.shadowRoot.elementFromPoint(b.clientX,b.clientY)),e)do{if(e[k]){for(;a--;)L[a]({clientX:b.clientX,clientY:b.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);N||J(n,"display","")}},_onTouchMove:function(t){if(h){var e=this.options,a=e.fallbackTolerance,i=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=o.clientX-h.clientX+i.x,l=o.clientY-h.clientY+i.y,r=t.touches?"translate3d("+s+"px,"+l+"px,0)":"translate("+s+"px,"+l+"px)";if(!B.active){if(a&&I(F(o.clientX-this._lastX),F(o.clientY-this._lastY))<a)return;this._dragStarted()}this._appendGhost(),g=!0,b=o,J(n,"webkitTransform",r),J(n,"mozTransform",r),J(n,"msTransform",r),J(n,"transform",r),t.preventDefault()}},_appendGhost:function(){if(!n){var e,a=t.getBoundingClientRect(),o=J(t),s=this.options;Q(n=t.cloneNode(!0),s.ghostClass,!1),Q(n,s.fallbackClass,!0),Q(n,s.dragClass,!0),J(n,"top",a.top-$(o.marginTop,10)),J(n,"left",a.left-$(o.marginLeft,10)),J(n,"width",a.width),J(n,"height",a.height),J(n,"opacity","0.8"),J(n,"position","fixed"),J(n,"zIndex","100000"),J(n,"pointerEvents","none"),s.fallbackOnBody&&j.body.appendChild(n)||i.appendChild(n),e=n.getBoundingClientRect(),J(n,"width",2*a.width-e.width),J(n,"height",2*a.height-e.height)}},_onDragStart:function(e,n){var o=this,s=e.dataTransfer,l=o.options;o._offUpEvents(),m.checkPull(o,o,t,e)&&((a=ot(t)).draggable=!1,a.style["will-change"]="",J(a,"display","none"),Q(a,o.options.chosenClass,!1),o._cloneId=st(function(){i.insertBefore(a,t),G(o,i,"clone",t)})),Q(t,l.dragClass,!0),n?("touch"===n?(H(j,"touchmove",o._onTouchMove),H(j,"touchend",o._onDrop),H(j,"touchcancel",o._onDrop),l.supportPointer&&(H(j,"pointermove",o._onTouchMove),H(j,"pointerup",o._onDrop))):(H(j,"mousemove",o._onTouchMove),H(j,"mouseup",o._onDrop)),o._loopId=setInterval(o._emulateDragOver,50)):(s&&(s.effectAllowed="move",l.setData&&l.setData.call(o,s,t)),H(j,"drop",o),o._dragStartId=st(o._dragStarted))},_onDragOver:function(s){var l,r,c,p,f=this.el,h=this.options,b=h.group,y=B.active,x=m===b,w=!1,S=h.sort;if(void 0!==s.preventDefault&&(s.preventDefault(),!h.dragoverBubble&&s.stopPropagation()),!t.animated&&(g=!0,y&&!h.disabled&&(x?S||(p=!i.contains(t)):v===this||(y.lastPullMode=m.checkPull(this,y,t,s))&&b.checkPut(this,y,t,s))&&(void 0===s.rootEl||s.rootEl===this.el))){if(z(s,h,this.el),O)return;if(l=q(s.target,h.draggable,f),r=t.getBoundingClientRect(),v!==this&&(v=this,w=!0),p)return U(y,!0),e=i,void(a||o?i.insertBefore(t,a||o):S||i.appendChild(t));if(0===f.children.length||f.children[0]===n||f===s.target&&function(t,e){var n=t.lastElementChild.getBoundingClientRect();return e.clientY-(n.top+n.height)>5||e.clientX-(n.left+n.width)>5}(f,s)){if(0!==f.children.length&&f.children[0]!==n&&f===s.target&&(l=f.lastElementChild),l){if(l.animated)return;c=l.getBoundingClientRect()}U(y,x),!1!==K(i,f,t,r,l,c,s)&&(t.contains(f)||(f.appendChild(t),e=f),this._animate(r,t),l&&this._animate(c,l))}else if(l&&!l.animated&&l!==t&&void 0!==l.parentNode[k]){u!==l&&(u=l,d=J(l),_=J(l.parentNode));var j=(c=l.getBoundingClientRect()).right-c.left,$=c.bottom-c.top,P=C.test(d.cssFloat+d.display)||"flex"==_.display&&0===_["flex-direction"].indexOf("row"),E=l.offsetWidth>t.offsetWidth,A=l.offsetHeight>t.offsetHeight,D=(P?(s.clientX-c.left)/j:(s.clientY-c.top)/$)>.5,N=l.nextElementSibling,F=!1;if(P){var I=t.offsetTop,M=l.offsetTop;F=I===M?l.previousElementSibling===t&&!E||D&&E:l.previousElementSibling===t||t.previousElementSibling===l?(s.clientY-c.top)/$>.5:M>I}else w||(F=N!==t&&!A||D&&A);var L=K(i,f,t,r,l,c,s,F);!1!==L&&(1!==L&&-1!==L||(F=1===L),O=!0,T(Z,30),U(y,x),t.contains(f)||(F&&!N?f.appendChild(t):l.parentNode.insertBefore(t,F?N:l)),e=t.parentNode,this._animate(r,t),this._animate(c,l))}}},_animate:function(t,e){var n=this.options.animation;if(n){var a=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),J(e,"transition","none"),J(e,"transform","translate3d("+(t.left-a.left)+"px,"+(t.top-a.top)+"px,0)"),e.offsetWidth,J(e,"transition","all "+n+"ms"),J(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=T(function(){J(e,"transition",""),J(e,"transform",""),e.animated=!1},n)}},_offUpEvents:function(){var t=this.el.ownerDocument;Y(j,"touchmove",this._onTouchMove),Y(j,"pointermove",this._onTouchMove),Y(t,"mouseup",this._onDrop),Y(t,"touchend",this._onDrop),Y(t,"pointerup",this._onDrop),Y(t,"touchcancel",this._onDrop),Y(t,"pointercancel",this._onDrop),Y(t,"selectstart",this)},_onDrop:function(s){var l=this.el,r=this.options;clearInterval(this._loopId),clearInterval(x.pid),clearTimeout(this._dragStartTimer),lt(this._cloneId),lt(this._dragStartId),Y(j,"mouseover",this),Y(j,"mousemove",this._onTouchMove),this.nativeDraggable&&(Y(j,"drop",this),Y(l,"dragstart",this._onDragStart)),this._offUpEvents(),s&&(g&&(s.preventDefault(),!r.dropBubble&&s.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),i!==e&&"clone"===B.active.lastPullMode||a&&a.parentNode&&a.parentNode.removeChild(a),t&&(this.nativeDraggable&&Y(t,"dragend",this),X(t),t.style["will-change"]="",Q(t,this.options.ghostClass,!1),Q(t,this.options.chosenClass,!1),G(this,i,"unchoose",t,e,i,p),i!==e?(f=et(t,r.draggable))>=0&&(G(null,e,"add",t,e,i,p,f),G(this,i,"remove",t,e,i,p,f),G(null,e,"sort",t,e,i,p,f),G(this,i,"sort",t,e,i,p,f)):t.nextSibling!==o&&(f=et(t,r.draggable))>=0&&(G(this,i,"update",t,e,i,p,f),G(this,i,"sort",t,e,i,p,f)),B.active&&(null!=f&&-1!==f||(f=p),G(this,i,"end",t,e,i,p,f),this.save()))),this._nulling()},_nulling:function(){i=t=e=n=o=a=s=l=r=h=b=g=f=u=d=v=m=B.active=null,M.forEach(function(t){t.checked=!0}),M.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.preventDefault()}(e));break;case"mouseover":this._onDrop(e);break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,a=0,i=n.length,o=this.options;a<i;a++)q(t=n[a],o.draggable,this.el)&&e.push(t.getAttribute(o.dataIdAttr)||tt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,a){var i=n.children[a];q(i,this.options.draggable,n)&&(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(this)},closest:function(t,e){return q(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&R(n)},destroy:function(){var t=this.el;t[k]=null,Y(t,"mousedown",this._onTapStart),Y(t,"touchstart",this._onTapStart),Y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Y(t,"dragover",this),Y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),L.splice(L.indexOf(this._onDragOver),1),this._onDrop(),this.el=t=null}},H(j,"touchmove",function(t){B.active&&t.preventDefault()}),B.utils={on:H,off:Y,css:J,find:W,is:function(t,e){return!!q(t,e,t)},extend:it,throttle:at,closest:q,toggleClass:Q,clone:ot,index:et,nextTick:st,cancelNextTick:lt},B.create=function(t,e){return new B(t,e)},B.version="1.7.0",B})},function(t,e,n){var a=n(116),i=n(398),o=n(429),s=Math.max;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var r=null==n?0:o(n);return r<0&&(r=s(l+r,0)),a(t,i(e,3),r)}},function(t,e,n){var a=n(40),i=n(401),o=n(402),s=n(403),l=n(404),r=n(405);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=s,c.prototype.has=l,c.prototype.set=r,t.exports=c},function(t,e,n){var a=n(406),i=n(6);t.exports=function t(e,n,o,s,l){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:a(e,n,o,s,t,l))}},function(t,e,n){var a=n(112),i=n(407),o=n(118),s=1,l=2;t.exports=function(t,e,n,r,c,u){var d=n&s,_=t.length,p=e.length;if(_!=p&&!(d&&p>_))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var m=-1,v=!0,h=n&l?new a:void 0;for(u.set(t,e),u.set(e,t);++m<_;){var b=t[m],g=e[m];if(r)var y=d?r(g,b,m,e,t,u):r(b,g,m,t,e,u);if(void 0!==y){if(y)continue;v=!1;break}if(h){if(!i(e,function(t,e){if(!o(h,e)&&(b===t||c(b,t,n,r,u)))return h.push(e)})){v=!1;break}}else if(b!==g&&!c(b,g,n,r,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,n){var a=n(39);t.exports=function(t){return t==t&&!a(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var a=n(135),i=n(46);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}},function(t,e,n){var a=n(4),i=n(77),o=n(421),s=n(26);t.exports=function(t,e){return a(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,n){var a=n(432)(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});t.exports=a},function(t,e,n){var a=n(0)(n(455),n(456),!1,function(t){n(453)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(464),n(465),!1,function(t){n(462)},null,null);t.exports=a.exports},function(t,e,n){var a=n(0)(n(473),n(474),!1,null,null,null);t.exports=a.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(211)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(212),i=n(218),o=n(296),s=n(299),l=n(304),r=n(309),c=n(367),u=n(372),d=n(375),_=n(394),p=n(504),f=n(531),m=n(542),v=n(551),h=[{path:"/",component:a,props:!0,children:[{path:"/",name:"home",component:i},{path:"/tools",component:o,children:[{path:"/",name:"import_tables",component:s},{path:"default_table_appearance",name:"default_table_appearance",component:r},{path:"permission",name:"permission",component:l},{path:"licensing",name:"licensing",component:c},{path:"global_settings",name:"global_settings",component:u}]},{path:"/help",name:"help",component:m}]},{path:"/tables/:table_id",component:d,props:!0,children:[{path:"/",name:"data_items",component:_},{path:"columns",name:"data_columns",component:p},{path:"design_studio",name:"design_studio",component:n(566)},{path:"additional_css",name:"additional_css",component:v},{path:"import-export",name:"import-export",component:f},{path:"table_editing",name:"table_editing",component:n(571)}]}],b=n(574),g=n.n(b);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},data:function(){return{}},filters:{ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}});var y=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",h),linkActiveClass:"active"});g.a.router=y,window.ninjaApp=new window.NINJATABLE.Vue(g.a).$mount("#data-tables-app")},function(t,e,n){var a=n(0)(n(216),n(217),!1,function(t){n(213)},null,null);t.exports=a.exports},function(t,e,n){var a=n(214);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4438693c",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".plugin-name{float:left;padding:8px 0}",""])},function(t,e){t.exports=function(t,e){for(var n=[],a={},i=0;i<e.length;i++){var o=e[i],s=o[0],l={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};a[s]?a[s].parts.push(l):n.push(a[s]={id:s,parts:[l]})}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"home",data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[]}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])}},mounted:function(){this.setTopMenu()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_main_nav"},[n("span",{staticClass:"plugin-name"},[t._v(t._s(t.$t("Ninja Tables"))),t.has_pro?n("span",[t._v(" Pro")]):t._e()]),t._v(" "),t._l(t.topMenus,function(e){return n("router-link",{key:e.route,class:["ninja-tab"],attrs:{"active-class":"ninja-tab-active",exact:"",to:{name:e.route}}},[t._v("\n "+t._s(e.title)+"\n ")])}),t._v(" "),t.has_pro?t._e():n("a",{staticClass:"ninja-tab buy_pro_tab",attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Upgrade To Pro")])],2),t._v(" "),n("router-view",{attrs:{"has-pro":t.has_pro}})],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(221),n(295),!1,function(t){n(219)},null,null);t.exports=a.exports},function(t,e,n){var a=n(220);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0512158f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"label.form_group.search_action{padding-top:0;margin-bottom:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(222),i=n(227),o=n(241),s=n(285),l=n(290);e.default={name:"all_tables",components:{Welcome:a,"list-all-tables":i,"add-table-modal":o,"lead-modal":s,NinjaReviewDialog:l},props:["hasPro"],data:function(){return{modalVisible:!1,published_tables:parseInt(window.ninja_table_admin.published_tables),searchAction:0,searchString:"",selected:[],review_option:window.ninja_table_admin.show_review_dialog}},methods:{addTableAction:function(t){this.$router.push({name:"data_items",params:{table_id:t}}),this.modalVisible=!1},getData:function(){this.searchAction++},makeSelection:function(t){this.selected=t},handleBulkActions:function(t){"delete"===t&&this.deleteTables()},deleteTables:function(){this.selected.length&&this.$confirm(this.$t("This will permanently delete the selected tables. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){}).catch(function(){})}},mounted:function(){var t=this;window.ninjaTableBus.$on("addedTable",function(){t.published_tables||(window.ninja_table_admin.published_tables=1)})}}},function(t,e,n){var a=n(0)(n(225),n(226),!1,function(t){n(223)},null,null);t.exports=a.exports},function(t,e,n){var a=n(224);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59acd174",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_intro_welcome{max-width:600px;margin:45px auto 0;padding:30px 20px;background:#fff;text-align:center}.ninja_intro_welcome h2{font-size:30px}.ninja_intro_welcome .ninja_actions{margin-bottom:30px}.ninja_intro_welcome .ninja_docs{text-align:left}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_intro_welcome"},[n("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),n("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),n("div",{staticClass:"ninja_actions"},[n("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),n("hr"),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_docs"},[e("h4",[this._v("Ninja Tables Documentation:")]),this._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[this._v("\n Demo and Basic Settings\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[this._v("\n Setting Up a Table\n ")])]),this._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[this._v("\n Make Your Table Looks Great on All Devices\n ")])])])])}]}},function(t,e,n){var a=n(0)(n(230),n(240),!1,function(t){n(228)},null,null);t.exports=a.exports},function(t,e,n){var a=n(229);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4a0dbc88",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-tables.el-table td,.ninja-tables.el-table th{padding:5px 0}.ninja-tables.el-table span.row-delete a{color:#a00}.ninja-tables.el-table a{text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(104),i=n.n(a),o=n(105);e.default={name:"Home",components:{ninja_pagination:o},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}},methods:{fetchTables:function(){var t=this;this.pageLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-all-tables",per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString};jQuery.get(ajaxurl,e).done(function(e){t.items=e.data,t.paginate.total=e.total,t.paginate.current_page=e.current_page,t.paginate.last_page=e.last_page,t.pageLoading=!1,e.total&&t.$emit("total_table",e.total)}).fail(function(t){vueNotification.error("Something went wrong, please try again.")})},goToPage:function(t){this.paginate.current_page=t,this.fetchTables()},handleSizeChange:function(t){this.paginate.per_page=t,this.setStoreData("tables_per_page",t),this.fetchTables()},confirmDeleteTable:function(t){var e=this;this.$confirm("Are you sure, You want to delete this table?","Warning",{confirmButtonText:"Yes, Delete",cancelButtonText:"Cancel",type:"warning"}).then(function(){e.deleteTable(t)}).catch(function(){e.$message({type:"info",message:"Delete canceled"})})},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};jQuery.post(ajaxurl,n).then(function(t){e.fetchTables(),e.$message({type:"success",message:t.message})}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.$emit("selection",t.map(function(t){return t.ID}))},duplicate:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"duplicate-table",tableId:t};jQuery.post(ajaxurl,n).then(function(t){e.$message({type:"success",message:t.data.message}),e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})}).fail(function(t){alert(t.responseJSON.data.message)})},shouldBeVisible:function(t){return"fluent-form"!=t.dataSourceType||window.ninja_table_admin.hasFluentForm},dataSourceType:function(t){var e=t.dataSourceType||"Default";return e=e.indexOf("google")>-1?"Google SpreadSheet":e}},mounted:function(){var t=this;this.fetchTables(),new i.a(".copy").on("success",function(e){t.$message({message:"Copied to Clipboard!",type:"success"})})}}},function(t,e,n){var a,i,o,s;s=function(t,e){"use strict";var n,a=(n=e)&&n.__esModule?n:{default:n};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s},i=[t,n(232)],void 0===(o="function"==typeof(a=s)?a.apply(e,i):a)||(t.exports=o)},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var a=window.getSelection(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i),e=a.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var a=this.e||(this.e={});return(a[t]||(a[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var a=this;function 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,s=a.length;o<s;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=n},function(t,e,n){var a=n(235),i=n(236);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")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(237);function i(t,e,n,i,o){var s=function(t,e,n,i){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,s,o),{destroy:function(){t.removeEventListener(n,s,o)}}}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)}))}},function(t,e){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==n;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"NinjaPagination",props:["paginate"],data:function(){return{pageNumberInput:1}},methods:{goToPage:function(t){t>=1&&t<=this.paginate.last_page?(this.$emit("change_page",t),this.pageNumberInput=t):alert("invalid page number")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tablenav-pages"},[t.paginate.total?n("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),n("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[n("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),n("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.pageNumberInput,expression:"pageNumberInput"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",size:"2","aria-describedby":"table-paging"},domProps:{value:t.pageNumberInput},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.goToPage(t.pageNumberInput)},input:function(e){e.target.composing||(t.pageNumberInput=e.target.value)}}}),t._v("\n "+t._s(t.$t("of"))+"\n "),n("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),n("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[n("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),n("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[n("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.pageLoading,expression:"pageLoading",modifiers:{body:!0}}],staticClass:"ninja-tables",staticStyle:{},attrs:{data:t.items,border:""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{label:t.$t("ID"),width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("Title")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t.shouldBeVisible(e.row)?[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.post_title)+"\n ")])]:[t._v("\n "+t._s(e.row.post_title)+"\n ")],t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=e.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(e.row.post_status)+")\n ")])],2),t._v(" "),n("div",{staticClass:"row-actions"},[t.shouldBeVisible(e.row)?n("span",{staticClass:"row-edit"},[n("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-preview"},[n("a",{attrs:{href:e.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.duplicate(e.row.ID)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)&&e.row.fluentfrom_url?n("span",{staticClass:"row-duplicate"},[n("a",{attrs:{href:e.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),n("span",{staticClass:"row-delete"},[n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.confirmDeleteTable(e.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"160",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("strong",[t._v(t._s(t.dataSourceType(e.row)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+e.row.ID+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(e.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){t.$set(t.paginate,"current_page",e)}}})],1),t._v(" "),!t.loading&&!t.is_installed&&t.items.length>2&&!t.hasPro?n("div",[n("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[n("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?n("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[n("hr"),t._v(" "),n("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Upgrade To Pro")])]):t._e()],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(244),n(284),!1,function(t){n(242)},null,null);t.exports=a.exports},function(t,e,n){var a=n(243);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("e48dbdc6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja-add-table .el-main{padding:0 1px 0 15px;min-height:0}.ninja-add-table .el-menu{border-right:initial}.ninja-add-table .el-menu-item .el-icon-fluent-form{height:18px}.ninja-add-table .el-menu-item .dashicons{width:24px;height:18px;margin-right:5px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(35),i=n.n(a),o=n(106),s=n.n(o),l=n(108),r=n.n(l),c=n(109),u=n.n(c),d=n(270),_=n.n(d),p=n(275),f=n.n(p);e.default={name:"add_table",components:{wp_editor:i.a,"wp-posts-data-source":s.a,"fluent-form-data-source":r.a,"external-data-source":u.a,ImportTable:_.a,RawSqlForm:f.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:""}}},hasPro:{required:!0}},data:function(){return{activeTabName:"default",btnLoading:!1,activated_features:window.ninja_table_admin.activated_features,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}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),window.ninjaTableBus.$emit("addedTable"),t.table.ID?t.closeModal():t.fireTableCreated(e.table_id)}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")},onEditorChange:function(t){t.editor;var e=t.html;t.text;this.table.post_content=e},fireTableCreated:function(t){this.$emit("table_inserted",t)},checkScreenSize:function(){window.innerWidth<1e3?this.isCollapse=!0:this.isCollapse=!1}},mounted:function(){var t=this;this.checkScreenSize(),jQuery(window).resize(function(){t.checkScreenSize()})}}},function(t,e,n){var a=n(246);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("69c18912",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"button.button.ninja_demo_media_button{position:absolute;z-index:9999999999;cursor:pointer}.wp_vue_editor{width:100%;min-height:100px}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{z-index:2;position:absolute;top:0;left:0}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"wp_editor",props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()}},value:{type:String,default:function(){return""}}},data:function(){return{hasWpEditor:!!window.wp.editor,plain_content:this.value,has_pro:!!window.ninja_table_admin.hasPro}},computed:{ninja_editor_id:function(){return"ninja_editor_"+this.slugify(this.editor_id)}},watch:{plain_content:function(){this.$emit("input",this.plain_content)},value:function(){this.value||this.reloadEditor()}},methods:{initEditor:function(){if(this.hasWpEditor){wp.editor.remove(this.ninja_editor_id);var t=this;wp.editor.initialize(this.ninja_editor_id,{mediaButtons:this.has_pro,mode:"none",tinymce:{toolbar1:"formatselect,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,underline,forecolor,codeformat,removeformat,undo,redo",valid_elements:"*[*]",forced_root_block:"",setup:function(e){e.on("change",function(e,n){t.changeContentEvent()})}},quicktags:!0}),jQuery("#"+this.ninja_editor_id).on("change",function(e){t.changeContentEvent()})}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},reloadEditor:function(){wp.editor.remove(this.ninja_editor_id),jQuery("#"+this.ninja_editor_id).val(""),this.initEditor()},changeContentEvent:function(){var t=wp.editor.getContent(this.ninja_editor_id);this.$emit("input",t)},showPro:function(){window.ninjaTableBus.$emit("show_pro_popup",1)}},mounted:function(){this.initEditor()},beforeDestroy:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():n("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[n("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),n("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:t.plain_content},on:{input:function(e){e.target.composing||(t.plain_content=e.target.value)}}})]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticStyle:{"font-style":"italic"}},[e("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}]}},function(t,e,n){var a=n(250);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("13578724",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_tables_wpposts .el-checkbox-group{overflow:scroll!important}.ninja_tables_wpposts .el-transfer-panel{width:306px!important}.ninja_tables_wpposts .table-rows .el-transfer-panel{width:250px!important}.ninja_tables_wpposts .el-transfer-panel__item{display:block!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(252),i=n.n(a),o=n(36),s=n.n(o),l=n(107),r=n.n(l);e.default={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},components:{"wp-post-conditions":i.a,PremiumNotice:s.a,UpgradeNotice:r.a},data:function(){return{loading:!1,saving:!1,title:null,tableId:null,postStatuses:[],all_types:[],all_fields:[],post_types:[],selected_post_types:[],post_types_fields:[],selected_post_types_fields:[],conditions_section:"conditions",conditions:[],active_step:0,query_extra:{},hasPro:!!window.ninja_table_admin.hasPro,queryable_fields:["ID","post_author","comment_count","post_date","post_modified","post_status"]}},computed:{query_able_post_types_fields:function(){var t=this;return this.post_types_fields.filter(function(e){return-1!=t.queryable_fields.indexOf(e.key)||-1!=e.key.indexOf(".")})}},methods:{nextStep:function(){var t="";if(this.title||(t+=" The title field is required."),this.selected_post_types.length||(t+=" At least select one post type."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1&&(this.active_step=0)},handlePostTypeChange:function(t,e,n){var a=this,i=[];this.selected_post_types.forEach(function(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,jQuery.post(ajaxurl,{action:"ninja_table_wp-posts_create_table",post_title:this.title,tableId:this.tableId,data:{post_types:this.selected_post_types,columns:this.selected_post_types_fields,where:this.conditions,query_extra:!(!this.config||!this.config.table)&&this.config.table.query_extra}}).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({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_types"}).then(function(e){t.all_types=e.data.post_types,t.postStatuses=e.data.postStatuses,jQuery.each(t.all_types,function(e,n){var a="";"private"===n.status&&(a=" (private)"),t.post_types.push({key:e,label:e+a})}),t.all_fields=e.data.post_fields.map(function(t){return{key:t,label:t}}),t.config&&(t.tableId=t.config.table.ID,t.conditions=t.config.table.whereConditions||[],t.selected_post_types=t.config.table.post_types,t.selected_post_types_fields=t.config.columns.map(function(t){return t.original_name}),t.handlePostTypeChange())}).fail(function(t){console.log(t)}).always(function(){t.loading=!1})}},mounted:function(){this.getPostTypes()}}},function(t,e,n){var a=n(0)(n(255),n(256),!1,function(t){n(253)},null,null);t.exports=a.exports},function(t,e,n){var a=n(254);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("921d84e4",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}e.default={name:"WPPostConditions",props:["config","fields","conditions","allPostTypes","postStatuses","selected_post_types"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[],common_operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"}],uncommon_operators:[{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"}],other_operators:[{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}],query_limit:0,orderByFields:["ID","post_date","post_author","post_title","post_status","menu_order","comment_count"],authors:[]}},watch:{selected_post_types:function(){this.getPostAuthors()}},methods:{addCondition:function(t){this.conditions.push(a({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e){e.operators=[].concat(i(this.common_operators)),"comment_count"==t&&e.operators.map(function(t,n){"!="==t.key&&e.operators.splice(n,1)}),-1!=["ID","comment_count","post_date","post_modified"].indexOf(t)?e.operators=[].concat(i(e.operators.concat(this.other_operators))):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=[].concat(i(this.uncommon_operators))),this.setValueField(t,e)},setValueField:function(t,e){if("post_status"==t)e.value=[],e.is_selectable="true",e.selectableOptions=this.postStatuses;else if("post_author"==t)e.value=[],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=[],e.is_selectable="true";var n=[].concat(i(t.split("."))),a=n[0],o=n[1],s=this.allPostTypes[a].taxonomies[o];e.selectableOptions=s.map(function(t){return{key:t.slug,label:t.name}})}else e.value=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;jQuery.getJSON(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"get_wp_post_authors",post_types:this.selected_post_types}).then(function(e){t.authors=e.data.authors})}},mounted:function(){this.getPostAuthors()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wp-post-conditions"},[n("el-row",[n("el-col",{attrs:{md:21}},[n("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,function(e,a){return[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},on:{change:function(n){t.setOperators(n,e)}},model:{value:e.field,callback:function(n){t.$set(e,"field",n)},expression:"condition.field"}},t._l(t.fields,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}))],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[n("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(n){t.$set(e,"operator",n)},expression:"condition.operator"}},t._l(e.operators,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}))],1),t._v(" "),n("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(e)||t.isDateField(e)?!t.isSelectable(e)&&t.isDateField(e)?n("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}}):t.isSelectable(e)?n("el-select",{attrs:{multiple:"",placeholder:"Select"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}},t._l(e.selectableOptions,function(t){return n("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})):t._e():n("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"condition.value"}})],1),t._v(" "),n("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[n("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){t.removeCondition(a,e)}}})],1)],1)]}),t._v(" "),t.config&&t.config.table.query_extra?n("div",{staticClass:"ninja_post_query_limit"},[n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Query Limit")]),t._v(" "),n("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.config.table.query_extra.query_limit,callback:function(e){t.$set(t.config.table.query_extra,"query_limit",e)},expression:"config.table.query_extra.query_limit"}}),t._v(" "),t._m(0)],1),t._v(" "),n("div",{staticClass:"ninja_form_group"},[n("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Column")]),t._v(" "),n("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by_column,callback:function(e){t.$set(t.config.table.query_extra,"order_by_column",e)},expression:"config.table.query_extra.order_by_column"}},t._l(t.orderByFields,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}))],1),t._v(" "),n("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Order By Type")]),t._v(" "),n("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by,callback:function(e){t.$set(t.config.table.query_extra,"order_by",e)},expression:"config.table.query_extra.order_by"}},[n("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),n("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}]}},function(t,e,n){var a=n(258);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("17456e14",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".premium-notice .buy_now_button[data-v-06fd6e1a]{text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"PremiumNotice",props:["highlight"]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[n("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?n("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),n("b",[t._v("unlimited customizations")]),t._v(",\n "),n("b",[t._v("data filters")]),t._v(",\n "),n("b",[t._v("professional looks")]),t._v(",\n "),n("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("\n Get Premium Version Now\n ")])])},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"UpgradeNotice"}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[this._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n ")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPLainLayout?[n("el-row",[n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1),t._v(" "),n("el-col",{staticClass:"table-rows",attrs:{md:12}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)],1),t._v(" "),n("el-row",[n("el-collapse",{model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{title:"Conditions",name:"1"}},[n("wp-post-conditions",{attrs:{config:t.config,selected_post_types:t.selected_post_types,postStatuses:t.postStatuses,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}})],1)],1)],1),t._v(" "),n("el-row",[n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"primary",size:"small",loading:t.saving},on:{click:t.save}},[t._v("Update\n ")])],1)]:t._e(),t._v(" "),t.hasPLainLayout?t._e():[n("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),t.hasPro?t.activated_features.wp_posts_table?t._e():[n("upgrade-notice")]:[n("premium-notice")],t._v(" "),n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1)])]:t._e(),t._v(" "),1==t.active_step?[n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",{staticStyle:{"text-align":"center"}},[n("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)]),t._v(" "),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("div",[n("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[n("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?n("wp-post-conditions",{attrs:{postStatuses:t.postStatuses,selected_post_types:t.selected_post_types,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}}):t._e()],1)],1)],1)])]:t._e(),t._v(" "),n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),n("el-col",{attrs:{md:12}},[t.active_step>0?n("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",disabled:!t.activated_features.wp_posts_table,loading:t.saving},on:{click:t.save}},[t._v("Save\n ")]):t._e()],1)],1)]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Displays website content in a searchable, sortable with Ninja Tables. It supports custom posts, pages, &\n custom post types. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-posts-table/"}},[this._v("Learn more\n about this module")])])}]}},function(t,e,n){var a=n(265);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("9f2741de",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"FluentForm",props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object}},data:function(){return{installing:!1,fetching:!1,forms:[],fields:[],btnLoading:!1,post_title:"",form:{id:null,fields:[],entry_status:"all",entry_limit:1e3},hasFluentForm:!!window.ninja_table_admin.hasFluentForm,isFluentFormUpdated:!!window.ninja_table_admin.isFluentFormUpdated}},methods:{fetchForms:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_get-fluentform-forms"}).then(function(e){return t.forms=e.data}).fail(function(t){return console.log(t)}).always(function(){t.fetching=!1})},handleFormSelectionChange:function(t){var e=this;this.$get({form_Id:t,action:"ninja-tables_get-fluentform-fields"}).then(function(t){e.fields=t.data,e.editing&&(e.form.entry_limit=e.config.table.entry_limit,e.form.entry_status=e.config.table.entry_status,e.$nextTick(function(){var t=e.config.columns.map(function(t){return t.original_name});e.fields.filter(function(e){return-1!=t.indexOf(e.name)}).forEach(function(t){e.$refs.rowSelectableTable.toggleRowSelection(t)})}))}).fail(function(t){}).always(function(){})},handleFieldsSelectionChange:function(t){this.form.fields=t},save:function(){var t=this;this.btnLoading=!0,this.config&&this.config.table.current_user_entry_only&&(this.form.current_user_entry_only=this.config.table.current_user_entry_only),jQuery.post(ajaxurl,{action:"ninja_tables_save_fluentform_table",post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null}).then(function(e){return t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var i in a)n+=" "+a[i];t.$message({showClose:!0,message:n,type:"error"})}).always(function(e){return t.btnLoading=!1})},installFluentFrom:function(){var t=this;this.installing=!0,jQuery.post(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"install_fluent_form"}).then(function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)}).fail(function(e){t.$message.error(e.responseJSON.message)}).always(function(){t.installing=!1})}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():n("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():n("p",{staticClass:"ninja_subtitle"},[t._v("\n Prepare your table from your existing WP Fluent Forms submissions. It can be used to easily showcase\n your form submissions.\n "),n("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-fluent-form-integration/"}},[t._v("Click\n here to learn more about WP Fluent From Integration")])]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),t.editing?t._e():n("div",{staticClass:"form-group"},[n("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"Select a Form"},on:{change:t.handleFormSelectionChange},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}},t._l(t.forms,function(t){return n("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})}))],1),t._v(" "),t.form.id?n("div",{staticClass:"form-group"},[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("strong",[t._v("Options (Optional)")]),t._v(" "),n("hr"),t._v(" "),n("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[n("el-col",{attrs:{md:12}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:5}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),n("el-col",{attrs:{md:19}},[n("el-input",{model:{value:t.form.entry_limit,callback:function(e){t.$set(t.form,"entry_limit",e)},expression:"form.entry_limit"}})],1)],1)],1),t._v(" "),n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[n("el-row",[n("el-col",{attrs:{md:4}},[n("strong",[n("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[n("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),n("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:20}},[n("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[n("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),n("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),n("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[n("br"),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.config.table.current_user_entry_only,callback:function(e){t.$set(t.config.table,"current_user_entry_only",e)},expression:"config.table.current_user_entry_only"}},[t._v("Show current user submissions only at frontend")])]:t._e()],2),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{staticStyle:{"margin-top":"12px",float:"right"},attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.save}},[t._v(t._s(t.editing?t.$t("Update"):t.$t("Save"))+"\n ")])],1)]:t.hasFluentForm?[n("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("To use this feature your WP Fluent Form need to be updated. Please update WP Fluent From from plugins\n screen")])]),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(0)]:n("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),n("div",[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?n("span",[t._v("Installing WP Fluent From...")]):n("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?n("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),n("h4",[t._v("See the form in action:")]),t._v(" "),n("br"),t._v(" "),t._m(2)])],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[this._v("WP Fluent Form")]),this._v(" is a WordPress\n Contact Form plugin packed with all the premium features you would need to create\n a responsive, customizable, drag and drop form. Using this module, You can easily show your form entries\n in Ninja Tables.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(36),i=n.n(a),o=n(107),s=n.n(o),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"Remote-Data-Source",components:{PremiumNotice:i.a,UpgradeNotice:s.a},props:{columns:{type:Array},type:{type:String,required:!0},tableCreated:{type:Function,required:!0},hasPro:{required:!0},table:{type:Object,default:function(){return{post_title:"",remote_url:"",fields:[],table_id:null}}},editing:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},data:function(){return{fields:[],active_step:0,saving:!1,fetching:!1}},methods:{nextStep:function(){var t="";if(this.table.post_title||(t+=" The title field is required."),this.table.remote_url||(t+=" The url field is required."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1?this.active_step=0:this.fatchRemoteData()},fatchRemoteData:function(){var t=this;this.fetching=!0,jQuery.getJSON(ajaxurl,l({action:"ninja_table_external_data_source_create"},this.table,{type:this.type,get_headers_only:!0})).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,jQuery.post(ajaxurl,l({},this.table,{type:this.type,action:"ninja_table_external_data_source_create"})).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(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.editing?[n("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:n("div",{staticClass:"ninja_modal-body"},[n("el-steps",{attrs:{active:t.active_step,"align-center":""}},[n("el-step",{attrs:{title:"Step 1"}}),t._v(" "),n("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[n("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[n("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.remote_url,expression:"table.remote_url"}],staticClass:"form-control",attrs:{id:"remote_url",type:"text",placeholder:"Enter your source URL",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.remote_url},on:{input:function(e){e.target.composing||t.$set(t.table,"remote_url",e.target.value)}}})])]:[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[n("el-table-column",{attrs:{type:"selection"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[n("UpgradeNotice")]:[n("premium-notice")],t._v(" "),n("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():n("el-row",[n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"left"},attrs:{type:"primary",size:"small"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),t.active_step>0?n("el-col",{attrs:{md:12}},[n("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"small",loading:t.saving,disabled:!t.activated_features.external_data_source},on:{click:t.save}},[t._v(t._s(t.$t("Save"))+"\n ")])],1):t._e()],1)],1),t._v(" "),t.editing?n("div",{staticStyle:{"margin-top":"15px"}},[n("el-input",{attrs:{placeholder:"Remote URL..."},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.fatchRemoteData(e):null}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[n("el-button",{attrs:{slot:"prepend",loading:t.fetching,size:"small",plain:""},on:{click:t.fatchRemoteData},slot:"prepend"},[t._v(t._s(t.$t("Fetch Columns"))+"\n ")]),t._v(" "),n("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:""},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"ninja_subtitle"},[this._v("\n Whenever your Google Sheets data changes it will be automatically reflected here. You won't have\n to do a thing. Please provide the publishable public URL of your google sheet.\n "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/construct-table-from-google-sheets/"}},[this._v("View\n Documentation Here")])])}]}},function(t,e,n){var a=n(0)(n(273),n(274),!1,function(t){n(271)},"data-v-aec52ad6",null);t.exports=a.exports},function(t,e,n){var a=n(272);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4ed069d6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".hint[data-v-aec52ad6]{width:100%;background-color:#f4f4f5;color:#909399;padding:8px 16px}.form_group.ninja_errors[data-v-aec52ad6]{background:#ffd7d7;padding:10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ImportTable",data:function(){return{imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - JavaScript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",errors:[],btnLoading:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,this.errors=[],"file"===this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$message({showClose:!0,message:e.message,type:"success"}),e.tableId&&t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.errors=e.responseJSON.data.errors,t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}),t.btnLoading=!1}})}else this.btnLoading=!1}else this.btnLoading=!0}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("Import Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-group"},["file"===t.imports.source?[n("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("br"),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],staticClass:"form-control",attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])})),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])]:t._e(),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:"json"===t.imports.format||"ninjaJson"===t.imports.format,expression:"imports.format === 'json' || imports.format === 'ninjaJson'"}],staticClass:"hint"},[t._v("\n Check tutorial for importing Table from JSON file\n\n "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),t.errors.length?n("div",{staticClass:"form_group ninja_errors"},[n("ul",t._l(t.errors,function(e,a){return n("li",{key:a},[t._v("\n "+t._s(e.info)+"\n ")])}))]):t._e()])]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"hint"},[this._v("\n Check tutorial for importing data from CSV file\n "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])}]}},function(t,e,n){var a=n(0)(n(278),n(283),!1,function(t){n(276)},null,null);t.exports=a.exports},function(t,e,n){var a=n(277);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("600976c0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-promo p{font-size:medium}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(110),i=n.n(a),o=n(36),s=n.n(o);e.default={name:"CustomSQLQuery",components:{MySqlEditor:i.a,PremiumNotice:s.a},props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object},activated_features:{type:Object}},data:function(){return{installing:!1,fetching:!1,btnLoading:!1,post_title:"",sql:"",error_html:"",isActivated:this.activated_features.raw_sql_query,hasPro:!!ninja_table_admin.hasPro}},methods:{save:function(){var t=this;this.btnLoading=!0,this.error_html="",jQuery.post(ajaxurl,{action:"ninja_tables_save_raw_sql_table",post_title:this.post_title,sql:this.sql,table_Id:this.config&&this.config.table.ID||null}).then(function(e){return t.tableCreated(e.data.table_id)}).fail(function(e){var n="",a=e.responseJSON.data.message;for(var 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(e){return t.btnLoading=!1})}},mounted:function(){}}},function(t,e,n){var a=n(280);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0fa77a67",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor[data-v-ad6aab96]{min-height:180px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ad6aab96]{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_modal-body"},[n("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),n("hr"),t._v(" "),t.hasPro?t.isActivated?[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.sql,callback:function(e){t.sql=e},expression:"sql"}}),t._v(" "),t._m(0)],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e()]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[n("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[n("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[n("premium-notice")]],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[this._v("$wpdb->get_results()")]),this._v(" function")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():n("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[n("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[n("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[n("i",{staticClass:"el-icon-setting"}),t._v(" "),n("span",[t._v("Default")])]),t._v(" "),n("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[n("i",{staticClass:"el-icon-upload2"}),t._v(" "),n("span",[t._v("Import Table")])]),t._v(" "),n("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[n("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),n("span",[t._v("Connect Fluent Form")])]),t._v(" "),n("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[n("i",{staticClass:"el-icon-news"}),t._v(" "),n("span",[t._v("WP Posts")])]),t._v(" "),n("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[n("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),n("span",[t._v("Connect Google Sheets")])]),t._v(" "),n("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[n("i",{staticClass:"el-icon-document"}),t._v(" "),n("span",[t._v("Connect External CSV")])]),t._v(" "),n("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[n("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),n("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),n("el-main",["default"==t.activeTabName?[n("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[n("h3",[t._v("Manually Create a Table")]),t._v(" "),n("p",{staticClass:"ninja_subtitle"},[t._v("\n Manually create your table columns and rows to get complete\n control over your data with tons of customizations.\n ")])],t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)],2),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?n("span",[t._v(t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"import_table"===t.activeTabName?[n("import-table")]:"google_spread_sheet"==t.activeTabName?[n("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[n("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[n("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[n("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"raw_sql"==t.activeTabName?[n("raw-sql-form",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(288),n(289),!1,function(t){n(286)},null,null);t.exports=a.exports},function(t,e,n){var a=n(287);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("35eb5f12",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{font-size:12px;color:gray;text-decoration:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_lead",data:function(){return{loading:!1,leadVisible:!!window.ninja_table_admin.show_lead_pop_up,display_name:window.ninja_table_admin.current_user_name,showPermission:!1}},methods:{optin:function(t){var e=this;this.loading=!0,jQuery.post(window.ajaxurl,{action:"ninja_table_lead_optin",status:t}).then(function(t){e.$message({showClose:!0,message:t.data.message,type:"success"})}).fail(function(t){}).always(function(){e.leadVisible=!1,e.loading=!1,"yes"===t&&(window.ninja_table_admin.show_lead_pop_up=!1)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.leadVisible?n("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[n("p",[t._v("Hey "+t._s(t.display_name)+","),n("br"),t._v("\n Never miss an important update - opt in to our security & feature updates notifications. We will never\n spam / share your data, We will only send emails about important updates")]),t._v(" "),n("el-button",{attrs:{type:"success"},on:{click:function(e){t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),n("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){t.optin("no")}}},[t._v("Skip")]),t._v(" "),n("div",{staticClass:"ninja_permissions"},[n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.showPermission,expression:"showPermission"}],staticClass:"permissions"},[t._v("\n Name, email, Site URL, Plugins info, ip Address and uninstall event\n ")])])],1)]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(293),n(294),!1,function(t){n(291)},null,null);t.exports=a.exports},function(t,e,n){var a=n(292);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("20d61100",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".review_dialog{background:#fff;padding:10px 15px 20px;font-size:16px;position:relative}.review_dialog span.consentDismiss{position:absolute;right:7px;top:2px;z-index:99999;cursor:pointer;color:gray}.review_dialog p{font-size:16px}.review_dialog a{text-decoration:none;cursor:pointer;margin-right:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"review_dialog",methods:{recordActivity:function(t){var e=this;jQuery.post(ajaxurl,{action:"ninja_table_review_consent",status:t}).then(function(){}).fail(function(){}).always(function(){e.$emit("hideNotification",!0)})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"review_dialog"},[n("span",{staticClass:"consentDismiss",on:{click:function(e){t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),n("div",{staticClass:"consent_body"},[n("p",[t._v("Thank You for using Ninja Tables Plugin. We are continuously working on it to improve this plugin. If You can spare a minute, Please help us by leaving a five star rating on wordpress.org")]),t._v(" "),n("a",{staticClass:"el-button el-button--success el-button--small",attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/ninja-tables/reviews/#new-post"},on:{click:function(e){t.recordActivity("yes")}}},[t._v("Happy To Help")]),t._v(" "),n("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){t.recordActivity("no")}}},[t._v("Hide Notification")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.published_tables?[n("div",{staticClass:"row clearfix"},[n("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),t.review_option?n("ninja-review-dialog",{on:{hideNotification:function(e){t.review_option=!1}}}):t._e(),t._v(" "),n("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.getData(e):null},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")]),t._v(" "),n("router-link",{attrs:{to:{name:"import_tables"}}},[n("el-button",{attrs:{size:"small",type:"success"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1)],1)],1),t._v(" "),n("hr"),t._v(" "),n("list-all-tables",{directives:[{name:"show",rawName:"v-show",value:t.published_tables,expression:"published_tables"}],attrs:{searchString:t.searchString,searchAction:t.searchAction},on:{total_table:function(e){t.published_tables=!0},selection:t.makeSelection}})]:n("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),n("el-dialog",{attrs:{title:t.$t("How would you like to create your table?"),visible:t.modalVisible,top:"50px",width:"75%","append-to-body":!0,"custom-class":"create-table-modal"},on:{"update:visible":function(e){t.modalVisible=e}}},[n("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),n("lead-modal")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(297),n(298),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:!!window.ninja_table_admin.hasPro,active_menu:this.$route.name,menuItems:[]}},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:"dashicons dashicons-shield",status:this.has_pro},{route:"global_settings",title:this.$t("Global Settings"),icon_class:"el-icon-menu",status:!0}])}},mounted:function(){this.setUpMenuItems()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,function(e){return e.status?n("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[n("i",{class:e.icon_class}),t._v(" "),n("span",[t._v(t._s(e.title))])]):t._e()}))],1),t._v(" "),n("el-main",[n("router-view")],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(302),n(303),!1,function(t){n(300)},"data-v-5348b674",null);t.exports=a.exports},function(t,e,n){var a=n(301);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5913cf51",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-item[data-v-5348b674]{margin:10px 0}.form-item label[data-v-5348b674]{width:100px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Tools",data:function(){return{has_pro:window.ninja_table_admin.hasPro,active_menu:"import",activeNames:["1","2"],imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - JavaScript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",UltimateTables:"Ultimate Tables",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1,UltimateTables:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("format",this.imports.format),n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","import-table"),n.append("do_unicode",this.do_unicode),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){alert(e.message),t.$router.push({name:"data_items",params:{table_id:e.tableId}})},error:function(e){t.btnLoading=!1,alert(e.responseJSON.message)}})}else this.btnLoading=!1}else this.btnLoading=!0},importFromOtherPlugin:function(t){var e=this;this.selectedPlugin=t,this.btnsLoading[t]=!0;var n={action:"ninja_tables_ajax_actions",target_action:"get-tables-from-plugin",plugin:t};jQuery.ajax({url:ajaxurl,data:n,type:"POST",success:function(n){n.tables?e.btnsLoading[t]=!1:e.$message.error("No Table Found"),e.showPluginModal=!0,e.otherPluginTables=n.tables},error:function(n){e.btnsLoading[t]=!1,n.responseJSON?e.$message.error(n.responseJSON.message):e.$message.error("No Table Found")}})},closePluginModal:function(){this.otherPluginTables=[],this.btnsLoading[this.selectedPlugin]=!1,this.showPluginModal=!1,this.selectedPlugin=null},importThisTable:function(t,e){var n=this;this.importing=!0;var a={action:"ninja_tables_ajax_actions",target_action:"import-table-from-plugin",plugin:this.selectedPlugin,tableId:t.ID};jQuery.ajax({url:ajaxurl,data:a,type:"POST",success:function(t){n.$message.success(t.data.message),n.importing=!1,n.$set(n.otherPluginTables[e],"ninja_table_id",t.data.tableId)},error:function(t){n.$message.error(t.responseJSON.data.message),n.importing=!1}})}},mounted:function(){var t=this;this.$route.query.active_menu&&(this.active_menu=this.$route.query.active_menu),jQuery(".ninja_table_tools_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_import_menu").on("click",function(){t.active_menu="import"}),jQuery(".ninja_table_license_menu").on("click",function(){t.active_menu="license"})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("p",[t._v("\n "+t._s(t.$t("NinjaTables can import tables from existing data, like from a CSV or JSON file. You can also import existing tables from the other WordPress table plugins."))+"\n ")])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),n("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"form-item"},["file"==t.imports.source?[n("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[n("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),n("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),n("div",{staticClass:"form-item"},[n("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],attrs:{id:"import_format"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.imports,"format",e.target.multiple?n:n[0])}}},t._l(t.imports.formatOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v(t._s(t.$t(e))+"\n ")])})),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),n("div",{staticClass:"form-item"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1)]:t._e(),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"json"==t.imports.format||"ninjaJson"==t.imports.format,expression:"imports.format == 'json' || imports.format == 'ninjaJson'"}],staticClass:"help"},[t._v("\n Check tutorial for importing Table from JSON file "),n("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),n("div",{staticClass:"form-item"},[n("el-button",{attrs:{type:"primary",size:"small",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"ninja_block_section"},[n("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),n("table",{staticStyle:{"min-width":"400px"}},[n("tbody",t._l(t.otherPlugins,function(e,a){return n("tr",[n("td",[t._v(t._s(e))]),t._v(" "),n("td",[n("button",{staticClass:"btn btn-default btn-sm",on:{click:function(e){t.importFromOtherPlugin(a)}}},[t.btnsLoading[a]?[t._v("\n "+t._s(t.$t("Processing..."))+"\n "),n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])}))])])]),t._v(" "),n("el-dialog",{attrs:{title:"Your current tables",visible:t.showPluginModal},on:{"update:visible":function(e){t.showPluginModal=e},close:function(e){t.closePluginModal()}}},[t.otherPluginTables.length?[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[n("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_already_imported?n("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(e.row.post_title)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){t.importThisTable(e.row,e.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),e.row.ninja_table_id?n("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:e.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}])})],1),t._v(" "),t.importing?[n("br"),n("br"),t._v(" "),n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n "+t._s(t.$t("Importing the table, please wait a bit ..."))+"\n ")])]:t._e()]:n("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n You don't have any tables in your "+t._s(t.selectedPlugin)+" plugin.\n ")])],2)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n Select the intended format and click "),e("strong",[this._v("Import")]),this._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"help"},[this._v("\n Check tutorial for importing data from CSV file "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[this._v("here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n To import from other WordPress plugins click the respective "),e("strong",[this._v("Import")]),this._v("\n button.\n ")])}]}},function(t,e,n){var a=n(0)(n(307),n(308),!1,function(t){n(305)},null,null);t.exports=a.exports},function(t,e,n){var a=n(306);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("0b57856e",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"Privacy",data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then(function(e){t.capability=e.capability,t.roles=e.roles,t.handleCheckedCapabilitiesChange(t.capability)}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(t){})},handleCheckAllChange:function(t){this.capability=t?this.roles.map(function(t){return t.key}):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Permission "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),n("hr"),t._v(" "),t.hasPro?[n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("\n "+t._s(t.$t("Check all"))+"\n ")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}))],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.store}},[t._v("Save")])],1)]:[t._v("\n "+t._s(t.$t("Activate Ninja Tables Pro Add-on plugin to unlock this feature"))+"\n "),n("p",[n("a",{attrs:{target:"_blank",href:t.upgrade}},[t._v("Buy Ninja Tables Pro Add-On")])])]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("By default, Only Administrator have access to manage the tables. By selecting additional roles bellow, You can give access to manage your Tables to other user roles.")])])}]}},function(t,e,n){var a=n(0)(n(310),n(366),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(68),i=n(111),o=n.n(i),s=n(74),l=n.n(s);e.default={name:"Privacy",data:function(){return{fetching:!1,saving:!1,tableLibs:{},default_settings:{}}},computed:{tableColors:function(){return Object(a.a)().footable.colors},table_styles:function(){return Object(a.a)().footable.css_libs},availableStyles:function(){var t=this.table_styles[this.default_settings.css_lib];return!!t&&t.styles}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_default_settings"}).then(function(e){t.default_settings=e.data.default_settings}).fail(function(t){}).always(function(){t.fetching=!1})},store:function(){var t=this;this.saving=!0;var e=[];l()(this.availableStyles,function(t){e.push(t.key)}),this.default_settings.css_classes=o()(e,this.default_settings.css_classes),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_default_settings",default_settings:this.default_settings}).then(function(e){t.$message.success({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.get()}}},function(t,e,n){var a=n(112),i=n(335),o=n(339),s=n(21),l=n(117),r=n(118),c=Math.min;t.exports=function(t,e,n){for(var u=n?o:i,d=t[0].length,_=t.length,p=_,f=Array(_),m=1/0,v=[];p--;){var h=t[p];p&&e&&(h=s(h,l(e))),m=c(h.length,m),f[p]=!n&&(e||d>=120&&h.length>=120)?new a(p&&h):void 0}h=t[0];var b=-1,g=f[0];t:for(;++b<d&&v.length<m;){var y=h[b],x=e?e(y):y;if(y=n||0!==y?y:0,!(g?r(g,x):u(v,x,n))){for(p=_;--p;){var w=f[p];if(!(w?r(w,x):u(t[p],x,n)))continue t}g&&g.push(x),v.push(y)}}return v}},function(t,e,n){var a=n(313),i=n(40),o=n(72);t.exports=function(){this.size=0,this.__data__={hash:new a,map:new(o||i),string:new a}}},function(t,e,n){var a=n(314),i=n(319),o=n(320),s=n(321),l=n(322);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=s,r.prototype.set=l,t.exports=r},function(t,e,n){var a=n(37);t.exports=function(){this.__data__=a?a(null):{},this.size=0}},function(t,e,n){var a=n(113),i=n(316),o=n(39),s=n(114),l=/^\[object .+?Constructor\]$/,r=Function.prototype,c=Object.prototype,u=r.toString,d=c.hasOwnProperty,_=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(a(t)?_:l).test(s(t))}},function(t,e,n){var a,i=n(317),o=(a=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var a=n(5)["__core-js_shared__"];t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var a=n(37),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}},function(t,e,n){var a=n(37),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return a?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var a=n(37),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}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var a=n(41),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))}},function(t,e,n){var a=n(41);t.exports=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var a=n(41);t.exports=function(t){return a(this.__data__,t)>-1}},function(t,e,n){var a=n(41);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}},function(t,e,n){var a=n(42);t.exports=function(t){var e=a(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var a=n(42);t.exports=function(t){return a(this,t).get(t)}},function(t,e,n){var a=n(42);t.exports=function(t){return a(this,t).has(t)}},function(t,e,n){var a=n(42);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}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(336);t.exports=function(t,e){return!(null==t||!t.length)&&a(t,e,0)>-1}},function(t,e,n){var a=n(116),i=n(337),o=n(338);t.exports=function(t,e,n){return e==e?o(t,e,n):a(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var a=n-1,i=t.length;++a<i;)if(t[a]===e)return a;return-1}},function(t,e){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}},function(t,e,n){var a=n(43),i=n(341),o=n(343);t.exports=function(t,e){return o(i(t,e,a),t+"")}},function(t,e,n){var a=n(342),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,s=-1,l=i(o.length-e,0),r=Array(l);++s<l;)r[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(r),a(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var a=n(344),i=n(347)(a);t.exports=i},function(t,e,n){var a=n(345),i=n(346),o=n(43),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:a(e),writable:!0})}:o;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var a=n(14),i=function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e){var n=800,a=16,i=Date.now;t.exports=function(t){var e=0,o=0;return function(){var s=i(),l=a-(s-o);if(o=s,l>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var a=n(349);t.exports=function(t){return a(t)?t:[]}},function(t,e,n){var a=n(44),i=n(6);t.exports=function(t){return i(t)&&a(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a&&!1!==e(t[n],n,t););return t}},function(t,e,n){var a=n(352),i=n(364)(a);t.exports=i},function(t,e,n){var a=n(353),i=n(45);t.exports=function(t,e){return t&&a(t,e,i)}},function(t,e,n){var a=n(354)();t.exports=a},function(t,e){t.exports=function(t){return function(e,n,a){for(var i=-1,o=Object(e),s=a(e),l=s.length;l--;){var r=s[t?l:++i];if(!1===n(o[r],r,o))break}return e}}},function(t,e,n){var a=n(356),i=n(119),o=n(4),s=n(120),l=n(122),r=n(123),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&i(t),d=!n&&!u&&s(t),_=!n&&!u&&!d&&r(t),p=n||u||d||_,f=p?a(t.length,String):[],m=f.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||_&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||f.push(v);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,a=Array(t);++n<t;)a[n]=e(n);return a}},function(t,e,n){var a=n(10),i=n(6),o="[object Arguments]";t.exports=function(t){return i(t)&&a(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var a=n(10),i=n(73),o=n(6),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[a(t)]}},function(t,e,n){(function(t){var a=n(38),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&a.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=l}).call(e,n(121)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var a=n(363)(Object.keys,Object);t.exports=a},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var a=n(44);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,s=e?o:-1,l=Object(n);(e?s--:++s<o)&&!1!==i(l[s],s,l););return n}}},function(t,e,n){var a=n(43);t.exports=function(t){return"function"==typeof t?t:a}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),n("hr"),t._v(" "),[n("div",{staticClass:"ninja_block"},[n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],1),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,e.key)>-1:t.default_settings.css_classes},on:{change:function(n){var a=t.default_settings.css_classes,i=n.target,o=!!i.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);i.checked?l<0&&t.$set(t.default_settings,"css_classes",a.concat([s])):l>-1&&t.$set(t.default_settings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.default_settings,"css_classes",o)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_title,expression:"default_settings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.default_settings.show_title)?t._i(t.default_settings.show_title,"1")>-1:t.default_settings.show_title},on:{change:function(e){var n=t.default_settings.show_title,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_description,expression:"default_settings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.default_settings.show_description)?t._i(t.default_settings.show_description,"1")>-1:t.default_settings.show_description},on:{change:function(e){var n=t.default_settings.show_description,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.enable_search,expression:"default_settings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.default_settings.enable_search)?t._i(t.default_settings.enable_search,"1")>-1:t.default_settings.enable_search},on:{change:function(e){var n=t.default_settings.enable_search,a=e.target,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(" "),n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.column_sorting,expression:"default_settings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.default_settings.column_sorting)?t._i(t.default_settings.column_sorting,"1")>-1:t.default_settings.column_sorting},on:{change:function(e){var n=t.default_settings.column_sorting,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.hide_all_borders,expression:"default_settings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.default_settings.hide_all_borders)?t._i(t.default_settings.hide_all_borders,null)>-1:t.default_settings.hide_all_borders},on:{change:function(e){var n=t.default_settings.hide_all_borders,a=e.target,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(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("h3",[t._v("Default Table Color")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_color,expression:"default_settings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.default_settings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.tableColors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])}))]),t._v(" "),n("div",{staticClass:"form_group"},[n("h3",[t._v("Default Pagination Setting")]),t._v(" "),n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.default_settings.show_all,callback:function(e){t.$set(t.default_settings,"show_all",e)},expression:"default_settings.show_all"}})],1)]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.perPage,expression:"default_settings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.default_settings.show_all||"1"==t.default_settings.show_all},domProps:{value:t.default_settings.perPage},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"perPage",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[n("el-button",{attrs:{loading:t.saving,type:"success",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Appearance Settings")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_block"},[e("p",[this._v("\n The following settings will be applied to the newly created tables. Of course, You can customize the\n appearance settings to each table level.\n ")])])}]}},function(t,e,n){var a=n(0)(n(370),n(371),!1,function(t){n(368)},null,null);t.exports=a.exports},function(t,e,n){var a=n(369);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4435994d",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".license_form{text-align:center;padding:20px 0}.license_form label{font-size:30px;font-weight:400;display:block;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{min-width:400px;height:48px;width:50%;margin-bottom:20px;border-radius:5px;border:1px solid gray;background:#fbfdff;font-size:20px;padding:0 10px}.license_form .error_message{margin-top:40px;padding:10px;background:#ffe491;color:#000;font-weight:700;border-radius:5px}.license_success{text-align:center;padding:40px 0}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"license",data:function(){return{licenseKey:"",error_message:"",enter_new_license:!1,checkingLicense:!1,doing_ajax:!1,renewLicenseHtml:"",renewHtml:"",is_valid:window.ninja_table_admin.hasValidLicense}},methods:{activateLicense:function(){var t=this;this.licenseKey?(this.doing_ajax=!0,this.error_message="",jQuery.post(ajaxurl,{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="",jQuery.post(ajaxurl,{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="",jQuery.get(ajaxurl,{action:"_ninjatables_pro_license_get_license_info"}).then(function(e){t.renewLicenseHtml=e.data.renewHtml,t.is_valid=e.data.status,t.renewHtml=e.data.renewHtml}).fail(function(e){t.error_message=e.responseJSON.data.message}).always(function(){t.checkingLicense=!1})}},mounted:function(){this.get_license_info()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"license"},[n("div",{staticClass:"ninja_header"},["valid"==t.is_valid?n("div",[n("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[n("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):n("div",[n("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?n("div",{staticClass:"license_success"},[n("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"default",size:"mini"},on:{click:function(e){t.deactivateLicense()}}},[t._v(t._s(t.$t("Deactivate License")))]),t._v(" "),t.renewHtml?n("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[n("div",{staticClass:"checking_license",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),n("p",[t._v("If you already renewed your license then please "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),n("p",[t._v("Have a new license key? Please "),n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):n("div",{staticClass:"license_form"},[n("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),n("div",{staticClass:"form_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),n("div",{staticClass:"nt_messages"},[t.error_message?n("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("\n You need to activate your Ninja Table Pro by providing the license key bellow. If you don't have a\n license key please "),e("a",{attrs:{href:"https://wpmanageninja.com/checkout/purchase-history/",target:"_blank"}},[this._v("Click\n Here")]),this._v(" to get a license key from your purchase. "),e("br"),this._v("Any questions or problems with your license? "),e("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[this._v("Contact us!")])])}]}},function(t,e,n){var a=n(0)(n(373),n(374),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"GlobalSettings",data:function(){return{loading:!1,ninja_suppress_error:"log_silently"}},methods:{getSettings:function(){var t=this;this.loading=!0,jQuery.get(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"get_global_settings"}).then(function(e){t.ninja_suppress_error=e.data.ninja_suppress_error}).fail(function(t){}).always(function(){t.loading=!1})},storeSettings:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"update_global_settings",suppress_error:this.ninja_suppress_error};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})},clearCache:function(){var t=this;jQuery.post(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"clear_tables_cache"}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"privacy"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[n("div",{staticClass:"ninja_block"},[n("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),n("el-radio-group",{staticClass:"spaced_new_line",model:{value:t.ninja_suppress_error,callback:function(e){t.ninja_suppress_error=e},expression:"ninja_suppress_error"}},[n("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),n("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),n("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),n("div",{staticClass:"ninja_block ninja_heightlight_block"},[n("h3",[t._v("Clear Table Cache")]),t._v(" "),n("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){t.clearCache()}}},[t._v("Clear Table Cache")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("Global Settings")])])}]}},function(t,e,n){var a=n(0)(n(378),n(393),!1,function(t){n(376)},null,null);t.exports=a.exports},function(t,e,n){var a=n(377);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1d1d30f8",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".settings_header{font-size:20px;padding-bottom:20px;background:#fff;margin-top:-20px;padding-top:20px;margin-right:-20px;margin-left:-20px;padding-left:24px}.settings_header .action{font-size:16px;cursor:pointer}.settings_header .action:hover{color:#0085ba}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(104),i=n.n(a),o=n(379),s=n.n(o),l=n(22),r=n.n(l),c=n(75),u=n.n(c),d=n(391),_=n.n(d),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default={name:"table_home",components:{edit_table:s.a},data:function(){return{table_tabs:[],is_data_saving:!1,is_form_saving:!1,tableId:this.$route.params.table_id,config:null,table:{},doingAjax:!1,doingAjaxTest:!1,user_tab:this.$route.query.user_tab,editTableModalShow:!1,preview_url:"#",has_pro:window.ninja_table_admin.hasPro}},methods:{updateTableColumns:function(t){var e=this;this.doingAjax=!0;var n={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.config.columns};jQuery.post(ajaxurl,n).success(function(n){e.$message({showClose:!0,message:n.message,type:"success"}),t(n)}).fail(function(t){}).always(function(){e.doingAjax=!1})},getSettings:function(){var t=this;this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-table-settings",table_id:this.tableId};jQuery.getJSON(ajaxurl,e).then(function(e){"[object Object]"==Object.prototype.toString.call(e.columns)&&(e.columns=_()(e.columns)),t.config=e,t.table=e.table,t.preview_url=e.preview_url}).fail(function(e){t.$message.error(e.responseJSON.data.message),e.responseJSON.data.route&&t.$router.push({name:e.responseJSON.data.route})}).always(function(){return t.doingAjax=!1})},goToTab:function(t){this.user_tab=t,this.$router.push({name:"custom_tab",params:{table_id:this.tableId},query:{user_tab:t}})},size:u.a,each:r.a,initTableTabs:function(){this.table_tabs=this.applyFilters("ninja_table_table_tabs",[{route:"data_items",title:"Table Rows"},{route:"data_columns",title:"Table Configuration"},{route:"design_studio",title:"Table Design"},{route:"table_editing",title:"Frontend Editing"},{route:"additional_css",title:"Custom CSS/JS"},{route:"import-export",title:"Import - Export"}])}},mounted:function(){var t=this;this.initTableTabs(),this.getSettings(),new i.a(".copy").on("success",function(e){t.$message({message:"Copied to Clipboard!",type:"success"})}),window.ninjaTableBus.$on("initManualSorting",function(t,e,n){var a=p({action:"ninja_tables_init_sortable"},t);jQuery.post(ajaxurl,a).success(function(t){return e(t)}).fail(function(t){return n(t)})}),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}),window.ninjaTableBus.$on("updateTableColumns",function(e){t.updateTableColumns(e)}),window.ninjaTableBus.$emit("addedTable")}}},function(t,e,n){var a=n(0)(n(380),n(381),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(35),i=n.n(a);e.default={name:"add_table",components:{wp_editor:i.a},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:"",table_caption:""}}}},data:function(){return{btnLoading:!1}},methods:{handleTabClick:function(t,e){setTimeout(function(){jQuery(t.$el).find("input:first").focus()},0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,table_caption:this.table.table_caption,tableId:this.table.ID};jQuery.post(ajaxurl,e).then(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.closeModal()}).fail(function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})}).always(function(){t.btnLoading=!1})},closeModal:function(){this.$emit("modal_close")}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_table_edit"},[n("div",{staticClass:"ninja_modal-body"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),n("el-input",{attrs:{type:"text",size:"small",placeholder:"Enter a title to identify your table"},model:{value:t.table.post_title,callback:function(e){t.$set(t.table,"post_title",e)},expression:"table.post_title"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),n("el-input",{attrs:{size:"small",type:"text",placeholder:"Enter a table caption if you want to show"},model:{value:t.table.table_caption,callback:function(e){t.$set(t.table,"table_caption",e)},expression:"table.table_caption"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),n("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)]),t._v(" "),n("div",{staticClass:"modal-footer"},[n("el-button",{attrs:{loading:t.btnLoading,type:"primary",size:"small"},on:{click:t.addTable}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(14)(n(5),"DataView");t.exports=a},function(t,e,n){var a=n(14)(n(5),"Promise");t.exports=a},function(t,e,n){var a=n(14)(n(5),"Set");t.exports=a},function(t,e,n){var a=n(14)(n(5),"WeakMap");t.exports=a},function(t,e,n){var a=n(10),i=n(4),o=n(6),s="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&a(t)==s}},function(t,e,n){var a=n(388),i=n(389),o=n(390);t.exports=function(t){return i(t)?o(t):a(t)}},function(t,e,n){var a=n(126)("length");t.exports=a},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+a+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+r+("(?:\\u200d(?:"+[o,s,l].join("|")+")[\\ufe0e\\ufe0f]?"+r+")*"),u="(?:"+[o+a+"?",a,s,l,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+c,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},function(t,e,n){var a=n(392),i=n(45);t.exports=function(t){return null==t?[]:a(t,i(t))}},function(t,e,n){var a=n(21);t.exports=function(t,e){return a(e,function(e){return t[e]})}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.doingAjax?n("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),n("div",{staticClass:"settings_header"},[n("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[n("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[n("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),n("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),n("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[n("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+t.tableId+'"]'}},[n("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),n("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[n("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),n("a",{attrs:{href:t.preview_url,target:"_blank"}},[n("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Buy Pro")))])],1)],1)]),t._v(" "),n("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[n("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,function(e){return n("router-link",{key:e.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:e.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(e.title)+"\n ")])})),t._v(" "),t.config?n("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{title:"Update Table Info",visible:t.editTableModalShow,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editTableModalShow=e}}},[t.editTableModalShow?n("edit_table",{attrs:{table:t.table},on:{modal_close:function(e){t.editTableModalShow=!t.editTableModalShow}}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(397),n(503),!1,function(t){n(395)},null,null);t.exports=a.exports},function(t,e,n){var a=n(396);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("eb4f6a92",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-table{margin-top:10px;margin-bottom:10px}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{padding-left:5px;cursor:pointer;opacity:0;display:inline-block}.nt-column-config:hover{color:#58b7ff}.instruction_block{padding:30px 20px;background:#fff}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(127),i=n.n(a),o=n(128),s=n.n(o),l=n(22),r=(n.n(l),n(136)),c=n.n(r),u=n(80),d=n(440),_=n.n(d),p=n(105),f=n.n(p),m=n(137),v=n.n(m),h=n(457),b=n.n(h),g=n(138),y=n.n(g),x=n(82),w=n.n(x),C=n(483),k=n.n(C),S=n(488),j=n.n(S),T=n(493),P=n.n(T),E=n(498),A=n.n(E);e.default={name:"TableDataItems",components:{add_data_modal:_.a,ninja_pagination:f.a,Alert:v.a,DeletePopOver:b.a,SortableUpgradeNotice:y.a,columnsEditor:w.a,FluentFormNav:k.a,ExternalSourceNav:j.a,WPPostsNav:A.a,RawSqlNav:P.a},props:["config","getColumnSettings","hasPro"],data:function(){return{columnModal:!1,show_meta:!1,new_column:{},has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,isCompact:!0,tableWidth:"100%",tableData:[],searchString:"",doingAjax:!1,addDataModal:!1,tableId:this.$route.params.table_id,loading:!1,syncing:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:20},multipleSelection:[],updateItem:null,editIndex:null,sorting:!1,sortableInstance:null,sortableUpgradeNotice:!1,insertAfterPosition:null,showColumnEditor:!1,currentEditingColumn:!1,addDataModalTitle:"Add Row",dataModalType:"add",dataSource:"default",isUpdatingTableSettings:!1,externalDataSourceUrl:this.config.table.remoteURL,insertAfterId:!1,insertAfterHash:!1}},watch:{searchString:function(){""==this.searchString&&this.getData()},sorting:function(t){if(t){if(!this.has_pro)return this.sorting=!1,void window.ninjaTableBus.$emit("show_pro_popup");if(!this.hasSortable)return this.sorting=!1,void(this.sortableUpgradeNotice=!0)}this.toggleSorting(t)},"new_column.name":function(){this.new_column.key=c()(this.new_column.name)}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},columnLength:function(){return this.columns.length},dataSourceType:function(){var t=this.config;return t&&"dataSourceType"in t.table?t.table.dataSourceType:"default"},isEditable:function(){var t=this.config;return!(t&&"isEditable"in t.table)||t.table.isEditable},isEditableMessage:function(){var t=this.config;return t&&"isEditableMessage"in t.table?t.table.isEditableMessage:null}},methods:{getData:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"get-table-data",table_id:this.tableId,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};return this.loading=!0,jQuery.get(ajaxurl,e).success(function(e){t.items=e.data,t.dataSource=e.data_source,t.paginate.total=parseInt(e.total),t.paginate.last_page=parseInt(e.last_page)}).fail(function(t){}).always(function(){t.loading=!1})},addTableData:function(){},getItemNumber:function(t){return this.paginate.per_page*(this.paginate.current_page-1)+(t+1)},goToPage:function(t){this.paginate.current_page=t,this.getData()},handleSizeChange:function(t){this.paginate.per_page=t,this.getData()},confirmDeleteTable:function(t){confirm(this.$t("Are you sure, You want to delete this table"))&&this.deleteTable(t)},deleteTable:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};jQuery.post(ajaxurl,n).then(function(t){e.fetchTables(),alert(t.message)}).fail(function(t){alert(t.responseJSON.data.message)})},handleSelectionChange:function(t){this.multipleSelection=t},handleBulkAction:function(){this.multipleSelection.length&&"delete"==this.bulkAction&&this.handleBulkDelete()},handleBulkDelete:function(){var t=this;this.$confirm(this.$t("This will permanently delete the selected rows. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(function(){var e=t.multipleSelection.map(function(t){return t.id});t.deleteItem(e)}).catch(function(){t.$message({type:"info",message:t.$t("Delete canceled")})})},deleteItem:function(t){var e=this,n={action:"ninja_tables_ajax_actions",target_action:"delete-data",table_id:this.tableId,id:t},a=this;jQuery.post(ajaxurl,n).then(function(t){e.$message({showClose:!0,message:t.message,type:"success"}),a.getData()}).fail(function(t){e.$message({showClose:!0,message:e.$t("Something is wrong! Please try again"),type:"error"})})},closeDataModal:function(t){this.addDataModal=!1,this.editIndex=null,this.insertAfterPosition=null,this.dataModalType="add",this.insertAfterId=!1,this.insertAfterHash=!1,t&&this.getData()},updateItemOnTable:function(t){this.items[this.editIndex].values=t.values,this.items[this.editIndex].settings=t.settings,t.created_at&&(this.items[this.editIndex].created_at=t.created_at)},addItemOnTable:function(t,e){e||(e=t.position),"last-first"==e&&(e="new_first"==this.config.settings.default_sorting?"first":"last"),e?"last"==e?this.items.push(t):"first"==e?this.items.unshift(t):!1!==this.insertAfterHash?(this.insertAfterHash++,this.items.splice(this.insertAfterHash,-1,t)):this.items.push(t):this.items.unshift(t),this.insertAfterPosition&&(this.insertAfterPosition=t.position),this.insertAfterId&&(this.insertAfterId=t.id),this.paginate.total++},showUpdateModal:function(t){this.updateItem=t.row,this.editIndex=t.$index,this.addDataModal=!0,this.dataModalType="update",this.addDataModalTitle="Update Row"},addColumn:function(){this.columnModal=!0},validateColumn:function(t){return t.name?t.key?-1===s()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.config.columns.push(this.new_column),this.setNewColumn(),this.columnModal=!1,this.storeSettings())},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",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=i.a.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={action:"ninja_tables_sort_table",table_id:this.tableId,id:t,newPosition:e,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};jQuery.post(ajaxurl,a).then(function(t){n.items=t.data,n.paginate.total=parseInt(t.total),n.paginate.last_page=parseInt(t.last_page)}).fail(function(t){console.log(t)}).always(function(){n.loading=!1})},add:function(){this.updateItem=null,this.insertAfterPosition=null,this.addDataModal=!0,this.dataModalType="add",this.addDataModalTitle="Add Data"},addAfter:function(t){this.hasSortable?(this.updateItem=null,this.addDataModalTitle="Add Data",this.dataModalType="add-after",this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0):this.sortableUpgradeNotice=!0},addConfigIcon:function(t,e){var n=e.column,a=(e.$index,this),i=JSON.parse(n.label),o=t("i",{props:{size:"mini",class:"el-icon-setting",plain:!0,round:!0},class:"el-icon-setting nt-column-config",on:{click:function(t){a.showColumnConfigModal(i)}}});return t("span",null,[i.name||i.key,o])},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=Object.assign({},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=s()(this.config.columns,this.currentEditingColumn);this.showColumnEditor=!1,this.currentEditingColumn=!1,this.config.columns.splice(e,1),this.$nextTick(function(){return t.storeSettings()})},renderTableCell:function(t,e,n){return Array.isArray(t)&&(t=t.join(", ")),e.transformed_value&&e.transformed_value.trim()?this.getShortcodes(t,e,n):t},getShortcodes:function(t,e,n){var a=e.transformed_value;-1!=a.indexOf("{{")&&(a=Object(u.a)(a,{row:n}));var i=a.match(/{row.([^\}]*)}/g);return i?($.each(i,function(t,e){var i=e.substring(5,e.length-1),o="",s=i.indexOf("|");-1!==s&&(o=i.substring(s+1,i.length),i=i.substring(0,s)),a=n[i]?a.replace(e,n[i]):a.replace(e,o)}),a):a}},mounted:function(){this.getData(),this.tableWidth=jQuery(".wrap").width()+"px",this.setNewColumn()}}},function(t,e,n){var a=n(399),i=n(420),o=n(43),s=n(4),l=n(427);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):a(t):l(t)}},function(t,e,n){var a=n(400),i=n(419),o=n(133);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)}}},function(t,e,n){var a=n(129),i=n(130),o=1,s=2;t.exports=function(t,e,n,l){var r=n.length,c=r,u=!l;if(null==t)return!c;for(t=Object(t);r--;){var d=n[r];if(u&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++r<c;){var _=(d=n[r])[0],p=t[_],f=d[1];if(u&&d[2]){if(void 0===p&&!(_ in t))return!1}else{var m=new a;if(l)var v=l(p,f,_,t,e,m);if(!(void 0===v?i(f,p,o|s,l,m):v))return!1}}return!0}},function(t,e,n){var a=n(40);t.exports=function(){this.__data__=new a,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var a=n(40),i=n(72),o=n(69),s=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof a){var l=n.__data__;if(!i||l.length<s-1)return l.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(l)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var a=n(129),i=n(131),o=n(408),s=n(412),l=n(125),r=n(4),c=n(120),u=n(123),d=1,_="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,h,b){var g=r(t),y=r(e),x=g?p:l(t),w=y?p:l(e),C=(x=x==_?f:x)==f,k=(w=w==_?f:w)==f,S=x==w;if(S&&c(t)){if(!c(e))return!1;g=!0,C=!1}if(S&&!C)return b||(b=new a),g||u(t)?i(t,e,n,v,h,b):o(t,e,x,n,v,h,b);if(!(n&d)){var j=C&&m.call(t,"__wrapped__"),$=k&&m.call(e,"__wrapped__");if(j||$){var T=j?t.value():t,P=$?e.value():e;return b||(b=new a),h(T,P,n,v,b)}}return!!S&&(b||(b=new a),s(t,e,n,v,h,b))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var a=n(11),i=n(409),o=n(115),s=n(131),l=n(410),r=n(411),c=1,u=2,d="[object Boolean]",_="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",v="[object RegExp]",h="[object Set]",b="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=a?a.prototype:void 0,C=w?w.valueOf:void 0;t.exports=function(t,e,n,a,w,k,S){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case y:return!(t.byteLength!=e.byteLength||!k(new i(t),new i(e)));case d:case _:case m:return o(+t,+e);case p:return t.name==e.name&&t.message==e.message;case v:case b:return t==e+"";case f:var j=l;case h:var $=a&c;if(j||(j=r),t.size!=e.size&&!$)return!1;var T=S.get(t);if(T)return T==e;a|=u,S.set(t,e);var P=s(j(t),j(e),a,w,k,S);return S.delete(t),P;case g:if(C)return C.call(t)==C.call(e)}return!1}},function(t,e,n){var a=n(5).Uint8Array;t.exports=a},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,a){n[++e]=[a,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var a=n(413),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,l,r){var c=n&i,u=a(t),d=u.length;if(d!=a(e).length&&!c)return!1;for(var _=d;_--;){var p=u[_];if(!(c?p in e:o.call(e,p)))return!1}var f=r.get(t);if(f&&r.get(e))return f==e;var m=!0;r.set(t,e),r.set(e,t);for(var v=c;++_<d;){var h=t[p=u[_]],b=e[p];if(s)var g=c?s(b,h,p,e,t,r):s(h,b,p,t,e,r);if(!(void 0===g?h===b||l(h,b,n,s,r):g)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var y=t.constructor,x=e.constructor;y!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x)&&(m=!1)}return r.delete(t),r.delete(e),m}},function(t,e,n){var a=n(414),i=n(416),o=n(45);t.exports=function(t){return a(t,o,i)}},function(t,e,n){var a=n(415),i=n(4);t.exports=function(t,e,n){var o=e(t);return i(t)?o:a(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,a=e.length,i=t.length;++n<a;)t[i+n]=e[n];return t}},function(t,e,n){var a=n(417),i=n(418),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),a(s(t),function(e){return o.call(t,e)}))}:i;t.exports=l},function(t,e){t.exports=function(t,e){for(var n=-1,a=null==t?0:t.length,i=0,o=[];++n<a;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var a=n(132),i=n(45);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,a(s)]}return e}},function(t,e,n){var a=n(130),i=n(76),o=n(424),s=n(77),l=n(132),r=n(133),c=n(46),u=1,d=2;t.exports=function(t,e){return s(t)&&l(e)?r(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):a(e,s,u|d)}}},function(t,e,n){var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(422)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,function(t,n,a,o){e.push(a?o.replace(i,"$1"):n||t)}),e});t.exports=o},function(t,e,n){var a=n(423),i=500;t.exports=function(t){var e=a(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var a=n(69),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 s=t.apply(this,a);return n.cache=o.set(i,s)||o,s};return n.cache=new(o.Cache||a),n}o.Cache=a,t.exports=o},function(t,e,n){var a=n(425),i=n(426);t.exports=function(t,e){return null!=t&&i(t,e,a)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var a=n(135),i=n(119),o=n(4),s=n(122),l=n(73),r=n(46);t.exports=function(t,e,n){for(var c=-1,u=(e=a(e,t)).length,d=!1;++c<u;){var _=r(e[c]);if(!(d=null!=t&&n(t,_)))break;t=t[_]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&l(u)&&s(_,u)&&(o(t)||i(t))}},function(t,e,n){var a=n(126),i=n(428),o=n(77),s=n(46);t.exports=function(t){return o(t)?a(s(t)):i(t)}},function(t,e,n){var a=n(134);t.exports=function(t){return function(e){return a(e,t)}}},function(t,e,n){var a=n(430);t.exports=function(t){var e=a(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var a=n(431),i=1/0,o=1.7976931348623157e308;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}},function(t,e,n){var a=n(39),i=n(23),o=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=r.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):l.test(t)?o:+t}},function(t,e,n){var a=n(433),i=n(434),o=n(436),s=RegExp("['’]","g");t.exports=function(t){return function(e){return a(o(i(e).replace(s,"")),t,"")}}},function(t,e){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}},function(t,e,n){var a=n(435),i=n(26),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,a).replace(s,"")}},function(t,e,n){var a=n(79)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=a},function(t,e,n){var a=n(437),i=n(438),o=n(26),s=n(439);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?s(t):a(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",l="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",d="(?:"+s+"|"+l+")",_="(?:"+u+"|"+l+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+p+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",r,c].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*"),m="(?:"+[o,r,c].join("|")+")"+f,v=RegExp([u+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[a,u,"$"].join("|")+")",_+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[a,u+d,"$"].join("|")+")",u+"?"+d+"+(?:['’](?:d|ll|m|re|s|t|ve))?",u+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,m].join("|"),"g");t.exports=function(t){return t.match(v)||[]}},function(t,e,n){var a=n(0)(n(443),n(452),!1,function(t){n(441)},null,null);t.exports=a.exports},function(t,e,n){var a=n(442);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6ff48a58",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".dialog-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.dialog-footer.single-child{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.row_config_container{display:block;padding:10px 15px;background:#d8edfd;position:relative;border-radius:5px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(22),i=n.n(a),o=n(35),s=n.n(o),l=n(444),r=n.n(l),c=n(447),u=n.n(c);e.default={name:"add_data",props:["title","show","columns","table_id","item","manualSort","insertAfterPosition","insertAfterId","type"],data:function(){return{row_config:!1,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},btnLoading:!1,continueAdding:!0,newColumn:{},has_pro:!!window.ninja_table_admin.hasPro,position:"last",modal_title:"Add Row",item_settings:{},created_at:"",adding_counter:1}},computed:{editId:function(){return this.item&&this.item.id},shouldNotContinueAdding:function(){return!(!this.editId&&"duplicate"!==this.type)}},watch:{item:function(){this.initNewColumnObj(),this.item||(this.modal_title="Add Row")}},methods:{addData:function(){var t=this,e=!1;if(i()(this.newColumn,function(t){t&&(e=!0)}),e){this.btnLoading=!0;var n={action:"ninja_tables_ajax_actions",target_action:"store-table-data",table_id:this.table_id,row:this.newColumn,id:this.editId,created_at:this.created_at,settings:this.item_settings,position:this.position};this.insertAfterId&&(n.insert_after_id=this.insertAfterId,n.position=parseInt(this.insertAfterPosition)+1),jQuery.post(ajaxurl,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")}else t.$message({showClose:!0,message:"Failed to add/update data. Please reload this page and try again",type:"error"})}).fail(function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}).always(function(){t.btnLoading=!1})}else this.$message({showClose:!0,message:"Please add at least 1 value to the row",type:"error"})},closeModal:function(){this.$emit("modal_close")},initNewColumnObj:function(){var t=this,e={};i()(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",{}),i()(this.columns,function(e){t.item_settings.cell[e.key]||t.$set(t.item_settings.cell,e.key,{})}),this.item&&(this.created_at=this.item.created_at)},onEditorChange:function(t,e){e.editor;var n=e.html;e.text;this.newColumn[t]=n},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){this.initNewColumnObj()},components:{wp_editor:s.a,NinjaDatePicker:u.a,mayBeSelect:r.a}}},function(t,e,n){var a=n(0)(n(445),n(446),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"maybe_multi_select",props:["newColumn","column"],data:function(){return{appReady:!1}},methods:{getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){if("yes"==this.column.isMultiple){var t=this.newColumn[this.column.key];t?"string"==typeof t&&(this.newColumn[this.column.key]=[t]):this.newColumn[this.column.key]=[]}this.appReady=!0}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.appReady?n("div",{staticClass:"maybe_nt_multi_select"},["yes"==t.column.isMultiple?[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","allow-create":"","default-first-option":"",placeholder:"Choose from the List"},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))]:[n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"Choose from the List"},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))]],2):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(450),n(451),!1,function(t){n(448)},null,null);t.exports=a.exports},function(t,e,n){var a=n(449);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("6807805a",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_date_picker>.form-control{width:90%;float:left}.ninja_date_picker>.el-date-editor{width:8px!important;padding:0;margin:0;cursor:pointer}.ninja_date_picker>.el-date-editor .el-input__inner{width:10px!important;padding:15px;background:gray;height:34px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninjaDatePicker",props:["column","new_column"],computed:{elementFormat:function(){return this.column.dateFormat.replace(/Y/g,"y").replace(/D/g,"d")}},methods:{slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_date_picker"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_column[t.column.key],expression:"new_column[column.key]"}],staticClass:"form-control",attrs:{placeholder:t.column.dateFormat,type:"text",size:"small",id:t.slugify(t.column.key)},domProps:{value:t.new_column[t.column.key]},on:{input:function(e){e.target.composing||t.$set(t.new_column,t.column.key,e.target.value)}}}),t._v(" "),n("el-date-picker",{attrs:{type:"date",size:"small","value-format":t.elementFormat,format:t.elementFormat,placeholder:"Pick a day"},model:{value:t.new_column[t.column.key],callback:function(e){t.$set(t.new_column,t.column.key,e)},expression:"new_column[column.key]"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.title,visible:t.show,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.show=e},close:t.closeModal}},[t.show?n("div",[t._l(t.columns,function(e){return n("div",{key:e.key,staticClass:"form-group"},[n("label",{attrs:{for:t.slugify(e.key)}},[t._v(t._s(e.name||e.key))]),t._v(" "),"textarea"==e.data_type?n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})]):"html"==e.data_type?n("div",[n("wp_editor",{attrs:{editor_id:t.slugify(e.key)},model:{value:t.newColumn[e.key],callback:function(n){t.$set(t.newColumn,e.key,n)},expression:"newColumn[column.key]"}})],1):"number"==e.data_type?n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})]):"date"==e.data_type?n("div",[n("ninja-date-picker",{attrs:{column:e,new_column:t.newColumn}})],1):"selection"==e.data_type?n("div",[n("may-be-select",{attrs:{column:e,newColumn:t.newColumn}})],1):n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(n){n.target.composing||t.$set(t.newColumn,e.key,n.target.value)}}})])])}),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():n("div",[t._v("\n Add at\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"5px"},attrs:{type:"radio",value:"last"},domProps:{checked:t._q(t.position,"last")},on:{change:function(e){t.position="last"}}}),t._v("Last\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"10px"},attrs:{type:"radio",value:"first"},domProps:{checked:t._q(t.position,"first")},on:{change:function(e){t.position="first"}}}),t._v("First\n ")])],2):t._e(),t._v(" "),t.row_config?n("div",{staticClass:"row_config_container"},[t.has_pro?[n("h3",[t._v("Row Settings")]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.row_bg,callback:function(e){t.$set(t.item_settings,"row_bg",e)},expression:"item_settings.row_bg"}})],1),t._v(" "),n("div",{staticClass:"form-group form_row_half"},[n("label",[t._v("Row Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.text_color,callback:function(e){t.$set(t.item_settings,"text_color",e)},expression:"item_settings.text_color"}})],1)]),t._v(" "),n("h3",[t._v("Cell Color Customization")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column")]),t._v(" "),n("th",[t._v("Background Color")]),t._v(" "),n("th",[t._v("Text Color")])])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key]["background-color"],callback:function(n){t.$set(t.item_settings.cell[e.key],"background-color",n)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),n("td",[n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key].color,callback:function(n){t.$set(t.item_settings.cell[e.key],"color",n)},expression:"item_settings.cell[column.key]['color']"}})],1)])}))]),t._v(" "),t.insertAfterPosition?t._e():n("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[n("label",[t._v("\n Data Create Date\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you use table sorting by create date then you can change create date to sort your data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"Select date and time"},model:{value:t.created_at,callback:function(e){t.created_at=e},expression:"created_at"}})],1)]:[n("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),n("p",[t._v("Using this module, You can set cell and row level colors of your data, It's a pro feature, Please purchase pro to unlock this feature")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger el-button--mini",attrs:{type:"button"}},[n("span",[t._v("Buy Pro")])])])]],2):t._e(),t._v(" "),n("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[n("div",[n("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.continueAdding,expression:"continueAdding"}],attrs:{type:"checkbox",id:"adding_more"},domProps:{checked:Array.isArray(t.continueAdding)?t._i(t.continueAdding,null)>-1:t.continueAdding},on:{change:function(e){var n=t.continueAdding,a=e.target,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(" "),n("div",{staticClass:"dialog-footer-item"},[n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){t.row_config=!t.row_config}}},[n("i",{staticClass:"el-icon-setting"})]),t._v(" "),n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],attrs:{disabled:t.btnLoading,type:"primary",size:"small"},on:{click:t.addData}},[t.editId?n("span",[t._v(" "+t._s(t.$t("Update")))]):n("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?n("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])},staticRenderFns:[]}},function(t,e,n){var a=n(454);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("013f4f15",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}}},function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"alert",class:"alert-"+this.alertClass},[this._t("default")],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(460),n(461),!1,function(t){n(458)},"data-v-590fa148",null);t.exports=a.exports},function(t,e,n){var a=n(459);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("084af8d0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".remove[data-v-590fa148]{display:inline-block}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"remove"},[n("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:t.proceedConfirmation}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1)]),t._v(" "),t.label?n("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):n("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[n("span",{staticClass:"dashicons dashicons-trash"})])],1)},staticRenderFns:[]}},function(t,e,n){var a=n(463);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("34d0fce7",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"SortableUpgradeNotice",props:["show"],data:function(){return{upgradeGuide:window.ninja_table_admin.upgradeGuide}},computed:{visible:{get:function(){return this.show},set:function(){this.close()}}},methods:{close:function(){this.$emit("close")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n ")]),t._v(" "),n("span",[t._v("\n "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n ")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("span",[n("a",{attrs:{href:t.upgradeGuide,target:"_blank"}},[t._v(t._s(t.$t("Click here")))]),t._v(" "+t._s(t.$t("to view the upgrade guide."))+"\n ")])])},staticRenderFns:[]}},function(t,e,n){var a=n(467);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("4f78983a",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".form-wrapper{padding:10px}.form-wrapper label{display:initial;max-width:none;margin-bottom:0}.form-wrapper .el-form-item{margin-bottom:15px}.form-wrapper .more-settings:hover{cursor:pointer}.form-wrapper .more-settings i{font-size:1.5em}.form-wrapper .form_group{margin-top:10px}.form-wrapper .basic_settings .el-select{min-width:400px;max-width:100%}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(35),i=n.n(a),o=n(469),s=n.n(o),l=n(476),r=n.n(l),c=n(479),u=n.n(c);e.default={name:"ColumnsEditor",components:{wp_editor:i.a,condition:s.a,"wp-post-dynamic-column":r.a,"content-transformer":u.a},props:{model:{type:Object,default:function(){return{}}},hasPro:{type:Boolean,default:!1},updating:{type:Boolean,default:!1},moreSettings:{type:Boolean,default:!1},hideDelete:{type:Boolean,default:!1},hideCancel:{type:Boolean,default:!1},dataSourceType:{type:String,default:"default"},columns:{type:Array,default:function(){return[]}}},data:function(){return{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"},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}},methods:{addColumn:function(){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)}},mounted:function(){var t=this;this.model&&(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",""),window.ninjaTableBus.$on("tableDoingAjax",function(e){t.doingAjax=e}))}}},function(t,e,n){var a=n(0)(n(472),n(475),!1,function(t){n(470)},null,null);t.exports=a.exports},function(t,e,n){var a=n(471);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("5281c00f",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".column-condition-config .el-row{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:5px}.column-condition-config .el-col{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{width:100%;height:33px}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{margin-top:10px;font-weight:400}.column-condition-config .form_group{margin:0;height:35px}.column-condition-config .el-color-picker,.column-condition-config .el-color-picker__mask{width:100%!important}.column-condition-config .el-button--mini{padding:5px 13px}.column-condition-config .conditional-settings-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(139),i=n.n(a),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};e.default={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{NinjaColorPicker:i.a},data:function(){return{defaultCondition:{conditionalOperator:null,conditionalValue:null,conditionalValue2:null,targetAction:null,targetValue:null,targetValueColor:null}}},methods:{addCondition:function(){this.column.conditions||this.$set(this.column,"conditions",[]),this.column.conditions.push(o({},this.defaultCondition))},removeCondition:function(t){this.column.conditions.splice(t,1)},shouldShowColorPicker:function(t){return-1!=["set-cell-color","set-cell-bg-color","set-row-color","set-row-bg-color","set-column-color","set-column-bg-color"].indexOf(t.targetAction)}},mounted:function(){this.column&&!this.column.conditions&&this.$set(this.column,"conditions",[])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_color_picker",props:["label","value","disabled"],data:function(){return{color:"",previous_color:""}},watch:{color:function(t){"transparent"===t&&(this.color=""),this.previous_color=this.color,this.$emit("input",this.color)}},methods:{changeColor:function(t){"transparent"===this.previous_color?(this.previous_color=t,this.color="transparent"):this.color=t}},mounted:function(){this.color=this.value}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form_group"},[n("el-color-picker",{attrs:{"show-alpha":"",disabled:t.disabled},on:{"active-change":t.changeColor},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),t._v(" "),t.label?n("label",[t._v(t._s(t.label))]):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column-condition-config"},[t.hasPro?n("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),n("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n Add Condition\n ")])],1):n("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[n("div",{staticClass:"conditional-settings-title"},[n("H3",[t._v("Conditional Formatting")]),t._v(" "),n("p",[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like.\n Conditional Formatting is a pro feature which can be enabled by using Ninja Table pro Add-on. Ninja\n Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),t._m(1)],1)]),t._v(" "),n("hr"),t._v(" "),t._l(t.column.conditions,function(e,a){return n("el-row",{key:a},[n("el-col",{attrs:{sm:2,md:2}},[n("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:e.conditionalOperator,callback:function(n){t.$set(e,"conditionalOperator",n)},expression:"condition.conditionalOperator"}},[n("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),n("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Less Than Or Equal To",value:"less-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Greater Than Or Equal To",value:"greater-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?n("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-input",{attrs:{size:"small",placeholder:"between"==e.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:e.conditionalValue,callback:function(n){t.$set(e,"conditionalValue",n)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==e.conditionalOperator?n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:e.conditionalValue2,callback:function(n){t.$set(e,"conditionalValue2",n)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),n("el-col",{attrs:{sm:5,md:5}},[n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:e.targetAction,callback:function(n){t.$set(e,"targetAction",n)},expression:"condition.targetAction"}},[n("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[n("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),n("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),n("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[n("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),n("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),n("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[n("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),n("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),n("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),n("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),n("el-col",{attrs:{sm:4,md:4}},[n("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(e),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:e.targetValue,callback:function(n){t.$set(e,"targetValue",n)},expression:"condition.targetValue"}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(e),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[n("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:e.targetValueColor,callback:function(n){t.$set(e,"targetValueColor",n)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),n("el-col",{attrs:{sm:1,md:1}},[n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-minus",disabled:!t.hasPro},on:{click:function(e){t.removeCondition(a)}}})],1)],1)}),t._v(" "),"date"==t.column.data_type?n("div",{staticClass:"nt_suggest"},[n("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),n("p",[t._v("Example Usage")]),t._v(" "),n("ul",[n("li",[t._v("Today's Date: "),n("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Tomorrow's Date: "),n("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Yesterday's Date: "),n("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date After 10 Days: "),n("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),n("li",[t._v("Date Before 10 Days: "),n("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():n("el-row",[n("el-alert",{attrs:{center:"",closable:!1,title:"You haven't added any conditions for the column yet!",type:"info"}})],1)],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"conditional-settings-title"},[this._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/conditional-column-formatting/"}},[this._v("View\n Documentation")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=conditional_formatting&utm_term=upgrade",target:"_blank"}},[e("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[e("span",[this._v("Buy Pro and Enable Conditional Formatting")])])])}]}},function(t,e,n){var a=n(0)(n(477),n(478),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WPPostDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[]}},watch:{"column.wp_post_custom_data_type":function(){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);jQuery.get(ajaxurl,{action:"ninja_table_wp-posts_get_custom_field_options"}).then(function(e){window.ninja_wp_posts_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields}).fail(function(t){}).always(function(){t.loading=!1})}},mounted:function(){this.setFieldOptions()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[n("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),n("hr"),t._v(" "),"custom"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Type")]),t._v(" "),n("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Field",size:"small"},model:{value:t.column.wp_post_custom_data_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_type",e)},expression:"column.wp_post_custom_data_type"}},t._l(t.post_data_types,function(t){return n("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})}))],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Field Value")]),t._v(" "),n("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[n("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}},t._l(t.selectedField.options,function(t){return n("el-option",{key:t,attrs:{value:t,label:t}})}))]:n("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?n("div",{staticClass:"ninja_instruction"},[n("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?n("p",[n("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2)]:t._e(),t._v(" "),"post_data"==t.column.source_type||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),"yes"==t.column.permalinked?["post_author"==t.column.original_name?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the author as table filter action. So when user click on those filters then they will see only the selected author posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2):t._e(),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:"tax_data"==t.column.source_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),n("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Taxonomy Separator")]),t._v(" "),n("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Permalink Action Type")]),t._v(" "),n("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Open Link To New tab")]),t._v(" "),n("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(480),n(481),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(137),i=n.n(a),o=n(36),s=n.n(o);e.default={name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},components:{ninja_alert:i.a,NinjaPremiumNotice:s.a},data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Data Transformer is a powerful tool where you can concat any column values easily into any valid html and show as computed value.\n ")]),t._v(" "),n("el-input",{attrs:{type:"textarea",rows:"4",placeholder:"Please Input Transform Values (HTML supported)",disabled:!t.hasPro},model:{value:t.column.transformed_value,callback:function(e){t.$set(t.column,"transformed_value",e)},expression:"column.transformed_value"}}),t._v(" "),t.hasPro?t._e():n("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),n("div",{staticClass:"ninja_instruction"},[n("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),n("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("td",[t._v(t._s(e.name))]),t._v(" "),n("td",[t._v("{{"),n("span",[t._v("row."+t._s(e.key))]),t._v("}}")])])}))]),t._v(" "),n("br"),t._v(" "),t._m(1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Column Title")]),this._v(" "),e("th",[this._v("Reference Shortcode")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v("You may "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/value-transformation/",target:"_blank"}},[this._v("check the documentation here.")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[n("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Name"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Name")]),t._v(" "),n("p",[t._v("\n Enter a column name to set the header title.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Key"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Column Key")]),t._v(" "),n("p",[t._v("\n Column key is for data mapping, export and import table data.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:t.updating},model:{value:t.model.key,callback:function(e){t.$set(t.model,"key",e)},expression:"model.key"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Data Type"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),n("p",[t._v("\n Choose the data type of the column.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Select Data Type of this column"},model:{value:t.model.data_type,callback:function(e){t.$set(t.model,"data_type",e)},expression:"model.data_type"}},t._l(t.dataTypesOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})})),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.hasPro,expression:"hasPro"}]},[t._v("Select HTML Field if you want to add Link, media or any type of html")])],2),t._v(" "),"date"==t.model.data_type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Format"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),n("p",[t._v("\n Pattern of the date value.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[n("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),n("el-radio",{attrs:{label:"custom",disabled:!t.hasPro},nativeOn:{click:function(e){return t.showProPopUp(e)}}},[t._v("Custom")])],1),t._v(" "),"custom"!=t.model.formatType?n("el-form-item",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.model.dateFormat,expression:"model.dateFormat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.model,"dateFormat",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v("\n "+t._s(a)+" - (Ex: "+t._s(e)+")\n ")])})],2)]):n("el-form-item",[n("el-input",{attrs:{size:"small",placeholder:"Enter moment.js supported format"},model:{value:t.model.dateFormat,callback:function(e){t.$set(t.model,"dateFormat",e)},expression:"model.dateFormat"}})],1)],2):"number"==t.model.data_type&&t.hasPro?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Thousand Separator"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),n("p",[t._v("\n Please Provide The Thousand Separator If Any.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.thousandSeparator,callback:function(e){t.$set(t.model,"thousandSeparator",e)},expression:"model.thousandSeparator"}},[n("el-radio",{attrs:{label:""}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"."}},[t._v("Dot (.)")]),t._v(" "),n("el-radio",{attrs:{label:","}},[t._v("Comma (,)")])],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Decimal Separator"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),n("p",[t._v("\n Please Provide The Decimal Separator If Any.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{model:{value:t.model.decimalSeparator,callback:function(e){t.$set(t.model,"decimalSeparator",e)},expression:"model.decimalSeparator"}},[n("el-radio",{attrs:{label:""}},[t._v("None")]),t._v(" "),n("el-radio",{attrs:{label:"."}},[t._v("Dot (.)")]),t._v(" "),n("el-radio",{attrs:{label:","}},[t._v("Comma (,)")])],1)],2)]:"selection"==t.model.data_type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Select Items"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Select Field")]),t._v(" "),n("p",[t._v("\n Use Select Field to add data in your table from predefined list\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-form-item",[t.has_pro?t._e():n("p",[n("b",[t._v("Selection feature is only available on Pro version Please upgrade to pro to unlock this feature")])]),t._v(" "),n("el-input",{attrs:{type:"textarea",size:"small",disabled:!t.has_pro,placeholder:"Enter Select items one per line",autosize:{minRows:4,maxRows:8}},model:{value:t.model.selections,callback:function(e){t.$set(t.model,"selections",e)},expression:"model.selections"}}),t._v(" "),n("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Enable Multi-Selection"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Multiple Selection")]),t._v(" "),n("p",[t._v("\n If you select yes, Then admin can select multiple item on create data\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.isMultiple,callback:function(e){t.$set(t.model,"isMultiple",e)},expression:"model.isMultiple"}})],2)]:t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Responsive Breakpoint"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Responsive Breakpoint")]),t._v(" "),n("p",[t._v("\n Choose responsive breakpoints of your table columns. "),n("br"),t._v("\n For more details check "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"}},[t._v("documentation")]),t._v(".\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Select Responsive Breakpoint"},model:{value:t.model.breakpoints,callback:function(e){t.$set(t.model,"breakpoints",e)},expression:"model.breakpoints"}},t._l(t.breakPointsOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}))],2),t._v(" "),"wp-posts"==t.dataSourceType?n("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):t._e()],2),t._v(" "),n("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[n("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():n("div",{staticClass:"ninja_table_inline_upgrade"},[n("H3",[t._v("Advanced Column Settings")]),t._v(" "),n("p",[t._v("\n Customize your table's column's width, custom css class, content alignments, column styling with this feature.\n Advanced Column Settings is a pro feature and You can use it once you upgrade to Ninja Tables Pro.\n Ninja Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),n("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=advanced_column&utm_term=upgrade",target:"_blank"}},[n("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[n("span",[t._v("Buy Pro and Enable This Module")])])])],1),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Extra Classes"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Extra CSS Classes")]),t._v(" "),n("p",[t._v("\n Enter extra CSS classes to the column. "),n("br"),t._v("\n Use `space` to separate each class.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",disabled:!t.hasPro},model:{value:t.model.classes,callback:function(e){t.$set(t.model,"classes",e)},expression:"model.classes"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Max Width"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),n("p",[t._v("\n Enter the maximum width of the column. This will be applied for the entire column\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small",type:"number",disabled:!t.hasPro},model:{value:t.model.width,callback:function(e){t.$set(t.model,"width",e)},expression:"model.width"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header Text Alignment")]),t._v(" "),n("p",[t._v("\n Choose the text alignment. This will be applied only for header\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Text Align"},model:{value:t.model.textAlign,callback:function(e){t.$set(t.model,"textAlign",e)},expression:"model.textAlign"}},t._l(t.alignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}))],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Row Content Text Align"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Content Text Alignment")]),t._v(" "),n("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-select",{attrs:{size:"mini",placeholder:"Content Alignment"},model:{value:t.model.contentAlign,callback:function(e){t.$set(t.model,"contentAlign",e)},expression:"model.contentAlign"}},t._l(t.contentAlignmentOptions,function(t,e){return n("el-option",{key:e,attrs:{label:t,value:e}})}))],2),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{disabled:!t.hasPro,value:!0,label:"Enable HTML Table Header Content"},model:{value:t.model.enable_html_content,callback:function(e){t.$set(t.model,"enable_html_content",e)},expression:"model.enable_html_content"}})],1),t._v(" "),t.model.enable_html_content?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header HTML Content"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Header HTML Content")]),t._v(" "),n("p",[t._v("\n Provide content for table column header if you want to show html content.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("wp_editor",{model:{value:t.model.header_html_content,callback:function(e){t.$set(t.model,"header_html_content",e)},expression:"model.header_html_content"}})],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filterable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filterable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be filterable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend search for this column data"},model:{value:t.model.unfilterable,callback:function(e){t.$set(t.model,"unfilterable",e)},expression:"model.unfilterable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Sortable"))+"\n\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Sortable")]),t._v(" "),n("p",[t._v("\n If You enable this then this column data will not be sortable at the frontend.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend sorting for this column"},model:{value:t.model.unsortable,callback:function(e){t.$set(t.model,"unsortable",e)},expression:"model.unsortable"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Background"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Background color")]),t._v(" "),n("p",[t._v("\n You can set background color of this particular column that will show on the frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Text Color"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Text Color color")]),t._v(" "),n("p",[t._v("\n You can set Column Text color of this particular column that will show on the frontend table.\n ")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),n("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[n("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[n("content-transformer",{attrs:{columns:t.columns,column:t.model}})],1),t._v(" "),n("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),n("div",{staticClass:"form_group"},[n("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():n("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[n("p",[t._v("Are you sure to delete this?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm")])],1),t._v(" "),t.hideDelete?t._e():n("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete")))])],1),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.store(e)}}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])]:[t.hideCancel?t._e():n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return e.preventDefault(),t.cancel(e)}}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")]),t._v(" "),n("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.addColumn(e)}}},[t._v("Add Column")])]],2)])],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(486),n(487),!1,function(t){n(484)},null,null);t.exports=a.exports},function(t,e,n){var a=n(485);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("508b4bf5",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(108),i=n.n(a);e.default={name:"FluentformNav",components:{FluentForm:i.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(491),n(492),!1,function(t){n(489)},null,null);t.exports=a.exports},function(t,e,n){var a=n(490);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("514643a9",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".external-source-nav .el-collapse-item__header,.external-source-nav .el-collapse-item__wrap{padding:0 15px}.external-source-nav .sync-settings{margin-top:15px}.external-source-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(109),i=n.n(a);e.default={name:"External",components:{"external-data-source":i.a},props:{tableCreated:{type:Function},config:{type:Object},isEditableMessage:{required:!0},hasPro:{required:!0}},data:function(){return{state:!1,url:this.value,activated_features:window.ninja_table_admin.activated_features}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"external-source-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("external-data-source",{attrs:{type:t.config.table.dataSourceType,tableCreated:t.tableCreated,columns:t.config.columns,table:t.config.table,hasPro:t.hasPro,editing:!0,activated_features:t.activated_features}})],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(496),n(497),!1,function(t){n(494)},null,null);t.exports=a.exports},function(t,e,n){var a=n(495);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1d4ef8a2",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(110),i=n.n(a);e.default={name:"RowSQLNav",components:{MySqlEditor:i.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean},column_count:{type:Number}},data:function(){return{error_html:"",loading:!1,active:""}},methods:{updateSql:function(){var t=this;this.loading=!0,this.error_html="",jQuery.post(ajaxurl,{action:"ninja_table_raw_sql_update_sql",table_id:this.config.table.ID,sql:this.config.table.sql}).then(function(e){t.tableCreated(),t.$message({showClose:!0,message:e.data.message,type:"success"})}).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})}},mounted:function(){this.column_count||(this.active="1")}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),n("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.config.table.sql,callback:function(e){t.$set(t.config.table,"sql",e)},expression:"config.table.sql"}}),t._v(" "),n("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),n("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),n("p",[t._v("Check the documentation for advanced use cases: "),n("a",{attrs:{target:"_blank",rel:"noopener",href:"https://wpmanageninja.com/docs/ninja-tables/integrations/construct-table-from-custom-sql/"}},[t._v("Ninja Tables SQL Integration Documentation")])]),t._v(" "),n("p",[t._v("Available Dynamic Placeholders: "),n("code",[t._v("{current_user_id}")]),t._v(" "),n("code",[t._v("{current_date}")]),t._v(" "),n("code",[t._v("{current_date_time}")]),t._v(" "),n("code",[t._v("{current_post_id}")]),t._v(" "),n("code",[t._v("{current_post_title}")]),t._v(" "),n("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?n("div",{staticClass:"form-group"},[n("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[n("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),n("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[n("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.updateSql()}}},[t._v("Update SQL Query")])],1)],2)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(501),n(502),!1,function(t){n(499)},null,null);t.exports=a.exports},function(t,e,n){var a=n(500);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("26332baa",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(106),i=n.n(a),o=n(82),s=n.n(o);e.default={name:"WPPostsNav",components:{WPPosts:i.a,columnsEditor:s.a},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}},methods:{addNewColumn:function(){this.$emit("add")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fluent-form-nav"},[n("el-collapse",[n("el-collapse-item",{attrs:{name:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),n("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],2),t._v(" "),n("el-collapse-item",{attrs:{name:"2"}},[n("template",{slot:"title"},[n("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),n("strong",[t._v("Add Column:")]),t._v(" You may add aditional dynamic columns here.\n ")]),t._v(" "),n("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:t.hasPro,hideCancel:!0,dataSourceType:"wp-posts"},on:{add:function(e){t.addNewColumn()}}})],2)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isEditable?t._e():["fluent-form"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("fluent-form-nav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData}})],1):-1!=t.dataSourceType.indexOf("csv")?n("div",{staticClass:"tablenav top"},[n("external-source-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData},model:{value:t.externalDataSourceUrl,callback:function(e){t.externalDataSourceUrl=e},expression:"externalDataSourceUrl"}})],1):"wp-posts"==t.dataSourceType&&t.new_column?n("div",{staticClass:"tablenav top"},[n("WPPostsNav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData},on:{add:function(e){t.addNewColumn()}}})],1):"raw_sql"==t.dataSourceType?n("div",{staticClass:"tablenav top"},[n("raw-sql-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,column_count:t.columns.length,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData}})],1):t._e(),t._v(" "),t.columns.length||t.loading?t._e():n("div",[n("h3",{staticStyle:{"text-align":"center"}},[t._v("No Data found based on your data source configaration")])])],t._v(" "),t.columns.length&&t.isEditable?[t.addDataModal?n("add_data_modal",{attrs:{title:t.addDataModalTitle,show:t.addDataModal,table_id:t.tableId,columns:t.columns,item:t.updateItem,"manual-sort":"manual_sort"===t.config.settings.sorting_type,"insert-after-position":t.insertAfterPosition,insertAfterId:t.insertAfterId,type:t.dataModalType},on:{modal_close:t.closeDataModal,updateItem:t.updateItemOnTable,createItem:t.addItemOnTable}}):t._e(),t._v(" "),n("div",{staticClass:"tablenav top"},[n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))]),t._v(" "),n("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.isCompact,expression:"isCompact"}],attrs:{id:"compact_view",type:"checkbox"},domProps:{checked:Array.isArray(t.isCompact)?t._i(t.isCompact,null)>-1:t.isCompact},on:{change:function(e){var n=t.isCompact,a=e.target,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(" "),n("label",[t._v("\n | "),n("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),n("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.getData(e):null},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),n("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.sorting,expression:"sorting"}],attrs:{type:"checkbox",name:"checkbox"},domProps:{checked:Array.isArray(t.sorting)?t._i(t.sorting,null)>-1:t.sorting},on:{change:function(e){var n=t.sorting,a=e.target,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(" "),n("div",{staticClass:"pull-right"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))]),t._v(" "),n("el-button",{attrs:{size:"small",type:"info"},on:{click:function(e){t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():n("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[n("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.addColumn()}}},[t._v("\n Add Column\n ")])],1),t._v(" "),t.columns.length?[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"js-sortable-table",class:{compact:t.isCompact,sorting:t.sorting},style:"width: "+t.tableWidth,attrs:{data:t.items,"row-key":"id",border:""},on:{"selection-change":t.handleSelectionChange}},[t.isEditable?n("el-table-column",{attrs:{type:"selection",fixed:"",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,function(e,a){return n("el-table-column",{key:a,attrs:{label:JSON.stringify(e),"render-header":t.addConfigIcon,width:t.columnLength==a+1?"":150},scopedSlots:t._u([{key:"default",fn:function(a){return[n("div",{staticClass:"cell-content",attrs:{title:a.row.values[e.key]},domProps:{innerHTML:t._s(t.renderTableCell(a.row.values[e.key],e,a.row.values))}})]}}])})}),t._v(" "),t.isEditable?[t.show_meta?[n("el-table-column",{attrs:{label:"Data ID",width:"100px",prop:"id"}}),t._v(" "),n("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),n("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.has_pro?n("a",{on:{click:function(n){t.addAfter(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),n("a",{on:{click:function(n){t.showUpdateModal(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),n("a",{on:{click:function(n){t.duplicateData(e)}}},[n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[n("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),n("delete-pop-over",{on:{deleted:function(n){t.deleteItem(e.row.id)}}})]}}])})]:t._e()],2),t._v(" "),n("div",{staticClass:"tablenav bottom"},[t.isEditable?n("div",{staticClass:"alignleft actions bulkactions"},[n("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.bulkAction=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),n("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),n("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction(e)}}},[t._v(t._s(t.$t("Apply")))])]):t._e(),t._v(" "),n("div",{staticClass:"pull-right"},[n("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100,500,2e3],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){t.$set(t.paginate,"current_page",e)}}})],1)])]:t._e(),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),n("el-dialog",{staticClass:"no_padding_body",attrs:{"append-to-body":!0,top:"50px",title:"Edit Table Column : "+t.currentEditingColumn.name,width:"70%",visible:t.showColumnEditor},on:{"update:visible":function(e){t.showColumnEditor=e}}},[t.showColumnEditor&&t.currentEditingColumn?n("columns-editor",{attrs:{dataSourceType:t.config.table.dataSourceType,model:t.currentEditingColumn,hasPro:t.has_pro,updating:!0,columns:t.columns,hideDelete:!1},on:{store:function(e){t.storeSettings()},delete:function(e){t.deleteColumn()},cancel:function(e){t.showColumnEditor=!1}}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{top:"50px","append-to-body":!0,title:"Add Table Column",width:"70%",visible:t.columnModal},on:{"update:visible":function(e){t.columnModal=e}}},[n("columns-editor",{attrs:{model:t.new_column,hasPro:t.has_pro},on:{add:function(e){t.addNewColumn()},cancel:function(e){t.columnModal=!t.columnModal}}})],1)],2)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(507),n(530),!1,function(t){n(505)},null,null);t.exports=a.exports},function(t,e,n){var a=n(506);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("661f50f2",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(83),i=n.n(a),o=n(128),s=n.n(o),l=n(76),r=n.n(l),c=n(75),u=n.n(c),d=n(136),_=n.n(d),p=n(82),f=n.n(p),m=n(508),v=n.n(m),h=n(521),b=n.n(h),g=n(524),y=n.n(g),x=n(527),w=n.n(x),C=n(68);e.default={name:"TableConfiguration",components:{draggable:i.a,ColumnsEditor:f.a,NinjaCustomFilters:v.a,NinjaLanguageSettings:b.a,NinjaRenderingSettings:y.a,NinjaButtonSettings:w.a},props:["config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,active_menu:"columns",table_color_primary:"#000",table_color_secondary:"#fff",tableId:this.$route.params.table_id,tableLibs:Object(C.a)(),doingAjax:!1,addColumnStatus:!1,new_column:!1,breakPointsOptions:{xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),"":this.$t("Always show in all devices"),hidden:this.$t("Totally hidden on all devices")},dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},attributeModel:{name:null,key:null,breakpoints:""},columns:this.config.columns,tableSettings:this.config.settings,is_fluent_installed:window.ninja_table_admin.isInstalled,fluent_url:window.ninja_table_admin.fluentform_url,has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,addVisible:!1,sortableUpgradeNotice:!1}},watch:{"new_column.name":function(){this.new_column.key=_()(this.new_column.name)}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};jQuery.post(ajaxurl,e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.$set(t.config,"columns",t.columns)}).fail(function(t){}).always(function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)})},openDrawer:function(t){jQuery(".drawer_body_"+t).slideToggle()},validateColumn:function(t){return t.name?t.key?-1===s()(this.columns,function(e){return e.key==t.key})||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.columns.push(this.new_column),this.setNewColumn(),this.addColumnStatus=!1,this.storeSettings())},deleteColumn:function(t){this.config.columns.splice(t,1),this.storeSettings()},showProAd:function(t){this.addVisible=!0,window.ninjaTableBus.$emit("show_pro_popup",1)},size:u.a,get:r.a,initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},headerColorsClick:function(){this.has_pro||this.showProAd()},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType()&&(t.source_type="custom"),this.new_column=t},dataSourceType:function(){var t=this.config.table.dataSourceType||"Default";return t=t.indexOf("google")>-1?"Google SpreadSheet":t}},computed:{addable:function(){return-1!=["default","wp-posts"].indexOf(this.config.table.dataSourceType)}},mounted:function(){this.setNewColumn()}}},function(t,e,n){var a=n(0)(n(509),n(520),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(22),i=n.n(a),o=n(510),s=n.n(o),l=n(83),r=n.n(l);e.default={name:"custom_filter",props:["table_id","columns"],components:{NinjaFilterEditor:s.a,draggable:r.a},data:function(){return{loading:!1,saving:!1,hasPro:!!window.ninja_table_admin.hasPro,hasAdvancedFilters:!!window.ninja_table_admin.hasAdvancedFilters,table_filters:[],activeEditor:!1,editorModal:!1,addFilterModal:!1,filter_styling:{filter_display_type:"",filter_columns:"columns_2",filter_column_label:"new_line"}}},computed:{columnKeyPairs:function(){var t={};return i()(this.columns,function(e){t[e.key]=e.name}),t}},methods:{each:i.a,fetchFilters:function(){var t=this;this.loading=!0,jQuery.get(window.ajaxurl,{action:"ninjatable_get_custom_table_filters",table_id:this.table_id}).then(function(e){t.table_filters=e.data.table_filters,t.filter_styling=e.data.filter_styling}).fail(function(t){}).always(function(){t.loading=!1})},updateFilter:function(t){this.validateFilter(t)&&this.saveFilters()},validateFilter:function(t){return t.title?t.options.length?"reset_filter"==t.type||"select"==t.type||t.columns.length?!("select"==t.type&&"dynamic_data"==t.select_value_type&&!t.dynamic_select_column)||(this.$message.error("Please Select Target Column"),!1):(this.$message.error("Please Select columns that you need to add filter"),!1):(this.$message.error("Please Provide Filter Options"),!1):(this.$message.error("Please Provide Filter Title"),!1)},saveFilters:function(){var t=this;this.saving=!0,jQuery.post(window.ajaxurl,{action:"ninjatable_update_custom_table_filters",table_id:this.table_id,ninja_filters:this.table_filters,filter_styling:this.filter_styling}).then(function(e){t.$message.success(e.data.message)}).fail(function(t){}).always(function(){t.saving=!1,t.activeEditor=!1,t.editorModal=!1,t.addFilterModal=!1})},showAddFilter:function(){this.activeEditor={placeholder:"All",options:[{value:"",label:""}],type:"select",columns:[],strict:"yes",title:""},this.addFilterModal=!0},addFilter:function(t){var e=this;this.validateFilter(t)&&(this.table_filters.push(t),this.$nextTick(function(){e.saveFilters()}))},edit:function(t){this.activeEditor=t,this.editorModal=!0},deleteFilter:function(t){this.table_filters.splice(t,1),this.saveFilters()}},mounted:function(){this.hasAdvancedFilters&&this.fetchFilters()}}},function(t,e,n){var a=n(0)(n(513),n(519),!1,function(t){n(511)},"data-v-16231d8a",null);t.exports=a.exports},function(t,e,n){var a=n(512);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("f3badeb8",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".spaced>.el-radio[data-v-16231d8a]{margin-left:0;margin-right:30px!important;line-height:2}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(514),i=n.n(a),o=n(22),s=n.n(o);e.default={name:"FilterEditor",components:{KeyPairOptions:i.a},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return s()(this.columns,function(e){"date"==e.data_type&&t.push(e)}),t}if("number_range"==this.activeEditor.type){var e=[];return s()(this.columns,function(t){"number"==t.data_type&&e.push(t)}),e}return this.columns},has_filter_option:function(){return-1!==["radio","checkbox"].indexOf(this.activeEditor.type)},is_manual_select_options:function(){return"select"==this.activeEditor.type&&"manual"==this.activeEditor.select_value_type},need_placeholder:function(){return-1!==["radio","select","date_picker","text_input"].indexOf(this.activeEditor.type)},need_filter_columns:function(){return!("select"==this.activeEditor.type&&"dynamic_data"==this.activeEditor.select_value_type||"reset_filter"==this.activeEditor.type)}},watch:{"activeEditor.type":function(t){"select"==t&&this.$set(this.activeEditor,"select_value_type","manual"),Array.isArray(this.activeEditor.columns)||(this.activeEditor.columns=[])}},mounted:function(){Array.isArray(this.activeEditor.columns)||(this.activeEditor.columns=[])}}},function(t,e,n){var a=n(0)(n(517),n(518),!1,function(t){n(515)},null,null);t.exports=a.exports},function(t,e,n){var a=n(516);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("59ffc73b",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"table.ninja_filter_table{width:100%;text-align:left;border-collapse:collapse}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(83),i=n.n(a);e.default={name:"ninja_key_pair_options",components:{draggable:i.a},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.label,callback:function(n){t.$set(e,"label",n)},expression:"filter.label"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"filter.value"}})],1),t._v(" "),n("td",[n("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){t.deleteItem(a)}}},[t._v("-")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:a+1==t.value.length,expression:"(index + 1) == value.length"}],attrs:{type:"success",size:"mini"},on:{click:function(e){t.add()}}},[t._v("+")])],1)])}))],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th"),this._v(" "),e("th",[this._v("Label")]),this._v(" "),e("th",[this._v("Filter Value")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Title"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter Title")]),t._v(" "),n("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.title,callback:function(e){t.$set(t.activeEditor,"title",e)},expression:"activeEditor.title"}})],2),t._v(" "),"reset_filter"!=t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Label"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Prefix")]),t._v(" "),n("p",[t._v("This will show on your Table Filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.filter_prefix,callback:function(e){t.$set(t.activeEditor,"filter_prefix",e)},expression:"activeEditor.filter_prefix"}}),t._v(" "),n("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter UI Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Filter UI")]),t._v(" "),n("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[n("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),n("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),n("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),n("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),n("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),n("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),n("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),n("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),"select"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Value Type"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.activeEditor.select_value_type,callback:function(e){t.$set(t.activeEditor,"select_value_type",e)},expression:"activeEditor.select_value_type"}},[n("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),n("el-radio-button",{attrs:{label:"dynamic_data"}},[t._v("Dynamic Data from Table Column")])],1)],2),t._v(" "),!t.is_manual_select_options&&t.activeEditor.select_value_type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Target Column"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.dynamic_select_column,callback:function(e){t.$set(t.activeEditor,"dynamic_select_column",e)},expression:"activeEditor.dynamic_select_column"}},t._l(t.current_columns,function(e){return n("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])}))],2):t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.is_multi_select,callback:function(e){t.$set(t.activeEditor,"is_multi_select",e)},expression:"activeEditor.is_multi_select"}},[t._v("Enable Multi-Select")])],1)]:t._e(),t._v(" "),t.has_filter_option||t.is_manual_select_options?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Options"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Options")]),t._v(" "),n("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("key-pair-options",{model:{value:t.activeEditor.options,callback:function(e){t.$set(t.activeEditor,"options",e)},expression:"activeEditor.options"}})],2)]:t._e(),t._v(" "),"date_picker"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Filter Operator"))+"\n ")]),t._v(" "),n("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[n("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),n("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("From Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"From Placeholder"},model:{value:t.activeEditor.from_placeholder,callback:function(e){t.$set(t.activeEditor,"from_placeholder",e)},expression:"activeEditor.from_placeholder"}})],2),t._v(" "),n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("To Placeholder"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"small",placeholder:"To Placeholder"},model:{value:t.activeEditor.to_placeholder,callback:function(e){t.$set(t.activeEditor,"to_placeholder",e)},expression:"activeEditor.to_placeholder"}})],2)]:t._e(),t._v(" "),t.need_filter_columns?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Columns"))+"\n "),n("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("h3",[t._v("Columns")]),t._v(" "),n("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?n("el-checkbox-group",{model:{value:t.activeEditor.columns,callback:function(e){t.$set(t.activeEditor,"columns",e)},expression:"activeEditor.columns"}},t._l(t.current_columns,function(e){return n("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])})):n("div",[t._v("\n Sorry, No corresponding columns found based on your selection and column's data type\n ")])],2):t._e(),t._v(" "),"reset_filter"==t.activeEditor.type?n("el-form-item",[n("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Button Text"))+"\n ")]),t._v(" "),n("el-input",{attrs:{size:"mini"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),n("el-form-item",[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.strict,callback:function(e){t.$set(t.activeEditor,"strict",e)},expression:"activeEditor.strict"}},[t._v("Enable Strict Mode (If Enable, Ninja Table will try to match exact value)")])],1)],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?n("div",{staticClass:"section_block"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.showAddFilter()}}},[t._v("Add New Filter")]),t._v(" "),t.table_filters.length?[n("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),n("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){t.saveFilters()}}},t._l(t.table_filters,function(e,a){return n("tr",[n("td",[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(e.title))]),t._v(" "),n("td",[t._v(t._s(e.type))]),t._v(" "),n("td",t._l(e.columns,function(e){return n("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[e],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n "+t._s(t.columnKeyPairs[e])+"\n ")])})),t._v(" "),n("td",[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(n){t.edit(e)}}}),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){t.deleteFilter(a)}}})],1)])}))],1),t._v(" "),n("h3",[t._v("Filter Appearance")]),t._v(" "),n("el-radio-group",{model:{value:t.filter_styling.filter_display_type,callback:function(e){t.$set(t.filter_styling,"filter_display_type",e)},expression:"filter_styling.filter_display_type"}},[n("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),n("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[n("h3",[t._v("Filter Columns")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.filter_styling.filter_columns,callback:function(e){t.$set(t.filter_styling,"filter_columns",e)},expression:"filter_styling.filter_columns"}},[n("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),n("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),n("h3",[t._v("Progressive Filter")]),t._v(" "),n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.filter_styling.progressive,callback:function(e){t.$set(t.filter_styling,"progressive",e)},expression:"filter_styling.progressive"}},[t._v("Enable Progressive filter for dynamic filter options")]),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{loading:t.saving,size:"small",type:"success"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?n("div",{staticClass:"section_block"},[t._m(2)]):n("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])]),t._v(" "),n("el-dialog",{attrs:{title:"Edit Custom Filter",visible:t.editorModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editorModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"Add New Custom Filter",visible:t.addFilterModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.addFilterModal=e}}},[t.activeEditor?n("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",{staticClass:"ninja_block"},[this._v("Custom Search Filters")]),this._v(" "),e("p",[this._v("\n Custom Search Filters is useful if you want to add select box / Radio Button to show a group of rows of\n your table.\n "),e("br"),this._v("\n To learn more about this "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/custom-filters-on-ninja-tables/"}},[this._v("click\n here")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",[e("tr",[e("th",[this._v("Name")]),this._v(" "),e("th",[this._v("Type")]),this._v(" "),e("th",[this._v("Target Columns")]),this._v(" "),e("th",[this._v("Action")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is introduced in version 2.4.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature")])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Custom Filters is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e,n){var a=n(0)(n(522),n(523),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Language Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block"},[n("div",{staticClass:"language_block"},[n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.no_result_text,expression:"tableSettings.no_result_text"}],staticClass:"form_control",attrs:{id:"no_result_text",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.no_result_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"no_result_text",e.target.value)}}}),t._v(" "),n("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_placeholder,expression:"tableSettings.search_placeholder"}],staticClass:"form_control",attrs:{id:"search_box_placeholder",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_placeholder},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_placeholder",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Box Placeholder")])]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_in_text,expression:"tableSettings.search_in_text"}],staticClass:"form_control",attrs:{id:"search_box_in",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_in_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_in_text",e.target.value)}}}),t._v(" "),n("small",[t._v("Search Dropdown Box Title")])])])])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(525),n(526),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja-rendering_settings",props:["tableSettings","config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}},methods:{storeSettings:function(){this.$emit("storeSettings")},changeTableType:function(t){if(!this.hasPro&&"legacy_table"==t)return window.ninjaTableBus.$emit("show_pro_popup",1),void(this.tableSettings.render_type="ajax_table");this.tableSettings.render_type=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_rendering_settings"},[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Render Settings")]),t._v(" "),n("div",{staticClass:"ninja_actions_action"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),n("div",{staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"ninja_section_block_body"},[n("div",{staticClass:"section_block_item"},[n("p",[t._v("Please the select the settings for your table render method. Using Legacy table you can use\n shortcodes in your cells and it will render the full table from php side. Table styles will be\n same for both tables. Most of the cases you will need Ajax Table which is recommended\n settings.")]),t._v(" "),n("div",{staticClass:"card_block"},[n("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){t.changeTableType("ajax_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"ajax_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'ajax_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Ajax Table")]),t._v(" "),n("p",[t._v("\n Use this settings if you have lots of data and don't need cell merge features. It will\n load your data over ajax. Please note that, shortcodes in table will not work here.\n ")])]),t._v(" "),n("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){t.changeTableType("legacy_table")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"legacy_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'legacy_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),n("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Disable Caching\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, we cache the table "),n("br"),t._v("\n contents. It's not recommended to disable "),n("br"),t._v("\n caching unless you know what you are doing\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.shouldNotCache,callback:function(e){t.$set(t.tableSettings,"shouldNotCache",e)},expression:"tableSettings.shouldNotCache"}})],1)])]):t._e(),t._v(" "),t.config.table.hasExternalCachingInterval?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Caching Interval\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, You can cache the table data for certain minutes "),n("br"),t._v("\n so the data will load from cached data. Please Provide the value in minutes.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.caching_interval,callback:function(e){t.$set(t.tableSettings,"caching_interval",e)},expression:"tableSettings.caching_interval"}}),t._v(" "),n("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.caching_interval/60).toFixed(2))+" hours")])]):t._e()],1)])]):t._e(),t._v(" "),"legacy_table"==t.config.settings.render_type&&"yes"!=t.tableSettings.shouldNotCache?n("div",{staticClass:"section_block_item"},[n("h3",[t._v("\n Enable Full HTML Cache\n "),n("el-tooltip",{attrs:{placement:"right",effect:"light"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then ninja tables will cache the full html of the table and"),n("br"),t._v("\n render that without interact with database. You can set the time how many minutes it will cache each iteration.\n ")]),t._v(" "),n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"caching-block"},[n("div",{staticClass:"form-group"},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.enable_html_cache,callback:function(e){t.$set(t.tableSettings,"enable_html_cache",e)},expression:"tableSettings.enable_html_cache"}})],1),t._v(" "),"yes"==t.tableSettings.enable_html_cache?n("div",{staticClass:"form-group"},[n("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),n("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.html_caching_minutes,callback:function(e){t.$set(t.tableSettings,"html_caching_minutes",e)},expression:"tableSettings.html_caching_minutes"}}),t._v(" "),t.tableSettings.html_caching_minutes>60?n("p",[t._v("Current Caching Interval: "),n("b",[t._v(t._s((t.tableSettings.html_caching_minutes/60).toFixed(2))+" hours")])]):t._e()],1)]):t._e()])]):t._e()])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",[t._v("\n Recommended settings for advanced features\n ")]),t._v(" "),n("ul",{staticClass:"ninja_render_features"},[n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n ")]),t._v(" "),n("li",[n("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}]}},function(t,e,n){var a=n(0)(n(528),n(529),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"button_settings",props:["table_id"],data:function(){return{table_buttons:{csv:{status:"no",label:"CSV",all_rows:"no"},print:{status:"no",label:"Print",all_rows:"no"}},fetching:!1,saving:!1,button_positions:{after_search_box:"After Search Box",before_table:"Before of the table",after_table:"Bottom of the table"},buttonAlignments:{ninja_buttons_left:"Left",ninja_buttons_center:"Center",ninja_buttons_right:"Right"},hasPro:!!window.ninja_table_admin.hasPro}},methods:{getSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_button_settings",table_id:this.table_id}).then(function(e){t.table_buttons=e.data.button_settings}).fail(function(t){}).always(function(){t.fetching=!1})},saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"update_button_settings",table_id:this.table_id,button_settings:this.table_buttons}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})}).fail(function(t){}).always(function(){t.saving=!1})}},mounted:function(){this.getSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[n("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[n("h3",[t._v("CSV Export Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.status,callback:function(e){t.$set(t.table_buttons.csv,"status",e)},expression:"table_buttons.csv.status"}},[t._v("\n Enable CSV Export Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.csv.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.csv.label,callback:function(e){t.$set(t.table_buttons.csv,"label",e)},expression:"table_buttons.csv.label"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.bg_color,callback:function(e){t.$set(t.table_buttons.csv,"bg_color",e)},expression:"table_buttons.csv.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.text_color,callback:function(e){t.$set(t.table_buttons.csv,"text_color",e)},expression:"table_buttons.csv.text_color"}})],1)]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Print Button Settings")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.print.status,callback:function(e){t.$set(t.table_buttons.print,"status",e)},expression:"table_buttons.print.status"}},[t._v("Enable Print\n Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.print.status?[n("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[n("label",[t._v("Button Label")]),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.print.label,callback:function(e){t.$set(t.table_buttons.print,"label",e)},expression:"table_buttons.print.label"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_full"},[n("div",{staticClass:"form_row_half"},[n("label",[t._v("Button Background Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.bg_color,callback:function(e){t.$set(t.table_buttons.print,"bg_color",e)},expression:"table_buttons.print.bg_color"}})],1),t._v(" "),n("div",{staticClass:"form_row_half"},[n("div",{staticClass:"form_group"},[n("label",[t._v("Button Text Color")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.text_color,callback:function(e){t.$set(t.table_buttons.print,"text_color",e)},expression:"table_buttons.print.text_color"}})],1)])])]:t._e(),t._v(" "),n("hr"),t._v(" "),n("h3",[t._v("Buttons Position")]),t._v(" "),n("div",{staticClass:"form_group"},[n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_position,callback:function(e){t.$set(t.table_buttons,"button_position",e)},expression:"table_buttons.button_position"}},t._l(t.button_positions,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}))],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Buttons Alignment")]),t._v(" "),n("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_alignment,callback:function(e){t.$set(t.table_buttons,"button_alignment",e)},expression:"table_buttons.button_alignment"}},t._l(t.buttonAlignments,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v(t._s(e))])}))],1),t._v(" "),t.hasPro?n("div",{staticClass:"form_group"},[n("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"success"},on:{click:function(e){t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):n("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_header"},[e("h2",[this._v("CSV Export / Print Button Settings for Frontend")]),this._v(" "),e("p",[this._v("You can enable/disable print and csv export settings here")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Export CSV and Table Print is pro only features. Please purchase "),e("b",[this._v('"Ninja Tables Pro"')]),this._v(" to use this feature\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"table-column-settings"},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[n("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),n("span",[t._v("Columns")])]),t._v(" "),n("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[n("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),n("span",[t._v("Rendering Settings")])]),t._v(" "),n("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[n("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),n("span",[t._v("Custom Filters")])]),t._v(" "),n("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[n("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),n("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),n("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[n("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),n("span",[t._v("Language Settings")])])],1)],1),t._v(" "),n("el-main",["columns"==t.active_menu?[n("div",{staticClass:"ninja_header"},[n("h2",[t._v("Table Column Settings")])]),t._v(" "),n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"section_widget"},[n("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):n("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?n("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.columns.length,expression:"columns.length"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.addColumnStatus=!t.addColumnStatus}}},[t._v("\n "+t._s(t.$t("Add Column"))+"\n ")])],1):t._e()]),t._v(" "),n("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?n("div",{staticClass:"column"},[n("div",{staticClass:"add_column_wrapper"},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:t.new_column,"has-pro":t.has_pro},on:{add:function(e){t.addNewColumn()},cancel:function(e){t.addColumnStatus=!t.addColumnStatus}}})],1)]):t._e(),t._v(" "),n("draggable",{attrs:{options:{handle:".handle",animation:150}},on:{end:t.storeSettings},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}},t._l(t.columns,function(e,a){return n("div",{key:e.key,staticClass:"column drawer"},[n("div",{staticClass:"header"},[n("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),n("span",{on:{click:function(e){t.openDrawer(a)}}},[t._v(t._s(e.name||e.key))]),t._v(" "),n("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){t.openDrawer(a)}}})]),t._v(" "),n("div",{staticClass:"drawer_body",class:"drawer_body_"+a},[n("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:e,"has-pro":t.has_pro,updating:!0},on:{delete:function(e){t.deleteColumn(a)},store:function(e){t.storeSettings()}}})],1)])}))],1)]),t._v(" "),n("div",{staticClass:"proms"},[n("div",{staticClass:"help_section"},[n("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n video "),n("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])]),t._v(" "),t.is_fluent_installed?t._e():n("div",{staticClass:"help_section"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form\n Builder plugin with some amazing Premium features "),n("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[n("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[n("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[n("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[n("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(532),n(541),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(533),i=n.n(a),o=n(536),s=n.n(o);e.default={name:"ExportImport",components:{export:i.a,import:s.a},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}}},function(t,e,n){var a=n(0)(n(534),n(535),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ExportTable",props:["config"],data:function(){return{tableId:this.$route.params.table_id,exportOptions:{csv:"CSV",json:"JSON"},selected:"csv"}},methods:{downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={action:"ninja_tables_ajax_actions",target_action:"export-data",table_id:this.tableId,format:t};return ajaxurl+"?"+jQuery.param(e)},doExport:function(){var t=this.downloadLink(this.selected);location.href=t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?n("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),n("div",{staticClass:"ninja_export_block"},[t._v("\n "+t._s(t.$t("Format:"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selected=e.target.multiple?n:n[0]}}},t._l(t.exportOptions,function(e,a){return n("option",{domProps:{value:a}},[t._v("\n "+t._s(e)+"\n ")])})),t._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:function(e){e.preventDefault(),t.doExport()}}},[t._v("\n "+t._s(t.$t("Export"))+"\n ")])],1)]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not export the data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_suggest"},[e("p",[this._v("You can download the table data as CSV or JSON format, If you download as json then you can import the table to any Ninja Table Installation")])])}]}},function(t,e,n){var a=n(0)(n(539),n(540),!1,function(t){n(537)},"data-v-643d3a11",null);t.exports=a.exports},function(t,e,n){var a=n(538);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("eb94fdd6",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,"#fileUpload[data-v-643d3a11]{max-width:200px}.justify-items[data-v-643d3a11]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ninja_content .ninja_suggest[data-v-643d3a11]{background:#f1f1f1}.ninja_content[data-v-643d3a11]{margin:1em 0}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(22),i=n.n(a);e.default={name:"Import",props:["config","tableId"],data:function(){return{btnLoading:!1,replace:!1,tutorial:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",do_unicode:"no"}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},sampleData:function(){var t={};return i()(this.columns,function(e){t[e.key]="column value"}),Array(3).fill(t)}},methods:{clear:function(){jQuery("#fileUpload").val("")},upload:function(){var t=this;t.btnLoading=!0;var e=jQuery("#fileUpload")[0].files[0];if(e){var n=new FormData;n.append("file",e),n.append("action","ninja_tables_ajax_actions"),n.append("target_action","upload-data"),n.append("table_id",this.tableId),n.append("replace",this.replace),n.append("do_unicode",this.do_unicode),jQuery.ajax({url:ajaxurl,data:n,type:"POST",contentType:!1,processData:!1,success:function(e){t.$emit("csvUploaded"),t.clear(),t.$message.success(e.message)},error:function(e){t.$message.error(e.responseJSON.message)}}).always(function(){t.btnLoading=!1})}else t.btnLoading=!1},download:function(){var t=[],e=this.config.columns.map(function(t){return t.key});t.push(e),[1,2].forEach(function(n,a){var 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()}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ninja_header"},[n("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?n("div",{staticClass:"ninja_content"},[t.columns.length?n("div",[n("form",{attrs:{action:"",id:"fileUploadForm"}},[n("div",{staticClass:"form-group"},[n("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),n("el-checkbox",{model:{value:t.replace,callback:function(e){t.replace=e},expression:"replace"}},[t._v(t._s(t.$t("Replace Existing Data")))])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",size:"small",loading:t.btnLoading},on:{click:function(e){return e.preventDefault(),t.upload(e)}}},[t._v("\n "+t._s(t.$t("Import from CSV"))+"\n ")])],1)]),t._v(" "),n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("\n Please note that, your CSV data structure need to follow the sample CSV.\n You may want to check the "),n("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),n("br"),t._v(" "),n("p",[t._v("\n Also make sure the content is in UTF-8 format, for the best result.\n ")])]),t._v(" "),n("div",{staticClass:"justify-items"},[n("h3",[t._v("\n "+t._s(t.$t("CSV Header Structure"))+"\n ")]),t._v(" "),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:t.download}},[t._v("\n "+t._s(t.$t("Download Sample CSV"))+"\n ")])],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})})),t._v(" "),n("h3",[t._v("or as bellow")]),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,function(t){return n("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})}))],1):n("div",{staticClass:"error"},[n("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):n("div",{staticClass:"ninja_content"},[n("div",{staticClass:"ninja_suggest"},[n("p",[t._v("Sorry! You can not import any data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"margin-top":"15px"}},[n("el-container",[n("el-aside",{attrs:{width:"200px"}},[n("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[n("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[n("i",{staticClass:"el-icon-upload"}),t._v(" "),n("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),n("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[n("i",{staticClass:"el-icon-download"}),t._v(" "),n("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),n("el-main",[n(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(543),n(550),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(544),i=n.n(a),o=n(547),s=n.n(o);e.default={name:"help",components:{fluentpromoad:i.a,ninja_premium:s.a},data:function(){return{docs:[{title:"Ninja Tables Introduction",url:"https://wpmanageninja.com/r/docs/ninja-tables/getting-started/?utm_source=ninja-tables"},{title:"Ninja Tables Demo",url:"https://wpmanageninja.com/docs/ninja-tables/configure-tables/?utm_source=ninja-tables"},{title:"Setting up a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/setting-up-a-table/?utm_source=ninja-tables"},{title:"Configure Responsive Breakdowns for Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"},{title:"Import Table Data from CSV",url:"https://wpmanageninja.com/r/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Export Data from a Table",url:"https://wpmanageninja.com/r/docs/ninja-tables/export-data/?utm_source=ninja-tables"},{title:"Import Table from CSV",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from JSON file",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables"},{title:"Import Table from Table Press Plugin",url:"https://wpmanageninja.com/docs/ninja-tables/import-table-from-table-press-plugin/?utm_source=ninja-tables"}],img_url:window.ninja_table_admin.img_url}},methods:{imageUrl:function(t){return this.img_url+t}},mounted:function(){}}},function(t,e,n){var a=n(0)(n(545),n(546),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"fluentpromoad_2",props:["dismisable"],data:function(){return{img_url_path:window.ninja_table_admin.img_url,fluent_url:window.ninja_table_admin.fluentform_url,fluent_wp_url:window.ninja_table_admin.fluent_wp_url,is_installed:window.ninja_table_admin.isInstalled,already_dismissed:window.ninja_table_admin.dismissed}},computed:{will_it_show:function(){return!this.is_installed&&(!this.dismisable||!this.already_dismissed)}},methods:{image_url:function(t){return this.img_url_path+t},dismiss:function(){var t=this;jQuery.post(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"dismiss_fluent_suggest"}).then(function(t){}).fail(function(t){}).always(function(){t.is_installed=!0})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.will_it_show?n("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?n("div",{staticClass:"ninja_dismiss",on:{click:function(e){t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),n("div",{staticClass:"ninja_form_banner"},[n("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),n("div",{staticClass:"ninja_fluent_copy"},[n("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form Builder plugin with some amazing Premium features")]),t._v(" "),n("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),n("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(548),n(549),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_premium",data:function(){return{img_url_path:window.ninja_table_admin.img_url}},computed:{will_it_show:function(){return!window.ninja_table_admin.hasPro||""==window.ninja_table_admin.hasPro}},methods:{image_url:function(t){return this.img_url_path+t}}}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return this.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:this.image_url("banner_premium.png")}})]),this._v(" "),this._m(0)]):this._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_fluent_copy"},[e("p",[this._v("Have you checked out NinjaTables Pro Add-On yet? We have added some exciting features in Ninja Tables with Pro Add-On")]),this._v(" "),e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[this._v("Download Now")]),this._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[this._v("View Details")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v(t._s(t.$t("Plugin Documentation and Help")))]),t._v(" "),n("hr"),t._v(" "),n("ninja_premium"),t._v(" "),n("div",{staticClass:"ninja_documentaion_wrapper"},[n("div",{staticClass:"ninja_doc_top_blocks"},[n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),n("h3",[t._v("Try WP FluentFrom")]),t._v(" "),t._m(0),t._v(" "),t._m(1)])]),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("azonpress_logo.jpg")}}),t._v(" "),n("h3",[t._v("Amazon Affiliate Plugin")]),t._v(" "),n("p",[t._v("Amazon Affiliate WordPress Plugin for serious Amazon Affiliates")]),t._v(" "),t._m(3)])]),t._v(" "),n("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box help_container"},[n("h3",[t._v("User Guide")]),t._v(" "),n("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),n("ul",{staticClass:"doc_items"},t._l(t.docs,function(e,a){return n("li",{key:a},[n("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])}))])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),n("h3",[t._v("Love this Plugin?")]),t._v(" "),n("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")]),t._v(" "),t._m(4)])]),t._v(" "),n("div",{staticClass:"ff_block block_1_3"},[n("div",{staticClass:"ff_block_box text-center"},[n("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),n("h3",[t._v("Need And Expert Support?")]),t._v(" "),n("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")]),t._v(" "),t._m(5)])])])]),t._v(" "),n("fluentpromoad")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Need to build a contact form by drag and drop form builder?")]),this._v(" Try the modern contact form plugin with all the necessary input fields, notifications and connect your form with powerful integrations")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[this._v("Download from wp.org (Free)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png"}}),this._v(" "),e("h3",[this._v("WPPayForm - Accept Payment Easily with WordPress Forms")]),this._v(" "),e("p",[this._v("Do you want to accept payments along with user inputs in WordPress? Then WPPayForm is the perfect plugin for you.")]),this._v(" "),e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[this._v("Download WPPayForm (Free)")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/azonpress/"}},[this._v("Download AzonPress")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/#new-post"}},[this._v("Write Review")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[this._v("Contact Support")])])}]}},function(t,e,n){var a=n(0)(n(554),n(565),!1,function(t){n(552)},null,null);t.exports=a.exports},function(t,e,n){var a=n(553);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("dca5d8c2",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".js_instruction{padding:10px 20px;background:#fff;margin-bottom:20px;font-size:14px;line-height:22px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:n(555),ace_js_editor:n(560)},data:function(){return{current_tab:"additional_css",custom_css:"",custom_js:"",hasPro:!!window.ninja_table_admin.hasPro,fetching:!1}},methods:{saveScripts:function(){var t=this;this.hasPro||(this.custom_js=""),this.$post({action:"ninja_tables_ajax_actions",target_action:"save_custom_css_js",table_id:this.config.table.ID,custom_css:this.custom_css,custom_js:this.custom_js}).then(function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$set(t.config.table,"custom_css",t.custom_css)}).then(function(t){console.log(t)}).always(function(){})},getScripts:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_custom_css_js",table_id:this.config.table.ID}).then(function(e){t.custom_css=e.data.custom_css,t.custom_js=e.data.custom_js}).fail(function(t){}).always(function(){t.fetching=!1})}},mounted:function(){this.getScripts()}}},function(t,e,n){var a=n(0)(n(558),n(559),!1,function(t){n(556)},null,null);t.exports=a.exports},function(t,e,n){var a=n(557);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("011ca082",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_css");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e,n){var a=n(0)(n(563),n(564),!1,function(t){n(561)},null,null);t.exports=a.exports},function(t,e,n){var a=n(562);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("76fce250",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".ninja_custom_css_editor{min-height:350px;height:auto}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ninja_ace_editor_js",props:["value","mode","editor_id"],data:function(){return{ace_path:window.ninja_table_admin.ace_path_url,editorError:"",loading:!0}},methods:{loadDependencies:function(){var t=this;"undefined"==typeof ace?jQuery.get(this.ace_path+"/ace.min.js",function(){t.initAce()}):this.initAce()},initAce:function(){var t=this;ace.config.set("workerPath",this.ace_path),ace.config.set("modePath",this.ace_path),ace.config.set("themePath",this.ace_path);var e=ace.edit("ninja_custom_js");e.setTheme("ace/theme/monokai"),e.session.setMode("ace/mode/"+this.mode),e.getSession().on("changeAnnotation",function(){var n=e.getSession().getAnnotations();for(var a in t.editorError="",n)"error"==n[a].type&&(t.editorError=n[a].text)}),e.getSession().on("change",function(){t.$emit("input",e.getSession().getValue())}),this.loading=!1}},mounted:function(){this.loadDependencies()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[n("div",{staticClass:"ace_container"},[n("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),n("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fetching?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[n("h3",[t._v("Loading... Please wait")])]):n("div",{staticClass:"section_block"},[n("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[n("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),n("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),n("hr"),t._v(" "),"additional_css"==t.current_tab?[n("p",[t._v("You may add "),n("code",[t._v("#footable_parent_"+t._s(t.config.table.ID)+" ")]),t._v(" as your css selector prefix to target this specific table")]),t._v(" "),n("ace_code_editor",{attrs:{editor_id:"ninja_custom_css",mode:"css"},model:{value:t.custom_css,callback:function(e){t.custom_css=e},expression:"custom_css"}}),t._v(" "),t._m(0),t._v(" "),n("br"),t._v(" "),n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[n("p",[t._v("Your additional JS code will run after ninja table initialized. Please provide valid javascript code. Invalid JS code may break the table UI.")]),t._v(" "),t._m(1),t._v(" "),n("ace_js_editor",{attrs:{editor_id:"ninja_custom_js",mode:"javascript"},model:{value:t.custom_js,callback:function(e){t.custom_js=e},expression:"custom_js"}}),t._v(" "),t._m(2),t._v(" "),t.hasPro?[n("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"success"},on:{click:function(e){t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[n("p",[t._v("Custom Javascript feature is a pro feature along with many awesome features. Please upgrade to pro.")])]]:t._e()],2),t._v(" "),n("div",{staticClass:"section_block"})])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<style></style>")]),this._v(" tag")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"js_instruction"},[this._v("\n The Following JavaScrip variables are available that you can use: "),e("br"),this._v(" "),e("b",[this._v("$table")]),this._v(" : The Javascript DOM object of the table"),e("br"),this._v(" "),e("b",[this._v("tableConfig")]),this._v(" : The configuration object of the table.\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Please don't include "),e("code",[this._v("<script><\/script>")]),this._v(" tag")])}]}},function(t,e,n){var a=n(0)(n(569),n(570),!1,function(t){n(567)},null,null);t.exports=a.exports},function(t,e,n){var a=n(568);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("1c59ea7c",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{width:480px;margin:0 auto}.footable_parent.ninja_device_tablet{max-width:768px;padding:0 20px;margin:0 auto}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(68),i=n(76),o=n.n(i),s=n(75),l=n.n(s),r=n(74),c=n.n(r),u=n(111),d=n.n(u),_=n(138),p=n.n(_),f=n(139),m=n.n(f),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"table_preview",props:["config"],components:{SortableUpgradeNotice:p.a,NinjaColorPicker:m.a},data:function(){return{rows:[],activeDesign:"features",tableId:this.$route.params.table_id,tableSettings:this.config.settings,table_body_html:"",data_loaded:!1,script_loaded:!1,footableLoading:!1,tableLibs:Object(a.a)(),has_pro:!!window.ninja_table_admin.hasPro,savingSettings:!1,tableInnerHtml:"",showingDevice:"desktop",hasSortable:!!window.ninja_table_admin.hasSortable,sortableUpgradeNotice:!1,columnCss:""}},computed:{wrapperClasses:function(){var t=[];return t.push(this.tableSettings.css_lib),t.push("ninja_device_"+this.showingDevice),"custom_color"!=this.tableSettings.table_color_type&&"ninja_no_color_table"==this.tableSettings.table_color||t.push("colored_table"),t},tableClasses:function(){var t=this,e=[];e.push("foo_table_"+this.tableId),"custom_color"==this.tableSettings.table_color_type?(e.push("inverted"),e.push("ninja_custom_color")):(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color&&e.push("inverted"),e.push(this.tableSettings.table_color)),this.tableSettings.pagination_position?e.push("footable-paging-"+this.tableSettings.pagination_position):e.push("footable-paging-right"),this.tableSettings.hide_header_row&&e.push("ninjatable_hide_header_row"),this.tableSettings.hide_all_borders&&e.push("hide_all_borders"),e.push("ninja_table_pro"),this.tableSettings.search_position&&e.push("ninja_search_"+this.tableSettings.search_position);var n=[];return this.tableSettings.css_classes&&(n=this.availableCssClasses.filter(function(e){return-1!=t.tableSettings.css_classes.indexOf(e)})),this.tableSettings.hide_responsive_labels&&e.push("nt_hide_breakpoint_labels"),this.tableSettings.nt_search_full_width&&e.push("nt_search_full_width"),"semantic_ui"==this.tableSettings.css_lib&&e.push("ui"),[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n),e)},formattedColumns:function(){var t=this.config.columns,e=[];return jQuery.each(t,function(t,n){e.push({name:n.key,title:n.name,breakpoints:n.breakpoints,type:n.data_type,sortable:!0,classes:["ninja_column_"+t],visible:"hidden"!=n.breakpoints})}),e},app_ready:function(){return this.data_loaded&&this.script_loaded},currentTableLibs:function(){return this.tableLibs[this.tableSettings.library].css_libs},colors:function(){return this.tableLibs[this.tableSettings.library].colors},availableStyles:function(){var t=this.currentTableLibs[this.tableSettings.css_lib];return!!t&&t.styles},availableCssClasses:function(){var t=[];return c()(this.availableStyles,function(e){t.push(e.key)}),t},showProNotice:function(){return!this.has_pro&&!!("custom_color"==this.tableSettings.table_color_type&&"color_customization"==this.activeDesign||"color_customization"==this.activeDesign&&this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color)},design_tips:function(){var t=[];return"custom_color"==this.tableSettings.table_color_type&&(this.tableSettings.table_search_color_primary&&this.tableSettings.table_header_color_primary&&this.tableSettings.table_color_primary&&this.tableSettings.table_color_secondary||t.push('You should set colors at <b>"Table Colors"</b> Tab')),t}},watch:{data_loaded:function(){this.app_ready&&this.reInitFootables()},script_loaded:function(){this.app_ready&&this.reInitFootables()},tableSettings:{handler:function(t){var e=this;this.$nextTick(function(){e.generateColorCss()})},deep:!0},tableClasses:{handler:function(t){var e=this;this.$nextTick(function(){e.reInitFootables()})},deep:!0},"tableSettings.enable_search":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.column_sorting":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.show_all":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.togglePosition":function(){var t=this;this.$nextTick(function(){t.reInitFootables()})},"tableSettings.expand_type":function(t,e){var n=this;if("default"!=t&&!this.has_pro)return this.tableSettings.expand_type="default",void window.ninjaTableBus.$emit("show_pro_popup",1);this.$nextTick(function(){n.reInitFootables()})},"tableSettings.sorting_type":function(t,e){"manual_sort"===t&&(this.has_pro?this.hasSortable?this.initManualSorting():this.hasSortable||(this.tableSettings.sorting_type=e,this.sortableUpgradeNotice=!0):(this.tableSettings.sorting_type=e,window.ninjaTableBus.$emit("show_pro_popup",1)))},activeDesign:function(){this.checkColorPro()},"tableSettings.stackable":function(){Array.isArray(this.tableSettings.stacks_devices)||this.$set(this.tableSettings,"stacks_devices",[]),Array.isArray(this.tableSettings.stacks_appearances)||this.$set(this.tableSettings,"stacks_appearances",[])}},methods:{fetchTableBody:function(){var t=this;jQuery.get(ajaxurl,{action:"ninja_tables_ajax_actions",target_action:"get_table_preview_html",table_id:this.tableId}).then(function(e){t.tableInnerHtml=e,t.data_loaded=!0}).fail(function(e){jQuery("#footable_"+t.tableId).append("<h1>Error Loading</h1>")})},initManualSorting:function(){var t=this;new Promise(function(e,n){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,n)})},storeSettings:function(){var t=this;this.checkColorPro(),this.savingSettings=!0;this.filterTableSettings(this.tableSettings);var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};jQuery.post(ajaxurl,e).success(function(e){t.$message({showClose:!0,message:e.message,type:"success"})}).fail(function(t){}).always(function(){t.savingSettings=!1})},filterTableSettings:function(t){var e=[];return c()(this.availableStyles,function(t){e.push(t.key)}),t.css_classes=d()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":v(FooTable))){var t=FooTable.get("#footable_"+this.tableId);t&&t.destroy()}jQuery("#footable_"+this.tableId).find("thead,tbody,tfoot").remove(),this.footableLoading=!1,jQuery("#footable_"+this.tableId).append(this.tableInnerHtml),this.initFootables()}},initFootables:function(){if(!this.footableLoading&&this.script_loaded){this.footableLoading=!0;var t=window.ninjaTableApp,e=jQuery("#footable_"+this.tableId);this.tableSettings.hide_on_empty&&e.on("expanded.ft.row",function(t,n,a){e.find("table.footable-details td:empty").parent().addClass("nt_has_hide")});var n=this.getTableConfig();t.initTable(e,n),this.footableLoading=!1}},dysel:function(t){for(var e=t.links,n=t.callback,a=t.nocache,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)}},s=n,l=e.length-1;l>=0;l--){var r=s,c=e[l];a&&(c+="?"+ +(new Date).getTime()),s=function(t){o(this,t)}.bind(c,r)}s()},loadRequiredScripts:function(){var t=this;this.dysel({links:window.ninja_table_admin.preview_required_scripts,callback:function(){t.script_loaded=!0}})},size:l.a,get:o.a,generateColorCss:function(){if("pre_defined_color"!=this.tableSettings.table_color_type){var t="#footable_"+this.tableId,e="\n "+t+" {\n background-color: "+this.tableSettings.table_color_primary+" !important;\n color: "+this.tableSettings.table_color_secondary+" !important;\n }\n "+t+" thead tr.footable-filtering th {\n background-color: "+this.tableSettings.table_search_color_primary+" !important;\n color: "+this.tableSettings.table_search_color_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) thead tr.footable-filtering th {\n "+(this.tableSettings.table_search_color_border?"\n border : 1px solid "+this.tableSettings.table_search_color_border+" !important;\n ":"\n border : 1px solid transparent !important;\n ")+"\n }\n "+t+" .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n background-color: "+this.tableSettings.table_search_color_secondary+" !important;\n color: "+this.tableSettings.table_search_color_primary+" !important;\n }\n "+t+" tr.footable-header, "+t+" tr.footable-header th {\n background-color: "+this.tableSettings.table_header_color_primary+" !important;\n color: "+this.tableSettings.table_color_header_secondary+" !important;\n }\n "+t+":not(.hide_all_borders) tr.footable-header th {\n border-color: "+this.tableSettings.table_color_header_border+" !important;\n }\n "+t+":not(.hide_all_borders) tbody tr td {\n border-color: "+this.tableSettings.table_color_border+" !important;\n }\n\n "+("yes"==this.tableSettings.alternate_color_status?"\n "+t+" tbody tr:nth-child(even) {\n background-color: "+this.tableSettings.table_alt_color_primary+";\n color: "+this.tableSettings.table_alt_color_secondary+";\n }\n "+t+" tbody tr:nth-child(odd) {\n background-color: "+this.tableSettings.table_alt_2_color_primary+";\n color: "+this.tableSettings.table_alt_2_color_secondary+";\n }\n "+t+" tbody tr:nth-child(even):hover {\n background-color: "+this.tableSettings.table_alt_color_hover+";\n }\n "+t+" tbody tr:nth-child(odd):hover {\n background-color: "+this.tableSettings.table_alt_2_color_hover+";\n }\n ":"\n ")+"\n\n "+t+" tfoot .footable-paging {\n background-color: "+this.tableSettings.table_footer_bg+" !important;\n }\n "+t+" tfoot .footable-paging .footable-page.active a {\n background-color: "+this.tableSettings.table_footer_active+" !important;\n }\n "+t+":not(.hide_all_borders) tfoot .footable-paging td {\n border-color: "+this.tableSettings.table_footer_border+" !important;\n }\n ";jQuery("#table_designer_css").html(e)}else jQuery("#table_designer_css").html("")},changeColor:function(t,e){this.$set(this.tableSettings,e,t)},checkColorPro:function(){this.has_pro||(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color||"pre_defined_color"!=this.tableSettings.table_color_type)&&(this.tableSettings.table_color_type="pre_defined_color",this.tableSettings.table_color="ninja_no_color_table")},generateDefaultCss:function(){var t=this,e=this.config.table.custom_css;this.config.columns.forEach(function(n,a){(n.background_color||n.text_color||n.contentAlign)&&(e+="#footable_parent_"+t.tableId+" thead tr th.ninja_column_"+a+", #footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { background-color: "+n.background_color+"; color: "+n.text_color+"; }",e+="#footable_parent_"+t.tableId+" tbody tr td.ninja_column_"+a+" { text-align: "+n.contentAlign+"; }")}),jQuery("#ninja_table_designer_common_css").html(e)},getTableConfig:function(){var t={};this.config.columns.forEach(function(e,n){t["ninja_column_"+n]={"text-align":e.textAlign,width:e.width+"px"}});var e={default_sorting:"old_first",defualt_filter:!1,defualt_filter_column:null,expandAll:"expandAll"===this.tableSettings.expand_type,expandFirst:"expandFirst"===this.tableSettings.expand_type,filtering:!!this.tableSettings.enable_search,i18n:{},use_parent_width:"desktop"!==this.showingDevice,sorting:!!this.tableSettings.column_sorting,togglePosition:this.tableSettings.togglePosition},n={toggleColumn:this.tableSettings.togglePosition,cascade:!0,useParentWidth:"desktop"!==this.showingDevice,columns:this.config.columns,expandFirst:"expandFirst"===this.tableSettings.expand_type,expandAll:"expandAll"===this.tableSettings.expand_type,empty:"",filtering:{enabled:!!this.tableSettings.enable_search},paging:{enabled:"0"==this.tableSettings.show_all||0==this.tableSettings.show_all,size:10,container:"#footable_parent_"+this.tableId+" .paging-ui-container"},sorting:{enabled:!!this.tableSettings.column_sorting}};return{columns:this.formattedColumns,custom_css:t,settings:e,render_type:"legacy_table",instance_name:"ninja_table_instance_0",table_id:this.table_id,title:"",init_config:n}}},mounted:function(){this.fetchTableBody(),this.loadRequiredScripts(),this.tableSettings.table_color_type||("ninja_table_custom_color"==this.tableSettings.table_color?this.$set(this.tableSettings,"table_color_type","custom_color"):this.$set(this.tableSettings,"table_color_type","pre_defined_color")),jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px"),jQuery(window).on("resize",function(){jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px")}),this.generateDefaultCss()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ninja_design"},[n("div",{staticClass:"ninja_title_section"},[n("div",{staticClass:"ninja_title"},[n("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),n("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[n("el-radio-button",{attrs:{label:"desktop"}},[n("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"tablet"}},[n("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"mobile"}},[n("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n ")])],1)],1),t._v(" "),n("el-button",{attrs:{loading:t.savingSettings,disabled:t.savingSettings,size:"small",type:"primary"},on:{click:function(e){t.storeSettings()}}},[t._v("Update Settings\n ")])],1),t._v(" "),n("div",{staticClass:"ninja_design_wrapper"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.app_ready,expression:"!app_ready"}],staticClass:"design_preview",staticStyle:{background:"white",padding:"10px 20px"}},[t.showProNotice?n("div",{staticClass:"ninja_upgrade_bar"},[t._v("\n "+t._s(t.$t("Color customization is a PRO feature. Please upgrade to pro apply this feature."))+"\n "),n("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_studio"}},[t._v(t._s(t.$t("Upgrade To Pro")))])]):t._e(),t._v(" "),n("div",{staticClass:"footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent",class:t.wrapperClasses,attrs:{id:"footable_parent_"+t.tableId}},[t.tableSettings.show_title?n("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?n("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),n("table",{directives:[{name:"show",rawName:"v-show",value:t.app_ready,expression:"app_ready"}],staticClass:"table foo-table ninja_footable",class:t.tableClasses,attrs:{id:"footable_"+t.tableId}},[n("colgroup",t._l(t.formattedColumns,function(t,e){return n("col",{key:e,class:["ninja_column_"+e,t.breakpoints]})})),t._v(" "),n("thead")])]),t._v(" "),n("div",{staticClass:"ninja_demo_disclaimer"},[n("hr"),t._v(" "),"yes"==t.tableSettings.stackable?n("p",[n("b",[t._v("For Stackable Tables, Live preview is disabled here. Please check on preview url")])]):t._e(),t._v(" "),t._m(0),t._v(" "),n("p",[t._v("Some elements like custom filters and row-inline styling is not available in this design mode. Please check on live preview or in your embeded page.")])])]),t._v(" "),n("div",{staticClass:"design_controls"},[n("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[n("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[n("div",{staticClass:"form_group"},[n("label",[t._v("Select Styling Library")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.css_lib,callback:function(e){t.$set(t.tableSettings,"css_lib",e)},expression:"tableSettings.css_lib"}},t._l(t.currentTableLibs,function(e,a){return n("el-radio-button",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],1),t._v(" "),t.availableStyles?n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,function(e){return n("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.css_classes,expression:"tableSettings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,e.key)>-1:t.tableSettings.css_classes},on:{change:function(n){var a=t.tableSettings.css_classes,i=n.target,o=!!i.checked;if(Array.isArray(a)){var s=e.key,l=t._i(a,s);i.checked?l<0&&t.$set(t.tableSettings,"css_classes",a.concat([s])):l>-1&&t.$set(t.tableSettings,"css_classes",a.slice(0,l).concat(a.slice(l+1)))}else t.$set(t.tableSettings,"css_classes",o)}}}),t._v("\n "+t._s(e.title)+"\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)})],2):t._e(),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),n("label",{attrs:{for:"show_title"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_title,expression:"tableSettings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.tableSettings.show_title)?t._i(t.tableSettings.show_title,"1")>-1:t.tableSettings.show_title},on:{change:function(e){var n=t.tableSettings.show_title,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"show_description"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_description,expression:"tableSettings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.tableSettings.show_description)?t._i(t.tableSettings.show_description,"1")>-1:t.tableSettings.show_description},on:{change:function(e){var n=t.tableSettings.show_description,a=e.target,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 "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",{attrs:{for:"enable_search"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.enable_search,expression:"tableSettings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.tableSettings.enable_search)?t._i(t.tableSettings.enable_search,"1")>-1:t.tableSettings.enable_search},on:{change:function(e){var n=t.tableSettings.enable_search,a=e.target,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?n("label",{attrs:{for:"column_sorting"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.column_sorting,expression:"tableSettings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.tableSettings.column_sorting)?t._i(t.tableSettings.column_sorting,"1")>-1:t.tableSettings.column_sorting},on:{change:function(e){var n=t.tableSettings.column_sorting,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_header_row,expression:"tableSettings.hide_header_row"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_header_row)?t._i(t.tableSettings.hide_header_row,null)>-1:t.tableSettings.hide_header_row},on:{change:function(e){var n=t.tableSettings.hide_header_row,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_all_borders,expression:"tableSettings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_all_borders)?t._i(t.tableSettings.hide_all_borders,null)>-1:t.tableSettings.hide_all_borders},on:{change:function(e){var n=t.tableSettings.hide_all_borders,a=e.target,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(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_on_empty,expression:"tableSettings.hide_on_empty"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_on_empty)?t._i(t.tableSettings.hide_on_empty,null)>-1:t.tableSettings.hide_on_empty},on:{change:function(e){var n=t.tableSettings.hide_on_empty,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then the empty ietems will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_responsive_labels,expression:"tableSettings.hide_responsive_labels"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_responsive_labels)?t._i(t.tableSettings.hide_responsive_labels,null)>-1:t.tableSettings.hide_responsive_labels},on:{change:function(e){var n=t.tableSettings.hide_responsive_labels,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),n("div",{staticClass:"form_group label-normalize"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("\n Stackable Table Configuration\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"With stackable table, You can show your rows as list item. You can target by device width"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form_group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.stackable,callback:function(e){t.$set(t.tableSettings,"stackable",e)},expression:"tableSettings.stackable"}},[t._v("\n Enable Stackable Table\n ")]),t._v(" "),"yes"==t.tableSettings.stackable?[n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[n("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),n("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),n("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),n("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[n("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),n("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n ")])],1)]:t._e()],2)])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[n("div",{staticClass:"form_group"},[n("label",[t._v("Select Color Scheme")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.table_color_type,callback:function(e){t.$set(t.tableSettings,"table_color_type",e)},expression:"tableSettings.table_color_type"}},[n("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),n("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?n("div",{staticClass:"form_group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.table_color,expression:"tableSettings.table_color"}],staticClass:"form_control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"table_color",e.target.multiple?n:n[0])}}},t._l(t.colors,function(e,a){return n("option",{key:a,domProps:{value:a}},[t._v(t._s(e)+"\n ")])}))]):n("div",{staticClass:"form_group ninja_color_customization"},[n("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_search_color_primary,callback:function(e){t.$set(t.tableSettings,"table_search_color_primary",e)},expression:"tableSettings.table_search_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_search_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_search_color_secondary",e)},expression:"tableSettings.table_search_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_search_color_border,callback:function(e){t.$set(t.tableSettings,"table_search_color_border",e)},expression:"tableSettings.table_search_color_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_header_color_primary,callback:function(e){t.$set(t.tableSettings,"table_header_color_primary",e)},expression:"tableSettings.table_header_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_header_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_header_secondary",e)},expression:"tableSettings.table_color_header_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_header_border,callback:function(e){t.$set(t.tableSettings,"table_color_header_border",e)},expression:"tableSettings.table_color_header_border"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary,callback:function(e){t.$set(t.tableSettings,"table_color_primary",e)},expression:"tableSettings.table_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_secondary",e)},expression:"tableSettings.table_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border,callback:function(e){t.$set(t.tableSettings,"table_color_border",e)},expression:"tableSettings.table_color_border"}})],1)]),t._v(" "),n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Use Alternate Color Schema for Table Rows","active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.alternate_color_status,callback:function(e){t.$set(t.tableSettings,"alternate_color_status",e)},expression:"tableSettings.alternate_color_status"}})],1),t._v(" "),"yes"==t.tableSettings.alternate_color_status?n("div",{staticClass:"ninja_alternate_colors"},[n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_2_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_primary",e)},expression:"tableSettings.table_alt_2_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_2_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_secondary",e)},expression:"tableSettings.table_alt_2_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_2_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_hover",e)},expression:"tableSettings.table_alt_2_color_hover"}})],1)]),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_primary",e)},expression:"tableSettings.table_alt_color_primary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_secondary",e)},expression:"tableSettings.table_alt_color_secondary"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_color_hover",e)},expression:"tableSettings.table_alt_color_hover"}})],1)])]):t._e(),t._v(" "),n("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),n("div",{staticClass:"ninja_color_blocks"},[n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_footer_bg,callback:function(e){t.$set(t.tableSettings,"table_footer_bg",e)},expression:"tableSettings.table_footer_bg"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Active"},model:{value:t.tableSettings.table_footer_active,callback:function(e){t.$set(t.tableSettings,"table_footer_active",e)},expression:"tableSettings.table_footer_active"}})],1),t._v(" "),n("div",{staticClass:"ninja_color_block"},[n("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_footer_border,callback:function(e){t.$set(t.tableSettings,"table_footer_border",e)},expression:"tableSettings.table_footer_border"}})],1)])])]),t._v(" "),n("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[n("div",{staticClass:"ninja_switch_wrapper"},[n("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.tableSettings.show_all,callback:function(e){t.$set(t.tableSettings,"show_all",e)},expression:"tableSettings.show_all"}})],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.perPage,expression:"tableSettings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all},domProps:{value:t.tableSettings.perPage},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"perPage",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all,size:"mini"},model:{value:t.tableSettings.pagination_position,callback:function(e){t.$set(t.tableSettings,"pagination_position",e)},expression:"tableSettings.pagination_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paginate_to_top,expression:"tableSettings.paginate_to_top"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.paginate_to_top)?t._i(t.tableSettings.paginate_to_top,null)>-1:t.tableSettings.paginate_to_top},on:{change:function(e){var n=t.tableSettings.paginate_to_top,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),n("el-radio-group",{attrs:{disabled:!t.has_pro,size:"mini"},model:{value:t.tableSettings.search_position,callback:function(e){t.$set(t.tableSettings,"search_position",e)},expression:"tableSettings.search_position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),n("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.nt_search_full_width,expression:"tableSettings.nt_search_full_width"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.nt_search_full_width)?t._i(t.tableSettings.nt_search_full_width,null)>-1:t.tableSettings.nt_search_full_width},on:{change:function(e){var n=t.tableSettings.nt_search_full_width,a=e.target,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 "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this, Then the search input will take all the available space (100% width)"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v("Select Sorting Method")]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.sorting_type,callback:function(e){t.$set(t.tableSettings,"sorting_type",e)},expression:"tableSettings.sorting_type"}},[n("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n Created at\n ")]),t._v(" "),n("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),n("el-radio-button",{attrs:{disabled:!t.config.table.isSortable,label:"manual_sort"}},[t._v("Manual Sort\n ")])],1),t._v(" "),"by_created_at"==t.tableSettings.sorting_type?n("div",{},[n("span",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.default_sorting,expression:"tableSettings.default_sorting"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"default_sorting",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),n("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?n("div",[n("label",[t._v(t._s(t.$t("Select Column"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column,expression:"tableSettings.sorting_column"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column",e.target.multiple?n:n[0])}}},t._l(t.config.columns,function(e){return n("option",{key:e.key,domProps:{value:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])}))]),t._v(" "),n("label",[t._v(t._s(t.$t("Sort Type"))+"\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column_by,expression:"tableSettings.sorting_column_by"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.tableSettings,"sorting_column_by",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),n("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):"manual_sort"==t.tableSettings.sorting_type?n("div",[n("p",[t._v("You can sort the table data from "),n("b",[t._v("Table Rows")]),t._v(" Manually. Click Sort Manually\n checkbox to sort the data using drag and drop feature")])]):t._e(),t._v(" "),t.tableSettings.sorting_type?n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.expand_type,callback:function(e){t.$set(t.tableSettings,"expand_type",e)},expression:"tableSettings.expand_type"}},[n("el-radio-button",{attrs:{label:"default"}},[t._v("\n Default\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n Expand First\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand the first row of the table when displayed on a device that\n hides any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n Expand All\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand all rows of the table when displayed on a device that hides\n any columns."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[n("el-radio-button",{attrs:{label:"first"}},[t._v("\n First Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-radio-button",{attrs:{label:"last"}},[t._v("\n Last Column\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),n("div",{staticClass:"form_group"},[n("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.extra_css_class,expression:"tableSettings.extra_css_class"}],staticClass:"form_control",attrs:{id:"extra_css_class",type:"text"},domProps:{value:t.tableSettings.extra_css_class},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"extra_css_class",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form_group"},[n("label",[t._v(t._s(t.$t("Sticky Header (beta)"))+" "),t.has_pro?t._e():n("span",[t._v("(Pro)")])]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.sticky_header,callback:function(e){t.$set(t.tableSettings,"sticky_header",e)},expression:"tableSettings.sticky_header"}},[t._v("Enable Sticky header for table\n ")]),t._v(" "),"yes"==t.tableSettings.sticky_header?[n("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n "),n("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sticky_header_offset,expression:"tableSettings.sticky_header_offset"}],staticClass:"form_control",attrs:{placeholder:"positive or negative number",type:"text"},domProps:{value:t.tableSettings.sticky_header_offset},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"sticky_header_offset",e.target.value)}}}),t._v(" "),n("small",[t._v("Please give positive/negative number or you can provide jquery element object\n ")]),t._v(" "),n("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.disable_sticky_on_mobile,callback:function(e){t.$set(t.tableSettings,"disable_sticky_on_mobile",e)},expression:"tableSettings.disable_sticky_on_mobile"}},[t._v("Disable Sticky header for mobile devices\n ")])]:t._e()],2)])],1),t._v(" "),t.design_tips.length?n("div",{staticClass:"ninja_design_tips"},[n("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,function(e){return n("li",[n("i",{staticClass:"el-icon-warning"}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e)}})])}))]):t._e(),t._v(" "),t.has_pro?t._e():n("div",{staticClass:"upgrade_box"},[n("a",{staticClass:"el-button el-button--danger el-button--small",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_studio"}},[n("i",{staticClass:"dashicons dashicons-shield"}),t._v(" "+t._s(t.$t("Upgrade To Pro to unlock advanced features"))+"\n ")])])],1)]),t._v(" "),n("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[e("b",[this._v("Note: ")]),this._v(" For preview purpose, you are seeing up to 25 latest rows here and and per page 10\n items if you enable paginate. Also note that, The table style may differ at the frontend as your\n theme may overwrite few css elements.\n ")])}]}},function(t,e,n){var a=n(0)(n(572),n(573),!1,null,null,null);t.exports=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"frontend-editing-settings",props:["config"],data:function(){return{fetching:!1,saving:!1,tableId:this.config.table.ID,columns:this.config.columns,settings:{allow_frontend:"no",user_roles_editing:[],user_roles_deleting:[]},editing_user_roles:{},user_roles:{},editing_items:{},required_items:{},default_values:{},appearance_settings:{},hasPro:!!window.ninja_table_admin.hasPro,isActivated:!!window.ninja_table_admin.activated_features.ninja_table_front_editor}},methods:{getEditSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_table_pro_get_editing_settings",table_id:this.tableId}).then(function(e){t.settings=e.data.settings,t.user_roles=e.data.user_roles,t.editing_user_roles=e.data.editing_user_roles,t.editing_items=e.data.editor_pref.editing_items,t.required_items=e.data.editor_pref.required_items,t.default_values=e.data.editor_pref.default_values,t.appearance_settings=e.data.editor_pref.appearance_settings}).fail(function(t){}).always(function(){t.fetching=!1})},updateSettings:function(){var t=this;this.saving=!0;var e={action:"ninja_table_pro_update_editing_settings",table_id:this.tableId,settings:this.settings,editing_items:this.editing_items,required_items:this.required_items,default_values:this.default_values,appearance_settings:this.appearance_settings};this.$post(e).then(function(e){t.$message({type:"success",message:e.data.message})}).fail(function(e){e.responseJSON&&e.responseJSON.data?t.$message({type:"error",message:e.responseJSON.data.message}):t.$message({type:"error",message:"Something is wrong! Please try again"})}).always(function(){t.saving=!1})}},mounted:function(){this.getEditSettings()}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",[t._v("\n Frontend Editing Settings\n ")]),t._v(" "),n("div",{staticClass:"heading_actions"},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),n("div",{staticClass:"editing_body"},[n("div",{staticClass:"editing_sub_section"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.allow_frontend,callback:function(e){t.$set(t.settings,"allow_frontend",e)},expression:"settings.allow_frontend"}},[t._v("\n Enable Frontend editing\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[n("div",{staticClass:"editing_sub_section"},[t._m(2),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Edit/Add Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can edit this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_editing,callback:function(e){t.$set(t.settings,"user_roles_editing",e)},expression:"settings.user_roles_editing"}},t._l(t.editing_user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}))],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n User Roles for Deleting Table Rows\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can delete this table rows from frontend. Please note, Adminstrators will have this access by default"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-checkbox-group",{model:{value:t.settings.user_roles_deleting,callback:function(e){t.$set(t.settings,"user_roles_deleting",e)},expression:"settings.user_roles_deleting"}},t._l(t.user_roles,function(e,a){return n("el-checkbox",{key:a,attrs:{label:a}},[t._v("\n "+t._s(e)+"\n ")])}))],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Own Data Only\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If this is enabled, users will see and edit only the rows that were created by them"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.own_data_only,callback:function(e){t.$set(t.settings,"own_data_only",e)},expression:"settings.own_data_only"}},[t._v("\n Users can see and edit/delete only own data\n ")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.own_data_only,expression:"settings.own_data_only == 'yes'"}],staticStyle:{"line-height":"120%"}},[t._v("\n Your Selected user roles only see their own data and manage those data. Other user roles can not see any data. If you want to show all the data without editing tools to all users, you can use the following shortcode:\n "),n("br"),n("pre",[n("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),n("div",{staticClass:"ninja_editing_pref"},[n("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[n("thead",[n("tr",[n("th",[t._v("Column Name")]),t._v(" "),n("th",[t._v("\n Editable?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Required?\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("th",[t._v("\n Default Value\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you would like to have some values pre-defined in editors (i.e. default editor values) please enter these here."}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),n("tbody",t._l(t.columns,function(e){return n("tr",{key:e.key},[n("th",[t._v(t._s(e.name))]),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[e.key],callback:function(n){t.$set(t.editing_items,e.key,n)},expression:"editing_items[column.key]"}})],1),t._v(" "),n("td",[n("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[e.key],callback:function(n){t.$set(t.required_items,e.key,n)},expression:"required_items[column.key]"}})],1),t._v(" "),n("td",[n("el-input",{attrs:{placeholder:"Default Value for "+e.name,size:"mini"},model:{value:t.default_values[e.key],callback:function(n){t.$set(t.default_values,e.key,n)},expression:"default_values[column.key]"}})],1)])}))])])]),t._v(" "),n("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),n("div",{staticClass:"form-group"},[n("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance_settings.alwaysShow,callback:function(e){t.$set(t.appearance_settings,"alwaysShow",e)},expression:"appearance_settings.alwaysShow"}},[t._v("\n Always Show Edit Icons\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you enable this then, Selected user roles can always see the edit buttons, Otherwise they will see a button to initialize editing"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Row Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: New row"},model:{value:t.appearance_settings.addText,callback:function(e){t.$set(t.appearance_settings,"addText",e)},expression:"appearance_settings.addText"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Rows Button Label\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit rows"},model:{value:t.appearance_settings.showText,callback:function(e){t.$set(t.appearance_settings,"showText",e)},expression:"appearance_settings.showText"}})],1)]),t._v(" "),n("div",{staticClass:"form_row_full"},[n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Add Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Add Data"},model:{value:t.appearance_settings.addModalLabel,callback:function(e){t.$set(t.appearance_settings,"addModalLabel",e)},expression:"appearance_settings.addModalLabel"}})],1),t._v(" "),n("div",{staticClass:"form_group form_row_half"},[n("label",[t._v("\n Edit Popup Heading\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("el-input",{attrs:{size:"mini",placeholder:"eg: Edit Data"},model:{value:t.appearance_settings.editModalLabel,callback:function(e){t.$set(t.appearance_settings,"editModalLabel",e)},expression:"appearance_settings.editModalLabel"}})],1)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",[t._v("\n Editor Icon Position\n "),n("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Edit icon postion. If you select Right then it will append the edit icons at the last column otherwise at the first column"}},[n("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),n("br"),t._v(" "),n("el-radio-group",{attrs:{size:"mini"},model:{value:t.appearance_settings.position,callback:function(e){t.$set(t.appearance_settings,"position",e)},expression:"appearance_settings.position"}},[n("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),n("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),n("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):n("div",[n("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),n("p",[t._v('Only "Default" data source tables can be editable')])]):n("div",[t._m(1)]):n("div",[t._m(0)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-main-editing"},[n("div",{staticClass:"ninja_header_editing"},[n("h2",{},[t._v("\n Frontend Editing Settings\n ")])]),t._v(" "),n("div",{staticClass:"editing_body text-center"},[n("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),n("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")]),t._v(" "),n("p",[t._v("Using this module, You can let your frontend users to add/edit/delete records based on user role. Also, You can separate the records by user submission")]),t._v(" "),n("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=frontend-editing&utm_term=upgrade"}},[t._v("Purchase Now")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("\n Custom Filters is introduced in version 3.2.0. Please update "),e("b",[this._v("Ninja tables pro")]),this._v(" plugin to use\n this feature\n ")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Data Editing Permissions")]),this._v(" "),e("p",[this._v("\n Please specific user roles to be able to edit/delete this table. Only selected user\n roles\n can edit/delete the data.\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Editing Column Options")]),this._v(" "),e("p",[this._v("\n Please Specify which columns can be editable from front-end and also, You can specify\n which\n columns will be required\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[this._v("Appearance Settings")]),this._v(" "),e("p",[this._v("\n You can set the Editing Component Labels and Appearances\n ")])])}]}},function(t,e,n){var a=n(0)(n(577),n(578),!1,function(t){n(575)},null,null);t.exports=a.exports},function(t,e,n){var a=n(576);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(2)("3cd470e0",a,!0,{})},function(t,e,n){(t.exports=n(1)(!1)).push([t.i,".el-message{z-index:999999!important;top:5px}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"TableApp",data:function(){return{addVisible:!1,integrity:window.ninja_table_admin.nt_integrity,admin_notices:window.ninja_table_admin.admin_notices}},mounted:function(){var t=this;window.ninjaTableBus.$on("show_pro_popup",function(e){t.addVisible=!0})}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrap"},[t._l(t.admin_notices,function(e,a){return n("el-alert",{key:a,attrs:{type:e.type,closable:e.closable,effect:"dark"}},[n("div",{domProps:{innerHTML:t._s(e.message)}})])}),t._v(" "),n("router-view"),t._v(" "),n("div",{staticClass:"pro_feature_dialog"},[n("el-dialog",{attrs:{title:"NinjaTable Pro Features",visible:t.addVisible},on:{"update:visible":function(e){t.addVisible=e}}},[n("div",{staticClass:"add_content"},[n("ul",{staticClass:"list_features"},[n("li",[t._v("Use Unlimited Colors in Your Tables")]),t._v(" "),n("li",[t._v("Add Media to Your Table Cells")]),t._v(" "),n("li",[t._v("Drag and Drop Table Data Sorting")]),t._v(" "),n("li",[t._v("Use Advanced Date Sorting")]),t._v(" "),n("li",[t._v("Colspan/Cell Merging Feature")]),t._v(" "),n("li",[t._v("Create Custom Filter UI in Table")]),t._v(" "),n("li",[t._v("Use Shortcode in your table cell")]),t._v(" "),n("li",[t._v("Use Advanced Data Filtering")]),t._v(" "),n("li",[t._v("Use Advanced Customization Features")]),t._v(" "),n("li",[t._v("Get VIP Support for any Issue")]),t._v(" "),n("li",[t._v("Incremental New Premium Features")]),t._v(" "),n("li",[t._v("And Many More feature")])])]),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Buy Pro Now")])])])],1),t._v(" "),"nope"==t.integrity?n("div",{staticStyle:{"margin-top":"90px",color:"rgb(236, 62, 62)","font-size":"16px","margin-bottom":"30px"}},[n("b",[t._v("Notice:")]),t._v(" Ninja Tables Pro integrity is not valid. You may downloaded from other sources. Please download ninja tables pro from "),n("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?integrity=1"}},[t._v("WPManageNinja")]),t._v(" to keep it upto date.\n ")]):t._e()],2)},staticRenderFns:[]}}]);
assets/js/ninja-tables-footable.3.1.0.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},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=579)}({10:function(t,e,n){var o=n(11),i=n(70),a=n(71),r="[object Null]",l="[object Undefined]",s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?l:r:s&&s in Object(t)?i(t):a(t)}},11:function(t,e,n){var o=n(5).Symbol;t.exports=o},21:function(t,e){t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i}},23:function(t,e,n){var o=n(10),i=n(6),a="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&o(t)==a}},26:function(t,e,n){var o=n(78);t.exports=function(t){return null==t?"":o(t)}},38:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(7))},4:function(t,e){var n=Array.isArray;t.exports=n},5:function(t,e,n){var o=n(38),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();t.exports=a},579:function(t,e,n){t.exports=n(580)},580:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,i=(window.jQuery,(o=null)||(o=jQuery({})),o),a={SetCellColor:function(t,e,n,o,i){t.length&&t.css("color",n.targetValueColor)},SetCellBgColor:function(t,e,n,o,i){t.length&&t.css("background-color",n.targetValueColor)},ResetCellColorToDefault:function(t,e,n,o,i){t.length&&t.css("color","initial")},ResetCellBgColorToDefault:function(t,e,n,o,i){t.length&&t.css("background-color","initial")},SetCellContent:function(t,e,n,o,i){t.length&&t.each(function(t,e){var o=jQuery(e);if(n.targetValue&&!o.hasClass("ninja_column_conditionally_transformed")){var i=n.targetValue.replace(/{row.([^\}]*)}/g,function(t){var e=t.substring(5,t.length-1),n="",i=e.indexOf("|");return-1!==i&&(n=e.substring(i+1,e.length),e=e.substring(0,i)),o.closest("tr").find("td.ninja_clmn_nm_"+e).html()||n});o.html(i).addClass("ninja_column_conditionally_transformed")}})},SetCellCssClass:function(t,e,n,o,i){t.length&&t.addClass(n.targetValue)},RemoveCellCssClass:function(t,e,n,o,i){t.length&&t.removeClass(n.targetValue)},SetRowColor:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("color",n.targetValueColor)},SetRowBgColor:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("background-color",n.targetValueColor)},ResetRowBgColor:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("background-color","initial")},ResetRowColorToDefault:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("color","initial")},SetRowCssClass:function(t,e,n,o,i){t.length&&t.closest("tr").addClass(n.targetValue)},RemoveRowCssClass:function(t,e,n,o,i){t.length&&t.closest("tr").removeClass(n.targetValue)},SetColumnColor:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").css("color",n.targetValueColor)},SetColumnBgColor:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").css("background-color",n.targetValueColor)},AddColumnCssClass:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").addClass(n.targetValue)},RemoveColumnCssClass:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").removeClass(n.targetValue)}};i.on("ninja-tables-apply-conditional-formatting",function(t,e,n){n&&n.columns&&n.columns.length&&jQuery.each(n.columns,function(t,n){n&&n.conditions&&n.conditions.length&&jQuery.each(n.conditions,function(o,i){if(i&&i.targetAction){var r=function(t){return t.targetAction.split("-").map(function(t){return t.substr(0,1).toUpperCase()+t.substr(1)}).join("")}(i);if(r in a){var l=function(t,e,n,o){var i=jQuery({}),a="ninja_column_"+n;"equal"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){return jQuery(e).text()==n.conditionalValue})}(t,a,e):"not-equal"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){return jQuery(e).text()!=n.conditionalValue})}(t,a,e):"contains"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e+":contains("+n.conditionalValue+")")}(t,a,e):"does-not-contain"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e+":not(:contains("+n.conditionalValue+"))")}(t,a,e):"less-than"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i<o.sortValue(n.conditionalValue)})}(t,a,e,o):"less-than-or-equal-to"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i<=o.sortValue(n.conditionalValue)})}(t,a,e,o):"greater-than"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i>o.sortValue(n.conditionalValue)})}(t,a,e,o):"greater-than-or-equal-to"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i>=o.sortValue(n.conditionalValue)})}(t,a,e,o):"between"==e.conditionalOperator&&(i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=jQuery(e).text(),a=n.conditionalValue,r=n.conditionalValue2;return i=o.sortValue(i),a=o.sortValue(n.conditionalValue),r=o.sortValue(n.conditionalValue2),i>=a&&i<=r})}(t,a,e,o));return i}(e,i,t,n);a[r](l,e,i,t,n)}}})})});n(581);var r=n(80),l=n(582),s=n.n(l),c=jQuery,u={initTables:function(){var t=this;this.ninjaFooTablesInstance=[];var e=jQuery("table.foo-table.ninja_footable");e.length&&c.each(e,function(e,n){var o=c(n),i=o.attr("data-ninja_table_instance"),a=window[i];a&&(a.instance_name=i,t.initTable(o,a))})},initTable:function(t,e){var n=this,o=n.getNinjaTableConfig(e);e.init_config=o,t.on("ready.ft.table",function(o,i){try{n.onReadyFooTable(t,e),jQuery(document).trigger("ninja_table_loaded",[t,e])}catch(t){}}).on("postdraw.ft.table",function(n,o){try{i.trigger("ninja-tables-apply-conditional-formatting",[t,e]),t.find("td:contains('#colspan#')").length&&t.find("td:contains('#colspan#')").remove()}catch(t){console.warn(t)}}).on("after.ft.filtering",function(e,n,o){if(o&&o.length)t.addClass("ninja_has_filter");else{var i=t.find(".ninja-custom-filter input, .ninja-custom-filter select");c.each(i,function(e,n){switch(n.type.toLowerCase()){case"text":case"password":case"textarea":case"hidden":n.value="";break;case"radio":case"checkbox":n.checked&&(n.checked=!1);break;case"select-one":n.selectedIndex=0;break;case"select-multiple":jQuery(document).trigger("ninja_table_trigger_multi_reset",{frm_element:n,$table:t})}}),t.removeClass("ninja_has_filter"),t.trigger("ninja_table_reset_filter")}}),e.settings.stack_config&&e.settings.stack_config.stackable&&c(document).trigger("ninja_table_init_stackables",{$table:t,tableConfig:e}),t.on("click",".ninja_table_do_column_filter",function(e){e.preventDefault();try{var n=c(this),o=FooTable.get(t).use(FooTable.Filtering),i=new FooTable.Query('"'+n.text()+'"',"AND",!1,!1);o.addFilter("nt_link_filter",i,[n.data("target_column")]),o.filter()}catch(t){console.warn(t)}}),e.chunks&&t.on("ready.ft.table",function(t,o){n.loadMoreData(e,o)});var a=FooTable.init(t,o,function(i){if(n.doAccesibility(t),t.trigger("ninja_table_loaded_once",{initConfig:o}),"ajax_table"!=e.render_type&&t.find("td:contains('#colspan#')").remove(),e.settings.sticky_header&&("yes"!=e.settings.disable_sticky_on_mobile||jQuery("body").width>767)){var a=parseInt(e.settings.sticky_header_offset);a||(a=0),jQuery("#footable_"+e.table_id).stickyTableHeaders({fixedOffset:a})}});this.ninjaFooTablesInstance||(this.ninjaFooTablesInstance=[]),this.ninjaFooTablesInstance[e.instance_name]=a,"ajax_table"!=e.render_type&&t.find("td:contains('#colspan#')").remove()},doAccesibility:function(t){if("yes"!=t.data("post_accessible")){var e="ninja_drop_down_id_"+t.attr("id");t.find(".footable-header th").attr("scope","col"),t.find(".footable-filtering .footable-filtering-search > .input-group > input").attr("aria-label","Search in Table"),t.find(".footable-filtering th").attr("scope","row"),t.find(".footable-filtering .footable-filtering-search > .input-group > .input-group-btn button.btn-primary").attr("type","submit"),t.find(".footable-filtering .footable-filtering-search > .input-group ul.dropdown-menu li.dropdown-header").attr("id",e),t.find(".footable-filtering .footable-filtering-search > .input-group ul.dropdown-menu").attr("role","group").attr("aria-labelledby",e),t.data("post_accessible","yes")}},loadMoreData:function(t,e){this.loadChuck(1,t,e)},loadChuck:function(t,e,n){var o=this,i=e.chunks;if(t<=i){var a={action:"wp_ajax_ninja_tables_public_action",table_id:e.table_id,target_action:"get-all-data",default_sorting:e.settings.default_sorting,skip_rows:e.settings.skip_rows,limit_rows:e.settings.limit_rows,chunk_number:t};e.editing&&"yes"==e.editing.check_editing&&(a.check_editing="yes","yes"==e.editing.own_data_only&&(a.own_only="yes")),c.get(window.ninja_footables.ajax_url,a).then(function(i){o.loadChuck(t+1,e,n),i&&n.rows.load(i,!0)})}},getNinjaTableConfig:function(t){var e=t.init_config,n=RegExp.prototype.test.bind(/(<([^>]+)>)/i),o=this;if(e.data_request_url&&(e.rows=c.get(e.data_request_url)),jQuery.each(t.columns,function(t,e){"date"==e.type?(e.sortValue=function(t){return(FooTable.is.element(t)||FooTable.is.jq(t))&&(t=jQuery(t).text()),t?(e.formatString&&(t=moment(t,e.formatString).valueOf()),t):0},e.type="numeric"):"numeric"==e.type?e.sortValue=function(t){if((FooTable.is.element(t)||FooTable.is.jq(t)||n(t))&&(t=jQuery(t).text()),!t)return"";(t="number"!=typeof t?t.replace(/[^0-9\.,-]+/g,""):t.toString())&&e.decimalSeparator&&(t=t.split(e.decimalSeparator).join(".")),t=t&&e.thousandSeparator?t.split(e.thousandSeparator).join(""):t.split(",").join("");var o=Number(t);return isNaN(o)?t:o}:(e.sortValue=o.textFilterValue,e.filterValue=o.textFilterValue,e.type="text"),e.formatter=function(t,n,i){return e.transformed_value&&e.transformed_value.trim()&&(t=o.getShortcodes(e.transformed_value,e,i)),t}}),e.columns=t.columns,t.editing&&t.editing.enabled&&(e.editing={enabled:t.editing.enabled,position:t.editing.position,alwaysShow:t.editing.alwaysShow,allowEdit:t.editing.editing,allowDelete:t.editing.deleting,allowView:!1,showText:'<span class="fooicon fooicon-pencil" aria-hidden="true"></span> '+t.editing.showText,hideText:t.editing.hideText,addText:t.editing.addText,column:{classes:"footable-editing",name:"____editing____",title:t.editing.editingColumnTitle,filterable:!1,sortable:!1},editRow:function(e){jQuery(document).trigger("ninja_table_edit_row",{row:e,self:this,tableConfig:t})},addRow:function(){jQuery(document).trigger("ninja_table_add_row",{self:this,tableConfig:t})},deleteRow:function(e){jQuery(document).trigger("ninja_table_delete_row",{row:e,self:this,tableConfig:t})}}),t.custom_filter_key){var i=t.custom_filter_key;e.components={filtering:FooTable[i]},e.filtering.enabled=!0}return e},onReadyFooTable:function(t,e){var n=e.custom_css;if(e.settings.extra_css_class&&t.addClass(e.settings.extra_css_class),jQuery.each(n,function(e,n){t.find("."+e).css(n)}),e.settings.hide_on_empty&&(t.on("expanded.ft.row",function(e,n,o){t.find("table.footable-details td:empty").parent().addClass("nt_has_hide")}),t.find("table.footable-details td:empty").parent().addClass("nt_has_hide")),jQuery(document).trigger("ninja_table_ready_init",{$table:t,tableConfig:e}),jQuery(document).trigger("ninja_table_ready_init_table_id_"+e.table_id,{$table:t,tableConfig:e}),jQuery(".ninja_filter_date_picker,.ninja_filter_date_range").length&&Pikaday){var o=jQuery(".ninja_filter_date_picker,.ninja_filter_date_range");jQuery.each(o,function(t,e){var n=jQuery(e);n.pikaday({format:n.data("date_format")})})}e.settings.paginate_to_top&&t.find(".footable-page-link").on("click",function(){jQuery("html, body").animate({scrollTop:jQuery("#footable_"+e.table_id).offset().top},200)}),t.removeClass("ninja_require_initial_hide"),t.parent().find(".footable-loader").remove(),t.find(".footable-filtering").find("input").attr("spellcheck","false").attr("autocorrect","off").attr("autocapitalize","off")},getShortcodes:function(t,e,n){var o=e.transformed_value;-1!=o.indexOf("{{")&&(o=Object(r.a)(o,{row:n}),o=s()(o));var i=o.match(/{row.([^\}]*)}/g);return i?(c.each(i,function(t,e){var i=e.substring(5,e.length-1),a="",r=i.indexOf("|");-1!==r&&(a=i.substring(r+1,i.length),i=i.substring(0,r)),o=n[i]?o.replace(e,n[i]):o.replace(e,a)}),o):o},textFilterValue:function(t){(FooTable.is.element(t)||FooTable.is.jq(t))&&-1!=(t=this.parser(t)).indexOf("<img ")&&(t=function(t){return t.replace(/(<img([\w\W]+?)\>)/g,function(t){return(t=t.match("(?:[^\\/]+)(\\.jpg|\\.png|\\.jpeg|\\.gif)"))?t[0]:t})}(t));var e=document.createElement("div");return e.innerHTML=t,(e.textContent||e.innerText||"").replace(/(\r\n\t|\n|\r\t|")/gm,"").trim()}};window.ninjaTableApp=u,jQuery(document).ready(function(){u.initTables()})},581:function(t,e){jQuery(document).on("ninja_table_init_stackables",function(t,e){var n=e.$table,o=e.tableConfig,i=o.settings.stack_config.stacks_devices;function a(t){return-1!==i.indexOf(t)}i&&n.on("expand.ft.row",function(t,e,n){a(e.breakpoints.current.name)&&(t.preventDefault(),n.__hidden__=FooTable.arr.map(n.cells,function(t){return t.column.visible?t:null}),n.__hidden__.length>0&&(n.$details.insertAfter(n.$el).children("td").first().attr("colspan",n.ft.columns.visibleColspan),FooTable.arr.each(n.__hidden__,function(t){t.collapse()})),n.$el.attr("data-expanded",!0),n.$toggle.removeClass("fooicon-plus").addClass("fooicon-minus"),n.expanded=!0,n.ft.raise("expanded.ft.row",[self]))}).on("draw.ft.table",function(t,e){a(e.breakpoints.current.name)?(n.addClass("ninja_stacked_table"),e.rows.collapse(),e.rows.expand(),function(t){t.data("stackable_edit_inited")||(t.on("click",".fooicon-pencil",function(e){if(t.hasClass("ninja_stacked_table")){var n=$(this).closest("tr.footable-detail-row").prev().data("__FooTableRow__"),i={ft:n.ft};jQuery(document).trigger("ninja_table_edit_row",{row:n,self:i,tableConfig:o})}}),t.on("click",".footable-delete",function(e){if(t.hasClass("ninja_stacked_table")){var n=$(this).closest("tr.footable-detail-row").prev().data("__FooTableRow__"),i={ft:n.ft};jQuery(document).trigger("ninja_table_delete_row",{row:n,self:i,tableConfig:o})}}),t.data("stackable_edit_inited","yes"))}(n),n.trigger("ninja_stacked_init")):(n.removeClass("ninja_stacked_table"),e.rows.collapse(),n.trigger("ninja_stacked_removed"))})})},582:function(t,e,n){var o=n(26),i=n(583),a=/&(?:amp|lt|gt|quot|#39);/g,r=RegExp(a.source);t.exports=function(t){return(t=o(t))&&r.test(t)?t.replace(a,i):t}},583:function(t,e,n){var o=n(79)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=o},6:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},7:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},70:function(t,e,n){var o=n(11),i=Object.prototype,a=i.hasOwnProperty,r=i.toString,l=o?o.toStringTag:void 0;t.exports=function(t){var e=a.call(t,l),n=t[l];try{t[l]=void 0;var o=!0}catch(t){}var i=r.call(t);return o&&(e?t[l]=n:delete t[l]),i}},71:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},78:function(t,e,n){var o=n(11),i=n(21),a=n(4),r=n(23),l=1/0,s=o?o.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-l?"-0":n}},79:function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},80:function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(81).polyfill(),e.a=function t(e,n,i,a){var r,l=t,s="";function c(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?c(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=a?0 in n?[]:[1]:n;for(r=0;r<n.length;r++){var u,f="",d=0,g="object"==o(n[r])?n[r]:{};(g=Object.assign({},i,g))[""]={"":n[r]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,function(t,e,n,i,a,r,b){d?f+=d&&!a||d>1?t:e:(s+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,function(t,e,n,o,i,a){return e?c(g,e):o?c(g,a):i?l(c(g,a),g):n?"":new Option(c(g,a)).innerHTML}),u=r),a?--d||(b=c(g,b),/^f/.test(void 0===b?"undefined":o(b))?s+=b.call(g,f,function(t){return l(t,g)}):s+=l(f,b,g,u),f=""):++d})}return s}},81:function(t,e,n){"use strict";function o(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=1;o<arguments.length;o++){var i=arguments[o];if(void 0!==i&&null!==i)for(var a=Object.keys(Object(i)),r=0,l=a.length;r<l;r++){var s=a[r],c=Object.getOwnPropertyDescriptor(i,s);void 0!==c&&c.enumerable&&(n[s]=i[s])}}return n}t.exports={assign:o,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}}}});
1
+ !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},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=579)}({10:function(t,e,n){var o=n(11),i=n(70),a=n(71),r="[object Null]",l="[object Undefined]",s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?l:r:s&&s in Object(t)?i(t):a(t)}},11:function(t,e,n){var o=n(5).Symbol;t.exports=o},21:function(t,e){t.exports=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i}},23:function(t,e,n){var o=n(10),i=n(6),a="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&o(t)==a}},26:function(t,e,n){var o=n(78);t.exports=function(t){return null==t?"":o(t)}},38:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(7))},4:function(t,e){var n=Array.isArray;t.exports=n},5:function(t,e,n){var o=n(38),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();t.exports=a},579:function(t,e,n){t.exports=n(580)},580:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,i=(window.jQuery,(o=null)||(o=jQuery({})),o),a={SetCellColor:function(t,e,n,o,i){t.length&&t.css("color",n.targetValueColor)},SetCellBgColor:function(t,e,n,o,i){t.length&&t.css("background-color",n.targetValueColor)},ResetCellColorToDefault:function(t,e,n,o,i){t.length&&t.css("color","initial")},ResetCellBgColorToDefault:function(t,e,n,o,i){t.length&&t.css("background-color","initial")},SetCellContent:function(t,e,n,o,i){t.length&&t.each(function(t,e){var o=jQuery(e);if(n.targetValue&&!o.hasClass("ninja_column_conditionally_transformed")){var i=n.targetValue.replace(/{row.([^\}]*)}/g,function(t){var e=t.substring(5,t.length-1),n="",i=e.indexOf("|");return-1!==i&&(n=e.substring(i+1,e.length),e=e.substring(0,i)),o.closest("tr").find("td.ninja_clmn_nm_"+e).html()||n});o.html(i).addClass("ninja_column_conditionally_transformed")}})},SetCellCssClass:function(t,e,n,o,i){t.length&&t.addClass(n.targetValue)},RemoveCellCssClass:function(t,e,n,o,i){t.length&&t.removeClass(n.targetValue)},SetRowColor:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("color",n.targetValueColor)},SetRowBgColor:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("background-color",n.targetValueColor)},ResetRowBgColor:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("background-color","initial")},ResetRowColorToDefault:function(t,e,n,o,i){t.length&&t.closest("tr").find("> td").css("color","initial")},SetRowCssClass:function(t,e,n,o,i){t.length&&t.closest("tr").addClass(n.targetValue)},RemoveRowCssClass:function(t,e,n,o,i){t.length&&t.closest("tr").removeClass(n.targetValue)},SetColumnColor:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").css("color",n.targetValueColor)},SetColumnBgColor:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").css("background-color",n.targetValueColor)},AddColumnCssClass:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").addClass(n.targetValue)},RemoveColumnCssClass:function(t,e,n,o,i){t.length&&t.closest("table").find("tbody tr td:nth-child("+(o+1)+")").removeClass(n.targetValue)}};i.on("ninja-tables-apply-conditional-formatting",function(t,e,n){n&&n.columns&&n.columns.length&&jQuery.each(n.columns,function(t,n){n&&n.conditions&&n.conditions.length&&jQuery.each(n.conditions,function(o,i){if(i&&i.targetAction){var r=function(t){return t.targetAction.split("-").map(function(t){return t.substr(0,1).toUpperCase()+t.substr(1)}).join("")}(i);if(r in a){var l=function(t,e,n,o){var i=jQuery({}),a="ninja_column_"+n;"equal"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){return jQuery(e).text()==n.conditionalValue})}(t,a,e):"not-equal"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){return jQuery(e).text()!=n.conditionalValue})}(t,a,e):"contains"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e+":contains("+n.conditionalValue+")")}(t,a,e):"does-not-contain"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e+":not(:contains("+n.conditionalValue+"))")}(t,a,e):"less-than"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i<o.sortValue(n.conditionalValue)})}(t,a,e,o):"less-than-or-equal-to"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i<=o.sortValue(n.conditionalValue)})}(t,a,e,o):"greater-than"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i>o.sortValue(n.conditionalValue)})}(t,a,e,o):"greater-than-or-equal-to"==e.conditionalOperator?i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=o.sortValue(jQuery(e).text());return i>=o.sortValue(n.conditionalValue)})}(t,a,e,o):"between"==e.conditionalOperator&&(i=function(t,e,n,o){return t.find("tbody ."+e).filter(function(t,e){var i=jQuery(e).text(),a=n.conditionalValue,r=n.conditionalValue2;return i=o.sortValue(i),a=o.sortValue(n.conditionalValue),r=o.sortValue(n.conditionalValue2),i>=a&&i<=r})}(t,a,e,o));return i}(e,i,t,n);a[r](l,e,i,t,n)}}})})});n(581);var r=n(80),l=n(582),s=n.n(l),c=jQuery,u={initTables:function(){var t=this;this.ninjaFooTablesInstance=[];var e=jQuery("table.foo-table.ninja_footable");e.length&&c.each(e,function(e,n){var o=c(n),i=o.attr("data-ninja_table_instance"),a=window[i];a&&(a.instance_name=i,t.initTable(o,a))})},initTable:function(t,e){var n=this,o=n.getNinjaTableConfig(e);e.init_config=o,t.on("ready.ft.table",function(o,i){try{n.onReadyFooTable(t,e),jQuery(document).trigger("ninja_table_loaded",[t,e])}catch(t){}}).on("postdraw.ft.table",function(n,o){try{i.trigger("ninja-tables-apply-conditional-formatting",[t,e]),t.find("td:contains('#colspan#')").length&&t.find("td:contains('#colspan#')").remove()}catch(t){console.warn(t)}}).on("after.ft.filtering",function(e,n,o){if(o&&o.length)t.addClass("ninja_has_filter");else{var i=t.find(".ninja-custom-filter input, .ninja-custom-filter select");c.each(i,function(e,n){switch(n.type.toLowerCase()){case"text":case"password":case"textarea":case"hidden":n.value="";break;case"radio":case"checkbox":n.checked&&(n.checked=!1);break;case"select-one":n.selectedIndex=0;break;case"select-multiple":jQuery(document).trigger("ninja_table_trigger_multi_reset",{frm_element:n,$table:t})}}),t.removeClass("ninja_has_filter"),t.trigger("ninja_table_reset_filter")}}),e.settings.stack_config&&e.settings.stack_config.stackable&&c(document).trigger("ninja_table_init_stackables",{$table:t,tableConfig:e}),t.on("click",".ninja_table_do_column_filter",function(e){e.preventDefault();try{var n=c(this),o=FooTable.get(t).use(FooTable.Filtering),i=new FooTable.Query('"'+n.text()+'"',"AND",!1,!1);o.addFilter("nt_link_filter",i,[n.data("target_column")]),o.filter()}catch(t){console.warn(t)}}),e.chunks&&t.on("ready.ft.table",function(t,o){n.loadMoreData(e,o)});var a=FooTable.init(t,o,function(i){if(n.doAccesibility(t),t.trigger("ninja_table_loaded_once",{initConfig:o}),"ajax_table"!=e.render_type&&t.find("td:contains('#colspan#')").remove(),e.settings.sticky_header&&("yes"!=e.settings.disable_sticky_on_mobile||jQuery("body").width>767)){var a=parseInt(e.settings.sticky_header_offset);a||(a=0),jQuery("#footable_"+e.table_id).stickyTableHeaders({fixedOffset:a})}});this.ninjaFooTablesInstance||(this.ninjaFooTablesInstance=[]),this.ninjaFooTablesInstance[e.instance_name]=a,"ajax_table"!=e.render_type&&t.find("td:contains('#colspan#')").remove()},doAccesibility:function(t){if("yes"!=t.data("post_accessible")){var e="ninja_drop_down_id_"+t.attr("id");t.find(".footable-header th").attr("scope","col"),t.find(".footable-filtering .footable-filtering-search > .input-group > input").attr("aria-label","Search in Table"),t.find(".footable-filtering th").attr("scope","row"),t.find(".footable-filtering .footable-filtering-search > .input-group > .input-group-btn button.btn-primary").attr("type","submit"),t.find(".footable-filtering .footable-filtering-search > .input-group ul.dropdown-menu li.dropdown-header").attr("id",e),t.find(".footable-filtering .footable-filtering-search > .input-group ul.dropdown-menu").attr("role","group").attr("aria-labelledby",e),t.data("post_accessible","yes")}},loadMoreData:function(t,e){this.loadChuck(1,t,e)},loadChuck:function(t,e,n){var o=this,i=e.chunks;if(t<=i){var a={action:"wp_ajax_ninja_tables_public_action",table_id:e.table_id,target_action:"get-all-data",default_sorting:e.settings.default_sorting,skip_rows:e.settings.skip_rows,limit_rows:e.settings.limit_rows,chunk_number:t};e.editing&&"yes"==e.editing.check_editing&&(a.check_editing="yes","yes"==e.editing.own_data_only&&(a.own_only="yes")),c.get(window.ninja_footables.ajax_url,a).then(function(i){o.loadChuck(t+1,e,n),i&&n.rows.load(i,!0)})}},getNinjaTableConfig:function(t){var e=t.init_config,n=RegExp.prototype.test.bind(/(<([^>]+)>)/i),o=this;if(e.data_request_url&&(e.rows=c.get(e.data_request_url)),jQuery.each(t.columns,function(t,e){"date"==e.type?(e.sortValue=function(t){return(FooTable.is.element(t)||FooTable.is.jq(t))&&(t=jQuery(t).text()),t?(e.formatString&&(t=moment(t,e.formatString).valueOf()),t):0},e.type="numeric"):"numeric"==e.type?e.sortValue=function(t){if((FooTable.is.element(t)||FooTable.is.jq(t)||n(t))&&(t=jQuery(t).text()),!t)return"";(t="number"!=typeof t?t.replace(/[^0-9\.,-]+/g,""):t.toString())&&e.decimalSeparator&&(t=t.split(e.decimalSeparator).join(".")),t=t&&e.thousandSeparator?t.split(e.thousandSeparator).join(""):t.split(",").join("");var o=Number(t);return isNaN(o)?t:o}:(e.sortValue=o.textFilterValue,e.filterValue=o.textFilterValue,e.type="text"),e.formatter=function(t,n,i){return e.transformed_value&&e.transformed_value.trim()&&(t=o.getShortcodes(e.transformed_value,e,i)),t}}),e.columns=t.columns,t.editing&&t.editing.enabled&&(e.editing={enabled:t.editing.enabled,position:t.editing.position,alwaysShow:t.editing.alwaysShow,allowEdit:t.editing.editing,allowDelete:t.editing.deleting,allowView:!1,showText:'<span class="fooicon fooicon-pencil" aria-hidden="true"></span> '+t.editing.showText,hideText:t.editing.hideText,addText:t.editing.addText,column:{classes:"footable-editing",name:"____editing____",title:t.editing.editingColumnTitle,filterable:!1,sortable:!1},editRow:function(e){jQuery(document).trigger("ninja_table_edit_row",{row:e,self:this,tableConfig:t})},addRow:function(){jQuery(document).trigger("ninja_table_add_row",{self:this,tableConfig:t})},deleteRow:function(e){jQuery(document).trigger("ninja_table_delete_row",{row:e,self:this,tableConfig:t})}}),t.custom_filter_key){var i=t.custom_filter_key;e.components={filtering:FooTable[i]},e.filtering.enabled=!0}return e},onReadyFooTable:function(t,e){var n=e.custom_css;if(e.settings.extra_css_class&&t.addClass(e.settings.extra_css_class),jQuery.each(n,function(e,n){t.find("."+e).css(n)}),e.settings.hide_on_empty&&(t.on("expanded.ft.row",function(e,n,o){t.find("table.footable-details td:empty").parent().addClass("nt_has_hide")}),t.find("table.footable-details td:empty").parent().addClass("nt_has_hide")),jQuery(document).trigger("ninja_table_ready_init",{$table:t,tableConfig:e}),jQuery(document).trigger("ninja_table_ready_init_table_id_"+e.table_id,{$table:t,tableConfig:e}),jQuery(".ninja_filter_date_picker,.ninja_filter_date_range").length&&Pikaday){var o=jQuery(".ninja_filter_date_picker,.ninja_filter_date_range");jQuery.each(o,function(t,e){var n=jQuery(e);n.pikaday({format:n.data("date_format")})})}e.settings.paginate_to_top&&t.find(".footable-page-link").on("click",function(){jQuery("html, body").animate({scrollTop:jQuery("#footable_"+e.table_id).offset().top},200)}),t.removeClass("ninja_require_initial_hide"),t.parent().find(".footable-loader").remove(),t.find(".footable-filtering").find("input").attr("spellcheck","false").attr("autocorrect","off").attr("autocapitalize","off")},getShortcodes:function(t,e,n){var o=e.transformed_value;-1!=o.indexOf("{{")&&(o=Object(r.a)(o,{row:n}),o=s()(o));var i=o.match(/{row.([^\}]*)}/g);return i?(c.each(i,function(t,e){var i=e.substring(5,e.length-1),a="",r=i.indexOf("|");-1!==r&&(a=i.substring(r+1,i.length),i=i.substring(0,r)),o=n[i]?o.replace(e,n[i]):o.replace(e,a)}),o):o},textFilterValue:function(t){(FooTable.is.element(t)||FooTable.is.jq(t))&&-1!=(t=this.parser(t)).indexOf("<img ")&&(t=function(t){return t.replace(/(<img([\w\W]+?)\>)/g,function(t){return(t=t.match("(?:[^\\/]+)(\\.jpg|\\.png|\\.jpeg|\\.gif)"))?t[0]:t})}(t));var e=document.createElement("div");return e.innerHTML=t,(e.textContent||e.innerText||"").replace(/(\r\n\t|\n|\r\t|")/gm,"").trim()}};window.ninjaTableApp=u,jQuery(document).ready(function(){u.initTables()})},581:function(t,e){jQuery(document).on("ninja_table_init_stackables",function(t,e){var n=e.$table,o=e.tableConfig,i=o.settings.stack_config.stacks_devices;function a(t){return-1!==i.indexOf(t)}i&&n.on("expand.ft.row",function(t,e,n){a(e.breakpoints.current.name)&&(t.preventDefault(),n.__hidden__=FooTable.arr.map(n.cells,function(t){return t.column.visible?t:null}),n.__hidden__.length>0&&(n.$details.insertAfter(n.$el).children("td").first().attr("colspan",n.ft.columns.visibleColspan),FooTable.arr.each(n.__hidden__,function(t){t.collapse()})),n.$el.attr("data-expanded",!0),n.$toggle.removeClass("fooicon-plus").addClass("fooicon-minus"),n.expanded=!0,n.ft.raise("expanded.ft.row",[self]))}).on("draw.ft.table",function(t,e){a(e.breakpoints.current.name)?(n.addClass("ninja_stacked_table"),e.rows.collapse(),e.rows.expand(),function(t){t.data("stackable_edit_inited")||(t.on("click",".fooicon-pencil",function(e){if(t.hasClass("ninja_stacked_table")){var n=$(this).closest("tr.footable-detail-row").prev().data("__FooTableRow__"),i={ft:n.ft};jQuery(document).trigger("ninja_table_edit_row",{row:n,self:i,tableConfig:o})}}),t.on("click",".footable-delete",function(e){if(t.hasClass("ninja_stacked_table")){var n=$(this).closest("tr.footable-detail-row").prev().data("__FooTableRow__"),i={ft:n.ft};jQuery(document).trigger("ninja_table_delete_row",{row:n,self:i,tableConfig:o})}}),t.data("stackable_edit_inited","yes"))}(n),n.trigger("ninja_stacked_init")):(n.removeClass("ninja_stacked_table"),o.init_config.expandAll?e.rows.expand():e.rows.collapse(),n.trigger("ninja_stacked_removed"))})})},582:function(t,e,n){var o=n(26),i=n(583),a=/&(?:amp|lt|gt|quot|#39);/g,r=RegExp(a.source);t.exports=function(t){return(t=o(t))&&r.test(t)?t.replace(a,i):t}},583:function(t,e,n){var o=n(79)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=o},6:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},7:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},70:function(t,e,n){var o=n(11),i=Object.prototype,a=i.hasOwnProperty,r=i.toString,l=o?o.toStringTag:void 0;t.exports=function(t){var e=a.call(t,l),n=t[l];try{t[l]=void 0;var o=!0}catch(t){}var i=r.call(t);return o&&(e?t[l]=n:delete t[l]),i}},71:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},78:function(t,e,n){var o=n(11),i=n(21),a=n(4),r=n(23),l=1/0,s=o?o.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-l?"-0":n}},79:function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},80:function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(81).polyfill(),e.a=function t(e,n,i,a){var r,l=t,s="";function c(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?c(t,e):t}n=Array.isArray(n)?n:n?[n]:[],n=a?0 in n?[]:[1]:n;for(r=0;r<n.length;r++){var u,f="",d=0,g="object"==o(n[r])?n[r]:{};(g=Object.assign({},i,g))[""]={"":n[r]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,function(t,e,n,i,a,r,b){d?f+=d&&!a||d>1?t:e:(s+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,function(t,e,n,o,i,a){return e?c(g,e):o?c(g,a):i?l(c(g,a),g):n?"":new Option(c(g,a)).innerHTML}),u=r),a?--d||(b=c(g,b),/^f/.test(void 0===b?"undefined":o(b))?s+=b.call(g,f,function(t){return l(t,g)}):s+=l(f,b,g,u),f=""):++d})}return s}},81:function(t,e,n){"use strict";function o(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=1;o<arguments.length;o++){var i=arguments[o];if(void 0!==i&&null!==i)for(var a=Object.keys(Object(i)),r=0,l=a.length;r<l;r++){var s=a[r],c=Object.getOwnPropertyDescriptor(i,s);void 0!==c&&c.enumerable&&(n[s]=i[s])}}return n}t.exports={assign:o,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}}}});
includes/NinjaTablesActivator.php CHANGED
@@ -84,5 +84,9 @@ class NinjaTablesActivator {
84
  update_option('_ninja_tables_settings_migration', true);
85
  update_option('_ninja_tables_sorting_migration', true);
86
  }
 
 
 
 
87
  }
88
  }
84
  update_option('_ninja_tables_settings_migration', true);
85
  update_option('_ninja_tables_sorting_migration', true);
86
  }
87
+
88
+ if(function_exists('ninja_table_clear_all_cache')) {
89
+ ninja_table_clear_all_cache();
90
+ }
91
  }
92
  }
includes/NinjaTablesMigration.php DELETED
@@ -1,121 +0,0 @@
1
- <?php namespace NinjaTables\Classes;
2
- abstract class NinjaTablesMigration {
3
-
4
- protected $cpt_name = 'ninja-table';
5
-
6
- abstract function getTables();
7
-
8
- abstract function migrateTable($tableId);
9
-
10
- /**
11
- * Create a table post type
12
- * @param string $title
13
- * @param string $description
14
- *
15
- * @return int|WP_Error
16
- */
17
- public function createTable($title = '', $description = '') {
18
- if(!$title) {
19
- $title = __( 'Temporary table name', 'ninja-tables' );
20
- }
21
- if(!$description) {
22
- $description = __( 'Temporary table description',
23
- 'ninja-tables' );
24
- }
25
-
26
- return wp_insert_post( array(
27
- 'post_title' =>$title,
28
- 'post_content' => $description,
29
- 'post_type' => $this->cpt_name,
30
- 'post_status' => 'publish'
31
- ));
32
- }
33
-
34
- public function addRows($tableId, $rows) {
35
- $time = current_time( 'mysql' );
36
- foreach ($rows as $row) {
37
- $data = array(
38
- 'table_id' => $tableId,
39
- 'attribute' => 'value',
40
- 'value' => json_encode($row),
41
- 'created_at' => $time,
42
- 'updated_at' => $time
43
- );
44
- ninja_tables_DbTable()->insert($data);
45
- }
46
- }
47
-
48
- public function initTableConfiguration($tableId, $headers) {
49
- // ninja_table_columns
50
- $ninjaTableColumns = array();
51
- foreach ( $headers as $key => $name ) {
52
- $ninjaTableColumns[] = array(
53
- 'key' => $key,
54
- 'name' => $name,
55
- 'breakpoints' => '',
56
- 'data_type' => 'text'
57
- );
58
- }
59
- update_post_meta( $tableId, '_ninja_table_columns',
60
- $ninjaTableColumns );
61
-
62
- // ninja_table_settings
63
- $ninjaTableSettings = ninja_table_get_table_settings( $tableId,
64
- 'admin' );
65
- update_post_meta( $tableId, '_ninja_table_settings',
66
- $ninjaTableSettings );
67
- ninjaTablesClearTableDataCache( $tableId );
68
- }
69
-
70
-
71
- /**
72
- * Create Table Header as an array where array keys will be sanitized and formatted column keys
73
- * @param $header array
74
- *
75
- * @return array
76
- */
77
- public function formatHeader( $header ) {
78
- $data = array();
79
- $column_counter = 1;
80
- foreach ( $header as $item ) {
81
- $item = trim( strip_tags( $item ) );
82
-
83
- // We'll slugify only if item is printable characters.
84
- // Otherwise we'll generate custom key for the item.
85
- // Printable chars as in ASCII printable chars.
86
- // Ref: http://www.catonmat.net/blog/my-favorite-regex/
87
-
88
- $key = preg_replace('/[^A-Za-z0-9]+/', '', $item);
89
-
90
- $key = sanitize_title( $key, 'ninja_column_' . $column_counter, 'display' );
91
-
92
- $counter = 1;
93
- while ( isset( $data[ $key ] ) ) {
94
- $key .= '_' . $counter;
95
- $counter ++;
96
- }
97
- $data[ $key ] = $item;
98
-
99
- $column_counter ++;
100
- }
101
- return $data;
102
- }
103
-
104
- /**
105
- * Prepare the table Rows combining with $headerKeys
106
- * @param $headerKeys array
107
- * @param $rows array
108
- *
109
- * @return array
110
- */
111
- public function prepareTableRows($headerKeys, $rows) {
112
- $formattedRows = array();
113
- foreach ($rows as $row) {
114
- if(count($headerKeys) == count($row)) {
115
- $formattedRows[] = array_combine($headerKeys, $row);
116
- }
117
- }
118
- return $formattedRows;
119
- }
120
- }
121
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/NinjaTablesSupsysticTableMigration.php DELETED
@@ -1,72 +0,0 @@
1
- <?php namespace NinjaTables\Classes;
2
-
3
- class NinjaTablesSupsysticTableMigration extends NinjaTablesMigration
4
- {
5
- public function getTables() {
6
- global $wpdb;
7
- $tables = array();
8
- try {
9
- $tables = $wpdb->get_results( "SELECT id as ID,title as post_title FROM {$wpdb->prefix}supsystic_tbl_tables", OBJECT );
10
- } catch (\Exception $exception) {
11
-
12
- }
13
-
14
- return $tables;
15
- }
16
-
17
- public function migrateTable($tableId) {
18
- try {
19
- global $wpdb;
20
- $table = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}supsystic_tbl_tables WHERE id = {$tableId}");
21
- if(!$table) {
22
- return new \WP_Error( 'broke', __('No Table Found with the selected table', 'ninja-tables') );
23
- }
24
-
25
- $tableRows = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}supsystic_tbl_rows WHERE table_id = {$tableId}");
26
-
27
- $rawHeaders = array_shift($tableRows);
28
- $raw_header = @unserialize($rawHeaders->data);
29
- $headerCells = ArrayHelper::get($raw_header, 'cells', array());
30
-
31
- $headers = array();
32
- foreach ($headerCells as $header_cell) {
33
- if($headerTitle = ArrayHelper::get($header_cell, 'fv', '')) {
34
- $headers[] = $headerTitle;
35
- } else {
36
- $headers[] = ArrayHelper::get($header_cell, 'd', '');
37
- }
38
- }
39
-
40
- $rows = array();
41
- foreach ($tableRows as $table_row) {
42
- $cell = @unserialize($table_row->data);
43
- $rowValues = ArrayHelper::get($cell, 'cells', array());
44
- if($rowValues) {
45
- $rowItem = array();
46
- foreach ($rowValues as $row_value) {
47
- if($value = ArrayHelper::get($row_value, 'fv', '')) {
48
- $rowItem[] = $value;
49
- } else {
50
- $rowItem[] = ArrayHelper::get($row_value, 'd', '');
51
- }
52
- }
53
- $rows[] = $rowItem;
54
- }
55
-
56
- }
57
-
58
-
59
- $headerRow = $this->formatHeader($headers);
60
- $formattedRows = $this->prepareTableRows(array_keys($headerRow), $rows);
61
-
62
- $tableTitle = $table->title .' (Imported From Supsystic Table)';
63
-
64
- $ninjaTableId = $this->createTable($tableTitle);
65
- $this->initTableConfiguration($ninjaTableId, $headerRow);
66
- $this->addRows($ninjaTableId, $formattedRows);
67
- return $ninjaTableId;
68
- } catch (\Exception $exception) {
69
- return new \WP_Error( 'broke', $exception->getMessage() );
70
- }
71
- }
72
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/NinjaTablesTablePressMigration.php DELETED
@@ -1,75 +0,0 @@
1
- <?php namespace NinjaTables\Classes;
2
-
3
- class NinjaTablesTablePressMigration extends NinjaTablesMigration
4
- {
5
- public function getTables()
6
- {
7
- $arguments = array(
8
- 'post_type' => 'tablepress_table',
9
- 'post_status' => 'any',
10
- 'numberposts' => -1
11
- );
12
-
13
- $tables = get_posts($arguments);
14
-
15
- $formattedTables = array();
16
-
17
- foreach ($tables as $table) {
18
- $is_already_imported = get_post_meta($table->ID, '_imported_to_ninja_table', true);
19
- $tableTitle = $table->post_title;
20
- if($is_already_imported) {
21
- $tableTitle .= ' (Already Imported)';
22
- }
23
- $temp = array(
24
- 'ID' => $table->ID,
25
- 'post_title' => $tableTitle,
26
- 'ninja_table_id' => $is_already_imported
27
- );
28
- $formattedTables[] = $temp;
29
- }
30
-
31
- return $formattedTables;
32
- }
33
-
34
- public function migrateTable($tableId)
35
- {
36
- try {
37
- $table = get_post($tableId);
38
-
39
- $tableRows = json_decode($table->post_content, true);
40
-
41
- $tableSettings = get_post_meta($table->ID, '_tablepress_table_options', true);
42
-
43
- $tableSettings = json_decode($tableSettings, true);
44
-
45
- if ($tableSettings['table_head']) {
46
- $headerRow = array_values(array_shift($tableRows));
47
-
48
- $headerRow = $this->formatHeader($headerRow);
49
- } else {
50
- $headerRow = array();
51
-
52
- $columnCount = count(array_pop(array_reverse($tableRows)));
53
-
54
- for ($i = 0; $i < $columnCount; $i++) {
55
- $headerName = 'Ninja Column '.($i + 1);
56
- $headerKey = 'ninja_column_'.($i + 1);
57
- $headerRow[$headerKey] = $headerName;
58
- }
59
- }
60
-
61
- $formattedRows = $this->prepareTableRows(array_keys($headerRow), $tableRows);
62
- $formattedRows = array_reverse($formattedRows);
63
-
64
- $tableTitle = $table->post_title.' (Imported From Table Press)';
65
-
66
- $ninjaTableId = $this->createTable($tableTitle);
67
- $this->initTableConfiguration($ninjaTableId, $headerRow);
68
- $this->addRows($ninjaTableId, $formattedRows);
69
- update_post_meta($tableId, '_imported_to_ninja_table', $ninjaTableId);
70
- return $ninjaTableId;
71
- } catch ( \Exception $exception) {
72
- return new \WP_Error('broke', $exception->getMessage());
73
- }
74
- }
75
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/NinjaTablesUltimateTableMigration.php DELETED
@@ -1,56 +0,0 @@
1
- <?php namespace NinjaTables\Classes;
2
-
3
- class NinjaTablesUltimateTableMigration extends NinjaTablesMigration
4
- {
5
- public function getTables() {
6
- global $wpdb;
7
- $tables = array();
8
- try {
9
- $tables = $wpdb->get_results( "SELECT id as ID,title as post_title FROM {$wpdb->prefix}ultimatetables", OBJECT );
10
- } catch (\Exception $exception) {
11
-
12
- }
13
- return $tables;
14
- }
15
-
16
- public function migrateTable($tableId) {
17
- try {
18
- global $wpdb;
19
- $table = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}ultimatetables WHERE id = {$tableId}");
20
- if(!$table) {
21
- return new \WP_Error( 'broke', __('No Ultimate Table Found with the selected table', 'ninja-tables') );
22
- }
23
- $tableBody = htmlspecialchars_decode( esc_html( $table->ivalues ) );
24
- $items = explode( "t6r4ndt6r4ndt6r4ndt6r4ndt6r4ndt6r4ndt6r4ndkh6gfd57hgg", $tableBody );
25
-
26
- $columns = $table->width;
27
- $rows = $table->height;
28
-
29
- $tableRows = array();
30
- $counter = 0;
31
- foreach ( $items as $index => $item ) {
32
- if($index == ($rows * $columns ) + $columns ) {
33
- break;
34
- }
35
- if( ( $index % $columns ) == 0 ) {
36
- $counter++;
37
- }
38
- $tableRows[$counter][] = $item;
39
- }
40
-
41
- $headerRow = array_shift($tableRows);
42
-
43
- $headerRow = $this->formatHeader($headerRow);
44
- $formattedRows = $this->prepareTableRows(array_keys($headerRow), $tableRows);
45
- $formattedRows = array_reverse($formattedRows);
46
- $tableTitle = $table->title .' (Imported From Ultimate Table)';
47
-
48
- $ninjaTableId = $this->createTable($tableTitle);
49
- $this->initTableConfiguration($ninjaTableId, $headerRow);
50
- $this->addRows($ninjaTableId, $formattedRows);
51
- return $ninjaTableId;
52
- } catch (\Exception $exception) {
53
- return new \WP_Error( 'broke', $exception->getMessage() );
54
- }
55
- }
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/libs/csv/src/Modifier/StreamIterator.php DELETED
@@ -1,334 +0,0 @@
1
- <?php
2
- /**
3
- * This file is part of the League.csv library
4
- *
5
- * @license http://opensource.org/licenses/MIT
6
- * @link https://github.com/thephpleague/csv/
7
- * @version 8.2.2
8
- * @package League.csv
9
- *
10
- * For the full copyright and license information, please view the LICENSE
11
- * file that was distributed with this source code.
12
- */
13
- namespace League\Csv\Modifier;
14
-
15
- use InvalidArgumentException;
16
- use Iterator;
17
- use SplFileObject;
18
-
19
- /**
20
- * A Stream Iterator
21
- *
22
- * @package League.csv
23
- * @since 8.2.0
24
- * @internal used internally to iterate over a stream resource
25
- *
26
- */
27
- class StreamIterator implements Iterator
28
- {
29
- /**
30
- * Stream pointer
31
- *
32
- * @var resource
33
- */
34
- protected $stream;
35
-
36
- /**
37
- * Current iterator value
38
- *
39
- * @var mixed
40
- */
41
- protected $current_line;
42
-
43
- /**
44
- * Current iterator key
45
- *
46
- * @var int
47
- */
48
- protected $current_line_number;
49
-
50
- /**
51
- * Flags for the StreamIterator
52
- *
53
- * @var int
54
- */
55
- protected $flags = 0;
56
-
57
- /**
58
- * the field delimiter (one character only)
59
- *
60
- * @var string
61
- */
62
- protected $delimiter = ',';
63
-
64
- /**
65
- * the field enclosure character (one character only)
66
- *
67
- * @var string
68
- */
69
- protected $enclosure = '"';
70
-
71
- /**
72
- * the field escape character (one character only)
73
- *
74
- * @var string
75
- */
76
- protected $escape = '\\';
77
-
78
- /**
79
- * New instance
80
- *
81
- * @param resource $stream stream type resource
82
- */
83
- public function __construct($stream)
84
- {
85
- if (!is_resource($stream) || 'stream' !== get_resource_type($stream)) {
86
- throw new InvalidArgumentException(sprintf(
87
- 'Expected resource to be a stream, received %s instead',
88
- is_object($stream) ? get_class($stream) : gettype($stream)
89
- ));
90
- }
91
-
92
- $data = stream_get_meta_data($stream);
93
- if (!$data['seekable']) {
94
- throw new InvalidArgumentException('The stream must be seekable');
95
- }
96
-
97
- $this->stream = $stream;
98
- }
99
-
100
- /**
101
- * Set CSV control
102
- *
103
- * @see http://php.net/manual/en/splfileobject.setcsvcontrol.php
104
- *
105
- * @param string $delimiter
106
- * @param string $enclosure
107
- * @param string $escape
108
- */
109
- public function setCsvControl($delimiter = ',', $enclosure = '"', $escape = '\\')
110
- {
111
- $this->delimiter = $this->filterControl($delimiter, 'delimiter');
112
- $this->enclosure = $this->filterControl($enclosure, 'enclosure');
113
- $this->escape = $this->filterControl($escape, 'escape');
114
- }
115
-
116
- /**
117
- * Filter Csv control character
118
- *
119
- * @param string $char Csv control character
120
- * @param string $type Csv control character type
121
- *
122
- * @throws InvalidArgumentException If the Csv control character is not one character only.
123
- *
124
- * @return string
125
- */
126
- private function filterControl($char, $type)
127
- {
128
- if (1 == strlen($char)) {
129
- return $char;
130
- }
131
-
132
- throw new InvalidArgumentException(sprintf('The %s character must be a single character', $type));
133
- }
134
-
135
- /**
136
- * Set Flags
137
- *
138
- * @see http://php.net/manual/en/splfileobject.setflags.php
139
- *
140
- * @param int $flags
141
- */
142
- public function setFlags($flags)
143
- {
144
- if (false === filter_var($flags, FILTER_VALIDATE_INT, array('options' => array('min_range' => 0)))) {
145
- throw new InvalidArgumentException('The flags must be a positive integer');
146
- }
147
-
148
- $this->flags = $flags;
149
- }
150
-
151
- /**
152
- * Write a field array as a CSV line
153
- *
154
- * @see http://php.net/manual/en/splfileobject.fputcsv.php
155
- *
156
- * @param array $fields
157
- * @param string $delimiter
158
- * @param string $enclosure
159
- * @param string $escape
160
- *
161
- * @return int
162
- */
163
- public function fputcsv(array $fields, $delimiter = ',', $enclosure = '"', $escape = '\\')
164
- {
165
- return fputcsv(
166
- $this->stream,
167
- $fields,
168
- $this->filterControl($delimiter, 'delimiter'),
169
- $this->filterControl($enclosure, 'enclosure'),
170
- $this->filterControl($escape, 'escape')
171
- );
172
- }
173
-
174
- /**
175
- * Retrieves the current line of the file.
176
- *
177
- * @return mixed
178
- */
179
- public function current()
180
- {
181
- if (false !== $this->current_line) {
182
- return $this->current_line;
183
- }
184
-
185
- if (($this->flags & SplFileObject::READ_CSV) == SplFileObject::READ_CSV) {
186
- $this->current_line = $this->getCurrentRecord();
187
-
188
- return $this->current_line;
189
- }
190
-
191
- $this->current_line = $this->getCurrentLine();
192
-
193
- return $this->current_line;
194
- }
195
-
196
- /**
197
- * Retrieves the current line as a CSV Record
198
- *
199
- * @return array
200
- */
201
- protected function getCurrentRecord()
202
- {
203
- do {
204
- $ret = fgetcsv($this->stream, 0, $this->delimiter, $this->enclosure, $this->escape);
205
- } while ($this->flags & SplFileObject::SKIP_EMPTY && $ret !== false && $ret[0] === null);
206
-
207
- return $ret;
208
- }
209
-
210
- /**
211
- * Retrieves the current line as a string
212
- *
213
- * @return string
214
- */
215
- protected function getCurrentLine()
216
- {
217
- do {
218
- $line = fgets($this->stream);
219
- } while ($this->flags & SplFileObject::SKIP_EMPTY && $line !== false && rtrim($line, "\r\n") !== '');
220
-
221
- return $line;
222
- }
223
-
224
- /**
225
- * Get line number
226
- *
227
- * @return int
228
- */
229
- public function key()
230
- {
231
- return $this->current_line_number;
232
- }
233
-
234
- /**
235
- * Read next line
236
- */
237
- public function next()
238
- {
239
- $this->current_line = false;
240
- $this->current_line_number++;
241
- }
242
-
243
- /**
244
- * Rewind the file to the first line
245
- */
246
- public function rewind()
247
- {
248
- rewind($this->stream);
249
- $this->current_line_number = 0;
250
- $this->current_line = false;
251
- if ($this->flags & SplFileObject::READ_AHEAD) {
252
- $this->current();
253
- }
254
- }
255
-
256
- /**
257
- * Not at EOF
258
- *
259
- * @return bool
260
- */
261
- public function valid()
262
- {
263
- if ($this->flags & SplFileObject::READ_AHEAD) {
264
- return $this->current() !== false;
265
- }
266
-
267
- return !feof($this->stream);
268
- }
269
-
270
- /**
271
- * Gets line from file
272
- *
273
- * @see http://php.net/manual/en/splfileobject.fgets.php
274
- *
275
- * @return string
276
- */
277
- public function fgets()
278
- {
279
- if (false !== $this->current_line) {
280
- $this->next();
281
- }
282
- return $this->current_line = $this->getCurrentLine();
283
- }
284
-
285
- /**
286
- * Output all remaining data on a file pointer
287
- *
288
- * @see http://php.net/manual/en/splfileobject.fpatssthru.php
289
- *
290
- * @return int
291
- */
292
- public function fpassthru()
293
- {
294
- return fpassthru($this->stream);
295
- }
296
-
297
- /**
298
- * Seek to a position
299
- *
300
- * @see http://php.net/manual/en/splfileobject.fseek.php
301
- *
302
- * @param int $offset
303
- * @param int $whence
304
- *
305
- * @return int
306
- */
307
- public function fseek($offset, $whence = SEEK_SET)
308
- {
309
- return fseek($this->stream, $offset, $whence);
310
- }
311
-
312
- /**
313
- * Write to stream
314
- *
315
- * @see http://php.net/manual/en/splfileobject.fwrite.php
316
- *
317
- * @param string $str
318
- * @param int $length
319
- *
320
- * @return int
321
- */
322
- public function fwrite($str, $length = 0)
323
- {
324
- return fwrite($this->stream, $str, $length);
325
- }
326
-
327
- /**
328
- * close the file pointer
329
- */
330
- public function __destruct()
331
- {
332
- $this->stream = null;
333
- }
334
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/ninja_tables-global-functions.php CHANGED
@@ -738,3 +738,16 @@ function ninjaTableInsertDataToTable($tableId, $values, $header)
738
  function ninjaTablePerChunk($table_id = false) {
739
  return apply_filters('ninja_table_per_chunk', 4000, $table_id);
740
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
738
  function ninjaTablePerChunk($table_id = false) {
739
  return apply_filters('ninja_table_per_chunk', 4000, $table_id);
740
  }
741
+
742
+
743
+ function ninja_table_clear_all_cache()
744
+ {
745
+ $tables = ninjaDB()->table('posts')
746
+ ->select('ID')
747
+ ->where('post_type', 'ninja-table')
748
+ ->get();
749
+ foreach ($tables as $table) {
750
+ ninjaTablesClearTableDataCache($table->ID);
751
+ }
752
+ return true;
753
+ }
ninja-tables.php CHANGED
@@ -13,10 +13,10 @@
13
  * @package ninja-tables
14
  *
15
  * @wordpress-plugin
16
- * Plugin Name: Ninja Tables - Best WP Data Table Plugin for WordPress
17
  * Plugin URI: https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/
18
  * Description: The Easiest & Fastest Responsive Table Plugin on WordPress. Multiple templates, drag-&-drop live table builder, multiple color scheme, and styles.
19
- * Version: 3.4.3
20
  * Author: WPManageNinja LLC
21
  * Author URI: https://wpmanageninja.com/
22
  * License: GPL-2.0+
@@ -33,7 +33,7 @@ if (!defined('WPINC')) {
33
  define('NINJA_TABLES_DIR_URL', plugin_dir_url(__FILE__));
34
  define('NINJA_TABLES_DIR_PATH', plugin_dir_path(__FILE__));
35
  define('NINJA_TABLES_PUBLIC_DIR_URL', NINJA_TABLES_DIR_URL.'public/');
36
- define('NINJA_TABLES_VERSION', '3.4.3');
37
  define('NINJA_TABLES_ASSET_VERSION', '3.1.0');
38
 
39
  $ninja_table_instances = array();
13
  * @package ninja-tables
14
  *
15
  * @wordpress-plugin
16
+ * Plugin Name: Ninja Tables
17
  * Plugin URI: https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/
18
  * Description: The Easiest & Fastest Responsive Table Plugin on WordPress. Multiple templates, drag-&-drop live table builder, multiple color scheme, and styles.
19
+ * Version: 3.4.5
20
  * Author: WPManageNinja LLC
21
  * Author URI: https://wpmanageninja.com/
22
  * License: GPL-2.0+
33
  define('NINJA_TABLES_DIR_URL', plugin_dir_url(__FILE__));
34
  define('NINJA_TABLES_DIR_PATH', plugin_dir_path(__FILE__));
35
  define('NINJA_TABLES_PUBLIC_DIR_URL', NINJA_TABLES_DIR_URL.'public/');
36
+ define('NINJA_TABLES_VERSION', '3.4.5');
37
  define('NINJA_TABLES_ASSET_VERSION', '3.1.0');
38
 
39
  $ninja_table_instances = array();
public/dataProviders/CsvProvider.php DELETED
@@ -1,99 +0,0 @@
1
- <?php
2
-
3
- namespace NinjaTable\FrontEnd\DataProviders;
4
-
5
- use League\Csv\Reader;
6
-
7
- class CsvProvider
8
- {
9
- public function boot()
10
- {
11
- add_filter('ninja_tables_get_table_settings', array($this, 'getTableSettings'));
12
- add_filter('ninja_tables_get_table_data', array($this, 'getTableData'), 10, 5);
13
- add_filter('ninja_tables_fetching_table_rows_csv', array($this, 'data'), 10, 5);
14
- }
15
-
16
- public function getTableSettings($table)
17
- {
18
- try {
19
- $provider = sanitize_title(
20
- get_post_meta($table->ID, '_ninja_tables_data_provider', true), 'default', 'display'
21
- );
22
-
23
- if (in_array($provider, array('csv', 'google-csv'))) {
24
- $table->isEditable = false;
25
- $table->dataSourceType = 'external';
26
- $table->remoteURL = get_post_meta($table->ID, '_ninja_tables_data_provider_url', true);
27
- $table->isEditableMessage = 'Your table columns were initially created from the external data source url so if you have made any changes in that resource (added/removed columns) then you may re-sync the settings to reflect the changes here. Otherwise you\'ll see data according to old column settings.';
28
- }
29
-
30
- return $table;
31
-
32
- } catch (\Exception $e) {
33
- return $table;
34
- }
35
- }
36
-
37
- public function getTableData($tableId, $data, $total, $perPage, $offset)
38
- {
39
- try {
40
- $newData = [];
41
- $url = get_post_meta($tableId, '_ninja_tables_data_provider_url', true);
42
- foreach ($this->getDataFromCsv($tableId, $url) as $key => $value) {
43
- $newData[] = array(
44
- 'id' => ++$key,
45
- 'values' => $value,
46
- 'position' => $key,
47
- );
48
- }
49
-
50
- if ($totalNewData = count($newData)) {
51
- return array(
52
- array_slice($newData, $offset, $perPage),
53
- $totalNewData
54
- );
55
- }
56
-
57
- return array($data, $total);
58
-
59
- } catch (\Exception $e) {
60
- return array($data, $total);
61
- }
62
- }
63
-
64
- public function data($data, $tableId, $defaultSorting, $disableCache, $limit)
65
- {
66
- $url = get_post_meta($tableId, '_ninja_tables_data_provider_url', true);
67
-
68
- return $url ? $this->getDataFromCsv($tableId, $url) : $data;
69
- }
70
-
71
- protected function getDataFromCsv($tableId, $url)
72
- {
73
- $columns = array();
74
- foreach(ninja_table_get_table_columns($tableId) as $column) {
75
- $columns[$column['original_name']] = $column;
76
- }
77
-
78
- return array_map(function($row) use ($columns) {
79
- $newRow = array();
80
- foreach ($columns as $key => $column) {
81
- $newRow[$column['key']] = $row[$key];
82
- }
83
- return $newRow;
84
- }, $this->csvToArray($url));
85
- }
86
-
87
- protected function csvToArray($url)
88
- {
89
- $reader = Reader::createFromString(file_get_contents($url));
90
-
91
- $data = array();
92
- $header = $reader->fetchOne();
93
- foreach ($reader->setOffset(1)->fetch() as $row) {
94
- $data[] = array_combine($header, $row);
95
- }
96
-
97
- return $data;
98
- }
99
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: table, Data Tables, WP Data tables, WordPress table Plugin, Table Grid, w
5
  Requires at least: 4.5
6
  Requires PHP: 5.4 or greater
7
  Tested up to: 5.2.1
8
- Stable tag: 3.4.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -239,6 +239,13 @@ Yes, For that please check pro add one <a href="https://wpmanageninja.com/downlo
239
 
240
  == Changelog ==
241
 
 
 
 
 
 
 
 
242
  =3.4.3 ( Date: May 27, 2019 ) =
243
  - Fix Shortcode rendering issue
244
  - Added few UI changes
5
  Requires at least: 4.5
6
  Requires PHP: 5.4 or greater
7
  Tested up to: 5.2.1
8
+ Stable tag: 3.4.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
239
 
240
  == Changelog ==
241
 
242
+ =3.4.5 (Date: June 01, 2019) =
243
+ - Fix issue for csv export for backend
244
+ - Integrity issue resolved
245
+ - Expand issue resolved for stacks table
246
+ - Remove all cache option added
247
+ - Shortcode renering issue resolved
248
+
249
  =3.4.3 ( Date: May 27, 2019 ) =
250
  - Fix Shortcode rendering issue
251
  - Added few UI changes