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

Version Description

(Date: October 13, 2022) = * Fixes responsive issue for drag & drop table * Added global importer for drag & drop table

Download this release

Release Info

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

Code changes from version 4.3.0 to 4.3.1

assets/css/ninja-tables-admin.css CHANGED
@@ -1 +1 @@
1
- .ninja_main_nav{background:#fff;display:block;height:60px;margin-left:-22px;margin-top:-10px;overflow:hidden;padding-right:40px;width:100%}.ninja_main_nav .plugin-name{color:#6e6e6e;float:left;font-size:16px;margin:22px 20px 20px}.ninja_main_nav .plugin-name img{transform:translateY(-27%)}.ninja_main_nav .plugin-name:focus{outline:none}.ninja_main_nav .plugin-name .pro{font-weight:700;margin-left:5px;position:absolute}.ninja_main_nav .buy_pro_tab a{background:#e04f5e;color:#fff;padding:10px 25px;text-decoration:none}.ninja_main_nav .buy_pro_tab a:focus{box-shadow:none}.ninja_main_nav .buy_pro_tab a:hover{color:#fff}.pageLoading{align-items:center;display:flex;flex-direction:column;height:150px;justify-content:center;text-align:center}.pageLoading .fooicon{font-size:20px}.btn-flex{align-items:center;display:inline-flex!important}.btn-flex .fooicon{margin-left:5px}h4{font-size:18px;margin-bottom:0}a.btn{text-decoration:none}.modal-open .modal{z-index:1000}label.form_group{padding-left:10px;padding-top:5px}.editr--toolbar .dashboard{box-sizing:border-box;padding:0 .5rem}.editr--toolbar .dashboard .dropzone{background:#f6f6f6;max-height:86px;min-height:50px!important}.compact .nt_cell{-ms-text-overflow:ellipsis!important}.compact .nt_cell,.compact .nt_cell *{overflow:hidden;text-overflow:ellipsis!important;white-space:nowrap}.compact .nt_cell *{font-size:14px;margin:0;padding:0}.cell .cell-content img{height:auto;max-width:100%}.paginate{align-items:center;border-bottom:2px solid #ccc;display:flex;flex-wrap:nowrap;justify-content:space-between;margin-top:25px;padding-bottom:8px}.btn.pag-btn{background:#b2ccda;color:#fff}.btn.pag-btn:hover{opacity:.9}.btn.pag-btn:focus,.btn.pag-btn:hover{box-shadow:none!important;color:#fff;outline:none!important}.text-right{text-align:right}label{display:inline-block;font-weight:700;margin-bottom:5px;max-width:100%}.form-control{background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);color:#555;display:block;font-size:14px;height:34px;line-height:1.42857143;padding:6px 12px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}.form-control:focus{border-color:#66afe9;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);outline:0}.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{border-bottom-right-radius:0;border-top-right-radius:0;float:left}.input-group .input-btn{width:1%}.input-group .input-btn .btn{border-bottom-left-radius:0;border-top-left-radius:0}.nav{list-style:none;margin-bottom:0;padding-left:0}.nav:after,.nav:before{content:" ";display:table}.nav:after{clear:both}.nav>li,.nav>li>a{display:block;position:relative}.nav>li>a{padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{background-color:#eee;text-decoration:none}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{background-color:transparent;color:#777;cursor:not-allowed;text-decoration:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{border:1px solid transparent;border-radius:4px 4px 0 0;line-height:1.42857143;margin-right:2px;text-decoration:none}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li>a:focus{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{background-color:#fff;border:1px solid;border-color:#ddd #ddd transparent;color:#555;cursor:default}.tab-content>.tab-pane{padding:20px 0}.form-group{margin-bottom:15px}.table-title{font-size:18px;margin-bottom:0}.table_data_press .help{color:gray;font-size:90%;font-weight:300}.row_full{overflow:hidden}.row_full .pull-left{float:left}.search_action{margin-top:0;padding-top:0;position:relative}.search_action input{font-size:95%;padding-right:30px;width:98%}.search_action i{font-size:16px;position:absolute;right:8px;top:10px}.tablenav{clear:both;display:block;height:auto;margin:6px 0 4px;overflow:hidden;vertical-align:middle}.tablenav .form_group{margin-bottom:0;margin-top:0;padding-bottom:0;padding-top:0}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{box-shadow:none}ul.doc_items{margin-left:45px}ul.doc_items li{font-size:14px;list-style:disc;margin-bottom:10px}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{border-right:none}.ninja_header{background:#fbfdff;border-bottom:1px solid #eae7e7;padding-bottom:15px}.ninja_content{display:block;position:relative;width:100%}.ninja_content .ninja_suggest{background:#e5e5e5;color:#000;display:block;font-size:18px;margin:10px 0;overflow:hidden;padding:20px 10px}.ninja_content .ninja_suggest p{font-size:16px;margin:0;padding: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{background:#fff;box-shadow:0 0 5px 5px rgba(0,0,0,.05);margin:40px 0 20px;overflow:hidden;padding:20px;position:relative;width:96%}.ninja_suggest_plugin .ninja_dismiss{cursor:pointer;position:absolute;right:10px;top:5px}.ninja_suggest_plugin .ninja_form_banner{float:left;margin:-20px 0 -24px -20px;padding-right:3%;width:35%}@media (max-width:768px){.ninja_suggest_plugin .ninja_form_banner{display:block;float:none;margin:0 0 10px;padding-right:0;width:100%}}.ninja_suggest_plugin .ninja_form_banner img{max-width:100%}.ninja_doc_top_blocks{display:block;margin-bottom:20px;overflow:hidden;position:relative;width:100%}.ninja_doc_top_blocks>*{box-sizing:border-box}.ninja_doc_top_blocks .block_1_3{float:left;margin-bottom:30px;padding-right:30px;width:33.33%}@media (max-width:768px){.ninja_doc_top_blocks .block_1_3{float:none;margin-bottom:30px;padding-right:0;width:100%}}.ninja_doc_top_blocks .ff_block .ff_block_box{background:#fff;border-radius:4px;box-shadow:0 0 5px rgba(0,0,0,.05);height:250px;padding:15px}.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;line-height:22px;text-decoration:none}.ninja_doc_top_blocks .ff_block .ninja_tables_user_guide{height:auto}.pro_feature_dialog .el-dialog{background:#fdf5f5}.pro_feature_dialog .el-dialog__body{padding-top:0}.pro_feature_dialog .buy_now_button{font-size:20px;padding:10px 25px;text-decoration:none}.pro_feature_dialog .list_features{font-size:18px;list-style:disc;margin-left:45px}.section_block{display:block;margin-bottom:20px;overflow:hidden;width:100%}.section_card{background:#fff;border:3px solid #ccc;box-sizing:border-box;cursor:pointer;float:left;height:150px;margin-right:2%;overflow:auto;padding:5px 10px;position:relative;width:48%}.section_card h4{margin-top:10px}.section_card.expand_card{min-height:120px;padding:5px 10px;width:30%}.section_card .selected_ribbon{background:#4caf50;color:#fff;font-weight:700;padding:5px 15px;position:absolute;right:0;top:0}.section_card.selected_type{background:#f6fff7;border:5px solid #4caf50}.clearfix:after{clear:both;content:"";display:block}.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;min-width:400px;padding:5px 10px}.text-warning{color:#e6a23c}.actions a{cursor:pointer}.card_block{display:block;overflow:hidden;width:100%}.ninja_section_block{background:#fff;box-sizing:border-box;display:block;margin-bottom:0;margin-top:0;width:100%}.ninja_section_block .ninja_section_block_header{border-bottom:2px solid #e8e4e4;border-top:2px solid #e8e4e4;cursor:pointer;padding:12px 20px}.ninja_section_block .ninja_section_block_header h3{display:inline-block;margin:0}.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{background:#fafafa;padding:10px 20px 20px}.ninja_section_block .ninja_section_block_body.ninja_section_hide{display:none}ul.ninja_render_features li{display:inline-block;list-style:none;margin-right:10px}ul.ninja_render_features li span{color:#4caf4f}.ninja_settings_blocks,.ninja_settings_blocks .ninja_save_button{margin-top:20px}.loading-wrapper{background:#fff;padding:10px}.text-center{text-align:center}.ninja_sidebar{margin-top:10px}.add_column_wrapper{padding:0 10px}.ninja_widget{background:#f9f9f9;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);display:block;margin-bottom:15px;overflow:hidden;padding:15px 10px}.ninja_widget .title{background:#434d53;border-bottom:1px solid #f1f1f1;color:#fff;font-size:14px;line-height:1.4;margin:-15px -10px 0;padding:8px 12px}.ninja_widget .widget_body{padding-top:10px}.ninja_widget .button-block{width:100%}.pull-right{float:right}.section_widget .heading{align-items:center;background:#fff;display:flex;justify-content:space-between;overflow:hidden;padding:10px 0}.section_widget .heading .title{float:left;margin:0;padding:0}.section_widget .heading .inline_action{float:right}.section_widget .widget_body{background:#fff;padding:0}.drawer{border-bottom:1px solid #434a50;display:block}.drawer .drawer_body{display:none;padding:10px}.drawer .header{background:#535c63;color:#fff;font-size:17px;padding:15px 10px}.drawer .header .edit_icon{cursor:pointer;float:right;font-size:12px}.drawer .header .handle{cursor:move;font-size:20px;margin-right:5px}.form_group{margin-bottom:10px;overflow:hidden;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:flex;width:100%}.section-column-9{flex:2;padding:10px}.section-column-3{flex:1}@media (max-width:480px){.section-container{-webkit-box-orient:vertical;-ms-flex-orient:vertical;-webkit-orient:vertical;orient:vertical;display:flex;width:100%}.section-column-9{order:1}.section-column-3{order:2}}.section-column:first-child{margin-right:20px}.tooltip{display:block!important;padding:4px;z-index:10000}.tooltip .tooltip-inner{background:#000;border-radius:16px;color:#fff;padding:5px 10px 4px}.tooltip .tooltip-arrow{display:none}.tooltip[aria-hidden=true]{opacity:0;transition:opacity .15s,visibility .15s;visibility:hidden}.tooltip[aria-hidden=false]{opacity:1;transition:opacity .15s;visibility:visible}.help_section{margin-top:45px!important}.ninja_widget label{font-weight:400}.ninja_style_wrapper{display:flex;flex-direction:row;flex-wrap:nowrap}.ninja_style_wrapper .ninja_column{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:flex;flex-direction:row;flex-wrap:nowrap;margin-bottom:10px}.ninja_color_blocks .ninja_color_block{background:snow;border:1px solid #cacaca;flex:1 100%;padding:10px 5px;text-align:center}.ninja_color_blocks .ninja_color_block .form_group{margin:0}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker{height:30px;width:100%}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker .el-color-picker__trigger{height:30px;min-width:100px}.ninja_color_blocks .ninja_color_block label{font-size:11px;margin:0;padding:0}.form_group.ninja_color_customization h4{display:block;margin-top:0;overflow:hidden}.ninja_inner_title{color:#636060;font-size:15px;margin:0 0 10px}.ninja_header{align-items:center;justify-content:space-between;overflow:hidden}.ninja_header h2{display:inline-block;margin:0}.ninja_header .ninja_actions_action{float:right}.ninja_design_wrapper{background:#fff;display:flex;padding-bottom:20px}.ninja_design_wrapper .design_controls{background:#e5e5e5;border-left:1px solid #e5e5e5;flex:1;margin:0 0 -20px}.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{background:#e5e5e5;height:auto;overflow:scroll;padding:13px 15px 0}.ninja_design_wrapper .design_controls .el-radio-button--mini .el-radio-button__inner{padding:7px!important}.ninja_design_wrapper .design_preview{background:#fff;flex:2;min-height:800px;overflow:scroll;padding:10px 20px}.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{color:#0073aa;font-size:10px;padding:2px 7px}.ninja_resp_tabs span.dashicons{font-size:13px;height:10px;width:15px}input.form-control::-moz-placeholder{color:#ddd}input.form-control::placeholder{color:#ddd}.search_action input::-moz-placeholder{color:#969292}.search_action input::placeholder{color:#969292}.upgrade_box{margin-top:10px;text-align:center}.upgrade_box a{text-decoration:none}.upgrade_box a i{font-size:20px;height:10px;margin-top:-5px}.ninja_upgrade_bar{background:#f35a59;color:#fff;margin:-10px -20px 0;overflow:hidden;padding:10px 20px}.ninja_btn{text-decoration:none}.label-normalize label{font-weight:400}.ninja_design_tips{background:#fff;border:1px solid red;color:red;padding:10px}.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{background:#feffb3;margin-bottom:20px;padding:20px}.ninja_instruction{background:#e5ffe7;margin-top:20px;padding:10px 15px}.ninja_instruction ul{font-size:110%;list-style:disc;margin-left:30px}.ninja_instruction p{margin:3px 0}h2.nav-tab-wrapper{margin-bottom:15px!important}.doc_link{color:grey;font-size:14px;text-decoration:none}.form_row_full{display:block;overflow:hidden;width:100%}.form_row_full .form_row_half{box-sizing:border-box;display:block;float:left;padding-right:4%;width:48%}.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;display:block;min-height:70vh;overflow:auto;padding:15px 25px}.el-main-editing .ninja_header_editing{background:#fbfdff;border-bottom:1px solid #eae7e7;display:block;margin:-15px -25px 20px;overflow:hidden;padding:10px 25px}.el-main-editing .ninja_header_editing h2{float:left;line-height:30px;margin:0;padding:0}.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-bottom:10px;margin-left:0!important}.nt_suggest{background:#eee;border-radius:5px;margin-top:20px;padding:10px}.nt_suggest h4{margin:0}.nt_suggest ul{margin-left:30px}.nt_suggest ul li{list-style:disc}.ninja_heightlight_block{background:#fbfdff;border:1px solid #eae7e7;margin-top:50px;padding:0 20px 20px;text-align:left}.nt_nav_card_header{background:#fff;border:1px solid #ccc;cursor:pointer;display:block;font-size:15px;padding:10px;position:relative}.nt_nav_card_header.nt_nav_active{background:#545454;color:#fff}.nt_nav_card_header .nav_card_action{float:right}.nt_nav_card_header .nav_card_action button{font-size:22px;margin-top:-10px}.nt_nav_settings{background:#fff;box-shadow:0 2px 6px 0 #c3c3c3;margin:0 0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.nt_nav_settings .nt_nav_body{border:1px solid #e4f3ff;display:block;overflow:hidden;padding:0 20px 20px}.nt_each_selection{border-bottom:1px solid hsla(0,0%,50%,.149);display:block;margin-top:20px;padding-bottom:10px}.nt_each_selection:last-child{border-bottom:0}.nt_each_selection .nt_query_header{margin-bottom:15px}.nt_each_selection .nt_query_header h3{color:#717070;margin:0 0 5px}.nt_each_selection .nt_query_header p{color:#6f6f6f;margin:0}.image_selector{display:block;overflow:hidden}.image_selector .image_preview{display:inline-block;width:96px}.image_selector .image_preview img{max-width:100%}.image_selector .image_select_button{display:inline-block;vertical-align:top}.image_selector .nt_form_group{float:left;width:49%}.image_selector .nt_form_group.single_form_group{float:none;width:100%}.el-table__row .nt_btn{border:1px solid transparent;display:inline-block;font-size:14px;padding:7px 15px;text-decoration:none}.el-table__row .nt_btn.nt_rounded_btn{border-radius:4px!important}.nt_cell_editable{cursor:text;min-height:25px}.cell_editing .nt_cell_input,.cell_editing .nt_inline_textarea{padding:4px 7px;width:100%}.sql_connection_wrapper{background:#c5c5c5;border-radius:10px;margin-bottom:20px;padding:10px 15px}.nt_row_2{overflow:hidden;width:100%}.nt_row_2 .form-group{float:left;width:48%}.nt_row_2 .form-group label{width:100%}.nt_row_2 .form-group input{width:90%}.nt_button_woo.nt_button,.nt_woo_view_cart{-webkit-font-smoothing:antialiased;background-color:#a46497;color:#fff;display:inline-block;height:inherit;margin:3px 0;padding:7px 10px;position:relative;transition-duration:.4s;white-space:nowrap}.nt-quantity-wrapper input{-webkit-appearance:none;-moz-appearance:textfield;appearance:none;background:#fff;border:1px solid #ddd;border-radius:inherit;box-sizing:border-box;color:#000;font-size:inherit;height:100%!important;margin:0!important;padding:5px!important;text-align:center;width:100%!important}.full-width{width:100%!important}.ninja-tables-dashicons{margin-right:5px;text-align:center;vertical-align:middle;width:24px}.nt_add_cart_wrapper .nt_woo_attribute{padding-right:20px!important}.nt_review_notice{background:#fff;border:1px solid #c3c4c7;border-left:4px solid #17a2b8;box-shadow:0 1px 1px rgba(0,0,0,.04);font-weight:700;margin:10px 20px 20px 0;padding:5px 12px}.nt_review_notice a .close-icon{border-radius:50%;margin-top:-2px;opacity:.7;position:absolute;right:25px;text-decoration:none}.table-rows .tablenav{margin-bottom:15px}.table-rows .show-meta-data{margin:0}
1
+ .ninja_main_nav{background:#fff;display:block;height:60px;margin-left:-22px;margin-top:-10px;overflow:hidden;padding-right:40px;width:100%}.ninja_main_nav .plugin-name{color:#6e6e6e;float:left;font-size:16px;margin:22px 20px 20px}.ninja_main_nav .plugin-name img{transform:translateY(-27%)}.ninja_main_nav .plugin-name:focus{outline:none}.ninja_main_nav .plugin-name .pro{font-weight:700;margin-left:5px;position:absolute}.ninja_main_nav .buy_pro_tab a{background:#e04f5e;color:#fff;padding:10px 25px;text-decoration:none}.ninja_main_nav .buy_pro_tab a:focus{box-shadow:none}.ninja_main_nav .buy_pro_tab a:hover{color:#fff}.pageLoading{align-items:center;display:flex;flex-direction:column;height:150px;justify-content:center;text-align:center}.pageLoading .fooicon{font-size:20px}.btn-flex{align-items:center;display:inline-flex!important}.btn-flex .fooicon{margin-left:5px}h4{font-size:18px;margin-bottom:0}a.btn{text-decoration:none}.modal-open .modal{z-index:1000}label.form_group{padding-left:10px;padding-top:5px}.editr--toolbar .dashboard{box-sizing:border-box;padding:0 .5rem}.editr--toolbar .dashboard .dropzone{background:#f6f6f6;max-height:86px;min-height:50px!important}.compact .nt_cell{-ms-text-overflow:ellipsis!important}.compact .nt_cell,.compact .nt_cell *{overflow:hidden;text-overflow:ellipsis!important;white-space:nowrap}.compact .nt_cell *{font-size:14px;margin:0;padding:0}.cell .cell-content img{height:auto;max-width:100%}.paginate{align-items:center;border-bottom:2px solid #ccc;display:flex;flex-wrap:nowrap;justify-content:space-between;margin-top:25px;padding-bottom:8px}.btn.pag-btn{background:#b2ccda;color:#fff}.btn.pag-btn:hover{opacity:.9}.btn.pag-btn:focus,.btn.pag-btn:hover{box-shadow:none!important;color:#fff;outline:none!important}.text-right{text-align:right}label{display:inline-block;font-weight:700;margin-bottom:5px;max-width:100%}.form-control{background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);color:#555;display:block;font-size:14px;height:34px;line-height:1.42857143;padding:6px 12px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}.form-control:focus{border-color:#66afe9;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);outline:0}.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{border-bottom-right-radius:0;border-top-right-radius:0;float:left}.input-group .input-btn{width:1%}.input-group .input-btn .btn{border-bottom-left-radius:0;border-top-left-radius:0}.nav{list-style:none;margin-bottom:0;padding-left:0}.nav:after,.nav:before{content:" ";display:table}.nav:after{clear:both}.nav>li,.nav>li>a{display:block;position:relative}.nav>li>a{padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{background-color:#eee;text-decoration:none}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{background-color:transparent;color:#777;cursor:not-allowed;text-decoration:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{border:1px solid transparent;border-radius:4px 4px 0 0;line-height:1.42857143;margin-right:2px;text-decoration:none}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li>a:focus{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{background-color:#fff;border:1px solid;border-color:#ddd #ddd transparent;color:#555;cursor:default}.tab-content>.tab-pane{padding:20px 0}.form-group{margin-bottom:15px}.table-title{font-size:18px;margin-bottom:0}.table_data_press .help{color:gray;font-size:90%;font-weight:300}.row_full{overflow:hidden}.row_full .pull-left{float:left}.search_action{margin-top:0;padding-top:0;position:relative}.search_action input{font-size:95%;padding-right:30px;width:98%}.search_action i{font-size:16px;position:absolute;right:8px;top:10px}.tablenav{clear:both;display:block;height:auto;margin:6px 0 4px;overflow:hidden;vertical-align:middle}.tablenav .form_group{margin-bottom:0;margin-top:0;padding-bottom:0;padding-top:0}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{box-shadow:none}ul.doc_items{margin-left:45px}ul.doc_items li{font-size:14px;list-style:disc;margin-bottom:10px}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{border-right:none}.ninja_header{background:#fbfdff;border-bottom:1px solid #eae7e7;padding-bottom:15px}.ninja_content{display:block;position:relative;width:100%}.ninja_content .ninja_suggest{background:#e5e5e5;color:#000;display:block;font-size:18px;margin:10px 0;overflow:hidden;padding:20px 10px}.ninja_content .ninja_suggest p{font-size:16px;margin:0;padding: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{background:#fff;box-shadow:0 0 5px 5px rgba(0,0,0,.05);margin:40px 0 20px;overflow:hidden;padding:20px;position:relative;width:96%}.ninja_suggest_plugin .ninja_dismiss{cursor:pointer;position:absolute;right:10px;top:5px}.ninja_suggest_plugin .ninja_form_banner{float:left;margin:-20px 0 -24px -20px;padding-right:3%;width:35%}@media (max-width:768px){.ninja_suggest_plugin .ninja_form_banner{display:block;float:none;margin:0 0 10px;padding-right:0;width:100%}}.ninja_suggest_plugin .ninja_form_banner img{max-width:100%}.ninja_doc_top_blocks{display:block;margin-bottom:20px;overflow:hidden;position:relative;width:100%}.ninja_doc_top_blocks>*{box-sizing:border-box}.ninja_doc_top_blocks .block_1_3{float:left;margin-bottom:30px;padding-right:30px;width:33.33%}@media (max-width:768px){.ninja_doc_top_blocks .block_1_3{float:none;margin-bottom:30px;padding-right:0;width:100%}}.ninja_doc_top_blocks .ff_block .ff_block_box{background:#fff;border-radius:4px;box-shadow:0 0 5px rgba(0,0,0,.05);height:250px;padding:15px}.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;line-height:22px;text-decoration:none}.ninja_doc_top_blocks .ff_block .ninja_tables_user_guide{height:auto}.pro_feature_dialog .el-dialog{background:#fdf5f5}.pro_feature_dialog .el-dialog__body{padding-top:0}.pro_feature_dialog .buy_now_button{font-size:20px;padding:10px 25px;text-decoration:none}.pro_feature_dialog .list_features{font-size:18px;list-style:disc;margin-left:45px}.section_block{display:block;margin-bottom:20px;overflow:hidden;width:100%}.section_card{background:#fff;border:3px solid #ccc;box-sizing:border-box;cursor:pointer;float:left;height:150px;margin-right:2%;overflow:auto;padding:5px 10px;position:relative;width:48%}.section_card h4{margin-top:10px}.section_card.expand_card{min-height:120px;padding:5px 10px;width:30%}.section_card .selected_ribbon{background:#4caf50;color:#fff;font-weight:700;padding:5px 15px;position:absolute;right:0;top:0}.section_card.selected_type{background:#f6fff7;border:5px solid #4caf50}.clearfix:after{clear:both;content:"";display:block}.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;min-width:400px;padding:5px 10px}.text-warning{color:#e6a23c}.actions a{cursor:pointer}.card_block{display:block;overflow:hidden;width:100%}.ninja_section_block{background:#fff;box-sizing:border-box;display:block;margin-bottom:0;margin-top:0;width:100%}.ninja_section_block .ninja_section_block_header{border-bottom:2px solid #e8e4e4;border-top:2px solid #e8e4e4;cursor:pointer;padding:12px 20px}.ninja_section_block .ninja_section_block_header h3{display:inline-block;margin:0}.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{background:#fafafa;padding:10px 20px 20px}.ninja_section_block .ninja_section_block_body.ninja_section_hide{display:none}ul.ninja_render_features li{display:inline-block;list-style:none;margin-right:10px}ul.ninja_render_features li span{color:#4caf4f}.ninja_settings_blocks,.ninja_settings_blocks .ninja_save_button{margin-top:20px}.loading-wrapper{background:#fff;padding:10px}.text-center{text-align:center}.ninja_sidebar{margin-top:10px}.add_column_wrapper{padding:0 10px}.ninja_widget{background:#f9f9f9;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);display:block;margin-bottom:15px;overflow:hidden;padding:15px 10px}.ninja_widget .title{background:#434d53;border-bottom:1px solid #f1f1f1;color:#fff;font-size:14px;line-height:1.4;margin:-15px -10px 0;padding:8px 12px}.ninja_widget .widget_body{padding-top:10px}.ninja_widget .button-block{width:100%}.pull-right{float:right}.section_widget .heading{align-items:center;background:#fff;display:flex;justify-content:space-between;overflow:hidden;padding:10px 0}.section_widget .heading .title{float:left;margin:0;padding:0}.section_widget .heading .inline_action{float:right}.section_widget .widget_body{background:#fff;padding:0}.drawer{border-bottom:1px solid #434a50;display:block}.drawer .drawer_body{display:none;padding:10px}.drawer .header{background:#535c63;color:#fff;font-size:17px;padding:15px 10px}.drawer .header .edit_icon{cursor:pointer;float:right;font-size:12px}.drawer .header .handle{cursor:move;font-size:20px;margin-right:5px}.form_group{margin-bottom:10px;overflow:hidden;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:flex;width:100%}.section-column-9{flex:2;padding:10px}.section-column-3{flex:1}@media (max-width:480px){.section-container{-webkit-box-orient:vertical;-ms-flex-orient:vertical;-webkit-orient:vertical;orient:vertical;display:flex;width:100%}.section-column-9{order:1}.section-column-3{order:2}}.section-column:first-child{margin-right:20px}.tooltip{display:block!important;padding:4px;z-index:10000}.tooltip .tooltip-inner{background:#000;border-radius:16px;color:#fff;padding:5px 10px 4px}.tooltip .tooltip-arrow{display:none}.tooltip[aria-hidden=true]{opacity:0;transition:opacity .15s,visibility .15s;visibility:hidden}.tooltip[aria-hidden=false]{opacity:1;transition:opacity .15s;visibility:visible}.help_section{margin-top:45px!important}.ninja_widget label{font-weight:400}.ninja_style_wrapper{display:flex;flex-direction:row;flex-wrap:nowrap}.ninja_style_wrapper .ninja_column{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:flex;flex-direction:row;flex-wrap:nowrap;margin-bottom:10px}.ninja_color_blocks .ninja_color_block{background:snow;border:1px solid #cacaca;flex:1 100%;padding:10px 5px;text-align:center}.ninja_color_blocks .ninja_color_block .form_group{margin:0}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker{height:30px;width:100%}.ninja_color_blocks .ninja_color_block .form_group .el-color-picker .el-color-picker__trigger{height:30px;min-width:100px}.ninja_color_blocks .ninja_color_block label{font-size:11px;margin:0;padding:0}.form_group.ninja_color_customization h4{display:block;margin-top:0;overflow:hidden}.ninja_inner_title{color:#636060;font-size:15px;margin:0 0 10px}.ninja_header{align-items:center;justify-content:space-between;overflow:hidden}.ninja_header h2{display:inline-block;margin:0}.ninja_header .ninja_actions_action{float:right}.ninja_design_wrapper{background:#fff;display:flex;padding-bottom:20px}.ninja_design_wrapper .design_controls{background:#e5e5e5;border-left:1px solid #e5e5e5;flex:1;margin:0 0 -20px}.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{background:#e5e5e5;height:auto;overflow:scroll;padding:13px 15px 0}.ninja_design_wrapper .design_controls .el-radio-button--mini .el-radio-button__inner{padding:7px!important}.ninja_design_wrapper .design_preview{background:#fff;flex:2;min-height:800px;overflow:scroll;padding:10px 20px}.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{color:#0073aa;font-size:10px;padding:2px 7px}.ninja_resp_tabs span.dashicons{font-size:13px;height:10px;width:15px}input.form-control::-moz-placeholder{color:#ddd}input.form-control::placeholder{color:#ddd}.search_action input::-moz-placeholder{color:#969292}.search_action input::placeholder{color:#969292}.upgrade_box{margin-top:10px;text-align:center}.upgrade_box a{text-decoration:none}.upgrade_box a i{font-size:20px;height:10px;margin-top:-5px}.ninja_upgrade_bar{background:#f35a59;color:#fff;margin:-10px -20px 0;overflow:hidden;padding:10px 20px}.ninja_btn{text-decoration:none}.label-normalize label{font-weight:400}.ninja_design_tips{background:#fff;border:1px solid red;color:red;padding:10px}.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{background:#feffb3;margin-bottom:20px;padding:20px}.ninja_instruction{background:#e5ffe7;margin-top:20px;padding:10px 15px}.ninja_instruction ul{font-size:110%;list-style:disc;margin-left:30px}.ninja_instruction p{margin:3px 0}h2.nav-tab-wrapper{margin-bottom:15px!important}.doc_link{color:grey;font-size:14px;text-decoration:none}.form_row_full{display:block;overflow:hidden;width:100%}.form_row_full .form_row_half{box-sizing:border-box;display:block;float:left;padding-right:4%;width:48%}.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;display:block;min-height:70vh;overflow:auto;padding:15px 25px}.el-main-editing .ninja_header_editing{background:#fbfdff;border-bottom:1px solid #eae7e7;display:block;margin:-15px -25px 20px;overflow:hidden;padding:10px 25px}.el-main-editing .ninja_header_editing h2{float:left;line-height:30px;margin:0;padding:0}.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-bottom:10px;margin-left:0!important}.nt_suggest{background:#eee;border-radius:5px;margin-top:20px;padding:10px}.nt_suggest h4{margin:0}.nt_suggest ul{margin-left:30px}.nt_suggest ul li{list-style:disc}.ninja_heightlight_block{background:#fbfdff;border:1px solid #eae7e7;margin-top:50px;padding:0 20px 20px;text-align:left}.nt_nav_card_header{background:#fff;border:1px solid #ccc;cursor:pointer;display:block;font-size:15px;padding:10px;position:relative}.nt_nav_card_header.nt_nav_active{background:#545454;color:#fff}.nt_nav_card_header .nav_card_action{float:right}.nt_nav_card_header .nav_card_action button{font-size:22px;margin-top:-10px}.nt_nav_settings{background:#fff;box-shadow:0 2px 6px 0 #c3c3c3;margin:0 0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.nt_nav_settings .nt_nav_body{border:1px solid #e4f3ff;display:block;overflow:hidden;padding:0 20px 20px}.nt_each_selection{border-bottom:1px solid hsla(0,0%,50%,.149);display:block;margin-top:20px;padding-bottom:10px}.nt_each_selection:last-child{border-bottom:0}.nt_each_selection .nt_query_header{margin-bottom:15px}.nt_each_selection .nt_query_header h3{color:#717070;margin:0 0 5px}.nt_each_selection .nt_query_header p{color:#6f6f6f;margin:0}.image_selector{display:block;overflow:hidden}.image_selector .image_preview{display:inline-block;width:96px}.image_selector .image_preview img{max-width:100%}.image_selector .image_select_button{display:inline-block;vertical-align:top}.image_selector .nt_form_group{float:left;width:49%}.image_selector .nt_form_group.single_form_group{float:none;width:100%}.el-table__row .nt_btn{border:1px solid transparent;display:inline-block;font-size:14px;padding:7px 15px;text-decoration:none}.el-table__row .nt_btn.nt_rounded_btn{border-radius:4px!important}.nt_cell_editable{cursor:text;min-height:25px}.cell_editing .nt_cell_input,.cell_editing .nt_inline_textarea{padding:4px 7px;width:100%}.sql_connection_wrapper{background:#c5c5c5;border-radius:10px;margin-bottom:20px;padding:10px 15px}.nt_row_2{overflow:hidden;width:100%}.nt_row_2 .form-group{float:left;width:48%}.nt_row_2 .form-group label{width:100%}.nt_row_2 .form-group input{width:90%}.nt_button_woo.nt_button,.nt_woo_view_cart{-webkit-font-smoothing:antialiased;background-color:#a46497;color:#fff;display:inline-block;height:inherit;margin:3px 0;padding:7px 10px;position:relative;transition-duration:.4s;white-space:nowrap}.nt-quantity-wrapper input{-webkit-appearance:none;-moz-appearance:textfield;appearance:none;background:#fff;border:1px solid #ddd;border-radius:inherit;box-sizing:border-box;color:#000;font-size:inherit;height:100%!important;margin:0!important;padding:5px!important;text-align:center;width:100%!important}.full-width{width:100%!important}.ninja-tables-dashicons{margin-right:5px;text-align:center;vertical-align:middle;width:24px}.nt_add_cart_wrapper .nt_woo_attribute{padding-right:20px!important}.nt_review_notice{background:#fff;border:1px solid #c3c4c7;border-left:5px solid #17a2b8;box-shadow:0 1px 1px rgba(0,0,0,.04);font-weight:700;margin:20px 0 30px -20px;padding:12px}.nt_review_notice a .close-icon{border-radius:50%;margin-top:-2px;opacity:.7;position:absolute;right:25px;text-decoration:none}.table-rows .tablenav{margin-bottom:15px}.table-rows .show-meta-data{margin:0}
assets/images/ninja_table-old.svg ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve">
5
+ <g>
6
+ <g>
7
+ <polyline points="0.6,51.2 18.4,51.2 18.4,38.6 0.6,38.6 "/>
8
+ <path d="M0.6,63.1c0,1,0,1.9,0.2,2.8h17.6V53.5H0.6"/>
9
+ <path d="M0.6,22.6"/>
10
+ <path d="M0.6,21.5h78.8v-4.7c0-9-7.5-16.2-16.7-16.2H20.4h-3C8.1,0.5,0.6,7.8,0.6,16.7"/>
11
+ <polyline points="0.6,36.3 18.4,36.3 18.4,23.8 0.6,23.8 "/>
12
+ <rect x="20.6" y="38.6" width="58.8" height="12.5"/>
13
+ <rect x="20.6" y="23.8" width="58.8" height="12.4"/>
14
+ <path d="M79.3,65.9c0.1-1.1,0.1-1.8,0.1-2.7v-9.7H20.6v12.4L79.3,65.9"/>
15
+ </g>
16
+ <path d="M18.4,79.3L18.4,79.3v-11H1.5v0.1c2.2,6.4,8.5,11,15.9,11L18.4,79.3L18.4,79.3z"/>
17
+ <path d="M78.6,68.3h-58v11v0.1h42.1C70.1,79.4,76.4,74.8,78.6,68.3C78.6,68.4,78.6,68.4,78.6,68.3"/>
18
+ </g>
19
+ </svg>
assets/images/ninja_table.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 500"><defs><style>.cls-1{fill:url(#linear-gradient);}.cls-2{fill:#fff;}.cls-3{fill:url(#linear-gradient-2);}</style><linearGradient id="linear-gradient" x1="-82.74" y1="-44.53" x2="496.78" y2="534.99" gradientUnits="userSpaceOnUse"><stop offset=".56" stop-color="#00d4c5"/><stop offset=".94" stop-color="#2aa3ff"/></linearGradient><linearGradient id="linear-gradient-2" x1="248.36" y1="-66.08" x2="253.52" y2="489.21" gradientUnits="userSpaceOnUse"><stop offset=".09" stop-color="#ff182b"/><stop offset=".35" stop-color="#ff6a8b"/></linearGradient></defs><path class="cls-1" d="M496.05,141.42v253.09c0,5.89-.53,11.67-1.53,17.27-.91,5.09-2.21,10.03-3.89,14.83-13.91,40.03-53.15,68.86-99.41,68.86H109.01c-46.24,0-85.5-28.83-99.41-68.86-1.68-4.8-2.98-9.74-3.88-14.83-1.01-5.6-1.53-11.38-1.53-17.27V141.42H496.05Z"/><path class="cls-3" d="M496.05,104.56v36.86H4.19v-36.86C4.19,48.81,51.13,3.6,109.01,3.6H391.22c57.91,0,104.83,45.21,104.83,100.95Z"/><path class="cls-2" d="M129.67,241.54v77.86H496.05v14.84H129.67v77.54H494.57c-.87,5.09-2.12,10.03-3.74,14.83H129.67v68.85h-14.27v-68.85H9.4c-1.61-4.8-2.87-9.74-3.74-14.83H115.4v-77.54H4.19v-14.84H115.4v-77.86H4.19v-14.84H115.4v-85.28h14.27v85.28H496.05v14.84H129.67Z"/></svg>
assets/img/ninja_table-old.svg ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve">
5
+ <g>
6
+ <g>
7
+ <polyline points="0.6,51.2 18.4,51.2 18.4,38.6 0.6,38.6 "/>
8
+ <path d="M0.6,63.1c0,1,0,1.9,0.2,2.8h17.6V53.5H0.6"/>
9
+ <path d="M0.6,22.6"/>
10
+ <path d="M0.6,21.5h78.8v-4.7c0-9-7.5-16.2-16.7-16.2H20.4h-3C8.1,0.5,0.6,7.8,0.6,16.7"/>
11
+ <polyline points="0.6,36.3 18.4,36.3 18.4,23.8 0.6,23.8 "/>
12
+ <rect x="20.6" y="38.6" width="58.8" height="12.5"/>
13
+ <rect x="20.6" y="23.8" width="58.8" height="12.4"/>
14
+ <path d="M79.3,65.9c0.1-1.1,0.1-1.8,0.1-2.7v-9.7H20.6v12.4L79.3,65.9"/>
15
+ </g>
16
+ <path d="M18.4,79.3L18.4,79.3v-11H1.5v0.1c2.2,6.4,8.5,11,15.9,11L18.4,79.3L18.4,79.3z"/>
17
+ <path d="M78.6,68.3h-58v11v0.1h42.1C70.1,79.4,76.4,74.8,78.6,68.3C78.6,68.4,78.6,68.4,78.6,68.3"/>
18
+ </g>
19
+ </svg>
assets/js/ninja-table-builder-public.js CHANGED
@@ -1 +1 @@
1
- (()=>{function t(t,a){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var r,l,s=[],d=!0,n=!1;try{for(a=a.call(t);!(d=(r=a.next()).done)&&(s.push(r.value),!e||s.length!==e);d=!0);}catch(t){n=!0,l=t}finally{try{d||null==a.return||a.return()}finally{if(n)throw l}}return s}(t,a)||function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,a)}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=new Array(e);a<e;a++)r[a]=t[a];return r}jQuery(document).ready((function(e){e(".ntb_table_wrapper").each((function(){var a=e(this)[0],r=a.innerHTML,l=JSON.parse(a.dataset.responsive),s=l.general.options.enable_responsive_table.value,d=l.responsive_settings.options.devices;if(!0===s||"true"===s){var n=function(t,a,r){if("false"===t||!1===t){t=!0,T=!1,O=!1;var s=l.mode_options.options.devices.mobile,n=s.disable_breakpoint.value,o=s.top_row_as_header.value,u=s.items_per_row.value,f=s.cell_border.value,_=s.cell_direction.value,m=d.mobile.mobile_cell_padding.value,g=d.mobile.mobile_table_alignment.value;"false"!==n&&!1!==n||(e("#"+S+" table tbody").empty(),"row"===_?"true"===o||!0===o&&Object.keys(v).length>1?c(u,a,r,f,m):b(u,a,r,m):"true"===o||!0===o&&Object.keys(v).length>1?y(u,a,r,f,m):p(u,a,r,m),w(g))}else i(O)},o=function(t,a,r){if("false"===t||!1===t){x=!1,t=!0,O=!1;var s=l.mode_options.options.devices.tablet,n=s.disable_breakpoint.value,o=s.top_row_as_header.value,u=s.items_per_row.value,f=s.cell_border.value,_=s.cell_direction.value,m=d.tablet.tablet_cell_padding.value,g=d.tablet.tablet_table_alignment.value;"false"===n||!1===n?(e("#"+S+" table tbody").empty(),"row"===_?"true"===o||!0===o&&Object.keys(v).length>1?c(u,a,r,f,m):b(u,a,r,m):"true"===o||!0===o&&Object.keys(v).length>1?y(u,a,r,f,m):p(u,a,r,m),w(g)):i(O)}},i=function(t){"false"!==t&&!1!==t||(x=!1,T=!1,O=!0,e("#"+S)[0].innerHTML=r)},b=function(t,a,r,l){for(var s=a/t+"px",d=Math.ceil(C.tdCounter/t),n=0,o=0;o<d;o++){e("#"+S+" table tbody").append("<tr></tr>");var i=e("#"+S+" table tbody tr");e(i[o]).addClass("tr_class_"+r+"_"+o),e(i[o]).prop("id","tr_id_"+r+"_"+o);for(var b=i.addClass("staticRow"),p=0;p<t;p++){if(void 0!==C.rowsTd[n]){var c=b[o].insertCell();c.innerHTML=C.rowsTd[n].innerHTML,e(c).prop("id",C.tdIds[n]),e(c).addClass(C.tdClasses[n]),e(c).attr("style",C.trStyles[n]+" "+C.tdStyles[n]),e(c).css({width:s,"min-width":s,"max-width":s,"box-sizing":"border-box",padding:l+"px"})}n++}}},p=function(t,a,r,l){for(var s=a/t+"px",d=f(m,g),n=Math.ceil(d.tdCounter/t),o=0,i=0;i<n;i++){e("#"+S+" table tbody").append("<tr></tr>");var b=e("#"+S+" table tbody tr");e(b[i]).addClass("tr_class_"+r+"_"+i),e(b[i]).prop("id","tr_id_"+r+"_"+i);for(var p=b.addClass("staticRow"),c=0;c<t;c++){if(void 0!==d.colsTd[o]){var y=p[i].insertCell();y.innerHTML=d.colsTd[o],e(y).prop("id",d.tdIds[o]),e(y).addClass(d.tdClasses[o]),e(y).attr("style",d.trStyles[o]+" "+d.tdStyles[o]),e(y).css({width:s,"min-width":s,"max-width":s,"box-sizing":"border-box",padding:l+"px"})}o++}}},c=function(a,r,l,s,d){for(var n=r/(a+1)+"px",o=u(a),i=0,b=Object.entries(o.td);i<b.length;i++){var p=t(b[i],2),c=p[0],y=p[1];e("#"+S+" table tbody").append("<tr></tr>");var f=e("#"+S+" table tbody tr");e(f[c]).addClass("tr_class_"+l+"_"+c),e(f[c]).prop("id","tr_id_"+l+"_"+c);for(var w=f.addClass("topRowAsHeader"),v=0;v<Object.keys(y).length;v++)if(void 0!==y[v]){var _=w[c].insertCell();_.innerHTML=y[v].innerHTML,e(_).prop("id",o.tdIds[c][v]),e(_).addClass(o.tdClasses[c][v]),e(_).attr("style",o.tdStyle[c][v]),e(_).prop("colspan",o.rowSpan[c][v]),e(_).prop("rowspan",o.colSpan[c][v]),e(_).css({width:n,"min-width":n,"max-width":n,"box-sizing":"border-box",padding:d+"px"})}var m=Number(c)+1,h=Object.entries(o.td).length;if(m%g==0&&m!==h){var C=w[c];e(C).css("border-bottom",s+"px solid black")}}},y=function(t,a,r,l,s){for(var d=a/g+"px",n=Math.ceil(h/(t*g)),o=0,i=0,b=0,p=0;p<n;p++)for(var c=0,y=0;y<t+1;y++){if(H.tableBody.innerHtml[o]){var u=!1;e("#"+S+" table tbody").append("<tr></tr>");var f=e("#"+S+" table tbody tr");e(f[b]).addClass("tr_class_"+r+"_"+b),e(f[b]).prop("id","tr_id_"+r+"_"+b);for(var w=f.addClass("topRowAsHeader"),v=0;v<g;v++){var _=w[i].insertCell();if(0===y){var m=H.tableHeader.tdStyles[c]+H.tableHeader.trStyles[c];_.innerHTML=H.tableHeader.innerHtml[c],e(_).prop("id",H.tableHeader.tdIds[c]),e(_).addClass(H.tableHeader.tdClasses[c]),e(_).attr("style",m),e(_).prop("colspan",H.tableHeader.colSpan[c]),e(_).prop("rowspan",H.tableHeader.rowSpan[c]),c++}else{var C=H.tableBody.tdStyles[o]+H.tableBody.trStyles[o];_.innerHTML=H.tableBody.innerHtml[o],e(_).prop("id",H.tableBody.tdIds[o]),e(_).addClass(H.tableBody.tdClasses[o]),e(_).attr("style",C),e(_).prop("colspan",H.tableBody.colSpan[o]),e(_).prop("rowspan",H.tableBody.rowSpan[o]),o++}H.tableBody.innerHtml[o+1]||(u=!0),e(_).css({width:d,"min-width":d,"max-width":d,"box-sizing":"border-box",padding:s+"px"})}if(++i%(t+1)==0&&!u){var x=w[i-1];e(x).css("border-bottom",l+"px solid black")}}b++}},u=function(t){for(var e=Math.ceil(h/(t*g)),a=0,r={td:{},tdIds:{},tdClasses:{},tdStyle:{},rowSpan:{},colSpan:{}},l=0;l<e;l++)for(var s=0;s<g;s++){for(var d={},n={},o={},i={},b={},p={},c=0;c<=t;c++){var y=l*t*g+c*g+s;0===c?(d[c]=C.rowsTd[s],i[c]=C.trStyles[s]+" "+C.tdStyles[s],b[c]=C.rowSpan[s],p[c]=C.colSpan[s],n[c]=C.tdIds[s],o[c]=C.tdClasses[s]):(d[c]=C.rowsTd[y],i[c]=C.trStyles[y]+" "+C.tdStyles[y],b[c]=C.rowSpan[y],p[c]=C.colSpan[y],n[c]=C.tdIds[y],o[c]=C.tdClasses[y])}r.td[a]=Object.assign(d),r.tdStyle[a]=Object.assign(i),r.rowSpan[a]=Object.assign(b),r.colSpan[a]=Object.assign(p),r.tdIds[a]=Object.assign(n),r.tdClasses[a]=Object.assign(o),a++}return r},f=function(t,e){for(var a={allRow:{},colsTd:{},trStyles:{},tdStyles:{},rowSpan:{},colSpan:{},tdIds:{},tdClasses:{},tdCounter:0},r=0,l=0;l<e;l++){a.allRow[l]=C.allRow[l];for(var s=l;s<t;s+=e)a.colsTd[r]=C.rowsTd[s].innerHTML,a.trStyles[r]=C.trStyles[s],a.tdStyles[r]=C.tdStyles[s],a.rowSpan[r]=C.rowSpan[s],a.colSpan[r]=C.colSpan[s],a.tdIds[r]=C.tdIds[s],a.tdClasses[r]=C.tdClasses[s],a.tdCounter++,r++}return a},w=function(t){"left"===t?e("#"+S+" table").css({"margin-left":" 0","margin-right":"auto"}):"right"===t?e("#"+S+" table").css({"margin-left":"auto","margin-right":"0"}):e("#"+S+" table").css({"margin-left":"auto","margin-right":"auto"})},S=a.id,v=e("#"+S+" table")[0].rows,_=e("#"+S+" table").find("tr").length,m=e("#"+S+" table tr").find("td").length,g=Math.ceil(m/_),h=m-g,C=function(t){var a={allRow:{},trStyles:{},tdStyles:{},rowsTd:{},rowSpan:{},colSpan:{},tdIds:{},tdClasses:{},tdCounter:0},r=0;return e(t).each((function(t,l){a.allRow[t]=Object.assign(l),e(l).find("td").each((function(l,s){a.rowsTd[r]=Object.assign(s),a.trStyles[r]=e(a.allRow[t]).attr("style"),a.tdStyles[r]=e(a.rowsTd[r]).attr("style"),a.rowSpan[r]=e(s).attr("rowspan"),a.colSpan[r]=e(s).attr("colspan"),a.tdIds[r]=e(s).attr("id"),a.tdClasses[r]=e(s).attr("class"),r++}))})),a.tdCounter=r,a}(v),H=function(t){var a={td:{},innerHtml:{},tdStyles:{},trStyles:{},rowSpan:{},colSpan:{},tdIds:{},tdClasses:{},index:0},r={allRow:{},tableHeader:JSON.parse(JSON.stringify(a)),tableBody:JSON.parse(JSON.stringify(a))},l=0,s=0;return e(t).each((function(t,a){r.allRow[t]=Object.assign(a),e(a).find("td").each((function(a,d){0===t?(r.tableHeader.td[l]=d,r.tableHeader.innerHtml[l]=d.innerHTML,r.tableHeader.trStyles[l]=e(r.allRow[t]).attr("style"),r.tableHeader.tdStyles[l]=e(r.tableHeader.td[l]).attr("style"),r.tableHeader.colSpan[l]=e(d).attr("colspan"),r.tableHeader.tdIds[l]=e(d).attr("id"),r.tableHeader.tdClasses[l]=e(d).attr("class"),r.tableHeader.index++,l++):(r.tableBody.td[s]=d,r.tableBody.innerHtml[s]=d.innerHTML,r.tableBody.trStyles[s]=e(r.allRow[t]).attr("style"),r.tableBody.tdStyles[s]=e(r.tableBody.td[s]).attr("style"),r.tableBody.rowSpan[s]=e(d).attr("rowspan"),r.tableBody.colSpan[s]=e(d).attr("colspan"),r.tableBody.tdIds[s]=e(d).attr("id"),r.tableBody.tdClasses[s]=e(d).attr("class"),r.tableBody.index++,s++)}))})),r}(v),x=!1,T=!1,O=!1,j=e(window).width(),B=Number(.8*j);j<=700?n(x,B,"mobile"):j>700&&j<1024?o(T,B,"tablet"):i(O),e(window).resize((function(){j=e(window).width(),B=Number(.8*j),j<=700?n(x,B,"mobile"):j>700&&j<1024?o(T,B,"tablet"):i(O)}))}}))}))})();
1
+ (()=>{function t(t,a){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var r,l,s=[],d=!0,n=!1;try{for(a=a.call(t);!(d=(r=a.next()).done)&&(s.push(r.value),!e||s.length!==e);d=!0);}catch(t){n=!0,l=t}finally{try{d||null==a.return||a.return()}finally{if(n)throw l}}return s}(t,a)||function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,a)}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=new Array(e);a<e;a++)r[a]=t[a];return r}jQuery(document).ready((function(e){e(".ntb_table_wrapper").each((function(){var a=e(this)[0],r=a.innerHTML,l=JSON.parse(a.dataset.responsive),s=l.general.options.enable_responsive_table.value,d=l.responsive_settings.options.devices;if(!0===s||"true"===s){var n=function(t,a,r){if("false"===t||!1===t){t=!0,T=!1,O=!1;var s=l.mode_options.options.devices.mobile,n=s.disable_breakpoint.value,o=s.top_row_as_header.value,u=s.items_per_row.value,f=s.cell_border.value,_=s.cell_direction.value,m=d.mobile.mobile_cell_padding.value,g=d.mobile.mobile_table_alignment.value;"false"!==n&&!1!==n||(e("#"+S+" table tbody").empty(),"row"===_?Object.keys(v).length>1||"true"===o||!0===o?c(u,a,r,f,m):b(u,a,r,m):Object.keys(v).length>1||"true"===o||!0===o?y(u,a,r,f,m):p(u,a,r,m),w(g))}else i(O)},o=function(t,a,r){if("false"===t||!1===t){x=!1,t=!0,O=!1;var s=l.mode_options.options.devices.tablet,n=s.disable_breakpoint.value,o=s.top_row_as_header.value,u=s.items_per_row.value,f=s.cell_border.value,_=s.cell_direction.value,m=d.tablet.tablet_cell_padding.value,g=d.tablet.tablet_table_alignment.value;"false"===n||!1===n?(e("#"+S+" table tbody").empty(),"row"===_?Object.keys(v).length>1||"true"===o||!0===o?c(u,a,r,f,m):b(u,a,r,m):Object.keys(v).length>1||"true"===o||!0===o?y(u,a,r,f,m):p(u,a,r,m),w(g)):i(O)}},i=function(t){"false"!==t&&!1!==t||(x=!1,T=!1,O=!0,e("#"+S)[0].innerHTML=r)},b=function(t,a,r,l){for(var s=a/t+"px",d=Math.ceil(C.tdCounter/t),n=0,o=0;o<d;o++){e("#"+S+" table tbody").append("<tr></tr>");var i=e("#"+S+" table tbody tr");e(i[o]).addClass("tr_class_"+r+"_"+o),e(i[o]).prop("id","tr_id_"+r+"_"+o);for(var b=i.addClass("staticRow"),p=0;p<t;p++){if(void 0!==C.rowsTd[n]){var c=b[o].insertCell();c.innerHTML=C.rowsTd[n].innerHTML,e(c).prop("id",C.tdIds[n]),e(c).addClass(C.tdClasses[n]),e(c).attr("style",C.trStyles[n]+" "+C.tdStyles[n]),e(c).css({width:s,"min-width":s,"max-width":s,"box-sizing":"border-box",padding:l+"px"})}n++}}},p=function(t,a,r,l){for(var s=a/t+"px",d=f(m,g),n=Math.ceil(d.tdCounter/t),o=0,i=0;i<n;i++){e("#"+S+" table tbody").append("<tr></tr>");var b=e("#"+S+" table tbody tr");e(b[i]).addClass("tr_class_"+r+"_"+i),e(b[i]).prop("id","tr_id_"+r+"_"+i);for(var p=b.addClass("staticRow"),c=0;c<t;c++){if(void 0!==d.colsTd[o]){var y=p[i].insertCell();y.innerHTML=d.colsTd[o],e(y).prop("id",d.tdIds[o]),e(y).addClass(d.tdClasses[o]),e(y).attr("style",d.trStyles[o]+" "+d.tdStyles[o]),e(y).css({width:s,"min-width":s,"max-width":s,"box-sizing":"border-box",padding:l+"px"})}o++}}},c=function(a,r,l,s,d){for(var n=r/(a+1)+"px",o=u(a),i=0,b=Object.entries(o.td);i<b.length;i++){var p=t(b[i],2),c=p[0],y=p[1];e("#"+S+" table tbody").append("<tr></tr>");var f=e("#"+S+" table tbody tr");e(f[c]).addClass("tr_class_"+l+"_"+c),e(f[c]).prop("id","tr_id_"+l+"_"+c);for(var w=f.addClass("topRowAsHeader"),v=0;v<Object.keys(y).length;v++)if(void 0!==y[v]){var _=w[c].insertCell();_.innerHTML=y[v].innerHTML,e(_).prop("id",o.tdIds[c][v]),e(_).addClass(o.tdClasses[c][v]),e(_).attr("style",o.tdStyle[c][v]),e(_).prop("colspan",o.rowSpan[c][v]),e(_).prop("rowspan",o.colSpan[c][v]),e(_).css({width:n,"min-width":n,"max-width":n,"box-sizing":"border-box",padding:d+"px"})}var m=Number(c)+1,h=Object.entries(o.td).length;if(m%g==0&&m!==h){var C=w[c];e(C).css("border-bottom",s+"px solid black")}}},y=function(t,a,r,l,s){for(var d=a/g+"px",n=Math.ceil(h/(t*g)),o=0,i=0,b=0,p=0;p<n;p++)for(var c=0,y=0;y<t+1;y++){if(H.tableBody.innerHtml[o]){var u=!1;e("#"+S+" table tbody").append("<tr></tr>");var f=e("#"+S+" table tbody tr");e(f[b]).addClass("tr_class_"+r+"_"+b),e(f[b]).prop("id","tr_id_"+r+"_"+b);for(var w=f.addClass("topRowAsHeader"),v=0;v<g;v++){var _=w[i].insertCell();if(0===y){var m=H.tableHeader.tdStyles[c]+H.tableHeader.trStyles[c];_.innerHTML=H.tableHeader.innerHtml[c],e(_).prop("id",H.tableHeader.tdIds[c]),e(_).addClass(H.tableHeader.tdClasses[c]),e(_).attr("style",m),e(_).prop("colspan",H.tableHeader.colSpan[c]),e(_).prop("rowspan",H.tableHeader.rowSpan[c]),c++}else{var C=H.tableBody.tdStyles[o]+H.tableBody.trStyles[o];_.innerHTML=H.tableBody.innerHtml[o],e(_).prop("id",H.tableBody.tdIds[o]),e(_).addClass(H.tableBody.tdClasses[o]),e(_).attr("style",C),e(_).prop("colspan",H.tableBody.colSpan[o]),e(_).prop("rowspan",H.tableBody.rowSpan[o]),o++}H.tableBody.innerHtml[o+1]||(u=!0),e(_).css({width:d,"min-width":d,"max-width":d,"box-sizing":"border-box",padding:s+"px"})}if(++i%(t+1)==0&&!u){var x=w[i-1];e(x).css("border-bottom",l+"px solid black")}}b++}},u=function(t){for(var e=Math.ceil(h/(t*g)),a=0,r={td:{},tdIds:{},tdClasses:{},tdStyle:{},rowSpan:{},colSpan:{}},l=0;l<e;l++)for(var s=0;s<g;s++){for(var d={},n={},o={},i={},b={},p={},c=0;c<=t;c++){var y=l*t*g+c*g+s;0===c?(d[c]=C.rowsTd[s],i[c]=C.trStyles[s]+" "+C.tdStyles[s],b[c]=C.rowSpan[s],p[c]=C.colSpan[s],n[c]=C.tdIds[s],o[c]=C.tdClasses[s]):(d[c]=C.rowsTd[y],i[c]=C.trStyles[y]+" "+C.tdStyles[y],b[c]=C.rowSpan[y],p[c]=C.colSpan[y],n[c]=C.tdIds[y],o[c]=C.tdClasses[y])}r.td[a]=Object.assign(d),r.tdStyle[a]=Object.assign(i),r.rowSpan[a]=Object.assign(b),r.colSpan[a]=Object.assign(p),r.tdIds[a]=Object.assign(n),r.tdClasses[a]=Object.assign(o),a++}return r},f=function(t,e){for(var a={allRow:{},colsTd:{},trStyles:{},tdStyles:{},rowSpan:{},colSpan:{},tdIds:{},tdClasses:{},tdCounter:0},r=0,l=0;l<e;l++){a.allRow[l]=C.allRow[l];for(var s=l;s<t;s+=e)a.colsTd[r]=C.rowsTd[s].innerHTML,a.trStyles[r]=C.trStyles[s],a.tdStyles[r]=C.tdStyles[s],a.rowSpan[r]=C.rowSpan[s],a.colSpan[r]=C.colSpan[s],a.tdIds[r]=C.tdIds[s],a.tdClasses[r]=C.tdClasses[s],a.tdCounter++,r++}return a},w=function(t){"left"===t?e("#"+S+" table").css({"margin-left":" 0","margin-right":"auto"}):"right"===t?e("#"+S+" table").css({"margin-left":"auto","margin-right":"0"}):e("#"+S+" table").css({"margin-left":"auto","margin-right":"auto"})},S=a.id,v=e("#"+S+" table")[0].rows,_=e("#"+S+" table").find("tr").length,m=e("#"+S+" table tr").find("td").length,g=Math.ceil(m/_),h=m-g,C=function(t){var a={allRow:{},trStyles:{},tdStyles:{},rowsTd:{},rowSpan:{},colSpan:{},tdIds:{},tdClasses:{},tdCounter:0},r=0;return e(t).each((function(t,l){a.allRow[t]=Object.assign(l),e(l).find("td").each((function(l,s){a.rowsTd[r]=Object.assign(s),a.trStyles[r]=e(a.allRow[t]).attr("style"),a.tdStyles[r]=e(a.rowsTd[r]).attr("style"),a.rowSpan[r]=e(s).attr("rowspan"),a.colSpan[r]=e(s).attr("colspan"),a.tdIds[r]=e(s).attr("id"),a.tdClasses[r]=e(s).attr("class"),r++}))})),a.tdCounter=r,a}(v),H=function(t){var a={td:{},innerHtml:{},tdStyles:{},trStyles:{},rowSpan:{},colSpan:{},tdIds:{},tdClasses:{},index:0},r={allRow:{},tableHeader:JSON.parse(JSON.stringify(a)),tableBody:JSON.parse(JSON.stringify(a))},l=0,s=0;return e(t).each((function(t,a){r.allRow[t]=Object.assign(a),e(a).find("td").each((function(a,d){0===t?(r.tableHeader.td[l]=d,r.tableHeader.innerHtml[l]=d.innerHTML,r.tableHeader.trStyles[l]=e(r.allRow[t]).attr("style"),r.tableHeader.tdStyles[l]=e(r.tableHeader.td[l]).attr("style"),r.tableHeader.colSpan[l]=e(d).attr("colspan"),r.tableHeader.tdIds[l]=e(d).attr("id"),r.tableHeader.tdClasses[l]=e(d).attr("class"),r.tableHeader.index++,l++):(r.tableBody.td[s]=d,r.tableBody.innerHtml[s]=d.innerHTML,r.tableBody.trStyles[s]=e(r.allRow[t]).attr("style"),r.tableBody.tdStyles[s]=e(r.tableBody.td[s]).attr("style"),r.tableBody.rowSpan[s]=e(d).attr("rowspan"),r.tableBody.colSpan[s]=e(d).attr("colspan"),r.tableBody.tdIds[s]=e(d).attr("id"),r.tableBody.tdClasses[s]=e(d).attr("class"),r.tableBody.index++,s++)}))})),r}(v),x=!1,T=!1,O=!1,j=e(window).width(),B=Number(.8*j);j<=700?n(x,B,"mobile"):j>700&&j<1024?o(T,B,"tablet"):i(O),e(window).resize((function(){j=e(window).width(),B=Number(.8*j),j<=700?n(x,B,"mobile"):j>700&&j<1024?o(T,B,"tablet"):i(O)}))}}))}))})();
assets/js/ninja-tables-admin.3.1.0.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see ninja-tables-admin.3.1.0.js.LICENSE.txt */
2
- (()=>{var t={2152:function(t){var e;e=function(){return function(){var t={686:function(t,e,a){"use strict";a.d(e,{default:function(){return k}});var n=a(279),i=a.n(n),o=a(370),l=a.n(o),s=a(817),r=a.n(s);function c(t){try{return document.execCommand(t)}catch(t){return!1}}var u=function(t){var e=r()(t);return c("cut"),e},d=function(t,e){var a=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return a.style.top="".concat(n,"px"),a.setAttribute("readonly",""),a.value=t,a}(t);e.container.appendChild(a);var n=r()(a);return c("copy"),a.remove(),n},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},a="";return"string"==typeof t?a=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?a=d(t.value,e):(a=r()(t),c("copy")),a};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var _=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,a=void 0===e?"copy":e,n=t.container,i=t.target,o=t.text;if("copy"!==a&&"cut"!==a)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===a&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===a&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?p(o,{container:n}):i?"cut"===a?u(i):p(i,{container:n}):void 0};function h(t){return h="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},h(t)}function f(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,n=y(t);if(e){var i=y(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return g(this,a)}}function g(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function w(t,e){var a="data-clipboard-".concat(t);if(e.hasAttribute(a))return e.getAttribute(a)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(o,t);var e,a,n,i=b(o);function o(t,e){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(a=i.call(this)).resolveOptions(e),a.listenClick(t),a}return e=o,a=[{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"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,a=this.action(e)||"copy",n=_({action:a,container:this.container,target:this.target(e),text:this.text(e)});this.emit(n?"success":"error",{action:a,text:n,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],n=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(t,e)}},{key:"cut",value:function(t){return u(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach((function(t){a=a&&!!document.queryCommandSupported(t)})),a}}],a&&f(e.prototype,a),n&&f(e,n),o}(i()),k=x},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,a){var n=a(828);function i(t,e,a,n,i){var l=o.apply(this,arguments);return t.addEventListener(a,l,i),{destroy:function(){t.removeEventListener(a,l,i)}}}function o(t,e,a,i){return function(a){a.delegateTarget=n(a.target,e),a.delegateTarget&&i.call(t,a)}}t.exports=function(t,e,a,n,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof a?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,a,n,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var a=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,a){var n=a(879),i=a(438);t.exports=function(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(a))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}(t,e,a);if(n.nodeList(t))return function(t,e,a){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,a)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,a)}))}}}(t,e,a);if(n.string(t))return function(t,e,a){return i(document.body,t,e,a)}(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(t),n.removeAllRanges(),n.addRange(i),e=n.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,a){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var n=this;function i(){n.off(t,i),e.apply(a,arguments)}return i._=e,this.on(t,i,a)},emit:function(t){for(var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=a.length;n<i;n++)a[n].fn.apply(a[n].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),n=a[t],i=[];if(n&&e)for(var o=0,l=n.length;o<l;o++)n[o].fn!==e&&n[o].fn._!==e&&i.push(n[o]);return i.length?a[t]=i:delete a[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={exports:{}};return t[n](i,i.exports,a),i.exports}return a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a(686)}().default},t.exports=e()},1586:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_doc_top_blocks .ff_block .ff_block_box{display:flex;flex-direction:column;justify-content:space-between}.ninja_doc_top_blocks .ff_block .ff_block_box>p{margin-bottom:0}",""]);const o=i},738:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-menu.el-menu--horizontal{border-bottom:none}",""]);const o=i},1778:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".js_instruction{background:#fff;font-size:14px;line-height:22px;margin-bottom:20px;padding:10px 20px}",""]);const o=i},4713:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".space-between{align-items:center;display:flex;justify-content:space-between}",""]);const o=i},5061:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-tables-component .el-slider{margin-left:0!important}",""]);const o=i},3080:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".form-item[data-v-07712242]{margin:10px 0}.form-item label[data-v-07712242]{width:100px}",""]);const o=i},448:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""]);const o=i},5311:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".remove[data-v-590fa148]{display:inline-block}",""]);const o=i},1651:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert{border:1px solid transparent;border-radius:4px;margin-bottom:20px;padding:15px}",""]);const o=i},2023:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor{height:auto;min-height:350px}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""]);const o=i},230:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor{height:auto;min-height:350px}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""]);const o=i},1799:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor[data-v-ad6aab96]{height:auto;min-height:180px}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ad6aab96]{display:none}",""]);const o=i},2174:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-message{top:5px;z-index:999999!important}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""]);const o=i},5600:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"label.form_group.search_action{margin-bottom:0;padding-top:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""]);const o=i},1903:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_intro_welcome[data-v-6779a907]{background:#fff;margin:45px auto 0;max-width:600px;padding:30px;text-align:center}.ninja_intro_welcome img[data-v-6779a907]{width:100%}.ninja_intro_welcome h2[data-v-6779a907]{font-size:30px}.ninja_intro_welcome .ninja_actions[data-v-6779a907]{margin-top:30px}",""]);const o=i},5855:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},5814:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},6618:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""]);const o=i},4253:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}.compact{margin-top:3px!important;padding:0!important}",""]);const o=i},5443:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_tables_wpposts .el-checkbox-group{overflow:scroll!important}.ninja_tables_wpposts .el-transfer-panel,.ninja_tables_wpposts .table-rows .el-transfer-panel{width:230px!important}.ninja_tables_wpposts .el-transfer-panel__item{display:block!important}.no-margin{margin:0}.nt_conditions .el-collapse-item.is-active{border:1px solid #ebeef5}.nt_conditions .el-collapse-item.is-active .el-collapse-item__wrap{background:#ebeef5}",""]);const o=i},9757:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_date_picker>.form-control{float:left;width:90%}.ninja_date_picker>.el-date-editor{cursor:pointer;margin:0;padding:0;width:8px!important}.ninja_date_picker>.el-date-editor .el-input__inner{background:grey;height:34px;padding:15px;width:10px!important}",""]);const o=i},6140:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".review_dialog{background:#fff;font-size:16px;padding:10px 15px 20px;position:relative}.review_dialog span.consentDismiss{color:grey;cursor:pointer;position:absolute;right:7px;top:2px;z-index:99999}.review_dialog p{font-size:16px}.review_dialog a{cursor:pointer;margin-right:20px;text-decoration:none}",""]);const o=i},1967:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{color:gray;font-size:12px;text-decoration:none}",""]);const o=i},1128:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".form-wrapper{padding:10px}.form-wrapper label{display:initial;margin-bottom:0;max-width:none}.form-wrapper .el-form-item{margin-bottom:15px}.form-wrapper .more-settings:hover{cursor:pointer}.form-wrapper .more-settings i{font-size:1.5em}.form-wrapper .form_group{margin-top:10px}.form-wrapper .basic_settings .el-select{max-width:100%;min-width:400px}",""]);const o=i},9525:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""]);const o=i},8684:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".column-condition-config .el-row{display:flex;margin-bottom:5px}.column-condition-config .el-col{display:flex;margin:0 5px}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{height:33px;width:100%}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{font-weight:400;margin-top:10px}.column-condition-config .form_group{height:35px;margin:0}.column-condition-config .el-color-picker,.column-condition-config .el-color-picker__mask{width:100%!important}.column-condition-config .el-button--mini{padding:5px 13px}.column-condition-config .conditional-settings-header{align-items:center;display:flex;justify-content:space-between}",""]);const o=i},6182:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{margin:0 auto;width:480px}.footable_parent.ninja_device_tablet{margin:0 auto;max-width:768px;padding:0 20px}.font-setting .font{margin-top:10px}.font-setting .font label{width:30%}.ninja_footable tbody tr td{font-family:var(--ninja-table-font-family);font-size:var(--ninja-table-font-size)}",""]);const o=i},3612:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".spaced>.el-radio[data-v-40d145e5]{line-height:2;margin-left:0;margin-right:30px!important}",""]);const o=i},6134:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"table.ninja_filter_table{border-collapse:collapse;text-align:left;width:100%}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""]);const o=i},6834:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".settings_header{background:#fff;font-size:20px;margin-left:-20px;margin-right:-20px;margin-top:-20px;padding-bottom:20px;padding-left:24px;padding-top:20px}.settings_header .action{cursor:pointer;font-size:16px}.settings_header .action:hover{color:#0085ba}",""]);const o=i},44:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-table{margin-bottom:10px;margin-top:10px}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert{border:1px solid transparent;border-radius:4px;margin-bottom:20px;padding:15px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{cursor:pointer;display:inline-block;opacity:0;padding-left:5px}.nt-column-config:hover{color:#58b7ff}.instruction_block{background:#fff;padding:30px 20px}.js-sortable-table table tr td span,.js-sortable-table table tr th span{word-break:break-word}.js-sortable-table table tr td span i,.js-sortable-table table tr th span i{padding:0}",""]);const o=i},6368:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"#fileUpload[data-v-3dd4e718]{max-width:200px}.justify-items[data-v-3dd4e718]{align-items:center;display:flex;justify-content:space-between}.ninja_content .ninja_suggest[data-v-3dd4e718]{background:#f1f1f1}.ninja_content[data-v-3dd4e718]{margin:1em 0}",""]);const o=i},6661:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".dialog-footer{align-items:center;display:flex;justify-content:space-between}.dialog-footer.single-child{justify-content:flex-end}.row_config_container{background:#d8edfd;border-radius:5px;display:block;padding:10px 15px;position:relative}",""]);const o=i},7347:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-tables-component .el-collapse-item__content{padding-bottom:6px}.ninja-tables-component .accordions .export .el-select{width:50%}.ninja-tables-component .accordions .export .el-button{margin-top:10px;width:100%}.ninja-tables-component .accordions>.is-active{max-height:410px;overflow-y:scroll}.ninja-tables-component .accordions>.is-active::-webkit-scrollbar{width:.2em}.ninja-tables-component .accordions>.is-active::-webkit-scrollbar-thumb{background-color:#409eff;outline:1px solid #409eff}.ninja-tables-component .accordions>.is-active .el-collapse-item__arrow.is-active{margin-right:6px}.ninja-tables-component .accordions .el-tabs__item.is-active{display:initial}.ninja-tables-component .el-slider__runway{margin-left:12px}.ninja-tables-component .el-slider{margin-left:10px}.ninja-tables-component .element-style{align-items:center;display:flex;justify-content:center;padding:10px 0}.ninja-tables-component .element-style .button-component{padding:15px;width:120px}.ninja-tables-component .element-style .button-component i{font-size:15px}.ninja-tables-component .element-style .button-component:hover{cursor:move}.ninja-tables-component .element-style .pro-component:hover{cursor:not-allowed}.ninja-tables-component .element-style .item .el-badge__content{right:33px}.ninja-tables-component .ntb-manage-button{display:block;margin:10px auto;padding:10px 20px}.ninja-tables-component .hr-dashed{border-top:1px dashed #cfd5f2}.ninja-tables-component .component-spacing,.ninja-tables-component .component-wrapper>*{padding:6px 0}",""]);const o=i},9192:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".new-table-wrapper .table-type-heading h2{background-color:#1c2024;color:#fff;padding:10px;text-align:center}.new-table-wrapper .table-type-heading h2 .ready-made-name{margin-top:40px}.new-table-wrapper .table-title-style{display:table;margin:5px auto 20px}.new-table-wrapper .ready-made-table-image{position:relative}.new-table-wrapper .ready-made-table-image img{transition:1s}.new-table-wrapper .ready-made-table-image:hover img{opacity:.25}.new-table-wrapper .ready-made-table-image:hover .ready-made-table-hover-button{opacity:1}.new-table-wrapper .ready-made-table-hover-button{left:50%;opacity:0;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transition:.5s ease}.new-table-wrapper .new_table{border:2px solid #ddd;display:grid;height:200px;margin-left:40px;margin-top:50px;position:relative;width:200px}.new-table-wrapper .new_table .table-column-input{position:absolute;top:-40px;width:200px}.new-table-wrapper .new_table .table-row-input{left:-120px;position:absolute;top:80px;transform:rotate(-90deg);width:200px}.new-table-wrapper .new_table .table-row-column{border:.5px solid #ccc}.new-table-wrapper .create-button .el-button{left:42px;margin-top:10px;position:relative;width:200px}.new-table-wrapper .import-button{align-items:center;display:flex;justify-content:center}",""]);const o=i},5865:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,'.ninja-tables-layout .table-customize-button{padding-bottom:20px}.ninja-tables-layout .sortable-ghost{border:1px dashed grey;font-size:0;overflow:hidden;width:100%}.ninja-tables-layout .button-group{display:flex!important;justify-content:center;margin:5px auto}.ninja-tables-layout .manage-button{display:block;margin:0 auto 10px;padding:10px 20px}.ninja-tables-layout .ntb_table_wrapper{overflow:auto;overflow-wrap:break-word;padding-left:var(--table-wrapper-padding);padding-top:5px;position:relative;z-index:1}.ninja-tables-layout .ntb_table_wrapper .pixel-bar-slider{background:#3b503f;border-radius:10px;margin:10px auto;padding:0 20px;width:50%}.ninja-tables-layout .ntb_table_wrapper .table .table-header{display:table-caption;margin-bottom:var(--margin-bottom);margin-left:var(--column-arrow);position:sticky;position:-webkit-sticky;top:0;z-index:99}.ninja-tables-layout .ntb_table_wrapper .table .table-header th .column-options span i{border:1px solid;color:#fff;font-size:12px;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active{background-color:#409eff;display:block;margin-left:var(--td-th-active-margin);margin-top:var(--margin-top)}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active:hover{background-color:#5f6368;cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active:hover .column-options span i{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .tbody{display:block;margin-left:var(--td-th-active-margin)}.ninja-tables-layout .ntb_table_wrapper .table .tbody .td-highlight{background:inherit;border:none!important;position:relative;z-index:9}.ninja-tables-layout .ntb_table_wrapper .table .tbody .td-highlight:before{background:inherit;box-shadow:var(--offset-x) var(--offset-y) var(--blur-radius) var(--shadow-color);content:"";height:100%;left:-15px;position:absolute;top:0;width:calc(100% + 30px);z-index:-1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:first-child .td-highlight:before{top:var(--highlight-height-top)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:first-child .td-highlight:before,.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:last-child .td-highlight:before{height:calc(100% + var(--highlight-height-bottom))}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr.firstRowSticky{position:sticky;top:-5px;z-index:2}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr,.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td{position:relative}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .sortIcon{font-size:30px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options{top:calc(50% - 10px)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options span i{border:1px solid;color:#000;font-size:12px;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options span span{color:#000}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options:hover i{color:#fff;cursor:pointer;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options:hover span{color:#fff;cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move{height:100%;position:absolute;right:-37px;top:0}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button{width:30px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button i{transform:rotate(270deg)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button .top{margin-top:15px;position:absolute}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button .bottom{margin-bottom:15px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active{background-color:#409eff;border-bottom:var(--border-size) solid var(--border-color);cursor:move;max-width:20px;opacity:1;position:sticky;position:-webkit-sticky;z-index:99}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active .row-options span i{color:#fff;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active .row-options span span{color:#fff}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active:hover{background-color:#5f6368}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-inactive{opacity:0;right:10px;visibility:hidden}.ninja-tables-layout .ntb_table_wrapper .table .single-item{border:0 solid transparent;display:block;position:relative}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style{color:#fff;display:flex;font-size:14px;height:auto;justify-content:flex-end;left:0;opacity:0;position:absolute;right:0;top:-15px;width:100%}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style .el-icon-rank{cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style i{background:#3f9eff;font-weight:700;padding:0 2px}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover .hover-item{border:1px solid #3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover .icon-style{opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon{position:absolute}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .bookmark,.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .corner,.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .side{border:1px solid #3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .icon-style{justify-content:flex-start;opacity:1;top:0;z-index:3}@-webkit-keyframes selected-item-move{0%{background-position:0 50%}to{background-position:100% 50%}}@keyframes selected-item-move{0%{background-position:0 50%}to{background-position:100% 50%}}.ninja-tables-layout .ntb_table_wrapper .table #selected-item{animation:selected-item-move 40s linear infinite reverse;background:repeating-linear-gradient(45deg,#fff,#fff 5px,#3299d1 0,#3299d1 10px);background-size:400% 400%;height:100%;left:0;opacity:.2;top:0;width:100%}.responsive-mode:hover{cursor:pointer}',""]);const o=i},4889:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,'.ribbon-wrapper{max-width:600px;position:relative;width:90%;z-index:1}.ribbon-wrapper .corner{height:100px;overflow:hidden;position:absolute;width:120px}.ribbon-wrapper .corner .content{box-shadow:0 1px 2px rgba(0,0,0,.5);display:block;position:absolute;text-align:center}.ribbon-wrapper .corner .left{right:-25px;top:30px;transform:rotate(-45deg)}.ribbon-wrapper .corner .right{left:-25px;top:30px;transform:rotate(45deg)}.ribbon-wrapper .bookmark{filter:drop-shadow(2px 3px 2px rgba(0,0,0,.5));overflow:hidden;position:absolute}.ribbon-wrapper .bookmark>.content{font-size:1.25rem;font-weight:400;padding:8px 2px 4px;text-align:center}.ribbon-wrapper .bookmark.up>.content{-webkit-clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%)}.ribbon-wrapper .side{background-size:cover;float:left;position:relative}.ribbon-wrapper .side .content{box-shadow:1px 2px 3px rgba(0,0,0,.5);padding:8px 10px;position:absolute}.ribbon-wrapper .side .content:before{background:inherit;border-radius:5px 0 0 5px;content:"";height:100%;left:-6.5px;padding:1px 0 7px;position:absolute;top:0;width:7px}.ribbon-wrapper .side .content:after{background:#add8e6;border-radius:5px 0 0 5px;bottom:-5px;content:"";height:5px;left:-4.5px;position:absolute;width:5px}.ribbon-wrapper .horizontal{box-shadow:1px 2px 3px rgba(0,0,0,.5);position:relative}.ribbon-wrapper .horizontal .content{position:absolute}.ntb-datas-wrapper .svgIcon{display:inline-block;mask-size:cover;-webkit-mask-size:cover}.ntb-datas-wrapper .ntb-progress .el-progress .el-progress__text{color:var(--progress-bar-text-color);font-size:var(--progress-bar-font-size)}.ntb-datas-wrapper .ntb-rating{height:auto!important}.ntb-datas-wrapper .ntb-rating .el-rate__item i{font-size:var(--rating-font-size)}.ntb-datas-wrapper dd,.ntb-datas-wrapper li{margin-bottom:0}.ntb-datas-wrapper .ntb-list-style li{position:relative}.ntb-datas-wrapper .ntb-list-style li .icon-styles{color:#fff;font-size:12px;height:auto;justify-content:flex-end;opacity:0;position:absolute;visibility:hidden;width:auto;z-index:1}.ntb-datas-wrapper .ntb-list-style li .icon-styles i{background:#3f9eff;font-weight:700;padding:0 1px}.ntb-datas-wrapper .ntb-list-style li:hover{border:1px solid #3f9eff;cursor:pointer}.ntb-datas-wrapper .ntb-list-style li:hover .icon-styles{opacity:1;right:0;top:-17px;visibility:visible}.ntb-datas-wrapper .button-content-wrapper{align-items:center;display:flex;justify-content:center}.ntb-datas-wrapper .icon-text-wrapper{align-items:center;justify-content:center;line-height:1.2}.ntb-datas-wrapper .ntb-el-button:hover .svgIcon{background-color:var(--icon-color-hover)!important}',""]);const o=i},394:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ntb-elements-wrapper:hover{border:1px solid #3f9eff}.svgIcon{display:inline-block;mask-size:cover;-webkit-mask-size:cover}.ntb-progress .el-progress .el-progress__text{color:var(--progress-bar-text-color);font-size:var(--progress-bar-font-size)!important}.remove-elements .el-input .el-input__inner{height:auto}",""]);const o=i},3571:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".external-source-nav .el-collapse-item__header,.external-source-nav .el-collapse-item__wrap{padding:0 15px}.external-source-nav .sync-settings{margin-top:15px}.external-source-nav .el-collapse-item__content{padding-bottom:15px}",""]);const o=i},7825:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""]);const o=i},6161:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""]);const o=i},9178:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}.el-transfer__buttons{padding:0 10px!important}",""]);const o=i},935:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".nt-woo-nav .nt-appearance label.el-checkbox{display:block}.nt-woo-nav .nt-form-group{margin-bottom:15px}.nt-woo-nav .nt-form-group label{margin-right:15px}",""]);const o=i},1368:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".license_form{padding:20px 0;text-align:center}.license_form label{display:block;font-size:30px;font-weight:400;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{background:#fbfdff;border:1px solid gray;border-radius:5px;font-size:20px;height:48px;margin-bottom:20px;min-width:400px;padding:0 10px;width:50%}.license_form .error_message{background:#ffe491;border-radius:5px;color:#000;font-weight:700;margin-top:40px;padding:10px}.license_success{padding:40px 0;text-align:center}.license_renew_box{background:#ffee9b;border:2px dashed #ff0;padding:10px}.license_renew_box p{font-size:18px}.license_renew_box a{background:#0073aa;border:1px solid gray;border-radius:21px;color:#fff;font-weight:700;padding:5px 15px;text-decoration:none;text-transform:capitalize}.license_renew_box a:hover{background:#fff;color:#0073aa}",""]);const o=i},4189:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_intro_welcome{background:#fff;margin:45px auto 0;max-width:600px;padding:30px 20px;text-align:center}.ninja_intro_welcome h2{font-size:30px}.ninja_intro_welcome .ninja_actions{margin-bottom:30px}.ninja_intro_welcome .ninja_docs{text-align:left}",""]);const o=i},8674:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-add-table .el-main{min-height:auto;padding:0 1px 0 15px}.ninja-add-table .el-menu{border-right:initial}.ninja-add-table .el-menu-item .el-icon-fluent-form{height:18px}.ninja-add-table .el-menu-item .dashicons{height:18px;margin-right:5px;width:24px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""]);const o=i},5867:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-tables.el-table td,.ninja-tables.el-table th{padding:5px 0}.ninja-tables.el-table span.row-delete a{color:#a00}.ninja-tables.el-table a{text-decoration:none}.ninja-tables.el-table .description .cell{max-height:60px}",""]);const o=i},91:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".hint[data-v-417a7c88]{background-color:#f4f4f5;color:#909399;padding:8px 16px;width:100%}.form_group.ninja_errors[data-v-417a7c88]{background:#ffd7d7;padding:10px}",""]);const o=i},7100:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".premium-notice .buy_now_button[data-v-c52d6be2]{text-decoration:none}",""]);const o=i},2361:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""]);const o=i},2151:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"button.button.ninja_demo_media_button{cursor:pointer;position:absolute;z-index:9999999999}.wp_vue_editor{min-height:100px;width:100%}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{left:0;position:absolute;top:0;z-index:2}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""]);const o=i},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=t(e);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(i[l]=!0)}for(var s=0;s<t.length;s++){var r=[].concat(t[s]);n&&i[r[0]]||(a&&(r[2]?r[2]="".concat(a," and ").concat(r[2]):r[2]=a),e.push(r))}},e}},8091:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var a=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),l=0,s=o.length;l<s;l++){var r=o[l],c=Object.getOwnPropertyDescriptor(i,r);void 0!==c&&c.enumerable&&(a[r]=i[r])}}return a}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},8552:(t,e,a)=>{var n=a(852)(a(5639),"DataView");t.exports=n},1989:(t,e,a)=>{var n=a(1789),i=a(401),o=a(7667),l=a(1327),s=a(1866);function r(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var n=t[e];this.set(n[0],n[1])}}r.prototype.clear=n,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},8407:(t,e,a)=>{var n=a(7040),i=a(4125),o=a(2117),l=a(7529),s=a(4705);function r(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var n=t[e];this.set(n[0],n[1])}}r.prototype.clear=n,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},7071:(t,e,a)=>{var n=a(852)(a(5639),"Map");t.exports=n},3369:(t,e,a)=>{var n=a(4785),i=a(1285),o=a(6e3),l=a(9916),s=a(5265);function r(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var n=t[e];this.set(n[0],n[1])}}r.prototype.clear=n,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},3818:(t,e,a)=>{var n=a(852)(a(5639),"Promise");t.exports=n},8525:(t,e,a)=>{var n=a(852)(a(5639),"Set");t.exports=n},8668:(t,e,a)=>{var n=a(3369),i=a(619),o=a(2385);function l(t){var e=-1,a=null==t?0:t.length;for(this.__data__=new n;++e<a;)this.add(t[e])}l.prototype.add=l.prototype.push=i,l.prototype.has=o,t.exports=l},6384:(t,e,a)=>{var n=a(8407),i=a(7465),o=a(3779),l=a(7599),s=a(4758),r=a(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=l,c.prototype.has=s,c.prototype.set=r,t.exports=c},2705:(t,e,a)=>{var n=a(5639).Symbol;t.exports=n},1149:(t,e,a)=>{var n=a(5639).Uint8Array;t.exports=n},577:(t,e,a)=>{var n=a(852)(a(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,a){switch(a.length){case 0:return t.call(e);case 1:return t.call(e,a[0]);case 2:return t.call(e,a[0],a[1]);case 3:return t.call(e,a[0],a[1],a[2])}return t.apply(e,a)}},7412:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length;++a<n&&!1!==e(t[a],a,t););return t}},4963:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length,i=0,o=[];++a<n;){var l=t[a];e(l,a,t)&&(o[i++]=l)}return o}},7443:(t,e,a)=>{var n=a(2118);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,a){for(var n=-1,i=null==t?0:t.length;++n<i;)if(a(e,t[n]))return!0;return!1}},4636:(t,e,a)=>{var n=a(2545),i=a(5694),o=a(1469),l=a(4144),s=a(5776),r=a(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var a=o(t),u=!a&&i(t),d=!a&&!u&&l(t),p=!a&&!u&&!d&&r(t),m=a||u||d||p,_=m?n(t.length,String):[],h=_.length;for(var f in t)!e&&!c.call(t,f)||m&&("length"==f||d&&("offset"==f||"parent"==f)||p&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,h))||_.push(f);return _}},9932:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length,i=Array(n);++a<n;)i[a]=e(t[a],a,t);return i}},2488:t=>{t.exports=function(t,e){for(var a=-1,n=e.length,i=t.length;++a<n;)t[i+a]=e[a];return t}},2663:t=>{t.exports=function(t,e,a,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(a=t[++i]);++i<o;)a=e(a,t[i],i,t);return a}},2908:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length;++a<n;)if(e(t[a],a,t))return!0;return!1}},8983:(t,e,a)=>{var n=a(371)("length");t.exports=n},9029:t=>{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},8470:(t,e,a)=>{var n=a(7813);t.exports=function(t,e){for(var a=t.length;a--;)if(n(t[a][0],e))return a;return-1}},9881:(t,e,a)=>{var n=a(7816),i=a(9291)(n);t.exports=i},1848:t=>{t.exports=function(t,e,a,n){for(var i=t.length,o=a+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},8483:(t,e,a)=>{var n=a(5063)();t.exports=n},7816:(t,e,a)=>{var n=a(8483),i=a(3674);t.exports=function(t,e){return t&&n(t,e,i)}},7786:(t,e,a)=>{var n=a(1811),i=a(327);t.exports=function(t,e){for(var a=0,o=(e=n(e,t)).length;null!=t&&a<o;)t=t[i(e[a++])];return a&&a==o?t:void 0}},8866:(t,e,a)=>{var n=a(2488),i=a(1469);t.exports=function(t,e,a){var o=e(t);return i(t)?o:n(o,a(t))}},4239:(t,e,a)=>{var n=a(2705),i=a(9607),o=a(2333),l=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?i(t):o(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,a)=>{var n=a(1848),i=a(2722),o=a(2351);t.exports=function(t,e,a){return e==e?o(t,e,a):n(t,i,a)}},7556:(t,e,a)=>{var n=a(8668),i=a(7443),o=a(1196),l=a(9932),s=a(7518),r=a(4757),c=Math.min;t.exports=function(t,e,a){for(var u=a?o:i,d=t[0].length,p=t.length,m=p,_=Array(p),h=1/0,f=[];m--;){var v=t[m];m&&e&&(v=l(v,s(e))),h=c(v.length,h),_[m]=!a&&(e||d>=120&&v.length>=120)?new n(m&&v):void 0}v=t[0];var b=-1,g=_[0];t:for(;++b<d&&f.length<h;){var y=v[b],w=e?e(y):y;if(y=a||0!==y?y:0,!(g?r(g,w):u(f,w,a))){for(m=p;--m;){var x=_[m];if(!(x?r(x,w):u(t[m],w,a)))continue t}g&&g.push(w),f.push(y)}}return f}},9454:(t,e,a)=>{var n=a(4239),i=a(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},939:(t,e,a)=>{var n=a(2492),i=a(7005);t.exports=function t(e,a,o,l,s){return e===a||(null==e||null==a||!i(e)&&!i(a)?e!=e&&a!=a:n(e,a,o,l,t,s))}},2492:(t,e,a)=>{var n=a(6384),i=a(7114),o=a(8351),l=a(6096),s=a(4160),r=a(1469),c=a(4144),u=a(6719),d="[object Arguments]",p="[object Array]",m="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,a,h,f,v){var b=r(t),g=r(e),y=b?p:s(t),w=g?p:s(e),x=(y=y==d?m:y)==m,k=(w=w==d?m:w)==m,C=y==w;if(C&&c(t)){if(!c(e))return!1;b=!0,x=!1}if(C&&!x)return v||(v=new n),b||u(t)?i(t,e,a,h,f,v):o(t,e,y,a,h,f,v);if(!(1&a)){var S=x&&_.call(t,"__wrapped__"),j=k&&_.call(e,"__wrapped__");if(S||j){var $=S?t.value():t,T=j?e.value():e;return v||(v=new n),f($,T,a,h,v)}}return!!C&&(v||(v=new n),l(t,e,a,h,f,v))}},2958:(t,e,a)=>{var n=a(6384),i=a(939);t.exports=function(t,e,a,o){var l=a.length,s=l,r=!o;if(null==t)return!s;for(t=Object(t);l--;){var c=a[l];if(r&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++l<s;){var u=(c=a[l])[0],d=t[u],p=c[1];if(r&&c[2]){if(void 0===d&&!(u in t))return!1}else{var m=new n;if(o)var _=o(d,p,u,t,e,m);if(!(void 0===_?i(p,d,3,o,m):_))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,a)=>{var n=a(3560),i=a(5346),o=a(3218),l=a(346),s=/^\[object .+?Constructor\]$/,r=Function.prototype,c=Object.prototype,u=r.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?p:s).test(l(t))}},8749:(t,e,a)=>{var n=a(4239),i=a(1780),o=a(7005),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!l[n(t)]}},7206:(t,e,a)=>{var n=a(1573),i=a(6432),o=a(6557),l=a(1469),s=a(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?l(t)?i(t[0],t[1]):n(t):s(t)}},280:(t,e,a)=>{var n=a(5726),i=a(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var a in Object(t))o.call(t,a)&&"constructor"!=a&&e.push(a);return e}},1573:(t,e,a)=>{var n=a(2958),i=a(1499),o=a(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(a){return a===t||n(a,t,e)}}},6432:(t,e,a)=>{var n=a(939),i=a(7361),o=a(9095),l=a(5403),s=a(9162),r=a(2634),c=a(327);t.exports=function(t,e){return l(t)&&s(e)?r(c(t),e):function(a){var l=i(a,t);return void 0===l&&l===e?o(a,t):n(e,l,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,a)=>{var n=a(7786);t.exports=function(t){return function(e){return n(e,t)}}},8904:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,a)=>{var n=a(6557),i=a(5357),o=a(61);t.exports=function(t,e){return o(i(t,e,n),t+"")}},6560:(t,e,a)=>{var n=a(5703),i=a(8777),o=a(6557),l=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=l},2545:t=>{t.exports=function(t,e){for(var a=-1,n=Array(t);++a<t;)n[a]=e(a);return n}},531:(t,e,a)=>{var n=a(2705),i=a(9932),o=a(1469),l=a(3448),s=n?n.prototype:void 0,r=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(l(e))return r?r.call(e):"";var a=e+"";return"0"==a&&1/e==-Infinity?"-0":a}},7561:(t,e,a)=>{var n=a(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},7518:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,a)=>{var n=a(9932);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,a)=>{var n=a(9246);t.exports=function(t){return n(t)?t:[]}},4290:(t,e,a)=>{var n=a(6557);t.exports=function(t){return"function"==typeof t?t:n}},1811:(t,e,a)=>{var n=a(1469),i=a(5403),o=a(5514),l=a(9833);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(l(t))}},4429:(t,e,a)=>{var n=a(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,a)=>{var n=a(8612);t.exports=function(t,e){return function(a,i){if(null==a)return a;if(!n(a))return t(a,i);for(var o=a.length,l=e?o:-1,s=Object(a);(e?l--:++l<o)&&!1!==i(s[l],l,s););return a}}},5063:t=>{t.exports=function(t){return function(e,a,n){for(var i=-1,o=Object(e),l=n(e),s=l.length;s--;){var r=l[t?s:++i];if(!1===a(o[r],r,o))break}return e}}},5393:(t,e,a)=>{var n=a(2663),i=a(3816),o=a(8748),l=RegExp("['’]","g");t.exports=function(t){return function(e){return n(o(i(e).replace(l,"")),t,"")}}},7740:(t,e,a)=>{var n=a(7206),i=a(8612),o=a(3674);t.exports=function(t){return function(e,a,l){var s=Object(e);if(!i(e)){var r=n(a,3);e=o(e),a=function(t){return r(s[t],t,s)}}var c=t(e,a,l);return c>-1?s[r?e[c]:c]:void 0}}},9389:(t,e,a)=>{var n=a(8904)({À:"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=n},8777:(t,e,a)=>{var n=a(852),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,a)=>{var n=a(8668),i=a(2908),o=a(4757);t.exports=function(t,e,a,l,s,r){var c=1&a,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var p=r.get(t),m=r.get(e);if(p&&m)return p==e&&m==t;var _=-1,h=!0,f=2&a?new n:void 0;for(r.set(t,e),r.set(e,t);++_<u;){var v=t[_],b=e[_];if(l)var g=c?l(b,v,_,e,t,r):l(v,b,_,t,e,r);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!i(e,(function(t,e){if(!o(f,e)&&(v===t||s(v,t,a,l,r)))return f.push(e)}))){h=!1;break}}else if(v!==b&&!s(v,b,a,l,r)){h=!1;break}}return r.delete(t),r.delete(e),h}},8351:(t,e,a)=>{var n=a(2705),i=a(1149),o=a(7813),l=a(7114),s=a(8776),r=a(1814),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,a,n,c,d,p){switch(a){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var m=s;case"[object Set]":var _=1&n;if(m||(m=r),t.size!=e.size&&!_)return!1;var h=p.get(t);if(h)return h==e;n|=2,p.set(t,e);var f=l(m(t),m(e),n,c,d,p);return p.delete(t),f;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,a)=>{var n=a(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,a,o,l,s){var r=1&a,c=n(t),u=c.length;if(u!=n(e).length&&!r)return!1;for(var d=u;d--;){var p=c[d];if(!(r?p in e:i.call(e,p)))return!1}var m=s.get(t),_=s.get(e);if(m&&_)return m==e&&_==t;var h=!0;s.set(t,e),s.set(e,t);for(var f=r;++d<u;){var v=t[p=c[d]],b=e[p];if(o)var g=r?o(b,v,p,e,t,s):o(v,b,p,t,e,s);if(!(void 0===g?v===b||l(v,b,a,o,s):g)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var y=t.constructor,w=e.constructor;y==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(t),s.delete(e),h}},1957:(t,e,a)=>{var n="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g;t.exports=n},8234:(t,e,a)=>{var n=a(8866),i=a(9551),o=a(3674);t.exports=function(t){return n(t,o,i)}},5050:(t,e,a)=>{var n=a(7019);t.exports=function(t,e){var a=t.__data__;return n(e)?a["string"==typeof e?"string":"hash"]:a.map}},1499:(t,e,a)=>{var n=a(9162),i=a(3674);t.exports=function(t){for(var e=i(t),a=e.length;a--;){var o=e[a],l=t[o];e[a]=[o,l,n(l)]}return e}},852:(t,e,a)=>{var n=a(8458),i=a(7801);t.exports=function(t,e){var a=i(t,e);return n(a)?a:void 0}},9607:(t,e,a)=>{var n=a(2705),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),a=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=l.call(t);return n&&(e?t[s]=a:delete t[s]),i}},9551:(t,e,a)=>{var n=a(4963),i=a(479),o=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(t){return null==t?[]:(t=Object(t),n(l(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},4160:(t,e,a)=>{var n=a(8552),i=a(7071),o=a(3818),l=a(8525),s=a(577),r=a(4239),c=a(346),u="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",_="[object DataView]",h=c(n),f=c(i),v=c(o),b=c(l),g=c(s),y=r;(n&&y(new n(new ArrayBuffer(1)))!=_||i&&y(new i)!=u||o&&y(o.resolve())!=d||l&&y(new l)!=p||s&&y(new s)!=m)&&(y=function(t){var e=r(t),a="[object Object]"==e?t.constructor:void 0,n=a?c(a):"";if(n)switch(n){case h:return _;case f:return u;case v:return d;case b:return p;case g:return m}return e}),t.exports=y},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,a)=>{var n=a(1811),i=a(5694),o=a(1469),l=a(5776),s=a(1780),r=a(327);t.exports=function(t,e,a){for(var c=-1,u=(e=n(e,t)).length,d=!1;++c<u;){var p=r(e[c]);if(!(d=null!=t&&a(t,p)))break;t=t[p]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&l(p,u)&&(o(t)||i(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},3157:t=>{var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},1789:(t,e,a)=>{var n=a(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,a)=>{var n=a(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var a=e[t];return"__lodash_hash_undefined__"===a?void 0:a}return i.call(e,t)?e[t]:void 0}},1327:(t,e,a)=>{var n=a(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},1866:(t,e,a)=>{var n=a(4536);t.exports=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,a){var n=typeof t;return!!(a=null==a?9007199254740991:a)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<a}},5403:(t,e,a)=>{var n=a(1469),i=a(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var a=typeof t;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=t&&!i(t))||(l.test(t)||!o.test(t)||null!=e&&t in Object(e))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,a)=>{var n,i=a(4429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var a=t&&t.constructor;return t===("function"==typeof a&&a.prototype||e)}},9162:(t,e,a)=>{var n=a(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,a)=>{var n=a(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,a=n(e,t);return!(a<0)&&(a==e.length-1?e.pop():i.call(e,a,1),--this.size,!0)}},2117:(t,e,a)=>{var n=a(8470);t.exports=function(t){var e=this.__data__,a=n(e,t);return a<0?void 0:e[a][1]}},7529:(t,e,a)=>{var n=a(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,a)=>{var n=a(8470);t.exports=function(t,e){var a=this.__data__,i=n(a,t);return i<0?(++this.size,a.push([t,e])):a[i][1]=e,this}},4785:(t,e,a)=>{var n=a(1989),i=a(8407),o=a(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},1285:(t,e,a)=>{var n=a(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,a)=>{var n=a(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,a)=>{var n=a(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,a)=>{var n=a(5050);t.exports=function(t,e){var a=n(this,t),i=a.size;return a.set(t,e),this.size+=a.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,a=Array(t.size);return t.forEach((function(t,n){a[++e]=[n,t]})),a}},2634:t=>{t.exports=function(t,e){return function(a){return null!=a&&(a[t]===e&&(void 0!==e||t in Object(a)))}}},4523:(t,e,a)=>{var n=a(8306);t.exports=function(t){var e=n(t,(function(t){return 500===a.size&&a.clear(),t})),a=e.cache;return e}},4536:(t,e,a)=>{var n=a(852)(Object,"create");t.exports=n},6916:(t,e,a)=>{var n=a(5569)(Object.keys,Object);t.exports=n},1167:(t,e,a)=>{t=a.nmd(t);var n=a(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,l=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||l&&l.binding&&l.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(a){return t(e(a))}}},5357:(t,e,a)=>{var n=a(6874),i=Math.max;t.exports=function(t,e,a){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,l=-1,s=i(o.length-e,0),r=Array(s);++l<s;)r[l]=o[e+l];l=-1;for(var c=Array(e+1);++l<e;)c[l]=o[l];return c[e]=a(r),n(t,this,c)}}},5639:(t,e,a)=>{var n=a(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,a=Array(t.size);return t.forEach((function(t){a[++e]=t})),a}},61:(t,e,a)=>{var n=a(6560),i=a(1275)(n);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var a=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>0){if(++a>=800)return arguments[0]}else a=0;return t.apply(void 0,arguments)}}},7465:(t,e,a)=>{var n=a(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,a=e.delete(t);return this.size=e.size,a}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,a)=>{var n=a(8407),i=a(7071),o=a(3369);t.exports=function(t,e){var a=this.__data__;if(a instanceof n){var l=a.__data__;if(!i||l.length<199)return l.push([t,e]),this.size=++a.size,this;a=this.__data__=new o(l)}return a.set(t,e),this.size=a.size,this}},2351:t=>{t.exports=function(t,e,a){for(var n=a-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},8016:(t,e,a)=>{var n=a(8983),i=a(2689),o=a(8816);t.exports=function(t){return i(t)?o(t):n(t)}},5514:(t,e,a)=>{var n=a(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,l=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,a,n,i){e.push(n?i.replace(o,"$1"):a||t)})),e}));t.exports=l},327:(t,e,a)=>{var n=a(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var a=t.length;a--&&e.test(t.charAt(a)););return a}},3729:(t,e,a)=>{var n=a(8904)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=n},8816:t=>{var e="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+a+"|"+n+")"+"?",r="[\\ufe0e\\ufe0f]?",c=r+s+("(?:\\u200d(?:"+[i,o,l].join("|")+")"+r+s+")*"),u="(?:"+[i+a+"?",a,o,l,e].join("|")+")",d=RegExp(n+"(?="+n+")|"+u+c,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},2757:t=>{var e="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\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",o="["+i+"]",l="\\d+",s="[\\u2700-\\u27bf]",r="["+a+"]",c="[^\\ud800-\\udfff"+i+l+e+a+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+n+"]",m="(?:"+r+"|"+c+")",_="(?:"+p+"|"+c+")",h="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",g=b+v+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,d].join("|")+")"+b+v+")*"),y="(?:"+[s,u,d].join("|")+")"+g,w=RegExp([p+"?"+r+"+"+h+"(?="+[o,p,"$"].join("|")+")",_+"+"+f+"(?="+[o,p+m,"$"].join("|")+")",p+"?"+m+"+"+h,p+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,y].join("|"),"g");t.exports=function(t){return t.match(w)||[]}},5703:t=>{t.exports=function(t){return function(){return t}}},3816:(t,e,a)=>{var n=a(9389),i=a(9833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,n).replace(l,"")}},6073:(t,e,a)=>{t.exports=a(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3311:(t,e,a)=>{var n=a(7740)(a(998));t.exports=n},998:(t,e,a)=>{var n=a(1848),i=a(7206),o=a(554),l=Math.max;t.exports=function(t,e,a){var s=null==t?0:t.length;if(!s)return-1;var r=null==a?0:o(a);return r<0&&(r=l(s+r,0)),n(t,i(e,3),r)}},4486:(t,e,a)=>{var n=a(7412),i=a(9881),o=a(4290),l=a(1469);t.exports=function(t,e){return(l(t)?n:i)(t,o(e))}},7361:(t,e,a)=>{var n=a(7786);t.exports=function(t,e,a){var i=null==t?void 0:n(t,e);return void 0===i?a:i}},9095:(t,e,a)=>{var n=a(13),i=a(222);t.exports=function(t,e){return null!=t&&i(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5325:(t,e,a)=>{var n=a(9932),i=a(7556),o=a(5976),l=a(4387),s=o((function(t){var e=n(t,l);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=s},5694:(t,e,a)=>{var n=a(9454),i=a(7005),o=Object.prototype,l=o.hasOwnProperty,s=o.propertyIsEnumerable,r=n(function(){return arguments}())?n:function(t){return i(t)&&l.call(t,"callee")&&!s.call(t,"callee")};t.exports=r},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,a)=>{var n=a(3560),i=a(1780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},9246:(t,e,a)=>{var n=a(8612),i=a(7005);t.exports=function(t){return i(t)&&n(t)}},4144:(t,e,a)=>{t=a.nmd(t);var n=a(5639),i=a(5062),o=e&&!e.nodeType&&e,l=o&&t&&!t.nodeType&&t,s=l&&l.exports===o?n.Buffer:void 0,r=(s?s.isBuffer:void 0)||i;t.exports=r},3560:(t,e,a)=>{var n=a(4239),i=a(3218);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},7037:(t,e,a)=>{var n=a(4239),i=a(1469),o=a(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},3448:(t,e,a)=>{var n=a(4239),i=a(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},6719:(t,e,a)=>{var n=a(8749),i=a(7518),o=a(1167),l=o&&o.isTypedArray,s=l?i(l):n;t.exports=s},3674:(t,e,a)=>{var n=a(4636),i=a(280),o=a(8612);t.exports=function(t){return o(t)?n(t):i(t)}},8306:(t,e,a)=>{var n=a(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var a=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=a.cache;if(o.has(i))return o.get(i);var l=t.apply(this,n);return a.cache=o.set(i,l)||o,l};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i},9601:(t,e,a)=>{var n=a(371),i=a(9152),o=a(5403),l=a(327);t.exports=function(t){return o(t)?n(l(t)):i(t)}},4238:(t,e,a)=>{var n=a(280),i=a(4160),o=a(8612),l=a(7037),s=a(8016);t.exports=function(t){if(null==t)return 0;if(o(t))return l(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:n(t).length}},1865:(t,e,a)=>{var n=a(5393)((function(t,e,a){return t+(a?"_":"")+e.toLowerCase()}));t.exports=n},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,a)=>{var n=a(4841),i=1/0;t.exports=function(t){return t?(t=n(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,a)=>{var n=a(8601);t.exports=function(t){var e=n(t),a=e%1;return e==e?a?e-a:e:0}},4841:(t,e,a)=>{var n=a(7561),i=a(3218),o=a(3448),l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,r=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var a=s.test(t);return a||r.test(t)?c(t.slice(2),a?2:8):l.test(t)?NaN:+t}},9833:(t,e,a)=>{var n=a(531);t.exports=function(t){return null==t?"":n(t)}},7955:(t,e,a)=>{var n=a(9833),i=a(3729),o=/&(?:amp|lt|gt|quot|#39);/g,l=RegExp(o.source);t.exports=function(t){return(t=n(t))&&l.test(t)?t.replace(o,i):t}},2628:(t,e,a)=>{var n=a(7415),i=a(3674);t.exports=function(t){return null==t?[]:n(t,i(t))}},8748:(t,e,a)=>{var n=a(9029),i=a(3157),o=a(9833),l=a(2757);t.exports=function(t,e,a){return t=o(t),void 0===(e=a?void 0:e)?i(t)?l(t):n(t):t.match(e)||[]}},3379:(t,e,a)=>{"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var t={};return function(e){if(void 0===t[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(t){a=null}t[e]=a}return t[e]}}(),l=[];function s(t){for(var e=-1,a=0;a<l.length;a++)if(l[a].identifier===t){e=a;break}return e}function r(t,e){for(var a={},n=[],i=0;i<t.length;i++){var o=t[i],r=e.base?o[0]+e.base:o[0],c=a[r]||0,u="".concat(r," ").concat(c);a[r]=c+1;var d=s(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(l[d].references++,l[d].updater(p)):l.push({identifier:u,updater:f(p,e),references:1}),n.push(u)}return n}function c(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var i=a.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var l=o(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,a,n){var i=a?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var o=document.createTextNode(i),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(o,l[e]):t.appendChild(o)}}function m(t,e,a){var n=a.css,i=a.media,o=a.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var _=null,h=0;function f(t,e){var a,n,i;if(e.singleton){var o=h++;a=_||(_=c(e)),n=p.bind(null,a,o,!1),i=p.bind(null,a,o,!0)}else a=c(e),n=m.bind(null,a,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(a)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var a=r(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<a.length;n++){var i=s(a[n]);l[i].references--}for(var o=r(t,e),c=0;c<a.length;c++){var u=s(a[c]);0===l[u].references&&(l[u].updater(),l.splice(u,1))}a=o}}}},9980:function(t,e,a){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({"01f9":function(t,e,a){"use strict";var n=a("2d00"),i=a("5ca1"),o=a("2aba"),l=a("32e9"),s=a("84f2"),r=a("41a0"),c=a("7f20"),u=a("38fd"),d=a("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",_="values",h=function(){return this};t.exports=function(t,e,a,f,v,b,g){r(a,e,f);var y,w,x,k=function(t){if(!p&&t in $)return $[t];switch(t){case m:case _:return function(){return new a(this,t)}}return function(){return new a(this,t)}},C=e+" Iterator",S=v==_,j=!1,$=t.prototype,T=$[d]||$["@@iterator"]||v&&$[v],I=T||k(v),D=v?S?k("entries"):I:void 0,P="Array"==e&&$.entries||T;if(P&&(x=u(P.call(new t)))!==Object.prototype&&x.next&&(c(x,C,!0),n||"function"==typeof x[d]||l(x,d,h)),S&&T&&T.name!==_&&(j=!0,I=function(){return T.call(this)}),n&&!g||!p&&!j&&$[d]||l($,d,I),s[e]=I,s[C]=h,v)if(y={values:S?I:k(_),keys:b?I:k(m),entries:D},g)for(w in y)w in $||o($,w,y[w]);else i(i.P+i.F*(p||j),e,y);return y}},"02f4":function(t,e,a){var n=a("4588"),i=a("be13");t.exports=function(t){return function(e,a){var o,l,s=String(i(e)),r=n(a),c=s.length;return r<0||r>=c?t?"":void 0:(o=s.charCodeAt(r))<55296||o>56319||r+1===c||(l=s.charCodeAt(r+1))<56320||l>57343?t?s.charAt(r):o:t?s.slice(r,r+2):l-56320+(o-55296<<10)+65536}}},"0390":function(t,e,a){"use strict";var n=a("02f4")(!0);t.exports=function(t,e,a){return e+(a?n(t,e).length:1)}},"0bfb":function(t,e,a){"use strict";var n=a("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,a){var n=a("ce10"),i=a("e11e");t.exports=Object.keys||function(t){return n(t,i)}},1495:function(t,e,a){var n=a("86cc"),i=a("cb7c"),o=a("0d58");t.exports=a("9e1e")?Object.defineProperties:function(t,e){i(t);for(var a,l=o(e),s=l.length,r=0;s>r;)n.f(t,a=l[r++],e[a]);return t}},"214f":function(t,e,a){"use strict";a("b0c5");var n=a("2aba"),i=a("32e9"),o=a("79e5"),l=a("be13"),s=a("2b4c"),r=a("520a"),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var p=s(t),m=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),_=m?!o((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!e})):void 0;if(!m||!_||"replace"===t&&!u||"split"===t&&!d){var h=/./[p],f=a(l,p,""[t],(function(t,e,a,n,i){return e.exec===r?m&&!i?{done:!0,value:h.call(e,a,n)}:{done:!0,value:t.call(a,e,n)}:{done:!1}})),v=f[0],b=f[1];n(String.prototype,t,v),i(RegExp.prototype,p,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,a){var n=a("d3f4"),i=a("7726").document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,a){var n=a("2d95"),i=a("2b4c")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,a,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?a:o?n(e):"Object"==(l=n(e))&&"function"==typeof e.callee?"Arguments":l}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,a){var n=a("7726"),i=a("32e9"),o=a("69a8"),l=a("ca5a")("src"),s=a("fa5b"),r="toString",c=(""+s).split(r);a("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,a,s){var r="function"==typeof a;r&&(o(a,"name")||i(a,"name",e)),t[e]!==a&&(r&&(o(a,l)||i(a,l,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=a:s?t[e]?t[e]=a:i(t,e,a):(delete t[e],i(t,e,a)))})(Function.prototype,r,(function(){return"function"==typeof this&&this[l]||s.call(this)}))},"2aeb":function(t,e,a){var n=a("cb7c"),i=a("1495"),o=a("e11e"),l=a("613b")("IE_PROTO"),s=function(){},r=function(){var t,e=a("230e")("iframe"),n=o.length;for(e.style.display="none",a("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),r=t.F;n--;)delete r.prototype[o[n]];return r()};t.exports=Object.create||function(t,e){var a;return null!==t?(s.prototype=n(t),a=new s,s.prototype=null,a[l]=t):a=r(),void 0===e?a:i(a,e)}},"2b4c":function(t,e,a){var n=a("5537")("wks"),i=a("ca5a"),o=a("7726").Symbol,l="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=l&&o[t]||(l?o:i)("Symbol."+t))}).store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},"2fdb":function(t,e,a){"use strict";var n=a("5ca1"),i=a("d2c8"),o="includes";n(n.P+n.F*a("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,a){var n=a("86cc"),i=a("4630");t.exports=a("9e1e")?function(t,e,a){return n.f(t,e,i(1,a))}:function(t,e,a){return t[e]=a,t}},"38fd":function(t,e,a){var n=a("69a8"),i=a("4bf8"),o=a("613b")("IE_PROTO"),l=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},"41a0":function(t,e,a){"use strict";var n=a("2aeb"),i=a("4630"),o=a("7f20"),l={};a("32e9")(l,a("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,a){t.prototype=n(l,{next:i(1,a)}),o(t,e+" Iterator")}},"456d":function(t,e,a){var n=a("4bf8"),i=a("0d58");a("5eda")("keys",(function(){return function(t){return i(n(t))}}))},4588:function(t,e){var a=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:a)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,a){var n=a("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,a){var n=a("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(a){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,a){"use strict";var n,i,o=a("0bfb"),l=RegExp.prototype.exec,s=String.prototype.replace,r=l,c=(n=/a/,i=/b*/g,l.call(n,"a"),l.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(r=function(t){var e,a,n,i,r=this;return u&&(a=new RegExp("^"+r.source+"$(?!\\s)",o.call(r))),c&&(e=r.lastIndex),n=l.call(r,t),c&&n&&(r.lastIndex=r.global?n.index+n[0].length:e),u&&n&&n.length>1&&s.call(n[0],a,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=r},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,a){var n=a("8378"),i=a("7726"),o="__core-js_shared__",l=i[o]||(i[o]={});(t.exports=function(t,e){return l[t]||(l[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:a("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,a){var n=a("7726"),i=a("8378"),o=a("32e9"),l=a("2aba"),s=a("9b43"),r=function(t,e,a){var c,u,d,p,m=t&r.F,_=t&r.G,h=t&r.S,f=t&r.P,v=t&r.B,b=_?n:h?n[e]||(n[e]={}):(n[e]||{}).prototype,g=_?i:i[e]||(i[e]={}),y=g.prototype||(g.prototype={});for(c in _&&(a=e),a)d=((u=!m&&b&&void 0!==b[c])?b:a)[c],p=v&&u?s(d,n):f&&"function"==typeof d?s(Function.call,d):d,b&&l(b,c,d,t&r.U),g[c]!=d&&o(g,c,p),f&&y[c]!=d&&(y[c]=d)};n.core=i,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},"5eda":function(t,e,a){var n=a("5ca1"),i=a("8378"),o=a("79e5");t.exports=function(t,e){var a=(i.Object||{})[t]||Object[t],l={};l[t]=e(a),n(n.S+n.F*o((function(){a(1)})),"Object",l)}},"5f1b":function(t,e,a){"use strict";var n=a("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"==typeof a){var o=a.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,a){var n=a("5537")("keys"),i=a("ca5a");t.exports=function(t){return n[t]||(n[t]=i(t))}},"626a":function(t,e,a){var n=a("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6762:function(t,e,a){"use strict";var n=a("5ca1"),i=a("c366")(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(t,e,a){var n=a("626a"),i=a("be13");t.exports=function(t){return n(i(t))}},"69a8":function(t,e){var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},"6a99":function(t,e,a){var n=a("d3f4");t.exports=function(t,e){if(!n(t))return t;var a,i;if(e&&"function"==typeof(a=t.toString)&&!n(i=a.call(t)))return i;if("function"==typeof(a=t.valueOf)&&!n(i=a.call(t)))return i;if(!e&&"function"==typeof(a=t.toString)&&!n(i=a.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,a){"use strict";var n=a("0d58"),i=a("2621"),o=a("52a7"),l=a("4bf8"),s=a("626a"),r=Object.assign;t.exports=!r||a("79e5")((function(){var t={},e={},a=Symbol(),n="abcdefghijklmnopqrst";return t[a]=7,n.split("").forEach((function(t){e[t]=t})),7!=r({},t)[a]||Object.keys(r({},e)).join("")!=n}))?function(t,e){for(var a=l(t),r=arguments.length,c=1,u=i.f,d=o.f;r>c;)for(var p,m=s(arguments[c++]),_=u?n(m).concat(u(m)):n(m),h=_.length,f=0;h>f;)d.call(m,p=_[f++])&&(a[p]=m[p]);return a}:r},7726:function(t,e){var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},"77f1":function(t,e,a){var n=a("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,a){var n=a("86cc").f,i=a("69a8"),o=a("2b4c")("toStringTag");t.exports=function(t,e,a){t&&!i(t=a?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},8378:function(t,e){var a=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=a)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,a){var n=a("cb7c"),i=a("c69a"),o=a("6a99"),l=Object.defineProperty;e.f=a("9e1e")?Object.defineProperty:function(t,e,a){if(n(t),e=o(e,!0),n(a),i)try{return l(t,e,a)}catch(t){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(t[e]=a.value),t}},"9b43":function(t,e,a){var n=a("d8e8");t.exports=function(t,e,a){if(n(t),void 0===e)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 2:return function(a,n){return t.call(e,a,n)};case 3:return function(a,n,i){return t.call(e,a,n,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,a){var n=a("2b4c")("unscopables"),i=Array.prototype;null==i[n]&&a("32e9")(i,n,{}),t.exports=function(t){i[n][t]=!0}},"9def":function(t,e,a){var n=a("4588"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},"9e1e":function(t,e,a){t.exports=!a("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,a){e.exports=t},a481:function(t,e,a){"use strict";var n=a("cb7c"),i=a("4bf8"),o=a("9def"),l=a("4588"),s=a("0390"),r=a("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,m=/\$([$&`']|\d\d?)/g;a("214f")("replace",2,(function(t,e,a,_){return[function(n,i){var o=t(this),l=null==n?void 0:n[e];return void 0!==l?l.call(n,o,i):a.call(String(o),n,i)},function(t,e){var i=_(a,t,this,e);if(i.done)return i.value;var d=n(t),p=String(this),m="function"==typeof e;m||(e=String(e));var f=d.global;if(f){var v=d.unicode;d.lastIndex=0}for(var b=[];;){var g=r(d,p);if(null===g)break;if(b.push(g),!f)break;""===String(g[0])&&(d.lastIndex=s(p,o(d.lastIndex),v))}for(var y,w="",x=0,k=0;k<b.length;k++){g=b[k];for(var C=String(g[0]),S=c(u(l(g.index),p.length),0),j=[],$=1;$<g.length;$++)j.push(void 0===(y=g[$])?y:String(y));var T=g.groups;if(m){var I=[C].concat(j,S,p);void 0!==T&&I.push(T);var D=String(e.apply(void 0,I))}else D=h(C,p,S,j,T,e);S>=x&&(w+=p.slice(x,S)+D,x=S+C.length)}return w+p.slice(x)}];function h(t,e,n,o,l,s){var r=n+t.length,c=o.length,u=m;return void 0!==l&&(l=i(l),u=p),a.call(s,u,(function(a,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(r);case"<":s=l[i.slice(1,-1)];break;default:var u=+i;if(0===u)return a;if(u>c){var p=d(u/10);return 0===p?a:p<=c?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):a}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,a){var n=a("d3f4"),i=a("2d95"),o=a("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,a){for(var n=a("cadf"),i=a("0d58"),o=a("2aba"),l=a("7726"),s=a("32e9"),r=a("84f2"),c=a("2b4c"),u=c("iterator"),d=c("toStringTag"),p=r.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},_=i(m),h=0;h<_.length;h++){var f,v=_[h],b=m[v],g=l[v],y=g&&g.prototype;if(y&&(y[u]||s(y,u,p),y[d]||s(y,d,v),r[v]=p,b))for(f in n)y[f]||o(y,f,n[f],!0)}},b0c5:function(t,e,a){"use strict";var n=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,a){var n=a("6821"),i=a("9def"),o=a("77f1");t.exports=function(t){return function(e,a,l){var s,r=n(e),c=i(r.length),u=o(l,c);if(t&&a!=a){for(;c>u;)if((s=r[u++])!=s)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===a)return t||u||0;return!t&&-1}}},c649:function(t,e,a){"use strict";(function(t){a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return r})),a("a481");var n,i,o="undefined"!=typeof window?window.console:t.console,l=/-(\w)/g,s=(n=function(t){return t.replace(l,(function(t,e){return e?e.toUpperCase():""}))},i=Object.create(null),function(t){return i[t]||(i[t]=n(t))});function r(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,a){var n=0===a?t.children[0]:t.children[a-1].nextSibling;t.insertBefore(e,n)}}).call(this,a("c8ba"))},c69a:function(t,e,a){t.exports=!a("9e1e")&&!a("79e5")((function(){return 7!=Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(t){"object"==typeof window&&(a=window)}t.exports=a},ca5a:function(t,e){var a=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+n).toString(36))}},cadf:function(t,e,a){"use strict";var n=a("9c6c"),i=a("d53b"),o=a("84f2"),l=a("6821");t.exports=a("01f9")(Array,"Array",(function(t,e){this._t=l(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,a=this._i++;return!t||a>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?a:"values"==e?t[a]:[a,t[a]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,a){var n=a("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,a){var n=a("69a8"),i=a("6821"),o=a("c366")(!1),l=a("613b")("IE_PROTO");t.exports=function(t,e){var a,s=i(t),r=0,c=[];for(a in s)a!=l&&n(s,a)&&c.push(a);for(;e.length>r;)n(s,a=e[r++])&&(~o(c,a)||c.push(a));return c}},d2c8:function(t,e,a){var n=a("aae3"),i=a("be13");t.exports=function(t,e,a){if(n(e))throw TypeError("String#"+a+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,a){"use strict";var n=a("5ca1"),i=a("9def"),o=a("d2c8"),l="startsWith",s="".startsWith;n(n.P+n.F*a("5147")(l),"String",{startsWith:function(t){var e=o(this,t,l),a=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,a):e.slice(a,a+n.length)===n}})},f6fd:function(t,e){!function(t){var e="currentScript",a=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in a)if(a[t].src==e||"interactive"==a[t].readyState)return a[t];return null}}})}(document)},f751:function(t,e,a){var n=a("5ca1");n(n.S+n.F,"Object",{assign:a("7333")})},fa5b:function(t,e,a){t.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,a){var n=a("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,a){"use strict";var n;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(t,e):void 0}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var a=[],n=!0,i=!1,o=void 0;try{for(var l,s=t[Symbol.iterator]();!(n=(l=s.next()).done)&&(a.push(l.value),!e||a.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return a}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}a.r(e),"undefined"!=typeof window&&(a("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=n[1])),a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d"),a("6762"),a("2fdb");var r=a("a352"),c=a.n(r),u=a("c649");function d(t,e){var a=this;this.$nextTick((function(){return a.$emit(t.toLowerCase(),e)}))}function p(t){var e=this;return function(a){null!==e.realList&&e["onDrag"+t](a),d.call(e,t,a)}}function m(t){return["transition-group","TransitionGroup"].includes(t)}function _(t,e,a){return t[a]||(e[a]?e[a]():void 0)}var h=["Start","Add","Remove","Update","End"],f=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(h,f).map((function(t){return"on"+t})),b=null,g={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=l(t,1)[0].componentOptions;return!!e&&m(e.tag)}(e);var a=function(t,e,a){var n=0,i=0,o=_(e,a,"header");o&&(n=o.length,t=t?[].concat(s(o),s(t)):s(o));var l=_(e,a,"footer");return l&&(i=l.length,t=t?[].concat(s(t),s(l)):s(l)),{children:t,headerOffset:n,footerOffset:i}}(e,this.$slots,this.$scopedSlots),n=a.children,i=a.headerOffset,o=a.footerOffset;this.headerOffset=i,this.footerOffset=o;var r=function(t,e){var a=null,n=function(t,e){a=function(t,e,a){return void 0===a||((t=t||{})[e]=a),t}(a,t,e)};if(n("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,a){return e[a]=t[a],e}),{})),!e)return a;var i=e.on,o=e.props,l=e.attrs;return n("on",i),n("props",o),Object.assign(a.attrs,l),a}(this.$attrs,this.componentData);return t(this.getTag(),r,n)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};h.forEach((function(a){e["on"+a]=p.call(t,a)})),f.forEach((function(a){e["on"+a]=d.bind(t,a)}));var a=Object.keys(this.$attrs).reduce((function(e,a){return e[Object(u.a)(a)]=t.$attrs[a],e}),{}),n=Object.assign({},this.options,a,e,{onMove:function(e,a){return t.onDragMove(e,a)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new c.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var a=Object(u.a)(e);-1===v.indexOf(a)&&this._sortable.option(a,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,a,n){if(!t)return[];var i=t.map((function(t){return t.elm})),o=e.length-n,l=s(e).map((function(t,e){return e>=o?i.length:i.indexOf(t)}));return a?l.filter((function(t){return-1!==t})):l}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&m(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=s(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,s(t))};this.alterList(e)},updatePosition:function(t,e){var a=function(a){return a.splice(e,0,a.splice(t,1)[0])};this.alterList(a)},getRelatedContextFromMoveEvent:function(t){var e=t.to,a=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var i=n.realList,o={list:i,component:n};if(e!==a&&i&&n.getUnderlyingVm){var l=n.getUnderlyingVm(a);if(l)return Object.assign(l,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,a=e.length;return t>a-1?a:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var a=this.getVmIndex(t.newIndex);this.spliceList(a,0,e),this.computeIndexes();var n={element:e,newIndex:a};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var a={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:a})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,a=this.getVmIndex(t.newIndex);this.updatePosition(e,a);var n={element:this.context.element,oldIndex:e,newIndex:a};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var a=s(e.to.children).filter((function(t){return"none"!==t.style.display})),n=a.indexOf(e.related),i=t.component.getVmIndex(n);return-1===a.indexOf(b)&&e.willInsertAfter?i+1:i},onDragMove:function(t,e){var a=this.move;if(!a||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),i=this.context,o=this.computeFutureIndex(n,t);return Object.assign(i,{futureIndex:o}),a(Object.assign({},t,{relatedContext:n,draggedContext:i}),e)},onDragEnd:function(){this.computeIndexes(),b=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",g);var y=g;e.default=y}}).default},t.exports=n(a(8244))},8244:(t,e,a)=>{"use strict";function n(t){return n="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(t)}function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},o.apply(this,arguments)}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable})))),n.forEach((function(e){i(t,e,a[e])}))}return t}function s(t,e){if(null==t)return{};var a,n,i=function(t,e){if(null==t)return{};var a,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)a=o[n],e.indexOf(a)>=0||(i[a]=t[a]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(i[a]=t[a])}return i}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}a.r(e),a.d(e,{MultiDrag:()=>ge,Sortable:()=>Lt,Swap:()=>re,default:()=>xe});function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),m=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),_=c(/iP(ad|od|hone)/i),h=c(/chrome/i)&&c(/android/i),f={capture:!1,passive:!1};function v(t,e,a){t.addEventListener(e,a,!u&&f)}function b(t,e,a){t.removeEventListener(e,a,!u&&f)}function g(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,a,n){if(t){a=a||document;do{if(null!=e&&(">"===e[0]?t.parentNode===a&&g(t,e):g(t,e))||n&&t===a)return t;if(t===a)break}while(t=y(t))}return null}var x,k=/\s+/g;function C(t,e,a){if(t&&e)if(t.classList)t.classList[a?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(n+(a?" "+e:"")).replace(k," ")}}function S(t,e,a){var n=t&&t.style;if(n){if(void 0===a)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(a=t.currentStyle),void 0===e?a:a[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=a+("string"==typeof a?"":"px")}}function j(t,e){var a="";if("string"==typeof t)a=t;else do{var n=S(t,"transform");n&&"none"!==n&&(a=n+" "+a)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(a)}function $(t,e,a){if(t){var n=t.getElementsByTagName(e),i=0,o=n.length;if(a)for(;i<o;i++)a(n[i],i);return n}return[]}function T(){var t=document.scrollingElement;return t||document.documentElement}function I(t,e,a,n,i){if(t.getBoundingClientRect||t===window){var o,l,s,r,c,d,p;if(t!==window&&t!==T()?(l=(o=t.getBoundingClientRect()).top,s=o.left,r=o.bottom,c=o.right,d=o.height,p=o.width):(l=0,s=0,r=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(e||a)&&t!==window&&(i=i||t.parentNode,!u))do{if(i&&i.getBoundingClientRect&&("none"!==S(i,"transform")||a&&"static"!==S(i,"position"))){var m=i.getBoundingClientRect();l-=m.top+parseInt(S(i,"border-top-width")),s-=m.left+parseInt(S(i,"border-left-width")),r=l+o.height,c=s+o.width;break}}while(i=i.parentNode);if(n&&t!==window){var _=j(i||t),h=_&&_.a,f=_&&_.d;_&&(r=(l/=f)+(d/=f),c=(s/=h)+(p/=h))}return{top:l,left:s,bottom:r,right:c,width:p,height:d}}}function D(t,e,a){for(var n=O(t,!0),i=I(t)[e];n;){var o=I(n)[a];if(!("top"===a||"left"===a?i>=o:i<=o))return n;if(n===T())break;n=O(n,!1)}return!1}function P(t,e,a){for(var n=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Lt.ghost&&o[i]!==Lt.dragged&&w(o[i],a.draggable,t,!1)){if(n===e)return o[i];n++}i++}return null}function E(t,e){for(var a=t.lastElementChild;a&&(a===Lt.ghost||"none"===S(a,"display")||e&&!g(a,e));)a=a.previousElementSibling;return a||null}function A(t,e){var a=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Lt.clone||e&&!g(t,e)||a++;return a}function N(t){var e=0,a=0,n=T();if(t)do{var i=j(t),o=i.a,l=i.d;e+=t.scrollLeft*o,a+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,a]}function O(t,e){if(!t||!t.getBoundingClientRect)return T();var a=t,n=!1;do{if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var i=S(a);if(a.clientWidth<a.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||a.clientHeight<a.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!a.getBoundingClientRect||a===document.body)return T();if(n||e)return a;n=!0}}}while(a=a.parentNode);return T()}function M(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function z(t,e){return function(){if(!x){var a=arguments,n=this;1===a.length?t.call(n,a[0]):t.apply(n,a),x=setTimeout((function(){x=void 0}),e)}}}function F(t,e,a){t.scrollLeft+=e,t.scrollTop+=a}function B(t){var e=window.Polymer,a=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):a?a(t).clone(!0)[0]:t.cloneNode(!0)}function L(t,e){S(t,"position","absolute"),S(t,"top",e.top),S(t,"left",e.left),S(t,"width",e.width),S(t,"height",e.height)}function R(t){S(t,"position",""),S(t,"top",""),S(t,"left",""),S(t,"width",""),S(t,"height","")}var H="Sortable"+(new Date).getTime();function W(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==S(t,"display")&&t!==Lt.ghost){e.push({target:t,rect:I(t)});var a=l({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=j(t,!0);n&&(a.top-=n.f,a.left-=n.e)}t.fromRect=a}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var a in t)if(t.hasOwnProperty(a))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[a][n])return Number(a);return-1}(e,{target:t}),1)},animateAll:function(a){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof a&&a());var i=!1,o=0;e.forEach((function(t){var e=0,a=t.target,l=a.fromRect,s=I(a),r=a.prevFromRect,c=a.prevToRect,u=t.rect,d=j(a,!0);d&&(s.top-=d.f,s.left-=d.e),a.toRect=s,a.thisAnimationDuration&&M(r,s)&&!M(l,s)&&(u.top-s.top)/(u.left-s.left)==(l.top-s.top)/(l.left-s.left)&&(e=function(t,e,a,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-a.top,2)+Math.pow(e.left-a.left,2))*n.animation}(u,r,c,n.options)),M(s,l)||(a.prevFromRect=l,a.prevToRect=s,e||(e=n.options.animation),n.animate(a,u,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout((function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null}),e),a.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof a&&a()}),o):"function"==typeof a&&a(),e=[]},animate:function(t,e,a,n){if(n){S(t,"transition",""),S(t,"transform","");var i=j(this.el),o=i&&i.a,l=i&&i.d,s=(e.left-a.left)/(o||1),r=(e.top-a.top)/(l||1);t.animatingX=!!s,t.animatingY=!!r,S(t,"transform","translate3d("+s+"px,"+r+"px,0)"),function(t){t.offsetWidth}(t),S(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),S(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){S(t,"transition",""),S(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var q=[],V={initializeByDefault:!0},U={mount:function(t){for(var e in V)V.hasOwnProperty(e)&&!(e in t)&&(t[e]=V[e]);q.push(t)},pluginEvent:function(t,e,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var i=t+"Global";q.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][i]&&e[n.pluginName][i](l({sortable:e},a)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](l({sortable:e},a)))}))},initializePlugins:function(t,e,a,n){for(var i in q.forEach((function(n){var i=n.pluginName;if(t.options[i]||n.initializeByDefault){var l=new n(t,e,t.options);l.sortable=t,l.options=t.options,t[i]=l,o(a,l.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var l=this.modifyOption(t,i,t.options[i]);void 0!==l&&(t.options[i]=l)}},getEventProperties:function(t,e){var a={};return q.forEach((function(n){"function"==typeof n.eventProperties&&o(a,n.eventProperties.call(e[n.pluginName],t))})),a},modifyOption:function(t,e,a){var n;return q.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(n=i.optionListeners[e].call(t[i.pluginName],a))})),n}};function Y(t){var e=t.sortable,a=t.rootEl,n=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,r=t.fromEl,c=t.oldIndex,p=t.newIndex,m=t.oldDraggableIndex,_=t.newDraggableIndex,h=t.originalEvent,f=t.putSortable,v=t.extraEventProperties;if(e=e||a&&a[H]){var b,g=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(n,!0,!0):b=new CustomEvent(n,{bubbles:!0,cancelable:!0}),b.to=s||a,b.from=r||a,b.item=i||a,b.clone=o,b.oldIndex=c,b.newIndex=p,b.oldDraggableIndex=m,b.newDraggableIndex=_,b.originalEvent=h,b.pullMode=f?f.lastPutMode:void 0;var w=l({},v,U.getEventProperties(n,e));for(var x in w)b[x]=w[x];a&&a.dispatchEvent(b),g[y]&&g[y].call(e,b)}}var Z=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=a.evt,i=s(a,["evt"]);U.pluginEvent.bind(Lt)(t,e,l({dragEl:Q,parentEl:X,ghostEl:G,rootEl:K,nextEl:tt,lastDownEl:et,cloneEl:at,cloneHidden:nt,dragStarted:ft,putSortable:ct,activeSortable:Lt.active,originalEvent:n,oldIndex:it,oldDraggableIndex:lt,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:Mt,unhideGhostForTarget:zt,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:n})}},i))};function J(t){Y(l({putSortable:ct,cloneEl:at,targetEl:Q,rootEl:K,oldIndex:it,oldDraggableIndex:lt,newIndex:ot,newDraggableIndex:st},t))}var Q,X,G,K,tt,et,at,nt,it,ot,lt,st,rt,ct,ut,dt,pt,mt,_t,ht,ft,vt,bt,gt,yt,wt=!1,xt=!1,kt=[],Ct=!1,St=!1,jt=[],$t=!1,Tt=[],It="undefined"!=typeof document,Dt=_,Pt=d||u?"cssFloat":"float",Et=It&&!h&&!_&&"draggable"in document.createElement("div"),At=function(){if(It){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var a=S(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=P(t,0,e),o=P(t,1,e),l=i&&S(i),s=o&&S(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+I(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(o).width;if("flex"===a.display)return"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal";if("grid"===a.display)return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===a[Pt]||o&&"none"===a[Pt]&&r+c>n)?"vertical":"horizontal"},Ot=function(t){function e(t,a){return function(n,i,o,l){var s=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==t&&(a||s))return!0;if(null==t||!1===t)return!1;if(a&&"clone"===t)return t;if("function"==typeof t)return e(t(n,i,o,l),a)(n,i,o,l);var r=(a?n:i).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var a={},i=t.group;i&&"object"==n(i)||(i={name:i}),a.name=i.name,a.checkPull=e(i.pull,!0),a.checkPut=e(i.put),a.revertClone=i.revertClone,t.group=a},Mt=function(){!At&&G&&S(G,"display","none")},zt=function(){!At&&G&&S(G,"display","")};It&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var Ft=function(t){if(Q){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!E(t)){var e=I(t),a=t[H].options.emptyInsertThreshold,n=i>=e.left-a&&i<=e.right+a,s=o>=e.top-a&&o<=e.bottom+a;return a&&n&&s?l=t:void 0}})),l);if(e){var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);a.target=a.rootEl=e,a.preventDefault=void 0,a.stopPropagation=void 0,e[H]._onDragOver(a)}}var i,o,l},Bt=function(t){Q&&Q.parentNode[H]._isOutsideThisEl(t.target)};function Lt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[H]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Lt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in U.initializePlugins(this,t,a),a)!(n in e)&&(e[n]=a[n]);for(var i in Ot(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Et,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?v(t,"pointerdown",this._onTapStart):(v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,W())}function Rt(t,e,a,n,i,o,l,s){var r,c,p=t[H],m=p.options.onMove;return!window.CustomEvent||u||d?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=a,r.draggedRect=n,r.related=i||e,r.relatedRect=o||I(e),r.willInsertAfter=s,r.originalEvent=l,t.dispatchEvent(r),m&&(c=m.call(p,r,l)),c}function Ht(t){t.draggable=!1}function Wt(){$t=!1}function qt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,a=e.length,n=0;a--;)n+=e.charCodeAt(a);return n.toString(36)}function Vt(t){return setTimeout(t,0)}function Ut(t){return clearTimeout(t)}Lt.prototype={constructor:Lt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,a=this.el,n=this.options,i=n.preventOnFilter,o=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(function(t){Tt.length=0;var e=t.getElementsByTagName("input"),a=e.length;for(;a--;){var n=e[a];n.checked&&Tt.push(n)}}(a),!Q&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled||r.isContentEditable||(s=w(s,n.draggable,a,!1))&&s.animated||et===s)){if(it=A(s),lt=A(s,n.draggable),"function"==typeof c){if(c.call(this,t,s,this))return J({sortable:e,rootEl:r,name:"filter",targetEl:s,toEl:a,fromEl:a}),Z("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=w(r,n.trim(),a,!1))return J({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:a,toEl:a}),Z("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());n.handle&&!w(r,n.handle,a,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,a){var n,i=this,o=i.el,l=i.options,s=o.ownerDocument;if(a&&!Q&&a.parentNode===o){var r=I(a);if(K=o,X=(Q=a).parentNode,tt=Q.nextSibling,et=a,rt=l.group,Lt.dragged=Q,ut={target:Q,clientX:(e||t).clientX,clientY:(e||t).clientY},_t=ut.clientX-r.left,ht=ut.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Q.style["will-change"]="all",n=function(){Z("delayEnded",i,{evt:t}),Lt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(Q.draggable=!0),i._triggerDragStart(t,e),J({sortable:i,name:"choose",originalEvent:t}),C(Q,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){$(Q,t.trim(),Ht)})),v(s,"dragover",Ft),v(s,"mousemove",Ft),v(s,"touchmove",Ft),v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),Z("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))n();else{if(Lt.eventCanceled)return void this._onDrop();v(s,"mouseup",i._disableDelayedDrag),v(s,"touchend",i._disableDelayedDrag),v(s,"touchcancel",i._disableDelayedDrag),v(s,"mousemove",i._delayedDragTouchMoveHandler),v(s,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&v(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Ht(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,e?"touchmove":"mousemove",this._onTouchMove):(v(Q,"dragend",this),v(K,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,K&&Q){Z("dragStarted",this,{evt:e}),this.nativeDraggable&&v(document,"dragover",Bt);var a=this.options;!t&&C(Q,a.dragClass,!1),C(Q,a.ghostClass,!0),Lt.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Mt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(Q.parentNode[H]._isOutsideThisEl(t),e)do{if(e[H]){if(e[H]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zt()}},_onTouchMove:function(t){if(ut){var e=this.options,a=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=G&&j(G,!0),l=G&&o&&o.a,s=G&&o&&o.d,r=Dt&&yt&&N(yt),c=(i.clientX-ut.clientX+n.x)/(l||1)+(r?r[0]-jt[0]:0)/(l||1),u=(i.clientY-ut.clientY+n.y)/(s||1)+(r?r[1]-jt[1]:0)/(s||1);if(!Lt.active&&!wt){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(G){o?(o.e+=c-(pt||0),o.f+=u-(mt||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");S(G,"webkitTransform",d),S(G,"mozTransform",d),S(G,"msTransform",d),S(G,"transform",d),pt=c,mt=u,dt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!G){var t=this.options.fallbackOnBody?document.body:K,e=I(Q,!0,Dt,!0,t),a=this.options;if(Dt){for(yt=t;"static"===S(yt,"position")&&"none"===S(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=T()),e.top+=yt.scrollTop,e.left+=yt.scrollLeft):yt=T(),jt=N(yt)}C(G=Q.cloneNode(!0),a.ghostClass,!1),C(G,a.fallbackClass,!0),C(G,a.dragClass,!0),S(G,"transition",""),S(G,"transform",""),S(G,"box-sizing","border-box"),S(G,"margin",0),S(G,"top",e.top),S(G,"left",e.left),S(G,"width",e.width),S(G,"height",e.height),S(G,"opacity","0.8"),S(G,"position",Dt?"absolute":"fixed"),S(G,"zIndex","100000"),S(G,"pointerEvents","none"),Lt.ghost=G,t.appendChild(G),S(G,"transform-origin",_t/parseInt(G.style.width)*100+"% "+ht/parseInt(G.style.height)*100+"%")}},_onDragStart:function(t,e){var a=this,n=t.dataTransfer,i=a.options;Z("dragStart",this,{evt:t}),Lt.eventCanceled?this._onDrop():(Z("setupClone",this),Lt.eventCanceled||((at=B(Q)).draggable=!1,at.style["will-change"]="",this._hideClone(),C(at,this.options.chosenClass,!1),Lt.clone=at),a.cloneId=Vt((function(){Z("clone",a),Lt.eventCanceled||(a.options.removeCloneOnHide||K.insertBefore(at,Q),a._hideClone(),J({sortable:a,name:"clone"}))})),!e&&C(Q,i.dragClass,!0),e?(xt=!0,a._loopId=setInterval(a._emulateDragOver,50)):(b(document,"mouseup",a._onDrop),b(document,"touchend",a._onDrop),b(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(a,n,Q)),v(document,"drop",a),S(Q,"transform","translateZ(0)")),wt=!0,a._dragStartId=Vt(a._dragStarted.bind(a,e,t)),v(document,"selectstart",a),ft=!0,m&&S(document.body,"user-select","none"))},_onDragOver:function(t){var e,a,n,i,o=this.el,s=t.target,r=this.options,c=r.group,u=Lt.active,d=rt===c,p=r.sort,m=ct||u,_=this,h=!1;if(!$t){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=w(s,r.draggable,o,!0),M("dragOver"),Lt.eventCanceled)return h;if(Q.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||_._ignoreWhileAnimating===s)return B(!1);if(xt=!1,u&&!r.disabled&&(d?p||(n=!K.contains(Q)):ct===this||(this.lastPutMode=rt.checkPull(this,u,Q,t))&&c.checkPut(this,u,Q,t))){if(i="vertical"===this._getDirection(t,s),e=I(Q),M("dragOverValid"),Lt.eventCanceled)return h;if(n)return X=K,z(),this._hideClone(),M("revert"),Lt.eventCanceled||(tt?K.insertBefore(Q,tt):K.appendChild(Q)),B(!0);var f=E(o,r.draggable);if(!f||function(t,e,a){var n=I(E(a.el,a.options.draggable)),i=10;return e?t.clientX>n.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}(t,i,this)&&!f.animated){if(f===Q)return B(!1);if(f&&o===t.target&&(s=f),s&&(a=I(s)),!1!==Rt(K,o,Q,e,s,a,t,!!s))return z(),o.appendChild(Q),X=o,L(),B(!0)}else if(s.parentNode===o){a=I(s);var v,b,g,y=Q.parentNode!==o,x=!function(t,e,a){var n=a?t.left:t.top,i=a?t.right:t.bottom,o=a?t.width:t.height,l=a?e.left:e.top,s=a?e.right:e.bottom,r=a?e.width:e.height;return n===l||i===s||n+o/2===l+r/2}(Q.animated&&Q.toRect||e,s.animated&&s.toRect||a,i),k=i?"top":"left",j=D(s,"top","top")||D(Q,"top","top"),$=j?j.scrollTop:void 0;if(vt!==s&&(b=a[k],Ct=!1,St=!x&&r.invertSwap||y),v=function(t,e,a,n,i,o,l,s){var r=n?t.clientY:t.clientX,c=n?a.height:a.width,u=n?a.top:a.left,d=n?a.bottom:a.right,p=!1;if(!l)if(s&&gt<c*i){if(!Ct&&(1===bt?r>u+c*o/2:r<d-c*o/2)&&(Ct=!0),Ct)p=!0;else if(1===bt?r<u+gt:r>d-gt)return-bt}else if(r>u+c*(1-i)/2&&r<d-c*(1-i)/2)return function(t){return A(Q)<A(t)?1:-1}(e);if((p=p||l)&&(r<u+c*o/2||r>d-c*o/2))return r>u+c/2?1:-1;return 0}(t,s,a,i,x?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,St,vt===s),0!==v){var T=A(Q);do{T-=v,g=X.children[T]}while(g&&("none"===S(g,"display")||g===G))}if(0===v||g===s)return B(!1);vt=s,bt=v;var P=s.nextElementSibling,N=!1,O=Rt(K,o,Q,e,s,a,t,N=1===v);if(!1!==O)return 1!==O&&-1!==O||(N=1===O),$t=!0,setTimeout(Wt,30),z(),N&&!P?o.appendChild(Q):s.parentNode.insertBefore(Q,N?P:s),j&&F(j,0,$-j.scrollTop),X=Q.parentNode,void 0===b||St||(gt=Math.abs(b-I(s)[k])),L(),B(!0)}if(o.contains(Q))return B(!1)}return!1}function M(r,c){Z(r,_,l({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:n,dragRect:e,targetRect:a,canSort:p,fromSortable:m,target:s,completed:B,onMove:function(a,n){return Rt(K,o,Q,e,a,I(a),t,n)},changed:L},c))}function z(){M("dragOverAnimationCapture"),_.captureAnimationState(),_!==m&&m.captureAnimationState()}function B(e){return M("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(_),_!==m&&(C(Q,ct?ct.options.ghostClass:u.options.ghostClass,!1),C(Q,r.ghostClass,!0)),ct!==_&&_!==Lt.active?ct=_:_===Lt.active&&ct&&(ct=null),m===_&&(_._ignoreWhileAnimating=s),_.animateAll((function(){M("dragOverAnimationComplete"),_._ignoreWhileAnimating=null})),_!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===Q&&!Q.animated||s===o&&!s.animated)&&(vt=null),r.dragoverBubble||t.rootEl||s===document||(Q.parentNode[H]._isOutsideThisEl(t.target),!e&&Ft(t)),!r.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function L(){ot=A(Q),st=A(Q,r.draggable),J({sortable:_,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Ft),b(document,"mousemove",Ft),b(document,"touchmove",Ft)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,a=this.options;ot=A(Q),st=A(Q,a.draggable),Z("drop",this,{evt:t}),X=Q&&Q.parentNode,ot=A(Q),st=A(Q,a.draggable),Lt.eventCanceled||(wt=!1,St=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ut(this.cloneId),Ut(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&S(document.body,"user-select",""),S(Q,"transform",""),t&&(ft&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(K===X||ct&&"clone"!==ct.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),Q&&(this.nativeDraggable&&b(Q,"dragend",this),Ht(Q),Q.style["will-change"]="",ft&&!wt&&C(Q,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(Q,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:X,newIndex:null,newDraggableIndex:null,originalEvent:t}),K!==X?(ot>=0&&(J({rootEl:X,name:"add",toEl:X,fromEl:K,originalEvent:t}),J({sortable:this,name:"remove",toEl:X,originalEvent:t}),J({rootEl:X,name:"sort",toEl:X,fromEl:K,originalEvent:t}),J({sortable:this,name:"sort",toEl:X,originalEvent:t})),ct&&ct.save()):ot!==it&&ot>=0&&(J({sortable:this,name:"update",toEl:X,originalEvent:t}),J({sortable:this,name:"sort",toEl:X,originalEvent:t})),Lt.active&&(null!=ot&&-1!==ot||(ot=it,st=lt),J({sortable:this,name:"end",toEl:X,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),K=Q=X=G=tt=at=et=nt=ut=dt=ft=ot=st=it=lt=vt=bt=ct=rt=Lt.dragged=Lt.ghost=Lt.clone=Lt.active=null,Tt.forEach((function(t){t.checked=!0})),Tt.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Q&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],a=this.el.children,n=0,i=a.length,o=this.options;n<i;n++)w(t=a[n],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||qt(t));return e},sort:function(t){var e={},a=this.el;this.toArray().forEach((function(t,n){var i=a.children[n];w(i,this.options.draggable,a,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(a.removeChild(e[t]),a.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return w(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var a=this.options;if(void 0===e)return a[t];var n=U.modifyOption(this,t,e);a[t]=void 0!==n?n:e,"group"===t&&Ot(a)},destroy:function(){Z("destroy",this);var t=this.el;t[H]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),kt.splice(kt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!nt){if(Z("hideClone",this),Lt.eventCanceled)return;S(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),nt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(nt){if(Z("showClone",this),Lt.eventCanceled)return;K.contains(Q)&&!this.options.group.revertClone?K.insertBefore(at,Q):tt?K.insertBefore(at,tt):K.appendChild(at),this.options.group.revertClone&&this.animate(Q,at),S(at,"display",""),nt=!1}}else this._hideClone()}},It&&v(document,"touchmove",(function(t){(Lt.active||wt)&&t.cancelable&&t.preventDefault()})),Lt.utils={on:v,off:b,css:S,find:$,is:function(t,e){return!!w(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return t},throttle:z,closest:w,toggleClass:C,clone:B,index:A,nextTick:Vt,cancelNextTick:Ut,detectDirection:Nt,getChild:P},Lt.get=function(t){return t[H]},Lt.mount=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Lt.utils=l({},Lt.utils,t.utils)),U.mount(t)}))},Lt.create=function(t,e){return new Lt(t,e)},Lt.version="1.10.2";var Yt,Zt,Jt,Qt,Xt,Gt,Kt=[],te=!1;function ee(){Kt.forEach((function(t){clearInterval(t.pid)})),Kt=[]}function ae(){clearInterval(Gt)}var ne,ie=z((function(t,e,a,n){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,r=e.scrollSpeed,c=T(),u=!1;Zt!==a&&(Zt=a,ee(),Yt=e.scroll,i=e.scrollFn,!0===Yt&&(Yt=O(a,!0)));var d=0,p=Yt;do{var m=p,_=I(m),h=_.top,f=_.bottom,v=_.left,b=_.right,g=_.width,y=_.height,w=void 0,x=void 0,k=m.scrollWidth,C=m.scrollHeight,j=S(m),$=m.scrollLeft,D=m.scrollTop;m===c?(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY));var P=w&&(Math.abs(b-o)<=s&&$+g<k)-(Math.abs(v-o)<=s&&!!$),E=x&&(Math.abs(f-l)<=s&&D+y<C)-(Math.abs(h-l)<=s&&!!D);if(!Kt[d])for(var A=0;A<=d;A++)Kt[A]||(Kt[A]={});Kt[d].vx==P&&Kt[d].vy==E&&Kt[d].el===m||(Kt[d].el=m,Kt[d].vx=P,Kt[d].vy=E,clearInterval(Kt[d].pid),0==P&&0==E||(u=!0,Kt[d].pid=setInterval(function(){n&&0===this.layer&&Lt.active._onTouchMove(Xt);var e=Kt[this.layer].vy?Kt[this.layer].vy*r:0,a=Kt[this.layer].vx?Kt[this.layer].vx*r:0;"function"==typeof i&&"continue"!==i.call(Lt.dragged.parentNode[H],a,e,t,Xt,Kt[this.layer].el)||F(Kt[this.layer].el,a,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=O(p,!1)));te=u}}),30),oe=function(t){var e=t.originalEvent,a=t.putSortable,n=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var r=a||i;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),r&&!r.el.contains(u)&&(o("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function le(){}function se(){}function re(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ne=e},dragOverValid:function(t){var e=t.completed,a=t.target,n=t.onMove,i=t.activeSortable,o=t.changed,l=t.cancel;if(i.options.swap){var s=this.sortable.el,r=this.options;if(a&&a!==s){var c=ne;!1!==n(a)?(C(a,r.swapClass,!0),ne=a):ne=null,c&&c!==ne&&C(c,r.swapClass,!1)}o(),e(!0),l()}},drop:function(t){var e=t.activeSortable,a=t.putSortable,n=t.dragEl,i=a||this.sortable,o=this.options;ne&&C(ne,o.swapClass,!1),ne&&(o.swap||a&&a.options.swap)&&n!==ne&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),function(t,e){var a,n,i=t.parentNode,o=e.parentNode;if(!i||!o||i.isEqualNode(e)||o.isEqualNode(t))return;a=A(t),n=A(e),i.isEqualNode(o)&&a<n&&n++;i.insertBefore(e,i.children[a]),o.insertBefore(t,o.children[n])}(n,ne),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){ne=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ne}}})}le.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=P(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),a&&a.animateAll()},drop:oe},o(le,{pluginName:"revertOnSpill"}),se.prototype={onSpill:function(t){var e=t.dragEl,a=t.putSortable||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:oe},o(se,{pluginName:"removeOnSpill"});var ce,ue,de,pe,me,_e=[],he=[],fe=!1,ve=!1,be=!1;function ge(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,a){var n="";_e.length&&ue===t?_e.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=a.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~_e.indexOf(de)},setupClone:function(t){var e=t.sortable,a=t.cancel;if(this.isMultiDrag){for(var n=0;n<_e.length;n++)he.push(B(_e[n])),he[n].sortableIndex=_e[n].sortableIndex,he[n].draggable=!1,he[n].style["will-change"]="",C(he[n],this.options.selectedClass,!1),_e[n]===de&&C(he[n],this.options.chosenClass,!1);e._hideClone(),a()}},clone:function(t){var e=t.sortable,a=t.rootEl,n=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||_e.length&&ue===e&&(ye(!0,a),n("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,a=t.rootEl,n=t.cancel;this.isMultiDrag&&(ye(!1,a),he.forEach((function(t){S(t,"display","")})),e(),me=!1,n())},hideClone:function(t){var e=this,a=(t.sortable,t.cloneNowHidden),n=t.cancel;this.isMultiDrag&&(he.forEach((function(t){S(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),a(),me=!0,n())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),_e.forEach((function(t){t.sortableIndex=A(t)})),_e=_e.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),be=!0},dragStarted:function(t){var e=this,a=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){_e.forEach((function(t){t!==de&&S(t,"position","absolute")}));var n=I(de,!1,!0,!0);_e.forEach((function(t){t!==de&&L(t,n)})),ve=!0,fe=!0}a.animateAll((function(){ve=!1,fe=!1,e.options.animation&&_e.forEach((function(t){R(t)})),e.options.sort&&we()}))}},dragOver:function(t){var e=t.target,a=t.completed,n=t.cancel;ve&&~_e.indexOf(e)&&(a(!1),n())},revert:function(t){var e=t.fromSortable,a=t.rootEl,n=t.sortable,i=t.dragRect;_e.length>1&&(_e.forEach((function(t){n.addAnimationState({target:t,rect:ve?I(t):i}),R(t),t.fromRect=i,e.removeAnimationState(t)})),ve=!1,function(t,e){_e.forEach((function(a,n){var i=e.children[a.sortableIndex+(t?Number(n):0)];i?e.insertBefore(a,i):e.appendChild(a)}))}(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(t){var e=t.sortable,a=t.isOwner,n=t.insertion,i=t.activeSortable,o=t.parentEl,l=t.putSortable,s=this.options;if(n){if(a&&i._hideClone(),fe=!1,s.animation&&_e.length>1&&(ve||!a&&!i.options.sort&&!l)){var r=I(de,!1,!0,!0);_e.forEach((function(t){t!==de&&(L(t,r),o.appendChild(t))})),ve=!0}if(!a)if(ve||we(),_e.length>1){var c=me;i._showClone(e),i.options.animation&&!me&&c&&he.forEach((function(t){i.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,a=t.isOwner,n=t.activeSortable;if(_e.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!a&&n.multiDrag.isMultiDrag){pe=o({},e);var i=j(de,!0);pe.top-=i.f,pe.left-=i.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,we())},drop:function(t){var e=t.originalEvent,a=t.rootEl,n=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,l=t.oldIndex,s=t.putSortable,r=s||this.sortable;if(e){var c=this.options,u=n.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(de,c.selectedClass,!~_e.indexOf(de)),~_e.indexOf(de))_e.splice(_e.indexOf(de),1),ce=null,Y({sortable:i,rootEl:a,name:"deselect",targetEl:de,originalEvt:e});else{if(_e.push(de),Y({sortable:i,rootEl:a,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&i.el.contains(ce)){var d,p,m=A(ce),_=A(de);if(~m&&~_&&m!==_)for(_>m?(p=m,d=_):(p=_,d=m+1);p<d;p++)~_e.indexOf(u[p])||(C(u[p],c.selectedClass,!0),_e.push(u[p]),Y({sortable:i,rootEl:a,name:"select",targetEl:u[p],originalEvt:e}))}else ce=de;ue=r}if(be&&this.isMultiDrag){if((n[H].options.sort||n!==a)&&_e.length>1){var h=I(de),f=A(de,":not(."+this.options.selectedClass+")");if(!fe&&c.animation&&(de.thisAnimationDuration=null),r.captureAnimationState(),!fe&&(c.animation&&(de.fromRect=h,_e.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ve?I(t):h;t.fromRect=e,r.addAnimationState({target:t,rect:e})}}))),we(),_e.forEach((function(t){u[f]?n.insertBefore(t,u[f]):n.appendChild(t),f++})),l===A(de))){var v=!1;_e.forEach((function(t){t.sortableIndex===A(t)||(v=!0)})),v&&o("update")}_e.forEach((function(t){R(t)})),r.animateAll()}ue=r}(a===n||s&&"clone"!==s.lastPutMode)&&he.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||ue!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;_e.length;){var e=_e[0];C(e,this.options.selectedClass,!1),_e.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[H];e&&e.options.multiDrag&&!~_e.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),C(t,e.options.selectedClass,!0),_e.push(t))},deselect:function(t){var e=t.parentNode[H],a=_e.indexOf(t);e&&e.options.multiDrag&&~a&&(C(t,e.options.selectedClass,!1),_e.splice(a,1))}},eventProperties:function(){var t=this,e=[],a=[];return _e.forEach((function(n){var i;e.push({multiDragElement:n,index:n.sortableIndex}),i=ve&&n!==de?-1:ve?A(n,":not(."+t.options.selectedClass+")"):A(n),a.push({multiDragElement:n,index:i})})),{items:r(_e),clones:[].concat(he),oldIndicies:e,newIndicies:a}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){he.forEach((function(a,n){var i=e.children[a.sortableIndex+(t?Number(n):0)];i?e.insertBefore(a,i):e.appendChild(a)}))}function we(){_e.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Lt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):e.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ae(),ee(),clearTimeout(x),x=void 0},nulling:function(){Xt=Zt=Yt=te=Gt=Jt=Qt=null,Kt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var a=this,n=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,i);if(Xt=t,e||d||u||m){ie(t,this.options,o,e);var l=O(o,!0);!te||Gt&&n===Jt&&i===Qt||(Gt&&ae(),Gt=setInterval((function(){var o=O(document.elementFromPoint(n,i),!0);o!==l&&(l=o,ee()),ie(t,a.options,o,e)}),10),Jt=n,Qt=i)}else{if(!this.options.bubbleScroll||O(o,!0)===T())return void ee();ie(t,this.options,O(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Lt.mount(se,le);const xe=Lt}},e={};function a(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),a.nc=void 0,(()=>{"use strict";var t=a(2152),e=a.n(t);function n(t,e,a,n,i,o,l,s){var r,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=a,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),l?(r=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=r):i&&(r=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var u=c.render;c.render=function(t,e){return r.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,r):[r]}return{exports:t,options:c}}const i=n({name:"GetPro",data:function(){return{has_pro:window.ninja_table_admin.hasPro}},props:{text:{type:String,default:"Get Pro"},type:{type:String,default:"danger"},size:{type:String,default:"mini"}}},(function(){var t=this,e=t._self._c;return t.has_pro?t._e():e("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[e("el-button",{attrs:{type:t.type,size:t.size}},[t._v(t._s(t.$t(t.text)))])],1)}),[],!1,null,null,null).exports,o={name:"home",components:{GetPro:i},data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[],img_url:window.ninja_table_admin.img_url}},computed:{activeMenu:function(){return-1!=["home","help"].indexOf(this.$route.name)?this.$route.name:"import_tables"}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])},imageUrl:function(t){return this.img_url+t}},mounted:function(){this.setTopMenu()}};var l=a(3379),s=a.n(l),r=a(738),c={insert:"head",singleton:!1};s()(r.Z,c);r.Z.locals;const u=n(o,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_main_nav"},[e("span",{staticClass:"plugin-name"},[e("img",{staticStyle:{height:"36px"},attrs:{src:t.imageUrl("ninja_table.svg"),alt:"ninja-tables"}}),t._v(" "),t.has_pro?e("span",{staticClass:"pro"},[t._v(t._s(t.$t("Pro")))]):t._e()]),t._v(" "),e("el-menu",{staticStyle:{float:"right"},attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[t._l(t.topMenus,(function(a){return e("el-menu-item",{key:a.route,attrs:{index:a.route,route:{name:a.route}}},[e("i",{class:a.icon_class}),t._v(" "),e("span",[t._v("\n "+t._s(a.title)+"\n ")])])})),t._v(" "),t.has_pro?t._e():e("el-menu-item",{attrs:{index:"buy-pro"}},[e("get-pro",{attrs:{size:"small"}})],1)],2)],1),t._v(" "),e("router-view",{attrs:{"has-pro":t.has_pro}})],1)}),[],!1,null,null,null).exports;const d={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}};var p=a(4189),m={insert:"head",singleton:!1};s()(p.Z,m);p.Z.locals;const h=n(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_intro_welcome"},[e("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),e("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),e("div",{staticClass:"ninja_actions"},[e("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),e("router-link",{attrs:{to:{name:"import_tables"}}},[e("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),e("hr"),t._v(" "),t._m(0)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_docs"},[e("h4",[t._v("Ninja Tables Documentation:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[t._v("\n Demo and Basic Settings\n ")])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[t._v("\n Setting Up a Table\n ")])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[t._v("\n Make Your Table Looks Great on All Devices\n ")])])])])}],!1,null,null,null).exports;const f=n({name:"NinjaPagination",props:["paginate"],data:function(){return{pageNumberInput:1}},methods:{goToPage:function(t){t>=1&&t<=this.paginate.last_page?(this.$emit("change_page",t),this.pageNumberInput=t):alert("invalid page number")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tablenav-pages"},[t.paginate.total?e("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),e("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[e("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),e("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pageNumberInput,expression:"pageNumberInput"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",size:"2","aria-describedby":"table-paging"},domProps:{value:t.pageNumberInput},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.goToPage(t.pageNumberInput))},input:function(e){e.target.composing||(t.pageNumberInput=e.target.value)}}}),t._v("\n "+t._s(t.$t("of"))+"\n "),e("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[e("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),e("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])}),[],!1,null,null,null).exports,v={name:"Home",components:{GetPro:i,ninja_pagination:f},props:["searchAction","searchString"],watch:{searchAction:function(){this.paginate.current_page=1,this.fetchTables()}},data:function(){return{loading:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:parseInt(this.getFromStore("tables_per_page",20))},hasPro:!!window.ninja_table_admin.hasPro,img_url_path:window.ninja_table_admin.img_url,is_installed:window.ninja_table_admin.isInstalled,orderBy:"date",order:"DESC"}},methods:{fetchTables:function(){var t=this;this.pageLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-all-tables",per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString,orderBy:this.orderBy,order:this.order};this.$get(e).done((function(e){t.items=e.data,t.paginate.total=e.total,t.paginate.current_page=e.current_page,t.paginate.last_page=e.last_page,t.pageLoading=!1,e.total&&t.$emit("total_table",e.total)})).fail((function(t){vueNotification.error("Something went wrong, please try again.")}))},goToPage:function(t){this.paginate.current_page=t,this.fetchTables()},handleSizeChange:function(t){this.paginate.per_page=t,this.setStoreData("tables_per_page",t),this.fetchTables()},confirmDeleteTable:function(t){var e=this;this.$confirm("Are you sure, You want to delete this table?","Warning",{confirmButtonText:"Yes, Delete",cancelButtonText:"Cancel",type:"warning"}).then((function(){e.deleteTable(t)})).catch((function(){e.$message({type:"info",message:"Delete canceled"})}))},deleteTable:function(t){var e=this,a={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(a).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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={action:"ninja_tables_ajax_actions",target_action:"duplicate-table",tableId:t};this.$post(n).then((function(t){e.$message({type:"success",message:t.data.message}),"drag_and_drop"===a?e.$router.push({name:"table_builder_edit_table",params:{table_id:t.data.table_id}}):e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})})).fail((function(t){alert(t.responseJSON.data.message)}))},shouldBeVisible:function(t){return"fluent-form"!=t.dataSourceType||window.ninja_table_admin.hasFluentForm},dataSourceType:function(t){var e=t.dataSourceType||"Default";return"raw_sql"==e?"SQL":e=e.indexOf("google")>-1?"Google SpreadSheet":e},handleTableSort:function(t){this.orderBy=t.prop,this.order="ascending"===t.order?"ASC":"DESC",this.fetchTables()}},mounted:function(){this.fetchTables(),this.clipboard()}};var b=a(5867),g={insert:"head",singleton:!1};s()(b.Z,g);b.Z.locals;const y=n(v,(function(){var t=this,e=t._self._c;return e("div",[e("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.pageLoading,expression:"pageLoading",modifiers:{body:!0}}],staticClass:"ninja-tables compact",staticStyle:{},attrs:{data:t.items,border:"","aria-label":"all-tables"},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleTableSort}},[e("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(a){return["drag_and_drop"===a.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(a.row.ID)+"\n ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(a.row.ID)+"\n ")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("strong",[t.shouldBeVisible(a.row)?["drag_and_drop"===a.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t(a.row.post_title))+"\n ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t(a.row.post_title))+"\n ")])]:[t._v("\n "+t._s(a.row.post_title)+"\n ")],t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=a.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(a.row.post_status)+")\n ")])],2),t._v(" "),e("div",{staticClass:"row-actions"},[t.shouldBeVisible(a.row)?e("span",{staticClass:"row-edit"},["drag_and_drop"===a.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(a.row)?e("span",{staticClass:"row-preview"},[e("a",{attrs:{rel:"noopener",href:a.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(a.row)?e("span",{staticClass:"row-duplicate"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.duplicate(a.row.ID,a.row.dataSourceType)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(a.row)&&a.row.fluentfrom_url?e("span",{staticClass:"row-duplicate"},[e("a",{attrs:{href:a.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),e("span",{staticClass:"row-delete"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.confirmDeleteTable(a.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(a.row.post_content)}})]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(a){return["drag_and_drop"===a.row.dataSourceType?e("strong",[t._v(t._s(t.$t("Drag & Drop Table")))]):e("strong",[t._v(t._s(t.dataSourceType(a.row)))]),t._v(" "),a.row.remoteURL?[e("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:a.row.remoteURL,placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Source of data")]),t._v(" "),e("p",[t._v(t._s(a.row.remoteURL))])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])]:t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},["drag_and_drop"===a.row.dataSourceType?e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_table_builder id="'.concat(a.row.ID,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_table_builder id="'+t._s(a.row.ID)+'"]\n ')]):e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'.concat(a.row.ID,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(a.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),e("div",{staticClass:"pull-right"},[e("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1),t._v(" "),!t.loading&&!t.is_installed&&t.items.length>2&&!t.hasPro?e("div",[e("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[e("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?e("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[e("hr"),t._v(" "),e("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),e("get-pro")],1):t._e()],1)}),[],!1,null,null,null).exports;const w={name:"wp_editor",props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()}},value:{type:String,default:function(){return""}}},data:function(){return{hasWpEditor:!!window.wp.editor,plain_content:this.value,has_pro:!!window.ninja_table_admin.hasPro}},computed:{ninja_editor_id:function(){var t=this.slugify(this.editor_id);return t.match(/^[A-Za-z]+$/)||(t="editor_english_"+Math.floor(1001*Math.random())+"_"+Math.floor(101*Math.random())),"ninja_editor_"+this.slugify(t)}},watch:{plain_content:function(){this.$emit("input",this.plain_content)},value:function(){this.value||this.reloadEditor()}},methods:{initEditor:function(){if(this.hasWpEditor){wp.editor.remove(this.ninja_editor_id);var t=this;wp.editor.initialize(this.ninja_editor_id,{mediaButtons:this.has_pro,mode:"none",tinymce:{toolbar1:"formatselect,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,underline,forecolor,codeformat,removeformat,undo,redo",valid_elements:"*[*]",forced_root_block:"",setup:function(e){e.on("change",(function(e,a){t.changeContentEvent()}))}},quicktags:!0}),jQuery("#"+this.ninja_editor_id).on("change",(function(e){t.changeContentEvent()}))}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},reloadEditor:function(){wp.editor.remove(this.ninja_editor_id),jQuery("#"+this.ninja_editor_id).val(""),this.initEditor()},changeContentEvent:function(){var t=wp.editor.getContent(this.ninja_editor_id);this.$emit("input",t)},showPro:function(){window.ninjaTableBus.$emit("show_pro_popup",1)}},mounted:function(){this.initEditor()},beforeDestroy:function(){}};var x=a(2151),k={insert:"head",singleton:!1};s()(x.Z,k);x.Z.locals;const C=n(w,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():e("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[e("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),e("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:t.plain_content},on:{input:function(e){e.target.composing||(t.plain_content=e.target.value)}}})]],2)}),[function(){var t=this._self._c;return t("p",{staticStyle:{"font-style":"italic"}},[t("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}],!1,null,null,null).exports;function S(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return j(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function T(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function I(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const D={name:"WPPostConditions",props:["config","fields","conditions","allPostTypes","postStatuses","selected_post_types"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[],common_operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"}],uncommon_operators:[{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"}],other_operators:[{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}],query_limit:0,orderByFields:["ID","post_date","post_author","post_title","post_status","menu_order","comment_count"],authors:[]}},watch:{selected_post_types:function(){this.getPostAuthors()}},methods:{addCondition:function(t){this.conditions.push(function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?T(Object(a),!0).forEach((function(e){I(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):T(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e,a){e.operators=S(this.common_operators),"comment_count"==t&&e.operators.map((function(t,a){"!="==t.key&&e.operators.splice(a,1)})),-1!=["ID","comment_count","post_date","post_modified"].indexOf(t)?e.operators=S(e.operators.concat(this.other_operators)):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=S(this.uncommon_operators)),this.setValueField(t,e,a)},setValueField:function(t,e,a){if("post_status"==t)e.value=a||[],e.is_selectable="true",e.selectableOptions=this.postStatuses;else if("post_author"==t)e.value=a||[],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=a||[],e.is_selectable="true";var n=S(t.split(".")),i=n[0],o=n[1],l=this.allPostTypes[i].taxonomies[o];e.selectableOptions=l.map((function(t){return{key:t.slug,label:t.name}}))}else e.value=a||null,e.is_selectable="false",e.selectableOptions=[]},isDateField:function(t){return-1!=["post_date","post_modified"].indexOf(t.field)},isSelectable:function(t){return"true"==t.is_selectable},getPostAuthors:function(){var t=this;return this.$getJSON({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_authors",post_types:this.selected_post_types}).then((function(e){t.authors=e.data.authors}))}},mounted:function(){var t=this;this.getPostAuthors().then((function(){_.each(t.conditions,(function(e){t.setOperators(e.field,e,e.value)}))}))}};var P=a(6618),E={insert:"head",singleton:!1};s()(P.Z,E);P.Z.locals;const A=n(D,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-post-conditions"},[e("el-row",[e("el-col",{attrs:{md:21}},[e("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,(function(a,n){return[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},on:{change:function(e){return t.setOperators(e,a)}},model:{value:a.field,callback:function(e){t.$set(a,"field",e)},expression:"condition.field"}},t._l(t.fields,(function(t){return e("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},model:{value:a.operator,callback:function(e){t.$set(a,"operator",e)},expression:"condition.operator"}},t._l(a.operators,(function(t){return e("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(a)||t.isDateField(a)?!t.isSelectable(a)&&t.isDateField(a)?e("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}}):t.isSelectable(a)?e("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}},t._l(a.selectableOptions,(function(t){return e("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1):t._e():e("el-input",{attrs:{placeholder:"Value"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(n,e)}}})],1)],1)]})),t._v(" "),t.config&&t.config.table.query_extra?e("div",{staticClass:"ninja_post_query_limit"},[e("div",{staticClass:"ninja_form_group"},[e("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Query Limit")]),t._v(" "),e("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{type:"number",size:"small"},model:{value:t.config.table.query_extra.query_limit,callback:function(e){t.$set(t.config.table.query_extra,"query_limit",e)},expression:"config.table.query_extra.query_limit"}}),t._v(" "),t._m(0)],1),t._v(" "),e("div",{staticClass:"ninja_form_group"},[e("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Order By Column")]),t._v(" "),e("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by_column,callback:function(e){t.$set(t.config.table.query_extra,"order_by_column",e)},expression:"config.table.query_extra.order_by_column"}},t._l(t.orderByFields,(function(t){return e("el-option",{key:t,attrs:{value:t,label:t}})})),1)],1),t._v(" "),e("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[e("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Order By Type")]),t._v(" "),e("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by,callback:function(e){t.$set(t.config.table.query_extra,"order_by",e)},expression:"config.table.query_extra.order_by"}},[e("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),e("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)}),[function(){var t=this._self._c;return t("p",[t("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}],!1,null,null,null).exports;function N(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return O(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function M(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function z(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const F={name:"WPPostMetaQuery",props:["metas"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"},{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"},{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}]}},methods:{addCondition:function(t){this.metas.push(function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?M(Object(a),!0).forEach((function(e){z(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):M(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},this.default_condition))},removeCondition:function(t,e){this.metas.splice(t,1)},setOperators:function(t,e){e.operators=N(this.operators),this.setValueField(t,e)},setValueField:function(t,e){e.value=null,e.is_selectable="false",e.selectableOptions=[]},shouldShowInfo:function(t){return-1!==["IN","NOT IN"].indexOf(t)}}};var B=a(4253),L={insert:"head",singleton:!1};s()(B.Z,L);B.Z.locals;const R=n(F,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-post-conditions"},[e("el-row",[e("el-col",{attrs:{md:21}},[e("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.metas,(function(a,n){return[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:7,sm:7}},[e("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(e){return t.setOperators(e,a)}},model:{value:a.field,callback:function(e){t.$set(a,"field",e)},expression:"condition.field"}})],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},model:{value:a.operator,callback:function(e){t.$set(a,"operator",e)},expression:"condition.operator"}},t._l(a.operators,(function(t){return e("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-input",{attrs:{placeholder:"Value"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(a.operator)?[e("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(n,e)}}})],1)],1)]}))],2)}),[],!1,null,null,null).exports;const H={name:"PremiumNotice",components:{GetPro:i},props:["highlight"]};var W=a(7100),q={insert:"head",singleton:!1};s()(W.Z,q);W.Z.locals;const V=n(H,(function(){var t=this,e=t._self._c;return e("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[e("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?e("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),e("b",[t._v("unlimited customizations")]),t._v(",\n "),e("b",[t._v("data filters")]),t._v(",\n "),e("b",[t._v("professional looks")]),t._v(",\n "),e("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),e("get-pro")],1)}),[],!1,null,"c52d6be2",null).exports;const U=n({name:"UpgradeNotice"},(function(){var t=this._self._c;return t("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[t("p",[this._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n ")])])}),[],!1,null,null,null).exports,Y={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":A,PremiumNotice:V,UpgradeNotice:U,WpPostMetaQuery:R},data:function(){return{loading:!1,saving:!1,title:null,tableId:null,postStatuses:[],all_types:[],all_fields:[],post_types:[],selected_post_types:[],post_types_fields:[],selected_post_types_fields:[],conditions_section:"conditions",conditions:[],meta_query:"meta",metas:[],active_step:0,query_extra:{},activated_features:window.ninja_table_admin.activated_features,hasPro:!!window.ninja_table_admin.hasPro,queryable_fields:["ID","post_author","comment_count","post_date","post_modified","post_status"]}},computed:{query_able_post_types_fields:function(){var t=this;return this.post_types_fields.filter((function(e){return-1!=t.queryable_fields.indexOf(e.key)||-1!=e.key.indexOf(".")}))}},methods:{nextStep:function(){var t="";if(this.title||(t+=" The title field is required."),this.selected_post_types.length||(t+=" At least select one post type."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1&&(this.active_step=0)},handlePostTypeChange:function(t,e,a){var n=this,i=[];this.selected_post_types.forEach((function(t){n.all_types[t]&&n.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,a){var n=e.split(".");n.length>1&&-1==t.selected_post_types.indexOf(n[0])&&t.selected_post_types_fields.splice(a,1)}))},save:function(){var t=this;this.saving=!0;var e={post_types:this.selected_post_types,columns:this.selected_post_types_fields,where:this.conditions.map((function(t){return Object.assign({},t)})),metas:this.metas.map((function(t){return Object.assign({},t)})),query_extra:!(!this.config||!this.config.table)&&this.config.table.query_extra};_.forEach(e.where,(function(t){delete t.selectableOptions})),this.$post({action:"ninja_table_wp-posts_create_table",post_title:this.title,tableId:this.tableId,data:e}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,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,a){var n="";"private"===a.status&&(n=" (private)"),t.post_types.push({key:e,label:e+n})})),t.all_fields=e.data.post_fields.map((function(t){return{key:t,label:t}})),t.config&&(t.tableId=t.config.table.ID,t.conditions=t.config.table.whereConditions||[],t.metas=t.config.table.metaQuery||[],t.selected_post_types=t.config.table.post_types,t.selected_post_types_fields=t.config.columns.map((function(t){return t.original_name})),t.handlePostTypeChange())})).fail((function(t){console.log(t)})).always((function(){t.loading=!1}))}},mounted:function(){this.getPostTypes()}};var Z=a(5443),J={insert:"head",singleton:!1};s()(Z.Z,J);Z.Z.locals;const Q=n(Y,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?e("div",[t.hasPLainLayout?[e("el-row",[e("el-col",{staticClass:"table-rows",attrs:{md:12}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1),t._v(" "),e("el-col",{staticClass:"table-rows",attrs:{md:12}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)],1),t._v(" "),t.loading?t._e():e("el-row",[e("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),e("wp-post-conditions",{attrs:{config:t.config,selected_post_types:t.selected_post_types,postStatuses:t.postStatuses,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}})],2)],1),t._v(" "),e("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),e("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),e("el-row",[e("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",size:"small",loading:t.saving},on:{click:t.save}},[t._v("Update\n ")])],1)]:t._e(),t._v(" "),t.hasPLainLayout?t._e():[e("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),e("el-steps",{attrs:{active:t.active_step,"align-center":""}},[e("el-step",{attrs:{title:"Step 1"}}),t._v(" "),e("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[e("el-row",{staticStyle:{"margin-top":"20px"}},[e("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1)])]:t._e(),t._v(" "),1==t.active_step?[e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)]),t._v(" "),e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",[e("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[e("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?e("wp-post-conditions",{attrs:{postStatuses:t.postStatuses,selected_post_types:t.selected_post_types,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}}):t._e()],1)],1)],1)])]:t._e(),t._v(" "),e("el-row",[e("el-col",{attrs:{md:12}},[e("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),e("el-col",{attrs:{md:12}},[t.active_step>0?e("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",disabled:!t.activated_features.wp_posts_table,loading:t.saving},on:{click:t.save}},[t._v("Save\n ")]):t._e()],1)],1)]],2):[e("upgrade-notice")]:[e("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"ninja_subtitle"},[t._v("\n Displays website content in a searchable, sortable with Ninja Tables. It supports custom posts,\n pages, &\n custom post types. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-posts-table/"}},[t._v("Learn more\n about this module")])])}],!1,null,null,null).exports;var X=a(6073),G=a.n(X);const K=n({name:"woo_conditions",props:["query_selections","query_conditions"],data:function(){return{query_terms:[],loading:!1,product_orders:{post_title:"Product Title",date:"Date",menu_order:"Menu Order",average_rating:"Average Rating",price:"price",popularity:"Popularity (Sales)",random:"Random"}}},methods:{getWooSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_table_woocommerece_get_options"}).then((function(e){var a=e.data.query_terms;G()(a,(function(e,a){t.query_selections[a]||t.$set(t.query_selections,a,[])})),t.query_terms=a})).fail((function(t){})).always((function(){t.loading=!1}))}},mounted:function(){this.getWooSettings()}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,(function(a,n){return e("div",{staticClass:"nt_each_selection"},[e("div",{staticClass:"nt_query_header"},[e("h3",[t._v(t._s(a.title))]),t._v(" "),e("p",[t._v(t._s(a.description))])]),t._v(" "),e("div",{staticClass:"nt_query_body"},[e("el-checkbox-group",{model:{value:t.query_selections[n],callback:function(e){t.$set(t.query_selections,n,e)},expression:"query_selections[term_name]"}},t._l(a.terms,(function(a){return e("el-checkbox",{key:a.slug,attrs:{label:a.slug}},[t._v(t._s(a.name)+" ("+t._s(a.count)+")\n ")])})),1)],1)])})),t._v(" "),e("div",{staticClass:"nt_each_selection"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.query_conditions.hide_out_of_stock,callback:function(e){t.$set(t.query_conditions,"hide_out_of_stock",e)},expression:"query_conditions.hide_out_of_stock"}},[t._v("\n Hide "),e("b",[t._v("out of stocks")]),t._v(" items\n ")])],1),t._v(" "),e("div",{staticClass:"nt_each_selection"},[e("label",[t._v("\n Initial Order By\n "),e("el-select",{attrs:{size:"mini",placeholder:"Order By"},model:{value:t.query_conditions.order_by,callback:function(e){t.$set(t.query_conditions,"order_by",e)},expression:"query_conditions.order_by"}},t._l(t.product_orders,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1),t._v(" "),e("el-select",{directives:[{name:"show",rawName:"v-show",value:t.query_conditions.order_by&&"random"!=t.query_conditions.order_by,expression:"query_conditions.order_by && query_conditions.order_by != 'random'"}],attrs:{size:"mini",placeholder:"Order By Type"},model:{value:t.query_conditions.order_by_type,callback:function(e){t.$set(t.query_conditions,"order_by_type",e)},expression:"query_conditions.order_by_type"}},[e("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),e("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)}),[],!1,null,null,null).exports;const tt=n({name:"woo_product_table",components:{WooNav:K},data:function(){return{loading:!1,saving:!1,query_selections:{},post_title:"",query_conditions:{}}},props:{tableCreated:{type:Function}},methods:{save:function(){var t=this;this.post_title?(this.saving=!0,this.$post({action:"ninja_table_woocommerece_create_table",post_title:this.post_title,query_selections:this.query_selections,query_conditions:this.query_conditions}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"})})).always((function(e){return t.saving=!1}))):this.$message({showClose:!0,message:"Please Provide a Table Title",type:"error"})}},mounted:function(){}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),e("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),e("div",{staticClass:"form-group"},[e("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:function(e){return t.save()}}},[t._v("\n Create Products Table\n ")])],1)],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"nt_module_header"},[e("h3",[t._v("\n Construct Table from Your WooCommerce Products\n ")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Displays products content in a searchable, sortable with Ninja Tables. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/woocommerce-product-table/"}},[t._v("Learn more\n about wocommerece integration")])])])}],!1,null,null,null).exports;const et={name:"FluentForm",props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object}},data:function(){return{installing:!1,fetching:!1,forms:[],fields:[],btnLoading:!1,post_title:"",form:{id:null,fields:[],entry_status:"all",entry_limit:1e3},hasFluentForm:!!window.ninja_table_admin.hasFluentForm,isFluentFormUpdated:!!window.ninja_table_admin.isFluentFormUpdated}},methods:{fetchForms:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_get-fluentform-forms"}).then((function(e){return t.forms=e.data})).fail((function(t){return console.log(t)})).always((function(){t.fetching=!1}))},handleFormSelectionChange:function(t){var e=this;this.$get({form_Id:t,action:"ninja-tables_get-fluentform-fields"}).then((function(t){e.fields=t.data,e.editing&&(e.form.entry_limit=e.config.table.entry_limit,e.form.entry_status=e.config.table.entry_status,e.$nextTick((function(){var t=e.config.columns.map((function(t){return t.original_name}));e.fields.filter((function(e){return-1!=t.indexOf(e.name)})).forEach((function(t){e.$refs.rowSelectableTable.toggleRowSelection(t)}))})))})).fail((function(t){})).always((function(){}))},handleFieldsSelectionChange:function(t){this.form.fields=t},save:function(){var t=this;this.btnLoading=!0,this.config&&this.config.table.current_user_entry_only&&(this.form.current_user_entry_only=this.config.table.current_user_entry_only),this.$post({action:"ninja_tables_save_fluentform_table",post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null}).then((function(e){return t.tableCreated(e.data.table_id)})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"})})).always((function(e){return t.btnLoading=!1}))},installFluentFrom:function(){var t=this;this.installing=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"install_fluent_form"}).then((function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)})).fail((function(e){t.$message.error(e.responseJSON.message)})).always((function(){t.installing=!1}))}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}};var at=a(5855),nt={insert:"head",singleton:!1};s()(at.Z,nt);at.Z.locals;const it=n(et,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():e("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():e("p",{staticClass:"ninja_subtitle"},[t._v("\n Prepare your table from your existing WP Fluent Forms submissions. It can be used to easily showcase\n your form submissions.\n "),e("a",{attrs:{target:"_blank",href:"https://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():e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),t.editing?t._e():e("div",{staticClass:"form-group"},[e("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"Select a Form"},on:{change:t.handleFormSelectionChange},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}},t._l(t.forms,(function(t){return e("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})})),1)],1),t._v(" "),t.form.id?e("div",{staticClass:"form-group"},[e("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("strong",[t._v("Options (Optional)")]),t._v(" "),e("hr"),t._v(" "),e("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[e("el-col",{attrs:{md:12}},[e("el-row",[e("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[e("strong",[e("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[e("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),e("el-col",{attrs:{md:18}},[e("el-input",{model:{value:t.form.entry_limit,callback:function(e){t.$set(t.form,"entry_limit",e)},expression:"form.entry_limit"}})],1)],1)],1),t._v(" "),e("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[e("el-row",[e("el-col",{attrs:{md:6}},[e("strong",[e("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[e("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),e("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[e("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[e("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),e("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),e("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[e("br"),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.config.table.current_user_entry_only,callback:function(e){t.$set(t.config.table,"current_user_entry_only",e)},expression:"config.table.current_user_entry_only"}},[t._v("Show current user submissions only at frontend")])]:t._e()],2),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("el-button",{staticStyle:{"margin-top":"12px",float:"right"},attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.save}},[t._v(t._s(t.editing?t.$t("Update"):t.$t("Save"))+"\n ")])],1)]:t.hasFluentForm?[e("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[t._v("To use this feature your WP Fluent Form need to be updated. Please update WP Fluent From from plugins\n screen")])]),t._v(" "),e("h4",[t._v("See the form in action:")]),t._v(" "),e("br"),t._v(" "),t._m(0)]:e("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),e("div",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?e("span",[t._v("Installing WP Fluent From...")]):e("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?e("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),e("h4",[t._v("See the form in action:")]),t._v(" "),e("br"),t._v(" "),t._m(2)])],2)}),[function(){var t=this._self._c;return t("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[t("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this,e=t._self._c;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[t._v("WP Fluent Form")]),t._v(" is a WordPress\n Contact Form plugin packed with all the premium features you would need to create\n a responsive, customizable, drag and drop form. Using this module, You can easily show your form entries\n in Ninja Tables.\n ")])},function(){var t=this._self._c;return t("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[t("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,null,null).exports;function ot(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function lt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(a),!0).forEach((function(e){st(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ot(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function st(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const rt=n({name:"Remote-Data-Source",components:{PremiumNotice:V,UpgradeNotice:U},props:{columns:{type:Array},type:{type:String,required:!0},tableCreated:{type:Function,required:!0},hasPro:{required:!0},table:{type:Object,default:function(){return{post_title:"",remote_url:"",fields:[],table_id:null}}},editing:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},data:function(){return{fields:[],active_step:0,saving:!1,fetching:!1}},methods:{nextStep:function(){var t="";if(this.table.post_title||(t+=" The title field is required."),this.table.remote_url||(t+=" The url field is required."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1?this.active_step=0:this.fatchRemoteData()},fatchRemoteData:function(){var t=this;this.fetching=!0;var e=lt(lt({action:"ninja_table_external_data_source_create"},this.table),{},{type:this.type,get_headers_only:!0});delete e.custom_css,this.$post(e).then((function(e){var a=[];if(jQuery.each(e.data,(function(t){return a.push({name:t})})),t.fields=a,t.editing){var n=t.columns.map((function(t){return t.original_name}));t.$nextTick((function(){t.fields.filter((function(t){return-1!=n.indexOf(t.name)})).forEach((function(e){t.$refs.rowSelectableTable.toggleRowSelection(e)}))}))}})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"})})).always((function(e){return t.fetching=!1}))},handleFieldsSelectionChange:function(t){this.table.fields=t},save:function(t){var e=this;this.saving=!0;var a=lt(lt({},this.table),{},{type:this.type,action:"ninja_table_external_data_source_create"});delete a.custom_css,this.$post(a).then((function(t){var a=t.data;return e.tableCreated(a.ID)})).fail((function(t){var a="",n=t.responseJSON.data.message;for(var i in n)a+=" "+n[i];e.$message({showClose:!0,message:a,type:"error"})})).always((function(){return e.saving=!1}))}},created:function(){this.editing&&(this.table.table_id=this.table.ID,this.fatchRemoteData())}},(function(){var t=this,e=t._self._c;return e("div",[t.editing?[e("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:e("div",{staticClass:"ninja_modal-body"},[e("el-steps",{attrs:{active:t.active_step,"align-center":""}},[e("el-step",{attrs:{title:"Step 1"}}),t._v(" "),e("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[e("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[e("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.table.remote_url,expression:"table.remote_url"}],staticClass:"form-control",attrs:{id:"remote_url",type:"text",placeholder:"Enter your source URL",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.remote_url},on:{input:function(e){e.target.composing||t.$set(t.table,"remote_url",e.target.value)}}})])]:[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[e("UpgradeNotice")]:[e("premium-notice")],t._v(" "),e("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():e("el-row",[e("el-col",{attrs:{md:12}},[e("el-button",{staticStyle:{float:"left"},attrs:{type:"primary",size:"small"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),t.active_step>0?e("el-col",{attrs:{md:12}},[e("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"small",loading:t.saving,disabled:!t.activated_features.external_data_source},on:{click:t.save}},[t._v(t._s(t.$t("Save"))+"\n ")])],1):t._e()],1)],1),t._v(" "),t.editing?e("div",{staticStyle:{"margin-top":"15px"}},[e("el-input",{attrs:{placeholder:"Remote URL..."},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fatchRemoteData.apply(null,arguments)}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[e("el-button",{attrs:{slot:"prepend",loading:t.fetching,size:"small",plain:""},on:{click:t.fatchRemoteData},slot:"prepend"},[t._v(t._s(t.$t("Fetch Columns"))+"\n ")]),t._v(" "),e("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:"",type:"primary"},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your Google Sheets data changes it will be automatically reflected here. You won't have\n to do a thing. Please provide the publishable public URL of your google sheet.\n "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/construct-table-from-google-sheets/"}},[t._v("View\n Documentation Here")])])}],!1,null,null,null).exports;const ct={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 a=new FormData;a.append("format",this.imports.format),a.append("file",e),a.append("action","ninja_tables_ajax_actions"),a.append("target_action","import-table"),a.append("do_unicode",this.do_unicode),a.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:a,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}}};var ut=a(91),dt={insert:"head",singleton:!1};s()(ut.Z,dt);ut.Z.locals;const pt=n(ct,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_modal-body"},[e("h3",[t._v("Import Table")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),e("div",{staticClass:"form"},[e("div",{staticClass:"form-group"},["file"===t.imports.source?[e("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),e("br"),t._v(" "),e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[e("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),e("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],staticClass:"form-control",attrs:{id:"import_format"},on:{change:function(e){var a=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?a:a[0])}}},t._l(t.imports.formatOptions,(function(a,n){return e("option",{domProps:{value:n}},[t._v(t._s(t.$t(a))+"\n ")])})),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])]:t._e(),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:"json"===t.imports.format||"ninjaJson"===t.imports.format,expression:"imports.format === 'json' || imports.format === 'ninjaJson'"}],staticClass:"hint"},[t._v("\n Check tutorial for importing Table from JSON file\n\n "),e("a",{attrs:{href:"https://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?e("div",{staticClass:"form_group ninja_errors"},[e("ul",t._l(t.errors,(function(a,n){return e("li",{key:n},[t._v("\n "+t._s(a.info)+"\n ")])})),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"hint"},[t._v("\n Check tutorial for importing data from CSV file\n "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])}],!1,null,"417a7c88",null).exports;const mt={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 a=e.getSession().getAnnotations();for(var n in t.editorError="",a)"error"==a[n].type&&(t.editorError=a[n].text)})),e.getSession().on("change",(function(){t.$emit("input",e.getSession().getValue())})),this.loading=!1}},mounted:function(){this.loadDependencies()}};var _t=a(1799),ht={insert:"head",singleton:!1};s()(_t.Z,ht);_t.Z.locals;const ft=n(mt,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])}),[],!1,null,"ad6aab96",null).exports;const vt=n({name:"remote_sql_form",props:["connection"],data:function(){return{}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sql_connection_wrapper"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB Name\n "),e("el-input",{attrs:{size:"mini",placeholder:"DB Name"},model:{value:t.connection.db_name,callback:function(e){t.$set(t.connection,"db_name",e)},expression:"connection.db_name"}})],1)]),t._v(" "),e("div",{staticClass:"nt_row_2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB username\n "),e("el-input",{attrs:{size:"mini",placeholder:"DB User Name"},model:{value:t.connection.db_username,callback:function(e){t.$set(t.connection,"db_username",e)},expression:"connection.db_username"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB User Password\n "),e("el-input",{attrs:{size:"mini",type:"password",placeholder:"DB User Password"},model:{value:t.connection.db_userpassword,callback:function(e){t.$set(t.connection,"db_userpassword",e)},expression:"connection.db_userpassword"}})],1)])]),t._v(" "),e("div",{staticClass:"nt_row_2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB Host\n "),e("el-input",{attrs:{size:"mini",placeholder:"DB Host"},model:{value:t.connection.db_host,callback:function(e){t.$set(t.connection,"db_host",e)},expression:"connection.db_host"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB Host Port\n "),e("el-input",{attrs:{size:"mini",type:"number",placeholder:"Default: 3306 "},model:{value:t.connection.db_host_port,callback:function(e){t.$set(t.connection,"db_host_port",e)},expression:"connection.db_host_port"}})],1)])])])}),[],!1,null,null,null).exports,bt={name:"CustomSQLQuery",components:{MySqlEditor:ft,PremiumNotice:V,RemoteSqlConnection:vt},props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object},activated_features:{type:Object}},data:function(){return{installing:!1,fetching:!1,btnLoading:!1,post_title:"",connection_type:"local",remote_connection:{db_name:"",db_username:"",db_userpassword:"",db_host:"localhost",db_host_port:3306},sql:"",error_html:"",isActivated:this.activated_features.raw_sql_query,hasPro:!!ninja_table_admin.hasPro,has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{save:function(){var t=this;this.btnLoading=!0,this.error_html="",this.$post({action:"ninja_tables_save_raw_sql_table",post_title:this.post_title,sql:this.sql,connection_details:this.remote_connection,connection_type:this.connection_type,table_Id:this.config&&this.config.table.ID||null}).then((function(e){console.log(e),"string"!=typeof e&&e&&e.data&&e.data.table_id?t.tableCreated(e.data.table_id):t.error_html=e})).fail((function(e){if(console.log(e),"string"!=typeof e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)}else t.error_html=res})).always((function(e){return t.btnLoading=!1}))}},mounted:function(){}};var gt=a(5814),yt={insert:"head",singleton:!1};s()(gt.Z,yt);gt.Z.locals;const wt=n(bt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_modal-body"},[e("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),e("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[e("div",{staticClass:"ninja_modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),e("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.sql,callback:function(e){t.sql=e},expression:"sql"}}),t._v(" "),t._m(0)],1),t._v(" "),t.error_html?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),e("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[e("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),e("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),e("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[e("el-alert",{attrs:{title:"",type:"error",closable:!1}},[e("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles.\n ")])])]:[e("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)}),[function(){var t=this,e=t._self._c;return e("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[t._v("$wpdb->get_results()")]),t._v(" function")])}],!1,null,null,null).exports;var xt=a(9980),kt=a.n(xt),Ct={computed:{margin:function(){return{"margin-bottom":this.item.data.style.margin.bottom+"px","margin-left":this.item.data.style.margin.left+"px","margin-right":this.item.data.style.margin.right+"px","margin-top":this.item.data.style.margin.top+"px"}},padding:function(){return{"padding-top":this.item.data.style.padding.top+"px","padding-bottom":this.item.data.style.padding.bottom+"px","padding-left":this.item.data.style.padding.left+"px","padding-right":this.item.data.style.padding.right+"px"}},fontSize:function(){return{"font-size":""===this.item.data.style.fontSize||10===this.item.data.style.fontSize?this.setting.global_styling.options.font_size.value+"px":this.item.data.style.fontSize+"px"}},displayBlock:function(){return{display:"block"}},displayFlex:function(){return{display:"flex"}},textAlign:function(){return{"text-align":this.item.data.style.alignment}},color:function(){return{color:""===this.item.data.style.color||"#000001"===this.item.data.style.color?this.setting.global_styling.options.color.value:this.item.data.style.color}},backgroundColor:function(){return{background:this.item.data.style.backgroundColor}},border:function(){return{border:"".concat(this.item.data.style.borderSize,"px solid ").concat(this.item.data.style.borderColor)}},buttonIconHover:function(){var t=this.item.data.style.hoverIconColor,e=this.item.data.style.iconColor;return{"--icon-color-hover":t=!0===this.item.data.style.isHover?this.svgExtension(this.item.data.style.iconName)?""===t?this.setting.global_styling.options.color.value:t:"transparent":this.svgExtension(this.item.data.style.iconName)?""===e?this.setting.global_styling.options.color.value:e:"transparent"}},iconStyle:function(){var t={},e=this.item.data.style.fontSize,a=this.item.data.style.color,n=""===e||10===e?this.setting.global_styling.options.font_size.value:e,i=""===a||"#000001"===a?this.setting.global_styling.options.color.value:a;return t.width=n+"px",t.height=n+"px",this.svgExtension(this.item.data.value)?(t["mask-image"]="url("+this.getAsset(this.item.data.value)+")",t["-webkit-mask-image"]="url("+this.getAsset(this.item.data.value)+")",t.background=i):(t["background-image"]="url("+this.item.data.value+")",t["background-size"]="cover"),t},iconWithOtherComponent:function(){var t={},e=this.item.data.style.iconFontSize,a=this.item.data.style.iconColor,n=""===e||10===e?this.setting.global_styling.options.font_size.value:e,i=""===a||"#000001"===a?this.setting.global_styling.options.color.value:a;return t.width=n+"px",t.height=n+"px",this.svgExtension(this.item.data.style.iconName)?(t["mask-image"]="url("+this.getAsset(this.item.data.style.iconName)+")",t["-webkit-mask-image"]="url("+this.getAsset(this.item.data.style.iconName)+")",t.background=i):(t["background-image"]="url("+this.item.data.style.iconName+")",t["background-size"]="cover"),t},buttonStyle:function(){return{"text-decoration":"none","border-radius":this.item.data.style.borderRadius+"px",width:"true"===this.item.data.style.fullWidth||!0===this.item.data.style.fullWidth?"100%":"","text-align":this.item.data.style.contentAlignment,overflow:"hidden","line-height":2,display:"inline-block"}},justifyContent:function(){var t="center";return"left"===this.item.data.style.alignment?t="flex-start":"right"===this.item.data.style.alignment&&(t="flex-end"),{"justify-content":t}},lineHeight:function(){return{"line-height":this.item.data.style.lineHeight+"px"}},listStyle:function(){return{padding:0,margin:"15px0px","list-style-position":"inside","list-style-type":"list"===this.item.data.type?this.item.data.style.listStyle:"none"}},progressBarTextStyle:function(){var t=this.item.data.style,e=""===t.fontSize||10===t.fontSize?this.setting.global_styling.options.font_size.value:t.fontSize;return{"--progress-bar-text-color":""===t.color?this.setting.global_styling.options.color.value:t.color,"--progress-bar-font-size":e+"px"}},ratingStyle:function(){var t=this.item.data.style.fontSize;return{"--rating-font-size":(""===t||10===t?this.setting.global_styling.options.font_size.value:t)+"px"}},showRatingScore:function(){return"true"===this.item.data.style.showRatingValue||!0===this.item.data.style.showRatingValue},scoreTemplate:function(){var t=this.item.data.value;return Number.isInteger(t)?"".concat(t,"/").concat(this.item.data.style.maxStar):"".concat(t.toFixed(1),"/").concat(this.item.data.style.maxStar)},starRatingStyling:function(){var t=this.item.data.style.color,e=this.setting.global_styling.options.color.value;return""===t?[e,e,e]:[t,t,t]},fontWeight:function(){var t=this.item.data.style.fontWeight;if(t&&t.length>=0){for(var e="normal",a="normal",n="none",i=0;i<t.length;i++)"bold"===t[i]&&(e="bold"),"italic"===t[i]&&(a="italic"),"underline"===t[i]&&(n="underline");return{"font-weight":e,"font-style":a,"text-decoration":n}}},borderRadius:function(){return{"border-radius":("round"===this.item.data.style.shape?50:0)+"%"}},ribbonSize:function(){var t=this.item.data.style.ribbonType,e="",a="";return"bookmark"===t?(a=this.item.data.style.bookmarkWidth,e=this.item.data.style.bookmarkHeight):"side"===t?(a=this.item.data.style.sideWidth,e=this.item.data.style.sideHeight):"horizontal"===t?(a=this.item.data.style.horizontalWidth,e=this.item.data.style.horizontalHeight):(a=this.item.data.style.width,e=this.item.data.style.height),{width:a+"px",height:e+"px"}},xAxisRibbon:function(){var t=this.item.data.style,e=this.setting.general.options.cell_padding.value;return"corner"===t.ribbonType?Number(t.cornerXAxis-e+10)+"px":Number(t.xAxis-e+10)+"px"},yAxisRibbon:function(){return Number(this.item.data.style.yAxis-this.setting.general.options.cell_padding.value+10)+"px"},textStyle:function(){return{opacity:""===this.item.data.value?".4":1,"line-height":1.2}},verticalAlignMiddle:function(){return{"vertical-align":"middle"}}},methods:{svgExtension:function(t){if(t){var e=t.slice(-4);return".svg"===e.slice(-4)||!e.includes(".")}}}};const St={name:"Elements",mixins:[Ct],data:function(){return{icon:"",url:"",colors:{5:{value:"#F7BA2A"}}}},watch:{item:{handler:function(t,e){t.data.style.maxStar<t.data.value&&(t.data.value=t.data.style.maxStar)},deep:!0}},methods:{getAsset:function(t){return t.includes(window.location.origin)?t:ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"},dataTypes:function(t){return!!["text","custom_html","shortcode","button","text_icon"].includes(t)}},props:{item:{type:Object,default:null},itemId:{type:[Number,String],default:0},listItem:{type:Number,default:null},setting:{type:Object,default:{}}},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}}};var jt=a(394),$t={insert:"head",singleton:!1};s()(jt.Z,$t);jt.Z.locals;var Tt=n(St,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ntb-elements-wrapper",style:[t.itemId===t.item.id?t.margin:""]},[t.itemId===t.item.id&&t.dataTypes(t.item.data.type)?e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],style:"color:#ff0000",nativeOn:{mouseleave:function(e){return t.$emit("child-data",t.item.data)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("child-data","clickEnter")}},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}):t.itemId===t.item.id&&"star_rating"===t.item.data.type?e("el-rate",{staticClass:"ntb-rating",style:[t.padding,t.ratingStyle,t.textAlign],attrs:{colors:t.starRatingStyling,max:t.item.data.style.maxStar,"score-template":t.scoreTemplate,"show-score":t.showRatingScore,"text-color":"".concat(""===t.item.data.style.color?t.setting.global_styling.options.color.value:t.item.data.style.color),"allow-half":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("child-data")}},nativeOn:{mouseleave:function(e){return t.$emit("child-data")}},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}):"icon"===t.item.data.type&&t.itemId===t.item.id?e("span",{style:[t.padding,t.displayBlock,t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[e("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type&&t.itemId===t.item.id?e("span",{staticClass:"ntb-progress",style:[t.padding,t.displayBlock,t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[Number(t.item.data.style.percentage)?e("el-progress",{style:[t.progressBarTextStyle,{"margin-top":"3px"}],attrs:{color:[t.color],percentage:Number(t.item.data.style.percentage),"stroke-width":Number(t.item.data.style.thickness),type:t.item.data.style.type,width:Number(t.item.data.style.width)}}):t._e()],1):"image"===t.item.data.type&&t.itemId===t.item.id?e("span",{on:{mouseleave:function(e){return t.$emit("child-data")}}},[e("a",{style:[t.displayFlex,t.justifyContent],attrs:{href:"".concat(t.item.data.style.link)},on:{click:function(t){t.preventDefault()}}},[e("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{alt:"".concat(t.item.data.style.alt),src:t.item.data.value}})])]):"list"!==t.item.data.type&&"stylist_list"!==t.item.data.type||t.itemId!==t.item.id?"ribbon"===t.item.data.type&&t.itemId===t.item.id?e("span",{staticStyle:{position:"relative",margin:"0",padding:"0",width:"100%"},on:{mouseleave:function(e){return t.$emit("child-data")}}},[e("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[e("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[e("div",{class:["content","left"===t.item.data.style.ribbonPosition?"left":"right"],style:[t.ribbonSize,t.backgroundColor,{"text-align":"center",padding:"corner"===t.item.data.style.ribbonType?t.item.data.style.height+"px 0px":""}]},[e("p",{style:[t.fontSize,t.color,t.fontWeight,{"margin-top":t.item.data.style.textYAxis+"px","margin-left":t.item.data.style.textXAxis+"px"}]},[t._v(t._s(t.item.data.value))])])])])]):t._e():e("span",{style:[t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[e(t.item.data.style.listType,{tag:"component",staticClass:"ntb-list-style",style:[t.listStyle,t.padding]},[t._l(t.item.data.value,(function(a,n){return e("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},["stylist_list"===t.item.data.type?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,{"vertical-align":"middle"}]}):t._e(),t._v(" "),e("span",{style:[{"margin-left":t.item.data.style.itemSpacing+"px","vertical-align":"middle"}],domProps:{innerHTML:t._s(a)}})])})),t._v(" "),e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],on:{mouseleave:function(e){return t.$emit("child-data")}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("child-data",{item:t.item})}},model:{value:t.item.data.value[t.listItem],callback:function(e){t.$set(t.item.data.value,t.listItem,e)},expression:"item.data.value[listItem]"}})],2)],1)],1)}),[],!1,null,null,null);const It=Tt.exports;const Dt={name:"Datas",mixins:[Ct],props:["item","manage","setting"],methods:{copyItem:function(t){this.item.data.value.splice(t+1,0,this.item.data.value[t])},deleteItem:function(t){this.item.data.value.splice(t,1)},getAsset:function(t){return t.includes(window.location.origin)?t:ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"}},computed:{ratingValue:{get:function(){return Number(this.item.data.value)},set:function(t){this.item.data.value=t}},mouseOver:function(){if(!0===this.item.data.style.isHover){var t=this.item.data.style.hoverColor,e=""===t?this.setting.global_styling.options.color.value:t;return["this.style.background='"+this.item.data.style.hoverBackgroundColor+"'","this.style.color='"+e+"'","this.style.border='"+this.item.data.style.hoverBorderSize+"px solid"+this.item.data.style.hoverBorderColor+"'","this.style.transform='scale("+this.item.data.style.transition+")'"]}},mouseOut:function(){if(!0===this.item.data.style.isHover){var t=this.item.data.style.iconColor,e=""===t||"#000000"===t?this.setting.global_styling.options.color.value:t;return["this.style.background='"+this.item.data.style.backgroundColor+"'","this.style.color='"+e+"'","this.style.border='"+this.item.data.style.borderSize+"px solid"+this.item.data.style.borderColor+"'","this.style.transform='scale(1)'"]}}}},Pt=Dt;var Et=a(4889),At={insert:"head",singleton:!1};s()(Et.Z,At);Et.Z.locals;var Nt=n(Pt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ntb-datas-wrapper",style:[t.margin]},["text"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color,t.textStyle],domProps:{innerHTML:t._s(""===t.item.data.value?"Add New":t.item.data.value)}}):"button"===t.item.data.type?e("div",{staticClass:"hover-item",style:[t.justifyContent,{display:t.item.data.style.fullWidth?"block":"flex"}]},[e("a",{style:[t.justifyContent,t.displayFlex,{"text-decoration":"none"}],attrs:{href:"".concat(t.item.data.style.url),target:t.item.data.style.newTab?"_black":""},on:{click:function(t){t.preventDefault()}}},[e("el-button",{staticClass:"ntb-el-button",style:[t.buttonIconHover,t.fontSize,t.color,t.backgroundColor,t.border,t.buttonStyle,{padding:"0px"}],attrs:{type:"primary",onmouseover:t.mouseOver,onmouseout:t.mouseOut}},[e("span",{staticClass:"button-content-wrapper",style:[t.padding]},["left"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e(),t._v(" "),e("span",{style:[t.fontWeight,{"margin-left":"left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing+"px":"0px","margin-right":"right"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing+"px":"0px"}],domProps:{innerHTML:t._s(t.item.data.value)}}),t._v(" "),"right"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e()])])],1)]):"custom_html"===t.item.data.type?e("div",{staticClass:"hover-item",style:[t.padding],domProps:{innerHTML:t._s(t.item.data.value)}}):"shortcode"===t.item.data.type?e("div",{staticClass:"ninja_table_builder_shortcode hover-item",style:[t.textAlign,t.padding],domProps:{innerHTML:t._s(t.item.data.value)}}):"star_rating"===t.item.data.type?e("span",[e("el-rate",{staticClass:"ntb-rating hover-item",style:[t.ratingStyle,t.textAlign,t.padding],attrs:{"score-template":t.scoreTemplate,"allow-half":"","show-score":t.showRatingScore,"text-color":"".concat(""===t.item.data.style.color?t.setting.global_styling.options.color.value:t.item.data.style.color),max:t.item.data.style.maxStar,colors:t.starRatingStyling},model:{value:t.ratingValue,callback:function(e){t.ratingValue=e},expression:"ratingValue"}})],1):"icon"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[e("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type?e("span",{staticClass:"ntb-progress hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[Number(t.item.data.style.percentage)?e("el-progress",{style:[t.progressBarTextStyle,{"margin-top":"3px"}],attrs:{type:t.item.data.style.type,width:Number(t.item.data.style.width),percentage:Number(t.item.data.style.percentage),color:[t.color],"stroke-width":Number(t.item.data.style.thickness)}}):t._e()],1):"image"===t.item.data.type?e("span",[e("a",{staticClass:"hover-item",style:[t.displayBlock,t.textAlign],attrs:{target:"_blank",href:"".concat(t.item.data.style.link)},on:{click:function(t){t.preventDefault()}}},[e("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{src:t.item.data.value,alt:"".concat(t.item.data.style.alt)}})])]):"list"===t.item.data.type||"stylist_list"===t.item.data.type?e("span",{staticClass:"ntb-list hover-item",style:[t.textAlign,t.displayFlex,t.justifyContent]},[e(t.item.data.style.listType,{tag:"component",class:t.manage?"":"ntb-list-style",style:[t.listStyle,t.padding]},t._l(t.item.data.value,(function(a,n){return e("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},[e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.$emit("list-item",{index:n})}}},["stylist_list"===t.item.data.type?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),e("span",{style:[t.fontWeight,t.verticalAlignMiddle,{"margin-left":t.item.data.style.itemSpacing+"px"}],domProps:{innerHTML:t._s(a)}})]),t._v(" "),t.manage?t._e():e("div",{staticClass:"icon-styles remove-elements"},[e("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return e.stopPropagation(),t.copyItem(n)}}}),t._v(" "),e("i",{staticClass:"el-icon-delete",on:{click:function(e){return e.stopPropagation(),t.deleteItem(n)}}})])])})),0)],1):t._e(),t._v(" "),"text_icon"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.displayFlex,t.justifyContent]},[e("span",{staticClass:"icon-text-wrapper",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color]},["left"===t.item.data.style.iconPosition?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),e("span",{style:"\n vertical-align: middle;\n margin-left: ".concat("left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0,"px;\n margin-right: ").concat("right"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0,"px;\n "),domProps:{innerHTML:t._s(t.item.data.value)}}),t._v(" "),"right"===t.item.data.style.iconPosition?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e()])]):t._e(),t._v(" "),"ribbon"===t.item.data.type?[e("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[e("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[e("div",{class:["content","left"===t.item.data.style.ribbonPosition?"left":"right"],style:[t.ribbonSize,t.backgroundColor,{"text-align":"center",padding:"corner"===t.item.data.style.ribbonType?t.item.data.style.height+"px 0px":""}]},[e("p",{style:[t.fontSize,t.color,t.fontWeight,{"margin-top":t.item.data.style.textYAxis+"px","margin-left":t.item.data.style.textXAxis+"px"}]},[t._v(t._s(t.item.data.value))])])])])]:t._e()],2)}),[],!1,null,null,null);const Ot=Nt.exports;function Mt(t){return function(t){if(Array.isArray(t))return zt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return zt(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var Ft={data:function(){return{tdIds:[],merge:{items:[],rowColumn:[],history:{},visible:!1},split:{visible:!1}}},methods:{addTopRow:function(){this.tableData.data.unshift(this.row()),this.tableData.table.tr=Number(this.tableData.table.tr)+1,this.updateHistoryRowIndex()},addBottomRow:function(){this.tableData.data.push(this.row()),this.tableData.table.tr=Number(this.tableData.table.tr)+1,this.updateHistoryRowIndex()},addLeftColumn:function(){var t=this;this.tableData.data.forEach((function(e,a){t.$set(e.rows,t.columnName,t.defaultTd())})),this.tableData.headers.unshift(this.columnName),this.tableData.table.tc=Number(this.tableData.table.tc)+1,this.updateHistoryColumnIndex()},addRightColumn:function(){var t=this;this.tableData.data.forEach((function(e,a){t.$set(e.rows,t.columnName,t.defaultTd())})),this.tableData.headers.push(this.columnName),this.tableData.table.tc=Number(this.tableData.table.tc)+1,this.updateHistoryColumnIndex()},defaultItem:function(){var t=this.initialData.components.general.fields[0];return{id:this.id(),data:this.deepClone(t)}},row:function(){var t=this,e={};return this.tableData.headers.forEach((function(a){e[a]=t.defaultTd()})),{rows:e,style:this.trStyle()}},defaultTd:function(){return{style:this.tdStyle(),columns:[this.defaultItem()]}},tdStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{tdId:this.id(8),backgroundColor:t.backgroundColor?t.backgroundColor:"",columnWidth:t.columnWidth?t.columnWidth:"",emptyCell:t.emptyCell?t.emptyCell:"",verticalAlignment:t.verticalAlignment?t.verticalAlignment:"",rowspan:t.rowspan||0===t.rowspan?t.rowspan:1,colspan:t.colspan||0===t.colspan?t.colspan:1,highlighted:{active:!!t.highlighted&&t.highlighted.active,height:t.highlighted?t.highlighted.height:10,shadowColor:t.highlighted?t.highlighted.shadowColor:"#888",offset_x:t.highlighted?t.highlighted.offset_x:0,offset_y:t.highlighted?t.highlighted.offset_y:10,blur_radius:t.highlighted?t.highlighted.blur_radius:10}}},trStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{trId:this.id(7),backgroundColor:t.backgroundColor?t.backgroundColor:"",rowHeight:t.rowHeight?t.rowHeight:""}},copyRow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(arguments.length>1&&void 0!==arguments[1]||this.table.rowIndex,{}),n=this.isEmpty(e)?this.table.row:e;return this.tableData.headers.forEach((function(e){var i=n.rows[e],o=[];i.columns.forEach((function(e){var a={id:t.id(),data:t.deepClone(e.data)};o.push(a)})),a[e]={style:t.tdStyle(i.style),columns:o}})),{style:this.trStyle(n.style),rows:a}},removeRow:function(){var t=this,e=this.selectedColumnStyle,a=function(e){t.tableData.data.splice(e,1),t.tableData.table.tr=Number(t.tableData.table.tr)-1,t.updateHistoryRowIndex()},n=function(e,a,n){var i=e.style,o=e.columns;i.rowspan=i.rowspan-1;var l=t.tableData.data[a+1].rows[n];l.columns=o,l.style=i},i=this.table.rowIndex,o=this.mergedIndexes("rowIndexes").sort(),l=this.selectedRowSpans();this.allEqual(l)?a(i):e&&e.rowspan>1?(o.forEach((function(e){t.tableData.headers.forEach((function(a){var o=t.tableData.data[e]&&t.tableData.data[e].rows[a];e===i?t.merge.history[o.style.tdId]&&delete t.merge.history[o.style.tdId]:o.style.rowspan>1&&(n(o,e,a),t.updateHistoryByRow(o.style.tdId,e,"pop"))}))})),this.$nextTick((function(){var t=o.length-e.rowspan;o.splice(0,t),o.reverse().forEach((function(t){a(t)}))}))):(o.forEach((function(e){t.tableData.headers.forEach((function(a){var l=t.tableData.data[e]&&t.tableData.data[e].rows[a];e===i&&l.style.rowspan>1?(n(l,e,a),t.updateHistoryByRow(l.style.tdId,e,"pop")):l&&l.style.rowspan>1&&e!==Math.max.apply(Math,Mt(o))&&(l.style.rowspan=l.style.rowspan-1,t.updateHistoryByRow(l.style.tdId,e,"pop"))}))})),this.$nextTick((function(){a(i)}))),this.clearMerge()},removeColumn:function(){var t=this,e=this.selectedColumnStyle,a=function(e){var a=t.tableData.headers.indexOf(t.headerName(e));a>-1&&(t.tableData.data.forEach((function(a){delete a.rows[t.headerName(e)]})),t.tableData.headers.splice(a,1),t.tableData.table.tc=Number(t.tableData.table.tc)-1),t.updateHistoryColumnIndex()},n=function(e,a,n){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=a.style,r=a.columns;if(a.style.colspan>1){if(s.colspan=s.colspan-1,i===l?l:o[0]){var c=e.rows[t.headerName(n+1)];c.columns=r,c.style=s}t.updateHistoryByColumn(n+1,a.style.tdId,"pop")}},i=this.table.columnIndex,o=this.mergedIndexes("columnIndexes").sort(),l=this.selectedColSpans();this.allEqual(l)?a(i):e&&e.colspan>1?(o.forEach((function(e){t.tableData.data.forEach((function(a){var o=a.rows[t.headerName(e)];e===i?t.merge.history[o.style.tdId]&&delete t.merge.history[o.style.tdId]:n(a,o,e)}))})),this.$nextTick((function(){var t=o.length-e.colspan;o.splice(0,t),o.reverse().forEach((function(t){a(t)}))}))):(o.forEach((function(e){t.tableData.data.forEach((function(a){var l=a.rows[t.headerName(e)];e===i&&l.style.colspan>1?n(a,l,e,e):l&&l.style.colspan>1&&e!==Math.max.apply(Math,Mt(o))&&(l.style.colspan=l.style.colspan-1,t.updateHistoryByColumn(e+1,l.style.tdId,"pop"))}))})),this.$nextTick((function(){a(i)}))),this.clearMerge()},duplicateRow:function(){var t=this,e=this.selectedColumnStyle,a=this.selectedRowSpans(),n=this.mergedIndexes("rowIndexes").sort();n=n.length>0?n:[this.table.rowIndex];var i=this.table.rowIndex,o=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.tableData.data.splice(e+1,0,t.copyRow(a,e)),t.tableData.table.tr=Number(t.tableData.table.tr)+1,t.updateHistoryRowIndex()};if(this.allEqual(a))o(i);else if(e&&e.rowspan>1||e.colspan>1)!function(){for(var e=0,l=function(l){var s=t.tableData.data[l];o(Math.max.apply(Math,Mt(n))+e,s),e++,t.tableData.headers.forEach((function(o,r){var c=s&&s.rows[o],u=t.tableData.data[Math.max.apply(Math,Mt(n))+e],d=u&&u.rows[o];if(c&&c.style.rowspan>1||c.style.colspan>1){var p=t.merge.history[c.style.tdId],m=t.deepClone(p);(d&&d.style.rowspan>1||d.style.colspan>1)&&(t.merge.history[d.style.tdId]=m,t.updateHistoryRowIndex())}if(c.style.rowspan>1&&Math.min.apply(Math,Mt(n))!==l&&i===Math.min.apply(Math,Mt(n))){var _=t.merge.history[c.style.tdId],h=[],f=[];_.forEach((function(t,e){f.push(t.columnIndex)}));var v=Mt(new Set(f)),b=Mt(new Set(f)),g=v.concat(b);_.forEach((function(t,e){Math.min.apply(Math,Mt(n))!==t.rowIndex&&t.rowIndex<=Math.max.apply(Math,Mt(n))&&h.push({rowIndex:t.rowIndex,columnIndex:g[e]})})),t.merge.history[c.style.tdId]=h,c.style.rowspan=c.style.rowspan-1,c.columns=[t.defaultItem()]}else l!==i||0!==d.style.rowspan||0!==a[r-1]&&0!==a[r+1]||(d.style.colspan=1,d.style.rowspan=1,d.columns=[t.defaultItem()])}))},s=i;s<=Math.max.apply(Math,Mt(n));s++)l(s)}();else{o(i);for(var l=Math.min.apply(Math,Mt(n));l<=i;l++){var s=this.tableData.data[l];Object.entries(s.rows).forEach((function(e){var a=e[1];a.style.rowspan>1&&(a.style.rowspan=a.style.rowspan+1,t.updateHistoryByRow(a.style.tdId,i,"push"))}))}this.greaterThanOneNumber(a,1)&&(a=this.selectedRowSpans(this.tableData.data[i]));var r=this.tableData.data[i+1];a.forEach((function(e,a){(0===e||e>1)&&(r.rows[t.headerName(a)].style.rowspan=0)}))}this.clearMerge()},duplicateColumn:function(){var t=this,e=this.selectedColumnStyle,a=this.table.columnIndex,n=this.mergedIndexes("columnIndexes").sort(),i=this.selectedColSpans(),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.tableData.data.forEach((function(a,o){var s=[],r=a.rows[t.headerName(e)];r.columns.forEach((function(e){var a={id:t.id(),data:t.deepClone(e.data)};s.push(a)}));var c={style:t.tdStyle(r.style),columns:s};"else"===l?e===Math.min.apply(Math,Mt(n))&&(r.style.colspan>1||0===r.style.colspan)?r.style.colspan=0:e!==Math.min.apply(Math,Mt(n))&&r.style.colspan>1&&(r.style.colspan=0,r.style.rowspan=0):"elseif"===l&&(Math.min.apply(Math,Mt(n))!==e&&r.style.colspan>1?(r.style.colspan=r.style.colspan-1,r.columns=[t.defaultItem()]):0!==c.style.colspan||0!==i[o]||0!==i[o-1]&&0!==i[o+1]||(c.style.colspan=1,c.style.rowspan=1,c.columns=[t.defaultItem()])),t.$set(a.rows,t.columnName,c);var u=t.merge.history[r.style.tdId];if(u){var d=t.deepClone(u);c.style.colspan>1&&(t.merge.history[c.style.tdId]=d)}}));var s="else"===l?a:n.length>0?Math.max.apply(Math,Mt(n))+o:a;t.tableData.headers.splice(s,0,t.columnName),t.tableData.table.tc=Number(t.tableData.table.tc)+1,t.updateHistoryColumnIndex()};if(this.allEqual(i))o(a);else if(e&&e.colspan>1){var l=n.length-e.colspan;n.splice(0,l),n.forEach((function(t,e){o(t,++e,"elseif")}))}else n.forEach((function(e){t.tableData.data.forEach((function(a){var n=a.rows[t.headerName(e)];n.style.colspan>1&&(n.style.colspan=n.style.colspan+1,t.updateHistoryByColumn(e,n.style.tdId,"push"))}))})),o(a,0,"else");this.clearMerge()},insertColumnBefore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.columnIndex,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n=function(e){t.tableData.data.forEach((function(e,a){t.$set(e.rows,t.columnName,t.defaultTd())})),t.tableData.headers.splice(e,0,t.columnName),t.tableData.table.tc=Number(t.tableData.table.tc)+1,t.updateHistoryColumnIndex()},i=this.deepClone(e),o=this.selectedColumnStyle,l=o&&o.colspan,s=this.mergedIndexes("columnIndexes").sort(),r=this.selectedColSpans();if("before"!==a||!this.allEqual(r)&&i!==Math.min.apply(Math,Mt(s)))if("after"!==a||Math.max.apply(Math,Mt(s))!==e-1&&!this.allEqual(r)){n(e);for(var c=function(e){t.tableData.data.forEach((function(a,n){var o=a.rows[t.headerName(e)];t.greaterThanOneNumber(r,1)&&(r=t.selectedColSpans(i-1)),o.style.colspan>1?(o.style.colspan=o.style.colspan+1,t.updateHistoryByColumn(i,o.style.tdId,"push")):(0===r[n]||r[n]>1)&&(o.style.colspan=0,o.columns=[])}))},u=Math.min.apply(Math,Mt(s));u<=i;u++)c(u)}else l>1&&(e=Math.max.apply(Math,Mt(s))+1),n(e);else n(e);this.clearMerge()},insertColumnAfter:function(){this.insertColumnBefore(this.table.columnIndex+1,"after")},mergedIndexes:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rowIndexes",a=Object.entries(this.merge.history);a.map((function(a){a[1].map((function(n){("rowIndexes"!==e||n.rowIndex!==t.table.rowIndex||t.tdIds.includes(a[0]))&&("columnIndexes"!==e||n.columnIndex!==t.table.columnIndex||t.tdIds.includes(a[0]))||t.tdIds.push(a[0])}))}));var n=[];return this.tdIds.forEach((function(a){var i=t.merge.history[a];i&&i.map((function(t){n.push("rowIndexes"===e?t.rowIndex:t.columnIndex)}))})),Mt(new Set(n))},selectedColSpans:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.columnIndex,a=[];return this.tableData.data.forEach((function(n,i){var o=n.rows[t.headerName(e)];a.push(o.style.colspan)})),a},selectedRowSpans:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.isEmpty(t)?this.table.row:t,a=[];return e&&Object.values(e.rows).forEach((function(t){a.push(t.style.rowspan)})),a},insertRowBefore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.rowIndex,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n=this.selectedColumnStyle,i=n&&n.rowspan,o=function(e){t.tableData.data.splice(e,0,t.row()),t.tableData.table.tr=Number(t.tableData.table.tr)+1,t.updateHistoryRowIndex()},l=this.deepClone(e),s=this.mergedIndexes("rowIndexes"),r=this.selectedRowSpans();if("before"!==a||!this.allEqual(r)&&l!==Math.min.apply(Math,Mt(s)))if("after"!==a||Math.max.apply(Math,Mt(s))!==e-1&&!this.allEqual(r)){o(e);for(var c=Math.min.apply(Math,Mt(s));c<l;c++){var u=this.tableData.data[c];Object.entries(u.rows).forEach((function(e){var a=e[1];a.style.rowspan>1&&(a.style.rowspan=a.style.rowspan+1,t.updateHistoryByRow(a.style.tdId,l,"push"))}))}this.greaterThanOneNumber(r,1)&&(r=this.selectedRowSpans(this.tableData.data[e-1]));var d=this.tableData.data[e];r.forEach((function(e,a){(0===e||e>1)&&(d.rows[t.headerName(a)].style.rowspan=0)}))}else i>1&&(e=Math.max.apply(Math,Mt(s))+1),o(e);else o(e);this.clearMerge()},updateHistoryColumnIndex:function(){var t=this;this.tableData.data.forEach((function(e,a){t.tableData.headers.forEach((function(a,n){var i=e.rows[a],o=t.merge.history[i.style.tdId];o&&o.forEach((function(t,e){t.columnIndex=n+Math.floor(e/2)}))}))}))},updateHistoryRowIndex:function(){var t=this;this.tableData.data.forEach((function(e,a){Object.values(e.rows).forEach((function(e){var n=t.merge.history[e.style.tdId];if(n){var i=n.map((function(t){return t.columnIndex}));t.allEqual(i)?n.forEach((function(t,e){t.rowIndex=a+e})):n.forEach((function(t,e){t.rowIndex=a+Math.floor(e/2)}))}}))}))},insertRowAfter:function(){this.insertRowBefore(this.table.rowIndex+1,"after")},dragColumn:function(t){t.moved&&(this.updateHistoryColumnIndex(),this.clearMerge())},dragRow:function(t){t.moved&&(this.updateHistoryRowIndex(),this.clearMerge())},clearMerge:function(){this.tdIds=[],this.merge.items=[],this.merge.rowColumn=[],this.split.visible=!1,this.merge.visible=!1},selectItem:function(t,e,a,n,i){var o=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.setTdIndex(),this.table.rowIndex=t,this.table.columnIndex=a,this.table.row=i,this.table.column=n;var s=jQuery("#td_id_"+n.style.tdId).attr("cellIndex");if("cells"===this.activeTab){if(l)this.split.visible=!1;else if(this.clearMerge(),n.style.colspan>1||n.style.rowspan>1){var r=Object.keys(this.merge.history),c=r.map((function(t){return parseInt(t)}));this.split.visible=c.includes(parseInt(n.style.tdId))}else this.split.visible=!1;if(this.tdIds.includes(n.style.tdId)){n.columns.forEach((function(t){var e=o.merge.items.indexOf(t);e>=0&&o.merge.items.splice(e,1)}));var u=1,d=n.style.colspan,p=n.style.rowspan;d>1&&p>1?u=d*p:d>1?u=d:p>1&&(u=p);for(var m=0;m<u;m++){var _=this.merge.rowColumn.findIndex((function(t){return t.cellIndex===s}));_>=0&&this.merge.rowColumn.splice(_,1)}var h=this.tdIds.indexOf(n.style.tdId);h>=0&&this.tdIds.splice(h,1)}else this.tdIds.push(n.style.tdId),n.columns.forEach((function(t){o.merge.items.push(t)})),this.keyExist(this.merge.history,n.style.tdId)?this.merge.history[n.style.tdId].forEach((function(t){o.merge.rowColumn.push({rowIndex:t.rowIndex,columnIndex:t.columnIndex,cellIndex:s,tdId:n.style.tdId})})):this.merge.rowColumn.push({rowIndex:t,columnIndex:a,cellIndex:s,tdId:n.style.tdId});var f=this.merge.rowColumn.map((function(t){return t.rowIndex})),v=this.merge.rowColumn.map((function(t){return t.columnIndex}));this.merge.visible=this.groupByData(f,v)}else if(l)if(this.tdIds.includes(n.style.tdId)){var b=this.tdIds.indexOf(n.style.tdId);b>=0&&this.tdIds.splice(b,1)}else this.tdIds.push(n.style.tdId);else this.tdIds=[],this.tdIds.splice(0,1,n.style.tdId);this.manageCell(!0,this.activeTab)},groupByData:function(t,e){if(t.length>1){var a=t.reduce((function(t,e){return t[e]=t[e]?t[e]+1:1,t}),{}),n=Object.values(a).every((function(t,e,a){return t===a[0]})),i=e.reduce((function(t,e){return t[e]=t[e]?t[e]+1:1,t}),{}),o=Object.values(i).every((function(t,e,a){return t===a[0]}));if(n&&o){var l=Mt(new Set(t)).sort(),s=Mt(new Set(e)).sort(),r=this.findElement(l),c=this.findElement(s);if(r&&c){if(2===t.length&&2===e.length){var u=this.merge.rowColumn.map((function(t){return Number(t.rowIndex)})),d=this.merge.rowColumn.map((function(t){return Number(t.columnIndex)}));return u[0]===u[1]||d[0]===d[1]}return!0}return!1}return!1}return!1},findElement:function(t){for(var e=1;e<t.length;e++)if(t[e]-t[e-1]>1)return!1;return!0},mergeCell:function(){var t=this,e=Math.min.apply(Math,Mt(this.merge.rowColumn.map((function(t){return t.cellIndex})))),a=this.merge.rowColumn.find((function(t){return t.cellIndex==e})),n=this.merge.rowColumn.map((function(t){return t.rowIndex})).filter((function(t,e,a){return a.indexOf(t)===e})),i=this.merge.rowColumn.map((function(t){return t.columnIndex})).filter((function(t,e,a){return a.indexOf(t)===e})),o=[];this.merge.rowColumn.forEach((function(e){var l=e.columnIndex,s=e.rowIndex,r=t.headerName(l),c=t.tableData.data[s].rows[r];o.push({rowIndex:s,columnIndex:l}),a.tdId===c.style.tdId?(c.columns=t.merge.items,c.style.rowspan=n.length,c.style.colspan=i.length,t.merge.history[a.tdId]=o):(c.style.rowspan=0,c.style.colspan=0)})),this.clearMerge(),o=[],this.tableData.table.merge.history=this.merge.history},splitCell:function(){var t=this,e=this.table.column;this.merge.history[e.style.tdId].forEach((function(e){var a=t.headerName(e.columnIndex),n=t.tableData.data[e.rowIndex].rows[a];0===n.style.rowspan&&0===n.style.colspan&&(n.columns=[t.defaultItem()]),n.style.rowspan=1,n.style.colspan=1})),delete this.merge.history[e.style.tdId],this.clearMerge()},tdActiveRowSpan:function(t){return this.selectedTrId===t?this.selectedRowSpan:1},tdActiveInactiveClass:function(t){return this.selectedTrId===t?"td-active":"td-inactive"},highlightClass:function(t,e){return!!t.rows[e].style.highlighted&&t.rows[e].style.highlighted.active?"td-highlight":""},highlightedColumnStyle:function(t,e){if(!!t.rows[e].style.highlighted&&t.rows[e].style.highlighted.active){var a=t.rows[e].style.highlighted.height,n=t.rows[e].style.highlighted.shadowColor,i=t.rows[e].style.highlighted.offset_x,o=t.rows[e].style.highlighted.offset_y,l=t.rows[e].style.highlighted.blur_radius;return{"--highlight-height-top":"-".concat(a,"px"),"--highlight-height-bottom":"".concat(a,"px"),"--shadow-color":"".concat(n),"--offset-x":"".concat(i,"px"),"--offset-y":"".concat(o,"px"),"--blur-radius":"".concat(l,"px")}}return{}},tdClass:function(t,e,a){return this.table.columnIndex===a&&1===this.tdIds.length?"single-row-column":"td_class_"+this.tdId(t,e)},thActiveInactiveClass:function(t){return this.headerName(this.table.columnIndex)===t?"th-active":"th-inactive"},trId:function(t){return this.tdIds.includes(t)?"selected-item":"tr_id_"+t},trInlineStyle:function(t,e){var a=t.style,n=this.setting.background.options,i="";return i=0===e&&""===a.backgroundColor?n.header_background.value:e%2==0&&0!==e&&""===a.backgroundColor?n.even_row_background.value:e%1==0&&0!==e&&""===a.backgroundColor?n.odd_row_background.value:a.backgroundColor,{height:a.rowHeight>"50"?a.rowHeight+"px":"",background:i}},tdInlineStyle:function(t,e){return{padding:this.setting.general.options.cell_padding.value+"px","max-width":this.columnWidth(t,e)+"px","min-width":this.columnWidth(t,e)+"px","background-color":t.rows[e]?t.rows[e].style.backgroundColor:"",display:t.rows[e].style.colspan>0&&t.rows[e].style.rowspan>0?"":"none"}},tdInlineStyleResponsive:function(t,e,a,n,i,o,l){var s=Object.keys(this.headerInfo).length,r=this.responsive.responsive_settings.options.devices,c=this.setting.general.options.cell_padding.value,u=(n?1:0)+i,d=this.setting.background.options,p="";"mobile"===o?(c=r.mobile.mobile_cell_padding.value,p=.8*this.responsiveInitial.mobileActivePixel):"tablet"===o?(c=r.tablet.tablet_cell_padding.value,p=.8*this.responsiveInitial.tabletActivePixel):(c=this.setting.general.options.cell_padding.value,p=300);var m="",_="";return _=1==this.tableData.table.tr?n?p+"px":p/i+"px":n&&"column"==l?p/s+"px":p/u+"px",m=""!==t.backgroundColor?t.backgroundColor:0===a?""===e.backgroundColor?d.header_background.value:e.backgroundColor:a%2==0?""===e.backgroundColor?d.even_row_background.value:e.backgroundColor:a%1==0?""===e.backgroundColor?d.odd_row_background.value:e.backgroundColor:"",{padding:c+"px",height:""!==e.rowHeight?e.rowHeight+"px":"","max-width":_,"min-width":_,"background-color":m,"box-sizing":"border-box",overflow:"hidden",display:t.colspan>0&&t.rowspan>0||this.mobileDeviceShowHeader?"":"none"}},headerName:function(t){return this.tableData.headers[t]},updateHistoryByColumn:function(t,e,a){var n=this.merge.history[e];if(n&&a)if("push"===a){var i=Math.max.apply(Math,Mt(n.map((function(t){return t.columnIndex}))));Mt(new Set(n.map((function(t){return t.rowIndex})))).forEach((function(t){var e={rowIndex:t,columnIndex:i+1};n.push(e)}))}else"pop"===a&&n.forEach((function(e,a){if(e.columnIndex===t)for(var i=0;i<2;i++)n.splice(a,1)}))},updateHistoryByRow:function(t,e,a){var n=this.merge.history[t];if(n&&a)if("push"===a){var i=Math.max.apply(Math,Mt(n.map((function(t){return t.rowIndex}))));n.forEach((function(t,a){if(t.rowIndex===e){var o={rowIndex:i+1,columnIndex:t.columnIndex};n.push(o)}}))}else"pop"===a&&n.forEach((function(t,a){if(t.rowIndex===e)for(var i=0;i<2;i++)n.splice(a,1)}))},mergedTdIndexes:function(){var t=[],e=this.selectedColumnStyle,a=e&&e.tdId,n=this.merge.history[a];if(n){for(var i=Mt(new Set(n.map((function(t){return t.rowIndex})))),o=0;o<i.length;o++)t.push(o+this.table.rowIndex);t.shift()}return t},tableAlign:function(t){var e=this.responsive.responsive_settings.options.devices,a=this.setting.general.options.table_alignment.value;return"mobile"===t?a=e.mobile.mobile_table_alignment.value:"tablet"===t&&(a=e.tablet.tablet_table_alignment.value),this.responsiveAlign(a)},responsiveAlign:function(t){var e={};return"center"===t?e={"margin-left":"auto","margin-right":"auto"}:"left"===t?e={"margin-right":"auto"}:"right"===t&&(e={"margin-left":"auto"}),e}},computed:{tableMarginTop:function(){return{"margin-top":this.setting.global_styling.options.margin_top.value+"px"}},tableMarginBottom:function(){return{"margin-bottom":this.setting.global_styling.options.margin_bottom.value+"px"}},tableInlineStyle:function(){var t=this.setting.general.options,e=this.setting.border.options,a=t.columns_rows_separate;return{"table-layout":"fixed","border-collapse":this.getBoolean(a.value)?"separate":"collapse",border:e.table_border.value+"px solid "+e.border_color.value,"font-family":this.setting.global_styling.options.font_family.value,"border-spacing":"".concat(this.getBoolean(a.value)?a.childs.space_between_column.value+"px "+a.childs.space_between_row.value+"px":"0px")}},tableWrapperStyle:function(){var t=this.setting.general.options.container_max_width_switch;return{"max-width":this.getBoolean(t.value)?t.childs.container_max_width.value+"px":"","max-height":this.setting.general.options.container_max_height.value+"px"}},selectedTrId:function(){return this.table.row&&this.table.row.style&&this.table.row.style.trId},selectedRowSpan:function(){var t=this.selectedColumnStyle;return t&&t.rowspan?t.rowspan:1},columnName:function(){var t=this.tableData.headers,e=[];return t.forEach((function(t){e.push(t.slice(7,t.length))})),"column_"+(Math.max.apply(Math,e)+1)},selectedColumnStyle:function(){return this.table.column&&this.table.column.style}}},Bt={data:function(){return{headerInfo:null,formattedResponsiveData:null,responsiveInitial:{showHeader:!1,itemsPerRow:1,tableData:{},tableDataLength:null,cell_direction:"row",mobileActivePixel:400,tabletActivePixel:750}}},methods:{calculateColSpan:function(t){return this.responsiveInitial.showHeader&&"row"===this.responsiveInitial.cell_direction?t.rowspan:this.responsiveInitial.showHeader&&"column"===this.responsiveInitial.cell_direction?t.colspan:1},calculateRowSpan:function(t){return this.responsiveInitial.showHeader&&"row"===this.responsiveInitial.cell_direction?t.colspan:this.responsiveInitial.showHeader&&"column"===this.responsiveInitial.cell_direction?t.rowspan:1},makeResponsiveDataFormat:function(){for(var t=this.deepClone(this.tableData.data),e=this.deepClone(this.tableData.headers),a={},n=0,i=function(i){e.forEach((function(o,l){var s=e.length-1===l?l:null,r=o.slice(7);a["data_"+n]=t[i].rows[o],a["data_"+n].rowIndex=i,a["data_"+n].columnIndex=r,a["data_"+n].rowStyle=t[i].style,a["data_"+n].lastColumnIndex=s,n++}))},o=0;o<t.length;o++)i(o);for(var l={},s=0;s<e.length;s++)l["data_"+s]=a["data_"+s];this.headerInfo=l,this.formattedResponsiveData=a},getResponsiveTableData:function(t,e,a,n){if("mobile"!==this.selectedDevice&&"tablet"!==this.selectedDevice)return{};n&&this.makeResponsiveDataFormat();var i=Object.keys(this.headerInfo).length,o=Object.keys(this.formattedResponsiveData).length,l={},s=0;if(e&&"row"===t)return this.headerAndCellDirectionRow(a,i,o);if(e&&"column"===t)return this.headerAndCellDirectionColumn(a,i);var r={},c=0,u=this.tableData.table.tr;if("row"===t)for(var d=0;d<o;d++)0!==this.formattedResponsiveData["data_"+d].style.rowspan&&0!==this.formattedResponsiveData["data_"+d].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+d],c++);else for(var p=0;p<i;p++)for(var m=0;m<u;m++){var _=p+m*i;0!==this.formattedResponsiveData["data_"+_].style.rowspan&&0!==this.formattedResponsiveData["data_"+_].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+_],c++)}for(var h=Object.keys(r).length,f=0;f<h;){for(var v={},b=0;b<a;b++)r["data_"+f]&&(v["data_"+b]=r["data_"+f],f++);l[s]=v,s++}return l},headerAndCellDirectionRow:function(t,e,a){var n={},i=0;if(1===Number(this.tableData.table.tr))return this.responsiveSingleRow(e);for(var o=Math.ceil((a-e)/(t*e)),l=0;l<o;l++)for(var s=0;s<e;s++){for(var r={},c=0;c<=t;c++)if(0==c)r["data_"+c]=this.formattedResponsiveData["data_"+s];else{var u=l*t*e+c*e+s;this.formattedResponsiveData["data_"+u]&&0!==this.formattedResponsiveData["data_"+u].style.rowspan&&0!==this.formattedResponsiveData["data_"+u].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+u])}n[i]=r,i++}return this.responsiveInitial.tableDataLength=Object.keys(n).length,n},headerAndCellDirectionColumn:function(t,e){var a={},n=0;if(1===Number(this.tableData.table.tr))return this.responsiveSingleRow(e);for(var i=e,o=Math.ceil((this.tableData.table.tr-1)/t),l=0;l<o;l++)for(var s=0;s<=t&&this.formattedResponsiveData["data_"+i];s++){for(var r={},c=0;c<e;c++)0===s?r["data_"+c]=this.formattedResponsiveData["data_"+c]:(this.formattedResponsiveData["data_"+i].style.rowspan>0&&this.formattedResponsiveData["data_"+i].style.colspan>0&&(r["data_"+c]=this.formattedResponsiveData["data_"+i]),i++);a[n]=r,n++}return this.responsiveInitial.tableDataLength=Object.keys(a).length,a},responsiveSingleRow:function(t){for(var e={},a=0,n=0;n<t;n++){var i={};this.headerInfo["data_"+n]&&(i["data_"+n]=this.headerInfo["data_"+n]),e[a]=i,a++}return e},bottomBorderResponsive:function(t,e,a,n){var i=Number(t)+1,o=this.deepClone(this.tableData.headers).length;return"column"===e&&i%(a+1)==0&&this.tableData.table.tr>1&&i!=this.responsiveInitial.tableDataLength||"row"===e&&i%o==0&&i!=this.responsiveInitial.tableDataLength?{borderBottom:("tablet"===this.selectedDevice?n.tablet.cell_border.value:n.mobile.cell_border.value)+"px solid black"}:void 0}},computed:{responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices},responsiveIsEnabled:function(){var t=this.responsive.general.options.enable_responsive_table.value;return this.getBoolean(t)},mobileDeviceShowHeader:function(){var t=this.responsiveDevice.mobile.top_row_as_header.value;return this.getBoolean(t)},tabletDeviceShowHeader:function(){var t=this.responsiveDevice.tablet.top_row_as_header.value;return this.getBoolean(t)},mobileDeviceItemsPerRow:function(){return this.responsiveDevice.mobile.items_per_row.value},tabletDeviceItemsPerRow:function(){return this.responsiveDevice.tablet.items_per_row.value},mobileDeviceBreakpoint:function(){var t=this.responsiveDevice.mobile.disable_breakpoint.value;return this.getBoolean(t)},tabletDeviceBreakpoint:function(){var t=this.responsiveDevice.tablet.disable_breakpoint.value;return this.getBoolean(t)},mobileDeviceCellDirection:function(){return this.responsiveDevice.mobile.cell_direction.value},tabletDeviceCellDirection:function(){return this.responsiveDevice.tablet.cell_direction.value},pixelBarValue:{get:function(){return"mobile"===this.selectedDevice?this.responsiveInitial.mobileActivePixel:this.responsiveInitial.tabletActivePixel},set:function(t){"mobile"===this.selectedDevice?this.responsiveInitial.mobileActivePixel=t:this.responsiveInitial.tabletActivePixel=t}},showPixelSlider:function(){return"mobile"!==this.selectedDevice||this.mobileDeviceBreakpoint?"tablet"!==this.selectedDevice||this.tabletDeviceBreakpoint?{preview:!1}:{preview:!0,min:700,max:1023}:{preview:!0,min:300,max:699}}}},Lt={methods:{id:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9;this.length=t,this.timestamp=+new Date;for(var e=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},a=this.timestamp.toString(),n=a.split("").reverse(),i="",o=0;o<this.length;++o){var l=e(0,n.length-1);i+=n[l]}return i},deepClone:function(t){return JSON.parse(JSON.stringify(t))},getBoolean:function(t){return!0===t||"true"===t},isEmpty:function(t){return t&&0===Object.keys(t).length},allEqual:function(t){return t.every((function(e){return e===t[0]}))},greaterThanOneNumber:function(t,e){return t.some((function(t){return t>e}))},keyExist:function(t,e){for(var a in t)if(e==a)return!0;return!1},ucWords:function(t){var e,a=t.split("_");for(e=0;e<a.length;e++)a[e]=a[e].charAt(0).toUpperCase()+a[e].slice(1);return a.join(" ")},upgradeMessage:function(){var t=(0,this.$createElement)("div",{domProps:{innerHTML:'You are using free version of ninja-tables, <a href="https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&amp;utm_medium=wp&amp;utm_campaign=wp_plugin&amp;utm_term=upgrade" target="_blank">Upgrade To Pro</a>'}});return this.$message({showClose:!0,message:this.$t(t),type:"warning"})}}};const Rt={name:"Layout",mixins:[Ft,Bt,Lt],props:["setting","tableData","responsive","selectedDevice","initialData"],mounted:function(){var t=this;this.$nextTick((function(){jQuery("body").click((function(e){var a=document.querySelector(".tbody");jQuery("#leftside").click((function(e){t.isSelectedTdId=!0})),a.onclick=function(){t.isSelectedTdId=!0},!0===t.isSelectedTdId?t.isSelectedTdId=!1:(null!==t.selectedTdId&&t.$emit("editItem",""),t.selectedTdId=null)}))}))},data:function(){return{isSelectedTdId:!0,selectedTdId:null,itemId:-1,listItemIndex:null,manage:!1,activeTab:"background",table:{multipleTd:!1,rowIndex:null,columnIndex:null,row:{},column:{},columns:[],rows:[]},maxWidth:""}},components:{draggable:kt(),Elements:It,TableData:Ot},methods:{iconSpacing:function(t){return"ribbon"===t.data.type?{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+"px","margin-left":("corner"===t.data.style.ribbonType?Number(t.data.style.cornerXAxis-this.setting.general.options.cell_padding.value+10):t.data.style.xAxis-Number(this.setting.general.options.cell_padding.value-10))+"px"}:{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+Number(t.data.style.margin.top)+"px","margin-left":"".concat(t.data.style.margin.left,"px"),"margin-right":"".concat(t.data.style.margin.right,"px"),width:"auto"}},stickyColumn:function(){return{position:"sticky",left:0,zIndex:1}},onMove:function(t){t&&t.to.id&&window.ninjaTableBus.$emit("singleTdId",t.to.id)},thInlineStyle:function(t){return{padding:"0px ".concat(this.setting.general.options.cell_padding.value,"px"),width:"".concat(this.tableHeadWidth(t),"px"),display:"".concat(this.displayHeader(t))}},selectedTdBackground:function(){return{border:"1px solid #3f9eff"}},displayHeader:function(t){var e=this;if(this.merge&&this.merge.rowColumn.length>1&&this.split.visible){var a=Object.values(this.merge.rowColumn).map((function(t){return e.headerName(t.columnIndex)}));return t!==this.headerName(this.table.columnIndex)&&a.includes(t)?"none":""}return""},headerColSpan:function(t){var e=this.selectedColumnStyle;return e&&e.colspan&&this.headerName(this.table.columnIndex)===t?e&&e.colspan:1},columnWidth:function(t,e){return t.rows&&t.rows[e]&&t.rows[e].style.columnWidth?t.rows[e].style.columnWidth:this.setting.general.options.cell_min_auto_width.value},tdId:function(t,e){return t.rows[e]?t.rows[e].style.tdId:null},listItem:function(t){this.listItemIndex=t.index},dragRowColumn:function(t,e,a,n,i,o){this.table.columnIndex=n,this.table.rowIndex=e,this.manageCell(!0,this.activeTab)},setTdIndex:function(){for(var t=document.getElementById("ntb_table").getElementsByTagName("tbody"),e=t[0].rows,a=(e.length,e[0].getElementsByTagName("td").length-1),n=0;n<t.length;n++)for(var i=t[n].getElementsByTagName("td"),o=0;o<i.length;o++)jQuery(i[o]).attr("cellIndex",o+n*a+1)},manageCell:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"background";if(this.isSelectedTdId=!0,this.selectedTdId=null,"cells"===e){var a=this.tableData.table.merge.history;this.isEmpty(a)||(this.merge.history=a)}this.manage=t,this.activeTab=e;var n={data:{tdIds:this.tdIds,setting:this.setting,tableData:this.tableData.data,table:this.table,headers:this.tableData.headers},active:t,activeTab:e};window.ninjaTableBus.$emit("manage-cell",n)},childData:function(t){"clickEnter"===t&&(this.selectedTdId=null),this.itemId=-1;["list","stylist_list"].includes(t&&t.item&&t.item.data.type)&&this.manageListItem(t.item)},manageListItem:function(t){t.data.value.splice(this.listItemIndex+1,0,"list item x")},styleChange:function(t,e,a,n,i){if(this.selectedTdId=t.id,this.manage)this.dragRowColumn(t,e,a,n,i);else if(t.id==this.itemId)this.itemId=-1;else{var o={edit:!0,item:t};this.$emit("editItem",o),window.ninjaTableBus.$emit("singleTdId","td_id_"+n.style.tdId),this.itemId=t.id}},copyItem:function(t,e,a){var n={id:this.id(),data:this.deepClone(a.data)};this.tableData.data[t].rows[e].columns.push(n)},deleteItem:function(t,e,a){this.$emit("editItem",""),this.tableData.data[t].rows[e].columns.splice(a,1)},innerBorder:function(t){var e=this.setting.border.options.inner_border,a=e.childs,n="";return 0!==t&&e.value&&(n="".concat(a.inner_border_size.value,"px solid ").concat(a.inner_border_color.value)),0===t&&e.value&&a.header_inner_border.value&&(n="".concat(a.inner_border_size.value,"px solid ").concat(a.inner_border_color.value)),{border:n}},tableHeadWidth:function(t){var e=this,a=this.table.columnIndex,n=this.table.row,i=(n&&this.columnWidth(n,t),this.headerColSpan(t)),o=11*i+(i>2?11*(i-2):0),l=this.deepClone(this.tableData.headers).splice(a,i);return i>1?(l.forEach((function(t){o+=n&&e.columnWidth(n,t)})),o):(n&&this.columnWidth(n,t))+1}},created:function(){var t=this;window.ninjaTableBus.$on("manageCell",(function(){t.table.columnIndex=null,t.table.rowIndex=null,t.selectedTdId=null,t.manage=!1,t.activeTab="background",t.clearMerge()}))},computed:{firstRowSticky:function(){var t=this.setting.sticky.options.first_row_sticky.value;return this.getBoolean(t)},firstColumnSticky:function(){var t=this.setting.sticky.options.first_column_sticky.value;return this.getBoolean(t)},tdThActiveMargin:function(){if(this.manage&&this.setting.border.options.table_border.value>0&&1===this.tdIds.length)return{"--td-th-active-margin":"-16px"}},tableWrapperActivePadding:function(){if(this.manage&&this.setting.border.options.table_border.value>0&&1===this.tdIds.length)return{"--table-wrapper-padding":"16px"}},showInnerBorder:function(){return this.setting.border.options.inner_border.value},tableBorder:function(){var t,e=this.setting.border.options,a=this.table.columnIndex,n=e.table_border?e.table_border.value:0,i=e.inner_border.childs?e.inner_border.childs.inner_border_size.value:0,o=this.getBoolean(this.setting.general.options.columns_rows_separate.value),l=this.setting.general.options?this.setting.general.options.columns_rows_separate.childs.space_between_column.value:0,s=this.setting.general.options?this.setting.general.options.columns_rows_separate.childs.space_between_row.value:0,r=0;o&&(r=2*l+(e.inner_border.value?a*i:0)),t=16+n+r-a+(e.inner_border.value?(a+1)*i:0);var c="".concat(-5-(o?s:0),"px");return{"--border-color":e.inner_border.childs.inner_border_color.value?e.inner_border.childs.inner_border_color.value:"#000000","--border-size":"".concat(i,"px"),"--column-arrow":"".concat(t,"px"),"--margin-top":c,"--margin-bottom":"-".concat(o?0===n?3*s:s:0,"px")}}},watch:{selectedDevice:function(t,e){this.responsiveInitial.showHeader="mobile"===t?this.mobileDeviceShowHeader:"tablet"===t&&this.tabletDeviceShowHeader,this.responsiveInitial.itemsPerRow="mobile"===t?this.mobileDeviceItemsPerRow:"tablet"===t?this.tabletDeviceItemsPerRow:1,this.responsiveInitial.cell_direction="mobile"===t?this.mobileDeviceCellDirection:"tablet"===t?this.tabletDeviceCellDirection:"row",this.responsiveInitial.tableData=this.getResponsiveTableData(this.responsiveInitial.cell_direction,this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow,!0)},responsive:{handler:function(t,e){"mobile"===this.selectedDevice?(this.responsiveInitial.showHeader=this.getBoolean(t.mode_options.options.devices.mobile.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.mobile.items_per_row.value,this.responsiveInitial.cell_direction=t.mode_options.options.devices.mobile.cell_direction.value):"tablet"===this.selectedDevice&&(this.responsiveInitial.showHeader=this.getBoolean(t.mode_options.options.devices.tablet.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.tablet.items_per_row.value,this.responsiveInitial.cell_direction=t.mode_options.options.devices.tablet.cell_direction.value),this.responsiveInitial.tableData=this.getResponsiveTableData(this.responsiveInitial.cell_direction,this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow,!1)},deep:!0}}},Ht=Rt;var Wt=a(5865),qt={insert:"head",singleton:!1};s()(Wt.Z,qt);Wt.Z.locals;var Vt=n(Ht,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja-tables-layout"},[""===t.selectedDevice?e("div",{staticClass:"table-customize-button"},["background"===t.activeTab?e("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-s-grid",size:"small"},on:{click:function(e){return t.manageCell(!0,"cells")}}},[t._v(t._s(t.$t("Manage Cells"))+"\n ")]),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-ice-cream-square",size:"small"},on:{click:function(e){return t.manageCell(!0,"background")}}},[t._v(t._s(t.$t("Background"))+"\n ")])],1):e("div",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-folder-checked",size:"small",disabled:t.tdIds.length<2||!1===t.merge.visible},on:{click:function(e){return t.mergeCell()}}},[t._v(t._s(t.$t("Merge"))+"\n ")]),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-scissors",size:"small",disabled:!1===t.split.visible},on:{click:t.splitCell}},[t._v(t._s(t.$t("Split"))+"\n ")])],1)],1):t._e(),t._v(" "),t.setting&&(t.setting.general&&t.setting.border&&t.setting.background)?e("div",{staticClass:"ntb_table_wrapper",style:[t.tableWrapperStyle,t.tableWrapperActivePadding],attrs:{id:"ninja_tables_builder_id"}},[t.responsiveIsEnabled&&t.showPixelSlider.preview?e("div",{staticClass:"pixel-bar-slider"},[e("el-slider",{attrs:{max:t.showPixelSlider.max,min:t.showPixelSlider.min,"show-input":""},model:{value:t.pixelBarValue,callback:function(e){t.pixelBarValue=e},expression:"pixelBarValue"}})],1):t._e(),t._v(" "),e("table",{class:"table ninja_tables_builder_class_"+t.tableData.id,style:[t.tableMarginTop,t.tableMarginBottom,t.tableInlineStyle,t.tableAlign(t.selectedDevice)],attrs:{id:"ntb_table",role:"".concat(t.setting.accessibility.options.table_role.value)}},[t.manage?e("div",{staticClass:"table-header",style:t.tableBorder},[e("draggable",{attrs:{tag:"tr"},on:{change:t.dragColumn},model:{value:t.tableData.headers,callback:function(e){t.$set(t.tableData,"headers",e)},expression:"tableData.headers"}},t._l(t.tableData.headers,(function(a,n){return e("th",{key:a,class:t.thActiveInactiveClass(a),style:[t.tdThActiveMargin,t.thInlineStyle(a)],attrs:{scope:"col",colspan:t.headerColSpan(a)}},[t.headerName(t.table.columnIndex)!==a||1!==t.tdIds.length||t.merge.visible&&!t.split.visible?t._e():[e("el-dropdown",{staticClass:"column-options",attrs:{trigger:"click",placement:"top-start"}},[e("span",{staticClass:"el-dropdown-link"},[e("i",{staticClass:"el-icon-caret-bottom el-icon--right",class:n===t.table.columnIndex?"i-active":""})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnBefore()}}},[t._v(t._s(t.$t("Insert column before"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert column after"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addLeftColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert left column")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addRightColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert right column")))]),t._v(" "),e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.duplicateColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Duplicate column"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.removeColumn.apply(null,arguments)}}},[e("p",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("Remove column")))])])],1)],1)]],2)})),0)],1):t._e(),t._v(" "),""===t.selectedDevice||"desktop"===t.selectedDevice||!t.responsiveIsEnabled||"mobile"===t.selectedDevice&&t.mobileDeviceBreakpoint||"tablet"===t.selectedDevice&&t.tabletDeviceBreakpoint?e("draggable",{staticClass:"tbody",style:t.tdThActiveMargin,attrs:{tag:"tbody"},on:{change:t.dragRow},model:{value:t.tableData.data,callback:function(e){t.$set(t.tableData,"data",e)},expression:"tableData.data"}},t._l(t.tableData.data,(function(a,n){return e("tr",{key:n,staticClass:"desktop-view",class:"".concat(t.table.rowIndex===n&&t.tdIds.length<=0?"single-row-column":"tr_class_"+a.style.trId," ").concat(t.firstRowSticky&0==n?"firstRowSticky":""),style:[t.trInlineStyle(a,n)],attrs:{id:t.trId(a.style.trId)}},[t.manage&&1===t.tdIds.length&&!t.mergedTdIndexes().includes(n)?e("td",{class:t.tdActiveInactiveClass(a.style.trId),attrs:{rowspan:t.tdActiveRowSpan(a.style.trId)}},[e("el-dropdown",{staticClass:"row-options",attrs:{trigger:"click",placement:"top-start"}},[e("span",{staticClass:"el-dropdown-link"},[e("i",{staticClass:"el-icon-caret-right"})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowBefore()}}},[t._v(t._s(t.$t("Insert row before")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert row after")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addTopRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert top row")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addBottomRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert bottom row")))]),t._v(" "),e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.duplicateRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Duplicate row"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.removeRow.apply(null,arguments)}}},[e("p",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("Remove row")))])])],1)],1)],1):t._e(),t._v(" "),t._l(t.tableData.headers,(function(i,o){return e("td",{key:i,class:[t.tdClass(a,i,o),t.highlightClass(a,i)],style:[t.tdInlineStyle(a,i),t.highlightedColumnStyle(a,i),t.showInnerBorder?t.innerBorder(n):"",t.firstColumnSticky&&0===o?t.stickyColumn():""],attrs:{id:"td_id_"+t.tdId(a,i),rowspan:a.rows[i].style.rowspan,colspan:a.rows[i].style.colspan},on:{click:[function(e){if(!e.shiftKey)return null;t.manage&&t.selectItem(n,i,o,a.rows[i],a,!0)},function(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return null;t.manage&&t.selectItem(n,i,o,a.rows[i],a,!1)}]}},[e("draggable",{attrs:{list:a.rows[i].columns,group:"people",id:t.tdIds.includes(t.tdId(a,i))?"selected-item":"td_id_"+t.tdId(a,i),move:t.onMove}},t._l(a.rows[i].columns,(function(l,s){return e("div",{key:s,staticClass:"single-item",class:t.manage?"single-item-edit":""===t.selectedDevice?"ribbon"===l.data.type?"only-ribbon":"other-item":"responsive-mode"},[l.id!=t.itemId?e("table-data",{style:[l.id===t.selectedTdId&&"ribbon"!==l.data.type?t.selectedTdBackground():""],attrs:{manage:t.manage,setting:t.setting,item:l},on:{"list-item":function(e){return t.listItem(e)}},nativeOn:{click:function(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return null;!t.manage&&""===t.selectedDevice&&t.styleChange(l,n,o,a.rows[i],a)}}}):t._e(),t._v(" "),t.manage||""!==t.selectedDevice?t._e():[e("elements",{staticClass:"remove-elements",attrs:{itemId:t.itemId,setting:t.setting,listItem:t.listItemIndex,item:l},on:{"child-data":function(e){return t.childData(e)}}}),t._v(" "),e("div",{staticClass:"icon-style remove-elements",style:t.iconSpacing(l)},[e("i",{staticClass:"el-icon-rank"}),t._v(" "),e("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return t.copyItem(n,i,l)}}}),t._v(" "),e("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteItem(n,i,s)}}})])]],2)})),0)],1)}))],2)})),0):e("tbody",t._l(t.responsiveInitial.tableData,(function(a,n){return e("tr",{key:n,class:"".concat("mobile"===t.selectedDevice?"mobile-view tr_class_mobile_"+n:"tablet-view tr_class_tablet_"+n),style:[t.responsiveInitial.showHeader?t.bottomBorderResponsive(n,t.responsiveInitial.cell_direction,t.responsiveInitial.itemsPerRow,t.responsive.mode_options.options.devices):""],attrs:{id:"".concat("mobile"===t.selectedDevice?"tr_id_mobile_"+n:"tr_id_tablet_"+n)}},t._l(a,(function(n){return n.style.rowspan>0&&n.style.colspan>0?e("td",{style:[t.tdInlineStyleResponsive(n.style,n.rowStyle,n.rowIndex,t.responsiveInitial.showHeader,t.responsiveInitial.itemsPerRow,t.selectedDevice,t.responsiveInitial.cell_direction),t.innerBorder(n.rowIndex)],attrs:{id:"td_id_".concat(n.style.tdId),colspan:t.calculateColSpan(n.style),rowspan:t.calculateRowSpan(n.style)}},t._l(n.columns,(function(n,i){return e("span",{key:i},[a.id!=t.itemId?e("table-data",{staticClass:"responsive-mode",attrs:{setting:t.setting,item:n}}):t._e()],1)})),0):t._e()})),0)})),0)],1)]):t._e()])}),[],!1,null,null,null);const Ut=Vt.exports,Yt={name:"RightSideBar",props:["initialData","tableId","selectedDevice"],mixins:[Lt],components:{draggable:kt(),TableLayout:Ut},data:function(){return{newTable:!1,value:"",file:{},loading:!1,url:""}},computed:{tableRowColumn:function(){return this.initialData.table_data.table.tr*this.initialData.table_data.table.tc},hasPro:function(){return!!window.ninja_table_admin.hasPro}},methods:{upgradeToPro:function(){if(!this.hasPro)return this.upgradeMessage()},importCJ:function(){var t=this;if(this.url&&!this.hasPro)return this.upgradeMessage();this.loading=!0;var e=new FormData;e.append("file",this.file),e.append("url",this.url),e.append("action","ninja_tables_builder_ajax_actions"),e.append("target_action","import-table"),e.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:e,type:"POST",contentType:!1,processData:!1,success:function(e){t.loading=!1,t.$message({showClose:!0,message:t.$t("Imported successfully."),type:"success"}),t.$router.push({name:"table_builder_edit_table",params:{table_id:e.data.id}})},error:function(e){t.failedMessage()}})},handleRemove:function(t,e){this.file={}},handleFileSuccess:function(t,e){this.file=e.raw},beforeFileUpload:function(t){var e="text/csv"===t.type||"application/json"===t.type,a=t.size/1024/1024<1;return e||this.$message.error("File type must be CSV/JSON format!"),a||this.$message.error("File size can not exceed 1MB!"),e&&a},editItem:function(t){this.$emit("editItem",t)},failedMessage:function(){return this.$message({showClose:!0,message:this.$t("Something went wrong, please try again."),type:"warning"})},createTable:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t;if(!this.hasPro&&a.has_pro)return this.upgradeMessage();if(this.initialData.table_data.table_name){this.initialData.table_data.table_type="default"===n?"":n;var i={action:"ninja_tables_builder_ajax_actions",target_action:"create-table",data:this.initialData};this.$post(i).then((function(t){e.$message({showClose:!0,message:e.$t("Table created successfully."),type:"success"}),e.$router.push({name:"table_builder_edit_table",params:{table_id:t.data.id}})})).fail((function(t){e.failedMessage()}))}else this.failedMessage()},getAsset:function(t){return window.ninja_table_admin.img_url+t}}};var Zt=a(9192),Jt={insert:"head",singleton:!1};s()(Zt.Z,Jt);Zt.Z.locals;const Qt=n(Yt,(function(){var t=this,e=t._self._c;return e("div",[t.tableId?t.tableId?e("el-row",[e("table-layout",{attrs:{initialData:t.initialData,tableData:t.initialData.table_data,setting:t.initialData.settings,responsive:t.initialData.responsive,selectedDevice:t.selectedDevice},on:{editItem:t.editItem}})],1):t._e():e("div",{staticStyle:{height:"500px","overflow-y":"scroll",padding:"0px 20px","box-sizing":"border-box"},attrs:{gutter:20}},[[e("h3",[t._v(t._s(t.$t("Create a Drag & Drop Table")))]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n "+t._s(t.$t("Create your drag & drop table columns and rows to get complete control over your data with lots of customizations."))+"\n ")])],t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.initialData.table_data.table_name,expression:"initialData.table_data.table_name"}],staticClass:"form-control",staticStyle:{width:"95%"},attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.initialData.table_data.table_name},on:{input:function(e){e.target.composing||t.$set(t.initialData.table_data,"table_name",e.target.value)}}})]),t._v(" "),t.newTable?t._e():e("el-row",{staticClass:"new-table-wrapper"},[e("el-col",{attrs:{span:12}},[[e("div",{staticClass:"new_table",style:"grid-template-rows:repeat(".concat(t.initialData.table_data.table.tr,",1fr);grid-template-columns:repeat(").concat(t.initialData.table_data.table.tc,",1fr)")},[e("el-input-number",{staticClass:"table-column-input",attrs:{step:1,min:1,max:30},model:{value:t.initialData.table_data.table.tc,callback:function(e){t.$set(t.initialData.table_data.table,"tc",e)},expression:"initialData.table_data.table.tc"}}),t._v(" "),e("el-input-number",{staticClass:"table-row-input",attrs:{step:1,min:1,max:30},model:{value:t.initialData.table_data.table.tr,callback:function(e){t.$set(t.initialData.table_data.table,"tr",e)},expression:"initialData.table_data.table.tr"}}),t._v(" "),t._l(t.tableRowColumn,(function(t){return e("span",{key:t,staticClass:"table-row-column"})}))],2),t._v(" "),e("div",{staticClass:"create-button"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.createTable("default")}}},[t._v("Create\n ")])],1)]],2),t._v(" "),e("el-col",{attrs:{span:12}},[e("h4",[t._v(t._s(t.$t("Import Table from CSV / JSON File")))]),t._v(" "),e("hr"),t._v(" "),t.file.name?t._e():e("div",[e("el-input",{attrs:{disabled:!t.hasPro,placeholder:t.$t("Import CSV/JSON from URL")},nativeOn:{mouseover:function(e){return t.upgradeToPro.apply(null,arguments)}},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),e("hr")],1),t._v(" "),t.url?t._e():e("el-upload",{attrs:{accept:".csv, .json",drag:"",action:"#",limit:1,"before-upload":t.beforeFileUpload,"on-success":t.handleFileSuccess,"on-remove":t.handleRemove}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("div",{staticClass:"el-upload__text"},[t._v(t._s(t.$t("Drop file here or "))),e("em",[t._v(t._s(t.$t("click to upload")))])])]),t._v(" "),t.file.name||t.url?e("div",{staticClass:"import-button"},[e("el-button",{attrs:{loading:t.loading,type:"primary",size:"mini"},on:{click:t.importCJ}},[t._v("Import\n ")])],1):t._e()],1)],1),t._v(" "),t.newTable?t._e():e("el-row",{staticClass:"new-table-wrapper"},t._l(t.initialData.ready_made_tables,(function(a,n){return e("el-col",{key:n,attrs:{span:24}},[e("div",{staticClass:"table-type-heading"},[e("h2",{staticClass:"ready-made-name"},[t._v(t._s(a.name))])]),t._v(" "),e("el-row",t._l(a.tables,(function(a,n){return e("el-col",{key:n,attrs:{span:8}},[e("div",{staticClass:"ready-made-table-image"},[e("img",{staticStyle:{margin:"0 auto",width:"180px",display:"flex"},attrs:{src:t.getAsset(a.key+".jpg"),alt:""}}),t._v(" "),e("div",{staticClass:"ready-made-table-hover-button"},[e("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.createTable(a.key,a)}}},[e("span",[t._v(t._s(!t.hasPro&&a.has_pro?"Unlock in Pro":"Create"))])])],1)]),t._v(" "),e("h4",{staticClass:"table-title-style"},[t._v(t._s(a.name))])])})),1)],1)})),1)],2)],1)}),[],!1,null,null,null).exports,Xt={name:"add_table",components:{RightSideBar:Qt,wp_editor:C,"wp-posts-data-source":Q,"woo-data-source":tt,"fluent-form-data-source":it,"external-data-source":rt,ImportTable:pt,RawSqlForm:wt,PremiumNotice:V},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:""}}},hasPro:{required:!0}},data:function(){return{activeTabName:"default",btnLoading:!1,activated_features:window.ninja_table_admin.activated_features,has_sql_permission:"yes"==window.ninja_table_admin.sql_permission,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},isCollapse:!1,fluentFormIcon:window.ninja_table_admin.fluent_form_icon,wooIcon:window.ninja_table_admin.img_url+"woo-logo.png",has_woo:!!window.ninja_table_admin.has_woocommerce,initialData:{}}},methods:{createDragAndDropTable:function(){var t=this;this.$get({action:"ninja_tables_builder_ajax_actions",target_action:"get-table-config"}).done((function(e){t.initialData=e.data})).fail((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})}))},handleTabClick:function(t,e){setTimeout((function(){jQuery(t.$el).find("input:first").focus()}),0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"}),window.ninjaTableBus.$emit("addedTable"),t.table.ID?t.closeModal():t.fireTableCreated(e.table_id)})).fail((function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})})).always((function(){t.btnLoading=!1}))},closeModal:function(){this.$emit("modal_close")},onEditorChange:function(t){t.editor;var e=t.html;t.text;this.table.post_content=e},fireTableCreated:function(t){this.$emit("table_inserted",t)},checkScreenSize:function(){window.innerWidth<1e3?this.isCollapse=!0:this.isCollapse=!1}},mounted:function(){var t=this;this.checkScreenSize(),this.createDragAndDropTable(),jQuery(window).resize((function(){t.checkScreenSize()}))}};var Gt=a(8674),Kt={insert:"head",singleton:!1};s()(Gt.Z,Kt);Gt.Z.locals;const te=n(Xt,(function(){var t=this,e=t._self._c;return e("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():e("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[e("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[e("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[e("i",{staticClass:"el-icon-setting"}),t._v(" "),e("span",[t._v("Default")])]),t._v(" "),e("el-menu-item",{attrs:{index:"drag_and_drop"},on:{click:function(e){t.activeTabName="drag_and_drop"}}},[e("i",{staticClass:"el-icon-s-unfold"}),t._v(" "),e("span",[t._v("Drag & Drop Table")])]),t._v(" "),e("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[e("i",{staticClass:"el-icon-upload2"}),t._v(" "),e("span",[t._v("Import Table")])]),t._v(" "),e("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[e("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),e("span",[t._v("Connect Fluent Forms")])]),t._v(" "),e("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[e("i",{staticClass:"el-icon-news"}),t._v(" "),e("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?e("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[e("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),e("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),e("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[e("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),e("span",[t._v("Connect Google Sheets")])]),t._v(" "),e("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[e("i",{staticClass:"el-icon-document"}),t._v(" "),e("span",[t._v("Connect External CSV")])]),t._v(" "),e("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[e("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),e("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),e("el-main",["default"==t.activeTabName?[e("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[e("h3",[t._v("Manually Create a Table")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Manually create your table columns and rows to get complete\n control over your data with tons of customizations.\n ")])],t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),e("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)],2),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?e("span",[t._v(t._s(t.$t("Update")))]):e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"drag_and_drop"===t.activeTabName?[e("right-side-bar",{attrs:{initialData:t.initialData}})]:"import_table"===t.activeTabName?[e("import-table")]:"google_spread_sheet"==t.activeTabName?[e("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[e("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[e("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[e("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?e("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?e("div",[e("p",[t._v("Please update to latest version of "),e("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?e("div",{staticClass:"ninja_no_woo"},[e("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),e("premium-notice",{attrs:{highlight:"WooCommerce Integration module where you can create and build table with Woocomerce produsts and increase your conversion rate"}})],1):t._e()]:"raw_sql"==t.activeTabName?[e("raw-sql-form",{attrs:{has_sql_permission:t.has_sql_permission,tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)}),[],!1,null,null,null).exports;const ee={name:"ninja_lead",data:function(){return{loading:!1,leadVisible:!!window.ninja_table_admin.show_lead_pop_up,display_name:window.ninja_table_admin.current_user_name,showPermission:!1}},methods:{optin:function(t){var e=this;this.loading=!0,this.$post({action:"ninja_table_lead_optin",status:t}).then((function(t){e.$message({showClose:!0,message:t.data.message,type:"success"})})).fail((function(t){})).always((function(){e.leadVisible=!1,e.loading=!1,"yes"===t&&(window.ninja_table_admin.show_lead_pop_up=!1)}))}}};var ae=a(1967),ne={insert:"head",singleton:!1};s()(ae.Z,ne);ae.Z.locals;const ie=n(ee,(function(){var t=this,e=t._self._c;return t.leadVisible?e("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[e("p",[t._v("Hey "+t._s(t.display_name)+","),e("br"),t._v("\n Never miss an important update - opt in to our security & feature updates notifications. We will never\n spam / share your data, We will only send emails about important updates")]),t._v(" "),e("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),e("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),e("div",{staticClass:"ninja_permissions"},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.showPermission,expression:"showPermission"}],staticClass:"permissions"},[t._v("\n Name, email, Site URL, Plugins info, ip Address and uninstall event\n ")])])],1)]):t._e()}),[],!1,null,null,null).exports;const oe={name:"review_dialog",methods:{recordActivity:function(t){var e=this;this.$post({action:"ninja_table_review_consent",status:t}).then((function(){})).fail((function(){})).always((function(){e.$emit("hideNotification",!0)}))}}};var le=a(6140),se={insert:"head",singleton:!1};s()(le.Z,se);le.Z.locals;const re={name:"all_tables",components:{Welcome:h,"list-all-tables":y,"add-table-modal":te,"lead-modal":ie,NinjaReviewDialog:n(oe,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"review_dialog"},[e("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),e("div",{staticClass:"consent_body"},[e("p",[t._v("Thank You for using Ninja Tables Plugin. We are continuously working on it to improve this plugin. If You can spare a minute, Please help us by leaving a five star rating on wordpress.org")]),t._v(" "),e("a",{staticClass:"el-button el-button--success el-button--small",attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/ninja-tables/reviews/#new-post"},on:{click:function(e){return t.recordActivity("yes")}}},[t._v("Happy To Help")]),t._v(" "),e("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){return t.recordActivity("no")}}},[t._v("Hide Notification")])])])}),[],!1,null,null,null).exports},props:["hasPro"],data:function(){return{modalVisible:!1,published_tables:parseInt(window.ninja_table_admin.published_tables),searchAction:0,searchString:"",selected:[],review_option:window.ninja_table_admin.show_review_dialog}},methods:{addTableAction:function(t){this.$router.push({name:"data_items",params:{table_id:t}}),this.modalVisible=!1},getData:function(){this.searchAction++},makeSelection:function(t){this.selected=t},handleBulkActions:function(t){"delete"===t&&this.deleteTables()},deleteTables:function(){this.selected.length&&this.$confirm(this.$t("This will permanently delete the selected tables. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then((function(){})).catch((function(){}))}},mounted:function(){var t=this;window.ninjaTableBus.$on("addedTable",(function(){t.published_tables||(window.ninja_table_admin.published_tables=1)}))}};var ce=a(5600),ue={insert:"head",singleton:!1};s()(ce.Z,ue);ce.Z.locals;const de=n(re,(function(){var t=this,e=t._self._c;return e("div",[t.published_tables?[e("div",{staticClass:"row clearfix",staticStyle:{"margin-top":"5px"}},[e("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),e("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[e("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData.apply(null,arguments)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),e("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),e("router-link",{attrs:{to:{name:"import_tables"}}},[e("el-button",{attrs:{size:"small"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")])],1)]),t._v(" "),e("hr"),t._v(" "),e("list-all-tables",{directives:[{name:"show",rawName:"v-show",value:t.published_tables,expression:"published_tables"}],attrs:{searchString:t.searchString,searchAction:t.searchAction},on:{total_table:function(e){t.published_tables=!0},selection:t.makeSelection}})]:e("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),e("el-dialog",{attrs:{"close-on-click-modal":!1,title:t.$t("How would you like to create your table?"),visible:t.modalVisible,top:"50px",width:"75%","append-to-body":!0,"custom-class":"create-table-modal"},on:{"update:visible":function(e){t.modalVisible=e}}},[e("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),e("lead-modal")],2)}),[],!1,null,null,null).exports;const pe=n({name:"Tools",data:function(){return{has_pro:!!window.ninja_table_admin.hasPro,menuItems:[]}},computed:{active_menu:function(){return this.$route.name}},methods:{setUpMenuItems:function(){this.menuItems=this.applyFilters("ninja_table_settings_tools",[{route:"import_tables",title:this.$t("Import"),icon_class:"el-icon-upload",status:!0},{route:"default_table_appearance",title:this.$t("Global Appearance"),icon_class:"el-icon-star-off",status:!0},{route:"permission",title:this.$t("Permission"),icon_class:"el-icon-setting",status:!0},{route:"licensing",title:this.$t("License"),icon_class:"ninja-tables-dashicons dashicons dashicons-shield",status:this.has_pro},{route:"global_settings",title:this.$t("Global Settings"),icon_class:"el-icon-menu",status:!0}])}},mounted:function(){this.setUpMenuItems()}},(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"15px"}},[e("el-container",[e("el-aside",{attrs:{width:"200px"}},[e("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,(function(a){return a.status?e("el-menu-item",{key:a.route,attrs:{index:a.route,route:{name:a.route}}},[e("i",{class:a.icon_class}),t._v(" "),e("span",[t._v(t._s(a.title))])]):t._e()})),1)],1),t._v(" "),e("el-main",[e("router-view")],1)],1)],1)}),[],!1,null,null,null).exports;const me={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",supsystic:"Data Tables Generator by Supsystic",UltimateTables:"Ultimate Tables"},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 a=new FormData;a.append("format",this.imports.format),a.append("file",e),a.append("action","ninja_tables_ajax_actions"),a.append("target_action","import-table"),a.append("do_unicode",this.do_unicode),a.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:a,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 a={action:"ninja_tables_ajax_actions",target_action:"get-tables-from-plugin",plugin:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};jQuery.ajax({url:ajaxurl,data:a,type:"POST",success:function(a){a.tables?e.btnsLoading[t]=!1:e.$message.error("No Table Found"),e.showPluginModal=!0,e.otherPluginTables=a.tables},error:function(a){e.btnsLoading[t]=!1,a.responseJSON?e.$message.error(a.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 a=this;this.importing=!0;var n={action:"ninja_tables_ajax_actions",target_action:"import-table-from-plugin",plugin:this.selectedPlugin,tableId:t.ID,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};jQuery.ajax({url:ajaxurl,data:n,type:"POST",success:function(t){a.$message.success(t.data.message),a.importing=!1,a.$set(a.otherPluginTables[e],"ninja_table_id",t.data.tableId)},error:function(t){a.$message.error(t.responseJSON.data.message),a.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"}))}},_e=me;var he=a(3080),fe={insert:"head",singleton:!1};s()(he.Z,fe);he.Z.locals;const ve=n(_e,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_header"},[e("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"ninja_block"},[e("p",[t._v("\n "+t._s(t.$t("NinjaTables can import tables from existing data, like from a CSV or JSON file. You can also import existing tables from the other WordPress table plugins."))+"\n ")])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"ninja_block_section"},[e("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),e("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"form"},[e("div",{staticClass:"form-item"},["file"==t.imports.source?[e("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[e("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),e("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),e("div",{staticClass:"form-item"},[e("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],attrs:{id:"import_format"},on:{change:function(e){var a=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?a:a[0])}}},t._l(t.imports.formatOptions,(function(a,n){return e("option",{domProps:{value:n}},[t._v(t._s(t.$t(a))+"\n ")])})),0),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),e("div",{staticClass:"form-item"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1)]:t._e(),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"json"==t.imports.format||"ninjaJson"==t.imports.format,expression:"imports.format == 'json' || imports.format == 'ninjaJson'"}],staticClass:"help"},[t._v("\n Check tutorial for importing Table from JSON file "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])],2),t._v(" "),e("div",{staticClass:"form-item"},[e("el-button",{attrs:{type:"primary",size:"small",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"ninja_block_section"},[e("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),e("table",{staticStyle:{"min-width":"400px"}},[e("tbody",t._l(t.otherPlugins,(function(a,n){return e("tr",[e("td",[t._v(t._s(a))]),t._v(" "),e("td",[e("button",{staticClass:"btn btn-default btn-sm",on:{click:function(e){return t.importFromOtherPlugin(n)}}},[t.btnsLoading[n]?[t._v("\n "+t._s(t.$t("Processing..."))+"\n "),e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])})),0)])])]),t._v(" "),e("el-dialog",{attrs:{title:"Your current tables",visible:t.showPluginModal},on:{"update:visible":function(e){t.showPluginModal=e},close:function(e){return t.closePluginModal()}}},[t.otherPluginTables.length?[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[e("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.is_already_imported?e("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(a.row.post_title)+"\n ")]}}],null,!1,2469912787)}),t._v(" "),e("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.importThisTable(a.row,a.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),a.row.ninja_table_id?e("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:a.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}],null,!1,3480308331)})],1),t._v(" "),t.importing?[e("br"),e("br"),t._v(" "),e("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n "+t._s(t.$t("Importing the table, please wait a bit ..."))+"\n ")])]:t._e()]:e("div",{staticClass:"updated notice notice-success",staticStyle:{padding:"10px"}},[t._v("\n You don't have any tables in your "+t._s(t.selectedPlugin)+" plugin.\n ")])],2)],1)}),[function(){var t=this,e=t._self._c;return e("p",[t._v("\n Select the intended format and click "),e("strong",[t._v("Import")]),t._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"help"},[t._v("\n Check tutorial for importing data from CSV file "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])},function(){var t=this,e=t._self._c;return e("p",[t._v("\n To import from other WordPress plugins click the respective "),e("strong",[t._v("Import")]),t._v("\n button.\n ")])}],!1,null,"07712242",null).exports;const be={name:"Privacy",components:{GetPro:i},data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,sql_permission:"no",capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then((function(e){t.capability=e.capability,t.roles=e.roles,t.sql_permission=e.sql_permission,t.handleCheckedCapabilitiesChange(t.capability)})).fail((function(t){})).always((function(){t.fetching=!1}))},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability,sql_permission:this.sql_permission};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"})})).fail((function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}))},handleCheckAllChange:function(t){this.capability=t?this.roles.map((function(t){return t.key})):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}};var ge=a(448),ye={insert:"head",singleton:!1};s()(ge.Z,ye);ge.Z.locals;const we=n(be,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"privacy"},[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Permission "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),e("hr"),t._v(" "),t.hasPro?[e("div",{staticClass:"form-group"},[e("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("\n "+t._s(t.$t("Check all"))+"\n ")])],1),t._v(" "),e("div",{staticClass:"form-group"},[e("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,(function(a){return e("el-checkbox",{key:a.key,attrs:{label:a.key}},[t._v("\n "+t._s(a.name)+"\n ")])})),1)],1),t._v(" "),t.capability&&t.capability.length?e("div",{staticClass:"form-group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.sql_permission,callback:function(e){t.sql_permission=e},expression:"sql_permission"}},[t._v("Enable SQL-Module Permission for selected user roles")])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.store}},[t._v("Save")])],1)]:[t._v("\n "+t._s(t.$t("Activate Ninja Tables Pro Add-on plugin to unlock this feature"))+"\n "),e("p",[e("get-pro")],1)]],2)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_block"},[t("p",[this._v("By default, Only Administrator have access to manage the tables. By selecting additional roles bellow, You can give access to manage your Tables to other user roles.")])])}],!1,null,null,null).exports;var xe=a(5325),ke=a.n(xe),Ce=a(4486),Se=a.n(Ce);const je=n({name:"Privacy",data:function(){return{fetching:!1,saving:!1,tableLibs:{},default_settings:{},fontFamily:["inherit","cursive","fantasy","monospace","sans-serif","serif","system-ui","ui-monospace","ui-rounded","ui-sans-serif","ui-serif"]}},computed:{tableColors:function(){return{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"compact",title:"Compact Table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap4:{title:"Bootstrap 4",description:"Apply Twitter Bootstrap 4 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-sm",title:"Small table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap3:{title:"Bootstrap 3",description:"Apply Twitter Bootstrap 3 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-condensed",title:"Condensed table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]}},colors:{ninja_no_color_table:"Default",white:"White",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}}.footable.colors},table_styles:function(){return{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"compact",title:"Compact Table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap4:{title:"Bootstrap 4",description:"Apply Twitter Bootstrap 4 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-sm",title:"Small table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap3:{title:"Bootstrap 3",description:"Apply Twitter Bootstrap 3 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-condensed",title:"Condensed table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]}},colors:{ninja_no_color_table:"Default",white:"White",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}}.footable.css_libs},availableStyles:function(){var t=this.table_styles[this.default_settings.css_lib];return!!t&&t.styles}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({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=[];Se()(this.availableStyles,(function(t){e.push(t.key)})),this.default_settings.css_classes=ke()(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(){var t=this,e=t._self._c;return e("div",{staticClass:"privacy"},[t._m(0),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),e("hr"),t._v(" "),[e("div",{staticClass:"ninja_block"},[e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Styling Library")]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,(function(a,n){return e("el-radio-button",{key:n,attrs:{label:n}},[t._v("\n "+t._s(a.title)+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:a.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,(function(a){return e("label",{key:a.key,attrs:{for:"table_style_"+a.key}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+a.key},domProps:{value:a.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,a.key)>-1:t.default_settings.css_classes},on:{change:function(e){var n=t.default_settings.css_classes,i=e.target,o=!!i.checked;if(Array.isArray(n)){var l=a.key,s=t._i(n,l);i.checked?s<0&&t.$set(t.default_settings,"css_classes",n.concat([l])):s>-1&&t.$set(t.default_settings,"css_classes",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(t.default_settings,"css_classes",o)}}}),t._v("\n "+t._s(a.title)+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:a.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2),t._v(" "),e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Features")]),t._v(" "),e("label",{attrs:{for:"show_title"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_title,expression:"default_settings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.default_settings.show_title)?t._i(t.default_settings.show_title,"1")>-1:t.default_settings.show_title},on:{change:function(e){var a=t.default_settings.show_title,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.default_settings,"show_title",a.concat(["1"])):o>-1&&t.$set(t.default_settings,"show_title",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.default_settings,"show_title",i)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"show_description"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.show_description,expression:"default_settings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.default_settings.show_description)?t._i(t.default_settings.show_description,"1")>-1:t.default_settings.show_description},on:{change:function(e){var a=t.default_settings.show_description,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.default_settings,"show_description",a.concat(["1"])):o>-1&&t.$set(t.default_settings,"show_description",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.default_settings,"show_description",i)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"enable_search"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.enable_search,expression:"default_settings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.default_settings.enable_search)?t._i(t.default_settings.enable_search,"1")>-1:t.default_settings.enable_search},on:{change:function(e){var a=t.default_settings.enable_search,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.default_settings,"enable_search",a.concat(["1"])):o>-1&&t.$set(t.default_settings,"enable_search",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.default_settings,"enable_search",i)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n ")]),t._v(" "),e("label",{attrs:{for:"column_sorting"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.column_sorting,expression:"default_settings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.default_settings.column_sorting)?t._i(t.default_settings.column_sorting,"1")>-1:t.default_settings.column_sorting},on:{change:function(e){var a=t.default_settings.column_sorting,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.default_settings,"column_sorting",a.concat(["1"])):o>-1&&t.$set(t.default_settings,"column_sorting",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.default_settings,"column_sorting",i)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n ")]),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.hide_all_borders,expression:"default_settings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.default_settings.hide_all_borders)?t._i(t.default_settings.hide_all_borders,null)>-1:t.default_settings.hide_all_borders},on:{change:function(e){var a=t.default_settings.hide_all_borders,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.default_settings,"hide_all_borders",a.concat([null])):o>-1&&t.$set(t.default_settings,"hide_all_borders",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.default_settings,"hide_all_borders",i)}}}),t._v("\n Hide All Borders\n ")])]),t._v(" "),e("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[e("h3",[t._v("Default Table Color")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_color,expression:"default_settings.table_color"}],staticClass:"form_control",on:{change:function(e){var a=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?a:a[0])}}},t._l(t.tableColors,(function(a,n){return e("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(a)+"\n ")])})),0)]),t._v(" "),e("div",{staticClass:"form_group"},[e("h3",[t._v("Default Pagination Setting")]),t._v(" "),e("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.default_settings.show_all,callback:function(e){t.$set(t.default_settings,"show_all",e)},expression:"default_settings.show_all"}})],1)]),t._v(" "),e("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[e("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.perPage,expression:"default_settings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.default_settings.show_all||"1"==t.default_settings.show_all},domProps:{value:t.default_settings.perPage},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"perPage",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"font-setting"},[e("h3",[t._v("Default Font Setting")]),t._v(" "),e("div",{staticClass:"font form_group"},[e("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_font_family,expression:"default_settings.table_font_family"}],staticClass:"form_control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.default_settings,"table_font_family",e.target.multiple?a:a[0])}}},t._l(t.fontFamily,(function(t,a){return e("option",{key:a,attrs:{label:"inherit"===t?"theme-font":t},domProps:{value:t}})})),0)]),t._v(" "),e("div",{staticClass:"font form_group",staticStyle:{"max-width":"400px"}},[e("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.table_font_size,expression:"default_settings.table_font_size"}],staticClass:"form_control",attrs:{type:"number",min:1,max:50},domProps:{value:t.default_settings.table_font_size},on:{input:function(e){e.target.composing||t.$set(t.default_settings,"table_font_size",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[e("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_header"},[t("h2",[this._v("Global Appearance Settings")])])},function(){var t=this._self._c;return t("div",{staticClass:"ninja_block"},[t("p",[this._v("\n The following settings will be applied to the newly created tables. Of course, You can customize the\n appearance settings to each table level.\n ")])])}],!1,null,null,null).exports;const $e={name:"license",data:function(){return{licenseKey:"",error_message:"",enter_new_license:!1,checkingLicense:!1,doing_ajax:!1,renewLicenseHtml:"",renewHtml:"",is_valid:window.ninja_table_admin.hasValidLicense}},methods:{activateLicense:function(){var t=this;this.licenseKey?(this.doing_ajax=!0,this.error_message="",this.$post({action:"_ninjatables_pro_license_activate_license",_ninjatables_pro_license_key:this.licenseKey}).then((function(e){e.data&&e.data.message?(jQuery(".error_notice_ninjatables_pro_license").remove(),t.is_valid="valid"):t.error_message="Something is wrong when contacting with license server. Please make sure you have curl installed you server",t.doing_ajax=!1})).fail((function(e){e.responseJSON&&e.responseJSON.data?t.error_message=e.responseJSON.data.message:t.error_message="Sorry, Something is wrong! Please make sure you have ninja tables pro installed and curl installed on your server",t.doing_ajax=!1})).always((function(){t.doing_ajax=!1}))):this.error_message="Please provide a license key"},deactivateLicense:function(){var t=this;this.doing_ajax=!0,this.error_message="",this.$post({action:"_ninjatables_pro_license_deactivate_license"}).then((function(e){t.is_valid=!1})).fail((function(e){console.log(e),t.error_message=e.responseJSON.data.message,e.responseJSON&&e.responseJSON.data?t.$message.error(e.responseJSON.data.message):t.$message.error("Sorry, Something is wrong! Please try again")})).always((function(){t.doing_ajax=!1}))},get_license_info:function(){var t=this;this.checkingLicense=!0,this.error_message="",this.$get({action:"_ninjatables_pro_license_get_license_info"}).then((function(e){t.renewLicenseHtml=e.data.renewHtml,t.is_valid=e.data.status,t.renewHtml=e.data.renewHtml})).fail((function(e){t.error_message=e.responseJSON.data.message})).always((function(){t.checkingLicense=!1}))}},mounted:function(){this.get_license_info()}};var Te=a(1368),Ie={insert:"head",singleton:!1};s()(Te.Z,Ie);Te.Z.locals;const De=n($e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"license"},[e("div",{staticClass:"ninja_header"},["valid"==t.is_valid?e("div",[e("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[e("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):e("div",[e("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?e("div",{staticClass:"license_success"},[e("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"default",size:"mini"},on:{click:function(e){return t.deactivateLicense()}}},[t._v(t._s(t.$t("Deactivate License")))]),t._v(" "),t.renewHtml?e("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[e("div",{staticClass:"checking_license license_renew_box",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),e("p",[t._v("If you already renewed your license then please "),e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),e("p",[t._v("Have a new license key? Please "),e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?e("div",{staticClass:"license_form"},[e("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),e("div",{staticClass:"form_input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){return t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),e("div",{staticClass:"nt_messages"},[t.error_message?e("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):e("div",{staticClass:"license_form"},[e("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),e("div",{staticClass:"form_input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.licenseKey,expression:"licenseKey"}],attrs:{placeholder:"License Key",id:"license_form_input"},domProps:{value:t.licenseKey},on:{input:function(e){e.target.composing||(t.licenseKey=e.target.value)}}})]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.doing_ajax,expression:"doing_ajax"}],staticClass:"license_submit",attrs:{type:"primary"},on:{click:function(e){return t.activateLicense()}}},[t._v(t._s(t.$t("Activate Ninja Tables Pro")))]),t._v(" "),e("div",{staticClass:"nt_messages"},[t.error_message?e("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])}),[function(){var t=this,e=t._self._c;return e("p",[t._v("\n You need to activate your Ninja Table Pro by providing the license key bellow. If you don't have a\n license key please "),e("a",{attrs:{href:"https://wpmanageninja.com/checkout/purchase-history/",target:"_blank"}},[t._v("Click\n Here")]),t._v(" to get a license key from your purchase. "),e("br"),t._v("Any questions or problems with your license? "),e("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[t._v("Contact us!")])])}],!1,null,null,null).exports;const Pe=n({name:"GlobalSettings",data:function(){return{loading:!1,ninja_suppress_error:"log_silently"}},methods:{getSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_global_settings"}).then((function(e){t.ninja_suppress_error=e.data.ninja_suppress_error})).fail((function(t){})).always((function(){t.loading=!1}))},storeSettings:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"update_global_settings",suppress_error:this.ninja_suppress_error};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})})).fail((function(t){}))},clearCache:function(){var t=this;this.$post({action:"ninja_tables_ajax_actions",target_action:"clear_tables_cache"}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"})})).fail((function(t){}))}},mounted:function(){this.getSettings()}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"privacy"},[t._m(0),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[e("div",{staticClass:"ninja_block"},[e("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),e("el-radio-group",{staticClass:"spaced_new_line",model:{value:t.ninja_suppress_error,callback:function(e){t.ninja_suppress_error=e},expression:"ninja_suppress_error"}},[e("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),e("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),e("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),e("div",{staticClass:"ninja_block ninja_heightlight_block"},[e("h3",[t._v("Clear Table Cache")]),t._v(" "),e("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),e("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){return t.clearCache()}}},[t._v("Clear Table Cache")])],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_header"},[t("h2",[this._v("Global Settings")])])}],!1,null,null,null).exports;const Ee={name:"Charts",data:function(){return{imgUrl:window.ninja_table_admin.img_url,loading:!1}},beforeRouteEnter:function(t,e,a){window.ninja_table_admin.ninja_charts_url?window.location=window.ninja_table_admin.ninja_charts_url:a()},methods:{imageUrl:function(t){return this.imgUrl+t},click:function(){var t=this;this.loading=!0;this.$post({action:"ninja_tables_ajax_actions",target_action:"install-extra-plugins",plugin:"ninja-charts"}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),window.location=e.data.redirect})).fail((function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})})).always((function(){t.loading=!1}))}}};var Ae=a(1903),Ne={insert:"head",singleton:!1};s()(Ae.Z,Ne);Ae.Z.locals;const Oe=n(Ee,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_intro_welcome"},[e("div",{staticClass:"ninja_charts_promo_banner"},[e("img",{attrs:{src:t.imageUrl("ninja-charts-promo.png"),alt:"Ninja Charts"}})]),t._v(" "),e("h2",[t._v("Welcome to Ninja Charts")]),t._v(" "),e("p",[t._v("Best WP Charts Plugin for WordPress")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"ninja_actions"},[e("el-button",{attrs:{type:"danger",loading:t.loading},on:{click:function(e){return t.click()}}},[t._v("\n Enable Ninja Charts\n ")])],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_charts_promo"},[t("iframe",{attrs:{width:"600",height:"315",src:"https://www.youtube.com/embed/vIHR3_vNOFM",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,"6779a907",null).exports;const Me=n({name:"add_table",components:{wp_editor:C},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:"",table_caption:""}}}},data:function(){return{btnLoading:!1}},methods:{handleTabClick:function(t,e){setTimeout((function(){jQuery(t.$el).find("input:first").focus()}),0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,table_caption:this.table.table_caption,tableId:this.table.ID};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.closeModal()})).fail((function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})})).always((function(){t.btnLoading=!1}))},closeModal:function(){this.$emit("modal_close")}},mounted:function(){}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_table_edit"},[e("div",{staticClass:"ninja_modal-body"},[e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("el-input",{attrs:{type:"text",size:"small",placeholder:"Enter a title to identify your table"},model:{value:t.table.post_title,callback:function(e){t.$set(t.table,"post_title",e)},expression:"table.post_title"}})],1),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),e("el-input",{attrs:{size:"small",type:"text",placeholder:"Enter a table caption if you want to show"},model:{value:t.table.table_caption,callback:function(e){t.$set(t.table,"table_caption",e)},expression:"table.table_caption"}})],1),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),e("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{loading:t.btnLoading,type:"primary",size:"small"},on:{click:t.addTable}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])],1)])}),[],!1,null,null,null).exports;var ze=a(4238),Fe=a.n(ze),Be=a(2628),Le=a.n(Be);function Re(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function He(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const We={name:"table_home",components:{edit_table:Me},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 a={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.config.columns};this.$post(a).success((function(a){e.$message({showClose:!0,message:a.message,type:"success"}),t(a)})).fail((function(t){})).always((function(){e.doingAjax=!1}))},getSettings:function(){var t=this;this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-table-settings",table_id:this.tableId};this.$getJSON(e).then((function(e){"[object Object]"==Object.prototype.toString.call(e.columns)&&(e.columns=Le()(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:Fe(),each:G(),initTableTabs:function(){this.table_tabs=this.applyFilters("ninja_table_table_tabs",[{route:"data_items",title:"Table Rows"},{route:"data_columns",title:"Table Configuration"},{route:"design_studio",title:"Table Design"},{route:"table_editing",title:"Frontend Editing"},{route:"additional_css",title:"Custom CSS/JS"},{route:"import-export",title:"Import - Export"}])}},mounted:function(){var t=this;this.initTableTabs(),this.getSettings(),this.clipboard(),window.ninjaTableBus.$on("initManualSorting",(function(e,a,n){var i=function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(a),!0).forEach((function(e){He(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Re(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({action:"ninja_tables_init_sortable"},e);t.$post(i).success((function(t){return a(t)})).fail((function(t){return n(t)}))})),window.ninjaTableBus.$on("tableDoingAjax",(function(e){t.doingAjax=e})),window.ninjaTableBus.$off("updateTableColumns"),window.ninjaTableBus.$on("updateTableColumns",(function(e){t.updateTableColumns(e)})),window.ninjaTableBus.$emit("addedTable")}},qe=We;var Ve=a(6834),Ue={insert:"head",singleton:!1};s()(Ve.Z,Ue);Ve.Z.locals;const Ye=n(qe,(function(){var t=this,e=t._self._c;return e("div",[t.doingAjax?e("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),e("div",{staticClass:"settings_header"},[e("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[e("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[e("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),e("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),e("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'.concat(t.tableId,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),e("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[e("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),e("a",{attrs:{href:t.preview_url,target:"_blank"}},[e("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():e("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[e("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Get Pro")))])],1)],1)]),t._v(" "),e("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[e("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,(function(a){return e("router-link",{key:a.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:a.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(a.title)+"\n ")])})),1),t._v(" "),t.config?e("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),e("el-dialog",{attrs:{title:"Update Table Info",visible:t.editTableModalShow,top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editTableModalShow=e}}},[t.editTableModalShow?e("edit_table",{attrs:{table:t.table},on:{modal_close:function(e){t.editTableModalShow=!t.editTableModalShow}}}):t._e()],1)],1)}),[],!1,null,null,null).exports;function Ze(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Je(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(a),!0).forEach((function(e){Xe(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ze(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function Qe(t){return Qe="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},Qe(t)}function Xe(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Ge(){return Ge=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},Ge.apply(this,arguments)}function Ke(t,e){if(null==t)return{};var a,n,i=function(t,e){if(null==t)return{};var a,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)a=o[n],e.indexOf(a)>=0||(i[a]=t[a]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(i[a]=t[a])}return i}function ta(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var ea=ta(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),aa=ta(/Edge/i),na=ta(/firefox/i),ia=ta(/safari/i)&&!ta(/chrome/i)&&!ta(/android/i),oa=ta(/iP(ad|od|hone)/i),la=ta(/chrome/i)&&ta(/android/i),sa={capture:!1,passive:!1};function ra(t,e,a){t.addEventListener(e,a,!ea&&sa)}function ca(t,e,a){t.removeEventListener(e,a,!ea&&sa)}function ua(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function da(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function pa(t,e,a,n){if(t){a=a||document;do{if(null!=e&&(">"===e[0]?t.parentNode===a&&ua(t,e):ua(t,e))||n&&t===a)return t;if(t===a)break}while(t=da(t))}return null}var ma,_a=/\s+/g;function ha(t,e,a){if(t&&e)if(t.classList)t.classList[a?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(_a," ").replace(" "+e+" "," ");t.className=(n+(a?" "+e:"")).replace(_a," ")}}function fa(t,e,a){var n=t&&t.style;if(n){if(void 0===a)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(a=t.currentStyle),void 0===e?a:a[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=a+("string"==typeof a?"":"px")}}function va(t,e){var a="";if("string"==typeof t)a=t;else do{var n=fa(t,"transform");n&&"none"!==n&&(a=n+" "+a)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(a)}function ba(t,e,a){if(t){var n=t.getElementsByTagName(e),i=0,o=n.length;if(a)for(;i<o;i++)a(n[i],i);return n}return[]}function ga(){var t=document.scrollingElement;return t||document.documentElement}function ya(t,e,a,n,i){if(t.getBoundingClientRect||t===window){var o,l,s,r,c,u,d;if(t!==window&&t.parentNode&&t!==ga()?(l=(o=t.getBoundingClientRect()).top,s=o.left,r=o.bottom,c=o.right,u=o.height,d=o.width):(l=0,s=0,r=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||a)&&t!==window&&(i=i||t.parentNode,!ea))do{if(i&&i.getBoundingClientRect&&("none"!==fa(i,"transform")||a&&"static"!==fa(i,"position"))){var p=i.getBoundingClientRect();l-=p.top+parseInt(fa(i,"border-top-width")),s-=p.left+parseInt(fa(i,"border-left-width")),r=l+o.height,c=s+o.width;break}}while(i=i.parentNode);if(n&&t!==window){var m=va(i||t),_=m&&m.a,h=m&&m.d;m&&(r=(l/=h)+(u/=h),c=(s/=_)+(d/=_))}return{top:l,left:s,bottom:r,right:c,width:d,height:u}}}function wa(t,e,a){for(var n=ja(t,!0),i=ya(t)[e];n;){var o=ya(n)[a];if(!("top"===a||"left"===a?i>=o:i<=o))return n;if(n===ga())break;n=ja(n,!1)}return!1}function xa(t,e,a,n){for(var i=0,o=0,l=t.children;o<l.length;){if("none"!==l[o].style.display&&l[o]!==Pn.ghost&&(n||l[o]!==Pn.dragged)&&pa(l[o],a.draggable,t,!1)){if(i===e)return l[o];i++}o++}return null}function ka(t,e){for(var a=t.lastElementChild;a&&(a===Pn.ghost||"none"===fa(a,"display")||e&&!ua(a,e));)a=a.previousElementSibling;return a||null}function Ca(t,e){var a=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Pn.clone||e&&!ua(t,e)||a++;return a}function Sa(t){var e=0,a=0,n=ga();if(t)do{var i=va(t),o=i.a,l=i.d;e+=t.scrollLeft*o,a+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,a]}function ja(t,e){if(!t||!t.getBoundingClientRect)return ga();var a=t,n=!1;do{if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var i=fa(a);if(a.clientWidth<a.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||a.clientHeight<a.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!a.getBoundingClientRect||a===document.body)return ga();if(n||e)return a;n=!0}}}while(a=a.parentNode);return ga()}function $a(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function Ta(t,e){return function(){if(!ma){var a=arguments,n=this;1===a.length?t.call(n,a[0]):t.apply(n,a),ma=setTimeout((function(){ma=void 0}),e)}}}function Ia(t,e,a){t.scrollLeft+=e,t.scrollTop+=a}function Da(t){var e=window.Polymer,a=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):a?a(t).clone(!0)[0]:t.cloneNode(!0)}var Pa="Sortable"+(new Date).getTime();function Ea(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==fa(t,"display")&&t!==Pn.ghost){e.push({target:t,rect:ya(t)});var a=Je({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=va(t,!0);n&&(a.top-=n.f,a.left-=n.e)}t.fromRect=a}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var a in t)if(t.hasOwnProperty(a))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[a][n])return Number(a);return-1}(e,{target:t}),1)},animateAll:function(a){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof a&&a());var i=!1,o=0;e.forEach((function(t){var e=0,a=t.target,l=a.fromRect,s=ya(a),r=a.prevFromRect,c=a.prevToRect,u=t.rect,d=va(a,!0);d&&(s.top-=d.f,s.left-=d.e),a.toRect=s,a.thisAnimationDuration&&$a(r,s)&&!$a(l,s)&&(u.top-s.top)/(u.left-s.left)==(l.top-s.top)/(l.left-s.left)&&(e=function(t,e,a,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-a.top,2)+Math.pow(e.left-a.left,2))*n.animation}(u,r,c,n.options)),$a(s,l)||(a.prevFromRect=l,a.prevToRect=s,e||(e=n.options.animation),n.animate(a,u,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout((function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null}),e),a.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof a&&a()}),o):"function"==typeof a&&a(),e=[]},animate:function(t,e,a,n){if(n){fa(t,"transition",""),fa(t,"transform","");var i=va(this.el),o=i&&i.a,l=i&&i.d,s=(e.left-a.left)/(o||1),r=(e.top-a.top)/(l||1);t.animatingX=!!s,t.animatingY=!!r,fa(t,"transform","translate3d("+s+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),fa(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),fa(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){fa(t,"transition",""),fa(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var Aa=[],Na={initializeByDefault:!0},Oa={mount:function(t){for(var e in Na)Na.hasOwnProperty(e)&&!(e in t)&&(t[e]=Na[e]);Aa.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Aa.push(t)},pluginEvent:function(t,e,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var i=t+"Global";Aa.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][i]&&e[n.pluginName][i](Je({sortable:e},a)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](Je({sortable:e},a)))}))},initializePlugins:function(t,e,a,n){for(var i in Aa.forEach((function(n){var i=n.pluginName;if(t.options[i]||n.initializeByDefault){var o=new n(t,e,t.options);o.sortable=t,o.options=t.options,t[i]=o,Ge(a,o.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var o=this.modifyOption(t,i,t.options[i]);void 0!==o&&(t.options[i]=o)}},getEventProperties:function(t,e){var a={};return Aa.forEach((function(n){"function"==typeof n.eventProperties&&Ge(a,n.eventProperties.call(e[n.pluginName],t))})),a},modifyOption:function(t,e,a){var n;return Aa.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(n=i.optionListeners[e].call(t[i.pluginName],a))})),n}};function Ma(t){var e=t.sortable,a=t.rootEl,n=t.name,i=t.targetEl,o=t.cloneEl,l=t.toEl,s=t.fromEl,r=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,m=t.putSortable,_=t.extraEventProperties;if(e=e||a&&a[Pa]){var h,f=e.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||ea||aa?(h=document.createEvent("Event")).initEvent(n,!0,!0):h=new CustomEvent(n,{bubbles:!0,cancelable:!0}),h.to=l||a,h.from=s||a,h.item=i||a,h.clone=o,h.oldIndex=r,h.newIndex=c,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=p,h.pullMode=m?m.lastPutMode:void 0;var b=Je(Je({},_),Oa.getEventProperties(n,e));for(var g in b)h[g]=b[g];a&&a.dispatchEvent(h),f[v]&&f[v].call(e,h)}}var za=["evt"],Fa=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=a.evt,i=Ke(a,za);Oa.pluginEvent.bind(Pn)(t,e,Je({dragEl:La,parentEl:Ra,ghostEl:Ha,rootEl:Wa,nextEl:qa,lastDownEl:Va,cloneEl:Ua,cloneHidden:Ya,dragStarted:sn,putSortable:Ka,activeSortable:Pn.active,originalEvent:n,oldIndex:Za,oldDraggableIndex:Qa,newIndex:Ja,newDraggableIndex:Xa,hideGhostForTarget:$n,unhideGhostForTarget:Tn,cloneNowHidden:function(){Ya=!0},cloneNowShown:function(){Ya=!1},dispatchSortableEvent:function(t){Ba({sortable:e,name:t,originalEvent:n})}},i))};function Ba(t){Ma(Je({putSortable:Ka,cloneEl:Ua,targetEl:La,rootEl:Wa,oldIndex:Za,oldDraggableIndex:Qa,newIndex:Ja,newDraggableIndex:Xa},t))}var La,Ra,Ha,Wa,qa,Va,Ua,Ya,Za,Ja,Qa,Xa,Ga,Ka,tn,en,an,nn,on,ln,sn,rn,cn,un,dn,pn=!1,mn=!1,_n=[],hn=!1,fn=!1,vn=[],bn=!1,gn=[],yn="undefined"!=typeof document,wn=oa,xn=aa||ea?"cssFloat":"float",kn=yn&&!la&&!oa&&"draggable"in document.createElement("div"),Cn=function(){if(yn){if(ea)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Sn=function(t,e){var a=fa(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=xa(t,0,e),o=xa(t,1,e),l=i&&fa(i),s=o&&fa(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ya(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ya(o).width;if("flex"===a.display)return"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal";if("grid"===a.display)return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===a[xn]||o&&"none"===a[xn]&&r+c>n)?"vertical":"horizontal"},jn=function(t){function e(t,a){return function(n,i,o,l){var s=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==t&&(a||s))return!0;if(null==t||!1===t)return!1;if(a&&"clone"===t)return t;if("function"==typeof t)return e(t(n,i,o,l),a)(n,i,o,l);var r=(a?n:i).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var a={},n=t.group;n&&"object"==Qe(n)||(n={name:n}),a.name=n.name,a.checkPull=e(n.pull,!0),a.checkPut=e(n.put),a.revertClone=n.revertClone,t.group=a},$n=function(){!Cn&&Ha&&fa(Ha,"display","none")},Tn=function(){!Cn&&Ha&&fa(Ha,"display","")};yn&&!la&&document.addEventListener("click",(function(t){if(mn)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),mn=!1,!1}),!0);var In=function(t){if(La){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,_n.some((function(t){var e=t[Pa].options.emptyInsertThreshold;if(e&&!ka(t)){var a=ya(t),n=i>=a.left-e&&i<=a.right+e,s=o>=a.top-e&&o<=a.bottom+e;return n&&s?l=t:void 0}})),l);if(e){var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);a.target=a.rootEl=e,a.preventDefault=void 0,a.stopPropagation=void 0,e[Pa]._onDragOver(a)}}var i,o,l},Dn=function(t){La&&La.parentNode[Pa]._isOutsideThisEl(t.target)};function Pn(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ge({},e),t[Pa]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Sn(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Pn.supportPointer&&"PointerEvent"in window&&!ia,emptyInsertThreshold:5};for(var n in Oa.initializePlugins(this,t,a),a)!(n in e)&&(e[n]=a[n]);for(var i in jn(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&kn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ra(t,"pointerdown",this._onTapStart):(ra(t,"mousedown",this._onTapStart),ra(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(ra(t,"dragover",this),ra(t,"dragenter",this)),_n.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ge(this,Ea())}function En(t,e,a,n,i,o,l,s){var r,c,u=t[Pa],d=u.options.onMove;return!window.CustomEvent||ea||aa?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=a,r.draggedRect=n,r.related=i||e,r.relatedRect=o||ya(e),r.willInsertAfter=s,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function An(t){t.draggable=!1}function Nn(){bn=!1}function On(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,a=e.length,n=0;a--;)n+=e.charCodeAt(a);return n.toString(36)}function Mn(t){return setTimeout(t,0)}function zn(t){return clearTimeout(t)}Pn.prototype={constructor:Pn,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(rn=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,La):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,a=this.el,n=this.options,i=n.preventOnFilter,o=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(function(t){gn.length=0;var e=t.getElementsByTagName("input"),a=e.length;for(;a--;){var n=e[a];n.checked&&gn.push(n)}}(a),!La&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!ia||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=pa(s,n.draggable,a,!1))&&s.animated||Va===s)){if(Za=Ca(s),Qa=Ca(s,n.draggable),"function"==typeof c){if(c.call(this,t,s,this))return Ba({sortable:e,rootEl:r,name:"filter",targetEl:s,toEl:a,fromEl:a}),Fa("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=pa(r,n.trim(),a,!1))return Ba({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:a,toEl:a}),Fa("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());n.handle&&!pa(r,n.handle,a,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,a){var n,i=this,o=i.el,l=i.options,s=o.ownerDocument;if(a&&!La&&a.parentNode===o){var r=ya(a);if(Wa=o,Ra=(La=a).parentNode,qa=La.nextSibling,Va=a,Ga=l.group,Pn.dragged=La,tn={target:La,clientX:(e||t).clientX,clientY:(e||t).clientY},on=tn.clientX-r.left,ln=tn.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,La.style["will-change"]="all",n=function(){Fa("delayEnded",i,{evt:t}),Pn.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!na&&i.nativeDraggable&&(La.draggable=!0),i._triggerDragStart(t,e),Ba({sortable:i,name:"choose",originalEvent:t}),ha(La,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){ba(La,t.trim(),An)})),ra(s,"dragover",In),ra(s,"mousemove",In),ra(s,"touchmove",In),ra(s,"mouseup",i._onDrop),ra(s,"touchend",i._onDrop),ra(s,"touchcancel",i._onDrop),na&&this.nativeDraggable&&(this.options.touchStartThreshold=4,La.draggable=!0),Fa("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(aa||ea))n();else{if(Pn.eventCanceled)return void this._onDrop();ra(s,"mouseup",i._disableDelayedDrag),ra(s,"touchend",i._disableDelayedDrag),ra(s,"touchcancel",i._disableDelayedDrag),ra(s,"mousemove",i._delayedDragTouchMoveHandler),ra(s,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&ra(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){La&&An(La),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ca(t,"mouseup",this._disableDelayedDrag),ca(t,"touchend",this._disableDelayedDrag),ca(t,"touchcancel",this._disableDelayedDrag),ca(t,"mousemove",this._delayedDragTouchMoveHandler),ca(t,"touchmove",this._delayedDragTouchMoveHandler),ca(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?ra(document,"pointermove",this._onTouchMove):ra(document,e?"touchmove":"mousemove",this._onTouchMove):(ra(La,"dragend",this),ra(Wa,"dragstart",this._onDragStart));try{document.selection?Mn((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(pn=!1,Wa&&La){Fa("dragStarted",this,{evt:e}),this.nativeDraggable&&ra(document,"dragover",Dn);var a=this.options;!t&&ha(La,a.dragClass,!1),ha(La,a.ghostClass,!0),Pn.active=this,t&&this._appendGhost(),Ba({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(en){this._lastX=en.clientX,this._lastY=en.clientY,$n();for(var t=document.elementFromPoint(en.clientX,en.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(en.clientX,en.clientY))!==e;)e=t;if(La.parentNode[Pa]._isOutsideThisEl(t),e)do{if(e[Pa]){if(e[Pa]._onDragOver({clientX:en.clientX,clientY:en.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Tn()}},_onTouchMove:function(t){if(tn){var e=this.options,a=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=Ha&&va(Ha,!0),l=Ha&&o&&o.a,s=Ha&&o&&o.d,r=wn&&dn&&Sa(dn),c=(i.clientX-tn.clientX+n.x)/(l||1)+(r?r[0]-vn[0]:0)/(l||1),u=(i.clientY-tn.clientY+n.y)/(s||1)+(r?r[1]-vn[1]:0)/(s||1);if(!Pn.active&&!pn){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(Ha){o?(o.e+=c-(an||0),o.f+=u-(nn||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");fa(Ha,"webkitTransform",d),fa(Ha,"mozTransform",d),fa(Ha,"msTransform",d),fa(Ha,"transform",d),an=c,nn=u,en=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ha){var t=this.options.fallbackOnBody?document.body:Wa,e=ya(La,!0,wn,!0,t),a=this.options;if(wn){for(dn=t;"static"===fa(dn,"position")&&"none"===fa(dn,"transform")&&dn!==document;)dn=dn.parentNode;dn!==document.body&&dn!==document.documentElement?(dn===document&&(dn=ga()),e.top+=dn.scrollTop,e.left+=dn.scrollLeft):dn=ga(),vn=Sa(dn)}ha(Ha=La.cloneNode(!0),a.ghostClass,!1),ha(Ha,a.fallbackClass,!0),ha(Ha,a.dragClass,!0),fa(Ha,"transition",""),fa(Ha,"transform",""),fa(Ha,"box-sizing","border-box"),fa(Ha,"margin",0),fa(Ha,"top",e.top),fa(Ha,"left",e.left),fa(Ha,"width",e.width),fa(Ha,"height",e.height),fa(Ha,"opacity","0.8"),fa(Ha,"position",wn?"absolute":"fixed"),fa(Ha,"zIndex","100000"),fa(Ha,"pointerEvents","none"),Pn.ghost=Ha,t.appendChild(Ha),fa(Ha,"transform-origin",on/parseInt(Ha.style.width)*100+"% "+ln/parseInt(Ha.style.height)*100+"%")}},_onDragStart:function(t,e){var a=this,n=t.dataTransfer,i=a.options;Fa("dragStart",this,{evt:t}),Pn.eventCanceled?this._onDrop():(Fa("setupClone",this),Pn.eventCanceled||((Ua=Da(La)).removeAttribute("id"),Ua.draggable=!1,Ua.style["will-change"]="",this._hideClone(),ha(Ua,this.options.chosenClass,!1),Pn.clone=Ua),a.cloneId=Mn((function(){Fa("clone",a),Pn.eventCanceled||(a.options.removeCloneOnHide||Wa.insertBefore(Ua,La),a._hideClone(),Ba({sortable:a,name:"clone"}))})),!e&&ha(La,i.dragClass,!0),e?(mn=!0,a._loopId=setInterval(a._emulateDragOver,50)):(ca(document,"mouseup",a._onDrop),ca(document,"touchend",a._onDrop),ca(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(a,n,La)),ra(document,"drop",a),fa(La,"transform","translateZ(0)")),pn=!0,a._dragStartId=Mn(a._dragStarted.bind(a,e,t)),ra(document,"selectstart",a),sn=!0,ia&&fa(document.body,"user-select","none"))},_onDragOver:function(t){var e,a,n,i,o=this.el,l=t.target,s=this.options,r=s.group,c=Pn.active,u=Ga===r,d=s.sort,p=Ka||c,m=this,_=!1;if(!bn){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=pa(l,s.draggable,o,!0),I("dragOver"),Pn.eventCanceled)return _;if(La.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return P(!1);if(mn=!1,c&&!s.disabled&&(u?d||(n=Ra!==Wa):Ka===this||(this.lastPutMode=Ga.checkPull(this,c,La,t))&&r.checkPut(this,c,La,t))){if(i="vertical"===this._getDirection(t,l),e=ya(La),I("dragOverValid"),Pn.eventCanceled)return _;if(n)return Ra=Wa,D(),this._hideClone(),I("revert"),Pn.eventCanceled||(qa?Wa.insertBefore(La,qa):Wa.appendChild(La)),P(!0);var h=ka(o,s.draggable);if(!h||function(t,e,a){var n=ya(ka(a.el,a.options.draggable)),i=10;return e?t.clientX>n.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}(t,i,this)&&!h.animated){if(h===La)return P(!1);if(h&&o===t.target&&(l=h),l&&(a=ya(l)),!1!==En(Wa,o,La,e,l,a,t,!!l))return D(),h&&h.nextSibling?o.insertBefore(La,h.nextSibling):o.appendChild(La),Ra=o,E(),P(!0)}else if(h&&function(t,e,a){var n=ya(xa(a.el,0,a.options,!0)),i=10;return e?t.clientX<n.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<n.top-i||t.clientY<n.bottom&&t.clientX<n.left}(t,i,this)){var f=xa(o,0,s,!0);if(f===La)return P(!1);if(a=ya(l=f),!1!==En(Wa,o,La,e,l,a,t,!1))return D(),o.insertBefore(La,f),Ra=o,E(),P(!0)}else if(l.parentNode===o){a=ya(l);var v,b,g,y=La.parentNode!==o,w=!function(t,e,a){var n=a?t.left:t.top,i=a?t.right:t.bottom,o=a?t.width:t.height,l=a?e.left:e.top,s=a?e.right:e.bottom,r=a?e.width:e.height;return n===l||i===s||n+o/2===l+r/2}(La.animated&&La.toRect||e,l.animated&&l.toRect||a,i),x=i?"top":"left",k=wa(l,"top","top")||wa(La,"top","top"),C=k?k.scrollTop:void 0;if(rn!==l&&(b=a[x],hn=!1,fn=!w&&s.invertSwap||y),v=function(t,e,a,n,i,o,l,s){var r=n?t.clientY:t.clientX,c=n?a.height:a.width,u=n?a.top:a.left,d=n?a.bottom:a.right,p=!1;if(!l)if(s&&un<c*i){if(!hn&&(1===cn?r>u+c*o/2:r<d-c*o/2)&&(hn=!0),hn)p=!0;else if(1===cn?r<u+un:r>d-un)return-cn}else if(r>u+c*(1-i)/2&&r<d-c*(1-i)/2)return function(t){return Ca(La)<Ca(t)?1:-1}(e);if((p=p||l)&&(r<u+c*o/2||r>d-c*o/2))return r>u+c/2?1:-1;return 0}(t,l,a,i,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,fn,rn===l),0!==v){var S=Ca(La);do{S-=v,g=Ra.children[S]}while(g&&("none"===fa(g,"display")||g===Ha))}if(0===v||g===l)return P(!1);rn=l,cn=v;var j=l.nextElementSibling,$=!1,T=En(Wa,o,La,e,l,a,t,$=1===v);if(!1!==T)return 1!==T&&-1!==T||($=1===T),bn=!0,setTimeout(Nn,30),D(),$&&!j?o.appendChild(La):l.parentNode.insertBefore(La,$?j:l),k&&Ia(k,0,C-k.scrollTop),Ra=La.parentNode,void 0===b||fn||(un=Math.abs(b-ya(l)[x])),E(),P(!0)}if(o.contains(La))return P(!1)}return!1}function I(s,r){Fa(s,m,Je({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:n,dragRect:e,targetRect:a,canSort:d,fromSortable:p,target:l,completed:P,onMove:function(a,n){return En(Wa,o,La,e,a,ya(a),t,n)},changed:E},r))}function D(){I("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function P(e){return I("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(m),m!==p&&(ha(La,Ka?Ka.options.ghostClass:c.options.ghostClass,!1),ha(La,s.ghostClass,!0)),Ka!==m&&m!==Pn.active?Ka=m:m===Pn.active&&Ka&&(Ka=null),p===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){I("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===La&&!La.animated||l===o&&!l.animated)&&(rn=null),s.dragoverBubble||t.rootEl||l===document||(La.parentNode[Pa]._isOutsideThisEl(t.target),!e&&In(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function E(){Ja=Ca(La),Xa=Ca(La,s.draggable),Ba({sortable:m,name:"change",toEl:o,newIndex:Ja,newDraggableIndex:Xa,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ca(document,"mousemove",this._onTouchMove),ca(document,"touchmove",this._onTouchMove),ca(document,"pointermove",this._onTouchMove),ca(document,"dragover",In),ca(document,"mousemove",In),ca(document,"touchmove",In)},_offUpEvents:function(){var t=this.el.ownerDocument;ca(t,"mouseup",this._onDrop),ca(t,"touchend",this._onDrop),ca(t,"pointerup",this._onDrop),ca(t,"touchcancel",this._onDrop),ca(document,"selectstart",this)},_onDrop:function(t){var e=this.el,a=this.options;Ja=Ca(La),Xa=Ca(La,a.draggable),Fa("drop",this,{evt:t}),Ra=La&&La.parentNode,Ja=Ca(La),Xa=Ca(La,a.draggable),Pn.eventCanceled||(pn=!1,fn=!1,hn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zn(this.cloneId),zn(this._dragStartId),this.nativeDraggable&&(ca(document,"drop",this),ca(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ia&&fa(document.body,"user-select",""),fa(La,"transform",""),t&&(sn&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),Ha&&Ha.parentNode&&Ha.parentNode.removeChild(Ha),(Wa===Ra||Ka&&"clone"!==Ka.lastPutMode)&&Ua&&Ua.parentNode&&Ua.parentNode.removeChild(Ua),La&&(this.nativeDraggable&&ca(La,"dragend",this),An(La),La.style["will-change"]="",sn&&!pn&&ha(La,Ka?Ka.options.ghostClass:this.options.ghostClass,!1),ha(La,this.options.chosenClass,!1),Ba({sortable:this,name:"unchoose",toEl:Ra,newIndex:null,newDraggableIndex:null,originalEvent:t}),Wa!==Ra?(Ja>=0&&(Ba({rootEl:Ra,name:"add",toEl:Ra,fromEl:Wa,originalEvent:t}),Ba({sortable:this,name:"remove",toEl:Ra,originalEvent:t}),Ba({rootEl:Ra,name:"sort",toEl:Ra,fromEl:Wa,originalEvent:t}),Ba({sortable:this,name:"sort",toEl:Ra,originalEvent:t})),Ka&&Ka.save()):Ja!==Za&&Ja>=0&&(Ba({sortable:this,name:"update",toEl:Ra,originalEvent:t}),Ba({sortable:this,name:"sort",toEl:Ra,originalEvent:t})),Pn.active&&(null!=Ja&&-1!==Ja||(Ja=Za,Xa=Qa),Ba({sortable:this,name:"end",toEl:Ra,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Fa("nulling",this),Wa=La=Ra=Ha=qa=Ua=Va=Ya=tn=en=sn=Ja=Xa=Za=Qa=rn=cn=Ka=Ga=Pn.dragged=Pn.ghost=Pn.clone=Pn.active=null,gn.forEach((function(t){t.checked=!0})),gn.length=an=nn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":La&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],a=this.el.children,n=0,i=a.length,o=this.options;n<i;n++)pa(t=a[n],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||On(t));return e},sort:function(t,e){var a={},n=this.el;this.toArray().forEach((function(t,e){var i=n.children[e];pa(i,this.options.draggable,n,!1)&&(a[t]=i)}),this),e&&this.captureAnimationState(),t.forEach((function(t){a[t]&&(n.removeChild(a[t]),n.appendChild(a[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return pa(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var a=this.options;if(void 0===e)return a[t];var n=Oa.modifyOption(this,t,e);a[t]=void 0!==n?n:e,"group"===t&&jn(a)},destroy:function(){Fa("destroy",this);var t=this.el;t[Pa]=null,ca(t,"mousedown",this._onTapStart),ca(t,"touchstart",this._onTapStart),ca(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ca(t,"dragover",this),ca(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),_n.splice(_n.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ya){if(Fa("hideClone",this),Pn.eventCanceled)return;fa(Ua,"display","none"),this.options.removeCloneOnHide&&Ua.parentNode&&Ua.parentNode.removeChild(Ua),Ya=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Ya){if(Fa("showClone",this),Pn.eventCanceled)return;La.parentNode!=Wa||this.options.group.revertClone?qa?Wa.insertBefore(Ua,qa):Wa.appendChild(Ua):Wa.insertBefore(Ua,La),this.options.group.revertClone&&this.animate(La,Ua),fa(Ua,"display",""),Ya=!1}}else this._hideClone()}},yn&&ra(document,"touchmove",(function(t){(Pn.active||pn)&&t.cancelable&&t.preventDefault()})),Pn.utils={on:ra,off:ca,css:fa,find:ba,is:function(t,e){return!!pa(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return t},throttle:Ta,closest:pa,toggleClass:ha,clone:Da,index:Ca,nextTick:Mn,cancelNextTick:zn,detectDirection:Sn,getChild:xa},Pn.get=function(t){return t[Pa]},Pn.mount=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Pn.utils=Je(Je({},Pn.utils),t.utils)),Oa.mount(t)}))},Pn.create=function(t,e){return new Pn(t,e)},Pn.version="1.15.0";var Fn,Bn,Ln,Rn,Hn,Wn,qn=[],Vn=!1;function Un(){qn.forEach((function(t){clearInterval(t.pid)})),qn=[]}function Yn(){clearInterval(Wn)}var Zn=Ta((function(t,e,a,n){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,r=e.scrollSpeed,c=ga(),u=!1;Bn!==a&&(Bn=a,Un(),Fn=e.scroll,i=e.scrollFn,!0===Fn&&(Fn=ja(a,!0)));var d=0,p=Fn;do{var m=p,_=ya(m),h=_.top,f=_.bottom,v=_.left,b=_.right,g=_.width,y=_.height,w=void 0,x=void 0,k=m.scrollWidth,C=m.scrollHeight,S=fa(m),j=m.scrollLeft,$=m.scrollTop;m===c?(w=g<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=y<C&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=g<k&&("auto"===S.overflowX||"scroll"===S.overflowX),x=y<C&&("auto"===S.overflowY||"scroll"===S.overflowY));var T=w&&(Math.abs(b-o)<=s&&j+g<k)-(Math.abs(v-o)<=s&&!!j),I=x&&(Math.abs(f-l)<=s&&$+y<C)-(Math.abs(h-l)<=s&&!!$);if(!qn[d])for(var D=0;D<=d;D++)qn[D]||(qn[D]={});qn[d].vx==T&&qn[d].vy==I&&qn[d].el===m||(qn[d].el=m,qn[d].vx=T,qn[d].vy=I,clearInterval(qn[d].pid),0==T&&0==I||(u=!0,qn[d].pid=setInterval(function(){n&&0===this.layer&&Pn.active._onTouchMove(Hn);var e=qn[this.layer].vy?qn[this.layer].vy*r:0,a=qn[this.layer].vx?qn[this.layer].vx*r:0;"function"==typeof i&&"continue"!==i.call(Pn.dragged.parentNode[Pa],a,e,t,Hn,qn[this.layer].el)||Ia(qn[this.layer].el,a,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=ja(p,!1)));Vn=u}}),30),Jn=function(t){var e=t.originalEvent,a=t.putSortable,n=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var r=a||i;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),r&&!r.el.contains(u)&&(o("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function Qn(){}function Xn(){}Qn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=xa(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),a&&a.animateAll()},drop:Jn},Ge(Qn,{pluginName:"revertOnSpill"}),Xn.prototype={onSpill:function(t){var e=t.dragEl,a=t.putSortable||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:Jn},Ge(Xn,{pluginName:"removeOnSpill"});Pn.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?ra(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ra(document,"pointermove",this._handleFallbackAutoScroll):e.touches?ra(document,"touchmove",this._handleFallbackAutoScroll):ra(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?ca(document,"dragover",this._handleAutoScroll):(ca(document,"pointermove",this._handleFallbackAutoScroll),ca(document,"touchmove",this._handleFallbackAutoScroll),ca(document,"mousemove",this._handleFallbackAutoScroll)),Yn(),Un(),clearTimeout(ma),ma=void 0},nulling:function(){Hn=Bn=Fn=Vn=Wn=Ln=Rn=null,qn.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var a=this,n=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,i);if(Hn=t,e||this.options.forceAutoScrollFallback||aa||ea||ia){Zn(t,this.options,o,e);var l=ja(o,!0);!Vn||Wn&&n===Ln&&i===Rn||(Wn&&Yn(),Wn=setInterval((function(){var o=ja(document.elementFromPoint(n,i),!0);o!==l&&(l=o,Un()),Zn(t,a.options,o,e)}),10),Ln=n,Rn=i)}else{if(!this.options.bubbleScroll||ja(o,!0)===ga())return void Un();Zn(t,this.options,ja(o,!1),!1)}}},Ge(t,{pluginName:"scroll",initializeByDefault:!0})}),Pn.mount(Xn,Qn);const Gn=Pn;var Kn=a(998),ti=a.n(Kn),ei=a(1865),ai=a.n(ei);const ni=n({name:"maybe_multi_select",props:["newColumn","column","size"],data:function(){return{appReady:!1}},methods:{getFromSelectionStr:function(t){return t?t.split(/\r?\n/):[]},maybeBlur:function(t){console.log(t),t||this.$emit("blur")}},mounted:function(){if("yes"==this.column.isMultiple){var t=this.newColumn[this.column.key];t?"string"==typeof t&&(this.newColumn[this.column.key]=[t]):this.newColumn[this.column.key]=[]}this.appReady=!0}},(function(){var t=this,e=t._self._c;return t.appReady?e("div",{staticClass:"maybe_nt_multi_select",staticStyle:{"max-width":"90%"}},["yes"==t.column.isMultiple?[e("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","allow-create":"",size:t.size,"default-first-option":"",placeholder:t.column.placeholder||"Select"},on:{"remove-tag":function(e){return t.$emit("blur")},change:function(e){return t.$emit("blur")}},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)]:[e("el-select",{staticStyle:{width:"100%"},attrs:{size:t.size,filterable:"","allow-create":"","default-first-option":"",placeholder:t.column.placeholder||"Select"},on:{change:function(e){return t.$emit("blur")}},model:{value:t.newColumn[t.column.key],callback:function(e){t.$set(t.newColumn,t.column.key,e)},expression:"newColumn[column.key]"}},t._l(t.getFromSelectionStr(t.column.selections),(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)]],2):t._e()}),[],!1,null,null,null).exports;const ii=n({name:"maybe_multi_select",props:["newColumn","column","adding_counter"],data:function(){return{appReady:!1,upload_action:"",data:{},preferedThum:window.ninja_table_admin.prefered_thumb}},watch:{adding_counter:function(){console.log(this.adding_counter);this.newColumn[this.column.key]={permalink:"",image_thumb:"",image_full:""},this.data=this.newColumn[this.column.key]}},methods:{beforeAvatarUpload:function(t){return"image/jpg"==t.type||"image/gif"==t.type||"image/png"==t.type||(this.$message.error("Image need to be jpg/png/gif format"),!1)},handleAvatarSuccess:function(t,e){console.log(t)},initUploader:function(t){var e=this,a=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(t,n){console.log(n),e.newColumn[e.column.key].alt_text=n.alt||n.title,e.newColumn[e.column.key].image_full=n.url,e.newColumn[e.column.key].image_thumb=e.getThumb(n),wp.media.editor.send.attachment=a},wp.media.editor.open(),!1},initFileUploader:function(t){var e=this,a=wp.media.editor.send.attachment;return wp.media.editor.send.attachment=function(t,n){e.newColumn[e.column.key].permalink=n.url,wp.media.editor.send.attachment=a},wp.media.editor.open(),!1},getThumb:function(t){var e=this,a=t.width,n=t.url,i=!1;return"original"==this.preferedThum?t.url:(G()(t.sizes,(function(t,o){o==e.preferedThum&&(i=t.url),(!i||t.width>300)&&(t.width<400?i=t.url:t.width<a&&(a=t.width,n=t.url))})),i||n)},preinitUploader:function(){var t=this.newColumn[this.column.key],e={permalink:"",image_thumb:"",image_full:""};t?"string"==typeof t&&(this.newColumn[this.column.key]=e):this.newColumn[this.column.key]=e,this.data=this.newColumn[this.column.key]},remove:function(){this.data.image_thumb=""}},mounted:function(){this.preinitUploader(),this.appReady=!0}},(function(){var t=this,e=t._self._c;return t.appReady?e("div",{staticClass:"image_selector"},["hyperlinked"==t.column.link_type||"none"==t.column.link_type||"image_light_box"==t.column.link_type||"iframe_ligtbox"==t.column.link_type?[e("div",{staticClass:"nt_form_group"},[e("label",[t._v("Upload Image")]),t._v(" "),e("div",{staticClass:"nt_form_input"},[t.data.image_thumb?e("div",{staticClass:"image_preview"},[e("img",{attrs:{src:t.data.image_thumb}})]):t._e(),t._v(" "),e("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"info"},on:{click:t.initUploader}},[t.data.image_thumb?e("span",[t._v("Change Image")]):e("span",[t._v("Upload Image")])]),t._v(" "),t.data.image_thumb?e("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"warning"},on:{click:t.remove}},[t._v("\n Remove Image\n ")]):t._e()],1)]),t._v(" "),"hyperlinked"==t.column.link_type||"iframe_ligtbox"==t.column.link_type?e("div",{staticClass:"nt_form_group"},["iframe_ligtbox"==t.column.link_type?e("label",[t._v("Iframe URL (Only The URL)")]):e("label",[t._v("Target URL")]),t._v(" "),e("div",{staticClass:"nt_form_input"},[e("el-input",{attrs:{type:"url",size:"mini",placeholder:"Permalink"},model:{value:t.data.permalink,callback:function(e){t.$set(t.data,"permalink",e)},expression:"data.permalink"}})],1)]):t._e()]:t._e()],2):t._e()}),[],!1,null,null,null).exports;const oi={name:"ninjaDatePicker",props:["column","new_column","only_picker"],computed:{elementFormat:function(){var t=this.column.dateFormat,e="h:m:s",a="";return a="DD-MMM-YY"==t?"dd-MMM-yy":t.replace(/Y/g,"y").replace(/D/g,"d"),"date"===this.type?a:(this.column.timeFormat&&(e=this.column.timeFormat),a+" "+e)},type:function(){return"yes"===this.column.showTime?"datetime":"date"}},methods:{slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}};var li=a(9757),si={insert:"head",singleton:!1};s()(li.Z,si);li.Z.locals;const ri=n(oi,(function(){var t=this,e=t._self._c;return e("div",{class:"yes"==t.only_picker?"ninja_only_picker":"ninja_date_picker"},["yes"!=t.only_picker?e("input",{directives:[{name:"model",rawName:"v-model",value:t.new_column[t.column.key],expression:"new_column[column.key]"}],staticClass:"form-control",attrs:{placeholder:t.column.dateFormat,type:"text",size:"small",id:t.slugify(t.column.key)},domProps:{value:t.new_column[t.column.key]},on:{input:function(e){e.target.composing||t.$set(t.new_column,t.column.key,e.target.value)}}}):t._e(),t._v(" "),e("el-date-picker",{attrs:{type:t.type,size:"small","value-format":t.elementFormat,format:t.elementFormat,placeholder:"Pick a day"},on:{blur:function(e){return t.$emit("blur")}},model:{value:t.new_column[t.column.key],callback:function(e){t.$set(t.new_column,t.column.key,e)},expression:"new_column[column.key]"}})],1)}),[],!1,null,null,null).exports,ci={name:"add_data",props:["title","show","columns","table_id","item","manualSort","insertAfterPosition","insertAfterId","type"],data:function(){return{row_config:!1,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},btnLoading:!1,continueAdding:!0,newColumn:{},has_pro:!!window.ninja_table_admin.hasPro,position:"last",modal_title:"Add Row",item_settings:{},created_at:"",adding_counter:1}},computed:{editId:function(){return this.item&&this.item.id},shouldNotContinueAdding:function(){return!(!this.editId&&"duplicate"!==this.type)}},watch:{item:function(){this.initNewColumnObj(),this.item||(this.modal_title="Add Row")}},methods:{addData:function(){var t=this,e=!1;if(G()(this.newColumn,(function(t){t&&(e=!0)})),e){this.btnLoading=!0;var a={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&&(a.insert_after_id=this.insertAfterId,a.position=parseInt(this.insertAfterPosition)+1),this.$post(a).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 n=a.position;t.manualSort||t.insertAfterId||(n="last-first"),t.$emit("createItem",e.item,n)}!t.editId&&t.continueAdding||t.$emit("modal_close"),"duplicate"===t.type&&t.$emit("modal_close"),t.adding_counter++}else t.$message({showClose:!0,message:"Failed to add/update data. Please reload this page and try again",type:"error"})})).fail((function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})})).always((function(){t.btnLoading=!1}))}else this.$message({showClose:!0,message:"Please add at least 1 value to the row",type:"error"})},closeModal:function(){this.$emit("modal_close")},initNewColumnObj:function(){var t=this,e={};G()(this.columns,(function(a){t.item&&t.item.values[a.key]?e[a.key]=t.item.values[a.key]:"selection"==a.data_type&&"yes"==a.isMultiple?e[a.key]=[]:e[a.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",{}),G()(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 a=e.html;e.text;this.newColumn[t]=a},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},getFromSelectionStr:function(t){return t?t.split("\n"):[]}},mounted:function(){this.initNewColumnObj()},components:{GetPro:i,wp_editor:C,NinjaDatePicker:ri,mayBeSelect:ni,ImageSelector:ii}};var ui=a(6661),di={insert:"head",singleton:!1};s()(ui.Z,di);ui.Z.locals;const pi=n(ci,(function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.title,visible:t.show,top:"50px","close-on-click-modal":!1,"append-to-body":!0},on:{"update:visible":function(e){t.show=e},close:t.closeModal}},[t.show?e("div",[t._l(t.columns,(function(a){return e("div",{key:a.key,staticClass:"form-group"},[e("label",{attrs:{for:t.slugify(a.key)}},[t._v(t._s(a.name||a.key))]),t._v(" "),"textarea"==a.data_type?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[a.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:a.name,id:t.slugify(a.key)},domProps:{value:t.newColumn[a.key]},on:{input:function(e){e.target.composing||t.$set(t.newColumn,a.key,e.target.value)}}})]):"html"==a.data_type?e("div",[e("wp_editor",{attrs:{editor_id:t.slugify(a.key)},model:{value:t.newColumn[a.key],callback:function(e){t.$set(t.newColumn,a.key,e)},expression:"newColumn[column.key]"}})],1):"date"==a.data_type?e("div",[e("ninja-date-picker",{attrs:{column:a,new_column:t.newColumn}})],1):"selection"==a.data_type?e("div",[e("may-be-select",{attrs:{column:a,newColumn:t.newColumn}})],1):"image"==a.data_type&&t.has_pro?e("div",[e("image-selector",{attrs:{adding_counter:t.adding_counter,column:a,newColumn:t.newColumn}})],1):"button"==a.data_type&&t.has_pro?e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[a.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:"Valid button URL",type:"url",id:t.slugify(a.key)},domProps:{value:t.newColumn[a.key]},on:{input:function(e){e.target.composing||t.$set(t.newColumn,a.key,e.target.value)}}}),t._v(" "),e("small",[t._v("Please provide valid URL")])]):e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[a.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:a.name,type:"text",id:t.slugify(a.key)},domProps:{value:t.newColumn[a.key]},on:{input:function(e){e.target.composing||t.$set(t.newColumn,a.key,e.target.value)}}})])])})),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():e("div",[t._v("\n Add at\n "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"5px"},attrs:{type:"radio",value:"last"},domProps:{checked:t._q(t.position,"last")},on:{change:function(e){t.position="last"}}}),t._v("Last\n "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.position,expression:"position"}],staticStyle:{"margin-left":"10px"},attrs:{type:"radio",value:"first"},domProps:{checked:t._q(t.position,"first")},on:{change:function(e){t.position="first"}}}),t._v("First\n ")])],2):t._e(),t._v(" "),t.row_config?e("div",{staticClass:"row_config_container"},[t.has_pro?[e("h3",[t._v("Row Settings")]),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form-group form_row_half"},[e("label",[t._v("Row Background Color")]),t._v(" "),e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.row_bg,callback:function(e){t.$set(t.item_settings,"row_bg",e)},expression:"item_settings.row_bg"}})],1),t._v(" "),e("div",{staticClass:"form-group form_row_half"},[e("label",[t._v("Row Text Color")]),t._v(" "),e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.text_color,callback:function(e){t.$set(t.item_settings,"text_color",e)},expression:"item_settings.text_color"}})],1)]),t._v(" "),e("h3",[t._v("Cell Color Customization")]),t._v(" "),e("table",{staticClass:"wp-list-table widefat fixed striped"},[e("thead",[e("tr",[e("th",[t._v("Column")]),t._v(" "),e("th",[t._v("Background Color")]),t._v(" "),e("th",[t._v("Text Color")])])]),t._v(" "),e("tbody",t._l(t.columns,(function(a){return e("tr",{key:a.key},[e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[a.key]["background-color"],callback:function(e){t.$set(t.item_settings.cell[a.key],"background-color",e)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),e("td",[e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[a.key].color,callback:function(e){t.$set(t.item_settings.cell[a.key],"color",e)},expression:"item_settings.cell[column.key]['color']"}})],1)])})),0)]),t._v(" "),t.insertAfterPosition?t._e():e("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[e("label",[t._v("\n Data Create Date\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you use table sorting by create date then you can change create date to sort your data"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"Select date and time"},model:{value:t.created_at,callback:function(e){t.created_at=e},expression:"created_at"}})],1)]:[e("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),e("p",[t._v("Using this module, You can set cell and row level colors of your data, It's a pro feature, Please\n purchase pro to unlock this feature")]),t._v(" "),e("get-pro")]],2):t._e(),t._v(" "),e("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[e("div",[e("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.continueAdding,expression:"continueAdding"}],attrs:{type:"checkbox",id:"adding_more"},domProps:{checked:Array.isArray(t.continueAdding)?t._i(t.continueAdding,null)>-1:t.continueAdding},on:{change:function(e){var a=t.continueAdding,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&(t.continueAdding=a.concat([null])):o>-1&&(t.continueAdding=a.slice(0,o).concat(a.slice(o+1)))}else t.continueAdding=i}}}),t._v(" Continue Adding\n ")])])],t._v(" "),e("div",{staticClass:"dialog-footer-item"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.row_config=!t.row_config}}},[e("i",{staticClass:"el-icon-setting"})]),t._v(" "),e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],attrs:{disabled:t.btnLoading,type:"primary",size:"small"},on:{click:t.addData}},[t.editId?e("span",[t._v(" "+t._s(t.$t("Update")))]):e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])}),[],!1,null,null,null).exports;const mi={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}};var _i=a(1651),hi={insert:"head",singleton:!1};s()(_i.Z,hi);_i.Z.locals;const fi=n(mi,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"alert",class:"alert-"+t.alertClass},[t._t("default")],2)}),[],!1,null,null,null).exports;const vi={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}};var bi=a(5311),gi={insert:"head",singleton:!1};s()(bi.Z,gi);bi.Z.locals;const yi=n(vi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"remove"},[e("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),e("div",{staticStyle:{"text-align":"right",margin:"0"}},[e("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[t._v("\n "+t._s(t.$t("cancel"))+"\n ")]),t._v(" "),e("el-button",{attrs:{type:"danger",size:"mini"},on:{click:t.proceedConfirmation}},[t._v("\n "+t._s(t.$t("confirm"))+"\n ")])],1)]),t._v(" "),t.label?e("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):e("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[e("span",{staticClass:"dashicons dashicons-trash"})])],1)}),[],!1,null,"590fa148",null).exports;const wi={name:"SortableUpgradeNotice",props:["show"],data:function(){return{upgradeGuide:window.ninja_table_admin.upgradeGuide}},computed:{visible:{get:function(){return this.show},set:function(){this.close()}}},methods:{close:function(){this.$emit("close")}}};var xi=a(2361),ki={insert:"head",singleton:!1};s()(xi.Z,ki);xi.Z.locals;const Ci=n(wi,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[e("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[e("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n ")]),t._v(" "),e("span",[t._v("\n "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n ")]),t._v(" "),e("br"),t._v(" "),e("br"),t._v(" "),e("span",[e("a",{attrs:{href:t.upgradeGuide,target:"_blank"}},[t._v(t._s(t.$t("Click here")))]),t._v(" "+t._s(t.$t("to view the upgrade guide."))+"\n ")])])}),[],!1,null,null,null).exports;const Si=n({name:"ninja_color_picker",props:["label","value","disabled"],model:{prop:"value",event:"update"},methods:{changeColor:function(t){this.$emit("update",t)}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form_group"},[e("el-color-picker",{attrs:{"show-alpha":"",value:t.value,disabled:t.disabled},on:{"active-change":t.changeColor,input:function(e){return t.$emit("update",e)}}}),t._v(" "),t.label?e("label",[t._v(t._s(t.label))]):t._e()],1)}),[],!1,null,null,null).exports;function ji(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function $i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const Ti={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{GetPro:i,NinjaColorPicker:Si},data:function(){return{defaultCondition:{conditionalOperator:null,conditionalValue:null,conditionalValue2:null,targetAction:null,targetValue:null,targetValueColor:null}}},methods:{addCondition:function(){this.column.conditions||this.$set(this.column,"conditions",[]),this.column.conditions.push(function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ji(Object(a),!0).forEach((function(e){$i(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ji(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},this.defaultCondition))},removeCondition:function(t){this.column.conditions.splice(t,1)},shouldShowColorPicker:function(t){return-1!=["set-cell-color","set-cell-bg-color","set-row-color","set-row-bg-color","set-column-color","set-column-bg-color"].indexOf(t.targetAction)}},mounted:function(){this.column&&!this.column.conditions&&this.$set(this.column,"conditions",[])}},Ii=Ti;var Di=a(8684),Pi={insert:"head",singleton:!1};s()(Di.Z,Pi);Di.Z.locals;var Ei=n(Ii,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"column-condition-config"},[t.hasPro?e("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),e("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n Add Condition\n ")])],1):e("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[e("div",{staticClass:"conditional-settings-title"},[e("H3",[t._v("Conditional Formatting")]),t._v(" "),e("p",[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like.\n Conditional Formatting is a pro feature which can be enabled by using Ninja Table pro Add-on. Ninja\n Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),e("get-pro",{attrs:{size:"small"}})],1)]),t._v(" "),e("hr"),t._v(" "),t._l(t.column.conditions,(function(a,n){return e("el-row",{key:n},[e("el-col",{attrs:{sm:2,md:2}},[e("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),e("el-col",{attrs:{sm:5,md:5}},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:a.conditionalOperator,callback:function(e){t.$set(a,"conditionalOperator",e)},expression:"condition.conditionalOperator"}},[e("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),e("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Less Than Or Equal To",value:"less-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Greater Than Or Equal To",value:"greater-than-or-equal-to"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?e("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),e("el-col",{attrs:{sm:5,md:5}},[e("el-input",{attrs:{size:"small",placeholder:"between"==a.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:a.conditionalValue,callback:function(e){t.$set(a,"conditionalValue",e)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==a.conditionalOperator?e("el-col",{attrs:{sm:4,md:4}},[e("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:a.conditionalValue2,callback:function(e){t.$set(a,"conditionalValue2",e)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),e("el-col",{attrs:{sm:1,md:1}},[e("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),e("el-col",{attrs:{sm:5,md:5}},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:a.targetAction,callback:function(e){t.$set(a,"targetAction",e)},expression:"condition.targetAction"}},[e("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[e("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),e("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),e("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),e("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),e("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),e("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[e("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),e("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),e("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),e("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[e("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),e("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),e("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),e("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),e("el-col",{attrs:{sm:4,md:4}},[e("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(a),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:a.targetValue,callback:function(e){t.$set(a,"targetValue",e)},expression:"condition.targetValue"}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(a),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[e("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:a.targetValueColor,callback:function(e){t.$set(a,"targetValueColor",e)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),e("el-col",{attrs:{sm:1,md:1}},[e("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-minus",disabled:!t.hasPro},on:{click:function(e){return t.removeCondition(n)}}})],1)],1)})),t._v(" "),"date"==t.column.data_type?e("div",{staticClass:"nt_suggest"},[e("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),e("p",[t._v("Example Usage")]),t._v(" "),e("ul",[e("li",[t._v("Today's Date: "),e("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Tomorrow's Date: "),e("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Yesterday's Date: "),e("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Date After 10 Days: "),e("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),e("li",[t._v("Date Before 10 Days: "),e("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():e("el-row",[e("el-alert",{attrs:{center:"",closable:!1,title:"You haven't added any conditions for the column yet!",type:"info"}})],1)],2)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"conditional-settings-title"},[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/conditional-column-formatting/"}},[t._v("View\n Documentation")])])}],!1,null,null,null);const Ai=Ei.exports;const Ni=n({name:"WPPostDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[],table_id:this.$route.params.table_id}},watch:{"column.wp_post_custom_data_type":function(){this.$set(this.column,"wp_post_custom_data_value","")}},computed:{selectedField:function(){var t=this,e=this.post_data_types.find((function(e){return e.key==t.column.wp_post_custom_data_type}));return e||{}},selectedFiledValueType:function(){return this.selectedField&&this.selectedField.value_type?this.selectedField.value_type:"text"}},methods:{setFieldOptions:function(){var t=this;if(this.loading=!0,window.ninja_wp_posts_custom_fields)return this.post_data_types=window.ninja_wp_posts_custom_fields,void(this.loading=!1);this.$get({action:"ninja_table_wp-posts_get_custom_field_options",table_id:this.table_id}).then((function(e){window.ninja_wp_posts_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields})).fail((function(t){})).always((function(){t.loading=!1}))}},mounted:function(){this.setFieldOptions()}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[e("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),e("hr"),t._v(" "),"custom"==t.column.source_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Type")]),t._v(" "),e("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Field",size:"small"},model:{value:t.column.wp_post_custom_data_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_type",e)},expression:"column.wp_post_custom_data_type"}},t._l(t.post_data_types,(function(t){return e("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})})),1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Value")]),t._v(" "),e("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[e("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}},t._l(t.selectedField.options,(function(t){return e("el-option",{key:t,attrs:{value:t,label:t}})})),1)]:e("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?e("div",{staticClass:"ninja_instruction"},[e("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?e("p",[e("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2)]:t._e(),t._v(" "),"post_data"==t.column.source_type||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),e("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),"yes"==t.column.permalinked?["post_author"==t.column.original_name?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Permalink Action Type")]),t._v(" "),e("p",[t._v("\n Enable this if you want to make the author as table filter action. So when user click on those filters then they will see only the selected author posts.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2):t._e(),t._v(" "),"yes"!=t.column.filter_permalinked?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Open Link To New tab")]),t._v(" "),e("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:"tax_data"==t.column.source_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),e("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Taxonomy Separator")]),t._v(" "),e("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Permalink Action Type")]),t._v(" "),e("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Open Link To New tab")]),t._v(" "),e("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)}),[],!1,null,null,null).exports;function Oi(t){return Oi="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},Oi(t)}function Mi(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}const zi=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"object"==("undefined"==typeof formulaParser?"undefined":Oi(formulaParser))?(this.instance=new formulaParser.Parser,this._addFunctionNUMVAL(this.instance),this._addFunctionDATEVAL(this.instance)):this.instance=!1}var e,a,n;return e=t,(a=[{key:"parse",value:function(t){var e=this;if(!t||!this.instance)return t;var a=this.advancedParsablesShortcodes(t);if(a&&a.forEach((function(a){var n=a.replace("[f]","").replace("[/f]","");if(n){var i=e.instance.parse(n),o=i.result?i.result:"";t=t.replace(a,o)}})),this.isParsable(t)){var n=t.substr(1);if(n){var i=this.instance.parse(n);t=i.result?i.result:""}}return t}},{key:"isParsable",value:function(t){return"string"==typeof t&&0===t.indexOf("=")}},{key:"advancedParsablesShortcodes",value:function(t){if(-1==t.indexOf("[f]",t))return!1;var e=t.match(/\[f][\s\S]*?\[\/f]/g);return e||!1}},{key:"getSupportedFormulas",value:function(){var t=formulaParser.SUPPORTED_FORMULAS;return t.includes("NUMVAL")||(t.push("NUMVAL"),t.push("DATEVAL")),t}},{key:"getInstance",value:function(){return this.instance}},{key:"_addFunctionNUMVAL",value:function(t){t.setFunction("NUMVAL",(function(t){var e=t[0]||"";if(!e)return e;e=e.toString().replace(/[^\d\.,]+/g,"");var a=t[1]||",";e=e.indexOf(a)>-1?e.split(a).join(""):e.split(",").join("");var n=t[2]||".";e.indexOf(n)>-1&&(e=e.split(n).join("."));var i=Number(e);return isNaN(i)?e:i}))}},{key:"_addFunctionDATEVAL",value:function(t){t.setFunction("DATEVAL",(function(t){var e=t[0]||"",a=t[1]||"";return e&&a?moment(e,a).unix():e}))}}])&&Mi(e.prototype,a),n&&Mi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());const Fi={name:"ColumnsEditor",components:{GetPro:i,wp_editor:C,condition:Ai,"wp-post-dynamic-column":Ni,"content-transformer":n({name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},components:{ninja_alert:fi,NinjaPremiumNotice:V},watch:{"settings.formula_support":function(){this.storeSettings()}},data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,tableId:this.$route.params.table_id,doingAjax:!1,supported_formullas:[],show_formulas:!1}},computed:{placeholder:function(){var t="Please Input Transform Values (HTML supported)";return"yes"==this.settings.formula_support&&(t="Please Input Transform Values (HTML and Excel Formula are supported)"),t}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,table_settings:this.settings};this.$post(e).success((function(t){})).fail((function(t){})).always((function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)}))}},mounted:function(){this.hasPro&&(this.supported_formullas=zi.supported_formullas)}},(function(){var t=this,e=t._self._c;return e("div",[e("p",[t._v("\n Data Transformer is a powerful tool where you can concat any column values easily into any valid html and show as computed value.\n ")]),t._v(" "),e("el-input",{attrs:{type:"textarea",rows:"4",placeholder:t.placeholder,disabled:!t.hasPro},model:{value:t.column.transformed_value,callback:function(e){t.$set(t.column,"transformed_value",e)},expression:"column.transformed_value"}}),t._v(" "),t.hasPro?t._e():e("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),e("div",{staticClass:"ninja_instruction"},[e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no"},model:{value:t.settings.formula_support,callback:function(e){t.$set(t.settings,"formula_support",e)},expression:"settings.formula_support"}},[t._v("Enable Excel Formula support for Transform Value")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}]},[e("p",[t._v("Note: Excel formuala is an experimental feature so all formulas may not work. We are improving this feature day by day so please don't be mad if some formulas don't work properly.")]),t._v(" "),e("el-button",{attrs:{size:"mini"},on:{click:function(e){t.show_formulas=!0}}},[t._v("Show Formulas")]),t._v(" "),e("el-dialog",{attrs:{title:"Supported Excel Formullas",visible:t.show_formulas,width:"30%"},on:{"update:visible":function(e){t.show_formulas=e}}},[e("ul",{staticStyle:{margin:"0px 20px","padding-top":"20px"}},t._l(t.supported_formullas,(function(a){return e("li",[t._v(t._s(a))])})),0)])],1)],1),t._v(" "),e("div",{staticClass:"ninja_instruction"},[e("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),e("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),e("tbody",t._l(t.columns,(function(a){return e("tr",{key:a.key},[e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[t._v("{{"),e("span",[t._v("row."+t._s(a.key))]),t._v("}}")])])})),0)]),t._v(" "),e("br"),t._v(" "),t._m(1),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}],staticStyle:{"font-weight":"bold"}},[t._v("You can use any Excel formula into the transform value box")])])],1)}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Column Title")]),t._v(" "),e("th",[t._v("Reference Shortcode")])])])},function(){var t=this,e=t._self._c;return e("p",[t._v("You may "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/value-transformation/",target:"_blank"}},[t._v("check the documentation here.")])])}],!1,null,null,null).exports,DynamicWooColumn:n({name:"WPWooDynamicColumn",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,post_data_types:[],table_id:this.$route.params.table_id}},watch:{"column.wp_post_custom_data_source_type":function(){this.$set(this.column,"source_type",this.selectedField.source_type),"tax_data"==this.selectedField.source_type&&this.$set(this.column,"taxonomy_separator",", "),this.$set(this.column,"wp_post_custom_data_key","")}},computed:{selectedField:function(){var t=this,e=this.post_data_types.find((function(e){return e.key==t.column.wp_post_custom_data_source_type}));return e||{}},selectedFiledValueType:function(){return this.selectedField&&this.selectedField.value_type?this.selectedField.value_type:"text"}},methods:{setFieldOptions:function(){var t=this;if(this.loading=!0,window.ninja_wp_woo_custom_fields)return this.post_data_types=window.ninja_wp_woo_custom_fields,void(this.loading=!1);this.$get({action:"ninja_table_wp_woo_get_custom_field_options",table_id:this.table_id}).then((function(e){window.ninja_wp_woo_custom_fields=e.data.custom_fields,t.post_data_types=e.data.custom_fields})).fail((function(t){})).always((function(){t.loading=!1}))}},mounted:function(){this.setFieldOptions()}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[e("h4",[t._v(t._s(t.$t("Dynamic Column Data Settings")))]),t._v(" "),e("hr"),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Type")]),t._v(" "),e("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"Select Data Type",size:"small"},model:{value:t.column.wp_post_custom_data_source_type,callback:function(e){t.$set(t.column,"wp_post_custom_data_source_type",e)},expression:"column.wp_post_custom_data_source_type"}},t._l(t.post_data_types,(function(t){return e("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})})),1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Field Value")]),t._v(" "),e("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[e("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_key,callback:function(e){t.$set(t.column,"wp_post_custom_data_key",e)},expression:"column.wp_post_custom_data_key"}},t._l(t.selectedField.options,(function(t,a){return e("el-option",{key:a,attrs:{value:a,label:t}})})),1),t._v(" "),"featured_image"==t.column.wp_post_custom_data_source_type?e("div",[e("el-radio-group",{model:{value:t.column.image_permalink_type,callback:function(e){t.$set(t.column,"image_permalink_type",e)},expression:"column.image_permalink_type"}},[e("el-radio",{attrs:{label:"lightbox"}},[t._v("Make image as lightbox")]),t._v(" "),e("el-radio",{attrs:{label:"linked"}},[t._v("Link to Product page")]),t._v(" "),e("el-radio",{attrs:{label:""}},[t._v("None")])],1),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:"linked"==t.column.image_permalink_type,expression:"column.image_permalink_type == 'linked'"}]},[e("el-checkbox",{attrs:{"true-label":"_blank","false-label":"no"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}},[t._v("Open Link in new tab")])],1)],1):t._e()]:e("el-input",{attrs:{type:t.selectedFiledValueType,placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_value,callback:function(e){t.$set(t.column,"wp_post_custom_data_value",e)},expression:"column.wp_post_custom_data_value"}}),t._v(" "),t.selectedField&&t.selectedField.instruction?e("div",{staticClass:"ninja_instruction"},[e("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?e("p",[e("a",{attrs:{target:"_blank",href:t.selectedField.learn_more_url}},[t._v("\n "+t._s(t.selectedField.learn_more_text)+"\n ")])]):t._e()]):t._e()],2),t._v(" "),"buy_now_button"==t.column.wp_post_custom_data_key?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Buy Now Button Text"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Buy Now Button Text")]),t._v(" "),e("p",[t._v("Provide Buy Now Button Text")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{placeholder:"Buy Now Button Text",size:"small"},model:{value:t.column.buy_now_button_text,callback:function(e){t.$set(t.column,"buy_now_button_text",e)},expression:"column.buy_now_button_text"}})],2):t._e(),t._v(" "),"post_title"==t.column.wp_post_custom_data_key||"custom"==t.column.source_type&&"featured_image"==t.column.wp_post_custom_data_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),e("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.wp_post_custom_data_key?e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Author Permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}):e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to post permalink"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}}),t._v(" "),e("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2)]:"tax_data"==t.column.source_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),e("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no",value:"yes",label:"Link to Taxonomy"},model:{value:t.column.permalinked,callback:function(e){t.$set(t.column,"permalinked",e)},expression:"column.permalinked"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Taxonomy Separator")]),t._v(" "),e("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{placeholder:"Enter Value",size:"small"},model:{value:t.column.taxonomy_separator,callback:function(e){t.$set(t.column,"taxonomy_separator",e)},expression:"column.taxonomy_separator"}})],2),t._v(" "),"yes"==t.column.permalinked?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Permalink Action Type")]),t._v(" "),e("p",[t._v("\n Enable this if you want to make the taxonomies as table filter action. So when user click on those filters then they will see only those type of posts.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"",value:"yes",label:"Make Taxonomies as Table Filter"},model:{value:t.column.filter_permalinked,callback:function(e){t.$set(t.column,"filter_permalinked",e)},expression:"column.filter_permalinked"}})],2),t._v(" "),"yes"!=t.column.filter_permalinked?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Open Link To New tab")]),t._v(" "),e("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{"true-label":"_blank","false-label":"",value:"_blank",label:"Open link to new tab"},model:{value:t.column.permalink_target,callback:function(e){t.$set(t.column,"permalink_target",e)},expression:"column.permalink_target"}})],2):t._e()]:t._e()]:t._e()],2)}),[],!1,null,null,null).exports,NinjaColorPicker:Si},props:{model:{type:Object,default:function(){return{}}},hasPro:{type:Boolean,default:!1},updating:{type:Boolean,default:!1},moreSettings:{type:Boolean,default:!1},hideCancel:{type:Boolean,default:!1},dataSourceType:{type:String,default:"default"},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},data:function(){return{hideDelete:!1,dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},breakPointsOptions:{"":this.$t("Always show in all devices"),all:this.$t("Hidden On Desktop"),xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),hidden:this.$t("Totally hidden on all devices")},dateFormats:{"M/D/YYYY":"4/28/2018","M/D/YY":"4/28/18","MM/DD/YY":"04/28/18","MM/DD/YYYY":"04/28/2018","MMM/DD/YYYY":"Apr/28/2018","YY/MM/DD":"18/04/28","YYYY-MM-DD":"2018-04-28","DD-MMM-YY":"28-Apr-18"},timeFormats:{"h:m a":"4:8 am/pm","h:m:s a":"4:8:2 am/pm","hh:mm a":"04:08 am/pm","hh:mm:ss a":"04:08:12 am/pm","h:m A":"4:8 AM/PM","h:m:s A":"4:8:2 AM/PM","hh:mm A":"04:08 AM/PM","hh:mm:ss A":"04:08:12 AM/PM","H:m":"1:8","H:m:s":"1:8:2","HH:mm":"01:08","HH:mm:ss":"01:08:12"},weekDays:{0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},formatType:"standard",has_pro:!!window.ninja_table_admin.hasPro,alignmentOptions:{"":"Default",center:"Center",left:"Left",right:"Right",justify:"Justify",start:"Start",end:"End"},contentAlignmentOptions:{"":"Default",center:"Center",left:"Left",right:"Right"},activeTab:"basic",showConfirm:!1,doingAjax:!1}},watch:{formatType:function(){"custom"===this.formatType&&(this.model.dateFormat="")},hideDelete:function(t,e){this.hideDelete="basic"!=this.activeTab},"model.data_type":function(){"image"==this.model.data_type?this.model.link_type||this.$set(this.model,"link_type","none"):"number"!=this.model.data_type||this.model.decimal_system||(","==this.model.decimalSeparator?this.$set(this.model,"decimal_system","eu"):this.$set(this.model,"decimal_system","us"),this.changeDecimalStyle())}},methods:{addColumn:function(){this.hasPro||"button"!=this.model.data_type&&"image"!=this.model.data_type||(this.model.data_type="text"),this.$emit("add")},cancel:function(){this.$emit("cancel")},deleteColumn:function(){this.$emit("delete")},store:function(){this.$emit("store")},onTabClick:function(t,e){"basic"==t.name?this.hideDelete=!1:(this.hideDelete=!0,this.moreSettings&&(this.moreSettings=!this.moreSettings))},showProPopUp:function(){this.hasPro||window.ninjaTableBus.$emit("show_pro_popup",1)},changeDecimalStyle:function(){"us"==this.model.decimal_system?(this.$set(this.model,"decimalSeparator","."),this.$set(this.model,"thousandSeparator",",")):(this.$set(this.model,"decimalSeparator",","),this.$set(this.model,"thousandSeparator","."))}},mounted:function(){var t=this;"default"==this.dataSourceType&&this.$set(this.dataTypesOptions,"image","Image/File/Lightbox"),this.dataTypesOptions.button=this.$t("Button/Link"),this.model&&(this.model.hasOwnProperty("dateFormat")||this.$set(this.model,"dateFormat",""),this.model.dateFormat=this.model.dateFormat||"",this.model.enable_html_content=-1!==["true",!0].indexOf(this.model.enable_html_content),this.model.header_html_content=this.model.header_html_content||"",this.model.contentAlign||this.$set(this.model,"contentAlign",""),this.model.textAlign||this.$set(this.model,"textAlign",""),this.model.maxWidthUnit||this.$set(this.model,"maxWidthUnit","px"),this.model.timeFormat||this.$set(this.model,"timeFormat",""),this.model.relAttributes||this.$set(this.model,"relAttributes",[]),this.model.force_download||this.$set(this.model,"force_download",""),window.ninjaTableBus.$on("tableDoingAjax",(function(e){t.doingAjax=e})))}};var Bi=a(1128),Li={insert:"head",singleton:!1};s()(Bi.Z,Li);Bi.Z.locals;const Ri=n(Fi,(function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[e("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Name"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Column Name")]),t._v(" "),e("p",[t._v("\n Enter a column name to set the header title.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Key"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Column Key")]),t._v(" "),e("p",[t._v("\n Column key is for data mapping, export and import table data.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small",disabled:t.updating},model:{value:t.model.key,callback:function(e){t.$set(t.model,"key",e)},expression:"model.key"}}),t._v(" "),t.updating?t._e():e("small",[t._v("Please use english letters only")])],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Data Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),e("p",[t._v("\n Choose the data type of the column.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select Data Type of this column"},model:{value:t.model.data_type,callback:function(e){t.$set(t.model,"data_type",e)},expression:"model.data_type"}},t._l(t.dataTypesOptions,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.hasPro,expression:"hasPro"}]},[t._v("Select HTML Field if you want to add Link, media or any type of html")])],2),t._v(" "),"date"==t.model.data_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Format"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),e("p",[t._v("\n Pattern of the date value.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[e("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),e("el-radio",{attrs:{label:"custom",disabled:!t.hasPro},nativeOn:{click:function(e){return t.showProPopUp.apply(null,arguments)}}},[t._v("Custom")])],1),t._v(" "),"custom"!=t.model.formatType?e("el-form-item",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.model.dateFormat,expression:"model.dateFormat"}],on:{change:function(e){var a=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?a:a[0])}}},[e("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,(function(a,n){return e("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(n)+" - (Ex: "+t._s(a)+")\n ")])}))],2)]):e("el-form-item",[e("el-input",{attrs:{size:"small",placeholder:"Enter moment.js supported format"},model:{value:t.model.dateFormat,callback:function(e){t.$set(t.model,"dateFormat",e)},expression:"model.dateFormat"}})],1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Show Time"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Show Time")]),t._v(" "),e("p",[t._v("\n If you select yes, then time picker will be available\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.showTime,callback:function(e){t.$set(t.model,"showTime",e)},expression:"model.showTime"}}),t._v(" "),"yes"===t.model.showTime?e("select",{directives:[{name:"model",rawName:"v-model",value:t.model.timeFormat,expression:"model.timeFormat"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.model,"timeFormat",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.timeFormats,(function(a,n){return e("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(n)+" - (Ex: "+t._s(a)+")\n ")])}))],2):t._e()],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("First Day"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("First Day")]),t._v(" "),e("p",[t._v("\n The first day of the week, e.g. Sunday, Monday, etc.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select first day of the week"},model:{value:t.model.firstDayOfWeek,callback:function(e){t.$set(t.model,"firstDayOfWeek",e)},expression:"model.firstDayOfWeek"}},t._l(t.weekDays,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1)],2)]:"number"==t.model.data_type&&t.hasPro?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Separator Style"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),e("p",[t._v("\n Please Provide The Thousand/Decimal Separator If Any.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{on:{change:function(e){return t.changeDecimalStyle()}},model:{value:t.model.decimal_system,callback:function(e){t.$set(t.model,"decimal_system",e)},expression:"model.decimal_system"}},[e("el-radio",{attrs:{label:"us"}},[t._v("US Style - decimal point (123,234.01)")]),t._v(" "),e("el-radio",{attrs:{label:"eu"}},[t._v("European Style - decimal comma (123.234,01)")])],1)],2)]:"selection"==t.model.data_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Select Items"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Select Field")]),t._v(" "),e("p",[t._v("\n Use Select Field to add data in your table from predefined list\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-form-item",[t.has_pro?t._e():e("p",[e("b",[t._v("Selection feature is only available on Pro version Please upgrade to\n pro to unlock this feature")])]),t._v(" "),e("el-input",{attrs:{type:"textarea",size:"small",disabled:!t.has_pro,placeholder:"Enter Select items one per line",autosize:{minRows:4,maxRows:8}},model:{value:t.model.selections,callback:function(e){t.$set(t.model,"selections",e)},expression:"model.selections"}}),t._v(" "),e("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Placeholder")]),t._v(" "),e("p",[t._v("\n Enter the selection placeholder, default: 'Select'\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-form-item",[e("el-input",{attrs:{type:"text",size:"small",disabled:!t.has_pro,placeholder:"Enter placeholder"},model:{value:t.model.placeholder,callback:function(e){t.$set(t.model,"placeholder",e)},expression:"model.placeholder"}})],1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Enable Multi-Selection"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Multiple Selection")]),t._v(" "),e("p",[t._v("\n If you select yes, Then admin can select multiple item on create data\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-switch",{attrs:{"active-value":"yes"},model:{value:t.model.isMultiple,callback:function(e){t.$set(t.model,"isMultiple",e)},expression:"model.isMultiple"}})],2)]:"image"==t.model.data_type?[t.hasPro?t._e():[e("el-form-item",[e("p",{staticStyle:{color:"red"}},[t._v("Image upload with lightbox, download link is a pro feature. It will\n not work without Pro Version "),e("b",[e("get-pro")],1)])])],t._v(" "),e("el-form-item",{attrs:{label:"Image Linkable?"}},[e("el-radio",{attrs:{disabled:!t.hasPro,label:"none"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Image Only")]),t._v(" "),e("el-radio",{attrs:{disabled:!t.hasPro,label:"image_light_box"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Image Lightbox")]),t._v(" "),e("el-radio",{attrs:{disabled:!t.hasPro,label:"iframe_ligtbox"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Iframe Lightbox")]),t._v(" "),e("el-radio",{attrs:{disabled:!t.hasPro,label:"hyperlinked"},model:{value:t.model.link_type,callback:function(e){t.$set(t.model,"link_type",e)},expression:"model.link_type"}},[t._v("Link to URL")])],1),t._v(" "),"file_download"==t.model.link_type?e("el-form-item",{attrs:{label:"Download Button Text / HTML"}},[e("el-input",{attrs:{disabled:!t.hasPro,type:"textarea",placeholder:"Download Button Text / HTML"},model:{value:t.model.download_button,callback:function(e){t.$set(t.model,"download_button",e)},expression:"model.download_button"}})],1):t._e(),t._v(" "),"hyperlinked"==t.model.link_type||"file_download"==t.model.link_type?e("el-form-item",[e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"_blank","false-label":"_self"},model:{value:t.model.link_target,callback:function(e){t.$set(t.model,"link_target",e)},expression:"model.link_target"}},[t._v("Open Link\n in new window\n ")])],1):t._e()]:"button"==t.model.data_type?[t.hasPro?t._e():[e("el-form-item",[e("p",{staticStyle:{color:"red"}},[t._v("Button on Table is a pro Feature. It will not work without Pro Version. "),e("b",[e("get-pro")],1)])])],t._v(" "),e("el-form-item",{attrs:{label:"Button Text"}},[e("el-input",{attrs:{size:"small",type:"text",placeholder:"Button Text (HTML supported)"},model:{value:t.model.button_text,callback:function(e){t.$set(t.model,"button_text",e)},expression:"model.button_text"}}),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"_blank","false-label":"_self"},model:{value:t.model.link_target,callback:function(e){t.$set(t.model,"link_target",e)},expression:"model.link_target"}},[t._v("Open Link\n in new window\n ")]),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"nt_rounded_btn","false-label":""},model:{value:t.model.btn_extra_class,callback:function(e){t.$set(t.model,"btn_extra_class",e)},expression:"model.btn_extra_class"}},[t._v("Make\n Button as rounded corner\n ")]),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"download","false-label":""},model:{value:t.model.force_download,callback:function(e){t.$set(t.model,"force_download",e)},expression:"model.force_download"}},[t._v("Make\n Force download\n ")])],1),t._v(" "),e("el-form-item",{attrs:{label:"Button Style"}},[e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Background"},model:{value:t.model.btn_bg_color,callback:function(e){t.$set(t.model,"btn_bg_color",e)},expression:"model.btn_bg_color"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Text Color"},model:{value:t.model.btn_text_color,callback:function(e){t.$set(t.model,"btn_text_color",e)},expression:"model.btn_text_color"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{disabled:!t.hasPro,label:"Border Color"},model:{value:t.model.btn_border_color,callback:function(e){t.$set(t.model,"btn_border_color",e)},expression:"model.btn_border_color"}})],1)])]),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link With Rel Attribute"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Sponsored, Nofollow & NoReferrer")]),t._v(" "),e("p",[t._v("\n Check one or multiple a rel attribute of the column\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.model.relAttributes?e("el-checkbox-group",{model:{value:t.model.relAttributes,callback:function(e){t.$set(t.model,"relAttributes",e)},expression:"model.relAttributes"}},t._l(["sponsored","nofollow","noreferrer"],(function(t){return e("el-checkbox",{key:t,attrs:{label:t}})})),1):t._e()],2)]:t._e(),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Responsive Breakpoint"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Responsive Breakpoint")]),t._v(" "),e("p",[t._v("\n Choose responsive breakpoints of your table columns. "),e("br"),t._v("\n For more details check "),e("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables"}},[t._v("documentation")]),t._v(".\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini",placeholder:"Select Responsive Breakpoint"},model:{value:t.model.breakpoints,callback:function(e){t.$set(t.model,"breakpoints",e)},expression:"model.breakpoints"}},t._l(t.breakPointsOptions,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1)],2),t._v(" "),"wp-posts"==t.dataSourceType?e("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):"wp_woo"==t.dataSourceType?[e("dynamic-woo-column",{attrs:{columns:t.columns,column:t.model}})]:t._e()],2),t._v(" "),e("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[e("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():e("div",{staticClass:"ninja_table_inline_upgrade"},[e("H3",[t._v("Advanced Column Settings")]),t._v(" "),e("p",[t._v("\n Customize your table's column's width, custom css class, content alignments, column styling\n with this feature.\n Advanced Column Settings is a pro feature and You can use it once you upgrade to Ninja\n Tables Pro.\n Ninja Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),e("get-pro",{attrs:{size:"small"}})],1),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Extra Classes"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Extra CSS Classes")]),t._v(" "),e("p",[t._v("\n Enter extra CSS classes to the column. "),e("br"),t._v("\n Use `space` to separate each class.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small",disabled:!t.hasPro},model:{value:t.model.classes,callback:function(e){t.$set(t.model,"classes",e)},expression:"model.classes"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Max Width"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),e("p",[t._v("\n Enter the maximum width of the column. This will be applied for the entire\n column\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-col",{attrs:{xs:22,md:22,lg:22,xl:22}},[e("el-form-item",[e("el-input",{attrs:{size:"small",type:"number",disabled:!t.hasPro},model:{value:t.model.width,callback:function(e){t.$set(t.model,"width",e)},expression:"model.width"}})],1)],1),t._v(" "),e("el-col",{attrs:{xs:2,md:2,lg:2,xl:2}},[e("el-form-item",[e("el-select",{attrs:{size:"small",placeholder:"Select"},model:{value:t.model.maxWidthUnit,callback:function(e){t.$set(t.model,"maxWidthUnit",e)},expression:"model.maxWidthUnit"}},[e("el-option",{attrs:{label:"px",value:"px"}}),t._v(" "),e("el-option",{attrs:{label:"%",value:"%"}})],1)],1)],1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header Text Align"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Header Text Alignment")]),t._v(" "),e("p",[t._v("\n Choose the text alignment. This will be applied only for header\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini",placeholder:"Text Align"},model:{value:t.model.textAlign,callback:function(e){t.$set(t.model,"textAlign",e)},expression:"model.textAlign"}},t._l(t.alignmentOptions,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1)],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Row Content Text Align"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Content Text Alignment")]),t._v(" "),e("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini",placeholder:"Content Alignment"},model:{value:t.model.contentAlign,callback:function(e){t.$set(t.model,"contentAlign",e)},expression:"model.contentAlign"}},t._l(t.contentAlignmentOptions,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1)],2),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{disabled:!t.hasPro,value:!0,label:"Enable HTML Table Header Content"},model:{value:t.model.enable_html_content,callback:function(e){t.$set(t.model,"enable_html_content",e)},expression:"model.enable_html_content"}})],1),t._v(" "),t.model.enable_html_content?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header HTML Content"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Header HTML Content")]),t._v(" "),e("p",[t._v("\n Provide content for table column header if you want to show html content.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("wp_editor",{model:{value:t.model.header_html_content,callback:function(e){t.$set(t.model,"header_html_content",e)},expression:"model.header_html_content"}})],2):t._e(),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filterable"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filterable")]),t._v(" "),e("p",[t._v("\n If You enable this then this column data will not be filterable at the frontend.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend search for this column data"},model:{value:t.model.unfilterable,callback:function(e){t.$set(t.model,"unfilterable",e)},expression:"model.unfilterable"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Sortable"))+"\n\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Sortable")]),t._v(" "),e("p",[t._v("\n If You enable this then this column data will not be sortable at the frontend.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.hasPro,"true-label":"yes","false-label":"no",value:"yes",label:"Disable frontend sorting for this column"},model:{value:t.model.unsortable,callback:function(e){t.$set(t.model,"unsortable",e)},expression:"model.unsortable"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Background"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Background color")]),t._v(" "),e("p",[t._v("\n You can set background color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":"",size:"small"},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Text Color"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Text Color color")]),t._v(" "),e("p",[t._v("\n You can set Column Text color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":"",size:"small"},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),e("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[e("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[e("content-transformer",{attrs:{settings:t.settings,columns:t.columns,column:t.model}})],1),t._v(" "),e("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),e("div",{staticClass:"form_group"},[e("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():e("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[e("p",[t._v("Are you sure to delete this?")]),t._v(" "),e("div",{staticStyle:{"text-align":"right",margin:"0"}},[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel\n ")]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm\n ")])],1),t._v(" "),t.hideDelete?t._e():e("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete"))+"\n ")])],1),t._v(" "),e("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.store.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("Update"))+"\n ")])]:[t.hideCancel?t._e():e("el-button",{attrs:{size:"small"},on:{click:function(e){return e.preventDefault(),t.cancel.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("Cancel"))+"\n ")]),t._v(" "),e("el-button",{attrs:{loading:t.doingAjax,type:"primary",size:"small"},on:{click:function(e){return e.preventDefault(),t.addColumn.apply(null,arguments)}}},[t._v("Add Column\n ")])]],2)])],1)],1)}),[],!1,null,null,null).exports;const Hi={name:"FluentformNav",components:{FluentForm:it},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}};var Wi=a(7825),qi={insert:"head",singleton:!1};s()(Wi.Z,qi);Wi.Z.locals;const Vi=n(Hi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-form-nav"},[e("el-collapse",[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),e("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),e("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)}),[],!1,null,null,null).exports;const Ui={name:"External",components:{"external-data-source":rt},props:{tableCreated:{type:Function},config:{type:Object},isEditableMessage:{required:!0},hasPro:{required:!0}},data:function(){return{state:!1,url:this.value,activated_features:window.ninja_table_admin.activated_features}}};var Yi=a(3571),Zi={insert:"head",singleton:!1};s()(Yi.Z,Zi);Yi.Z.locals;const Ji=n(Ui,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"external-source-nav"},[e("el-collapse",[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),e("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),e("external-data-source",{attrs:{type:t.config.table.dataSourceType,tableCreated:t.tableCreated,columns:t.config.columns,table:t.config.table,hasPro:t.hasPro,editing:!0,activated_features:t.activated_features}})],2)],1)],1)}),[],!1,null,null,null).exports;const Qi={name:"RowSQLNav",components:{MySqlEditor:ft,RemoteSqlConnection:vt},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean},column_count:{type:Number}},data:function(){return{error_html:"",loading:!1,active:"",connection_details:{},has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{updateSql:function(){var t=this;this.loading=!0,this.error_html="";var e={action:"ninja_table_raw_sql_update_sql",table_id:this.config.table.ID,sql:this.config.table.sql};"external"==this.config.table.connection_type&&(e.connection_details=this.connection_details),this.$post(e).then((function(e){"string"!=typeof e?(t.tableCreated(),t.$message({showClose:!0,message:e.data.message,type:"success"})):t.error_html=e})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)})).always((function(){t.loading=!1}))},getRemoteConnectionDetails:function(){var t=this;this.$get({action:"ninja_table_raw_sql_remote_connection_details",table_id:this.config.table.ID}).then((function(e){t.connection_details=e.data.connection_details})).fail((function(t){console.log(t)}))}},mounted:function(){this.column_count||(this.active="1"),"external"==this.config.table.connection_type&&this.getRemoteConnectionDetails()}};var Xi=a(6161),Gi={insert:"head",singleton:!1};s()(Xi.Z,Gi);Xi.Z.locals;const Ki=n(Qi,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-form-nav"},[t.has_sql_permission?e("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),e("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),e("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.config.table.sql,callback:function(e){t.$set(t.config.table,"sql",e)},expression:"config.table.sql"}}),t._v(" "),e("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),e("p",[t._v("Check the documentation for advanced use cases: "),e("a",{attrs:{target:"_blank",rel:"noopener",href:"https://wpmanageninja.com/docs/ninja-tables/integrations/construct-table-from-custom-sql/"}},[t._v("Ninja Tables SQL Integration Documentation")])]),t._v(" "),e("p",[t._v("Available Dynamic Placeholders: "),e("code",[t._v("{current_user_id}")]),t._v(" "),e("code",[t._v("{current_date}")]),t._v(" "),e("code",[t._v("{current_date_time}")]),t._v(" "),e("code",[t._v("{current_post_id}")]),t._v(" "),e("code",[t._v("{current_post_title}")]),t._v(" "),e("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSql()}}},[t._v("Update SQL Query")])],1)],2),t._v(" "),"external"==t.config.table.connection_type?e("el-collapse-item",{attrs:{name:"2"}},[e("template",{slot:"title"},[e("strong",[t._v("SQL Connection Details:")])]),t._v(" "),e("remote-sql-connection",{attrs:{connection:t.connection_details}}),t._v(" "),t.error_html?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSql()}}},[t._v("Update SQL Connection Details")])],1)],2):t._e()],1):[e("el-alert",{attrs:{title:"",type:"error",closable:!1}},[e("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles."),e("br"),t._v("\n You can only see the data and update other settings but can't alter the original SQL.\n ")]),t._v(" "),e("b",[t._v("Current SQL Query: ")]),t._v(" "),e("p",[e("code",[t._v(t._s(t.config.table.sql))])])])]],2)}),[],!1,null,null,null).exports;const to={name:"WPPostsNav",components:{WPPosts:Q,columnsEditor:Ri},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{activeNames:["1"]}},methods:{addNewColumn:function(){this.$emit("add")}}};var eo=a(9178),ao={insert:"head",singleton:!1};s()(eo.Z,ao);eo.Z.locals;const no=n(to,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"fluent-form-nav"},[e("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{title:"Table Query Settings and New Column",name:"1"}},[e("el-tabs",{attrs:{type:"border-card"}},[e("el-tab-pane",{attrs:{label:"Table Info"}},[e("p",[t._v('This table data is created from wp-posts. Use the "Query Settings" and "Add New Column" tab to customize the columns and query.')])]),t._v(" "),e("el-tab-pane",{attrs:{label:"Query Settings"}},[e("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Add New Column"}},[e("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:t.hasPro,settings:t.config.settings,hideCancel:!0,dataSourceType:"wp-posts"},on:{add:function(e){return t.addNewColumn()}}})],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports;const io={name:"woo_nav_edit",props:["config","model"],components:{WooNav:K,ColumnsEditor:Ri},data:function(){return{query_terms:[],appearance:this.config.table.appearance_settings||{},loading:!1}},methods:{saveSettings:function(){var t=this;this.saving=!0,this.$post({action:"ninja_table_save_query_settings_woo_table",table_id:this.config.table.ID,query_selections:this.config.table.query_selections,query_conditions:this.config.table.query_conditions,appearance_settings:this.config.table.appearance_settings}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.$emit("reloadData",1)})).fail((function(t){})).always((function(){t.saving=!1}))},addNewColumn:function(){this.$emit("add")}},mounted:function(){}};var oo=a(935),lo={insert:"head",singleton:!1};s()(oo.Z,lo);oo.Z.locals;const so=n(io,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"nt-woo-nav"},[e("el-tabs",{attrs:{type:"border-card"}},[e("el-tab-pane",{staticClass:"nt-appearance",attrs:{label:"Appearance"}},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_before_table,callback:function(e){t.$set(t.appearance,"show_cart_before_table",e)},expression:"appearance.show_cart_before_table"}},[t._v("Show Cart Details Before Table")]),t._v(" "),e("br"),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_after_table,callback:function(e){t.$set(t.appearance,"show_cart_after_table",e)},expression:"appearance.show_cart_after_table"}},[t._v("Show Cart Details After Table")]),t._v(" "),e("br"),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_cart_button,callback:function(e){t.$set(t.appearance,"show_cart_button",e)},expression:"appearance.show_cart_button"}},[t._v("Show Go to Cart Button")]),t._v(" "),e("br"),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance.show_checkout_button,callback:function(e){t.$set(t.appearance,"show_checkout_button",e)},expression:"appearance.show_checkout_button"}},[t._v("Show Checkout Button")]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"nt-form-group"},[e("label",{attrs:{for:"cartBtnText"}},[t._v("\n Cart Text\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.appearance.cartBtnText,expression:"appearance.cartBtnText"}],attrs:{type:"text",id:"cartBtnText",placeholder:"Enter cart button text"},domProps:{value:t.appearance.cartBtnText},on:{input:function(e){e.target.composing||t.$set(t.appearance,"cartBtnText",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"nt-form-group"},[e("label",{attrs:{for:"checkoutBtnText"}},[t._v("\n Checkout Text\n ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.appearance.checkoutBtnText,expression:"appearance.checkoutBtnText"}],attrs:{type:"text",id:"checkoutBtnText",placeholder:"Enter checkout button text"},domProps:{value:t.appearance.checkoutBtnText},on:{input:function(e){e.target.composing||t.$set(t.appearance,"checkoutBtnText",e.target.value)}}})]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Query Settings"}},[e("woo-nav",{attrs:{query_selections:t.config.table.query_selections,query_conditions:t.config.table.query_conditions}}),t._v(" "),e("br"),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),e("el-tab-pane",{attrs:{label:"Add New Column"}},[e("columns-editor",{attrs:{model:t.model,columns:t.config.columns,hasPro:!0,settings:t.config.settings,hideCancel:!0,dataSourceType:"wp_woo"},on:{add:function(e){return t.addNewColumn()}}})],1)],1)],1)}),[],!1,null,null,null).exports;function ro(t){return ro="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},ro(t)}a(8091).polyfill();const co=function t(e,a,n,i){var o,l=t,s="";function r(t,e){return t=t[(e=e.pop?e:e.split(".")).shift()]||"",0 in e?r(t,e):t}a=Array.isArray(a)?a:a?[a]:[],a=i?0 in a?[]:[1]:a;for(o=0;o<a.length;o++){var c,u="",d=0,p="object"==ro(a[o])?a[o]:{};(p=Object.assign({},n,p))[""]={"":a[o]},e.replace(/([\s\S]*?)({{((\/)|(\^)|#)(.*?)}}|$)/g,(function(t,e,a,n,i,o,m){d?u+=d&&!i||d>1?t:e:(s+=e.replace(/{{{(.*?)}}}|{{(!?)(&?)(>?)(.*?)}}/g,(function(t,e,a,n,i,o){return e?r(p,e):n?r(p,o):i?l(r(p,o),p):a?"":new Option(r(p,o)).innerHTML})),c=o),i?--d||(m=r(p,m),/^f/.test(ro(m))?s+=m.call(p,u,(function(t){return l(t,p)})):s+=l(u,m,p,c),u=""):++d}))}return s};var uo=a(7955),po=a.n(uo),mo=a(3311),_o=a.n(mo);function ho(t){return ho="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},ho(t)}const fo={name:"TableDataItems",components:{add_data_modal:pi,ninja_pagination:f,Alert:fi,DeletePopOver:yi,SortableUpgradeNotice:Ci,columnsEditor:Ri,FluentFormNav:Vi,ExternalSourceNav:Ji,WPPostsNav:no,RawSqlNav:Ki,WooNavEdit:so,ShowEditableCell:n({name:"show_cell",props:["row","columns","column","formula_support","is_editable"],components:{mayBeSelect:ni,NinjaDatePicker:ri},data:function(){return{is_editing:!1,btnLoading:!1,inital_value:""}},methods:{saveOnly:function(){},maybeSave:function(t){var e=this;if("change"!=t){var a=this.column.key,n=this.row.values[a];if(this.inital_value!=n){this.inital_value=JSON.stringify(n);var i={action:"ninja_tables_ajax_actions",target_action:"update-single-cell",row_id:this.row.id,column_key:a,column_value:n};this.btnLoading=!0,this.is_editing=!1,this.$post(i).then((function(t){console.log(t)})).fail((function(t){e.$message.error("Failed")})).always((function(){e.btnLoading=!1}))}else this.is_editing=!1}},renderTableCell:function(t,e,a){return"image"==e.data_type?"object"==ho(t)&&t?"file_download"==e.link_type?'<a target="'.concat(e.link_target,'" href="').concat(t.permalink,'">').concat(e.download_button,"</a>"):t.image_thumb?'<img src="'.concat(t.image_thumb,'" />'):"":t:"button"==e.data_type?t?"<a ".concat(e.force_download,' target="').concat(e.link_target,'" rel="').concat(e.relAttributes?e.relAttributes.join(" "):"",'" class="nt_btn ').concat(e.btn_extra_class,'" style="color: ').concat(e.btn_text_color,"; background-color: ").concat(e.btn_bg_color,"; border-color: ").concat(e.btn_border_color,"\" href='").concat(t,"'>").concat(e.button_text,"</a>"):"":(Array.isArray(t)&&(t=t.join(", ")),e.transformed_value&&e.transformed_value.trim()&&(t=this.getShortcodes(t,e,this.row,this.columns),"yes"==this.formula_support)?(t=zi.parse(t,e.decimalSeparator),","==e.decimalSeparator&&(t=function(t){var e=(t=t.toString()).split(".")[1],a=e?e.length:0;return Number(t).toLocaleString("es-ES",{minimumFractionDigits:a})}(t)),t):t)},getShortcodes:function(t,e,a,n){a=Object.assign({},a.values);var i=e.transformed_value;1!=a.value_transformation_complete&&(jQuery.each(a,(function(t,e){var i=_o()(n,["key",t]);i&&"number"==i.data_type&&("."==i.decimalSeparator?a[t]=a[t]?a[t].replace(/\,/g,""):a[t]:a[t]=a[t]?a[t].replace(/\./g,"").replace(/\,/g,"."):a[t])})),a.value_transformation_complete=!0),-1!=i.indexOf("{{")&&(i=po()(co(i,{row:a})));var o=i.match(/{row.([^\}]*)}/g);return o&&$.each(o,(function(t,e){var n=e.substring(5,e.length-1);i=i.replace(e,a[n]||"")})),i},getTitle:function(t){return this.cell_editable?"Click to edit":this.isHtml(t)?"":t},isHtml:function(t){var e=(new DOMParser).parseFromString(t,"text/html");return Array.from(e.body.childNodes).some((function(t){return 1===t.nodeType}))}},computed:{cell_editable:function(){if(!this.is_editable)return!1;return-1==["image","button","html"].indexOf(this.column.data_type)}},mounted:function(){this.is_editable&&this.row.values[this.column.key]&&(this.inital_value=JSON.stringify(this.row.values[this.column.key]))}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.btnLoading,expression:"btnLoading"}],class:t.is_editing&&t.cell_editable?"nt_cell_editing":"nt_cell"},[t.is_editing&&t.cell_editable?e("div",{staticClass:"cell_editing"},["selection"==t.column.data_type?e("may-be-select",{attrs:{size:"mini",newColumn:t.row.values,column:t.column},on:{blur:function(e){return t.maybeSave("blur")}}}):"date"==t.column.data_type?e("ninja-date-picker",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{only_picker:"yes",column:t.column,new_column:t.row.values},on:{blur:function(e){return t.maybeSave("blur")}}}):"textarea"==t.column.data_type?e("textarea",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.row.values[t.column.key],expression:"row['values'][column.key]"}],key:t.column.key,staticClass:"nt_inline_textarea",domProps:{value:t.row.values[t.column.key]},on:{blur:function(e){return t.maybeSave("blur")},input:function(e){e.target.composing||t.$set(t.row.values,t.column.key,e.target.value)}}}):e("input",{directives:[{name:"focus",rawName:"v-focus"},{name:"model",rawName:"v-model",value:t.row.values[t.column.key],expression:"row['values'][column.key]"}],key:t.column.key,staticClass:"nt_cell_input",attrs:{type:"text"},domProps:{value:t.row.values[t.column.key]},on:{blur:function(e){return t.maybeSave("blur")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.maybeSave("submit")},input:function(e){e.target.composing||t.$set(t.row.values,t.column.key,e.target.value)}}})],1):e("div",{staticClass:"cell-content",class:t.cell_editable?"nt_cell_editable":"",attrs:{title:t.getTitle(t.row.values[t.column.key])},domProps:{innerHTML:t._s(t.renderTableCell(t.row.values[t.column.key],t.column,t.row.values))},on:{click:function(e){t.is_editing=!0}}})])}),[],!1,null,null,null).exports},props:["config","getColumnSettings","hasPro"],data:function(){return{columnModal:!1,show_meta:!1,new_column:{},has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,isCompact:!0,tableWidth:"100%",tableData:[],searchString:"",doingAjax:!1,addDataModal:!1,tableId:this.$route.params.table_id,loading:!1,syncing:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:20},multipleSelection:[],updateItem:null,editIndex:null,sorting:!1,sortableInstance:null,sortableUpgradeNotice:!1,insertAfterPosition:null,showColumnEditor:!1,currentEditingColumn:!1,addDataModalTitle:"Add Row",dataModalType:"add",dataSource:"default",isUpdatingTableSettings:!1,externalDataSourceUrl:this.config.table.remoteURL,insertAfterId:!1,insertAfterHash:!1}},watch:{searchString:function(){""==this.searchString&&this.getData()},sorting:function(t){if(t){if(!this.has_pro)return this.sorting=!1,void window.ninjaTableBus.$emit("show_pro_popup");if(!this.hasSortable)return this.sorting=!1,void(this.sortableUpgradeNotice=!0)}this.toggleSorting(t)},"new_column.name":function(){this.new_column.key=ai()(this.new_column.name)}},computed:{columns:function(){return this.config&&this.config.columns?this.config.columns:[]},columnLength:function(){return this.columns.length},dataSourceType:function(){var t=this.config;return t&&"dataSourceType"in t.table?t.table.dataSourceType:"default"},isEditable:function(){var t=this.config;return!t||!("isEditable"in t.table)||t.table.isEditable},isEditableMessage:function(){var t=this.config;return t&&"isEditableMessage"in t.table?t.table.isEditableMessage:null}},methods:{getData:function(){var t=this,e={action:"ninja_tables_ajax_actions",target_action:"get-table-data",table_id:this.tableId,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};return this.loading=!0,this.$get(e).success((function(e){t.items=e.data,t.dataSource=e.data_source,t.paginate.total=parseInt(e.total),t.paginate.last_page=parseInt(e.last_page)})).fail((function(t){})).always((function(){t.loading=!1}))},addTableData:function(){},getItemNumber:function(t){return this.paginate.per_page*(this.paginate.current_page-1)+(t+1)},goToPage:function(t){this.paginate.current_page=t,this.getData()},handleSizeChange:function(t){this.paginate.per_page=t,this.getData()},confirmDeleteTable:function(t){confirm(this.$t("Are you sure, You want to delete this table"))&&this.deleteTable(t)},deleteTable:function(t){var e=this,a={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(a).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,a={action:"ninja_tables_ajax_actions",target_action:"delete-data",table_id:this.tableId,id:t},n=this;this.$post(a).then((function(t){e.$message({showClose:!0,message:t.message,type:"success"}),n.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===ti()(this.columns,(function(e){return e.key==t.key}))||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.config.columns.push(this.new_column),this.setNewColumn(),this.columnModal=!1,this.storeSettings())},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",timeFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType&&(t.source_type="custom"),this.new_column=t},initSortable:function(){var t=document.querySelector(".js-sortable-table tbody"),e=this;this.sortableInstance=Gn.create(t,{onEnd:function(t){var a=t.newIndex,n=t.oldIndex,i=e.items[n];e.sortTable(i.id,e.items[a].position);var o=e.items.splice(n,1)[0];e.items.splice(a,0,o)}})},toggleSorting:function(t){var e=this;t?(this.loading=!0,new Promise((function(t,a){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,a)})).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 a=this;this.loading=!0;var n={action:"ninja_tables_sort_table",table_id:this.tableId,id:t,newPosition:e,page:this.paginate.current_page,per_page:this.paginate.per_page,search:this.searchString,default_sorting:this.config.settings.default_sorting};this.$post(n).then((function(t){a.items=t.data,a.paginate.total=parseInt(t.total),a.paginate.last_page=parseInt(t.last_page)})).fail((function(t){console.log(t)})).always((function(){a.loading=!1}))},add:function(){this.updateItem=null,this.insertAfterPosition=null,this.addDataModal=!0,this.dataModalType="add",this.addDataModalTitle="Add Data"},addAfter:function(t){this.hasSortable?(this.updateItem=null,this.addDataModalTitle="Add Data",this.dataModalType="add-after",this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0):this.sortableUpgradeNotice=!0},showColumnConfigModal:function(t){this.currentEditingColumn=this.columns.find((function(e){return e.key===t.key})),this.showColumnEditor=!0},storeSettings:function(){var t=this;window.ninjaTableBus.$emit("updateTableColumns",(function(){t.showColumnEditor=!1,t.currentEditingColumn=!1,t.dataSource&&"default"!=t.dataSource&&t.getData()}))},duplicateData:function(t){this.updateItem=JSON.parse(JSON.stringify(t.row)),this.updateItem.id=null,this.hasSortable&&(this.insertAfterPosition=t.$index+1),this.insertAfterPosition=parseInt(t.row.position),this.insertAfterHash=t.$index,this.insertAfterId=t.row.id,this.addDataModal=!0,this.dataModalType="duplicate",this.addDataModalTitle="Duplicate Data"},reloadSettingsAndData:function(){this.getColumnSettings(),this.getData()},deleteColumn:function(){var t=this,e=ti()(this.config.columns,this.currentEditingColumn);this.showColumnEditor=!1,this.currentEditingColumn=!1,this.config.columns.splice(e,1),this.$nextTick((function(){return t.storeSettings()}))}},mounted:function(){this.getData(),this.tableWidth=jQuery(".wrap").width()+"px",this.setNewColumn()}},vo=fo;var bo=a(44),go={insert:"head",singleton:!1};s()(bo.Z,go);bo.Z.locals;var yo=n(vo,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"table-rows"},[t.isEditable?t._e():["fluent-form"==t.dataSourceType?e("div",{staticClass:"tablenav top"},[e("fluent-form-nav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData}})],1):-1!=t.dataSourceType.indexOf("csv")?e("div",{staticClass:"tablenav top"},[e("external-source-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData},model:{value:t.externalDataSourceUrl,callback:function(e){t.externalDataSourceUrl=e},expression:"externalDataSourceUrl"}})],1):"wp-posts"==t.dataSourceType&&t.new_column?e("div",{staticClass:"tablenav top"},[e("WPPostsNav",{attrs:{config:t.config,model:t.new_column,hasPro:t.has_pro,"is-editable-message":t.isEditableMessage,tableCreated:t.reloadSettingsAndData},on:{add:function(e){return t.addNewColumn()}}})],1):"raw_sql"==t.dataSourceType?e("div",{staticClass:"tablenav top"},[e("raw-sql-nav",{attrs:{"is-editable-message":t.isEditableMessage,loading:t.syncing,config:t.config,column_count:t.columns.length,hasPro:t.has_pro,tableCreated:t.reloadSettingsAndData}})],1):"wp_woo"==t.dataSourceType?e("div",{staticClass:"tablenav top"},[e("div",{staticClass:"woo_data_source_config"},[e("woo-nav-edit",{attrs:{model:t.new_column,config:t.config},on:{add:function(e){return t.addNewColumn()},reloadData:function(e){return t.getData()}}})],1)]):t._e(),t._v(" "),t.columns.length||t.loading?t._e():e("div",[e("h3",{staticStyle:{"text-align":"center"}},[t._v("No Data found based on your data source configaration")])])],t._v(" "),t.columns.length&&t.isEditable?[t.addDataModal?e("add_data_modal",{attrs:{title:t.addDataModalTitle,show:t.addDataModal,table_id:t.tableId,columns:t.columns,item:t.updateItem,"manual-sort":"manual_sort"===t.config.settings.sorting_type,"insert-after-position":t.insertAfterPosition,insertAfterId:t.insertAfterId,type:t.dataModalType},on:{modal_close:t.closeDataModal,updateItem:t.updateItemOnTable,createItem:t.addItemOnTable}}):t._e(),t._v(" "),e("div",{staticClass:"tablenav top"},[e("div",{staticClass:"alignleft actions bulkactions"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var a=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?a:a[0]}}},[e("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),e("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),e("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction.apply(null,arguments)}}},[t._v(t._s(t.$t("Apply")))]),t._v(" "),e("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isCompact,expression:"isCompact"}],attrs:{id:"compact_view",type:"checkbox"},domProps:{checked:Array.isArray(t.isCompact)?t._i(t.isCompact,null)>-1:t.isCompact},on:{change:function(e){var a=t.isCompact,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&(t.isCompact=a.concat([null])):o>-1&&(t.isCompact=a.slice(0,o).concat(a.slice(o+1)))}else t.isCompact=i}}}),t._v(" Compact View\n ")]),t._v(" "),e("label",{staticClass:"show-meta-data"},[t._v("\n | "),e("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),e("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData.apply(null,arguments)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),e("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),e("label",{staticClass:"form_group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.sorting,expression:"sorting"}],attrs:{type:"checkbox",name:"checkbox"},domProps:{checked:Array.isArray(t.sorting)?t._i(t.sorting,null)>-1:t.sorting},on:{change:function(e){var a=t.sorting,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&(t.sorting=a.concat([null])):o>-1&&(t.sorting=a.slice(0,o).concat(a.slice(o+1)))}else t.sorting=i}}}),t._v("\n Sort Manually\n "),t.has_pro?t._e():[t._v("(Pro Feature)")]],2)]),t._v(" "),e("div",{staticClass:"pull-right"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))]),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():e("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[e("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.addColumn()}}},[t._v("\n Add Column\n ")])],1),t._v(" "),t.columns.length?[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"js-sortable-table",class:{compact:t.isCompact,sorting:t.sorting},style:"width: "+t.tableWidth,attrs:{data:t.items,"row-key":"id",border:"","max-height":"600"},on:{"selection-change":t.handleSelectionChange}},[t.isEditable?e("el-table-column",{attrs:{type:"selection",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,(function(a,n){return e("el-table-column",{key:n,attrs:{width:t.columnLength==n+1?"":150},scopedSlots:t._u([{key:"default",fn:function(n){return[e("show-editable-cell",{attrs:{row:n.row,column:a,columns:t.columns,formula_support:t.config.settings.formula_support,is_editable:t.isEditable}})]}}],null,!0)},[t._v(" "),e("template",{slot:"header"},[e("span",[t._v("\n "+t._s(a.name||a.key)),e("i",{staticClass:"el-icon-setting nt-column-config",on:{click:function(e){return t.showColumnConfigModal(a)}}})])])],2)})),t._v(" "),t.isEditable?[t.show_meta?[e("el-table-column",{attrs:{label:"Row ID",width:"100px",prop:"id"}}),t._v(" "),e("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),e("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),e("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(a){return[t.has_pro?e("a",{on:{click:function(e){return t.addAfter(a)}}},[e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[e("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),e("a",{on:{click:function(e){return t.showUpdateModal(a)}}},[e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[e("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),e("a",{on:{click:function(e){return t.duplicateData(a)}}},[e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[e("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),e("delete-pop-over",{on:{deleted:function(e){return t.deleteItem(a.row.id)}}})]}}],null,!1,2116760848)})]:t._e()],2),t._v(" "),e("div",{staticClass:"tablenav bottom"},[t.isEditable?e("div",{staticClass:"alignleft actions bulkactions"},[e("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.bulkAction,expression:"bulkAction"}],attrs:{name:"action"},on:{change:function(e){var a=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?a:a[0]}}},[e("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),e("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),e("button",{staticClass:"button action",on:{click:function(e){return e.preventDefault(),t.handleBulkAction.apply(null,arguments)}}},[t._v(t._s(t.$t("Apply")))])]):t._e(),t._v(" "),e("div",{staticClass:"pull-right"},[e("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100,500,2e3],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1)])]:t._e(),t._v(" "),e("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),e("el-dialog",{staticClass:"no_padding_body",attrs:{"close-on-click-modal":!1,"append-to-body":!0,top:"50px",title:"Edit Table Column : "+t.currentEditingColumn.name,width:"70%",visible:t.showColumnEditor},on:{"update:visible":function(e){t.showColumnEditor=e}}},[t.showColumnEditor&&t.currentEditingColumn?e("columns-editor",{attrs:{dataSourceType:t.config.table.dataSourceType,model:t.currentEditingColumn,hasPro:t.has_pro,updating:!0,columns:t.columns,settings:t.config.settings},on:{store:function(e){return t.storeSettings()},delete:function(e){return t.deleteColumn()},cancel:function(e){t.showColumnEditor=!1}}}):t._e()],1),t._v(" "),e("el-dialog",{attrs:{"close-on-click-modal":!1,top:"50px","append-to-body":!0,title:"Add Table Column",width:"70%",visible:t.columnModal},on:{"update:visible":function(e){t.columnModal=e}}},[e("columns-editor",{attrs:{model:t.new_column,hasPro:t.has_pro,columns:t.config.columns,settings:t.config.settings},on:{add:function(e){return t.addNewColumn()},cancel:function(e){t.columnModal=!t.columnModal}}})],1)],2)}),[],!1,null,null,null);const wo=yo.exports;var xo=a(7361),ko=a.n(xo);const Co={name:"ninja_key_pair_options",components:{draggable:kt()},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}},So=Co;var jo=a(6134),$o={insert:"head",singleton:!1};s()(jo.Z,$o);jo.Z.locals;var To=n(So,(function(){var t=this,e=t._self._c;return e("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),e("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,(function(a,n){return e("tr",[e("td",[e("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),e("td",[e("el-input",{attrs:{size:"mini",type:"text"},model:{value:a.label,callback:function(e){t.$set(a,"label",e)},expression:"filter.label"}})],1),t._v(" "),e("td",[e("el-input",{attrs:{size:"mini",type:"text"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"filter.value"}})],1),t._v(" "),e("td",[e("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){return t.deleteItem(n)}}},[t._v("-")]),t._v(" "),e("el-button",{directives:[{name:"show",rawName:"v-show",value:n+1==t.value.length,expression:"(index + 1) == value.length"}],attrs:{type:"success",size:"mini"},on:{click:function(e){return t.add()}}},[t._v("+")])],1)])})),0)],1)}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v("Label")]),t._v(" "),e("th",[t._v("Filter Value")])])])}],!1,null,null,null);const Io={name:"FilterEditor",components:{KeyPairOptions:To.exports},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return G()(this.columns,(function(e){"date"==e.data_type&&t.push(e)})),t}if("number_range"==this.activeEditor.type){var e=[];return G()(this.columns,(function(t){"number"==t.data_type&&e.push(t)})),e}return this.columns},has_filter_option:function(){return-1!==["radio","checkbox"].indexOf(this.activeEditor.type)},is_manual_select_options:function(){return"select"==this.activeEditor.type&&"manual"==this.activeEditor.select_value_type},need_placeholder:function(){return-1!==["radio","select","date_picker","text_input"].indexOf(this.activeEditor.type)},need_filter_columns:function(){return!("select"==this.activeEditor.type&&"dynamic_data"==this.activeEditor.select_value_type||"reset_filter"==this.activeEditor.type)}},watch:{"activeEditor.type":function(t){"select"==t&&this.$set(this.activeEditor,"select_value_type","manual"),Array.isArray(this.activeEditor.columns)||this.$set(this.activeEditor,"columns",[])}},mounted:function(){Array.isArray(this.activeEditor.columns)||this.$set(this.activeEditor,"columns",[])}};var Do=a(3612),Po={insert:"head",singleton:!1};s()(Do.Z,Po);Do.Z.locals;const Eo={name:"custom_filter",props:["table_id","columns"],components:{GetPro:i,NinjaFilterEditor:n(Io,(function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Title"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filter Title")]),t._v(" "),e("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.title,callback:function(e){t.$set(t.activeEditor,"title",e)},expression:"activeEditor.title"}})],2),t._v(" "),"reset_filter"!=t.activeEditor.type?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Label"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Prefix")]),t._v(" "),e("p",[t._v("This will show on your Table Filter")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.filter_prefix,callback:function(e){t.$set(t.activeEditor,"filter_prefix",e)},expression:"activeEditor.filter_prefix"}}),t._v(" "),e("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter UI Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filter UI")]),t._v(" "),e("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[e("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),e("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),e("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),e("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),e("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),e("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),e("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),e("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Default Placeholder")]),t._v(" "),e("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),"select"==t.activeEditor.type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Value Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Value")]),t._v(" "),e("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.activeEditor.select_value_type,callback:function(e){t.$set(t.activeEditor,"select_value_type",e)},expression:"activeEditor.select_value_type"}},[e("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),e("el-radio-button",{attrs:{label:"dynamic_data"}},[t._v("Dynamic Data from Table Column")])],1)],2),t._v(" "),!t.is_manual_select_options&&t.activeEditor.select_value_type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Target Column"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Column")]),t._v(" "),e("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.dynamic_select_column,callback:function(e){t.$set(t.activeEditor,"dynamic_select_column",e)},expression:"activeEditor.dynamic_select_column"}},t._l(t.current_columns,(function(a){return e("el-radio",{key:a.key,attrs:{label:a.key}},[t._v(t._s(a.name))])})),1)],2),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.parse_comma_separated,callback:function(e){t.$set(t.activeEditor,"parse_comma_separated",e)},expression:"activeEditor.parse_comma_separated"}},[t._v(" Parse Comma Separated Words")])],1),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.disable_auto_sorting,callback:function(e){t.$set(t.activeEditor,"disable_auto_sorting",e)},expression:"activeEditor.disable_auto_sorting"}},[t._v(" Disable automatic filter value sorting")])],1),t._v(" "),"yes"!=t.activeEditor.disable_auto_sorting?[e("el-form-item",{attrs:{label:"Sort Dynamic Value as: "}},[e("el-radio-group",{model:{value:t.activeEditor.sorting_type,callback:function(e){t.$set(t.activeEditor,"sorting_type",e)},expression:"activeEditor.sorting_type"}},[e("el-radio",{attrs:{label:"asc"}},[t._v("Asending Way")]),t._v(" "),e("el-radio",{attrs:{label:"desc"}},[t._v("Descending Way")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"Sort Algorithom"}},[e("el-radio-group",{model:{value:t.activeEditor.sorting_method,callback:function(e){t.$set(t.activeEditor,"sorting_method",e)},expression:"activeEditor.sorting_method"}},[e("el-radio",{attrs:{label:"text"}},[t._v("As Text Basis")]),t._v(" "),e("el-radio",{attrs:{label:"numeric"}},[t._v("As Numeric Basis")])],1)],1)]:t._e()]:t._e(),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.is_multi_select,callback:function(e){t.$set(t.activeEditor,"is_multi_select",e)},expression:"activeEditor.is_multi_select"}},[t._v("Enable Multi-Select")])],1)]:t._e(),t._v(" "),t.has_filter_option||t.is_manual_select_options?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Options"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Options")]),t._v(" "),e("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("key-pair-options",{model:{value:t.activeEditor.options,callback:function(e){t.$set(t.activeEditor,"options",e)},expression:"activeEditor.options"}})],2)]:t._e(),t._v(" "),"date_picker"==t.activeEditor.type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Filter Operator"))+"\n ")]),t._v(" "),e("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[e("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),e("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),e("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("From Placeholder"))+"\n ")]),t._v(" "),e("el-input",{attrs:{size:"small",placeholder:"From Placeholder"},model:{value:t.activeEditor.from_placeholder,callback:function(e){t.$set(t.activeEditor,"from_placeholder",e)},expression:"activeEditor.from_placeholder"}})],2),t._v(" "),e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("To Placeholder"))+"\n ")]),t._v(" "),e("el-input",{attrs:{size:"small",placeholder:"To Placeholder"},model:{value:t.activeEditor.to_placeholder,callback:function(e){t.$set(t.activeEditor,"to_placeholder",e)},expression:"activeEditor.to_placeholder"}})],2)]:t._e(),t._v(" "),"text_input"==t.activeEditor.type?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Prefix"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Filter Prefix")]),t._v(" "),e("p",[t._v("You can use filter prefix to append the value of user inputed value. It will join with the value and perform the search")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"small",placeholder:"Filter Prefix"},model:{value:t.activeEditor.filter_value_prefix,callback:function(e){t.$set(t.activeEditor,"filter_value_prefix",e)},expression:"activeEditor.filter_value_prefix"}})],2):t._e(),t._v(" "),t.need_filter_columns?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Columns"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Columns")]),t._v(" "),e("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?e("el-checkbox-group",{model:{value:t.activeEditor.columns,callback:function(e){t.$set(t.activeEditor,"columns",e)},expression:"activeEditor.columns"}},t._l(t.current_columns,(function(a){return e("el-checkbox",{key:a.key,attrs:{label:a.key}},[t._v(t._s(a.name))])})),1):e("div",[t._v("\n Sorry, No corresponding columns found based on your selection and column's data type\n ")])],2):t._e(),t._v(" "),"reset_filter"==t.activeEditor.type?e("el-form-item",[e("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Button Text"))+"\n ")]),t._v(" "),e("el-input",{attrs:{size:"mini"},model:{value:t.activeEditor.placeholder,callback:function(e){t.$set(t.activeEditor,"placeholder",e)},expression:"activeEditor.placeholder"}})],2):t._e(),t._v(" "),e("el-form-item",[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.activeEditor.strict,callback:function(e){t.$set(t.activeEditor,"strict",e)},expression:"activeEditor.strict"}},[t._v("Enable Strict Mode (If Enable, Ninja Table will try to match exact value)")])],1)],2)}),[],!1,null,"40d145e5",null).exports,draggable:kt()},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 G()(this.columns,(function(e){t[e.key]=e.name})),t}},methods:{each:G(),fetchFilters:function(){var t=this;this.loading=!0,this.$get({action:"ninjatable_get_custom_table_filters",table_id:this.table_id}).then((function(e){t.table_filters=e.data.table_filters,t.filter_styling=e.data.filter_styling})).fail((function(t){})).always((function(){t.loading=!1}))},updateFilter:function(t){this.validateFilter(t)&&this.saveFilters()},validateFilter:function(t){return t.title?t.options.length?"reset_filter"==t.type||"select"==t.type||t.columns.length?!("select"==t.type&&"dynamic_data"==t.select_value_type&&!t.dynamic_select_column)||(this.$message.error("Please Select Target Column"),!1):(this.$message.error("Please Select columns that you need to add filter"),!1):(this.$message.error("Please Provide Filter Options"),!1):(this.$message.error("Please Provide Filter Title"),!1)},saveFilters:function(){var t=this;this.saving=!0,this.$post({action:"ninjatable_update_custom_table_filters",table_id:this.table_id,ninja_filters:this.table_filters,filter_styling:this.filter_styling}).then((function(e){t.$message.success(e.data.message)})).fail((function(t){})).always((function(){t.saving=!1,t.activeEditor=!1,t.editorModal=!1,t.addFilterModal=!1}))},showAddFilter:function(){this.activeEditor={placeholder:"All",options:[{value:"",label:""}],type:"select",columns:[],strict:"no",title:""},this.addFilterModal=!0},addFilter:function(t){var e=this;this.validateFilter(t)&&(this.table_filters.push(t),this.$nextTick((function(){e.saveFilters()})))},edit:function(t){this.activeEditor=t,this.editorModal=!0},deleteFilter:function(t){this.table_filters.splice(t,1),this.saveFilters()}},mounted:function(){this.hasAdvancedFilters&&this.fetchFilters()}};const Ao=n(Eo,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?e("div",{staticClass:"section_block"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.showAddFilter()}}},[t._v("Add New Filter")]),t._v(" "),t.table_filters.length?[e("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),e("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){return t.saveFilters()}}},t._l(t.table_filters,(function(a,n){return e("tr",[e("td",[e("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(a.title))]),t._v(" "),e("td",[t._v(t._s(a.type))]),t._v(" "),e("td",t._l(a.columns,(function(a){return e("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[a],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n "+t._s(t.columnKeyPairs[a])+"\n ")])})),0),t._v(" "),e("td",[e("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(e){return t.edit(a)}}}),t._v(" "),e("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){return t.deleteFilter(n)}}})],1)])})),0)],1),t._v(" "),e("h3",[t._v("Filter Appearance")]),t._v(" "),e("el-radio-group",{model:{value:t.filter_styling.filter_display_type,callback:function(e){t.$set(t.filter_styling,"filter_display_type",e)},expression:"filter_styling.filter_display_type"}},[e("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),e("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[e("h3",[t._v("Filter Columns")]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.filter_styling.filter_columns,callback:function(e){t.$set(t.filter_styling,"filter_columns",e)},expression:"filter_styling.filter_columns"}},[e("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),e("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),e("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),e("h3",[t._v("Progressive Filter")]),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.filter_styling.progressive,callback:function(e){t.$set(t.filter_styling,"progressive",e)},expression:"filter_styling.progressive"}},[t._v("Enable Progressive filter for dynamic filter options")]),t._v(" "),e("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{loading:t.saving,size:"small",type:"primary"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?e("div",{staticClass:"section_block"},[t._m(2)]):e("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),e("get-pro")],1)]),t._v(" "),e("el-dialog",{attrs:{title:"Edit Custom Filter",visible:t.editorModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.editorModal=e}}},[t.activeEditor?e("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),e("el-dialog",{attrs:{title:"Add New Custom Filter",visible:t.addFilterModal,width:"70%",top:"50px","append-to-body":!0},on:{"update:visible":function(e){t.addFilterModal=e}}},[t.activeEditor?e("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),e("span",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_header"},[e("h2",{staticClass:"ninja_block"},[t._v("Custom Search Filters")]),t._v(" "),e("p",[t._v("\n Custom Search Filters is useful if you want to add select box / Radio Button to show a group of rows of\n your table.\n "),e("br"),t._v("\n To learn more about this "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/custom-filters-on-ninja-tables/"}},[t._v("click\n here")])])])},function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Target Columns")]),t._v(" "),e("th",[t._v("Action")])])])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Custom Filters is introduced in version 2.4.0. Please update "),e("b",[t._v("Ninja tables pro")]),t._v(" plugin to use\n this feature")])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Custom Filters is pro only features. Please purchase "),e("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature\n ")])}],!1,null,null,null).exports;const No=n({name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_Language_settings"},[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Language Settings")]),t._v(" "),e("div",{staticClass:"ninja_actions_action"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),e("div",{staticClass:"ninja_style_wrapper"},[e("div",{staticClass:"section_block"},[e("div",{staticClass:"language_block"},[e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.no_result_text,expression:"tableSettings.no_result_text"}],staticClass:"form_control",attrs:{id:"no_result_text",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.no_result_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"no_result_text",e.target.value)}}}),t._v(" "),e("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_placeholder,expression:"tableSettings.search_placeholder"}],staticClass:"form_control",attrs:{id:"search_box_placeholder",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_placeholder},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_placeholder",e.target.value)}}}),t._v(" "),e("small",[t._v("Search Box Placeholder")])]),t._v(" "),e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.search_in_text,expression:"tableSettings.search_in_text"}],staticClass:"form_control",attrs:{id:"search_box_in",type:"text",autocomplete:"off"},domProps:{value:t.tableSettings.search_in_text},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"search_in_text",e.target.value)}}}),t._v(" "),e("small",[t._v("Search Dropdown Box Title")])])])])])])}),[],!1,null,null,null).exports;const Oo=n({name:"ninja-rendering_settings",props:["tableSettings","config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro}},methods:{storeSettings:function(){this.$emit("storeSettings")},changeTableType:function(t){if(!this.hasPro&&"legacy_table"==t)return window.ninjaTableBus.$emit("show_pro_popup",1),void(this.tableSettings.render_type="ajax_table");this.tableSettings.render_type=t}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_rendering_settings"},[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Table Render Settings")]),t._v(" "),e("div",{staticClass:"ninja_actions_action"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v(" "+t._s(t.$t("Update Configuration")))])],1)]),t._v(" "),e("div",{staticClass:"ninja_style_wrapper"},[e("div",{staticClass:"ninja_section_block_body"},[e("div",{staticClass:"section_block_item"},[e("p",[t._v("Please the select the settings for your table render method. Using Legacy table you can use\n shortcodes in your cells and it will render the full table from php side. Table styles will be\n same for both tables. Most of the cases you will need Ajax Table which is recommended\n settings.")]),t._v(" "),e("div",{staticClass:"card_block"},[e("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("ajax_table")}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:"ajax_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'ajax_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),e("h4",[t._v("Ajax Table")]),t._v(" "),e("p",[t._v("\n Use this settings if you have lots of data and don't need cell merge features. It will\n load your data over ajax. Please note that, shortcodes in table will not work here.\n ")])]),t._v(" "),e("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("legacy_table")}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:"legacy_table"==t.tableSettings.render_type,expression:"tableSettings.render_type == 'legacy_table'"}],staticClass:"selected_ribbon"},[t._v("Selected\n ")]),t._v(" "),e("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?e("div",{staticClass:"section_block_item"},[e("h3",[t._v("\n Disable Caching\n "),e("el-tooltip",{attrs:{placement:"right",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, we cache the table "),e("br"),t._v("\n contents. It's not recommended to disable "),e("br"),t._v("\n caching unless you know what you are doing\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Display Frontend Loader")]),t._v(" "),e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.frontend_loader,callback:function(e){t.$set(t.tableSettings,"frontend_loader",e)},expression:"tableSettings.frontend_loader"}})],1)]),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.shouldNotCache,callback:function(e){t.$set(t.tableSettings,"shouldNotCache",e)},expression:"tableSettings.shouldNotCache"}})],1)])]):t._e(),t._v(" "),t.config.table.hasExternalCachingInterval?e("div",{staticClass:"section_block_item"},[e("h3",[t._v("\n Caching Interval\n "),e("el-tooltip",{attrs:{placement:"right",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, You can cache the table data for certain minutes "),e("br"),t._v("\n so the data will load from cached data. Please Provide the value in minutes.\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),e("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.caching_interval,callback:function(e){t.$set(t.tableSettings,"caching_interval",e)},expression:"tableSettings.caching_interval"}}),t._v(" "),e("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?e("p",[t._v("Current Caching Interval: "),e("b",[t._v(t._s((t.tableSettings.caching_interval/60).toFixed(2))+" hours")])]):t._e()],1)])]):t._e(),t._v(" "),"legacy_table"==t.config.settings.render_type&&"yes"!=t.tableSettings.shouldNotCache?e("div",{staticClass:"section_block_item"},[e("h3",[t._v("\n Enable Full HTML Cache\n "),e("el-tooltip",{attrs:{placement:"right",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("HTML Cache")]),t._v("\n If you enable this then ninja tables will cache the full html of the table and"),e("br"),t._v("\n render that without interact with database. You can set the time how many minutes it will cache each iteration.\n ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"caching-block"},[e("div",{staticClass:"form-group"},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.enable_html_cache,callback:function(e){t.$set(t.tableSettings,"enable_html_cache",e)},expression:"tableSettings.enable_html_cache"}})],1),t._v(" "),"yes"==t.tableSettings.enable_html_cache?e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),e("el-input",{attrs:{type:"number",size:"small"},model:{value:t.tableSettings.html_caching_minutes,callback:function(e){t.$set(t.tableSettings,"html_caching_minutes",e)},expression:"tableSettings.html_caching_minutes"}}),t._v(" "),t.tableSettings.html_caching_minutes>60?e("p",[t._v("Current Caching Interval: "),e("b",[t._v(t._s((t.tableSettings.html_caching_minutes/60).toFixed(2))+" hours")])]):t._e()],1)]):t._e()])]):t._e()])])])}),[function(){var t=this,e=t._self._c;return e("div",[e("p",[t._v("\n Recommended settings for advanced features\n ")]),t._v(" "),e("ul",{staticClass:"ninja_render_features"},[e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n ")]),t._v(" "),e("li",[e("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}],!1,null,null,null).exports;const Mo=n({name:"button_settings",components:{GetPro:i,wpEditor:C},props:["table_id"],data:function(){return{table_buttons:{csv:{status:"no",label:"CSV",all_rows:"no"},print:{status:"no",label:"Print",all_rows:"no",header_each_page:"no",footer_each_page:"no"}},fetching:!1,saving:!1,button_positions:{after_search_box:"After Search Box",before_table:"Before of the table",after_table:"Bottom of the table"},buttonAlignments:{ninja_buttons_left:"Left",ninja_buttons_center:"Center",ninja_buttons_right:"Right"},hasPro:!!window.ninja_table_admin.hasPro}},methods:{getSettings:function(){var t=this;this.fetching=!0,this.$get({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(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[e("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[e("h3",[t._v("CSV Export Button Settings")]),t._v(" "),e("div",{staticClass:"form_group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.status,callback:function(e){t.$set(t.table_buttons.csv,"status",e)},expression:"table_buttons.csv.status"}},[t._v("\n Enable CSV Export Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.csv.status?[e("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[e("label",[t._v("Button Label")]),t._v(" "),e("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.csv.label,callback:function(e){t.$set(t.table_buttons.csv,"label",e)},expression:"table_buttons.csv.label"}})],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Button Background Color")]),t._v(" "),e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.bg_color,callback:function(e){t.$set(t.table_buttons.csv,"bg_color",e)},expression:"table_buttons.csv.bg_color"}})],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Button Text Color")]),t._v(" "),e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.csv.text_color,callback:function(e){t.$set(t.table_buttons.csv,"text_color",e)},expression:"table_buttons.csv.text_color"}})],1),t._v(" "),e("div",{staticClass:"form_group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.csv.plainText,callback:function(e){t.$set(t.table_buttons.csv,"plainText",e)},expression:"table_buttons.csv.plainText"}},[t._v("\n Export as Plain Text\n ")])],1)]:t._e(),t._v(" "),e("hr"),t._v(" "),e("h3",[t._v("Print Button Settings")]),t._v(" "),e("div",{staticClass:"form_group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.table_buttons.print.status,callback:function(e){t.$set(t.table_buttons.print,"status",e)},expression:"table_buttons.print.status"}},[t._v("Enable Print\n Button\n ")])],1),t._v(" "),"yes"==t.table_buttons.print.status?[e("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[e("label",[t._v("Button Label")]),t._v(" "),e("el-input",{attrs:{size:"mini",placeholder:"Button Text"},model:{value:t.table_buttons.print.label,callback:function(e){t.$set(t.table_buttons.print,"label",e)},expression:"table_buttons.print.label"}})],1),t._v(" "),e("div",{staticClass:"form_group form_row_full"},[e("div",{staticClass:"form_row_half"},[e("label",[t._v("Button Background Color")]),t._v(" "),e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.bg_color,callback:function(e){t.$set(t.table_buttons.print,"bg_color",e)},expression:"table_buttons.print.bg_color"}})],1),t._v(" "),e("div",{staticClass:"form_row_half"},[e("div",{staticClass:"form_group"},[e("label",[t._v("Button Text Color")]),t._v(" "),e("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.table_buttons.print.text_color,callback:function(e){t.$set(t.table_buttons.print,"text_color",e)},expression:"table_buttons.print.text_color"}})],1)])]),t._v(" "),e("el-collapse",{attrs:{accordion:""}},[e("el-collapse-item",{attrs:{title:"Print Screen Header",name:"header"}},[[e("label",[t._v("Header in each page")]),t._v(" "),e("el-radio",{attrs:{label:"yes"},model:{value:t.table_buttons.print.header_each_page,callback:function(e){t.$set(t.table_buttons.print,"header_each_page",e)},expression:"table_buttons.print.header_each_page"}},[t._v("Yes")]),t._v(" "),e("el-radio",{attrs:{label:"no"},model:{value:t.table_buttons.print.header_each_page,callback:function(e){t.$set(t.table_buttons.print,"header_each_page",e)},expression:"table_buttons.print.header_each_page"}},[t._v("No")])],t._v(" "),e("wp-editor",{model:{value:t.table_buttons.print.header_html,callback:function(e){t.$set(t.table_buttons.print,"header_html",e)},expression:"table_buttons.print.header_html"}})],2),t._v(" "),e("el-collapse-item",{attrs:{title:"Print Screen Footer",name:"footer"}},[[e("label",[t._v("Footer in each page")]),t._v(" "),e("el-radio",{attrs:{label:"yes"},model:{value:t.table_buttons.print.footer_each_page,callback:function(e){t.$set(t.table_buttons.print,"footer_each_page",e)},expression:"table_buttons.print.footer_each_page"}},[t._v("Yes")]),t._v(" "),e("el-radio",{attrs:{label:"no"},model:{value:t.table_buttons.print.footer_each_page,callback:function(e){t.$set(t.table_buttons.print,"footer_each_page",e)},expression:"table_buttons.print.footer_each_page"}},[t._v("No")])],t._v(" "),e("wp-editor",{model:{value:t.table_buttons.print.footer_html,callback:function(e){t.$set(t.table_buttons.print,"footer_html",e)},expression:"table_buttons.print.footer_html"}})],2)],1)]:t._e(),t._v(" "),e("hr"),t._v(" "),e("h3",[t._v("Buttons Position")]),t._v(" "),e("div",{staticClass:"form_group"},[e("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_position,callback:function(e){t.$set(t.table_buttons,"button_position",e)},expression:"table_buttons.button_position"}},t._l(t.button_positions,(function(a,n){return e("el-radio-button",{key:n,attrs:{label:n}},[t._v(t._s(a))])})),1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Buttons Alignment")]),t._v(" "),e("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_alignment,callback:function(e){t.$set(t.table_buttons,"button_alignment",e)},expression:"table_buttons.button_alignment"}},t._l(t.buttonAlignments,(function(a,n){return e("el-radio-button",{key:n,attrs:{label:n}},[t._v(t._s(a))])})),1)],1),t._v(" "),t.hasPro?e("div",{staticClass:"form_group"},[e("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"primary"},on:{click:function(e){return t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):e("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),e("get-pro")],1)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_header"},[e("h2",[t._v("CSV Export / Print Button Settings for Frontend")]),t._v(" "),e("p",[t._v("You can enable/disable print and csv export settings here")])])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Export CSV and Table Print is pro only features. Please purchase "),e("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature\n ")])}],!1,null,null,null).exports,zo={name:"TableConfiguration",components:{draggable:kt(),ColumnsEditor:Ri,NinjaCustomFilters:Ao,NinjaLanguageSettings:No,NinjaRenderingSettings:Oo,NinjaButtonSettings:Mo},props:["config"],data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,active_menu:"columns",table_color_primary:"#000",table_color_secondary:"#fff",tableId:this.$route.params.table_id,tableLibs:{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"compact",title:"Compact Table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap4:{title:"Bootstrap 4",description:"Apply Twitter Bootstrap 4 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-sm",title:"Small table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap3:{title:"Bootstrap 3",description:"Apply Twitter Bootstrap 3 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-condensed",title:"Condensed table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]}},colors:{ninja_no_color_table:"Default",white:"White",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}},doingAjax:!1,addColumnStatus:!1,new_column:!1,breakPointsOptions:{xs:this.$t("Initial Hidden Mobile"),"xs sm":this.$t("Initial Hidden Mobile and Tab"),"xs sm md lg":this.$t("Initial Hidden Mobile, Tab and Regular Computers"),"":this.$t("Always show in all devices"),hidden:this.$t("Totally hidden on all devices")},dataTypesOptions:{text:this.$t("Single Line Text Field"),textarea:this.$t("Text Area"),html:this.$t("HTML Field"),number:this.$t("Numeric Value"),date:this.$t("Date Field"),selection:this.$t("Select Field")},attributeModel:{name:null,key:null,breakpoints:""},columns:this.config.columns,tableSettings:this.config.settings,is_fluent_installed:window.ninja_table_admin.isInstalled,fluent_url:window.ninja_table_admin.fluentform_url,has_pro:!!window.ninja_table_admin.hasPro,hasSortable:!!window.ninja_table_admin.hasSortable,addVisible:!1,sortableUpgradeNotice:!1}},watch:{"new_column.name":function(){this.new_column.key=ai()(this.new_column.name)}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post(e).success((function(e){t.$message({showClose:!0,message:e.message,type:"success"}),t.$set(t.config,"columns",t.columns)})).fail((function(t){})).always((function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)}))},openDrawer:function(t){jQuery(".drawer_body_"+t).slideToggle()},validateColumn:function(t){return t.name?t.key?-1===ti()(this.columns,(function(e){return e.key==t.key}))||(this.$message({showClose:!0,message:this.$t("Column Key needs to be unique. Please add a suffix / prefix to make it unique"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Column Key is required"),type:"error"}),!1):(this.$message({showClose:!0,message:this.$t("Name is required"),type:"error"}),!1)},addNewColumn:function(){this.validateColumn(this.new_column)&&(this.columns.push(this.new_column),this.setNewColumn(),this.addColumnStatus=!1,this.storeSettings())},deleteColumn:function(t){this.config.columns.splice(t,1),this.storeSettings()},showProAd:function(t){this.addVisible=!0,window.ninjaTableBus.$emit("show_pro_popup",1)},size:Fe(),get:ko(),initManualSorting:function(){var t=this;new Promise((function(e,a){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,a)}))},headerColorsClick:function(){this.has_pro||this.showProAd()},setNewColumn:function(){var t={name:"",key:"",breakpoints:"",data_type:"text",dateFormat:"",timeFormat:"",header_html_content:"",enable_html_content:!1};"wp-posts"===this.dataSourceType()&&(t.source_type="custom"),this.new_column=t},dataSourceType:function(){var t=this.config.table.dataSourceType||"Default";return t=t.indexOf("google")>-1?"Google SpreadSheet":t}},computed:{addable:function(){return-1!=["default","wp-posts"].indexOf(this.config.table.dataSourceType)}},mounted:function(){this.setNewColumn()}},Fo=zo;var Bo=a(9525),Lo={insert:"head",singleton:!1};s()(Bo.Z,Lo);Bo.Z.locals;var Ro=n(Fo,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"table-column-settings"},[e("el-container",[e("el-aside",{attrs:{width:"200px"}},[e("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[e("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[e("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),e("span",[t._v("Columns")])]),t._v(" "),e("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[e("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),e("span",[t._v("Rendering Settings")])]),t._v(" "),e("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[e("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),e("span",[t._v("Custom Filters")])]),t._v(" "),e("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[e("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),e("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),e("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[e("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),e("span",[t._v("Language Settings")])])],1)],1),t._v(" "),e("el-main",["columns"==t.active_menu?[e("div",{staticClass:"ninja_header"},[e("h2",[t._v("Table Column Settings")])]),t._v(" "),e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"section_widget"},[e("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?e("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):e("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[e("el-button",{directives:[{name:"show",rawName:"v-show",value:t.columns.length,expression:"columns.length"}],attrs:{size:"small",type:"primary"},on:{click:function(e){t.addColumnStatus=!t.addColumnStatus}}},[t._v("\n "+t._s(t.$t("Add Column"))+"\n ")])],1):t._e()]),t._v(" "),e("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?e("div",{staticClass:"column"},[e("div",{staticClass:"add_column_wrapper"},[e("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:t.new_column,settings:t.config.settings,"has-pro":t.has_pro},on:{add:function(e){return t.addNewColumn()},cancel:function(e){t.addColumnStatus=!t.addColumnStatus}}})],1)]):t._e(),t._v(" "),e("draggable",{attrs:{handle:".handle",animation:"150"},on:{end:t.storeSettings},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}},t._l(t.columns,(function(a,n){return e("div",{key:a.key,staticClass:"column drawer"},[e("div",{staticClass:"header"},[e("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),e("span",{on:{click:function(e){return t.openDrawer(n)}}},[t._v(t._s(a.name||a.key))]),t._v(" "),e("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){return t.openDrawer(n)}}})]),t._v(" "),e("div",{staticClass:"drawer_body",class:"drawer_body_"+n},[e("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:a,"has-pro":t.has_pro,settings:t.config.settings,updating:!0},on:{delete:function(e){return t.deleteColumn(n)},store:function(e){return t.storeSettings()}}})],1)])})),0)],1)]),t._v(" "),e("div",{staticClass:"proms"},[e("div",{staticClass:"help_section"},[e("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n video "),e("a",{attrs:{href:"https://wpmanageninja.com/r/docs/ninja-tables/configure-responsive-breakdowns-for-table/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])]),t._v(" "),t.is_fluent_installed?t._e():e("div",{staticClass:"help_section"},[e("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form\n Builder plugin with some amazing Premium features "),e("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[e("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[e("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[e("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[e("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])}),[],!1,null,null,null);const Ho=Ro.exports;const Wo=n({name:"ExportTable",props:["config"],data:function(){return{tableId:this.$route.params.table_id,exportOptions:{csv:"CSV",json:"JSON"},selected:"csv"}},methods:{downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={action:"ninja_tables_ajax_actions",target_action:"export-data",table_id:this.tableId,format:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};return ajaxurl+"?"+jQuery.param(e)},doExport:function(){var t=this.downloadLink(this.selected);location.href=t}}},(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_header"},[e("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?e("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),e("div",{staticClass:"ninja_export_block"},[t._v("\n "+t._s(t.$t("Format:"))+"\n "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],on:{change:function(e){var a=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?a:a[0]}}},t._l(t.exportOptions,(function(a,n){return e("option",{domProps:{value:n}},[t._v("\n "+t._s(a)+"\n ")])})),0),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:function(e){return e.preventDefault(),t.doExport()}}},[t._v("\n "+t._s(t.$t("Export"))+"\n ")])],1)]):e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"ninja_suggest"},[e("p",[t._v("Sorry! You can not export the data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_suggest"},[t("p",[this._v("You can download the table data as CSV or JSON format, If you download as json then you can import the table to any Ninja Table Installation")])])}],!1,null,null,null).exports;const qo={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 G()(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 a=new FormData;a.append("file",e),a.append("action","ninja_tables_ajax_actions"),a.append("target_action","upload-data"),a.append("table_id",this.tableId),a.append("replace",this.replace),a.append("do_unicode",this.do_unicode),a.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:a,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(a,n){var i=[];e.forEach((function(t,e){i.push("content_"+n+"_"+e)})),t.push(i)}));var a="data:text/csv;charset=utf-8,";t.forEach((function(e,n){var i=e.join(",");a+=n<t.length?i+"\n":i}));var n=encodeURI(a),i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download","sample.csv"),document.body.appendChild(i),i.click()}}},Vo=qo;var Uo=a(6368),Yo={insert:"head",singleton:!1};s()(Uo.Z,Yo);Uo.Z.locals;var Zo=n(Vo,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_header"},[e("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?e("div",{staticClass:"ninja_content"},[t.columns.length?e("div",[e("form",{attrs:{action:"",id:"fileUploadForm"}},[e("div",{staticClass:"form-group"},[e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),e("el-checkbox",{model:{value:t.replace,callback:function(e){t.replace=e},expression:"replace"}},[t._v(t._s(t.$t("Replace Existing Data")))])],1),t._v(" "),e("div",{staticClass:"form-group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])],1),t._v(" "),e("div",{staticClass:"form-group"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-upload2",size:"small",loading:t.btnLoading},on:{click:function(e){return e.preventDefault(),t.upload.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("Import from CSV"))+"\n ")])],1)]),t._v(" "),e("div",{staticClass:"ninja_suggest"},[e("p",[t._v("\n Please note that, your CSV data structure need to follow the sample CSV.\n You may want to check the "),e("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),e("br"),t._v(" "),e("p",[t._v("\n Also make sure the content is in UTF-8 format, for the best result.\n ")])]),t._v(" "),e("div",{staticClass:"justify-items"},[e("h3",[t._v("\n "+t._s(t.$t("CSV Header Structure"))+"\n ")]),t._v(" "),e("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",icon:"el-icon-download",size:"small"},on:{click:t.download}},[t._v("\n "+t._s(t.$t("Download Sample CSV"))+"\n ")])],1),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,(function(t){return e("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})})),1),t._v(" "),e("h3",[t._v("or as bellow")]),t._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,(function(t){return e("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})})),1)],1):e("div",{staticClass:"error"},[e("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):e("div",{staticClass:"ninja_content"},[e("div",{staticClass:"ninja_suggest"},[e("p",[t._v("Sorry! You can not import any data as the table data is configured as external source ("+t._s(t.config.table.dataSourceType)+")")])])])])}),[],!1,null,"3dd4e718",null);const Jo=n({name:"ExportImport",components:{export:Wo,import:Zo.exports},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}},(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"15px"}},[e("el-container",[e("el-aside",{attrs:{width:"200px"}},[e("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[e("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),e("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[e("i",{staticClass:"el-icon-download"}),t._v(" "),e("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),e("el-main",[e(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)}),[],!1,null,null,null).exports;const Qo={name:"help",components:{fluentpromoad:n({name:"fluentpromoad_2",props:["dismisable"],data:function(){return{img_url_path:window.ninja_table_admin.img_url,fluent_url:window.ninja_table_admin.fluentform_url,fluent_wp_url:window.ninja_table_admin.fluent_wp_url,is_installed:window.ninja_table_admin.isInstalled,already_dismissed:window.ninja_table_admin.dismissed}},computed:{will_it_show:function(){return!this.is_installed&&(!this.dismisable||!this.already_dismissed)}},methods:{image_url:function(t){return this.img_url_path+t},dismiss:function(){var t=this;this.$post({action:"ninja_tables_ajax_actions",target_action:"dismiss_fluent_suggest"}).then((function(t){})).fail((function(t){})).always((function(){t.is_installed=!0}))}}},(function(){var t=this,e=t._self._c;return t.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?e("div",{staticClass:"ninja_dismiss",on:{click:function(e){return t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),e("div",{staticClass:"ninja_fluent_copy"},[e("p",[t._v("Have you checked out FluentForm yet? We have developed a powerful Drag & Drop WordPress Form Builder plugin with some amazing Premium features")]),t._v(" "),e("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()}),[],!1,null,null,null).exports,ninja_premium:n({name:"ninja_premium",data:function(){return{img_url_path:window.ninja_table_admin.img_url}},computed:{will_it_show:function(){return!window.ninja_table_admin.hasPro||""==window.ninja_table_admin.hasPro}},methods:{image_url:function(t){return this.img_url_path+t}}},(function(){var t=this,e=t._self._c;return t.will_it_show?e("div",{staticClass:"ninja_suggest_plugin"},[e("div",{staticClass:"ninja_form_banner"},[e("img",{attrs:{src:t.image_url("banner_premium.png")}})]),t._v(" "),t._m(0)]):t._e()}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_fluent_copy"},[e("p",[t._v("Have you checked out NinjaTables Pro Add-On yet? We have added some exciting features in Ninja Tables with Pro Add-On")]),t._v(" "),e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Download Now")]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("View Details")])])}],!1,null,null,null).exports},data:function(){return{docs:[{title:"Ninja Tables Introduction",url:"https://wpmanageninja.com/docs/ninja-tables/getting-started-with-ninja-tables/getting-started/"},{title:"Ninja Tables Demo",url:"https://wpmanageninja.com/docs/ninja-tables/configure-tables/?utm_source=ninja-tables"},{title:"Setting up a Ninja Tables",url:"https://wpmanageninja.com/docs/ninja-tables/create-a-table"},{title:"Configure Responsive Breakdowns for Table",url:"https://wpmanageninja.com/docs/ninja-tables/configuring-tables/configure-responsive-breakdowns-for-table"},{title:"Export Data from Ninja Tables",url:"https://wpmanageninja.com/docs/ninja-tables/import-export/export-data"},{title:"Import Table Data from CSV",url:"https://wpmanageninja.com/docs/ninja-tables/import-export/import-table-data-from-csv"},{title:"Import Table from JSON file",url:"https://wpmanageninja.com/docs/ninja-tables/import-export/import-table-data-from-csv"},{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(){}};var Xo=a(1586),Go={insert:"head",singleton:!1};s()(Xo.Z,Go);Xo.Z.locals;var Ko=n(Qo,(function(){var t=this,e=t._self._c;return e("div",[e("h2",[t._v(t._s(t.$t("Plugin Documentation and Help")))]),t._v(" "),e("hr",{staticStyle:{"border-top":"1px dashed #cecbcb"}}),t._v(" "),e("ninja_premium"),t._v(" "),e("div",{staticClass:"ninja_documentaion_wrapper"},[e("div",{staticClass:"ninja_doc_top_blocks"},[e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),e("h3",[t._v("Try Fluent Forms")]),t._v(" "),t._m(0)]),t._v(" "),t._m(1)])]),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("div",[e("img",{staticClass:"block_icon",staticStyle:{height:"220px",width:"220px"},attrs:{src:t.imageUrl("fluentCRM-logo.svg")}}),t._v(" "),e("h3",[t._v("Try Fluent CRM")]),t._v(" "),e("p",[t._v("The easiest and fastest email newsletter, email marketing plugin & CRM solutions for Wordpress.")])]),t._v(" "),t._m(2)])]),t._v(" "),t._m(3),t._v(" "),e("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box ninja_tables_user_guide help_container"},[e("h3",[t._v("User Guide")]),t._v(" "),e("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),e("ul",{staticClass:"doc_items"},t._l(t.docs,(function(a,n){return e("li",{key:n},[e("a",{attrs:{href:a.url,target:"_blank"}},[t._v(t._s(a.title))])])})),0)])]),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),e("h3",[t._v("Love this Plugin?")]),t._v(" "),e("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")])]),t._v(" "),t._m(4)])]),t._v(" "),e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),e("h3",[t._v("Need And Expert Support?")]),t._v(" "),e("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")])]),t._v(" "),t._m(5)])])])]),t._v(" "),e("fluentpromoad")],1)}),[function(){var t=this,e=t._self._c;return e("p",[e("b",[t._v("Need to build a contact form by drag and drop form builder?")]),t._v(" Try the modern contact form plugin with all the necessary input fields, notifications and connect your form with powerful integrations")])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[this._v("Download from wp.org (Free)")])])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluent-crm/"}},[this._v("Download FluentCRM")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ff_block block_1_3"},[e("div",{staticClass:"ff_block_box help_container text-center"},[e("div",[e("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png?rev=2745100"}}),t._v(" "),e("h3",[t._v("Paymattic - Accept Payment Easily with WordPress Forms")]),t._v(" "),e("p",[t._v("Do you want to accept payments along with user inputs in WordPress? Then Paymattic is the perfect plugin for you.")])]),t._v(" "),e("p",[e("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[t._v("Download Paymattic (Free)")])])]),t._v(" "),e("div")])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/"}},[this._v("Write Review")])])},function(){var t=this._self._c;return t("p",[t("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[this._v("Contact Support")])])}],!1,null,null,null);const tl=Ko.exports;const el={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 a=e.getSession().getAnnotations();for(var n in t.editorError="",a)"error"==a[n].type&&(t.editorError=a[n].text)})),e.getSession().on("change",(function(){t.$emit("input",e.getSession().getValue())})),this.loading=!1}},mounted:function(){this.loadDependencies()}};var al=a(2023),nl={insert:"head",singleton:!1};s()(al.Z,nl);al.Z.locals;const il=n(el,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])}),[],!1,null,null,null).exports;const ol={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 a=e.getSession().getAnnotations();for(var n in t.editorError="",a)"error"==a[n].type&&(t.editorError=a[n].text)})),e.getSession().on("change",(function(){t.$emit("input",e.getSession().getValue())})),this.loading=!1}},mounted:function(){this.loadDependencies()}};var ll=a(230),sl={insert:"head",singleton:!1};s()(ll.Z,sl);ll.Z.locals;const rl={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:il,ace_js_editor:n(ol,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])}),[],!1,null,null,null).exports},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()}};var cl=a(1778),ul={insert:"head",singleton:!1};s()(cl.Z,ul);cl.Z.locals;const dl=n(rl,(function(){var t=this,e=t._self._c;return e("div",[t.fetching?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[e("h3",[t._v("Loading... Please wait")])]):e("div",{staticClass:"section_block"},[e("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[e("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),e("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),e("hr"),t._v(" "),"additional_css"==t.current_tab?[e("p",[t._v("\n You may add "),e("code",[t._v("#footable_parent_"+t._s(t.config.table.ID)+" ")]),t._v(" as your css selector prefix to target this specific table.\n Alternatively, you can use "),e("code",[t._v("#footable_parent_NT_ID")]),t._v(" where "),e("b",[t._v("NT_ID")]),t._v(" will be replaced with your table ID dynamically.\n ")]),t._v(" "),e("ace_code_editor",{attrs:{editor_id:"ninja_custom_css",mode:"css"},model:{value:t.custom_css,callback:function(e){t.custom_css=e},expression:"custom_css"}}),t._v(" "),t._m(0),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[e("p",[t._v("Your additional JS code will run after ninja table initialized. Please provide valid javascript code. Invalid JS code may break the table UI.")]),t._v(" "),t._m(1),t._v(" "),e("ace_js_editor",{attrs:{editor_id:"ninja_custom_js",mode:"javascript"},model:{value:t.custom_js,callback:function(e){t.custom_js=e},expression:"custom_js"}}),t._v(" "),t._m(2),t._v(" "),t.hasPro?[e("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[e("p",[t._v("\n Custom Javascript feature is a pro feature along with many awesome features.\n ")]),t._v(" "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[e("el-button",{staticClass:"el-button--danger",attrs:{size:"small"}},[e("span",[t._v("Get Pro")])])],1)]]:t._e()],2),t._v(" "),e("div",{staticClass:"section_block"})])}),[function(){var t=this,e=t._self._c;return e("span",[t._v("Please don't include "),e("code",[t._v("<style></style>")]),t._v(" tag")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"js_instruction"},[t._v("\n The Following Javascript variables are available that you can use: "),e("br"),t._v(" "),e("b",[t._v("$table")]),t._v(" : The Javascript DOM object of the table"),e("br"),t._v(" "),e("b",[t._v("tableConfig")]),t._v(" : The configuration object of the table.\n ")])},function(){var t=this,e=t._self._c;return e("span",[t._v("Please don't include "),e("code",[t._v("<script><\/script>")]),t._v(" tag")])}],!1,null,null,null).exports;function pl(t){return pl="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},pl(t)}function ml(t){return function(t){if(Array.isArray(t))return _l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _l(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _l(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}const hl={name:"table_preview",props:["config"],components:{GetPro:i,SortableUpgradeNotice:Ci,NinjaColorPicker:Si},data:function(){return{fontFamily:["inherit","cursive","fantasy","monospace","sans-serif","serif","system-ui","ui-monospace","ui-rounded","ui-sans-serif","ui-serif"],rows:[],activeDesign:"features",tableId:this.$route.params.table_id,tableSettings:this.config.settings,table_body_html:"",data_loaded:!1,script_loaded:!1,footableLoading:!1,tableLibs:{footable:{title:"Footable",description:"A responsive table plugin built on jQuery",supports:{ajax:!1,sorting:!0,search:!0},css_libs:{semantic_ui:{title:"Semantic UI",description:"Apply Semantic UI styles in the table",styles:[{key:"single line",title:"Single Line Cells",description:"A table can specify that its cell contents should remain on a single line, and not wrap."},{key:"fixed",title:"Fixed Layout",description:"A special faster form of table rendering that does not resize table cells based on content."},{key:"selectable",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"celled",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"compact",title:"Compact Table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap4:{title:"Bootstrap 4",description:"Apply Twitter Bootstrap 4 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-sm",title:"Small table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]},bootstrap3:{title:"Bootstrap 3",description:"Apply Twitter Bootstrap 3 styles in the table",styles:[{key:"table-striped",title:"Striped rows",description:"Add zebra-striping to any table row"},{key:"table-bordered",title:"Bordered table",description:"Borders on all sides of the table and cells"},{key:"hide_horizonal_borders",title:"Hide Horizontal Borders",description:"This will hide horizontal borders of table body rows"},{key:"hide_vertical_borders",title:"Hide Vertical Borders",description:"This will hide Vertical borders of table body rows"},{key:"table-hover",title:"Hover rows",description:"Enable a hover state on table rows"},{key:"table-condensed",title:"Condensed table",description:"Make tables more compact by cutting cell padding in half"},{key:"vertical_centered",title:"Vertically centered table cell contents",description:"Make cell contents vertically centered"}]}},colors:{ninja_no_color_table:"Default",white:"White",red:"Red",orange:"Orange",yellow:"Yellow",olive:"Olive",green:"Green",teal:"Teal",blue:"Blue",violet:"Violet",purple:"Purple",pink:"Pink",grey:"Grey",black:"Black"}}},has_pro:!!window.ninja_table_admin.hasPro,savingSettings:!1,tableInnerHtml:"",showingDevice:"desktop",hasSortable:!!window.ninja_table_admin.hasSortable,sortableUpgradeNotice:!1,columnCss:""}},computed:{fontSetting:function(){return{"--ninja-table-font-family":this.tableSettings.table_font_family,"--ninja-table-font-size":this.tableSettings.table_font_size+"px"}},wrapperClasses:function(){var t=[];return t.push(this.tableSettings.css_lib),t.push("ninja_device_"+this.showingDevice),"custom_color"!=this.tableSettings.table_color_type&&"ninja_no_color_table"==this.tableSettings.table_color||t.push("colored_table"),t},tableClasses:function(){var t=this,e=[];e.push("foo_table_"+this.tableId),"custom_color"==this.tableSettings.table_color_type?(e.push("inverted"),e.push("ninja_custom_color")):(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color&&e.push("inverted"),e.push(this.tableSettings.table_color)),this.tableSettings.pagination_position?e.push("footable-paging-"+this.tableSettings.pagination_position):e.push("footable-paging-right"),this.tableSettings.hide_header_row&&e.push("ninjatable_hide_header_row"),this.tableSettings.hide_all_borders&&e.push("hide_all_borders"),e.push("ninja_table_pro"),this.tableSettings.search_position&&e.push("ninja_search_"+this.tableSettings.search_position);var a=[];return this.tableSettings.css_classes&&(a=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(ml(a),e)},formattedColumns:function(){var t=this.config.columns,e=[];return jQuery.each(t,(function(t,a){e.push({name:a.key,title:a.name,breakpoints:a.breakpoints,type:a.data_type,sortable:!0,classes:["ninja_column_"+t],visible:"hidden"!=a.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 Se()(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 a=this;if("default"!=t&&!this.has_pro)return this.tableSettings.expand_type="default",void window.ninjaTableBus.$emit("show_pro_popup",1);this.$nextTick((function(){a.reInitFootables()}))},"tableSettings.sorting_type":function(t,e){"manual_sort"===t&&(this.has_pro?this.hasSortable?this.initManualSorting():this.hasSortable||(this.tableSettings.sorting_type=e,this.sortableUpgradeNotice=!0):(this.tableSettings.sorting_type=e,window.ninjaTableBus.$emit("show_pro_popup",1)))},activeDesign:function(){this.checkColorPro()}},methods:{fetchTableBody:function(){var t=this;this.$get({action:"ninja_tables_ajax_actions",target_action:"get_table_preview_html",table_id:this.tableId}).then((function(e){t.tableInnerHtml=e,t.data_loaded=!0})).fail((function(e){jQuery("#footable_"+t.tableId).append("<h1>Error Loading</h1>")}))},initManualSorting:function(){var t=this;new Promise((function(e,a){window.ninjaTableBus.$emit("initManualSorting",{table_id:t.tableId,noData:!0},e,a)}))},storeSettings:function(){var t=this;this.checkColorPro(),this.savingSettings=!0;this.filterTableSettings(this.tableSettings);var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,columns:this.columns,table_settings:this.tableSettings};this.$post(e).success((function(e){t.$message({showClose:!0,message:e.message,type:"success"})})).fail((function(t){})).always((function(){t.savingSettings=!1}))},filterTableSettings:function(t){var e=[];return Se()(this.availableStyles,(function(t){e.push(t.key)})),t.css_classes=ke()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":pl(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,a,n){e.find("table.footable-details td:empty").parent().addClass("nt_has_hide")}));var a=this.getTableConfig();t.initTable(e,a),this.footableLoading=!1}},dysel:function(t){for(var e=t.links,a=t.callback,n=t.nocache,i=t.debug,o=function(t,e){var a=(t=t.toString()).split(".").pop(),n=null;if("js"==a?((n=document.createElement("script")).setAttribute("type","text/javascript"),n.setAttribute("src",t)):("css"==a||t.indexOf("googleapis.com/css?")>-1)&&((n=document.createElement("link")).setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href",t)),void 0!==n){if(e){var o=e;i&&(o=function(){e()}),n.onreadystatechange=o,n.onload=o}document.getElementsByTagName("head")[0].appendChild(n)}},l=a,s=e.length-1;s>=0;s--){var r=l,c=e[s];n&&(c+="?"+ +(new Date).getTime()),l=function(t){o(this,t)}.bind(c,r)}l()},loadRequiredScripts:function(){var t=this;this.dysel({links:window.ninja_table_admin.preview_required_scripts,callback:function(){t.script_loaded=!0}})},size:Fe(),get:ko(),generateColorCss:function(){if("pre_defined_color"!=this.tableSettings.table_color_type){var t="#footable_"+this.tableId,e="\n ".concat(t," {\n background-color: ").concat(this.tableSettings.table_color_primary," !important;\n color: ").concat(this.tableSettings.table_color_secondary," !important;\n }\n ").concat(t," thead tr.footable-filtering th {\n background-color: ").concat(this.tableSettings.table_search_color_primary," !important;\n color: ").concat(this.tableSettings.table_search_color_secondary," !important;\n }\n ").concat(t,":not(.hide_all_borders) thead tr.footable-filtering th {\n ").concat(this.tableSettings.table_search_color_border?"\n border : 1px solid ".concat(this.tableSettings.table_search_color_border," !important;\n "):"\n border : 1px solid transparent !important;\n ","\n }\n ").concat(t," .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {\n background-color: ").concat(this.tableSettings.table_search_color_secondary," !important;\n color: ").concat(this.tableSettings.table_search_color_primary," !important;\n }\n ").concat(t," tr.footable-header, ").concat(t," tr.footable-header th {\n background-color: ").concat(this.tableSettings.table_header_color_primary," !important;\n color: ").concat(this.tableSettings.table_color_header_secondary," !important;\n }\n ").concat(t,":not(.hide_all_borders) tr.footable-header th {\n border-color: ").concat(this.tableSettings.table_color_header_border," !important;\n }\n ").concat(t,":not(.hide_all_borders) tbody tr td {\n border-color: ").concat(this.tableSettings.table_color_border," !important;\n }\n ").concat(t," tbody tr:hover {\n background-color: ").concat(this.tableSettings.table_color_primary_hover," !important;\n color: ").concat(this.tableSettings.table_color_secondary_hover," !important;\n }\n ").concat(t," tbody tr:hover td {\n border-color: ").concat(this.tableSettings.table_color_border_hover," !important;\n }\n\n ").concat("yes"==this.tableSettings.alternate_color_status?"\n ".concat(t," tbody tr:nth-child(even) {\n background-color: ").concat(this.tableSettings.table_alt_color_primary," !important;\n color: ").concat(this.tableSettings.table_alt_color_secondary," !important;\n }\n ").concat(t," tbody tr:nth-child(odd) {\n background-color: ").concat(this.tableSettings.table_alt_2_color_primary," !important;\n color: ").concat(this.tableSettings.table_alt_2_color_secondary," !important;\n }\n ").concat(t," tbody tr:nth-child(even):hover {\n background-color: ").concat(this.tableSettings.table_alt_color_hover," !important;\n }\n ").concat(t," tbody tr:nth-child(odd):hover {\n background-color: ").concat(this.tableSettings.table_alt_2_color_hover," !important;\n }\n "):"\n ","\n\n ").concat(t," tfoot .footable-paging {\n background-color: ").concat(this.tableSettings.table_footer_bg," !important;\n }\n ").concat(t," tfoot .footable-paging .footable-page.active a {\n background-color: ").concat(this.tableSettings.table_footer_active," !important;\n }\n ").concat(t,":not(.hide_all_borders) tfoot .footable-paging td {\n border-color: ").concat(this.tableSettings.table_footer_border," !important;\n }\n ");jQuery("#table_designer_css").html(e)}else jQuery("#table_designer_css").html("")},changeColor:function(t,e){this.$set(this.tableSettings,e,t)},checkColorPro:function(){this.has_pro||(this.tableSettings.table_color&&"ninja_no_color_table"!=this.tableSettings.table_color||"pre_defined_color"!=this.tableSettings.table_color_type)&&(this.tableSettings.table_color_type="pre_defined_color",this.tableSettings.table_color="ninja_no_color_table")},generateDefaultCss:function(){var t=this,e=this.config.table.custom_css;this.config.columns.forEach((function(a,n){(a.background_color||a.text_color||a.contentAlign)&&(e+="#footable_parent_".concat(t.tableId," thead tr th.ninja_column_").concat(n,", #footable_parent_").concat(t.tableId," tbody tr td.ninja_column_").concat(n," { background-color: ").concat(a.background_color,"; color: ").concat(a.text_color,"; }"),e+="#footable_parent_".concat(t.tableId," tbody tr td.ninja_column_").concat(n," { text-align: ").concat(a.contentAlign,"; }"))})),jQuery("#ninja_table_designer_common_css").html(e)},getTableConfig:function(){var t={};this.config.columns.forEach((function(e,a){t["ninja_column_"+a]={"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},a={toggleColumn:this.tableSettings.togglePosition,cascade:!0,useParentWidth:"desktop"!==this.showingDevice,columns:this.config.columns,expandFirst:"expandFirst"===this.tableSettings.expand_type,expandAll:"expandAll"===this.tableSettings.expand_type,empty:"",filtering:{enabled:!!this.tableSettings.enable_search},paging:{enabled:"0"==this.tableSettings.show_all||0==this.tableSettings.show_all,size:10,container:"#footable_parent_"+this.tableId+" .paging-ui-container"},sorting:{enabled:!!this.tableSettings.column_sorting}};return{columns:this.formattedColumns.forEach((function(t){return Object.assign({},t)})),custom_css:t,settings:e,render_type:"legacy_table",instance_name:"ninja_table_instance_0",table_id:this.table_id,title:"",init_config:a}}},mounted:function(){this.fetchTableBody(),this.loadRequiredScripts(),this.tableSettings.table_color_type||("ninja_table_custom_color"==this.tableSettings.table_color?this.$set(this.tableSettings,"table_color_type","custom_color"):this.$set(this.tableSettings,"table_color_type","pre_defined_color")),void 0===this.tableSettings.alternate_color_status&&this.$set(this.tableSettings,"alternate_color_status","no"),jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px"),jQuery(window).on("resize",(function(){jQuery(".ninja_design_wrapper").css("width",jQuery(".wrap").width()+"px")})),this.generateDefaultCss(),this.generateColorCss()}},fl=hl;var vl=a(6182),bl={insert:"head",singleton:!1};s()(vl.Z,bl);vl.Z.locals;const gl=n(fl,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_design"},[e("div",{staticClass:"ninja_title_section"},[e("div",{staticClass:"ninja_title"},[e("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),e("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[e("el-radio-button",{attrs:{label:"desktop"}},[e("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n ")]),t._v(" "),e("el-radio-button",{attrs:{label:"tablet"}},[e("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n ")]),t._v(" "),e("el-radio-button",{attrs:{label:"mobile"}},[e("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n ")])],1)],1),t._v(" "),e("el-button",{attrs:{loading:t.savingSettings,disabled:t.savingSettings,size:"small",type:"primary"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Settings\n ")])],1),t._v(" "),e("div",{staticClass:"ninja_design_wrapper"},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.app_ready,expression:"!app_ready"}],staticClass:"design_preview",staticStyle:{background:"white",padding:"10px 20px"}},[t.showProNotice?e("div",{staticClass:"ninja_upgrade_bar"},[t._v("\n "+t._s(t.$t("Color customization is a PRO feature. Please upgrade to pro apply this feature."))+"\n "),e("get-pro",{attrs:{type:"primary"}})],1):t._e(),t._v(" "),e("div",{staticClass:"footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent",class:t.wrapperClasses,attrs:{id:"footable_parent_"+t.tableId}},[t.tableSettings.show_title?e("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?e("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),e("table",{directives:[{name:"show",rawName:"v-show",value:t.app_ready,expression:"app_ready"}],staticClass:"table foo-table ninja_footable",class:t.tableClasses,style:t.fontSetting,attrs:{id:"footable_"+t.tableId}},[e("colgroup",t._l(t.formattedColumns,(function(t,a){return e("col",{key:a,class:["ninja_column_"+a,t.breakpoints]})})),0),t._v(" "),e("thead")])]),t._v(" "),e("div",{staticClass:"ninja_demo_disclaimer"},[e("hr"),t._v(" "),"yes"==t.tableSettings.stackable?e("p",[e("b",[t._v("For Stackable Tables, Live preview is disabled here. Please check on preview url")])]):t._e(),t._v(" "),t._m(0),t._v(" "),e("p",[t._v("Some elements like custom filters and row-inline styling is not available in this design mode. Please check on live preview or in your embeded page.")])])]),t._v(" "),e("div",{staticClass:"design_controls"},[e("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[e("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[e("div",{staticClass:"form_group"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Select Styling Library")]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.css_lib,callback:function(e){t.$set(t.tableSettings,"css_lib",e)},expression:"tableSettings.css_lib"}},t._l(t.currentTableLibs,(function(a,n){return e("el-radio-button",{key:n,attrs:{label:n}},[t._v("\n "+t._s(a.title)+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:a.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),t.availableStyles?e("div",{staticClass:"form_group label-normalize"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,(function(a){return e("label",{key:a.key,attrs:{for:"table_style_"+a.key}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.css_classes,expression:"tableSettings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+a.key},domProps:{value:a.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,a.key)>-1:t.tableSettings.css_classes},on:{change:function(e){var n=t.tableSettings.css_classes,i=e.target,o=!!i.checked;if(Array.isArray(n)){var l=a.key,s=t._i(n,l);i.checked?s<0&&t.$set(t.tableSettings,"css_classes",n.concat([l])):s>-1&&t.$set(t.tableSettings,"css_classes",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(t.tableSettings,"css_classes",o)}}}),t._v("\n "+t._s(a.title)+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:a.description}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2):t._e(),t._v(" "),e("div",{staticClass:"form_group label-normalize"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),e("label",{attrs:{for:"show_title"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_title,expression:"tableSettings.show_title"}],attrs:{type:"checkbox",value:"1",id:"show_title"},domProps:{checked:Array.isArray(t.tableSettings.show_title)?t._i(t.tableSettings.show_title,"1")>-1:t.tableSettings.show_title},on:{change:function(e){var a=t.tableSettings.show_title,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.tableSettings,"show_title",a.concat(["1"])):o>-1&&t.$set(t.tableSettings,"show_title",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"show_title",i)}}}),t._v(" "+t._s(t.$t("Show Table Title"))+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"show_description"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_description,expression:"tableSettings.show_description"}],attrs:{type:"checkbox",value:"1",id:"show_description"},domProps:{checked:Array.isArray(t.tableSettings.show_description)?t._i(t.tableSettings.show_description,"1")>-1:t.tableSettings.show_description},on:{change:function(e){var a=t.tableSettings.show_description,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.tableSettings,"show_description",a.concat(["1"])):o>-1&&t.$set(t.tableSettings,"show_description",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"show_description",i)}}}),t._v(" "+t._s(t.$t("Show Table Description"))+"\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",{attrs:{for:"enable_search"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.enable_search,expression:"tableSettings.enable_search"}],attrs:{type:"checkbox",value:"1",id:"enable_search"},domProps:{checked:Array.isArray(t.tableSettings.enable_search)?t._i(t.tableSettings.enable_search,"1")>-1:t.tableSettings.enable_search},on:{change:function(e){var a=t.tableSettings.enable_search,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.tableSettings,"enable_search",a.concat(["1"])):o>-1&&t.$set(t.tableSettings,"enable_search",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"enable_search",i)}}}),t._v(" "+t._s(t.$t("Enable the visitor to filter or search the table."))+"\n ")]),t._v(" "),t.tableLibs[t.tableSettings.library].supports.sorting&&!t.tableSettings.enable_ajax?e("label",{attrs:{for:"column_sorting"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.column_sorting,expression:"tableSettings.column_sorting"}],attrs:{type:"checkbox",value:"1",id:"column_sorting"},domProps:{checked:Array.isArray(t.tableSettings.column_sorting)?t._i(t.tableSettings.column_sorting,"1")>-1:t.tableSettings.column_sorting},on:{change:function(e){var a=t.tableSettings.column_sorting,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,"1");n.checked?o<0&&t.$set(t.tableSettings,"column_sorting",a.concat(["1"])):o>-1&&t.$set(t.tableSettings,"column_sorting",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"column_sorting",i)}}}),t._v(" "+t._s(t.$t("Enable sorting of the table by the visitor"))+"\n ")]):t._e(),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_header_row,expression:"tableSettings.hide_header_row"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_header_row)?t._i(t.tableSettings.hide_header_row,null)>-1:t.tableSettings.hide_header_row},on:{change:function(e){var a=t.tableSettings.hide_header_row,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"hide_header_row",a.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_header_row",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"hide_header_row",i)}}}),t._v("\n Hide Header Row\n ")]),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_all_borders,expression:"tableSettings.hide_all_borders"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_all_borders)?t._i(t.tableSettings.hide_all_borders,null)>-1:t.tableSettings.hide_all_borders},on:{change:function(e){var a=t.tableSettings.hide_all_borders,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"hide_all_borders",a.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_all_borders",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"hide_all_borders",i)}}}),t._v("\n Hide All Borders\n ")]),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_on_empty,expression:"tableSettings.hide_on_empty"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_on_empty)?t._i(t.tableSettings.hide_on_empty,null)>-1:t.tableSettings.hide_on_empty},on:{change:function(e){var a=t.tableSettings.hide_on_empty,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"hide_on_empty",a.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_on_empty",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"hide_on_empty",i)}}}),t._v("\n Hide empty items on responsive breakdown "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then the empty ietems will not show into responsive drawer / Stackable View"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.hide_responsive_labels,expression:"tableSettings.hide_responsive_labels"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.hide_responsive_labels)?t._i(t.tableSettings.hide_responsive_labels,null)>-1:t.tableSettings.hide_responsive_labels},on:{change:function(e){var a=t.tableSettings.hide_responsive_labels,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"hide_responsive_labels",a.concat([null])):o>-1&&t.$set(t.tableSettings,"hide_responsive_labels",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"hide_responsive_labels",i)}}}),t._v("\n Hide Labels on responsive breakdown "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),e("div",{staticClass:"form_group label-normalize"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("\n Stackable Table Configuration\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"With stackable table, You can show your rows as list item. You can target by device width"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"form_group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.stackable,callback:function(e){t.$set(t.tableSettings,"stackable",e)},expression:"tableSettings.stackable"}},[t._v("\n Enable Stackable Table\n ")]),t._v(" "),"yes"==t.tableSettings.stackable?[e("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[e("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),e("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),e("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),e("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),e("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[e("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),e("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n ")])],1)]:t._e()],2)])]),t._v(" "),e("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[e("div",{staticClass:"form_group"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Select Color Scheme")]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.table_color_type,callback:function(e){t.$set(t.tableSettings,"table_color_type",e)},expression:"tableSettings.table_color_type"}},[e("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),e("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?e("div",{staticClass:"form_group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.table_color,expression:"tableSettings.table_color"}],staticClass:"form_control",on:{change:function(e){var a=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?a:a[0])}}},t._l(t.colors,(function(a,n){return e("option",{key:n,domProps:{value:n}},[t._v(t._s(a)+"\n ")])})),0)]):e("div",{staticClass:"form_group ninja_color_customization"},[e("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_search_color_primary,callback:function(e){t.$set(t.tableSettings,"table_search_color_primary",e)},expression:"tableSettings.table_search_color_primary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Icon"},model:{value:t.tableSettings.table_search_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_search_color_secondary",e)},expression:"tableSettings.table_search_color_secondary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_search_color_border,callback:function(e){t.$set(t.tableSettings,"table_search_color_border",e)},expression:"tableSettings.table_search_color_border"}})],1)]),t._v(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_header_color_primary,callback:function(e){t.$set(t.tableSettings,"table_header_color_primary",e)},expression:"tableSettings.table_header_color_primary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_header_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_header_secondary",e)},expression:"tableSettings.table_color_header_secondary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_header_border,callback:function(e){t.$set(t.tableSettings,"table_color_header_border",e)},expression:"tableSettings.table_color_header_border"}})],1)]),t._v(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),e("el-tabs",[e("el-tab-pane",{attrs:{label:"Default"}},[e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary,callback:function(e){t.$set(t.tableSettings,"table_color_primary",e)},expression:"tableSettings.table_color_primary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_color_secondary",e)},expression:"tableSettings.table_color_secondary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border,callback:function(e){t.$set(t.tableSettings,"table_color_border",e)},expression:"tableSettings.table_color_border"}})],1)])]),t._v(" "),e("el-tab-pane",{attrs:{label:"Hover"}},[e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_color_primary_hover,callback:function(e){t.$set(t.tableSettings,"table_color_primary_hover",e)},expression:"tableSettings.table_color_primary_hover"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_color_secondary_hover,callback:function(e){t.$set(t.tableSettings,"table_color_secondary_hover",e)},expression:"tableSettings.table_color_secondary_hover"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_color_border_hover,callback:function(e){t.$set(t.tableSettings,"table_color_border_hover",e)},expression:"tableSettings.table_color_border_hover"}})],1)])])],1),t._v(" "),e("div",{staticClass:"ninja_switch_wrapper"},[e("el-switch",{attrs:{"inactive-color":"gray","active-text":"Use Alternate Color Schema for Table Rows","active-value":"yes","inactive-value":"no"},model:{value:t.tableSettings.alternate_color_status,callback:function(e){t.$set(t.tableSettings,"alternate_color_status",e)},expression:"tableSettings.alternate_color_status"}})],1),t._v(" "),"yes"==t.tableSettings.alternate_color_status?e("div",{staticClass:"ninja_alternate_colors"},[e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_2_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_primary",e)},expression:"tableSettings.table_alt_2_color_primary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_2_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_secondary",e)},expression:"tableSettings.table_alt_2_color_secondary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_2_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_2_color_hover",e)},expression:"tableSettings.table_alt_2_color_hover"}})],1)]),t._v(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_alt_color_primary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_primary",e)},expression:"tableSettings.table_alt_color_primary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_alt_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_alt_color_secondary",e)},expression:"tableSettings.table_alt_color_secondary"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Hover Background"},model:{value:t.tableSettings.table_alt_color_hover,callback:function(e){t.$set(t.tableSettings,"table_alt_color_hover",e)},expression:"tableSettings.table_alt_color_hover"}})],1)])]):t._e(),t._v(" "),e("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),e("div",{staticClass:"ninja_color_blocks"},[e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Background"},model:{value:t.tableSettings.table_footer_bg,callback:function(e){t.$set(t.tableSettings,"table_footer_bg",e)},expression:"tableSettings.table_footer_bg"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Active"},model:{value:t.tableSettings.table_footer_active,callback:function(e){t.$set(t.tableSettings,"table_footer_active",e)},expression:"tableSettings.table_footer_active"}})],1),t._v(" "),e("div",{staticClass:"ninja_color_block"},[e("ninja-color-picker",{attrs:{label:"Border"},model:{value:t.tableSettings.table_footer_border,callback:function(e){t.$set(t.tableSettings,"table_footer_border",e)},expression:"tableSettings.table_footer_border"}})],1)])],1)]),t._v(" "),e("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[e("div",{staticClass:"ninja_switch_wrapper"},[e("el-switch",{attrs:{"inactive-color":"gray","active-text":"Hide Pagination (Show all data at once)","active-value":"1","inactive-value":"0"},model:{value:t.tableSettings.show_all,callback:function(e){t.$set(t.tableSettings,"show_all",e)},expression:"tableSettings.show_all"}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tableSettings.show_all,expression:"tableSettings.show_all == 0"}],staticClass:"form_group"},[e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.perPage,expression:"tableSettings.perPage"}],staticClass:"form_control",attrs:{id:"items_per_page",type:"number",disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all},domProps:{value:t.tableSettings.perPage},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"perPage",e.target.value)}}})]),t._v(" "),e("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),e("el-radio-group",{attrs:{disabled:1==t.tableSettings.show_all||"1"==t.tableSettings.show_all,size:"mini"},model:{value:t.tableSettings.pagination_position,callback:function(e){t.$set(t.tableSettings,"pagination_position",e)},expression:"tableSettings.pagination_position"}},[e("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),e("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),e("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paginate_to_top,expression:"tableSettings.paginate_to_top"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.paginate_to_top)?t._i(t.tableSettings.paginate_to_top,null)>-1:t.tableSettings.paginate_to_top},on:{change:function(e){var a=t.tableSettings.paginate_to_top,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"paginate_to_top",a.concat([null])):o>-1&&t.$set(t.tableSettings,"paginate_to_top",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"paginate_to_top",i)}}}),t._v("\n Scroll to table top for pagination change "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.show_pager,expression:"tableSettings.show_pager"}],attrs:{disabled:!t.has_pro,type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.show_pager)?t._i(t.tableSettings.show_pager,null)>-1:t.tableSettings.show_pager},on:{change:function(e){var a=t.tableSettings.show_pager,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"show_pager",a.concat([null])):o>-1&&t.$set(t.tableSettings,"show_pager",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"show_pager",i)}}}),t._v("\n Show Page sizes change option "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then Users can change the items per page on frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.tableSettings.show_pager?e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Page Sizes (Number as Comma Separated)")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.paze_sizes,expression:"tableSettings.paze_sizes"}],staticClass:"form_control",attrs:{type:"text",placeholder:"Default: 10,20,50,100"},domProps:{value:t.tableSettings.paze_sizes},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"paze_sizes",e.target.value)}}})]):t._e()],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),e("el-radio-group",{attrs:{disabled:!t.has_pro,size:"mini"},model:{value:t.tableSettings.search_position,callback:function(e){t.$set(t.tableSettings,"search_position",e)},expression:"tableSettings.search_position"}},[e("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),e("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),e("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),e("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.nt_search_full_width,expression:"tableSettings.nt_search_full_width"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.tableSettings.nt_search_full_width)?t._i(t.tableSettings.nt_search_full_width,null)>-1:t.tableSettings.nt_search_full_width},on:{change:function(e){var a=t.tableSettings.nt_search_full_width,n=e.target,i=!!n.checked;if(Array.isArray(a)){var o=t._i(a,null);n.checked?o<0&&t.$set(t.tableSettings,"nt_search_full_width",a.concat([null])):o>-1&&t.$set(t.tableSettings,"nt_search_full_width",a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.tableSettings,"nt_search_full_width",i)}}}),t._v("\n Make search input as full width "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this, Then the search input will take all the available space (100% width)"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v("Select Sorting Method")]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.sorting_type,callback:function(e){t.$set(t.tableSettings,"sorting_type",e)},expression:"tableSettings.sorting_type"}},[e("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n Created at\n ")]),t._v(" "),e("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),e("el-radio-button",{attrs:{disabled:!t.config.table.isSortable,label:"manual_sort"}},[t._v("Manual Sort\n ")])],1),t._v(" "),t.config.table.isCreatedSortable&&"by_created_at"==t.tableSettings.sorting_type?e("div",{},[e("span",[t._v(t._s(t.$t("Sort Type"))+"\n "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.default_sorting,expression:"tableSettings.default_sorting"}],on:{change:function(e){var a=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?a:a[0])}}},[e("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),e("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?e("div",[e("label",[t._v(t._s(t.$t("Select Column"))+"\n "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column,expression:"tableSettings.sorting_column"}],on:{change:function(e){var a=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?a:a[0])}}},t._l(t.config.columns,(function(a){return e("option",{key:a.key,domProps:{value:a.key}},[t._v("\n "+t._s(a.name)+"\n ")])})),0)]),t._v(" "),e("label",[t._v(t._s(t.$t("Sort Type"))+"\n "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sorting_column_by,expression:"tableSettings.sorting_column_by"}],on:{change:function(e){var a=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?a:a[0])}}},[e("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),e("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):t.config.table.isSortable&&"manual_sort"==t.tableSettings.sorting_type?e("div",[e("p",[t._v("You can sort the table data from "),e("b",[t._v("Table Rows")]),t._v(" Manually. Click Sort Manually\n checkbox to sort the data using drag and drop feature")])]):t._e(),t._v(" "),t.tableSettings.sorting_type?e("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n ")]):t._e()],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.expand_type,callback:function(e){t.$set(t.tableSettings,"expand_type",e)},expression:"tableSettings.expand_type"}},[e("el-radio-button",{attrs:{label:"default"}},[t._v("\n Default\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n Expand First\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand the first row of the table when displayed on a device that\n hides any columns."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n Expand All\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"This will automatically expand all rows of the table when displayed on a device that hides\n any columns."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[e("el-radio-button",{attrs:{label:"first"}},[t._v("\n First Column\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-radio-button",{attrs:{label:"last"}},[t._v("\n Last Column\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),e("div",{staticClass:"form_group"},[e("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.extra_css_class,expression:"tableSettings.extra_css_class"}],staticClass:"form_control",attrs:{id:"extra_css_class",type:"text"},domProps:{value:t.tableSettings.extra_css_class},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"extra_css_class",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form_group"},[e("label",[t._v(t._s(t.$t("Sticky Header"))+" "),t.has_pro?t._e():e("span",[t._v("(Pro)")])]),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.sticky_header,callback:function(e){t.$set(t.tableSettings,"sticky_header",e)},expression:"tableSettings.sticky_header"}},[t._v("Enable Sticky header for table\n ")]),t._v(" "),"yes"==t.tableSettings.sticky_header?[e("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n "),e("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.sticky_header_offset,expression:"tableSettings.sticky_header_offset"}],staticClass:"form_control",attrs:{placeholder:"positive or negative number",type:"text"},domProps:{value:t.tableSettings.sticky_header_offset},on:{input:function(e){e.target.composing||t.$set(t.tableSettings,"sticky_header_offset",e.target.value)}}}),t._v(" "),e("small",[t._v("Please give positive/negative number or you can provide jquery element object\n ")]),t._v(" "),e("el-checkbox",{attrs:{disabled:!t.has_pro,"true-label":"yes","false-label":"no"},model:{value:t.tableSettings.disable_sticky_on_mobile,callback:function(e){t.$set(t.tableSettings,"disable_sticky_on_mobile",e)},expression:"tableSettings.disable_sticky_on_mobile"}},[t._v("Disable Sticky header for mobile devices\n ")])]:t._e()],2),t._v(" "),e("div",{staticClass:"form_group font-setting"},[e("label",[t._v("Table Font Setting")]),t._v(" "),e("div",{staticClass:"font"},[e("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),e("el-select",{attrs:{placeholder:"Select Font"},model:{value:t.tableSettings.table_font_family,callback:function(e){t.$set(t.tableSettings,"table_font_family",e)},expression:"tableSettings.table_font_family"}},t._l(t.fontFamily,(function(t,a){return e("el-option",{key:a,attrs:{label:"inherit"===t?"theme-font":t,value:t}})})),1)],1),t._v(" "),e("div",{staticClass:"font"},[e("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),e("el-input-number",{attrs:{min:1,max:50},model:{value:t.tableSettings.table_font_size,callback:function(e){t.$set(t.tableSettings,"table_font_size",e)},expression:"tableSettings.table_font_size"}})],1)])])],1),t._v(" "),t.design_tips.length?e("div",{staticClass:"ninja_design_tips"},[e("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,(function(a){return e("li",[e("i",{staticClass:"el-icon-warning"}),t._v(" "),e("span",{domProps:{innerHTML:t._s(a)}})])})),0)]):t._e(),t._v(" "),t.has_pro?t._e():e("div",{staticClass:"upgrade_box"},[e("get-pro",{attrs:{text:"Get Pro"}})],1)],1)]),t._v(" "),e("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)}),[function(){var t=this,e=t._self._c;return e("p",[e("b",[t._v("Note: ")]),t._v(" For preview purpose, you are seeing up to 25 latest rows here and and per page 10\n items if you enable paginate. Also note that, The table style may differ at the frontend as your\n theme may overwrite few css elements.\n ")])}],!1,null,null,null).exports;const yl=n({name:"frontend-editing-settings",components:{GetPro:i},props:["config"],data:function(){return{fetching:!1,saving:!1,tableId:this.config.table.ID,columns:this.config.columns,settings:{allow_frontend:"no",user_roles_editing:[],user_roles_deleting:[]},editing_user_roles:{},user_roles:{},editing_items:{},required_items:{},default_values:{},appearance_settings:{},hasPro:!!window.ninja_table_admin.hasPro,isActivated:!!window.ninja_table_admin.activated_features.ninja_table_front_editor}},methods:{getEditSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_table_pro_get_editing_settings",table_id:this.tableId}).then((function(e){t.settings=e.data.settings,t.user_roles=e.data.user_roles,t.editing_user_roles=e.data.editing_user_roles,t.editing_items=e.data.editor_pref.editing_items,t.required_items=e.data.editor_pref.required_items,t.default_values=e.data.editor_pref.default_values,t.appearance_settings=e.data.editor_pref.appearance_settings})).fail((function(t){})).always((function(){t.fetching=!1}))},updateSettings:function(){var t=this;this.saving=!0;var e={action:"ninja_table_pro_update_editing_settings",table_id:this.tableId,settings:this.settings,editing_items:this.editing_items,required_items:this.required_items,default_values:this.default_values,appearance_settings:this.appearance_settings};this.$post(e).then((function(e){t.$message({type:"success",message:e.data.message})})).fail((function(e){e.responseJSON&&e.responseJSON.data?t.$message({type:"error",message:e.responseJSON.data.message}):t.$message({type:"error",message:"Something is wrong! Please try again"})})).always((function(){t.saving=!1}))}},mounted:function(){this.getEditSettings()}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[e("div",{staticClass:"ninja_header_editing"},[e("h2",[t._v("\n Frontend Editing Settings\n ")]),t._v(" "),e("div",{staticClass:"heading_actions"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),e("div",{staticClass:"editing_body"},[e("div",{staticClass:"editing_sub_section"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.allow_frontend,callback:function(e){t.$set(t.settings,"allow_frontend",e)},expression:"settings.allow_frontend"}},[t._v("\n Enable Frontend editing\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[e("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n User Roles for Edit/Add Table Rows\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can edit this table rows from frontend. Please note, Adminstrators will have this access by default"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox-group",{model:{value:t.settings.user_roles_editing,callback:function(e){t.$set(t.settings,"user_roles_editing",e)},expression:"settings.user_roles_editing"}},t._l(t.editing_user_roles,(function(a,n){return e("el-checkbox",{key:n,attrs:{label:n}},[t._v("\n "+t._s(a)+"\n ")])})),1)],1),t._v(" "),e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n User Roles for Deleting Table Rows\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Your selected user roles can delete this table rows from frontend. Please note, Adminstrators will have this access by default"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-checkbox-group",{model:{value:t.settings.user_roles_deleting,callback:function(e){t.$set(t.settings,"user_roles_deleting",e)},expression:"settings.user_roles_deleting"}},t._l(t.user_roles,(function(a,n){return e("el-checkbox",{key:n,attrs:{label:n}},[t._v("\n "+t._s(a)+"\n ")])})),1)],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n Own Data Only\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If this is enabled, users will see and edit only the rows that were created by them"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("div",{staticClass:"form-group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.settings.own_data_only,callback:function(e){t.$set(t.settings,"own_data_only",e)},expression:"settings.own_data_only"}},[t._v("\n Users can see and edit/delete only own data\n ")])],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.own_data_only,expression:"settings.own_data_only == 'yes'"}],staticStyle:{"line-height":"120%"}},[t._v("\n Your Selected user roles only see their own data and manage those data. Other user roles can not see any data. If you want to show all the data without editing tools to all users, you can use the following shortcode:\n "),e("br"),e("pre",[e("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),e("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),e("div",{staticClass:"ninja_editing_pref"},[e("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[e("thead",[e("tr",[e("th",[t._v("Column Name")]),t._v(" "),e("th",[t._v("\n Editable?\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("th",[t._v("\n Required?\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("th",[t._v("\n Default Value\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you would like to have some values pre-defined in editors (i.e. default editor values) please enter these here."}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),e("tbody",t._l(t.columns,(function(a){return e("tr",{key:a.key},[e("th",[t._v(t._s(a.name))]),t._v(" "),e("td",[e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[a.key],callback:function(e){t.$set(t.editing_items,a.key,e)},expression:"editing_items[column.key]"}})],1),t._v(" "),e("td",[e("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[a.key],callback:function(e){t.$set(t.required_items,a.key,e)},expression:"required_items[column.key]"}})],1),t._v(" "),e("td",[e("el-input",{attrs:{placeholder:"Default Value for "+a.name,size:"mini"},model:{value:t.default_values[a.key],callback:function(e){t.$set(t.default_values,a.key,e)},expression:"default_values[column.key]"}})],1)])})),0)])])]),t._v(" "),e("div",{staticClass:"editing_sub_section"},[t._m(5),t._v(" "),e("div",{staticClass:"form-group"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.appearance_settings.alwaysShow,callback:function(e){t.$set(t.appearance_settings,"alwaysShow",e)},expression:"appearance_settings.alwaysShow"}},[t._v("\n Always Show Edit Icons\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"If you enable this then, Selected user roles can always see the edit buttons, Otherwise they will see a button to initialize editing"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n Add Row Button Label\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"mini",placeholder:"eg: New row"},model:{value:t.appearance_settings.addText,callback:function(e){t.$set(t.appearance_settings,"addText",e)},expression:"appearance_settings.addText"}})],1),t._v(" "),e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n Edit Rows Button Label\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"mini",placeholder:"eg: Edit rows"},model:{value:t.appearance_settings.showText,callback:function(e){t.$set(t.appearance_settings,"showText",e)},expression:"appearance_settings.showText"}})],1)]),t._v(" "),e("div",{staticClass:"form_row_full"},[e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n Add Popup Heading\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"mini",placeholder:"eg: Add Data"},model:{value:t.appearance_settings.addModalLabel,callback:function(e){t.$set(t.appearance_settings,"addModalLabel",e)},expression:"appearance_settings.addModalLabel"}})],1),t._v(" "),e("div",{staticClass:"form_group form_row_half"},[e("label",[t._v("\n Edit Popup Heading\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{size:"mini",placeholder:"eg: Edit Data"},model:{value:t.appearance_settings.editModalLabel,callback:function(e){t.$set(t.appearance_settings,"editModalLabel",e)},expression:"appearance_settings.editModalLabel"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n Editor Icon Position\n "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Edit icon postion. If you select Right then it will append the edit icons at the last column otherwise at the first column"}},[e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("br"),t._v(" "),e("el-radio-group",{attrs:{size:"mini"},model:{value:t.appearance_settings.position,callback:function(e){t.$set(t.appearance_settings,"position",e)},expression:"appearance_settings.position"}},[e("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),e("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),e("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):e("div",[e("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),e("p",[t._v('Only "Default" data source tables can be editable')])]):e("div",[t._m(2)]):e("div",[e("div",{staticClass:"el-main-editing"},[t._m(0),t._v(" "),e("div",{staticClass:"editing_body text-center"},[t._m(1),t._v(" "),e("p",[t._v("Using this module, You can let your frontend users to add/edit/delete records based on user role. Also, You can separate the records by user submission")]),t._v(" "),e("get-pro")],1)])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"ninja_header_editing"},[t("h2",{},[this._v("\n Frontend Editing Settings\n ")])])},function(){var t=this,e=t._self._c;return e("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),e("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")])},function(){var t=this,e=t._self._c;return e("h3",[t._v("\n Custom Filters is introduced in version 3.2.0. Please update "),e("b",[t._v("Ninja tables pro")]),t._v(" plugin to use\n this feature\n ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[t._v("Data Editing Permissions")]),t._v(" "),e("p",[t._v("\n Please specific user roles to be able to edit/delete this table. Only selected user\n roles\n can edit/delete the data.\n ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[t._v("Editing Column Options")]),t._v(" "),e("p",[t._v("\n Please Specify which columns can be editable from front-end and also, You can specify\n which\n columns will be required\n ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_section_block_header"},[e("h3",[t._v("Appearance Settings")]),t._v(" "),e("p",[t._v("\n You can set the Editing Component Labels and Appearances\n ")])])}],!1,null,null,null).exports;const wl=n({name:"TopNav",props:["initialData","tableId"],data:function(){return{id:""}},methods:{saveTableData:function(){var t=this;this.$nextTick((function(){var e=document.getElementById("ninja_tables_builder_id");if(""===t.initialData.table_data.table_name)return t.$message({showClose:!0,message:t.$t("Table name field is required"),type:"error"}),!1;var a={action:"ninja_tables_builder_ajax_actions",target_action:"update-table",data:JSON.stringify(t.initialData),table_html:e.innerHTML,table_id:t.id};t.$post(a).then((function(e){t.$message({showClose:!0,message:t.$t("Table data saved successfully."),type:"success"}),t.id=e.data.id})).fail((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})})).always((function(){}))})),window.ninjaTableBus.$emit("closeManageCell")},fullScreenEnableDisable:function(){jQuery("body").toggleClass("folded")}},computed:{idExist:function(){return this.tableId?(this.id=this.tableId,this.id):!!this.id&&this.id},previewURL:function(){return window.location.origin+"/?ninjatable_builder_preview="+this.id}}},(function(){var t=this,e=t._self._c;return e("el-menu",{staticStyle:{transform:"translateY(-12px)"}},[e("el-row",{attrs:{type:"flex",align:"middle"}},[e("el-col",{attrs:{span:6}},[e("div",[t.initialData.table_data?e("el-input",{staticClass:"plugin-name",attrs:{placeholder:t.$t("Enter table name here....")},model:{value:t.initialData.table_data.table_name,callback:function(e){t.$set(t.initialData.table_data,"table_name",e)},expression:"initialData.table_data.table_name"}}):t._e()],1)]),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18}},[e("div",[t.idExist?e("el-button",{staticClass:"copy",attrs:{size:"small",type:"info","data-clipboard-text":'[ninja_table_builder id="'.concat(t.id,'"]'),icon:"el-icon-document-copy"}},[t._v('[ninja_table_builder id="'+t._s(t.id)+'"]\n ')]):t._e(),t._v(" "),t.idExist?e("a",{attrs:{href:t.previewURL,target:"_blank"}},[e("el-button",{attrs:{size:"small"}},[t._v(t._s(t.$t("Preview")))])],1):t._e(),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.saveTableData}},[t._v(t._s(t.$t("Save Table")))]),t._v(" "),e("el-button",{attrs:{type:"default",size:"small",icon:"el-icon-full-screen",circle:""},on:{click:t.fullScreenEnableDisable}})],1)])],1)],1)}),[],!1,null,null,null).exports;const xl={name:"SliderInput",model:{prop:["value"],event:"update"},computed:{mainValue:function(){return Number(this.value)},maxValue:function(){return Number(this.max)},minValue:function(){return Number(this.min)},stepValue:function(){return Number(this.step)}},props:{value:{type:[Number,String],default:12},max:{type:[Number,String],default:50},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},disableSlider:{type:Boolean,default:!1},enableResponsiveNClickDesktop:{type:Boolean,default:!1},breakpointEffect:{type:Boolean,default:!1}}};var kl=a(5061),Cl={insert:"head",singleton:!1};s()(kl.Z,Cl);kl.Z.locals;const Sl=n(xl,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),t._v(" "),"Table margin top"===t.label?e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("p",{attrs:{slot:"content"},slot:"content"},[t._v("Use margin top only for"),e("br"),t._v("horizontal ribbon positioning. ")]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})]):t._e(),t._v(" "),e("el-slider",{staticStyle:{"margin-right":"10px"},attrs:{value:t.mainValue,max:t.maxValue,min:t.minValue,step:t.stepValue,"show-input":"","input-size":"mini",disabled:t.disableResponsive||t.enableResponsiveNClickDesktop||t.breakpointEffect||t.disableSlider},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;const jl=n({name:"SwitchInput",model:{prop:"value",event:"update"},props:{value:{type:[Boolean,String],default:!1},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},enableResponsiveNClickDesktop:{type:Boolean,default:!1},breakpointEffect:{type:Boolean,default:!1}},computed:{mainValue:function(){return"true"===this.value||!0===this.value}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block space-between"},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("el-switch",{staticStyle:{"margin-right":"10px","margin-top":"1px"},attrs:{value:t.mainValue,disabled:t.disableResponsive||t.enableResponsiveNClickDesktop||t.breakpointEffect},on:{input:function(e){return t.$emit("update",e)}}},[t._v("\n >")])],1)}),[],!1,null,null,null).exports;const $l=n({name:"Alignment",model:{prop:"value",event:"update"},props:{value:{type:String,default:"left"},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},breakpointEffect:{type:Boolean,default:!1}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-radio-group",{staticStyle:{display:"flex","justify-content":"space-around","margin-right":"10px"},attrs:{value:t.value,disabled:t.disableResponsive||t.breakpointEffect},on:{input:function(e){return t.$emit("update",e)}}},[e("el-radio",{attrs:{label:"left"}},[t._v(t._s(t.$t("Left")))]),t._v(" "),e("el-radio",{attrs:{label:"center"}},[t._v(t._s(t.$t("Center")))]),t._v(" "),e("el-radio",{attrs:{label:"right"}},[t._v(t._s(t.$t("Right")))])],1)],1)}),[],!1,null,null,null).exports;const Tl={name:"ColorInput",data:function(){return{color:"#ff4500",predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#000000","#dddddd","#379D13"]}},model:{prop:"value",event:"update"},props:{value:{type:String,default:"#ffffff"},label:{type:String,default:""}},methods:{colorUpdate:function(t){var e=t;null===t&&(e=""),this.$emit("update",e)}}};var Il=a(4713),Dl={insert:"head",singleton:!1};s()(Il.Z,Dl);Il.Z.locals;const Pl=n(Tl,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block space-between"},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("el-color-picker",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini",value:t.value,predefine:t.predefineColors},on:{change:t.colorUpdate,"active-change":t.colorUpdate,input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;const El=n({name:"SelectInput",data:function(){return{}},model:{prop:"value",event:"update"},computed:{mainValue:{get:function(){return this.value},set:function(t){this.value=t}}},props:{value:{type:String,default:""},label:{type:String,default:""},items:{type:Array,default:""},disableResponsive:{type:Boolean,default:!1},breakpointEffect:{type:Boolean,default:!1}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-select",{attrs:{value:t.mainValue,placeholder:"Select",size:"mini",disabled:t.disableResponsive||t.breakpointEffect},on:{change:function(e){return t.$emit("update",e)}}},t._l(t.items,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)}),[],!1,null,null,null).exports;const Al=n({name:"AllInputElement",props:["initialData","item","disableResponsive","mobileDisableBreakpoint","tabletDisableBreakpoint","deviceName"],components:{SliderInput:Sl,SwitchInput:jl,Alignment:$l,ColorInput:Pl,SelectInput:El},computed:{breakpointEffect:function(){var t=!!this.initialData&&this.initialData.responsive.mode_options.options.devices.mobile.disable_breakpoint.value,e=!!this.initialData&&this.initialData.responsive.mode_options.options.devices.tablet.disable_breakpoint.value;return!("mobile"!==this.deviceName||!t||"disable_breakpoint"===this.item.key)||!("tablet"!==this.deviceName||!e||"disable_breakpoint"===this.item.key)},enableResponsive:function(){return!!this.initialData&&Boolean(this.initialData.responsive.general.options.enable_responsive_table.value)},tableRow:function(){return this.initialData?Number(this.initialData.table_data.table.tr):null},tableCol:function(){return this.initialData?Number(this.initialData.table_data.table.tc):null},showHeaderMobile:function(){return this.initialData?Boolean(this.initialData.responsive.mode_options.options.devices.mobile.top_row_as_header.value):null},showHeaderTablet:function(){return this.initialData?Boolean(this.initialData.responsive.mode_options.options.devices.tablet.top_row_as_header.value):null},separateRowColumn:function(){return this.initialData?Boolean(this.initialData.settings.general.options.columns_rows_separate.value):null},maxValue:function(){return"items_per_header"===this.item.key&&this.initialData?1==this.tableRow?this.tableCol:!this.showHeaderTablet&&"tablet"===this.deviceName||!this.showHeaderMobile&&"mobile"===this.deviceName?this.tableRow*this.tableCol:this.tableRow-1:this.item.max},showSlider:function(){var t=this.initialData?Number(this.initialData.responsive.mode_options.options.devices[this.deviceName].items_per_row.value):null;return!!this.enableResponsive&&(!(1!==this.tableRow||"items_per_header"!=this.item.key||!("mobile"===this.deviceName&&this.showHeaderMobile||"tablet"===this.deviceName&&this.showHeaderTablet))||(1===this.tableRow&&("mobile_cell_border"==this.item.key||"tablet_cell_border"==this.item.key)||("mobile_cell_border"==this.item.key&&!this.showHeaderMobile||"tablet_cell_border"==this.item.key&&!this.showHeaderTablet||(!(!this.separateRowColumn||"mobile_cell_border"!==this.item.key&&"tablet_cell_border"!==this.item.key)||!(t!==this.tableRow-1||!("mobile_cell_border"===this.item.key&&this.showHeaderMobile||"tablet_cell_border"===this.item.key&&this.showHeaderTablet))))))}}},(function(){var t=this,e=t._self._c;return e("div",["slider"===t.item.type?e("slider-input",{attrs:{label:t.item.label,max:t.maxValue,min:t.item.min,disableSlider:t.showSlider,disableResponsive:t.disableResponsive,enableResponsiveNClickDesktop:"desktop"===this.deviceName,breakpointEffect:t.breakpointEffect},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"switch"===t.item.type?e("switch-input",{attrs:{label:t.$t(t.item.label),disableResponsive:t.disableResponsive,enableResponsiveNClickDesktop:"desktop"===this.deviceName,breakpointEffect:t.breakpointEffect},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"alignment"===t.item.type?e("alignment",{attrs:{label:t.$t(t.item.label),disableResponsive:t.disableResponsive,breakpointEffect:t.breakpointEffect},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"color"===t.item.type?e("color-input",{attrs:{label:t.$t(t.item.label)},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"select"===t.item.type?e("select-input",{attrs:{label:t.$t(t.item.label),items:t.item.items,disableResponsive:t.disableResponsive,breakpointEffect:t.breakpointEffect},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):t._e()],1)}),[],!1,null,null,null).exports;const Nl=n({name:"FontWeight",model:{prop:"value",event:"update"},props:{value:{type:Array,default:function(){return[]}},label:{type:String,default:""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("el-checkbox-group",{staticStyle:{display:"flex","justify-content":"space-around","margin-right":"10px"},attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}},[e("el-checkbox",{attrs:{label:"bold"}},[t._v(t._s(t.$t("Bold")))]),t._v(" "),e("el-checkbox",{attrs:{label:"italic"}},[t._v(t._s(t.$t("Italic")))]),t._v(" "),e("el-checkbox",{attrs:{label:"underline"}},[t._v(t._s(t.$t("Underline")))])],1)],1)}),[],!1,null,null,null).exports;const Ol=n({name:"TextOption",props:["item"],components:{ColorInput:Pl,SliderInput:Sl,Alignment:$l,FontWeight:Nl}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("el-input",{staticStyle:{width:"96%","margin-bottom":"3px"},attrs:{type:"textarea",autosize:{minRows:3},placeholder:t.$t("Enter here")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Font Size"),min:10,max:45,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("font-weight",{attrs:{label:t.$t("Font Weight")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1)}),[],!1,null,null,null).exports;const Ml=n({name:"TextInput",model:{prop:"value",event:"update"},props:{value:{type:String,default:"https://google.com"},label:{type:String,default:""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",{staticStyle:{float:"left"}},[t._v(t._s(t.label))]),t._v(" "),e("el-input",{staticStyle:{width:"96%","margin-bottom":"2px"},attrs:{size:"mini",value:t.value},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;var zl=["accessibility-outline","accessibility","add-circle-outline","add-circle","add","airplane-outline","airplane","alarm-outline","alarm","albums-outline","albums","alert-circle-outline","alert-circle","alert","american-football-outline","american-football","analytics-outline","analytics","aperture-outline","aperture","apps-outline","apps","archive-outline","archive","arrow-back-circle-outline","arrow-back-circle","arrow-back","arrow-down-circle-outline","arrow-down-circle","arrow-down","arrow-forward-circle-outline","arrow-forward-circle","arrow-forward","arrow-redo-circle-outline","arrow-redo-circle","arrow-redo-outline","arrow-redo","arrow-undo-circle-outline","arrow-undo-circle","arrow-undo-outline","arrow-undo","arrow-up-circle-outline","arrow-up-circle","arrow-up","at-circle-outline","at-circle","at","attach","backspace-outline","backspace","bag-add-outline","bag-add","bag-check-outline","bag-check","bag-handle-outline","bag-handle","bag-outline","bag-remove","bag","balloon-outline","balloon","ban","bandage-outline","bandage","bar-chart-outline","bar-chart","barbell","barcode-outline","barcode","baseball-outline","baseball","basket-outline","basket","basketball-outline","basketball","battery-charging","battery-dead","battery-full","battery-half","beaker-outline","beaker","bed-outline","bed","beer-outline","beer","bicycle","bluetooth","boat-outline","boat","body-outline","body","bonfire-outline","bonfire","book-outline","book","bookmark-outline","bookmark","bookmarks-outline","bookmarks","bowling-ball-outline","bowling-ball","briefcase-outline","briefcase","browsers-outline","browsers","brush-outline","brush","bug-outline","bug","build-outline","build","bulb-outline","bulb","bus-outline","bus","business-outline","business","cafe-outline","cafe","calculator-outline","calculator","calendar-clear-outline","calendar-clear","calendar-number-outline","calendar-number","calendar-outline","calendar","call-outline","call","camera-outline","camera-reverse-outline","camera-reverse","camera","car-outline","car-sport-outline","car-sport","car","card-outline","card","caret-back-circle-outline","caret-back-circle","caret-back","caret-down-circle-outline","caret-down-circle","caret-down","caret-forward-circle-outline","caret-forward-circle","caret-forward","caret-up-circle-outline","caret-up-circle","caret-up","cart-outline","cart","cash-outline","cash","cellular-outline","cellular","chatbox-ellipses-outline","chatbox-ellipses","chatbox-outline","chatbox","chatbubble-ellipses-outline","chatbubble-ellipses","chatbubble-outline","chatbubble","chatbubbles-outline","chatbubbles","checkbox","checkmark-circle-outline","checkmark-circle","checkmark-done-circle-outline","checkmark-done-circle","checkmark-done","checkmark","chevron-back-circle-outline","chevron-back-circle","chevron-back","chevron-down-circle-outline","chevron-down-circle","chevron-down","chevron-forward-circle-outline","chevron-forward-circle","chevron-forward","chevron-up-circle-outline","chevron-up-circle","chevron-up","clipboard-outline","clipboard","close-circle","close","cloud-circle-outline","cloud-circle","cloud-done-outline","cloud-done","cloud-download-outline","cloud-download","cloud-offline-outline","cloud-offline","cloud-outline","cloud-upload-outline","cloud-upload","cloud","cloudy-night-outline","cloudy-night","cloudy-outline","cloudy","code-download","code-slash","code-working","code","cog","color-fill-outline","color-fill","color-filter-outline","color-filter","color-palette-outline","color-palette","color-wand-outline","color-wand","compass-outline","compass","construct-outline","construct","contract","contrast-outline","contrast","copy-outline","copy","create-outline","create","crop","cube-outline","cube","cut-outline","cut","desktop-outline","desktop","diamond-outline","diamond","dice-outline","dice","disc-outline","disc","document-attach-outline","document-attach","document-lock-outline","document-lock","document-outline","document-text-outline","document-text","document","documents-outline","documents","download-outline","download","duplicate-outline","duplicate","ear-outline","ear","earth-outline","earth","easel-outline","easel","egg-outline","egg","ellipse","ellipsis-horizontal-circle","ellipsis-horizontal-outline","ellipsis-horizontal","ellipsis-vertical-circle","ellipsis-vertical-outline","ellipsis-vertical","enter-outline","enter","exit-outline","exit","expand","extension-puzzle-outline","extension-puzzle","eye-off-outline","eye-off","eye-outline","eye","eyedrop-outline","eyedrop","fast-food-outline","fast-food","female","file-tray-full-outline","file-tray-full","file-tray-outline","file-tray-stacked-outline","file-tray-stacked","file-tray","film-outline","film","filter-circle-outline","filter-circle","filter","finger-print","fish-outline","fish","fitness-outline","fitness","flag-outline","flag","flame-outline","flame","flash-off-outline","flash-off","flash-outline","flash","flashlight-outline","flashlight","flask-outline","flask","flower-outline","flower","folder-open-outline","folder-open","folder-outline","folder","football-outline","football","footsteps-outline","footsteps","funnel-outline","funnel","game-controller-outline","game-controller","gift-outline","gift","git-branch","git-commit","git-compare","git-merge","git-network","git-pull-request","glasses-outline","glasses","globe-outline","globe","golf-outline","golf","grid-outline","grid","hammer-outline","hammer","hand-left-outline","hand-left","hand-right-outline","hand-right","happy-outline","happy","hardware-chip-outline","hardware-chip","headset-outline","headset","heart-circle-outline","heart-circle","heart-dislike-circle-outline","heart-dislike-circle","heart-dislike-outline","heart-dislike","heart-half","heart-outline","heart","help-buoy-outline","help-buoy","help-circle-outline","help-circle","help","home-outline","home","hourglass-outline","hourglass","ice-cream-outline","ice-cream","id-card-outline","id-card","image-outline","image","images-outline","images","infinite","information-circle-outline","information-circle","information","invert-mode-outline","invert-mode","journal-outline","journal","key-outline","key","keypad-outline","keypad","language-outline","language","laptop-outline","laptop","layers-outline","layers","leaf-outline","leaf","library-outline","library","link","list-circle-outline","list-circle","list","locate","location-outline","location","lock-closed-outline","lock-closed","lock-open-outline","lock-open","log-in-outline","log-in","log-out-outline","log-out","logo-alipay","logo-amazon","logo-amplify","logo-android","logo-angular","logo-apple-appstore","logo-apple-ar","logo-apple","logo-behance","logo-bitbucket","logo-bitcoin","logo-buffer","logo-capacitor","logo-chrome","logo-closed-captioning","logo-codepen","logo-css3","logo-designernews","logo-deviantart","logo-discord","logo-docker","logo-dribbble","logo-dropbox","logo-edge","logo-electron","logo-euro","logo-facebook","logo-figma","logo-firebase","logo-firefox","logo-flickr","logo-foursquare","logo-github","logo-gitlab","logo-google-playstore","logo-google","logo-hackernews","logo-html5","logo-instagram","logo-ionic","logo-ionitron","logo-javascript","logo-laravel","logo-linkedin","logo-markdown","logo-mastodon","logo-medium","logo-microsoft","logo-no-smoking","logo-nodejs","logo-npm","logo-octocat","logo-paypal","logo-pinterest","logo-playstation","logo-pwa","logo-python","logo-react","logo-reddit","logo-rss","logo-sass","logo-skype","logo-slack","logo-snapchat","logo-soundcloud","logo-stackoverflow","logo-steam","logo-stencil","logo-tableau","logo-tiktok","logo-tumblr","logo-tux","logo-twitch","logo-twitter","logo-usd","logo-venmo","logo-vercel","logo-vimeo","logo-vk","logo-vue","logo-web-component","logo-wechat","logo-whatsapp","logo-windows","logo-wordpress","logo-xbox","logo-xing","logo-yahoo","logo-yen","logo-youtube","magnet-outline","magnet","mail-open-outline","mail-open","mail-outline","mail-unread-outline","mail-unread","mail","male-female","male","man-outline","man","map-outline","map","medal-outline","medal","medical-outline","medical","medkit-outline","medkit","megaphone-outline","megaphone","menu-outline","menu","mic-circle-outline","mic-circle","mic-off-circle-outline","mic-off-circle","mic-off-outline","mic-off","mic-outline","mic","moon-outline","moon","move","musical-note-outline","musical-note","musical-notes-outline","musical-notes","navigate-circle-outline","navigate-circle","navigate-outline","navigate","newspaper-outline","newspaper","notifications-circle-outline","notifications-circle","notifications-off-circle-outline","notifications-off-circle","notifications-off-outline","notifications-off","notifications-outline","notifications","nuclear-outline","nuclear","nutrition-outline","nutrition","open-outline","open","options-outline","options","paper-plane-outline","paper-plane","partly-sunny-outline","partly-sunny","pause-circle-outline","pause-circle","pause","paw-outline","paw","pencil","people-circle-outline","people-circle","people-outline","people","person-add-outline","person-add","person-circle-outline","person-circle","person-outline","person-remove-outline","person-remove","person","phone-landscape-outline","phone-landscape","phone-portrait-outline","phone-portrait","pie-chart-outline","pie-chart","pin-outline","pin","pint-outline","pint","pizza-outline","pizza","planet-outline","planet","play-back-circle-outline","play-back-circle","play-back-outline","play-back","play-circle-outline","play-circle","play-forward-circle-outline","play-forward-circle","play-forward-outline","play-forward","play-outline","play-skip-back-circle-outline","play-skip-back-circle","play-skip-back-outline","play-skip-back","play-skip-forward-circle-outline","play-skip-forward-circle","play-skip-forward-outline","play-skip-forward","play","podium-outline","podium","power","pricetag-outline","pricetag","pricetags-outline","pricetags","print-outline","print","prism-outline","prism","pulse","push-outline","push","qr-code-outline","qr-code","radio-button-off-outline","radio-button-off","radio","rainy-outline","rainy","reader-outline","reader","receipt-outline","receipt","recording-outline","recording","refresh-circle-outline","refresh-circle","refresh","reload-circle-outline","reload-circle","reload","remove-circle-outline","remove-circle","remove","reorder-four","reorder-three","reorder-two","repeat","resize","restaurant-outline","restaurant","return-down-back","return-down-forward","return-up-back","return-up-forward","ribbon-outline","ribbon","rocket-outline","rocket","rose-outline","rose","sad-outline","sad","save-outline","save","scale-outline","scale","scan-circle-outline","scan-circle","scan","school-outline","school","search-circle-outline","search-circle","search-outline","search","send-outline","send","server-outline","server","settings-outline","settings","shapes-outline","shapes","share-outline","share-social-outline","share-social","share","shield-checkmark-outline","shield-checkmark","shield-half-outline","shield-half","shield-outline","shield","shirt-outline","shirt","shuffle","skull-outline","skull","snow-outline","snow","sparkles-outline","sparkles","speedometer-outline","speedometer","square-outline","square","star-half-outline","star-half","star-outline","star","stats-chart-outline","stats-chart","stop-circle-outline","stop-circle","stop-outline","stop","stopwatch-outline","stopwatch","storefront-outline","storefront","subway-outline","subway","sunny-outline","sunny","swap-horizontal","swap-vertical","sync-circle-outline","sync-circle","sync","tablet-landscape-outline","tablet-landscape","tablet-portrait-outline","tablet-portrait","telescope-outline","telescope","tennisball-outline","tennisball","terminal-outline","terminal","text","thermometer-outline","thermometer","thumbs-down-outline","thumbs-down","thumbs-up-outline","thumbs-up","thunderstorm-outline","thunderstorm","ticket-outline","ticket","time-outline","time","timer-outline","timer","today-outline","today","toggle-outline","toggle","trail-sign-outline","trail-sign","train-outline","train","transgender","trash-bin-outline","trash-bin","trash-outline","trash","trending-down","trending-up","triangle-outline","triangle","trophy-outline","trophy","tv-outline","tv","umbrella-outline","umbrella","unlink","videocam-off-outline","videocam-off","videocam-outline","videocam","volume-high-outline","volume-high","volume-low-outline","volume-low","volume-medium-outline","volume-medium","volume-mute-outline","volume-mute","volume-off-outline","volume-off","walk-outline","walk","wallet-outline","wallet","warning-outline","warning","watch-outline","watch","water-outline","water","wifi","wine-outline","wine","woman-outline","woman","ninja-table"];var Fl=n({name:"Icon",props:["item","setValue"],data:function(){return{icons:zl,keyword:""}},methods:{newIcon:function(){var t=this,e=wp.media({title:"Choose Icon",multiple:!1}).on("select",(function(){var a=e.state().get("selection").first().toJSON();"icon"===t.item.data.type?t.item.data.value=a.url:t.item.data.style[t.setValue]=a.url})).open()},chooseIcon:function(t){"icon"===this.item.data.type?this.item.data.value=t:this.item.data.style[this.setValue]=t},getAsset:function(t){return ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"}},computed:{iconList:function(){var t=this;return this.icons.filter((function(e){return t.keyword.toLowerCase().split(" ").every((function(t){return e.toLowerCase().includes(t)}))}))}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tooltip",{attrs:{effect:"dark",placement:"top-right",content:"If you choose svg you can customize the color otherwise can't"}},[e("el-button",{attrs:{size:"medium",type:"primary",round:"",icon:"el-icon-upload"},on:{click:function(e){return e.preventDefault(),t.newIcon.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("Choose Icon"))+"\n ")])],1),t._v(" "),e("hr",{staticClass:"hr-dashed"}),t._v(" "),e("el-input",{staticStyle:{margin:"10px 0",width:"96%"},attrs:{placeholder:t.$t("Search Icon")},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),e("div",{staticStyle:{height:"100px",width:"100%","overflow-y":"scroll"}},t._l(t.iconList,(function(a,n){return e("span",{key:n},[e("img",{attrs:{src:t.getAsset(a),width:"30px",height:"30px"},on:{click:function(e){return t.chooseIcon("".concat(a))}}})])})),0)],1)}),[],!1,null,null,null);const Bl=Fl.exports;const Ll=n({data:function(){return{activeName:"general"}},name:"ButtonOption",props:["item"],components:{ColorInput:Pl,SliderInput:Sl,SwitchInput:jl,TextInput:Ml,Icon:Bl,Alignment:$l,FontWeight:Nl},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},extension:function(){var t=this.item.data.style.iconName.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t._self._c;return e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("el-input",{staticStyle:{width:"96%","margin-bottom":"3px"},attrs:{type:"text",placeholder:t.$t("Enter here")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Background color")},model:{value:t.item.data.style.backgroundColor,callback:function(e){t.$set(t.item.data.style,"backgroundColor",e)},expression:"item.data.style.backgroundColor"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Border color")},model:{value:t.item.data.style.borderColor,callback:function(e){t.$set(t.item.data.style,"borderColor",e)},expression:"item.data.style.borderColor"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Border Size"),max:10,min:0,step:1},model:{value:t.item.data.style.borderSize,callback:function(e){t.$set(t.item.data.style,"borderSize",e)},expression:"item.data.style.borderSize"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Border Radius"),max:30,min:0,step:1},model:{value:t.item.data.style.borderRadius,callback:function(e){t.$set(t.item.data.style,"borderRadius",e)},expression:"item.data.style.borderRadius"}}),t._v(" "),e("switch-input",{attrs:{label:t.$t("Full Width")},model:{value:t.item.data.style.fullWidth,callback:function(e){t.$set(t.item.data.style,"fullWidth",e)},expression:"item.data.style.fullWidth"}}),t._v(" "),!1===t.item.data.style.fullWidth?e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}):t._e(),t._v(" "),e("text-input",{attrs:{label:t.$t("URL")},model:{value:t.item.data.style.url,callback:function(e){t.$set(t.item.data.style,"url",e)},expression:"item.data.style.url"}}),t._v(" "),e("switch-input",{staticStyle:{"margin-top":"12px"},attrs:{label:t.$t("Open in another tab")},model:{value:t.item.data.style.newTab,callback:function(e){t.$set(t.item.data.style,"newTab",e)},expression:"item.data.style.newTab"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("font-weight",{attrs:{label:t.$t("Font Style")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Icon"),name:"icon"}},[t.hasPro?t._e():[e("span",{staticClass:"text-warning"},[t._v(t._s(t.$t("You are using free version of ninja-tables")))])],t._v(" "),t.hasPro?e("switch-input",{attrs:{label:t.$t("Enable Icon")},model:{value:t.item.data.style.enableIcon,callback:function(e){t.$set(t.item.data.style,"enableIcon",e)},expression:"item.data.style.enableIcon"}}):t._e(),t._v(" "),t.item.data.style.enableIcon&&t.hasPro?e("span",[t.extension?e("color-input",{attrs:{label:t.$t("Icon Color")},model:{value:t.item.data.style.iconColor,callback:function(e){t.$set(t.item.data.style,"iconColor",e)},expression:"item.data.style.iconColor"}}):t._e(),t._v(" "),e("slider-input",{attrs:{label:t.$t("Icon Size"),max:50,min:10,step:1},model:{value:t.item.data.style.iconFontSize,callback:function(e){t.$set(t.item.data.style,"iconFontSize",e)},expression:"item.data.style.iconFontSize"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Item Spacing"),max:100,min:0,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("icon",{attrs:{item:t.item,setValue:"iconName"}}),t._v(" "),e("p",[t._v(t._s(t.$t("Icon Position")))]),t._v(" "),e("el-select",{attrs:{placeholder:"Select"},model:{value:t.item.data.style.iconPosition,callback:function(e){t.$set(t.item.data.style,"iconPosition",e)},expression:"item.data.style.iconPosition"}},t._l(["left","right"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1):t._e()],2),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Hover"),name:"hover"}},[e("switch-input",{attrs:{label:t.$t("Button Hover")},model:{value:t.item.data.style.isHover,callback:function(e){t.$set(t.item.data.style,"isHover",e)},expression:"item.data.style.isHover"}}),t._v(" "),t.item.data.style.isHover?e("color-input",{attrs:{label:t.$t("Background Color")},model:{value:t.item.data.style.hoverBackgroundColor,callback:function(e){t.$set(t.item.data.style,"hoverBackgroundColor",e)},expression:"item.data.style.hoverBackgroundColor"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("color-input",{attrs:{label:t.$t("Text Color")},model:{value:t.item.data.style.hoverColor,callback:function(e){t.$set(t.item.data.style,"hoverColor",e)},expression:"item.data.style.hoverColor"}}):t._e(),t._v(" "),t.item.data.style.isHover&&t.item.data.style.enableIcon&&t.hasPro&&t.extension?e("color-input",{attrs:{label:t.$t("Icon Color")},model:{value:t.item.data.style.hoverIconColor,callback:function(e){t.$set(t.item.data.style,"hoverIconColor",e)},expression:"item.data.style.hoverIconColor"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("color-input",{attrs:{label:t.$t("Border color")},model:{value:t.item.data.style.hoverBorderColor,callback:function(e){t.$set(t.item.data.style,"hoverBorderColor",e)},expression:"item.data.style.hoverBorderColor"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("slider-input",{attrs:{label:t.$t("Border Size"),max:10,min:0,step:1},model:{value:t.item.data.style.hoverBorderSize,callback:function(e){t.$set(t.item.data.style,"hoverBorderSize",e)},expression:"item.data.style.hoverBorderSize"}}):t._e(),t._v(" "),t.item.data.style.isHover?e("slider-input",{attrs:{label:t.$t("Scale"),max:3,min:1,step:.1},model:{value:t.item.data.style.transition,callback:function(e){t.$set(t.item.data.style,"transition",e)},expression:"item.data.style.transition"}}):t._e()],1)],1)}),[],!1,null,null,null).exports;const Rl=n({name:"StarRatingOption",props:["item"],components:{SliderInput:Sl,ColorInput:Pl,AlignmentInput:$l,SwitchInput:jl}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("slider-input",{attrs:{label:t.$t("Star Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("alignment-input",{attrs:{label:t.$t("Align")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("switch-input",{attrs:{label:t.$t("Show Rating Value")},model:{value:t.item.data.style.showRatingValue,callback:function(e){t.$set(t.item.data.style,"showRatingValue",e)},expression:"item.data.style.showRatingValue"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Maximum Star"),max:10,min:3,step:1},model:{value:t.item.data.style.maxStar,callback:function(e){t.$set(t.item.data.style,"maxStar",e)},expression:"item.data.style.maxStar"}})],1)}),[],!1,null,null,null).exports;const Hl=n({name:"IconOption",props:["item"],components:{ColorInput:Pl,AlignmentInput:$l,Slider:Sl,Icon:Bl},computed:{extension:function(){var t=this.item.data.value.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[t.extension?e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Icon Size"),max:150,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("alignment-input",{attrs:{label:t.$t("Align")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("icon",{attrs:{item:t.item}})],1)}),[],!1,null,null,null).exports;const Wl=n({name:"ProgressOption",data:function(){return{types:["line","circle","dashboard"]}},props:["item"],components:{ColorInput:Pl,Slider:Sl,Alignment:$l}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("div",[e("span",[t._v(t._s(t.$t("Progress Type")))]),t._v(" "),e("el-select",{staticStyle:{width:"97%","margin-bottom":"7px"},attrs:{placeholder:t.$t("Progress Bar Type")},model:{value:t.item.data.style.type,callback:function(e){t.$set(t.item.data.style,"type",e)},expression:"item.data.style.type"}},t._l(t.types,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),t._v(" "),e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Text Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Progressbar Percentage"),max:100,min:10,step:1},model:{value:t.item.data.style.percentage,callback:function(e){t.$set(t.item.data.style,"percentage",e)},expression:"item.data.style.percentage"}}),t._v(" "),"line"!==t.item.data.style.type?e("slider",{attrs:{label:t.$t("Progressbar Width"),max:150,min:50,step:1},model:{value:t.item.data.style.width,callback:function(e){t.$set(t.item.data.style,"width",e)},expression:"item.data.style.width"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Progressbar Thickness"),max:15,min:2,step:1},model:{value:t.item.data.style.thickness,callback:function(e){t.$set(t.item.data.style,"thickness",e)},expression:"item.data.style.thickness"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1)}),[],!1,null,null,null).exports;const ql=n({name:"ListOption",props:["item","settings"],data:function(){return{activeName:"general",list:{ul:["circle","square","disc","none"],ol:["upper-roman","lower-roman","upper-alpha","lower-alpha","decimal"]}}},components:{ColorInput:Pl,Slider:Sl,Alignment:$l,FontWeight:Nl},computed:{updatedList:function(){return this.item.data.style.listStyle="ul"===this.item.data.style.listType?"circle":"upper-roman",this.list[this.item.data.style.listType]},globalFontValue:function(){return Number(this.settings.global_styling.options.font_size.value)-Number(2)}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("slider",{attrs:{label:t.$t("Item Spacing Vertically"),max:50,min:t.globalFontValue,step:1},model:{value:t.item.data.style.lineHeight,callback:function(e){t.$set(t.item.data.style,"lineHeight",e)},expression:"item.data.style.lineHeight"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Space Between Icon and Text"),max:100,min:-5,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("font-weight",{attrs:{label:t.$t("Font Style")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("List"),name:"list"}},[e("p",[t._v(t._s(t.$t("List Type")))]),t._v(" "),e("el-radio-group",{model:{value:t.item.data.style.listType,callback:function(e){t.$set(t.item.data.style,"listType",e)},expression:"item.data.style.listType"}},[e("el-radio",{attrs:{label:"ul"}},[t._v(t._s(t.$t("Unordered List")))]),t._v(" "),e("el-radio",{attrs:{label:"ol"}},[t._v(t._s(t.$t("Ordered List")))])],1),t._v(" "),e("span",[t._v(t._s(t.$t("List Icon")))]),t._v(" "),e("el-select",{attrs:{placeholder:t.$t("List Icon")},model:{value:t.item.data.style.listStyle,callback:function(e){t.$set(t.item.data.style,"listStyle",e)},expression:"item.data.style.listStyle"}},t._l(t.updatedList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports;const Vl=n({name:"CustomHTML",props:["item"]},(function(){var t=this,e=t._self._c;return e("div",[e("el-input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:t.$t("write html")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}})],1)}),[],!1,null,null,null).exports;const Ul=n({name:"ShortcodeOption",props:["item"],components:{AlignmentInput:$l}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:"write html"},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("alignment-input",{attrs:{label:t.$t("Align")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1)}),[],!1,null,null,null).exports;const Yl=n({name:"StylistListOption",props:["item","settings"],data:function(){return{activeName:"general"}},components:{Slider:Sl,ColorInput:Pl,Alignment:$l,Icon:Bl,fontWeight:Nl},computed:{extension:function(){var t=this.item.data.style.iconName.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")},globalFontValue:function(){return Number(this.settings.global_styling.options.font_size.value)-Number(2)}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("slider",{attrs:{label:t.$t("Space Between Icon and Text"),max:200,min:0,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Item Spacing Vertically"),max:50,min:t.globalFontValue,step:1},model:{value:t.item.data.style.lineHeight,callback:function(e){t.$set(t.item.data.style,"lineHeight",e)},expression:"item.data.style.lineHeight"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("font-weight",{attrs:{label:t.$t("Font Style")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Icon"),name:"icon"}},[t.extension?e("color-input",{attrs:{label:t.$t("Icon Color")},model:{value:t.item.data.style.iconColor,callback:function(e){t.$set(t.item.data.style,"iconColor",e)},expression:"item.data.style.iconColor"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Icon Size"),max:50,min:10,step:1},model:{value:t.item.data.style.iconFontSize,callback:function(e){t.$set(t.item.data.style,"iconFontSize",e)},expression:"item.data.style.iconFontSize"}}),t._v(" "),e("icon",{attrs:{item:t.item,setValue:"iconName"}})],1)],1)],1)}),[],!1,null,null,null).exports;var Zl=n({name:"Shape",model:{prop:"value",event:"update"},props:{value:{type:String,default:"square"},label:{type:String,default:""}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.label))]),e("br"),t._v(" "),e("el-radio-group",{staticStyle:{"margin-top":"5px"},attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}},[e("el-radio",{attrs:{label:"square"}},[t._v(t._s(t.$t("Square")))]),t._v(" "),e("el-radio",{attrs:{label:"round"}},[t._v(t._s(t.$t("Round")))])],1)],1)}),[],!1,null,null,null);const Jl=n({name:"ImageOption",props:["item"],components:{Alignment:$l,TextInput:Ml,SliderInput:Sl,Shape:Zl.exports},methods:{replaceImage:function(){var t=this,e=wp.media({title:"Choose Image",multiple:!1}).on("select",(function(){var a=e.state().get("selection").first().toJSON();t.item.data.value=a.url})).open()}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"component-wrapper"},[e("el-button",{attrs:{size:"medium",type:"primary",round:"",icon:"el-icon-upload"},on:{click:function(e){return e.preventDefault(),t.replaceImage.apply(null,arguments)}}},[t._v("\n "+t._s(t.$t("Replace Image"))+"\n ")]),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Image Size"),max:100,min:10,step:1},model:{value:t.item.data.style.size,callback:function(e){t.$set(t.item.data.style,"size",e)},expression:"item.data.style.size"}}),t._v(" "),e("shape",{attrs:{label:t.$t("Image Shape")},model:{value:t.item.data.style.shape,callback:function(e){t.$set(t.item.data.style,"shape",e)},expression:"item.data.style.shape"}}),t._v(" "),e("text-input",{attrs:{label:t.$t("Image Alternative Text")},model:{value:t.item.data.style.alt,callback:function(e){t.$set(t.item.data.style,"alt",e)},expression:"item.data.style.alt"}}),t._v(" "),e("text-input",{attrs:{label:t.$t("Image Link")},model:{value:t.item.data.style.link,callback:function(e){t.$set(t.item.data.style,"link",e)},expression:"item.data.style.link"}})],1)}),[],!1,null,null,null).exports;const Ql=n({name:"SpacingInput",data:function(){return{lock:!1,activeName:"margin"}},props:["item","types"],components:{SliderInput:Sl},methods:{marginPadding:function(t,e){this.lock?(this.item.data.style[this.activeName].top=t,this.item.data.style[this.activeName].bottom=t,this.item.data.style[this.activeName].left=t,this.item.data.style[this.activeName].right=t):this.item.data.style[this.activeName][e]=t}},computed:{top:{get:function(){return this.item.data.style[this.activeName].top},set:function(t){this.marginPadding(t,"top")}},bottom:{get:function(){return this.item.data.style[this.activeName].bottom},set:function(t){this.marginPadding(t,"bottom")}},left:{get:function(){return this.item.data.style[this.activeName].left},set:function(t){this.marginPadding(t,"left")}},right:{get:function(){return this.item.data.style[this.activeName].right},set:function(t){this.marginPadding(t,"right")}}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("i",{class:"el-icon-".concat(!1===t.lock?"unlock":"lock"),staticStyle:{"font-size":"25px","text-align":"right",display:"block"},on:{click:function(e){t.lock=!t.lock}}}),t._v(" "),t._l(t.types,(function(a){return e("el-tab-pane",{key:a,attrs:{label:t.$t("margin"===a?"Margin":"Padding"),name:a}},[e("slider-input",{attrs:{label:t.$t("Top"),max:100,min:0},model:{value:t.top,callback:function(e){t.top=e},expression:"top"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Bottom"),max:100,min:0},model:{value:t.bottom,callback:function(e){t.bottom=e},expression:"bottom"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Left"),max:100,min:0},model:{value:t.left,callback:function(e){t.left=e},expression:"left"}}),t._v(" "),e("slider-input",{attrs:{label:t.$t("Right"),max:100,min:0},model:{value:t.right,callback:function(e){t.right=e},expression:"right"}})],1)}))],2)],1)}),[],!1,null,null,null).exports;const Xl=n({name:"TextIconOption",props:["item"],data:function(){return{activeName:"general"}},components:{Slider:Sl,ColorInput:Pl,Alignment:$l,Icon:Bl,FontWeight:Nl},computed:{extension:function(){var t=this.item.data.style.iconName.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:3},placeholder:t.$t("Enter here")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Item Spacing"),max:200,min:0,step:1},model:{value:t.item.data.style.itemSpacing,callback:function(e){t.$set(t.item.data.style,"itemSpacing",e)},expression:"item.data.style.itemSpacing"}}),t._v(" "),e("alignment",{attrs:{label:t.$t("Alignment")},model:{value:t.item.data.style.alignment,callback:function(e){t.$set(t.item.data.style,"alignment",e)},expression:"item.data.style.alignment"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("font-weight",{attrs:{label:t.$t("Font Style")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Icon"),name:"icon"}},[t.extension?e("color-input",{attrs:{label:t.$t("Color")},model:{value:t.item.data.style.iconColor,callback:function(e){t.$set(t.item.data.style,"iconColor",e)},expression:"item.data.style.iconColor"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Icon Size"),max:50,min:10,step:1},model:{value:t.item.data.style.iconFontSize,callback:function(e){t.$set(t.item.data.style,"iconFontSize",e)},expression:"item.data.style.iconFontSize"}}),t._v(" "),e("icon",{attrs:{item:t.item,setValue:"iconName"}}),t._v(" "),e("p",[t._v(t._s(t.$t("Icon Position")))]),t._v(" "),e("el-select",{attrs:{placeholder:"Select"},model:{value:t.item.data.style.iconPosition,callback:function(e){t.$set(t.item.data.style,"iconPosition",e)},expression:"item.data.style.iconPosition"}},t._l(["left","right"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports;const Gl=n({name:"RibbonOption",props:["item","maxWidth","settings"],data:function(){return{cellPadding:this.settings.general.options.cell_padding.value,activeTabName:"general"}},methods:{leftToRight:function(){var t=0;t="right"===this.item.data.style.ribbonPosition?this.cornerMaxWidth-10:-13,this.item.data.style.cornerXAxis=t}},computed:{cornerMaxWidth:function(){return Number(this.maxWidth)+Number(2*(this.cellPadding-10))-100},cornerXAxis:function(){return Number(this.maxWidth)+Number(2*(this.cellPadding-10))-100},bookmarkXAxis:function(){return Number(this.maxWidth)+Number(6)+Number(2*(this.cellPadding-10))-Number(this.item.data.style.bookmarkWidth)},horizontalMaxWidth:function(){return Number(this.maxWidth)+Number(20)+Number(2*(this.cellPadding-10))},sideMaxWidth:function(){return Number(this.maxWidth)+Number(2*(this.cellPadding-10))},bookmarkMaxWidth:function(){return Number(this.maxWidth)+Number(16)+Number(2*(this.cellPadding-10))}},components:{ColorInput:Pl,Slider:Sl,FontWeight:Nl}},(function(){var t=this,e=t._self._c;return e("div",[e("el-tabs",{model:{value:t.activeTabName,callback:function(e){t.activeTabName=e},expression:"activeTabName"}},[e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("General"),name:"general"}},[e("span",[t._v(t._s(t.$t("Ribbon Type")))]),t._v(" "),e("el-select",{staticStyle:{width:"97%","margin-bottom":"7px"},model:{value:t.item.data.style.ribbonType,callback:function(e){t.$set(t.item.data.style,"ribbonType",e)},expression:"item.data.style.ribbonType"}},t._l(["side","bookmark","corner","horizontal"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1),t._v(" "),"corner"===t.item.data.style.ribbonType?e("p",[t._v(t._s(t.$t("Ribbon Position")))]):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("el-select",{attrs:{placeholder:"Select"},on:{change:t.leftToRight},model:{value:t.item.data.style.ribbonPosition,callback:function(e){t.$set(t.item.data.style,"ribbonPosition",e)},expression:"item.data.style.ribbonPosition"}},t._l(["left","right"],(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:500,min:100},model:{value:t.item.data.style.width,callback:function(e){t.$set(t.item.data.style,"width",e)},expression:"item.data.style.width"}}):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:60,min:10},model:{value:t.item.data.style.height,callback:function(e){t.$set(t.item.data.style,"height",e)},expression:"item.data.style.height"}}):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("X Offset"),max:t.cornerXAxis,min:-30,step:1},model:{value:t.item.data.style.cornerXAxis,callback:function(e){t.$set(t.item.data.style,"cornerXAxis",e)},expression:"item.data.style.cornerXAxis"}}):t._e(),t._v(" "),"side"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:t.sideMaxWidth,min:20},model:{value:t.item.data.style.sideWidth,callback:function(e){t.$set(t.item.data.style,"sideWidth",e)},expression:"item.data.style.sideWidth"}}):t._e(),t._v(" "),"side"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:100,min:10},model:{value:t.item.data.style.sideHeight,callback:function(e){t.$set(t.item.data.style,"sideHeight",e)},expression:"item.data.style.sideHeight"}}):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:t.bookmarkMaxWidth,min:30},model:{value:t.item.data.style.bookmarkWidth,callback:function(e){t.$set(t.item.data.style,"bookmarkWidth",e)},expression:"item.data.style.bookmarkWidth"}}):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:200,min:5},model:{value:t.item.data.style.bookmarkHeight,callback:function(e){t.$set(t.item.data.style,"bookmarkHeight",e)},expression:"item.data.style.bookmarkHeight"}}):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("X Offset"),max:t.bookmarkXAxis,min:-10,step:1},model:{value:t.item.data.style.xAxis,callback:function(e){t.$set(t.item.data.style,"xAxis",e)},expression:"item.data.style.xAxis"}}):t._e(),t._v(" "),"horizontal"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Width"),max:t.horizontalMaxWidth,min:30},model:{value:t.item.data.style.horizontalWidth,callback:function(e){t.$set(t.item.data.style,"horizontalWidth",e)},expression:"item.data.style.horizontalWidth"}}):t._e(),t._v(" "),"horizontal"===t.item.data.style.ribbonType?e("slider",{attrs:{label:t.$t("Ribbon Height"),max:100,min:5},model:{value:t.item.data.style.horizontalHeight,callback:function(e){t.$set(t.item.data.style,"horizontalHeight",e)},expression:"item.data.style.horizontalHeight"}}):t._e(),t._v(" "),e("slider",{attrs:{label:t.$t("Y Offset"),max:150,min:-150,step:1},model:{value:t.item.data.style.yAxis,callback:function(e){t.$set(t.item.data.style,"yAxis",e)},expression:"item.data.style.yAxis"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Table margin top"),max:t.item.data.style.horizontalHeight,min:0},model:{value:t.settings.global_styling.options.margin_top.value,callback:function(e){t.$set(t.settings.global_styling.options.margin_top,"value",e)},expression:"settings.global_styling.options.margin_top.value"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Text"),name:"text"}},[e("el-input",{staticStyle:{width:"96%","margin-bottom":"7px"},attrs:{type:"text",placeholder:t.$t("Ribbon Text")},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}),t._v(" "),e("color-input",{attrs:{label:t.$t("Font color")},model:{value:t.item.data.style.color,callback:function(e){t.$set(t.item.data.style,"color",e)},expression:"item.data.style.color"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Size"),max:50,min:10,step:1},model:{value:t.item.data.style.fontSize,callback:function(e){t.$set(t.item.data.style,"fontSize",e)},expression:"item.data.style.fontSize"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font X Offset"),max:100,min:-100,step:1},model:{value:t.item.data.style.textXAxis,callback:function(e){t.$set(t.item.data.style,"textXAxis",e)},expression:"item.data.style.textXAxis"}}),t._v(" "),e("slider",{attrs:{label:t.$t("Font Y Offset"),max:100,min:-100,step:1},model:{value:t.item.data.style.textYAxis,callback:function(e){t.$set(t.item.data.style,"textYAxis",e)},expression:"item.data.style.textYAxis"}}),t._v(" "),e("font-weight",{attrs:{label:t.$t("Font Weight")},model:{value:t.item.data.style.fontWeight,callback:function(e){t.$set(t.item.data.style,"fontWeight",e)},expression:"item.data.style.fontWeight"}})],1),t._v(" "),e("el-tab-pane",{staticClass:"component-wrapper",attrs:{label:t.$t("Background"),name:"background"}},[e("color-input",{attrs:{label:t.$t("Background color")},model:{value:t.item.data.style.backgroundColor,callback:function(e){t.$set(t.item.data.style,"backgroundColor",e)},expression:"item.data.style.backgroundColor"}})],1)],1)],1)}),[],!1,null,null,null).exports;const Kl=n({name:"BackgroundColor",components:{ColorInput:Pl},props:["manageCell"],data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#000000","#dddddd","#379D13"]}},methods:{changeTdBackground:function(t){var e=this,a=t;null===t&&(a=""),this.manageCell.data.tableData.forEach((function(t){t.rows[e.manageCell.data.headers[e.manageCell.data.table.columnIndex]].style.backgroundColor=a}))},changeSelectedCellBackground:function(t){var e=this,a=t;(null===t&&(a=""),this.manageCell.data.tdIds.length>0)&&this.manageCell.data.tableData.forEach((function(t){Object.values(t.rows).forEach((function(t){e.manageCell.data.tdIds.includes(t.style.tdId)&&(t.style.backgroundColor=a)}))}))}},computed:{headerBackground:{get:function(){return this.manageCell.data.setting.background.options.header_background.value},set:function(t){var e=this.manageCell.data.setting.background;e.options.header_background.value=""==t&&e?"#fff":t}},cellBackground:{get:function(){if(this.manageCell.data.table.column.style)return this.manageCell.data.table.column.style.backgroundColor},set:function(t){this.manageCell.data.table.column.style.backgroundColor=t}},trBackground:{get:function(){if(this.manageCell.data.table.row.style)return this.manageCell.data.table.row.style.backgroundColor},set:function(t){this.manageCell.data.table.row.style.backgroundColor=t}}}},(function(){var t=this,e=t._self._c;return e("div",[e("h3",[t._v(t._s(t.$t("General Color Options")))]),t._v(" "),e("color-input",{attrs:{label:t.$t("Header Background")},model:{value:t.headerBackground,callback:function(e){t.headerBackground=e},expression:"headerBackground"}}),t._v(" "),e("hr",{staticClass:"hr-dahsed"}),t._v(" "),e("color-input",{attrs:{label:t.$t("Even Row Background")},model:{value:t.manageCell.data.setting.background.options.even_row_background.value,callback:function(e){t.$set(t.manageCell.data.setting.background.options.even_row_background,"value",e)},expression:"manageCell.data.setting.background.options.even_row_background.value"}}),t._v(" "),e("hr",{staticClass:"hr-dahsed"}),t._v(" "),e("color-input",{attrs:{label:t.$t("Odd Row Background")},model:{value:t.manageCell.data.setting.background.options.odd_row_background.value,callback:function(e){t.$set(t.manageCell.data.setting.background.options.odd_row_background,"value",e)},expression:"manageCell.data.setting.background.options.odd_row_background.value"}}),t._v(" "),[1===t.manageCell.data.tdIds.length?[e("h3",[t._v(t._s(t.$t("Selected Color Options")))]),t._v(" "),e("div",{staticClass:"block"},[e("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.$t("Selected Cell Row Background")))]),t._v(" "),e("color-input",{attrs:{predefine:t.predefineColors},model:{value:t.trBackground,callback:function(e){t.trBackground=e},expression:"trBackground"}}),t._v(" "),e("hr",{staticClass:"hr-dahsed"})],1),t._v(" "),e("div",{staticClass:"block"},[e("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v("\n "+t._s(t.$t("Selected Cell Column Background")))]),t._v(" "),e("el-color-picker",{attrs:{predefine:t.predefineColors},on:{"active-change":t.changeTdBackground,change:t.changeTdBackground},model:{value:t.cellBackground,callback:function(e){t.cellBackground=e},expression:"cellBackground"}}),t._v(" "),e("hr",{staticClass:"hr-dahsed"})],1)]:t._e(),t._v(" "),t.manageCell.data.tdIds.length>=1?e("div",{staticClass:"block"},[e("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.$t("Selected Cell Background")))]),t._v(" "),e("el-color-picker",{attrs:{predefine:t.predefineColors},on:{"active-change":t.changeSelectedCellBackground,change:t.changeSelectedCellBackground},model:{value:t.cellBackground,callback:function(e){t.cellBackground=e},expression:"cellBackground"}})],1):t._e(),t._v(" "),t.manageCell.data.tdIds.length<=0?e("h5",[e("b",[t._v(t._s(t.$t('Select a row/column/cell to change their background properties. Hold "SHIFT" and click on cells to select multiple cells.')))])]):t._e()]],2)}),[],!1,null,null,null).exports;function ts(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,i,o=[],l=!0,s=!1;try{for(a=a.call(t);!(l=(n=a.next()).done)&&(o.push(n.value),!e||o.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{l||null==a.return||a.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return es(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return es(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function es(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}const as={name:"LeftSideBar",props:["initialData","singleItem","selectedDevice"],mixins:[Lt],components:{GetPro:i,SelectInput:El,CellSetting:n({name:"CellSetting",data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#000000","#dddddd","#379D13"]}},props:["manageCell","setting"],methods:{updateChangesValues:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.manageCell.data.tableData,i=this.manageCell.data.headers[this.manageCell.data.table.columnIndex];n.forEach((function(n){a?n.rows[i].style.highlighted[t]=e:n.rows[i].style[t]=e}))},changeColumnWidth:function(){this.updateChangesValues("columnWidth",this.columnWidth)},changeHcActive:function(){this.updateChangesValues("active",this.hcActive,!0)},changeHcHeight:function(t){this.updateChangesValues("height",t,!0),this.changeMarginTopBottom()},changeHcShadowColor:function(t){var e=t;null===t&&(e=""),this.updateChangesValues("shadowColor",e,!0)},changeHcOffsetX:function(t){this.updateChangesValues("offset_x",t,!0)},changeHcOffsetY:function(t){this.updateChangesValues("offset_y",t,!0)},changeHcBlurRadius:function(t){this.updateChangesValues("blur_radius",t,!0),this.changeMarginTopBottom()},changeMarginTopBottom:function(){for(var t=this.manageCell.data.tableData,e=this.manageCell.data.table.rowIndex,a=0,n=0,i=Object.entries(t[e].rows);n<i.length;n++){var o=ts(i[n],2),l=(o[0],o[1]),s=0;s+=l.style.highlighted.active?l.style.highlighted.height:0,(s+=l.style.highlighted.active?l.style.highlighted.blur_radius:0)>a&&(a=s)}this.setting.global_styling.options.margin_top.value=a,this.setting.global_styling.options.margin_bottom.value=a+30}},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},highlightedIsPro:function(){return Boolean(this.manageCell.data.table.column.style.highlighted.has_pro)},hcActive:{get:function(){return this.manageCell.data.table.column.style.highlighted.active},set:function(t){this.manageCell.data.table.column.style.highlighted.active=t,this.changeMarginTopBottom()}},rowHeight:{get:function(){return Number(this.manageCell.data.table.row.style.rowHeight)},set:function(t){this.manageCell.data.table.row.style.rowHeight=t}},columnWidth:{get:function(){var t=this.manageCell.data.setting.general.options.cell_min_auto_width.value,e=this.manageCell.data.table.column.style.columnWidth;return Number(e||t)},set:function(t){this.manageCell.data.table.column.style.columnWidth=t}}}},(function(){var t=this,e=t._self._c;return e("div",[1!==t.manageCell.data.tdIds.length?e("div",[e("p",[t._v("\n "+t._s(t.$t("Click on a cell to get cell-specific options. Selected cells will be highlighted."))+" "),e("br"),e("br"),t._v("\n "+t._s(t.$t('Hold "SHIFT" and click on cells to select multiple cells for merge cells.'))+"\n ")])]):1===t.manageCell.data.tdIds.length?e("div",[e("div",{staticClass:"block"},[e("div",{staticClass:"component-spacing"},[e("span",[t._v(t._s(t.$t("Highlight Column")))]),t._v(" "),e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("template",{slot:"content"},[e("p",[t._v("This is our premium feature. "),e("br"),t._v(" Only pro version user can use this feature.")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info",staticStyle:{"margin-left":"2px"}})],2),t._v(" "),e("el-switch",{staticStyle:{float:"right"},attrs:{disabled:!t.hasPro&&t.highlightedIsPro},on:{change:t.changeHcActive,input:t.changeHcActive},model:{value:t.hcActive,callback:function(e){t.hcActive=e},expression:"hcActive"}})],1),t._v(" "),t.hcActive?e("div",{staticClass:"component-wrapper"},[e("div",[e("span",[t._v(t._s(t.$t("Highlighted Column Height")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:40,min:1,step:1,"show-input":""},on:{input:t.changeHcHeight},model:{value:t.manageCell.data.table.column.style.highlighted.height,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"height",e)},expression:"manageCell.data.table.column.style.highlighted.height"}})],1),t._v(" "),e("div",{staticClass:"space-between"},[e("span",[t._v(t._s(t.$t("Shadow Color")))]),t._v(" "),e("el-color-picker",{attrs:{size:"mini",predefine:t.predefineColors},on:{"active-change":t.changeHcShadowColor,change:t.changeHcShadowColor},model:{value:t.manageCell.data.table.column.style.highlighted.shadowColor,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"shadowColor",e)},expression:"manageCell.data.table.column.style.highlighted.shadowColor"}})],1),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Shadow Effect (X-Axis)")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:30,min:-30,step:1,"show-input":""},on:{input:t.changeHcOffsetX},model:{value:t.manageCell.data.table.column.style.highlighted.offset_x,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"offset_x",e)},expression:"manageCell.data.table.column.style.highlighted.offset_x"}})],1),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Shadow Effect (Y-Axis)")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:30,min:1,step:1,"show-input":""},on:{input:t.changeHcOffsetY},model:{value:t.manageCell.data.table.column.style.highlighted.offset_y,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"offset_y",e)},expression:"manageCell.data.table.column.style.highlighted.offset_y"}})],1),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("Shadow Effect (Blur Radius)")))]),e("br"),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:30,min:10,step:1,"show-input":""},on:{input:t.changeHcBlurRadius},model:{value:t.manageCell.data.table.column.style.highlighted.blur_radius,callback:function(e){t.$set(t.manageCell.data.table.column.style.highlighted,"blur_radius",e)},expression:"manageCell.data.table.column.style.highlighted.blur_radius"}})],1)]):t._e()]),t._v(" "),e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.$t("Row height")))]),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:500,min:50,step:1,"show-input":""},model:{value:t.rowHeight,callback:function(e){t.rowHeight=e},expression:"rowHeight"}})],1),t._v(" "),e("div",{staticClass:"block"},[e("span",[t._v(t._s(t.$t("Column Width")))]),t._v(" "),e("el-slider",{attrs:{"input-size":"mini",max:500,min:100,step:1,"show-input":""},on:{change:t.changeColumnWidth},model:{value:t.columnWidth,callback:function(e){t.columnWidth=e},expression:"columnWidth"}})],1)]):t._e()])}),[],!1,null,null,null).exports,BackgroundColor:Kl,ColorInput:Pl,RibbonOption:Gl,TextIconOption:Xl,SpacingInput:Ql,ButtonOption:Ll,AllInputElement:Al,draggable:kt(),TextOption:Ol,StarRating:Rl,IconOption:Hl,ProgressOption:Wl,ListOption:ql,CustomHtmlOption:Vl,ShortcodeOption:Ul,StylistListOption:Yl,ImageOption:Jl},data:function(){return{activeName:"elements",activeNames:["general"],deviceActiveName:"desktop",deviceLastSelected:"",activeOption:1,item:{},manageCell:{},maxWidth:{},exports:{items:[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}],format:"csv"}}},methods:{exportTable:function(){location.href=this.downloadLink(this.exports.format)},downloadLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"csv",e={action:"ninja_tables_builder_ajax_actions",target_action:"export-table",table_id:this.$route.params.table_id,format:t,ninja_table_admin_nonce:window.ninja_table_admin.ninja_table_admin_nonce};return ajaxurl+"?"+jQuery.param(e)},maximumWidth:function(t){return jQuery("td#"+t).attr("style").split(";")[1].split(" ")[2].split("px")[0]},end:function(t){t&&t.to.id&&(this.maxWidth=this.maximumWidth(t.to.id))},customClone:function(t){if(this.hasPro||!t.has_pro)return{id:this.id(),data:this.deepClone(t)};this.upgradeMessage()},handleClick:function(t,e){"responsiveness"===t.$options.propsData.name?""===this.deviceLastSelected?this.$emit("deviceSelected",""):this.$emit("deviceSelected",this.deviceLastSelected):this.$emit("deviceSelected",""),"options"!==t.$options.propsData.name&&window.ninjaTableBus.$emit("manageCell")},handleChange:function(t){""!==this.deviceLastSelected&&(this.deviceLastSelected="",this.$emit("deviceSelected",""))},handleDeviceClick:function(t,e){var a=t.$options.propsData.name;this.deviceActiveName=a,this.deviceLastSelected=a,this.$emit("deviceSelected",a)},handleChangeResponsive:function(t){"responsive_settings"===t&&"desktop"===this.deviceActiveName&&(this.deviceActiveName="tablet"),this.deviceLastSelected=this.deviceActiveName,this.$emit("deviceSelected",this.deviceActiveName)},accorDianChange:function(t){this.activeOption=t},manageRowColumns:function(){var t=this;window.ninjaTableBus.$on("manage-cell",(function(e){e.active?(t.manageCell=e,t.activeName=e.activeTab):t.closeCellEditing()}))},closeCellEditing:function(){this.manageCell=!1,this.activeName="elements",window.ninjaTableBus.$emit("manageCell"),this.$emit("deviceSelected","")}},created:function(){var t=this;this.manageRowColumns(),window.ninjaTableBus.$on("closeManageCell",(function(){t.closeCellEditing()})),window.ninjaTableBus.$on("singleTdId",(function(e){t.maxWidth=t.maximumWidth(e)}))},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},enableResponsive:function(){var t=this.initialData.responsive.general.options.enable_responsive_table.value;return this.getBoolean(t)},showOptions:function(){return"options"===this.activeName},responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices}},watch:{singleItem:{handler:function(t,e){t?(this.activeOption="2"===this.activeOption?"2":"1",this.activeName="options",this.item=t.item):this.activeName="elements"},deep:!0}}};var ns=a(7347),is={insert:"head",singleton:!1};s()(ns.Z,is);ns.Z.locals;var os=n(as,(function(){var t=this,e=t._self._c;return e("el-tabs",{staticClass:"ninja-tables-component",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.manageCell.active?t._e():e("el-tab-pane",{attrs:{label:t.$t("Elements"),name:"elements"}},t._l(t.initialData.components,(function(a,n){return e("el-collapse",{key:a.key,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},["container"!==a.key?e("el-collapse-item",{attrs:{title:a.name,name:n}},[e("el-row",{attrs:{gutter:20,align:"middle",justify:"center"}},[e("draggable",{attrs:{list:a.fields,group:{name:"people",pull:"clone",put:!1},clone:t.customClone},on:{end:t.end}},t._l(a.fields,(function(a,n){return e("el-col",{key:n,staticClass:"element-style",attrs:{span:12}},[e("el-badge",{staticClass:"item",attrs:{value:!t.hasPro&&a.has_pro?"Pro":""}},[e("el-button",{staticClass:"button-component",class:!t.hasPro&&a.has_pro?"pro-component":"",attrs:{disabled:!t.hasPro&&a.has_pro,size:"small",type:"default",plain:"",icon:null!==a.icon?a.icon:"el-icon-s-grid"}},[t._v(t._s(a.name)+"\n ")])],1)],1)})),1)],1)],1):t._e()],1)})),1),t._v(" "),t.item&&t.item.data&&t.item.data.type&&!t.manageCell.active&&t.showOptions?e("el-tab-pane",{attrs:{label:t.$t("Options"),name:"options"}},[e("el-collapse",{staticClass:"accordions",attrs:{accordion:""},on:{change:t.accorDianChange},model:{value:t.activeOption,callback:function(e){t.activeOption=e},expression:"activeOption"}},[e("el-collapse-item",{attrs:{title:t.$t(t.ucWords(t.item.data.type)+" Options"),name:"1"}},["text"===t.item.data.type?e("text-option",{attrs:{item:t.item}}):"button"===t.item.data.type?e("button-option",{attrs:{item:t.item}}):"star_rating"===t.item.data.type?e("star-rating",{attrs:{item:t.item}}):"icon"===t.item.data.type?e("icon-option",{attrs:{item:t.item}}):"progress"===t.item.data.type?e("progress-option",{attrs:{item:t.item}}):"list"===t.item.data.type?e("list-option",{attrs:{item:t.item,settings:t.initialData.settings}}):"custom_html"===t.item.data.type?e("custom-html-option",{attrs:{item:t.item}}):"shortcode"===t.item.data.type?e("shortcode-option",{attrs:{item:t.item}}):"stylist_list"===t.item.data.type?e("stylist-list-option",{attrs:{item:t.item,settings:t.initialData.settings}}):"image"===t.item.data.type?e("image-option",{attrs:{item:t.item}}):"text_icon"===t.item.data.type?e("text-icon-option",{attrs:{item:t.item}}):"ribbon"===t.item.data.type?e("ribbon-option",{attrs:{item:t.item,maxWidth:t.maxWidth,settings:t.initialData.settings}}):t._e()],1),t._v(" "),"ribbon"!==t.item.data.type?e("el-collapse-item",{attrs:{title:t.$t("Spacing"),name:"2"}},[e("spacing-input",{attrs:{types:["margin","padding"],item:t.item}})],1):t._e()],1)],1):t._e(),t._v(" "),t.manageCell.active?t._e():e("el-tab-pane",{attrs:{label:t.$t("Settings"),name:"settings"}},[t._l(t.initialData.settings,(function(a,n){return e("el-collapse",{key:n,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{name:n}},[e("template",{slot:"title"},[t._v("\n "+t._s(a.name)+"\n "),"Global Style"===a.name||"Sticky"===a.name?e("el-tooltip",{attrs:{placement:"top-start",effect:"light"}},[e("template",{slot:"content"},[e("h3",[t._v(t._s(a.name))]),t._v(" "),"Sticky"===a.name?e("p",[t._v("\n This is a Pro feature.\n "),e("get-pro")],1):e("p",[t._v("The global style will be applied if the "),e("br"),t._v(" component individual style is not applied.")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info",staticStyle:{"margin-left":"2px"}})],2):t._e()],1),t._v(" "),t._l(a.options,(function(n,i,o){return e("div",{key:i,staticClass:"component-spacing"},[e("all-input-element",{attrs:{disableResponsive:t.getBoolean(!t.hasPro&&a.has_pro),item:n}}),t._v(" "),n.childs&&t.getBoolean(n.value)?[t._l(n.childs,(function(t,a,n){return[e("all-input-element",{key:a,staticClass:"component-spacing",attrs:{item:t}})]}))]:t._e()],2)}))],2)],1)})),t._v(" "),e("el-collapse",{staticClass:"accordions",on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{staticClass:"export",attrs:{title:t.$t("Export Table")}},[e("select-input",{attrs:{items:t.exports.items,label:t.$t("Select Format")},model:{value:t.exports.format,callback:function(e){t.$set(t.exports,"format",e)},expression:"exports.format"}}),t._v(" "),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.exportTable}},[t._v("Export")])],1)],1)],2),t._v(" "),t.manageCell.active?t._e():e("el-tab-pane",{attrs:{label:t.$t("Responsiveness"),name:"responsiveness"}},t._l(t.initialData.responsive,(function(a,n){return e("el-collapse",{key:n,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChangeResponsive},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{title:a.name,name:n}},t._l(a.options,(function(a,n){return e("div",{key:n,staticClass:"component-spacing"},[e("div","devices"===n?[e("el-tabs",{on:{"tab-click":t.handleDeviceClick},model:{value:t.deviceActiveName,callback:function(e){t.deviceActiveName=e},expression:"deviceActiveName"}},t._l(a,(function(a,n){return e("el-tab-pane",{key:n,attrs:{label:a.name,name:a.key}},t._l(a,(function(n,i,o){return"name"!=i&&"key"!=i?e("span",{key:i},[e("all-input-element",{staticClass:"component-spacing",attrs:{initialData:t.initialData,item:n,disableResponsive:!t.enableResponsive,deviceName:a.key}})],1):t._e()})),0)})),1)]:[e("all-input-element",{attrs:{item:a}})],1)])})),0)],1)})),1),t._v(" "),"cells"===t.manageCell.activeTab?e("el-tab-pane",{attrs:{label:t.$t("Manage cell"),name:"cells"}},[e("cell-setting",{attrs:{manageCell:t.manageCell,setting:t.initialData.settings}}),t._v(" "),e("el-button",{staticClass:"ntb-manage-button",attrs:{type:"primary"},on:{click:t.closeCellEditing}},[t._v(" "+t._s(t.$t("Close")))])],1):t._e(),t._v(" "),"background"===t.manageCell.activeTab?e("el-tab-pane",{attrs:{label:t.$t("Background"),name:"background"}},[e("background-color",{attrs:{manageCell:t.manageCell}}),t._v(" "),e("el-button",{staticClass:"ntb-manage-button",attrs:{type:"primary"},on:{click:t.closeCellEditing}},[t._v(" "+t._s(t.$t("Close")))])],1):t._e()],1)}),[],!1,null,null,null);const ls=n({name:"TableBuilderHome",data:function(){return{tableId:"",initialData:{},singleItem:{},selectedDevice:""}},components:{TopNav:wl,LeftSideBar:os.exports,RightSideBar:Qt},methods:{deviceSelected:function(t){this.selectedDevice=t},editItem:function(t){this.singleItem=t},addOrEditTable:function(){var t=this,e={action:"ninja_tables_builder_ajax_actions",target_action:"edit-table-by-id",id:this.$route.params.table_id};this.$get(e).done((function(e){t.initialData=e.data})).fail((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})}))}},mounted:function(){this.clipboard(),this.addOrEditTable()}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja-table-dg-wrapper"},[e("div",{staticClass:"ninja_main_nav"},[e("top-nav",{attrs:{initialData:t.initialData,tableId:t.$route.params.table_id}})],1),t._v(" "),e("el-row",{attrs:{align:"middle",gutter:20}},[e("el-col",{attrs:{xs:24,sm:10,md:9,lg:6,xl:6,id:"leftside"}},[e("left-side-bar",{attrs:{singleItem:t.singleItem,initialData:t.initialData,selectedDevice:t.selectedDevice},on:{deviceSelected:t.deviceSelected}})],1),t._v(" "),e("el-col",{attrs:{xs:24,sm:14,md:15,lg:18,xl:18}},[t.initialData?e("right-side-bar",{staticStyle:{height:"auto","padding-bottom":"25px"},attrs:{table:t.initialData.table,selectedDevice:t.selectedDevice,initialData:t.initialData,tableId:t.$route.params.table_id},on:{editItem:t.editItem}}):t._e()],1)],1)],1)}),[],!1,null,null,null).exports;var ss=[{path:"/",component:u,props:!0,children:[{path:"home",name:"home",component:de},{path:"/tools",component:pe,children:[{path:"",name:"import_tables",component:ve},{path:"default_table_appearance",name:"default_table_appearance",component:je},{path:"permission",name:"permission",component:we},{path:"licensing",name:"licensing",component:De},{path:"global_settings",name:"global_settings",component:Pe}]},{path:"/help",name:"help",component:tl}]},{path:"/tables/:table_id",component:Ye,props:!0,children:[{path:"",name:"data_items",component:wo},{path:"columns",name:"data_columns",component:Ho},{path:"design_studio",name:"design_studio",component:gl},{path:"additional_css",name:"additional_css",component:dl},{path:"import-export",name:"import-export",component:Jo},{path:"table_editing",name:"table_editing",component:yl}]},{path:"/charts",component:Oe,props:!0},{path:"/table_builder_edit_table/:table_id",name:"table_builder_edit_table",component:ls,props:!0},{path:"/table_builder_add_table",name:"table_builder_add_table",component:ls,props:!0}];const rs={name:"TableApp",components:{GetPro:i},data:function(){return{addVisible:!1,integrity:window.ninja_table_admin.nt_integrity,admin_notices:window.ninja_table_admin.admin_notices}},mounted:function(){var t=this;window.ninjaTableBus.$on("show_pro_popup",(function(e){t.addVisible=!0})),jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()}};var cs=a(2174),us={insert:"head",singleton:!1};s()(cs.Z,us);cs.Z.locals;const ds=n(rs,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[t._l(t.admin_notices,(function(a,n){return e("el-alert",{key:n,attrs:{type:a.type,closable:a.closable,effect:"dark"}},[e("div",{domProps:{innerHTML:t._s(a.message)}})])})),t._v(" "),e("router-view"),t._v(" "),e("div",{staticClass:"pro_feature_dialog"},[e("el-dialog",{attrs:{title:"NinjaTable Pro Features",visible:t.addVisible},on:{"update:visible":function(e){t.addVisible=e}}},[e("div",{staticClass:"add_content"},[e("ul",{staticClass:"list_features"},[e("li",[t._v("Use Unlimited Colors in Your Tables")]),t._v(" "),e("li",[t._v("Add Media to Your Table Cells")]),t._v(" "),e("li",[t._v("Drag and Drop Table Data Sorting")]),t._v(" "),e("li",[t._v("Use Advanced Date Sorting")]),t._v(" "),e("li",[t._v("Colspan/Cell Merging Feature")]),t._v(" "),e("li",[t._v("Create Custom Filter UI in Table")]),t._v(" "),e("li",[t._v("Use Shortcode in your table cell")]),t._v(" "),e("li",[t._v("Use Advanced Data Filtering")]),t._v(" "),e("li",[t._v("Use Advanced Customization Features")]),t._v(" "),e("li",[t._v("Get VIP Support for any Issue")]),t._v(" "),e("li",[t._v("Incremental New Premium Features")]),t._v(" "),e("li",[t._v("And Many More feature")])])]),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("get-pro")],1)])],1),t._v(" "),"nope"==t.integrity?e("div",{staticStyle:{"margin-top":"90px",color:"rgb(236, 62, 62)","font-size":"16px","margin-bottom":"30px"}},[e("b",[t._v("Notice:")]),t._v(" Ninja Tables Pro integrity is not valid. You may downloaded from other sources. Please download ninja tables pro from "),e("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?integrity=1"}},[t._v("WPManageNinja")]),t._v(" to keep it upto date.\n ")]):t._e()],2)}),[],!1,null,null,null).exports;window.ninjaTableBus=new window.NINJATABLE.Vue,window.NINJATABLE.Vue.mixin({methods:{$t:function(t){var e=ninja_table_admin.i18n[t];return e||t},setStoreData:function(t,e){window.localStorage&&localStorage.setItem("ninjatable_"+t,e)},getFromStore:function(t,e){if(window.localStorage){var a=localStorage.getItem("ninjatable_"+t);if(a)return a}return e},applyFilters:window.NINJATABLE.applyFilters,addFilter:window.NINJATABLE.addFilter,addAction:window.NINJATABLE.addFilter,doAction:window.NINJATABLE.doAction,$get:window.NINJATABLE.$get,$post:window.NINJATABLE.$post,$getJSON:window.NINJATABLE.$getJSON,clipboard:function(){var t=this;window.clipboard||(window.clipboard=new(e())(".copy"),window.clipboard.on("success",(function(e){t.$message({message:"Copied to Clipboard!",type:"success"})})))}},data:function(){return{}},directives:{focus:{inserted:function(t){t.focus()}}},filters:{ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}});var ps=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",ss),linkActiveClass:"active"});ds.router=ps,window.ninjaApp=new window.NINJATABLE.Vue(ds).$mount("#data-tables-app")})()})();
1
  /*! For license information please see ninja-tables-admin.3.1.0.js.LICENSE.txt */
2
+ (()=>{var t={2152:function(t){var e;e=function(){return function(){var t={686:function(t,e,a){"use strict";a.d(e,{default:function(){return k}});var n=a(279),i=a.n(n),o=a(370),l=a.n(o),s=a(817),r=a.n(s);function c(t){try{return document.execCommand(t)}catch(t){return!1}}var u=function(t){var e=r()(t);return c("cut"),e},d=function(t,e){var a=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return a.style.top="".concat(n,"px"),a.setAttribute("readonly",""),a.value=t,a}(t);e.container.appendChild(a);var n=r()(a);return c("copy"),a.remove(),n},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},a="";return"string"==typeof t?a=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?a=d(t.value,e):(a=r()(t),c("copy")),a};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var _=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,a=void 0===e?"copy":e,n=t.container,i=t.target,o=t.text;if("copy"!==a&&"cut"!==a)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===a&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===a&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?p(o,{container:n}):i?"cut"===a?u(i):p(i,{container:n}):void 0};function h(t){return h="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},h(t)}function f(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,n=y(t);if(e){var i=y(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return g(this,a)}}function g(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function w(t,e){var a="data-clipboard-".concat(t);if(e.hasAttribute(a))return e.getAttribute(a)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(o,t);var e,a,n,i=b(o);function o(t,e){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(a=i.call(this)).resolveOptions(e),a.listenClick(t),a}return e=o,a=[{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"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,a=this.action(e)||"copy",n=_({action:a,container:this.container,target:this.target(e),text:this.text(e)});this.emit(n?"success":"error",{action:a,text:n,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],n=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(t,e)}},{key:"cut",value:function(t){return u(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach((function(t){a=a&&!!document.queryCommandSupported(t)})),a}}],a&&f(e.prototype,a),n&&f(e,n),o}(i()),k=x},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,a){var n=a(828);function i(t,e,a,n,i){var l=o.apply(this,arguments);return t.addEventListener(a,l,i),{destroy:function(){t.removeEventListener(a,l,i)}}}function o(t,e,a,i){return function(a){a.delegateTarget=n(a.target,e),a.delegateTarget&&i.call(t,a)}}t.exports=function(t,e,a,n,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof a?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,a,n,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var a=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,a){var n=a(879),i=a(438);t.exports=function(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(a))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}(t,e,a);if(n.nodeList(t))return function(t,e,a){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,a)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,a)}))}}}(t,e,a);if(n.string(t))return function(t,e,a){return i(document.body,t,e,a)}(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(t),n.removeAllRanges(),n.addRange(i),e=n.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,a){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var n=this;function i(){n.off(t,i),e.apply(a,arguments)}return i._=e,this.on(t,i,a)},emit:function(t){for(var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=a.length;n<i;n++)a[n].fn.apply(a[n].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),n=a[t],i=[];if(n&&e)for(var o=0,l=n.length;o<l;o++)n[o].fn!==e&&n[o].fn._!==e&&i.push(n[o]);return i.length?a[t]=i:delete a[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={exports:{}};return t[n](i,i.exports,a),i.exports}return a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a(686)}().default},t.exports=e()},6755:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_doc_top_blocks .ff_block .ff_block_box{display:flex;flex-direction:column;justify-content:space-between}.ninja_doc_top_blocks .ff_block .ff_block_box>p{margin-bottom:0}",""]);const o=i},738:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-menu.el-menu--horizontal{border-bottom:none}",""]);const o=i},1778:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".js_instruction{background:#fff;font-size:14px;line-height:22px;margin-bottom:20px;padding:10px 20px}",""]);const o=i},4713:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".space-between{align-items:center;display:flex;justify-content:space-between}",""]);const o=i},986:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-tables-component .el-slider{margin-left:0!important}",""]);const o=i},9565:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".color-picker-margin[data-v-7f686b8f]{margin-right:10px}",""]);const o=i},267:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".form-item[data-v-7c708044]{margin:10px 0}.form-item label[data-v-7c708044]{width:100px}",""]);const o=i},448:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-text-info{color:#58b7ff}.privacy label{margin-bottom:0}#capability{margin-left:75px}",""]);const o=i},5311:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".remove[data-v-590fa148]{display:inline-block}",""]);const o=i},1651:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert{border:1px solid transparent;border-radius:4px;margin-bottom:20px;padding:15px}",""]);const o=i},2023:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor{height:auto;min-height:350px}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""]);const o=i},230:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor{height:auto;min-height:350px}.ninja_css_errors .ace_gutter-cell.ace_warning{display:none}",""]);const o=i},1799:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_custom_css_editor[data-v-ad6aab96]{height:auto;min-height:180px}.ninja_css_errors .ace_gutter-cell.ace_warning[data-v-ad6aab96]{display:none}",""]);const o=i},2174:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-message{top:5px;z-index:999999!important}.pro_feature_dialog .el-dialog__wrapper{z-index:10000!important}",""]);const o=i},9420:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"label.form_group.search_action{margin-bottom:0;padding-top:0}.create-table-modal{z-index:9999!important}.create-table-modal .el-dialog__body{padding:20px}",""]);const o=i},1903:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_intro_welcome[data-v-6779a907]{background:#fff;margin:45px auto 0;max-width:600px;padding:30px;text-align:center}.ninja_intro_welcome img[data-v-6779a907]{width:100%}.ninja_intro_welcome h2[data-v-6779a907]{font-size:30px}.ninja_intro_welcome .ninja_actions[data-v-6779a907]{margin-top:30px}",""]);const o=i},5855:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},5814:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},6618:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}",""]);const o=i},4253:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-row{margin-bottom:20px}.el-row:last-child{margin-bottom:0}.wp-post-conditions-el-picker{z-index:9999!important}.compact{margin-top:3px!important;padding:0!important}",""]);const o=i},5443:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_tables_wpposts .el-checkbox-group{overflow:scroll!important}.ninja_tables_wpposts .el-transfer-panel,.ninja_tables_wpposts .table-rows .el-transfer-panel{width:230px!important}.ninja_tables_wpposts .el-transfer-panel__item{display:block!important}.no-margin{margin:0}.nt_conditions .el-collapse-item.is-active{border:1px solid #ebeef5}.nt_conditions .el-collapse-item.is-active .el-collapse-item__wrap{background:#ebeef5}",""]);const o=i},9757:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_date_picker>.form-control{float:left;width:90%}.ninja_date_picker>.el-date-editor{cursor:pointer;margin:0;padding:0;width:8px!important}.ninja_date_picker>.el-date-editor .el-input__inner{background:grey;height:34px;padding:15px;width:10px!important}",""]);const o=i},6140:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".review_dialog{background:#fff;font-size:16px;padding:10px 15px 20px;position:relative}.review_dialog span.consentDismiss{color:grey;cursor:pointer;position:absolute;right:7px;top:2px;z-index:99999}.review_dialog p{font-size:16px}.review_dialog a{cursor:pointer;margin-right:20px;text-decoration:none}",""]);const o=i},1967:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_permissions{margin-top:40px;text-align:center}.ninja_permissions a,.ninja_permissions p{color:gray;font-size:12px;text-decoration:none}",""]);const o=i},1128:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".form-wrapper{padding:10px}.form-wrapper label{display:initial;margin-bottom:0;max-width:none}.form-wrapper .el-form-item{margin-bottom:15px}.form-wrapper .more-settings:hover{cursor:pointer}.form-wrapper .more-settings i{font-size:1.5em}.form-wrapper .form_group{margin-top:10px}.form-wrapper .basic_settings .el-select{max-width:100%;min-width:400px}",""]);const o=i},9525:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".table-column-settings{margin-top:15px}.table-column-settings .el-menu{border-right:initial}",""]);const o=i},8684:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".column-condition-config .el-row{display:flex;margin-bottom:5px}.column-condition-config .el-col{display:flex;margin:0 5px}.column-condition-config .el-col .conditional_color_block{width:100%}.column-condition-config .el-col .conditional_color_block .el-color-picker__trigger{height:33px;width:100%}.column-condition-config .el-col:first-child>.if-cell-value{white-space:nowrap}.column-condition-config .if-cell-value{font-weight:400;margin-top:10px}.column-condition-config .form_group{height:35px;margin:0}.column-condition-config .el-color-picker,.column-condition-config .el-color-picker__mask{width:100%!important}.column-condition-config .el-button--mini{padding:5px 13px}.column-condition-config .conditional-settings-header{align-items:center;display:flex;justify-content:space-between}",""]);const o=i},6182:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".striped>tbody>:nth-child(odd){background:transparent}.footable_parent.ninja_device_mobile{margin:0 auto;width:480px}.footable_parent.ninja_device_tablet{margin:0 auto;max-width:768px;padding:0 20px}.font-setting .font{margin-top:10px}.font-setting .font label{width:30%}.ninja_footable tbody tr td{font-family:var(--ninja-table-font-family);font-size:var(--ninja-table-font-size)}",""]);const o=i},3612:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".spaced>.el-radio[data-v-40d145e5]{line-height:2;margin-left:0;margin-right:30px!important}",""]);const o=i},6134:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"table.ninja_filter_table{border-collapse:collapse;text-align:left;width:100%}table.ninja_filter_table td,table.ninja_filter_table th,table.ninja_filter_table tr{border:1px solid #eaeaea;padding:2px 10px}",""]);const o=i},6834:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".settings_header{background:#fff;font-size:20px;margin-left:-20px;margin-right:-20px;margin-top:-20px;padding-bottom:20px;padding-left:24px;padding-top:20px}.settings_header .action{cursor:pointer;font-size:16px}.settings_header .action:hover{color:#0085ba}",""]);const o=i},44:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-table{margin-bottom:10px;margin-top:10px}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert{border:1px solid transparent;border-radius:4px;margin-bottom:20px;padding:15px}.sorting tr{cursor:move}.el-table__header tr th:hover .nt-column-config{opacity:1}.nt-column-config{cursor:pointer;display:inline-block;opacity:0;padding-left:5px}.nt-column-config:hover{color:#58b7ff}.instruction_block{background:#fff;padding:30px 20px}.js-sortable-table table tr td span,.js-sortable-table table tr th span{word-break:break-word}.js-sortable-table table tr td span i,.js-sortable-table table tr th span i{padding:0}",""]);const o=i},6368:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"#fileUpload[data-v-3dd4e718]{max-width:200px}.justify-items[data-v-3dd4e718]{align-items:center;display:flex;justify-content:space-between}.ninja_content .ninja_suggest[data-v-3dd4e718]{background:#f1f1f1}.ninja_content[data-v-3dd4e718]{margin:1em 0}",""]);const o=i},2657:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".dialog-footer{align-items:center;display:flex;justify-content:space-between}.dialog-footer.single-child{justify-content:flex-end}.row_config_container{background:#d8edfd;border-radius:5px;display:block;padding:10px 15px;position:relative}",""]);const o=i},5495:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-tables-component .el-collapse-item__content{padding-bottom:6px}.ninja-tables-component .accordions .export .el-select{width:50%}.ninja-tables-component .accordions .export .el-button{margin-top:10px;width:100%}.ninja-tables-component .accordions>.is-active{max-height:410px;overflow-y:scroll}.ninja-tables-component .accordions>.is-active::-webkit-scrollbar{width:.2em}.ninja-tables-component .accordions>.is-active::-webkit-scrollbar-thumb{background-color:#409eff;outline:1px solid #409eff}.ninja-tables-component .accordions>.is-active .el-collapse-item__arrow.is-active{margin-right:6px}.ninja-tables-component .accordions .el-tabs__item.is-active{display:initial}.ninja-tables-component .el-slider__runway{margin-left:12px}.ninja-tables-component .el-slider{margin-left:10px}.ninja-tables-component .element-style{align-items:center;display:flex;justify-content:center;padding:10px 0}.ninja-tables-component .element-style .button-component{padding:15px;width:120px}.ninja-tables-component .element-style .button-component i{font-size:15px}.ninja-tables-component .element-style .button-component:hover{cursor:move}.ninja-tables-component .element-style .pro-component:hover{cursor:not-allowed}.ninja-tables-component .element-style .item .el-badge__content{right:33px}.ninja-tables-component .ntb-manage-button{display:block;margin:10px auto;padding:10px 20px}.ninja-tables-component .component-spacing,.ninja-tables-component .component-wrapper>*{padding:6px 0}",""]);const o=i},9192:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".new-table-wrapper .table-type-heading h2{background-color:#1c2024;color:#fff;padding:10px;text-align:center}.new-table-wrapper .table-type-heading h2 .ready-made-name{margin-top:40px}.new-table-wrapper .table-title-style{display:table;margin:5px auto 20px}.new-table-wrapper .ready-made-table-image{position:relative}.new-table-wrapper .ready-made-table-image img{transition:1s}.new-table-wrapper .ready-made-table-image:hover img{opacity:.25}.new-table-wrapper .ready-made-table-image:hover .ready-made-table-hover-button{opacity:1}.new-table-wrapper .ready-made-table-hover-button{left:50%;opacity:0;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transition:.5s ease}.new-table-wrapper .new_table{border:2px solid #ddd;display:grid;height:200px;margin-left:40px;margin-top:50px;position:relative;width:200px}.new-table-wrapper .new_table .table-column-input{position:absolute;top:-40px;width:200px}.new-table-wrapper .new_table .table-row-input{left:-120px;position:absolute;top:80px;transform:rotate(-90deg);width:200px}.new-table-wrapper .new_table .table-row-column{border:.5px solid #ccc}.new-table-wrapper .create-button .el-button{left:42px;margin-top:10px;position:relative;width:200px}.new-table-wrapper .import-button{align-items:center;display:flex;justify-content:center}",""]);const o=i},5865:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,'.ninja-tables-layout .table-customize-button{padding-bottom:20px}.ninja-tables-layout .sortable-ghost{border:1px dashed grey;font-size:0;overflow:hidden;width:100%}.ninja-tables-layout .button-group{display:flex!important;justify-content:center;margin:5px auto}.ninja-tables-layout .manage-button{display:block;margin:0 auto 10px;padding:10px 20px}.ninja-tables-layout .ntb_table_wrapper{overflow:auto;overflow-wrap:break-word;padding-left:var(--table-wrapper-padding);padding-top:5px;position:relative;z-index:1}.ninja-tables-layout .ntb_table_wrapper .pixel-bar-slider{background:#3b503f;border-radius:10px;margin:10px auto;padding:0 20px;width:50%}.ninja-tables-layout .ntb_table_wrapper .table .table-header{display:table-caption;margin-bottom:var(--margin-bottom);margin-left:var(--column-arrow);position:sticky;position:-webkit-sticky;top:0;z-index:99}.ninja-tables-layout .ntb_table_wrapper .table .table-header th .column-options span i{border:1px solid;color:#fff;font-size:12px;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active{background-color:#409eff;display:block;margin-left:var(--td-th-active-margin);margin-top:var(--margin-top)}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active:hover{background-color:#5f6368;cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .table-header th.th-active:hover .column-options span i{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .tbody{display:block;margin-left:var(--td-th-active-margin)}.ninja-tables-layout .ntb_table_wrapper .table .tbody .td-highlight{background:inherit;border:none!important;position:relative;z-index:9}.ninja-tables-layout .ntb_table_wrapper .table .tbody .td-highlight:before{background:inherit;box-shadow:var(--offset-x) var(--offset-y) var(--blur-radius) var(--shadow-color);content:"";height:100%;left:-15px;position:absolute;top:0;width:calc(100% + 30px);z-index:-1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:first-child .td-highlight:before{top:var(--highlight-height-top)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:first-child .td-highlight:before,.ninja-tables-layout .ntb_table_wrapper .table .tbody tr:last-child .td-highlight:before{height:calc(100% + var(--highlight-height-bottom))}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr.firstRowSticky{position:sticky;top:-5px;z-index:2}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr,.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td{position:relative}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .sortIcon{font-size:30px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options{top:calc(50% - 10px)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options span i{border:1px solid;color:#000;font-size:12px;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options span span{color:#000}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options:hover i{color:#fff;cursor:pointer;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-options:hover span{color:#fff;cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move{height:100%;position:absolute;right:-37px;top:0}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button{width:30px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button i{transform:rotate(270deg)}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button .top{margin-top:15px;position:absolute}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr td .row-move .el-button .bottom{margin-bottom:15px}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active{background-color:#409eff;border-bottom:var(--border-size) solid var(--border-color);cursor:move;max-width:20px;opacity:1;position:sticky;position:-webkit-sticky;z-index:99}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active .row-options span i{color:#fff;opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active .row-options span span{color:#fff}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-active:hover{background-color:#5f6368}.ninja-tables-layout .ntb_table_wrapper .table .tbody tr .td-inactive{opacity:0;right:10px;visibility:hidden}.ninja-tables-layout .ntb_table_wrapper .table .single-item{border:0 solid transparent;display:block;position:relative}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style{color:#fff;display:flex;font-size:14px;height:auto;justify-content:flex-end;left:0;opacity:0;position:absolute;right:0;top:-15px;width:100%}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style .el-icon-rank{cursor:move}.ninja-tables-layout .ntb_table_wrapper .table .single-item .icon-style i{background:#3f9eff;font-weight:700;padding:0 2px}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover .hover-item{border:1px solid #3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .other-item:hover .icon-style{opacity:1}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon{position:absolute}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover{cursor:pointer}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .bookmark,.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .corner,.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .side{border:1px solid #3f9eff}.ninja-tables-layout .ntb_table_wrapper .table .only-ribbon:hover .icon-style{justify-content:flex-start;opacity:1;top:0;z-index:3}@-webkit-keyframes selected-item-move{0%{background-position:0 50%}to{background-position:100% 50%}}@keyframes selected-item-move{0%{background-position:0 50%}to{background-position:100% 50%}}.ninja-tables-layout .ntb_table_wrapper .table #selected-item{animation:selected-item-move 40s linear infinite reverse;background:repeating-linear-gradient(45deg,#fff,#fff 5px,#3299d1 0,#3299d1 10px);background-size:400% 400%;height:100%;left:0;opacity:.2;top:0;width:100%}.responsive-mode:hover{cursor:pointer}',""]);const o=i},4889:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,'.ribbon-wrapper{max-width:600px;position:relative;width:90%;z-index:1}.ribbon-wrapper .corner{height:100px;overflow:hidden;position:absolute;width:120px}.ribbon-wrapper .corner .content{box-shadow:0 1px 2px rgba(0,0,0,.5);display:block;position:absolute;text-align:center}.ribbon-wrapper .corner .left{right:-25px;top:30px;transform:rotate(-45deg)}.ribbon-wrapper .corner .right{left:-25px;top:30px;transform:rotate(45deg)}.ribbon-wrapper .bookmark{filter:drop-shadow(2px 3px 2px rgba(0,0,0,.5));overflow:hidden;position:absolute}.ribbon-wrapper .bookmark>.content{font-size:1.25rem;font-weight:400;padding:8px 2px 4px;text-align:center}.ribbon-wrapper .bookmark.up>.content{-webkit-clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 8px),0 100%)}.ribbon-wrapper .side{background-size:cover;float:left;position:relative}.ribbon-wrapper .side .content{box-shadow:1px 2px 3px rgba(0,0,0,.5);padding:8px 10px;position:absolute}.ribbon-wrapper .side .content:before{background:inherit;border-radius:5px 0 0 5px;content:"";height:100%;left:-6.5px;padding:1px 0 7px;position:absolute;top:0;width:7px}.ribbon-wrapper .side .content:after{background:#add8e6;border-radius:5px 0 0 5px;bottom:-5px;content:"";height:5px;left:-4.5px;position:absolute;width:5px}.ribbon-wrapper .horizontal{box-shadow:1px 2px 3px rgba(0,0,0,.5);position:relative}.ribbon-wrapper .horizontal .content{position:absolute}.ntb-datas-wrapper .svgIcon{display:inline-block;mask-size:cover;-webkit-mask-size:cover}.ntb-datas-wrapper .ntb-progress .el-progress .el-progress__text{color:var(--progress-bar-text-color);font-size:var(--progress-bar-font-size)}.ntb-datas-wrapper .ntb-rating{height:auto!important}.ntb-datas-wrapper .ntb-rating .el-rate__item i{font-size:var(--rating-font-size)}.ntb-datas-wrapper dd,.ntb-datas-wrapper li{margin-bottom:0}.ntb-datas-wrapper .ntb-list-style li{position:relative}.ntb-datas-wrapper .ntb-list-style li .icon-styles{color:#fff;font-size:12px;height:auto;justify-content:flex-end;opacity:0;position:absolute;visibility:hidden;width:auto;z-index:1}.ntb-datas-wrapper .ntb-list-style li .icon-styles i{background:#3f9eff;font-weight:700;padding:0 1px}.ntb-datas-wrapper .ntb-list-style li:hover{border:1px solid #3f9eff;cursor:pointer}.ntb-datas-wrapper .ntb-list-style li:hover .icon-styles{opacity:1;right:0;top:-17px;visibility:visible}.ntb-datas-wrapper .button-content-wrapper{align-items:center;display:flex;justify-content:center}.ntb-datas-wrapper .icon-text-wrapper{align-items:center;justify-content:center;line-height:1.2}.ntb-datas-wrapper .ntb-el-button:hover .svgIcon{background-color:var(--icon-color-hover)!important}',""]);const o=i},394:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ntb-elements-wrapper:hover{border:1px solid #3f9eff}.svgIcon{display:inline-block;mask-size:cover;-webkit-mask-size:cover}.ntb-progress .el-progress .el-progress__text{color:var(--progress-bar-text-color);font-size:var(--progress-bar-font-size)!important}.remove-elements .el-input .el-input__inner{height:auto}",""]);const o=i},3571:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".external-source-nav .el-collapse-item__header,.external-source-nav .el-collapse-item__wrap{padding:0 15px}.external-source-nav .sync-settings{margin-top:15px}.external-source-nav .el-collapse-item__content{padding-bottom:15px}",""]);const o=i},7825:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""]);const o=i},6161:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}",""]);const o=i},9178:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-nav .el-collapse-item__header,.fluent-form-nav .el-collapse-item__wrap{padding:0 15px}.fluent-form-nav .sync-settings{margin-top:15px}.fluent-form-nav .el-collapse-item__content{padding-bottom:15px}.el-transfer__buttons{padding:0 10px!important}",""]);const o=i},935:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".nt-woo-nav .nt-appearance label.el-checkbox{display:block}.nt-woo-nav .nt-form-group{margin-bottom:15px}.nt-woo-nav .nt-form-group label{margin-right:15px}",""]);const o=i},1368:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".license_form{padding:20px 0;text-align:center}.license_form label{display:block;font-size:30px;font-weight:400;margin-bottom:20px;text-transform:capitalize}.license_form .form_input input{background:#fbfdff;border:1px solid gray;border-radius:5px;font-size:20px;height:48px;margin-bottom:20px;min-width:400px;padding:0 10px;width:50%}.license_form .error_message{background:#ffe491;border-radius:5px;color:#000;font-weight:700;margin-top:40px;padding:10px}.license_success{padding:40px 0;text-align:center}.license_renew_box{background:#ffee9b;border:2px dashed #ff0;padding:10px}.license_renew_box p{font-size:18px}.license_renew_box a{background:#0073aa;border:1px solid gray;border-radius:21px;color:#fff;font-weight:700;padding:5px 15px;text-decoration:none;text-transform:capitalize}.license_renew_box a:hover{background:#fff;color:#0073aa}",""]);const o=i},4189:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja_intro_welcome{background:#fff;margin:45px auto 0;max-width:600px;padding:30px 20px;text-align:center}.ninja_intro_welcome h2{font-size:30px}.ninja_intro_welcome .ninja_actions{margin-bottom:30px}.ninja_intro_welcome .ninja_docs{text-align:left}",""]);const o=i},8674:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-add-table .el-main{min-height:auto;padding:0 1px 0 15px}.ninja-add-table .el-menu{border-right:initial}.ninja-add-table .el-menu-item .el-icon-fluent-form{height:18px}.ninja-add-table .el-menu-item .dashicons{height:18px;margin-right:5px;width:24px}.ninja-add-table .el-menu-item.is-active{background-color:#0073aa!important}.ninja-add-table .el-table .cell{text-overflow:clip}",""]);const o=i},5867:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".ninja-tables.el-table td,.ninja-tables.el-table th{padding:5px 0}.ninja-tables.el-table span.row-delete a{color:#a00}.ninja-tables.el-table a{text-decoration:none}.ninja-tables.el-table .description .cell{max-height:60px}",""]);const o=i},9071:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".hint[data-v-4a4d4c11]{background-color:#f4f4f5;color:#909399;padding:8px 16px;width:100%}.form_group.ninja_errors[data-v-4a4d4c11]{background:#ffd7d7;padding:10px}",""]);const o=i},7100:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".premium-notice .buy_now_button[data-v-c52d6be2]{text-decoration:none}",""]);const o=i},2361:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""]);const o=i},2151:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(3645),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,"button.button.ninja_demo_media_button{cursor:pointer;position:absolute;z-index:9999999999}.wp_vue_editor{min-height:100px;width:100%}.wp_vue_editor_wrapper{position:relative}.wp_vue_editor_wrapper .popover-wrapper{left:0;position:absolute;top:0;z-index:2}.wp_vue_editor_wrapper .popover-wrapper-plaintext{left:auto;right:0;top:-32px}",""]);const o=i},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=t(e);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(i[l]=!0)}for(var s=0;s<t.length;s++){var r=[].concat(t[s]);n&&i[r[0]]||(a&&(r[2]?r[2]="".concat(a," and ").concat(r[2]):r[2]=a),e.push(r))}},e}},8091:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var a=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),l=0,s=o.length;l<s;l++){var r=o[l],c=Object.getOwnPropertyDescriptor(i,r);void 0!==c&&c.enumerable&&(a[r]=i[r])}}return a}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},8552:(t,e,a)=>{var n=a(852)(a(5639),"DataView");t.exports=n},1989:(t,e,a)=>{var n=a(1789),i=a(401),o=a(7667),l=a(1327),s=a(1866);function r(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var n=t[e];this.set(n[0],n[1])}}r.prototype.clear=n,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},8407:(t,e,a)=>{var n=a(7040),i=a(4125),o=a(2117),l=a(7529),s=a(4705);function r(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var n=t[e];this.set(n[0],n[1])}}r.prototype.clear=n,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},7071:(t,e,a)=>{var n=a(852)(a(5639),"Map");t.exports=n},3369:(t,e,a)=>{var n=a(4785),i=a(1285),o=a(6e3),l=a(9916),s=a(5265);function r(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var n=t[e];this.set(n[0],n[1])}}r.prototype.clear=n,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=l,r.prototype.set=s,t.exports=r},3818:(t,e,a)=>{var n=a(852)(a(5639),"Promise");t.exports=n},8525:(t,e,a)=>{var n=a(852)(a(5639),"Set");t.exports=n},8668:(t,e,a)=>{var n=a(3369),i=a(619),o=a(2385);function l(t){var e=-1,a=null==t?0:t.length;for(this.__data__=new n;++e<a;)this.add(t[e])}l.prototype.add=l.prototype.push=i,l.prototype.has=o,t.exports=l},6384:(t,e,a)=>{var n=a(8407),i=a(7465),o=a(3779),l=a(7599),s=a(4758),r=a(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=l,c.prototype.has=s,c.prototype.set=r,t.exports=c},2705:(t,e,a)=>{var n=a(5639).Symbol;t.exports=n},1149:(t,e,a)=>{var n=a(5639).Uint8Array;t.exports=n},577:(t,e,a)=>{var n=a(852)(a(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,a){switch(a.length){case 0:return t.call(e);case 1:return t.call(e,a[0]);case 2:return t.call(e,a[0],a[1]);case 3:return t.call(e,a[0],a[1],a[2])}return t.apply(e,a)}},7412:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length;++a<n&&!1!==e(t[a],a,t););return t}},4963:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length,i=0,o=[];++a<n;){var l=t[a];e(l,a,t)&&(o[i++]=l)}return o}},7443:(t,e,a)=>{var n=a(2118);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,a){for(var n=-1,i=null==t?0:t.length;++n<i;)if(a(e,t[n]))return!0;return!1}},4636:(t,e,a)=>{var n=a(2545),i=a(5694),o=a(1469),l=a(4144),s=a(5776),r=a(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var a=o(t),u=!a&&i(t),d=!a&&!u&&l(t),p=!a&&!u&&!d&&r(t),m=a||u||d||p,_=m?n(t.length,String):[],h=_.length;for(var f in t)!e&&!c.call(t,f)||m&&("length"==f||d&&("offset"==f||"parent"==f)||p&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,h))||_.push(f);return _}},9932:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length,i=Array(n);++a<n;)i[a]=e(t[a],a,t);return i}},2488:t=>{t.exports=function(t,e){for(var a=-1,n=e.length,i=t.length;++a<n;)t[i+a]=e[a];return t}},2663:t=>{t.exports=function(t,e,a,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(a=t[++i]);++i<o;)a=e(a,t[i],i,t);return a}},2908:t=>{t.exports=function(t,e){for(var a=-1,n=null==t?0:t.length;++a<n;)if(e(t[a],a,t))return!0;return!1}},8983:(t,e,a)=>{var n=a(371)("length");t.exports=n},9029:t=>{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},8470:(t,e,a)=>{var n=a(7813);t.exports=function(t,e){for(var a=t.length;a--;)if(n(t[a][0],e))return a;return-1}},9881:(t,e,a)=>{var n=a(7816),i=a(9291)(n);t.exports=i},1848:t=>{t.exports=function(t,e,a,n){for(var i=t.length,o=a+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},8483:(t,e,a)=>{var n=a(5063)();t.exports=n},7816:(t,e,a)=>{var n=a(8483),i=a(3674);t.exports=function(t,e){return t&&n(t,e,i)}},7786:(t,e,a)=>{var n=a(1811),i=a(327);t.exports=function(t,e){for(var a=0,o=(e=n(e,t)).length;null!=t&&a<o;)t=t[i(e[a++])];return a&&a==o?t:void 0}},8866:(t,e,a)=>{var n=a(2488),i=a(1469);t.exports=function(t,e,a){var o=e(t);return i(t)?o:n(o,a(t))}},4239:(t,e,a)=>{var n=a(2705),i=a(9607),o=a(2333),l=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?i(t):o(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,a)=>{var n=a(1848),i=a(2722),o=a(2351);t.exports=function(t,e,a){return e==e?o(t,e,a):n(t,i,a)}},7556:(t,e,a)=>{var n=a(8668),i=a(7443),o=a(1196),l=a(9932),s=a(7518),r=a(4757),c=Math.min;t.exports=function(t,e,a){for(var u=a?o:i,d=t[0].length,p=t.length,m=p,_=Array(p),h=1/0,f=[];m--;){var v=t[m];m&&e&&(v=l(v,s(e))),h=c(v.length,h),_[m]=!a&&(e||d>=120&&v.length>=120)?new n(m&&v):void 0}v=t[0];var b=-1,g=_[0];t:for(;++b<d&&f.length<h;){var y=v[b],w=e?e(y):y;if(y=a||0!==y?y:0,!(g?r(g,w):u(f,w,a))){for(m=p;--m;){var x=_[m];if(!(x?r(x,w):u(t[m],w,a)))continue t}g&&g.push(w),f.push(y)}}return f}},9454:(t,e,a)=>{var n=a(4239),i=a(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},939:(t,e,a)=>{var n=a(2492),i=a(7005);t.exports=function t(e,a,o,l,s){return e===a||(null==e||null==a||!i(e)&&!i(a)?e!=e&&a!=a:n(e,a,o,l,t,s))}},2492:(t,e,a)=>{var n=a(6384),i=a(7114),o=a(8351),l=a(6096),s=a(4160),r=a(1469),c=a(4144),u=a(6719),d="[object Arguments]",p="[object Array]",m="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,a,h,f,v){var b=r(t),g=r(e),y=b?p:s(t),w=g?p:s(e),x=(y=y==d?m:y)==m,k=(w=w==d?m:w)==m,C=y==w;if(C&&c(t)){if(!c(e))return!1;b=!0,x=!1}if(C&&!x)return v||(v=new n),b||u(t)?i(t,e,a,h,f,v):o(t,e,y,a,h,f,v);if(!(1&a)){var S=x&&_.call(t,"__wrapped__"),j=k&&_.call(e,"__wrapped__");if(S||j){var $=S?t.value():t,T=j?e.value():e;return v||(v=new n),f($,T,a,h,v)}}return!!C&&(v||(v=new n),l(t,e,a,h,f,v))}},2958:(t,e,a)=>{var n=a(6384),i=a(939);t.exports=function(t,e,a,o){var l=a.length,s=l,r=!o;if(null==t)return!s;for(t=Object(t);l--;){var c=a[l];if(r&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++l<s;){var u=(c=a[l])[0],d=t[u],p=c[1];if(r&&c[2]){if(void 0===d&&!(u in t))return!1}else{var m=new n;if(o)var _=o(d,p,u,t,e,m);if(!(void 0===_?i(p,d,3,o,m):_))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,a)=>{var n=a(3560),i=a(5346),o=a(3218),l=a(346),s=/^\[object .+?Constructor\]$/,r=Function.prototype,c=Object.prototype,u=r.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?p:s).test(l(t))}},8749:(t,e,a)=>{var n=a(4239),i=a(1780),o=a(7005),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!l[n(t)]}},7206:(t,e,a)=>{var n=a(1573),i=a(6432),o=a(6557),l=a(1469),s=a(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?l(t)?i(t[0],t[1]):n(t):s(t)}},280:(t,e,a)=>{var n=a(5726),i=a(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var a in Object(t))o.call(t,a)&&"constructor"!=a&&e.push(a);return e}},1573:(t,e,a)=>{var n=a(2958),i=a(1499),o=a(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(a){return a===t||n(a,t,e)}}},6432:(t,e,a)=>{var n=a(939),i=a(7361),o=a(9095),l=a(5403),s=a(9162),r=a(2634),c=a(327);t.exports=function(t,e){return l(t)&&s(e)?r(c(t),e):function(a){var l=i(a,t);return void 0===l&&l===e?o(a,t):n(e,l,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,a)=>{var n=a(7786);t.exports=function(t){return function(e){return n(e,t)}}},8904:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,a)=>{var n=a(6557),i=a(5357),o=a(61);t.exports=function(t,e){return o(i(t,e,n),t+"")}},6560:(t,e,a)=>{var n=a(5703),i=a(8777),o=a(6557),l=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=l},2545:t=>{t.exports=function(t,e){for(var a=-1,n=Array(t);++a<t;)n[a]=e(a);return n}},531:(t,e,a)=>{var n=a(2705),i=a(9932),o=a(1469),l=a(3448),s=n?n.prototype:void 0,r=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(l(e))return r?r.call(e):"";var a=e+"";return"0"==a&&1/e==-Infinity?"-0":a}},7561:(t,e,a)=>{var n=a(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},7518:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,a)=>{var n=a(9932);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,a)=>{var n=a(9246);t.exports=function(t){return n(t)?t:[]}},4290:(t,e,a)=>{var n=a(6557);t.exports=function(t){return"function"==typeof t?t:n}},1811:(t,e,a)=>{var n=a(1469),i=a(5403),o=a(5514),l=a(9833);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(l(t))}},4429:(t,e,a)=>{var n=a(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,a)=>{var n=a(8612);t.exports=function(t,e){return function(a,i){if(null==a)return a;if(!n(a))return t(a,i);for(var o=a.length,l=e?o:-1,s=Object(a);(e?l--:++l<o)&&!1!==i(s[l],l,s););return a}}},5063:t=>{t.exports=function(t){return function(e,a,n){for(var i=-1,o=Object(e),l=n(e),s=l.length;s--;){var r=l[t?s:++i];if(!1===a(o[r],r,o))break}return e}}},5393:(t,e,a)=>{var n=a(2663),i=a(3816),o=a(8748),l=RegExp("['’]","g");t.exports=function(t){return function(e){return n(o(i(e).replace(l,"")),t,"")}}},7740:(t,e,a)=>{var n=a(7206),i=a(8612),o=a(3674);t.exports=function(t){return function(e,a,l){var s=Object(e);if(!i(e)){var r=n(a,3);e=o(e),a=function(t){return r(s[t],t,s)}}var c=t(e,a,l);return c>-1?s[r?e[c]:c]:void 0}}},9389:(t,e,a)=>{var n=a(8904)({À:"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=n},8777:(t,e,a)=>{var n=a(852),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,a)=>{var n=a(8668),i=a(2908),o=a(4757);t.exports=function(t,e,a,l,s,r){var c=1&a,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var p=r.get(t),m=r.get(e);if(p&&m)return p==e&&m==t;var _=-1,h=!0,f=2&a?new n:void 0;for(r.set(t,e),r.set(e,t);++_<u;){var v=t[_],b=e[_];if(l)var g=c?l(b,v,_,e,t,r):l(v,b,_,t,e,r);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!i(e,(function(t,e){if(!o(f,e)&&(v===t||s(v,t,a,l,r)))return f.push(e)}))){h=!1;break}}else if(v!==b&&!s(v,b,a,l,r)){h=!1;break}}return r.delete(t),r.delete(e),h}},8351:(t,e,a)=>{var n=a(2705),i=a(1149),o=a(7813),l=a(7114),s=a(8776),r=a(1814),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,a,n,c,d,p){switch(a){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var m=s;case"[object Set]":var _=1&n;if(m||(m=r),t.size!=e.size&&!_)return!1;var h=p.get(t);if(h)return h==e;n|=2,p.set(t,e);var f=l(m(t),m(e),n,c,d,p);return p.delete(t),f;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},6096:(t,e,a)=>{var n=a(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,a,o,l,s){var r=1&a,c=n(t),u=c.length;if(u!=n(e).length&&!r)return!1;for(var d=u;d--;){var p=c[d];if(!(r?p in e:i.call(e,p)))return!1}var m=s.get(t),_=s.get(e);if(m&&_)return m==e&&_==t;var h=!0;s.set(t,e),s.set(e,t);for(var f=r;++d<u;){var v=t[p=c[d]],b=e[p];if(o)var g=r?o(b,v,p,e,t,s):o(v,b,p,t,e,s);if(!(void 0===g?v===b||l(v,b,a,o,s):g)){h=!1;break}f||(f="constructor"==p)}if(h&&!f){var y=t.constructor,w=e.constructor;y==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(t),s.delete(e),h}},1957:(t,e,a)=>{var n="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g;t.exports=n},8234:(t,e,a)=>{var n=a(8866),i=a(9551),o=a(3674);t.exports=function(t){return n(t,o,i)}},5050:(t,e,a)=>{var n=a(7019);t.exports=function(t,e){var a=t.__data__;return n(e)?a["string"==typeof e?"string":"hash"]:a.map}},1499:(t,e,a)=>{var n=a(9162),i=a(3674);t.exports=function(t){for(var e=i(t),a=e.length;a--;){var o=e[a],l=t[o];e[a]=[o,l,n(l)]}return e}},852:(t,e,a)=>{var n=a(8458),i=a(7801);t.exports=function(t,e){var a=i(t,e);return n(a)?a:void 0}},9607:(t,e,a)=>{var n=a(2705),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),a=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=l.call(t);return n&&(e?t[s]=a:delete t[s]),i}},9551:(t,e,a)=>{var n=a(4963),i=a(479),o=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(t){return null==t?[]:(t=Object(t),n(l(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},4160:(t,e,a)=>{var n=a(8552),i=a(7071),o=a(3818),l=a(8525),s=a(577),r=a(4239),c=a(346),u="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",_="[object DataView]",h=c(n),f=c(i),v=c(o),b=c(l),g=c(s),y=r;(n&&y(new n(new ArrayBuffer(1)))!=_||i&&y(new i)!=u||o&&y(o.resolve())!=d||l&&y(new l)!=p||s&&y(new s)!=m)&&(y=function(t){var e=r(t),a="[object Object]"==e?t.constructor:void 0,n=a?c(a):"";if(n)switch(n){case h:return _;case f:return u;case v:return d;case b:return p;case g:return m}return e}),t.exports=y},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,a)=>{var n=a(1811),i=a(5694),o=a(1469),l=a(5776),s=a(1780),r=a(327);t.exports=function(t,e,a){for(var c=-1,u=(e=n(e,t)).length,d=!1;++c<u;){var p=r(e[c]);if(!(d=null!=t&&a(t,p)))break;t=t[p]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&l(p,u)&&(o(t)||i(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},3157:t=>{var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},1789:(t,e,a)=>{var n=a(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,a)=>{var n=a(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var a=e[t];return"__lodash_hash_undefined__"===a?void 0:a}return i.call(e,t)?e[t]:void 0}},1327:(t,e,a)=>{var n=a(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},1866:(t,e,a)=>{var n=a(4536);t.exports=function(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,a){var n=typeof t;return!!(a=null==a?9007199254740991:a)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<a}},5403:(t,e,a)=>{var n=a(1469),i=a(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var a=typeof t;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=t&&!i(t))||(l.test(t)||!o.test(t)||null!=e&&t in Object(e))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,a)=>{var n,i=a(4429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var a=t&&t.constructor;return t===("function"==typeof a&&a.prototype||e)}},9162:(t,e,a)=>{var n=a(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,a)=>{var n=a(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,a=n(e,t);return!(a<0)&&(a==e.length-1?e.pop():i.call(e,a,1),--this.size,!0)}},2117:(t,e,a)=>{var n=a(8470);t.exports=function(t){var e=this.__data__,a=n(e,t);return a<0?void 0:e[a][1]}},7529:(t,e,a)=>{var n=a(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,a)=>{var n=a(8470);t.exports=function(t,e){var a=this.__data__,i=n(a,t);return i<0?(++this.size,a.push([t,e])):a[i][1]=e,this}},4785:(t,e,a)=>{var n=a(1989),i=a(8407),o=a(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},1285:(t,e,a)=>{var n=a(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,a)=>{var n=a(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,a)=>{var n=a(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,a)=>{var n=a(5050);t.exports=function(t,e){var a=n(this,t),i=a.size;return a.set(t,e),this.size+=a.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,a=Array(t.size);return t.forEach((function(t,n){a[++e]=[n,t]})),a}},2634:t=>{t.exports=function(t,e){return function(a){return null!=a&&(a[t]===e&&(void 0!==e||t in Object(a)))}}},4523:(t,e,a)=>{var n=a(8306);t.exports=function(t){var e=n(t,(function(t){return 500===a.size&&a.clear(),t})),a=e.cache;return e}},4536:(t,e,a)=>{var n=a(852)(Object,"create");t.exports=n},6916:(t,e,a)=>{var n=a(5569)(Object.keys,Object);t.exports=n},1167:(t,e,a)=>{t=a.nmd(t);var n=a(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,l=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||l&&l.binding&&l.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(a){return t(e(a))}}},5357:(t,e,a)=>{var n=a(6874),i=Math.max;t.exports=function(t,e,a){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,l=-1,s=i(o.length-e,0),r=Array(s);++l<s;)r[l]=o[e+l];l=-1;for(var c=Array(e+1);++l<e;)c[l]=o[l];return c[e]=a(r),n(t,this,c)}}},5639:(t,e,a)=>{var n=a(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,a=Array(t.size);return t.forEach((function(t){a[++e]=t})),a}},61:(t,e,a)=>{var n=a(6560),i=a(1275)(n);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var a=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>0){if(++a>=800)return arguments[0]}else a=0;return t.apply(void 0,arguments)}}},7465:(t,e,a)=>{var n=a(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,a=e.delete(t);return this.size=e.size,a}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,a)=>{var n=a(8407),i=a(7071),o=a(3369);t.exports=function(t,e){var a=this.__data__;if(a instanceof n){var l=a.__data__;if(!i||l.length<199)return l.push([t,e]),this.size=++a.size,this;a=this.__data__=new o(l)}return a.set(t,e),this.size=a.size,this}},2351:t=>{t.exports=function(t,e,a){for(var n=a-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},8016:(t,e,a)=>{var n=a(8983),i=a(2689),o=a(8816);t.exports=function(t){return i(t)?o(t):n(t)}},5514:(t,e,a)=>{var n=a(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,l=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,a,n,i){e.push(n?i.replace(o,"$1"):a||t)})),e}));t.exports=l},327:(t,e,a)=>{var n=a(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var a=t.length;a--&&e.test(t.charAt(a)););return a}},3729:(t,e,a)=>{var n=a(8904)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=n},8816:t=>{var e="[\\ud800-\\udfff]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+a+"|"+n+")"+"?",r="[\\ufe0e\\ufe0f]?",c=r+s+("(?:\\u200d(?:"+[i,o,l].join("|")+")"+r+s+")*"),u="(?:"+[i+a+"?",a,o,l,e].join("|")+")",d=RegExp(n+"(?="+n+")|"+u+c,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},2757:t=>{var e="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\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",o="["+i+"]",l="\\d+",s="[\\u2700-\\u27bf]",r="["+a+"]",c="[^\\ud800-\\udfff"+i+l+e+a+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+n+"]",m="(?:"+r+"|"+c+")",_="(?:"+p+"|"+c+")",h="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",g=b+v+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,d].join("|")+")"+b+v+")*"),y="(?:"+[s,u,d].join("|")+")"+g,w=RegExp([p+"?"+r+"+"+h+"(?="+[o,p,"$"].join("|")+")",_+"+"+f+"(?="+[o,p+m,"$"].join("|")+")",p+"?"+m+"+"+h,p+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,y].join("|"),"g");t.exports=function(t){return t.match(w)||[]}},5703:t=>{t.exports=function(t){return function(){return t}}},3816:(t,e,a)=>{var n=a(9389),i=a(9833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,n).replace(l,"")}},6073:(t,e,a)=>{t.exports=a(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3311:(t,e,a)=>{var n=a(7740)(a(998));t.exports=n},998:(t,e,a)=>{var n=a(1848),i=a(7206),o=a(554),l=Math.max;t.exports=function(t,e,a){var s=null==t?0:t.length;if(!s)return-1;var r=null==a?0:o(a);return r<0&&(r=l(s+r,0)),n(t,i(e,3),r)}},4486:(t,e,a)=>{var n=a(7412),i=a(9881),o=a(4290),l=a(1469);t.exports=function(t,e){return(l(t)?n:i)(t,o(e))}},7361:(t,e,a)=>{var n=a(7786);t.exports=function(t,e,a){var i=null==t?void 0:n(t,e);return void 0===i?a:i}},9095:(t,e,a)=>{var n=a(13),i=a(222);t.exports=function(t,e){return null!=t&&i(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5325:(t,e,a)=>{var n=a(9932),i=a(7556),o=a(5976),l=a(4387),s=o((function(t){var e=n(t,l);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=s},5694:(t,e,a)=>{var n=a(9454),i=a(7005),o=Object.prototype,l=o.hasOwnProperty,s=o.propertyIsEnumerable,r=n(function(){return arguments}())?n:function(t){return i(t)&&l.call(t,"callee")&&!s.call(t,"callee")};t.exports=r},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,a)=>{var n=a(3560),i=a(1780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},9246:(t,e,a)=>{var n=a(8612),i=a(7005);t.exports=function(t){return i(t)&&n(t)}},4144:(t,e,a)=>{t=a.nmd(t);var n=a(5639),i=a(5062),o=e&&!e.nodeType&&e,l=o&&t&&!t.nodeType&&t,s=l&&l.exports===o?n.Buffer:void 0,r=(s?s.isBuffer:void 0)||i;t.exports=r},3560:(t,e,a)=>{var n=a(4239),i=a(3218);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},7037:(t,e,a)=>{var n=a(4239),i=a(1469),o=a(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},3448:(t,e,a)=>{var n=a(4239),i=a(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},6719:(t,e,a)=>{var n=a(8749),i=a(7518),o=a(1167),l=o&&o.isTypedArray,s=l?i(l):n;t.exports=s},3674:(t,e,a)=>{var n=a(4636),i=a(280),o=a(8612);t.exports=function(t){return o(t)?n(t):i(t)}},8306:(t,e,a)=>{var n=a(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var a=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=a.cache;if(o.has(i))return o.get(i);var l=t.apply(this,n);return a.cache=o.set(i,l)||o,l};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i},9601:(t,e,a)=>{var n=a(371),i=a(9152),o=a(5403),l=a(327);t.exports=function(t){return o(t)?n(l(t)):i(t)}},4238:(t,e,a)=>{var n=a(280),i=a(4160),o=a(8612),l=a(7037),s=a(8016);t.exports=function(t){if(null==t)return 0;if(o(t))return l(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:n(t).length}},1865:(t,e,a)=>{var n=a(5393)((function(t,e,a){return t+(a?"_":"")+e.toLowerCase()}));t.exports=n},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,a)=>{var n=a(4841),i=1/0;t.exports=function(t){return t?(t=n(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,a)=>{var n=a(8601);t.exports=function(t){var e=n(t),a=e%1;return e==e?a?e-a:e:0}},4841:(t,e,a)=>{var n=a(7561),i=a(3218),o=a(3448),l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,r=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var a=s.test(t);return a||r.test(t)?c(t.slice(2),a?2:8):l.test(t)?NaN:+t}},9833:(t,e,a)=>{var n=a(531);t.exports=function(t){return null==t?"":n(t)}},7955:(t,e,a)=>{var n=a(9833),i=a(3729),o=/&(?:amp|lt|gt|quot|#39);/g,l=RegExp(o.source);t.exports=function(t){return(t=n(t))&&l.test(t)?t.replace(o,i):t}},2628:(t,e,a)=>{var n=a(7415),i=a(3674);t.exports=function(t){return null==t?[]:n(t,i(t))}},8748:(t,e,a)=>{var n=a(9029),i=a(3157),o=a(9833),l=a(2757);t.exports=function(t,e,a){return t=o(t),void 0===(e=a?void 0:e)?i(t)?l(t):n(t):t.match(e)||[]}},3379:(t,e,a)=>{"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var t={};return function(e){if(void 0===t[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(t){a=null}t[e]=a}return t[e]}}(),l=[];function s(t){for(var e=-1,a=0;a<l.length;a++)if(l[a].identifier===t){e=a;break}return e}function r(t,e){for(var a={},n=[],i=0;i<t.length;i++){var o=t[i],r=e.base?o[0]+e.base:o[0],c=a[r]||0,u="".concat(r," ").concat(c);a[r]=c+1;var d=s(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(l[d].references++,l[d].updater(p)):l.push({identifier:u,updater:f(p,e),references:1}),n.push(u)}return n}function c(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var i=a.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var l=o(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,a,n){var i=a?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var o=document.createTextNode(i),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(o,l[e]):t.appendChild(o)}}function m(t,e,a){var n=a.css,i=a.media,o=a.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var _=null,h=0;function f(t,e){var a,n,i;if(e.singleton){var o=h++;a=_||(_=c(e)),n=p.bind(null,a,o,!1),i=p.bind(null,a,o,!0)}else a=c(e),n=m.bind(null,a,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(a)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var a=r(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<a.length;n++){var i=s(a[n]);l[i].references--}for(var o=r(t,e),c=0;c<a.length;c++){var u=s(a[c]);0===l[u].references&&(l[u].updater(),l.splice(u,1))}a=o}}}},9980:function(t,e,a){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({"01f9":function(t,e,a){"use strict";var n=a("2d00"),i=a("5ca1"),o=a("2aba"),l=a("32e9"),s=a("84f2"),r=a("41a0"),c=a("7f20"),u=a("38fd"),d=a("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",_="values",h=function(){return this};t.exports=function(t,e,a,f,v,b,g){r(a,e,f);var y,w,x,k=function(t){if(!p&&t in $)return $[t];switch(t){case m:case _:return function(){return new a(this,t)}}return function(){return new a(this,t)}},C=e+" Iterator",S=v==_,j=!1,$=t.prototype,T=$[d]||$["@@iterator"]||v&&$[v],D=T||k(v),I=v?S?k("entries"):D:void 0,P="Array"==e&&$.entries||T;if(P&&(x=u(P.call(new t)))!==Object.prototype&&x.next&&(c(x,C,!0),n||"function"==typeof x[d]||l(x,d,h)),S&&T&&T.name!==_&&(j=!0,D=function(){return T.call(this)}),n&&!g||!p&&!j&&$[d]||l($,d,D),s[e]=D,s[C]=h,v)if(y={values:S?D:k(_),keys:b?D:k(m),entries:I},g)for(w in y)w in $||o($,w,y[w]);else i(i.P+i.F*(p||j),e,y);return y}},"02f4":function(t,e,a){var n=a("4588"),i=a("be13");t.exports=function(t){return function(e,a){var o,l,s=String(i(e)),r=n(a),c=s.length;return r<0||r>=c?t?"":void 0:(o=s.charCodeAt(r))<55296||o>56319||r+1===c||(l=s.charCodeAt(r+1))<56320||l>57343?t?s.charAt(r):o:t?s.slice(r,r+2):l-56320+(o-55296<<10)+65536}}},"0390":function(t,e,a){"use strict";var n=a("02f4")(!0);t.exports=function(t,e,a){return e+(a?n(t,e).length:1)}},"0bfb":function(t,e,a){"use strict";var n=a("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,a){var n=a("ce10"),i=a("e11e");t.exports=Object.keys||function(t){return n(t,i)}},1495:function(t,e,a){var n=a("86cc"),i=a("cb7c"),o=a("0d58");t.exports=a("9e1e")?Object.defineProperties:function(t,e){i(t);for(var a,l=o(e),s=l.length,r=0;s>r;)n.f(t,a=l[r++],e[a]);return t}},"214f":function(t,e,a){"use strict";a("b0c5");var n=a("2aba"),i=a("32e9"),o=a("79e5"),l=a("be13"),s=a("2b4c"),r=a("520a"),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var p=s(t),m=!o((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),_=m?!o((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!e})):void 0;if(!m||!_||"replace"===t&&!u||"split"===t&&!d){var h=/./[p],f=a(l,p,""[t],(function(t,e,a,n,i){return e.exec===r?m&&!i?{done:!0,value:h.call(e,a,n)}:{done:!0,value:t.call(a,e,n)}:{done:!1}})),v=f[0],b=f[1];n(String.prototype,t,v),i(RegExp.prototype,p,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,a){var n=a("d3f4"),i=a("7726").document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,a){var n=a("2d95"),i=a("2b4c")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,a,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?a:o?n(e):"Object"==(l=n(e))&&"function"==typeof e.callee?"Arguments":l}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,a){var n=a("7726"),i=a("32e9"),o=a("69a8"),l=a("ca5a")("src"),s=a("fa5b"),r="toString",c=(""+s).split(r);a("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,a,s){var r="function"==typeof a;r&&(o(a,"name")||i(a,"name",e)),t[e]!==a&&(r&&(o(a,l)||i(a,l,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=a:s?t[e]?t[e]=a:i(t,e,a):(delete t[e],i(t,e,a)))})(Function.prototype,r,(function(){return"function"==typeof this&&this[l]||s.call(this)}))},"2aeb":function(t,e,a){var n=a("cb7c"),i=a("1495"),o=a("e11e"),l=a("613b")("IE_PROTO"),s=function(){},r=function(){var t,e=a("230e")("iframe"),n=o.length;for(e.style.display="none",a("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),r=t.F;n--;)delete r.prototype[o[n]];return r()};t.exports=Object.create||function(t,e){var a;return null!==t?(s.prototype=n(t),a=new s,s.prototype=null,a[l]=t):a=r(),void 0===e?a:i(a,e)}},"2b4c":function(t,e,a){var n=a("5537")("wks"),i=a("ca5a"),o=a("7726").Symbol,l="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=l&&o[t]||(l?o:i)("Symbol."+t))}).store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},"2fdb":function(t,e,a){"use strict";var n=a("5ca1"),i=a("d2c8"),o="includes";n(n.P+n.F*a("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,a){var n=a("86cc"),i=a("4630");t.exports=a("9e1e")?function(t,e,a){return n.f(t,e,i(1,a))}:function(t,e,a){return t[e]=a,t}},"38fd":function(t,e,a){var n=a("69a8"),i=a("4bf8"),o=a("613b")("IE_PROTO"),l=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},"41a0":function(t,e,a){"use strict";var n=a("2aeb"),i=a("4630"),o=a("7f20"),l={};a("32e9")(l,a("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,a){t.prototype=n(l,{next:i(1,a)}),o(t,e+" Iterator")}},"456d":function(t,e,a){var n=a("4bf8"),i=a("0d58");a("5eda")("keys",(function(){return function(t){return i(n(t))}}))},4588:function(t,e){var a=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:a)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,a){var n=a("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,a){var n=a("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(a){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,a){"use strict";var n,i,o=a("0bfb"),l=RegExp.prototype.exec,s=String.prototype.replace,r=l,c=(n=/a/,i=/b*/g,l.call(n,"a"),l.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(r=function(t){var e,a,n,i,r=this;return u&&(a=new RegExp("^"+r.source+"$(?!\\s)",o.call(r))),c&&(e=r.lastIndex),n=l.call(r,t),c&&n&&(r.lastIndex=r.global?n.index+n[0].length:e),u&&n&&n.length>1&&s.call(n[0],a,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=r},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,a){var n=a("8378"),i=a("7726"),o="__core-js_shared__",l=i[o]||(i[o]={});(t.exports=function(t,e){return l[t]||(l[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:a("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,a){var n=a("7726"),i=a("8378"),o=a("32e9"),l=a("2aba"),s=a("9b43"),r=function(t,e,a){var c,u,d,p,m=t&r.F,_=t&r.G,h=t&r.S,f=t&r.P,v=t&r.B,b=_?n:h?n[e]||(n[e]={}):(n[e]||{}).prototype,g=_?i:i[e]||(i[e]={}),y=g.prototype||(g.prototype={});for(c in _&&(a=e),a)d=((u=!m&&b&&void 0!==b[c])?b:a)[c],p=v&&u?s(d,n):f&&"function"==typeof d?s(Function.call,d):d,b&&l(b,c,d,t&r.U),g[c]!=d&&o(g,c,p),f&&y[c]!=d&&(y[c]=d)};n.core=i,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},"5eda":function(t,e,a){var n=a("5ca1"),i=a("8378"),o=a("79e5");t.exports=function(t,e){var a=(i.Object||{})[t]||Object[t],l={};l[t]=e(a),n(n.S+n.F*o((function(){a(1)})),"Object",l)}},"5f1b":function(t,e,a){"use strict";var n=a("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"==typeof a){var o=a.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,a){var n=a("5537")("keys"),i=a("ca5a");t.exports=function(t){return n[t]||(n[t]=i(t))}},"626a":function(t,e,a){var n=a("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6762:function(t,e,a){"use strict";var n=a("5ca1"),i=a("c366")(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(t,e,a){var n=a("626a"),i=a("be13");t.exports=function(t){return n(i(t))}},"69a8":function(t,e){var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},"6a99":function(t,e,a){var n=a("d3f4");t.exports=function(t,e){if(!n(t))return t;var a,i;if(e&&"function"==typeof(a=t.toString)&&!n(i=a.call(t)))return i;if("function"==typeof(a=t.valueOf)&&!n(i=a.call(t)))return i;if(!e&&"function"==typeof(a=t.toString)&&!n(i=a.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,a){"use strict";var n=a("0d58"),i=a("2621"),o=a("52a7"),l=a("4bf8"),s=a("626a"),r=Object.assign;t.exports=!r||a("79e5")((function(){var t={},e={},a=Symbol(),n="abcdefghijklmnopqrst";return t[a]=7,n.split("").forEach((function(t){e[t]=t})),7!=r({},t)[a]||Object.keys(r({},e)).join("")!=n}))?function(t,e){for(var a=l(t),r=arguments.length,c=1,u=i.f,d=o.f;r>c;)for(var p,m=s(arguments[c++]),_=u?n(m).concat(u(m)):n(m),h=_.length,f=0;h>f;)d.call(m,p=_[f++])&&(a[p]=m[p]);return a}:r},7726:function(t,e){var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},"77f1":function(t,e,a){var n=a("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,a){var n=a("86cc").f,i=a("69a8"),o=a("2b4c")("toStringTag");t.exports=function(t,e,a){t&&!i(t=a?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},8378:function(t,e){var a=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=a)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,a){var n=a("cb7c"),i=a("c69a"),o=a("6a99"),l=Object.defineProperty;e.f=a("9e1e")?Object.defineProperty:function(t,e,a){if(n(t),e=o(e,!0),n(a),i)try{return l(t,e,a)}catch(t){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(t[e]=a.value),t}},"9b43":function(t,e,a){var n=a("d8e8");t.exports=function(t,e,a){if(n(t),void 0===e)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 2:return function(a,n){return t.call(e,a,n)};case 3:return function(a,n,i){return t.call(e,a,n,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,a){var n=a("2b4c")("unscopables"),i=Array.prototype;null==i[n]&&a("32e9")(i,n,{}),t.exports=function(t){i[n][t]=!0}},"9def":function(t,e,a){var n=a("4588"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},"9e1e":function(t,e,a){t.exports=!a("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,a){e.exports=t},a481:function(t,e,a){"use strict";var n=a("cb7c"),i=a("4bf8"),o=a("9def"),l=a("4588"),s=a("0390"),r=a("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,m=/\$([$&`']|\d\d?)/g;a("214f")("replace",2,(function(t,e,a,_){return[function(n,i){var o=t(this),l=null==n?void 0:n[e];return void 0!==l?l.call(n,o,i):a.call(String(o),n,i)},function(t,e){var i=_(a,t,this,e);if(i.done)return i.value;var d=n(t),p=String(this),m="function"==typeof e;m||(e=String(e));var f=d.global;if(f){var v=d.unicode;d.lastIndex=0}for(var b=[];;){var g=r(d,p);if(null===g)break;if(b.push(g),!f)break;""===String(g[0])&&(d.lastIndex=s(p,o(d.lastIndex),v))}for(var y,w="",x=0,k=0;k<b.length;k++){g=b[k];for(var C=String(g[0]),S=c(u(l(g.index),p.length),0),j=[],$=1;$<g.length;$++)j.push(void 0===(y=g[$])?y:String(y));var T=g.groups;if(m){var D=[C].concat(j,S,p);void 0!==T&&D.push(T);var I=String(e.apply(void 0,D))}else I=h(C,p,S,j,T,e);S>=x&&(w+=p.slice(x,S)+I,x=S+C.length)}return w+p.slice(x)}];function h(t,e,n,o,l,s){var r=n+t.length,c=o.length,u=m;return void 0!==l&&(l=i(l),u=p),a.call(s,u,(function(a,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(r);case"<":s=l[i.slice(1,-1)];break;default:var u=+i;if(0===u)return a;if(u>c){var p=d(u/10);return 0===p?a:p<=c?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):a}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,a){var n=a("d3f4"),i=a("2d95"),o=a("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,a){for(var n=a("cadf"),i=a("0d58"),o=a("2aba"),l=a("7726"),s=a("32e9"),r=a("84f2"),c=a("2b4c"),u=c("iterator"),d=c("toStringTag"),p=r.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},_=i(m),h=0;h<_.length;h++){var f,v=_[h],b=m[v],g=l[v],y=g&&g.prototype;if(y&&(y[u]||s(y,u,p),y[d]||s(y,d,v),r[v]=p,b))for(f in n)y[f]||o(y,f,n[f],!0)}},b0c5:function(t,e,a){"use strict";var n=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,a){var n=a("6821"),i=a("9def"),o=a("77f1");t.exports=function(t){return function(e,a,l){var s,r=n(e),c=i(r.length),u=o(l,c);if(t&&a!=a){for(;c>u;)if((s=r[u++])!=s)return!0}else for(;c>u;u++)if((t||u in r)&&r[u]===a)return t||u||0;return!t&&-1}}},c649:function(t,e,a){"use strict";(function(t){a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return r})),a("a481");var n,i,o="undefined"!=typeof window?window.console:t.console,l=/-(\w)/g,s=(n=function(t){return t.replace(l,(function(t,e){return e?e.toUpperCase():""}))},i=Object.create(null),function(t){return i[t]||(i[t]=n(t))});function r(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,a){var n=0===a?t.children[0]:t.children[a-1].nextSibling;t.insertBefore(e,n)}}).call(this,a("c8ba"))},c69a:function(t,e,a){t.exports=!a("9e1e")&&!a("79e5")((function(){return 7!=Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(t){"object"==typeof window&&(a=window)}t.exports=a},ca5a:function(t,e){var a=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+n).toString(36))}},cadf:function(t,e,a){"use strict";var n=a("9c6c"),i=a("d53b"),o=a("84f2"),l=a("6821");t.exports=a("01f9")(Array,"Array",(function(t,e){this._t=l(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,a=this._i++;return!t||a>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?a:"values"==e?t[a]:[a,t[a]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,a){var n=a("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,a){var n=a("69a8"),i=a("6821"),o=a("c366")(!1),l=a("613b")("IE_PROTO");t.exports=function(t,e){var a,s=i(t),r=0,c=[];for(a in s)a!=l&&n(s,a)&&c.push(a);for(;e.length>r;)n(s,a=e[r++])&&(~o(c,a)||c.push(a));return c}},d2c8:function(t,e,a){var n=a("aae3"),i=a("be13");t.exports=function(t,e,a){if(n(e))throw TypeError("String#"+a+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,a){"use strict";var n=a("5ca1"),i=a("9def"),o=a("d2c8"),l="startsWith",s="".startsWith;n(n.P+n.F*a("5147")(l),"String",{startsWith:function(t){var e=o(this,t,l),a=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,a):e.slice(a,a+n.length)===n}})},f6fd:function(t,e){!function(t){var e="currentScript",a=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in a)if(a[t].src==e||"interactive"==a[t].readyState)return a[t];return null}}})}(document)},f751:function(t,e,a){var n=a("5ca1");n(n.S+n.F,"Object",{assign:a("7333")})},fa5b:function(t,e,a){t.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,a){var n=a("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,a){"use strict";var n;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(t,e):void 0}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var a=[],n=!0,i=!1,o=void 0;try{for(var l,s=t[Symbol.iterator]();!(n=(l=s.next()).done)&&(a.push(l.value),!e||a.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return a}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}a.r(e),"undefined"!=typeof window&&(a("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=n[1])),a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d"),a("6762"),a("2fdb");var r=a("a352"),c=a.n(r),u=a("c649");function d(t,e){var a=this;this.$nextTick((function(){return a.$emit(t.toLowerCase(),e)}))}function p(t){var e=this;return function(a){null!==e.realList&&e["onDrag"+t](a),d.call(e,t,a)}}function m(t){return["transition-group","TransitionGroup"].includes(t)}function _(t,e,a){return t[a]||(e[a]?e[a]():void 0)}var h=["Start","Add","Remove","Update","End"],f=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(h,f).map((function(t){return"on"+t})),b=null,g={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=l(t,1)[0].componentOptions;return!!e&&m(e.tag)}(e);var a=function(t,e,a){var n=0,i=0,o=_(e,a,"header");o&&(n=o.length,t=t?[].concat(s(o),s(t)):s(o));var l=_(e,a,"footer");return l&&(i=l.length,t=t?[].concat(s(t),s(l)):s(l)),{children:t,headerOffset:n,footerOffset:i}}(e,this.$slots,this.$scopedSlots),n=a.children,i=a.headerOffset,o=a.footerOffset;this.headerOffset=i,this.footerOffset=o;var r=function(t,e){var a=null,n=function(t,e){a=function(t,e,a){return void 0===a||((t=t||{})[e]=a),t}(a,t,e)};if(n("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,a){return e[a]=t[a],e}),{})),!e)return a;var i=e.on,o=e.props,l=e.attrs;return n("on",i),n("props",o),Object.assign(a.attrs,l),a}(this.$attrs,this.componentData);return t(this.getTag(),r,n)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};h.forEach((function(a){e["on"+a]=p.call(t,a)})),f.forEach((function(a){e["on"+a]=d.bind(t,a)}));var a=Object.keys(this.$attrs).reduce((function(e,a){return e[Object(u.a)(a)]=t.$attrs[a],e}),{}),n=Object.assign({},this.options,a,e,{onMove:function(e,a){return t.onDragMove(e,a)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new c.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var a=Object(u.a)(e);-1===v.indexOf(a)&&this._sortable.option(a,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,a,n){if(!t)return[];var i=t.map((function(t){return t.elm})),o=e.length-n,l=s(e).map((function(t,e){return e>=o?i.length:i.indexOf(t)}));return a?l.filter((function(t){return-1!==t})):l}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&m(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=s(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,s(t))};this.alterList(e)},updatePosition:function(t,e){var a=function(a){return a.splice(e,0,a.splice(t,1)[0])};this.alterList(a)},getRelatedContextFromMoveEvent:function(t){var e=t.to,a=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var i=n.realList,o={list:i,component:n};if(e!==a&&i&&n.getUnderlyingVm){var l=n.getUnderlyingVm(a);if(l)return Object.assign(l,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,a=e.length;return t>a-1?a:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var a=this.getVmIndex(t.newIndex);this.spliceList(a,0,e),this.computeIndexes();var n={element:e,newIndex:a};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var a={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:a})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,a=this.getVmIndex(t.newIndex);this.updatePosition(e,a);var n={element:this.context.element,oldIndex:e,newIndex:a};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var a=s(e.to.children).filter((function(t){return"none"!==t.style.display})),n=a.indexOf(e.related),i=t.component.getVmIndex(n);return-1===a.indexOf(b)&&e.willInsertAfter?i+1:i},onDragMove:function(t,e){var a=this.move;if(!a||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),i=this.context,o=this.computeFutureIndex(n,t);return Object.assign(i,{futureIndex:o}),a(Object.assign({},t,{relatedContext:n,draggedContext:i}),e)},onDragEnd:function(){this.computeIndexes(),b=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",g);var y=g;e.default=y}}).default},t.exports=n(a(8244))},8244:(t,e,a)=>{"use strict";function n(t){return n="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(t)}function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},o.apply(this,arguments)}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable})))),n.forEach((function(e){i(t,e,a[e])}))}return t}function s(t,e){if(null==t)return{};var a,n,i=function(t,e){if(null==t)return{};var a,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)a=o[n],e.indexOf(a)>=0||(i[a]=t[a]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(i[a]=t[a])}return i}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}a.r(e),a.d(e,{MultiDrag:()=>ge,Sortable:()=>Lt,Swap:()=>re,default:()=>xe});function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),m=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),_=c(/iP(ad|od|hone)/i),h=c(/chrome/i)&&c(/android/i),f={capture:!1,passive:!1};function v(t,e,a){t.addEventListener(e,a,!u&&f)}function b(t,e,a){t.removeEventListener(e,a,!u&&f)}function g(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,a,n){if(t){a=a||document;do{if(null!=e&&(">"===e[0]?t.parentNode===a&&g(t,e):g(t,e))||n&&t===a)return t;if(t===a)break}while(t=y(t))}return null}var x,k=/\s+/g;function C(t,e,a){if(t&&e)if(t.classList)t.classList[a?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(n+(a?" "+e:"")).replace(k," ")}}function S(t,e,a){var n=t&&t.style;if(n){if(void 0===a)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(a=t.currentStyle),void 0===e?a:a[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=a+("string"==typeof a?"":"px")}}function j(t,e){var a="";if("string"==typeof t)a=t;else do{var n=S(t,"transform");n&&"none"!==n&&(a=n+" "+a)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(a)}function $(t,e,a){if(t){var n=t.getElementsByTagName(e),i=0,o=n.length;if(a)for(;i<o;i++)a(n[i],i);return n}return[]}function T(){var t=document.scrollingElement;return t||document.documentElement}function D(t,e,a,n,i){if(t.getBoundingClientRect||t===window){var o,l,s,r,c,d,p;if(t!==window&&t!==T()?(l=(o=t.getBoundingClientRect()).top,s=o.left,r=o.bottom,c=o.right,d=o.height,p=o.width):(l=0,s=0,r=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(e||a)&&t!==window&&(i=i||t.parentNode,!u))do{if(i&&i.getBoundingClientRect&&("none"!==S(i,"transform")||a&&"static"!==S(i,"position"))){var m=i.getBoundingClientRect();l-=m.top+parseInt(S(i,"border-top-width")),s-=m.left+parseInt(S(i,"border-left-width")),r=l+o.height,c=s+o.width;break}}while(i=i.parentNode);if(n&&t!==window){var _=j(i||t),h=_&&_.a,f=_&&_.d;_&&(r=(l/=f)+(d/=f),c=(s/=h)+(p/=h))}return{top:l,left:s,bottom:r,right:c,width:p,height:d}}}function I(t,e,a){for(var n=O(t,!0),i=D(t)[e];n;){var o=D(n)[a];if(!("top"===a||"left"===a?i>=o:i<=o))return n;if(n===T())break;n=O(n,!1)}return!1}function P(t,e,a){for(var n=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Lt.ghost&&o[i]!==Lt.dragged&&w(o[i],a.draggable,t,!1)){if(n===e)return o[i];n++}i++}return null}function A(t,e){for(var a=t.lastElementChild;a&&(a===Lt.ghost||"none"===S(a,"display")||e&&!g(a,e));)a=a.previousElementSibling;return a||null}function E(t,e){var a=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Lt.clone||e&&!g(t,e)||a++;return a}function N(t){var e=0,a=0,n=T();if(t)do{var i=j(t),o=i.a,l=i.d;e+=t.scrollLeft*o,a+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,a]}function O(t,e){if(!t||!t.getBoundingClientRect)return T();var a=t,n=!1;do{if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var i=S(a);if(a.clientWidth<a.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||a.clientHeight<a.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!a.getBoundingClientRect||a===document.body)return T();if(n||e)return a;n=!0}}}while(a=a.parentNode);return T()}function M(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function z(t,e){return function(){if(!x){var a=arguments,n=this;1===a.length?t.call(n,a[0]):t.apply(n,a),x=setTimeout((function(){x=void 0}),e)}}}function B(t,e,a){t.scrollLeft+=e,t.scrollTop+=a}function F(t){var e=window.Polymer,a=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):a?a(t).clone(!0)[0]:t.cloneNode(!0)}function L(t,e){S(t,"position","absolute"),S(t,"top",e.top),S(t,"left",e.left),S(t,"width",e.width),S(t,"height",e.height)}function R(t){S(t,"position",""),S(t,"top",""),S(t,"left",""),S(t,"width",""),S(t,"height","")}var H="Sortable"+(new Date).getTime();function W(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==S(t,"display")&&t!==Lt.ghost){e.push({target:t,rect:D(t)});var a=l({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=j(t,!0);n&&(a.top-=n.f,a.left-=n.e)}t.fromRect=a}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var a in t)if(t.hasOwnProperty(a))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[a][n])return Number(a);return-1}(e,{target:t}),1)},animateAll:function(a){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof a&&a());var i=!1,o=0;e.forEach((function(t){var e=0,a=t.target,l=a.fromRect,s=D(a),r=a.prevFromRect,c=a.prevToRect,u=t.rect,d=j(a,!0);d&&(s.top-=d.f,s.left-=d.e),a.toRect=s,a.thisAnimationDuration&&M(r,s)&&!M(l,s)&&(u.top-s.top)/(u.left-s.left)==(l.top-s.top)/(l.left-s.left)&&(e=function(t,e,a,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-a.top,2)+Math.pow(e.left-a.left,2))*n.animation}(u,r,c,n.options)),M(s,l)||(a.prevFromRect=l,a.prevToRect=s,e||(e=n.options.animation),n.animate(a,u,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout((function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null}),e),a.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof a&&a()}),o):"function"==typeof a&&a(),e=[]},animate:function(t,e,a,n){if(n){S(t,"transition",""),S(t,"transform","");var i=j(this.el),o=i&&i.a,l=i&&i.d,s=(e.left-a.left)/(o||1),r=(e.top-a.top)/(l||1);t.animatingX=!!s,t.animatingY=!!r,S(t,"transform","translate3d("+s+"px,"+r+"px,0)"),function(t){t.offsetWidth}(t),S(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),S(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){S(t,"transition",""),S(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var q=[],V={initializeByDefault:!0},U={mount:function(t){for(var e in V)V.hasOwnProperty(e)&&!(e in t)&&(t[e]=V[e]);q.push(t)},pluginEvent:function(t,e,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var i=t+"Global";q.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][i]&&e[n.pluginName][i](l({sortable:e},a)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](l({sortable:e},a)))}))},initializePlugins:function(t,e,a,n){for(var i in q.forEach((function(n){var i=n.pluginName;if(t.options[i]||n.initializeByDefault){var l=new n(t,e,t.options);l.sortable=t,l.options=t.options,t[i]=l,o(a,l.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var l=this.modifyOption(t,i,t.options[i]);void 0!==l&&(t.options[i]=l)}},getEventProperties:function(t,e){var a={};return q.forEach((function(n){"function"==typeof n.eventProperties&&o(a,n.eventProperties.call(e[n.pluginName],t))})),a},modifyOption:function(t,e,a){var n;return q.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(n=i.optionListeners[e].call(t[i.pluginName],a))})),n}};function Y(t){var e=t.sortable,a=t.rootEl,n=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,r=t.fromEl,c=t.oldIndex,p=t.newIndex,m=t.oldDraggableIndex,_=t.newDraggableIndex,h=t.originalEvent,f=t.putSortable,v=t.extraEventProperties;if(e=e||a&&a[H]){var b,g=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(n,!0,!0):b=new CustomEvent(n,{bubbles:!0,cancelable:!0}),b.to=s||a,b.from=r||a,b.item=i||a,b.clone=o,b.oldIndex=c,b.newIndex=p,b.oldDraggableIndex=m,b.newDraggableIndex=_,b.originalEvent=h,b.pullMode=f?f.lastPutMode:void 0;var w=l({},v,U.getEventProperties(n,e));for(var x in w)b[x]=w[x];a&&a.dispatchEvent(b),g[y]&&g[y].call(e,b)}}var Z=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=a.evt,i=s(a,["evt"]);U.pluginEvent.bind(Lt)(t,e,l({dragEl:Q,parentEl:X,ghostEl:G,rootEl:K,nextEl:tt,lastDownEl:et,cloneEl:at,cloneHidden:nt,dragStarted:ft,putSortable:ct,activeSortable:Lt.active,originalEvent:n,oldIndex:it,oldDraggableIndex:lt,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:Mt,unhideGhostForTarget:zt,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:n})}},i))};function J(t){Y(l({putSortable:ct,cloneEl:at,targetEl:Q,rootEl:K,oldIndex:it,oldDraggableIndex:lt,newIndex:ot,newDraggableIndex:st},t))}var Q,X,G,K,tt,et,at,nt,it,ot,lt,st,rt,ct,ut,dt,pt,mt,_t,ht,ft,vt,bt,gt,yt,wt=!1,xt=!1,kt=[],Ct=!1,St=!1,jt=[],$t=!1,Tt=[],Dt="undefined"!=typeof document,It=_,Pt=d||u?"cssFloat":"float",At=Dt&&!h&&!_&&"draggable"in document.createElement("div"),Et=function(){if(Dt){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Nt=function(t,e){var a=S(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=P(t,0,e),o=P(t,1,e),l=i&&S(i),s=o&&S(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+D(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(o).width;if("flex"===a.display)return"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal";if("grid"===a.display)return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===a[Pt]||o&&"none"===a[Pt]&&r+c>n)?"vertical":"horizontal"},Ot=function(t){function e(t,a){return function(n,i,o,l){var s=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==t&&(a||s))return!0;if(null==t||!1===t)return!1;if(a&&"clone"===t)return t;if("function"==typeof t)return e(t(n,i,o,l),a)(n,i,o,l);var r=(a?n:i).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var a={},i=t.group;i&&"object"==n(i)||(i={name:i}),a.name=i.name,a.checkPull=e(i.pull,!0),a.checkPut=e(i.put),a.revertClone=i.revertClone,t.group=a},Mt=function(){!Et&&G&&S(G,"display","none")},zt=function(){!Et&&G&&S(G,"display","")};Dt&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var Bt=function(t){if(Q){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!A(t)){var e=D(t),a=t[H].options.emptyInsertThreshold,n=i>=e.left-a&&i<=e.right+a,s=o>=e.top-a&&o<=e.bottom+a;return a&&n&&s?l=t:void 0}})),l);if(e){var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);a.target=a.rootEl=e,a.preventDefault=void 0,a.stopPropagation=void 0,e[H]._onDragOver(a)}}var i,o,l},Ft=function(t){Q&&Q.parentNode[H]._isOutsideThisEl(t.target)};function Lt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[H]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Lt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in U.initializePlugins(this,t,a),a)!(n in e)&&(e[n]=a[n]);for(var i in Ot(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&At,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?v(t,"pointerdown",this._onTapStart):(v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,W())}function Rt(t,e,a,n,i,o,l,s){var r,c,p=t[H],m=p.options.onMove;return!window.CustomEvent||u||d?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=a,r.draggedRect=n,r.related=i||e,r.relatedRect=o||D(e),r.willInsertAfter=s,r.originalEvent=l,t.dispatchEvent(r),m&&(c=m.call(p,r,l)),c}function Ht(t){t.draggable=!1}function Wt(){$t=!1}function qt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,a=e.length,n=0;a--;)n+=e.charCodeAt(a);return n.toString(36)}function Vt(t){return setTimeout(t,0)}function Ut(t){return clearTimeout(t)}Lt.prototype={constructor:Lt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,a=this.el,n=this.options,i=n.preventOnFilter,o=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(function(t){Tt.length=0;var e=t.getElementsByTagName("input"),a=e.length;for(;a--;){var n=e[a];n.checked&&Tt.push(n)}}(a),!Q&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled||r.isContentEditable||(s=w(s,n.draggable,a,!1))&&s.animated||et===s)){if(it=E(s),lt=E(s,n.draggable),"function"==typeof c){if(c.call(this,t,s,this))return J({sortable:e,rootEl:r,name:"filter",targetEl:s,toEl:a,fromEl:a}),Z("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=w(r,n.trim(),a,!1))return J({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:a,toEl:a}),Z("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());n.handle&&!w(r,n.handle,a,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,a){var n,i=this,o=i.el,l=i.options,s=o.ownerDocument;if(a&&!Q&&a.parentNode===o){var r=D(a);if(K=o,X=(Q=a).parentNode,tt=Q.nextSibling,et=a,rt=l.group,Lt.dragged=Q,ut={target:Q,clientX:(e||t).clientX,clientY:(e||t).clientY},_t=ut.clientX-r.left,ht=ut.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Q.style["will-change"]="all",n=function(){Z("delayEnded",i,{evt:t}),Lt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(Q.draggable=!0),i._triggerDragStart(t,e),J({sortable:i,name:"choose",originalEvent:t}),C(Q,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){$(Q,t.trim(),Ht)})),v(s,"dragover",Bt),v(s,"mousemove",Bt),v(s,"touchmove",Bt),v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),Z("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))n();else{if(Lt.eventCanceled)return void this._onDrop();v(s,"mouseup",i._disableDelayedDrag),v(s,"touchend",i._disableDelayedDrag),v(s,"touchcancel",i._disableDelayedDrag),v(s,"mousemove",i._delayedDragTouchMoveHandler),v(s,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&v(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Ht(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,e?"touchmove":"mousemove",this._onTouchMove):(v(Q,"dragend",this),v(K,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,K&&Q){Z("dragStarted",this,{evt:e}),this.nativeDraggable&&v(document,"dragover",Ft);var a=this.options;!t&&C(Q,a.dragClass,!1),C(Q,a.ghostClass,!0),Lt.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Mt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(Q.parentNode[H]._isOutsideThisEl(t),e)do{if(e[H]){if(e[H]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zt()}},_onTouchMove:function(t){if(ut){var e=this.options,a=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=G&&j(G,!0),l=G&&o&&o.a,s=G&&o&&o.d,r=It&&yt&&N(yt),c=(i.clientX-ut.clientX+n.x)/(l||1)+(r?r[0]-jt[0]:0)/(l||1),u=(i.clientY-ut.clientY+n.y)/(s||1)+(r?r[1]-jt[1]:0)/(s||1);if(!Lt.active&&!wt){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(G){o?(o.e+=c-(pt||0),o.f+=u-(mt||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");S(G,"webkitTransform",d),S(G,"mozTransform",d),S(G,"msTransform",d),S(G,"transform",d),pt=c,mt=u,dt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!G){var t=this.options.fallbackOnBody?document.body:K,e=D(Q,!0,It,!0,t),a=this.options;if(It){for(yt=t;"static"===S(yt,"position")&&"none"===S(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=T()),e.top+=yt.scrollTop,e.left+=yt.scrollLeft):yt=T(),jt=N(yt)}C(G=Q.cloneNode(!0),a.ghostClass,!1),C(G,a.fallbackClass,!0),C(G,a.dragClass,!0),S(G,"transition",""),S(G,"transform",""),S(G,"box-sizing","border-box"),S(G,"margin",0),S(G,"top",e.top),S(G,"left",e.left),S(G,"width",e.width),S(G,"height",e.height),S(G,"opacity","0.8"),S(G,"position",It?"absolute":"fixed"),S(G,"zIndex","100000"),S(G,"pointerEvents","none"),Lt.ghost=G,t.appendChild(G),S(G,"transform-origin",_t/parseInt(G.style.width)*100+"% "+ht/parseInt(G.style.height)*100+"%")}},_onDragStart:function(t,e){var a=this,n=t.dataTransfer,i=a.options;Z("dragStart",this,{evt:t}),Lt.eventCanceled?this._onDrop():(Z("setupClone",this),Lt.eventCanceled||((at=F(Q)).draggable=!1,at.style["will-change"]="",this._hideClone(),C(at,this.options.chosenClass,!1),Lt.clone=at),a.cloneId=Vt((function(){Z("clone",a),Lt.eventCanceled||(a.options.removeCloneOnHide||K.insertBefore(at,Q),a._hideClone(),J({sortable:a,name:"clone"}))})),!e&&C(Q,i.dragClass,!0),e?(xt=!0,a._loopId=setInterval(a._emulateDragOver,50)):(b(document,"mouseup",a._onDrop),b(document,"touchend",a._onDrop),b(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(a,n,Q)),v(document,"drop",a),S(Q,"transform","translateZ(0)")),wt=!0,a._dragStartId=Vt(a._dragStarted.bind(a,e,t)),v(document,"selectstart",a),ft=!0,m&&S(document.body,"user-select","none"))},_onDragOver:function(t){var e,a,n,i,o=this.el,s=t.target,r=this.options,c=r.group,u=Lt.active,d=rt===c,p=r.sort,m=ct||u,_=this,h=!1;if(!$t){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=w(s,r.draggable,o,!0),M("dragOver"),Lt.eventCanceled)return h;if(Q.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||_._ignoreWhileAnimating===s)return F(!1);if(xt=!1,u&&!r.disabled&&(d?p||(n=!K.contains(Q)):ct===this||(this.lastPutMode=rt.checkPull(this,u,Q,t))&&c.checkPut(this,u,Q,t))){if(i="vertical"===this._getDirection(t,s),e=D(Q),M("dragOverValid"),Lt.eventCanceled)return h;if(n)return X=K,z(),this._hideClone(),M("revert"),Lt.eventCanceled||(tt?K.insertBefore(Q,tt):K.appendChild(Q)),F(!0);var f=A(o,r.draggable);if(!f||function(t,e,a){var n=D(A(a.el,a.options.draggable)),i=10;return e?t.clientX>n.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}(t,i,this)&&!f.animated){if(f===Q)return F(!1);if(f&&o===t.target&&(s=f),s&&(a=D(s)),!1!==Rt(K,o,Q,e,s,a,t,!!s))return z(),o.appendChild(Q),X=o,L(),F(!0)}else if(s.parentNode===o){a=D(s);var v,b,g,y=Q.parentNode!==o,x=!function(t,e,a){var n=a?t.left:t.top,i=a?t.right:t.bottom,o=a?t.width:t.height,l=a?e.left:e.top,s=a?e.right:e.bottom,r=a?e.width:e.height;return n===l||i===s||n+o/2===l+r/2}(Q.animated&&Q.toRect||e,s.animated&&s.toRect||a,i),k=i?"top":"left",j=I(s,"top","top")||I(Q,"top","top"),$=j?j.scrollTop:void 0;if(vt!==s&&(b=a[k],Ct=!1,St=!x&&r.invertSwap||y),v=function(t,e,a,n,i,o,l,s){var r=n?t.clientY:t.clientX,c=n?a.height:a.width,u=n?a.top:a.left,d=n?a.bottom:a.right,p=!1;if(!l)if(s&&gt<c*i){if(!Ct&&(1===bt?r>u+c*o/2:r<d-c*o/2)&&(Ct=!0),Ct)p=!0;else if(1===bt?r<u+gt:r>d-gt)return-bt}else if(r>u+c*(1-i)/2&&r<d-c*(1-i)/2)return function(t){return E(Q)<E(t)?1:-1}(e);if((p=p||l)&&(r<u+c*o/2||r>d-c*o/2))return r>u+c/2?1:-1;return 0}(t,s,a,i,x?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,St,vt===s),0!==v){var T=E(Q);do{T-=v,g=X.children[T]}while(g&&("none"===S(g,"display")||g===G))}if(0===v||g===s)return F(!1);vt=s,bt=v;var P=s.nextElementSibling,N=!1,O=Rt(K,o,Q,e,s,a,t,N=1===v);if(!1!==O)return 1!==O&&-1!==O||(N=1===O),$t=!0,setTimeout(Wt,30),z(),N&&!P?o.appendChild(Q):s.parentNode.insertBefore(Q,N?P:s),j&&B(j,0,$-j.scrollTop),X=Q.parentNode,void 0===b||St||(gt=Math.abs(b-D(s)[k])),L(),F(!0)}if(o.contains(Q))return F(!1)}return!1}function M(r,c){Z(r,_,l({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:n,dragRect:e,targetRect:a,canSort:p,fromSortable:m,target:s,completed:F,onMove:function(a,n){return Rt(K,o,Q,e,a,D(a),t,n)},changed:L},c))}function z(){M("dragOverAnimationCapture"),_.captureAnimationState(),_!==m&&m.captureAnimationState()}function F(e){return M("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(_),_!==m&&(C(Q,ct?ct.options.ghostClass:u.options.ghostClass,!1),C(Q,r.ghostClass,!0)),ct!==_&&_!==Lt.active?ct=_:_===Lt.active&&ct&&(ct=null),m===_&&(_._ignoreWhileAnimating=s),_.animateAll((function(){M("dragOverAnimationComplete"),_._ignoreWhileAnimating=null})),_!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===Q&&!Q.animated||s===o&&!s.animated)&&(vt=null),r.dragoverBubble||t.rootEl||s===document||(Q.parentNode[H]._isOutsideThisEl(t.target),!e&&Bt(t)),!r.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function L(){ot=E(Q),st=E(Q,r.draggable),J({sortable:_,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Bt),b(document,"mousemove",Bt),b(document,"touchmove",Bt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,a=this.options;ot=E(Q),st=E(Q,a.draggable),Z("drop",this,{evt:t}),X=Q&&Q.parentNode,ot=E(Q),st=E(Q,a.draggable),Lt.eventCanceled||(wt=!1,St=!1,Ct=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ut(this.cloneId),Ut(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&S(document.body,"user-select",""),S(Q,"transform",""),t&&(ft&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(K===X||ct&&"clone"!==ct.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),Q&&(this.nativeDraggable&&b(Q,"dragend",this),Ht(Q),Q.style["will-change"]="",ft&&!wt&&C(Q,ct?ct.options.ghostClass:this.options.ghostClass,!1),C(Q,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:X,newIndex:null,newDraggableIndex:null,originalEvent:t}),K!==X?(ot>=0&&(J({rootEl:X,name:"add",toEl:X,fromEl:K,originalEvent:t}),J({sortable:this,name:"remove",toEl:X,originalEvent:t}),J({rootEl:X,name:"sort",toEl:X,fromEl:K,originalEvent:t}),J({sortable:this,name:"sort",toEl:X,originalEvent:t})),ct&&ct.save()):ot!==it&&ot>=0&&(J({sortable:this,name:"update",toEl:X,originalEvent:t}),J({sortable:this,name:"sort",toEl:X,originalEvent:t})),Lt.active&&(null!=ot&&-1!==ot||(ot=it,st=lt),J({sortable:this,name:"end",toEl:X,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),K=Q=X=G=tt=at=et=nt=ut=dt=ft=ot=st=it=lt=vt=bt=ct=rt=Lt.dragged=Lt.ghost=Lt.clone=Lt.active=null,Tt.forEach((function(t){t.checked=!0})),Tt.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Q&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],a=this.el.children,n=0,i=a.length,o=this.options;n<i;n++)w(t=a[n],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||qt(t));return e},sort:function(t){var e={},a=this.el;this.toArray().forEach((function(t,n){var i=a.children[n];w(i,this.options.draggable,a,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(a.removeChild(e[t]),a.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return w(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var a=this.options;if(void 0===e)return a[t];var n=U.modifyOption(this,t,e);a[t]=void 0!==n?n:e,"group"===t&&Ot(a)},destroy:function(){Z("destroy",this);var t=this.el;t[H]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),kt.splice(kt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!nt){if(Z("hideClone",this),Lt.eventCanceled)return;S(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),nt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(nt){if(Z("showClone",this),Lt.eventCanceled)return;K.contains(Q)&&!this.options.group.revertClone?K.insertBefore(at,Q):tt?K.insertBefore(at,tt):K.appendChild(at),this.options.group.revertClone&&this.animate(Q,at),S(at,"display",""),nt=!1}}else this._hideClone()}},Dt&&v(document,"touchmove",(function(t){(Lt.active||wt)&&t.cancelable&&t.preventDefault()})),Lt.utils={on:v,off:b,css:S,find:$,is:function(t,e){return!!w(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return t},throttle:z,closest:w,toggleClass:C,clone:F,index:E,nextTick:Vt,cancelNextTick:Ut,detectDirection:Nt,getChild:P},Lt.get=function(t){return t[H]},Lt.mount=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Lt.utils=l({},Lt.utils,t.utils)),U.mount(t)}))},Lt.create=function(t,e){return new Lt(t,e)},Lt.version="1.10.2";var Yt,Zt,Jt,Qt,Xt,Gt,Kt=[],te=!1;function ee(){Kt.forEach((function(t){clearInterval(t.pid)})),Kt=[]}function ae(){clearInterval(Gt)}var ne,ie=z((function(t,e,a,n){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,r=e.scrollSpeed,c=T(),u=!1;Zt!==a&&(Zt=a,ee(),Yt=e.scroll,i=e.scrollFn,!0===Yt&&(Yt=O(a,!0)));var d=0,p=Yt;do{var m=p,_=D(m),h=_.top,f=_.bottom,v=_.left,b=_.right,g=_.width,y=_.height,w=void 0,x=void 0,k=m.scrollWidth,C=m.scrollHeight,j=S(m),$=m.scrollLeft,I=m.scrollTop;m===c?(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX||"visible"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY||"visible"===j.overflowY)):(w=g<k&&("auto"===j.overflowX||"scroll"===j.overflowX),x=y<C&&("auto"===j.overflowY||"scroll"===j.overflowY));var P=w&&(Math.abs(b-o)<=s&&$+g<k)-(Math.abs(v-o)<=s&&!!$),A=x&&(Math.abs(f-l)<=s&&I+y<C)-(Math.abs(h-l)<=s&&!!I);if(!Kt[d])for(var E=0;E<=d;E++)Kt[E]||(Kt[E]={});Kt[d].vx==P&&Kt[d].vy==A&&Kt[d].el===m||(Kt[d].el=m,Kt[d].vx=P,Kt[d].vy=A,clearInterval(Kt[d].pid),0==P&&0==A||(u=!0,Kt[d].pid=setInterval(function(){n&&0===this.layer&&Lt.active._onTouchMove(Xt);var e=Kt[this.layer].vy?Kt[this.layer].vy*r:0,a=Kt[this.layer].vx?Kt[this.layer].vx*r:0;"function"==typeof i&&"continue"!==i.call(Lt.dragged.parentNode[H],a,e,t,Xt,Kt[this.layer].el)||B(Kt[this.layer].el,a,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=O(p,!1)));te=u}}),30),oe=function(t){var e=t.originalEvent,a=t.putSortable,n=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var r=a||i;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),r&&!r.el.contains(u)&&(o("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function le(){}function se(){}function re(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ne=e},dragOverValid:function(t){var e=t.completed,a=t.target,n=t.onMove,i=t.activeSortable,o=t.changed,l=t.cancel;if(i.options.swap){var s=this.sortable.el,r=this.options;if(a&&a!==s){var c=ne;!1!==n(a)?(C(a,r.swapClass,!0),ne=a):ne=null,c&&c!==ne&&C(c,r.swapClass,!1)}o(),e(!0),l()}},drop:function(t){var e=t.activeSortable,a=t.putSortable,n=t.dragEl,i=a||this.sortable,o=this.options;ne&&C(ne,o.swapClass,!1),ne&&(o.swap||a&&a.options.swap)&&n!==ne&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),function(t,e){var a,n,i=t.parentNode,o=e.parentNode;if(!i||!o||i.isEqualNode(e)||o.isEqualNode(t))return;a=E(t),n=E(e),i.isEqualNode(o)&&a<n&&n++;i.insertBefore(e,i.children[a]),o.insertBefore(t,o.children[n])}(n,ne),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){ne=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ne}}})}le.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=P(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),a&&a.animateAll()},drop:oe},o(le,{pluginName:"revertOnSpill"}),se.prototype={onSpill:function(t){var e=t.dragEl,a=t.putSortable||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:oe},o(se,{pluginName:"removeOnSpill"});var ce,ue,de,pe,me,_e=[],he=[],fe=!1,ve=!1,be=!1;function ge(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,a){var n="";_e.length&&ue===t?_e.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=a.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~_e.indexOf(de)},setupClone:function(t){var e=t.sortable,a=t.cancel;if(this.isMultiDrag){for(var n=0;n<_e.length;n++)he.push(F(_e[n])),he[n].sortableIndex=_e[n].sortableIndex,he[n].draggable=!1,he[n].style["will-change"]="",C(he[n],this.options.selectedClass,!1),_e[n]===de&&C(he[n],this.options.chosenClass,!1);e._hideClone(),a()}},clone:function(t){var e=t.sortable,a=t.rootEl,n=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||_e.length&&ue===e&&(ye(!0,a),n("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,a=t.rootEl,n=t.cancel;this.isMultiDrag&&(ye(!1,a),he.forEach((function(t){S(t,"display","")})),e(),me=!1,n())},hideClone:function(t){var e=this,a=(t.sortable,t.cloneNowHidden),n=t.cancel;this.isMultiDrag&&(he.forEach((function(t){S(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),a(),me=!0,n())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),_e.forEach((function(t){t.sortableIndex=E(t)})),_e=_e.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),be=!0},dragStarted:function(t){var e=this,a=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){_e.forEach((function(t){t!==de&&S(t,"position","absolute")}));var n=D(de,!1,!0,!0);_e.forEach((function(t){t!==de&&L(t,n)})),ve=!0,fe=!0}a.animateAll((function(){ve=!1,fe=!1,e.options.animation&&_e.forEach((function(t){R(t)})),e.options.sort&&we()}))}},dragOver:function(t){var e=t.target,a=t.completed,n=t.cancel;ve&&~_e.indexOf(e)&&(a(!1),n())},revert:function(t){var e=t.fromSortable,a=t.rootEl,n=t.sortable,i=t.dragRect;_e.length>1&&(_e.forEach((function(t){n.addAnimationState({target:t,rect:ve?D(t):i}),R(t),t.fromRect=i,e.removeAnimationState(t)})),ve=!1,function(t,e){_e.forEach((function(a,n){var i=e.children[a.sortableIndex+(t?Number(n):0)];i?e.insertBefore(a,i):e.appendChild(a)}))}(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(t){var e=t.sortable,a=t.isOwner,n=t.insertion,i=t.activeSortable,o=t.parentEl,l=t.putSortable,s=this.options;if(n){if(a&&i._hideClone(),fe=!1,s.animation&&_e.length>1&&(ve||!a&&!i.options.sort&&!l)){var r=D(de,!1,!0,!0);_e.forEach((function(t){t!==de&&(L(t,r),o.appendChild(t))})),ve=!0}if(!a)if(ve||we(),_e.length>1){var c=me;i._showClone(e),i.options.animation&&!me&&c&&he.forEach((function(t){i.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null}))}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,a=t.isOwner,n=t.activeSortable;if(_e.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!a&&n.multiDrag.isMultiDrag){pe=o({},e);var i=j(de,!0);pe.top-=i.f,pe.left-=i.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,we())},drop:function(t){var e=t.originalEvent,a=t.rootEl,n=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,l=t.oldIndex,s=t.putSortable,r=s||this.sortable;if(e){var c=this.options,u=n.children;if(!be)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),C(de,c.selectedClass,!~_e.indexOf(de)),~_e.indexOf(de))_e.splice(_e.indexOf(de),1),ce=null,Y({sortable:i,rootEl:a,name:"deselect",targetEl:de,originalEvt:e});else{if(_e.push(de),Y({sortable:i,rootEl:a,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&i.el.contains(ce)){var d,p,m=E(ce),_=E(de);if(~m&&~_&&m!==_)for(_>m?(p=m,d=_):(p=_,d=m+1);p<d;p++)~_e.indexOf(u[p])||(C(u[p],c.selectedClass,!0),_e.push(u[p]),Y({sortable:i,rootEl:a,name:"select",targetEl:u[p],originalEvt:e}))}else ce=de;ue=r}if(be&&this.isMultiDrag){if((n[H].options.sort||n!==a)&&_e.length>1){var h=D(de),f=E(de,":not(."+this.options.selectedClass+")");if(!fe&&c.animation&&(de.thisAnimationDuration=null),r.captureAnimationState(),!fe&&(c.animation&&(de.fromRect=h,_e.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ve?D(t):h;t.fromRect=e,r.addAnimationState({target:t,rect:e})}}))),we(),_e.forEach((function(t){u[f]?n.insertBefore(t,u[f]):n.appendChild(t),f++})),l===E(de))){var v=!1;_e.forEach((function(t){t.sortableIndex===E(t)||(v=!0)})),v&&o("update")}_e.forEach((function(t){R(t)})),r.animateAll()}ue=r}(a===n||s&&"clone"!==s.lastPutMode)&&he.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=be=!1,he.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||ue!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;_e.length;){var e=_e[0];C(e,this.options.selectedClass,!1),_e.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[H];e&&e.options.multiDrag&&!~_e.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),C(t,e.options.selectedClass,!0),_e.push(t))},deselect:function(t){var e=t.parentNode[H],a=_e.indexOf(t);e&&e.options.multiDrag&&~a&&(C(t,e.options.selectedClass,!1),_e.splice(a,1))}},eventProperties:function(){var t=this,e=[],a=[];return _e.forEach((function(n){var i;e.push({multiDragElement:n,index:n.sortableIndex}),i=ve&&n!==de?-1:ve?E(n,":not(."+t.options.selectedClass+")"):E(n),a.push({multiDragElement:n,index:i})})),{items:r(_e),clones:[].concat(he),oldIndicies:e,newIndicies:a}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){he.forEach((function(a,n){var i=e.children[a.sortableIndex+(t?Number(n):0)];i?e.insertBefore(a,i):e.appendChild(a)}))}function we(){_e.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Lt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):e.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ae(),ee(),clearTimeout(x),x=void 0},nulling:function(){Xt=Zt=Yt=te=Gt=Jt=Qt=null,Kt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var a=this,n=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,i);if(Xt=t,e||d||u||m){ie(t,this.options,o,e);var l=O(o,!0);!te||Gt&&n===Jt&&i===Qt||(Gt&&ae(),Gt=setInterval((function(){var o=O(document.elementFromPoint(n,i),!0);o!==l&&(l=o,ee()),ie(t,a.options,o,e)}),10),Jt=n,Qt=i)}else{if(!this.options.bubbleScroll||O(o,!0)===T())return void ee();ie(t,this.options,O(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Lt.mount(se,le);const xe=Lt}},e={};function a(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),a.nc=void 0,(()=>{"use strict";var t=a(2152),e=a.n(t);function n(t,e,a,n,i,o,l,s){var r,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=a,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),l?(r=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=r):i&&(r=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var u=c.render;c.render=function(t,e){return r.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,r):[r]}return{exports:t,options:c}}const i=n({name:"GetPro",data:function(){return{has_pro:window.ninja_table_admin.hasPro}},props:{text:{type:String,default:"Get Pro"},type:{type:String,default:"danger"},size:{type:String,default:"mini"}}},(function(){var t=this,e=t._self._c;return t.has_pro?t._e():e("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[e("el-button",{attrs:{type:t.type,size:t.size}},[t._v(t._s(t.$t(t.text)))])],1)}),[],!1,null,null,null).exports,o={name:"home",components:{GetPro:i},data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[],img_url:window.ninja_table_admin.img_url}},computed:{activeMenu:function(){return-1!=["home","help"].indexOf(this.$route.name)?this.$route.name:"import_tables"}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])},imageUrl:function(t){return this.img_url+t}},mounted:function(){this.setTopMenu()}};var l=a(3379),s=a.n(l),r=a(738),c={insert:"head",singleton:!1};s()(r.Z,c);r.Z.locals;const u=n(o,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_main_nav"},[e("span",{staticClass:"plugin-name"},[e("img",{staticStyle:{height:"36px"},attrs:{src:t.imageUrl("ninja_table.svg"),alt:"ninja-tables"}}),t._v(" "),t.has_pro?e("span",{staticClass:"pro"},[t._v(t._s(t.$t("Pro")))]):t._e()]),t._v(" "),e("el-menu",{staticStyle:{float:"right"},attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[t._l(t.topMenus,(function(a){return e("el-menu-item",{key:a.route,attrs:{index:a.route,route:{name:a.route}}},[e("i",{class:a.icon_class}),t._v(" "),e("span",[t._v("\n "+t._s(a.title)+"\n ")])])})),t._v(" "),t.has_pro?t._e():e("el-menu-item",{attrs:{index:"buy-pro"}},[e("get-pro",{attrs:{size:"small"}})],1)],2)],1),t._v(" "),e("router-view",{attrs:{"has-pro":t.has_pro}})],1)}),[],!1,null,null,null).exports;const d={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}};var p=a(4189),m={insert:"head",singleton:!1};s()(p.Z,m);p.Z.locals;const h=n(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_intro_welcome"},[e("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),e("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),e("div",{staticClass:"ninja_actions"},[e("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),e("router-link",{attrs:{to:{name:"import_tables"}}},[e("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),e("hr"),t._v(" "),t._m(0)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_docs"},[e("h4",[t._v("Ninja Tables Documentation:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/use-case/?ninja_intro=1"}},[t._v("\n Demo and Basic Settings\n ")])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/setting-up-a-table/?ninja_intro=1"}},[t._v("\n Setting Up a Table\n ")])]),t._v(" "),e("li",[e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/configure-responsive-breakdowns-for-table/?ninja_intro=1"}},[t._v("\n Make Your Table Looks Great on All Devices\n ")])])])])}],!1,null,null,null).exports;const f=n({name:"NinjaPagination",props:["paginate"],data:function(){return{pageNumberInput:1}},methods:{goToPage:function(t){t>=1&&t<=this.paginate.last_page?(this.$emit("change_page",t),this.pageNumberInput=t):alert("invalid page number")}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tablenav-pages"},[t.paginate.total?e("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),e("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[e("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),e("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pageNumberInput,expression:"pageNumberInput"}],staticClass:"current-page",attrs:{id:"current-page-selector",type:"text",size:"2","aria-describedby":"table-paging"},domProps:{value:t.pageNumberInput},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.goToPage(t.pageNumberInput))},input:function(e){e.target.composing||(t.pageNumberInput=e.target.value)}}}),t._v("\n "+t._s(t.$t("of"))+"\n "),e("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),e("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[e("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),e("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[e("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),e("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])}),[],!1,null,null,null).exports,v={name:"Home",components:{GetPro:i,ninja_pagination:f},props:["searchAction","searchString"],watch:{searchAction:function(){this.paginate.current_page=1,this.fetchTables()}},data:function(){return{loading:!1,bulkAction:-1,selectAll:0,checkedItems:[],pageLoading:!1,items:[],paginate:{total:0,current_page:1,last_page:1,per_page:parseInt(this.getFromStore("tables_per_page",20))},hasPro:!!window.ninja_table_admin.hasPro,img_url_path:window.ninja_table_admin.img_url,is_installed:window.ninja_table_admin.isInstalled,orderBy:"date",order:"DESC"}},methods:{fetchTables:function(){var t=this;this.pageLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"get-all-tables",per_page:this.paginate.per_page,page:this.paginate.current_page,search:this.searchString,orderBy:this.orderBy,order:this.order};this.$get(e).done((function(e){t.items=e.data,t.paginate.total=e.total,t.paginate.current_page=e.current_page,t.paginate.last_page=e.last_page,t.pageLoading=!1,e.total&&t.$emit("total_table",e.total)})).fail((function(t){vueNotification.error("Something went wrong, please try again.")}))},goToPage:function(t){this.paginate.current_page=t,this.fetchTables()},handleSizeChange:function(t){this.paginate.per_page=t,this.setStoreData("tables_per_page",t),this.fetchTables()},confirmDeleteTable:function(t){var e=this;this.$confirm("Are you sure, You want to delete this table?","Warning",{confirmButtonText:"Yes, Delete",cancelButtonText:"Cancel",type:"warning"}).then((function(){e.deleteTable(t)})).catch((function(){e.$message({type:"info",message:"Delete canceled"})}))},deleteTable:function(t){var e=this,a={action:"ninja_tables_ajax_actions",target_action:"delete-a-table",table_id:t};this.$post(a).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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={action:"ninja_tables_ajax_actions",target_action:"duplicate-table",tableId:t};this.$post(n).then((function(t){e.$message({type:"success",message:t.data.message}),"drag_and_drop"===a?e.$router.push({name:"table_builder_edit_table",params:{table_id:t.data.table_id}}):e.$router.push({name:"data_items",params:{table_id:t.data.table_id}})})).fail((function(t){alert(t.responseJSON.data.message)}))},shouldBeVisible:function(t){return"fluent-form"!=t.dataSourceType||window.ninja_table_admin.hasFluentForm},dataSourceType:function(t){var e=t.dataSourceType||"Default";return"raw_sql"==e?"SQL":e=e.indexOf("google")>-1?"Google SpreadSheet":e},handleTableSort:function(t){this.orderBy=t.prop,this.order="ascending"===t.order?"ASC":"DESC",this.fetchTables()}},mounted:function(){this.fetchTables(),this.clipboard()}};var b=a(5867),g={insert:"head",singleton:!1};s()(b.Z,g);b.Z.locals;const y=n(v,(function(){var t=this,e=t._self._c;return e("div",[e("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:t.pageLoading,expression:"pageLoading",modifiers:{body:!0}}],staticClass:"ninja-tables compact",staticStyle:{},attrs:{data:t.items,border:"","aria-label":"all-tables"},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleTableSort}},[e("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(a){return["drag_and_drop"===a.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(a.row.ID)+"\n ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(a.row.ID)+"\n ")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("strong",[t.shouldBeVisible(a.row)?["drag_and_drop"===a.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t(a.row.post_title))+"\n ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t(a.row.post_title))+"\n ")])]:[t._v("\n "+t._s(a.row.post_title)+"\n ")],t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=a.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(a.row.post_status)+")\n ")])],2),t._v(" "),e("div",{staticClass:"row-actions"},[t.shouldBeVisible(a.row)?e("span",{staticClass:"row-edit"},["drag_and_drop"===a.row.dataSourceType?e("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]):e("router-link",{attrs:{to:{name:"data_items",params:{table_id:a.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(a.row)?e("span",{staticClass:"row-preview"},[e("a",{attrs:{rel:"noopener",href:a.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(a.row)?e("span",{staticClass:"row-duplicate"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.duplicate(a.row.ID,a.row.dataSourceType)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(a.row)&&a.row.fluentfrom_url?e("span",{staticClass:"row-duplicate"},[e("a",{attrs:{href:a.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),e("span",{staticClass:"row-delete"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.confirmDeleteTable(a.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(a.row.post_content)}})]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(a){return["drag_and_drop"===a.row.dataSourceType?e("strong",[t._v(t._s(t.$t("Drag & Drop Table")))]):e("strong",[t._v(t._s(t.dataSourceType(a.row)))]),t._v(" "),a.row.remoteURL?[e("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:a.row.remoteURL,placement:"top-start"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Source of data")]),t._v(" "),e("p",[t._v(t._s(a.row.remoteURL))])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])]:t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},["drag_and_drop"===a.row.dataSourceType?e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_table_builder id="'.concat(a.row.ID,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_table_builder id="'+t._s(a.row.ID)+'"]\n ')]):e("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'.concat(a.row.ID,'"]')}},[e("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(a.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),e("div",{staticClass:"pull-right"},[e("el-pagination",{attrs:{"current-page":t.paginate.current_page,"page-sizes":[10,20,50,100],"page-size":t.paginate.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.paginate.total},on:{"size-change":t.handleSizeChange,"current-change":t.goToPage,"update:currentPage":function(e){return t.$set(t.paginate,"current_page",e)},"update:current-page":function(e){return t.$set(t.paginate,"current_page",e)}}})],1),t._v(" "),!t.loading&&!t.is_installed&&t.items.length>2&&!t.hasPro?e("div",[e("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[e("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?e("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[e("hr"),t._v(" "),e("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),e("get-pro")],1):t._e()],1)}),[],!1,null,null,null).exports;const w={name:"wp_editor",props:{editor_id:{type:String,default:function(){return"wp_editor_"+Date.now()}},value:{type:String,default:function(){return""}}},data:function(){return{hasWpEditor:!!window.wp.editor,plain_content:this.value,has_pro:!!window.ninja_table_admin.hasPro}},computed:{ninja_editor_id:function(){var t=this.slugify(this.editor_id);return t.match(/^[A-Za-z]+$/)||(t="editor_english_"+Math.floor(1001*Math.random())+"_"+Math.floor(101*Math.random())),"ninja_editor_"+this.slugify(t)}},watch:{plain_content:function(){this.$emit("input",this.plain_content)},value:function(){this.value||this.reloadEditor()}},methods:{initEditor:function(){if(this.hasWpEditor){wp.editor.remove(this.ninja_editor_id);var t=this;wp.editor.initialize(this.ninja_editor_id,{mediaButtons:this.has_pro,mode:"none",tinymce:{toolbar1:"formatselect,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,underline,forecolor,codeformat,removeformat,undo,redo",valid_elements:"*[*]",forced_root_block:"",setup:function(e){e.on("change",(function(e,a){t.changeContentEvent()}))}},quicktags:!0}),jQuery("#"+this.ninja_editor_id).on("change",(function(e){t.changeContentEvent()}))}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},reloadEditor:function(){wp.editor.remove(this.ninja_editor_id),jQuery("#"+this.ninja_editor_id).val(""),this.initEditor()},changeContentEvent:function(){var t=wp.editor.getContent(this.ninja_editor_id);this.$emit("input",t)},showPro:function(){window.ninjaTableBus.$emit("show_pro_popup",1)}},mounted:function(){this.initEditor()},beforeDestroy:function(){}};var x=a(2151),k={insert:"head",singleton:!1};s()(x.Z,k);x.Z.locals;const C=n(w,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():e("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[e("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),e("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plain_content,expression:"plain_content"}],staticClass:"wp_vue_editor wp_vue_editor_plain",domProps:{value:t.plain_content},on:{input:function(e){e.target.composing||(t.plain_content=e.target.value)}}})]],2)}),[function(){var t=this._self._c;return t("p",{staticStyle:{"font-style":"italic"}},[t("small",[this._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}],!1,null,null,null).exports;function S(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return j(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function T(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function D(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const I={name:"WPPostConditions",props:["config","fields","conditions","allPostTypes","postStatuses","selected_post_types"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[],common_operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"}],uncommon_operators:[{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"}],other_operators:[{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}],query_limit:0,orderByFields:["ID","post_date","post_author","post_title","post_status","menu_order","comment_count"],authors:[]}},watch:{selected_post_types:function(){this.getPostAuthors()}},methods:{addCondition:function(t){this.conditions.push(function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?T(Object(a),!0).forEach((function(e){D(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):T(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},this.default_condition))},removeCondition:function(t,e){this.conditions.splice(t,1)},setOperators:function(t,e,a){e.operators=S(this.common_operators),"comment_count"==t&&e.operators.map((function(t,a){"!="==t.key&&e.operators.splice(a,1)})),-1!=["ID","comment_count","post_date","post_modified"].indexOf(t)?e.operators=S(e.operators.concat(this.other_operators)):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=S(this.uncommon_operators)),this.setValueField(t,e,a)},setValueField:function(t,e,a){if("post_status"==t)e.value=a||[],e.is_selectable="true",e.selectableOptions=this.postStatuses;else if("post_author"==t)e.value=a||[],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=a||[],e.is_selectable="true";var n=S(t.split(".")),i=n[0],o=n[1],l=this.allPostTypes[i].taxonomies[o];e.selectableOptions=l.map((function(t){return{key:t.slug,label:t.name}}))}else e.value=a||null,e.is_selectable="false",e.selectableOptions=[]},isDateField:function(t){return-1!=["post_date","post_modified"].indexOf(t.field)},isSelectable:function(t){return"true"==t.is_selectable},getPostAuthors:function(){var t=this;return this.$getJSON({action:"ninja_tables_ajax_actions",target_action:"get_wp_post_authors",post_types:this.selected_post_types}).then((function(e){t.authors=e.data.authors}))}},mounted:function(){var t=this;this.getPostAuthors().then((function(){_.each(t.conditions,(function(e){t.setOperators(e.field,e,e.value)}))}))}};var P=a(6618),A={insert:"head",singleton:!1};s()(P.Z,A);P.Z.locals;const E=n(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-post-conditions"},[e("el-row",[e("el-col",{attrs:{md:21}},[e("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,(function(a,n){return[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},on:{change:function(e){return t.setOperators(e,a)}},model:{value:a.field,callback:function(e){t.$set(a,"field",e)},expression:"condition.field"}},t._l(t.fields,(function(t){return e("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},model:{value:a.operator,callback:function(e){t.$set(a,"operator",e)},expression:"condition.operator"}},t._l(a.operators,(function(t){return e("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(a)||t.isDateField(a)?!t.isSelectable(a)&&t.isDateField(a)?e("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}}):t.isSelectable(a)?e("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}},t._l(a.selectableOptions,(function(t){return e("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1):t._e():e("el-input",{attrs:{placeholder:"Value"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(n,e)}}})],1)],1)]})),t._v(" "),t.config&&t.config.table.query_extra?e("div",{staticClass:"ninja_post_query_limit"},[e("div",{staticClass:"ninja_form_group"},[e("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Query Limit")]),t._v(" "),e("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-input",{attrs:{type:"number",size:"small"},model:{value:t.config.table.query_extra.query_limit,callback:function(e){t.$set(t.config.table.query_extra,"query_limit",e)},expression:"config.table.query_extra.query_limit"}}),t._v(" "),t._m(0)],1),t._v(" "),e("div",{staticClass:"ninja_form_group"},[e("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Order By Column")]),t._v(" "),e("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by_column,callback:function(e){t.$set(t.config.table.query_extra,"order_by_column",e)},expression:"config.table.query_extra.order_by_column"}},t._l(t.orderByFields,(function(t){return e("el-option",{key:t,attrs:{value:t,label:t}})})),1)],1),t._v(" "),e("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[e("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),e("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("h3",[t._v("Order By Type")]),t._v(" "),e("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),e("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),e("el-select",{attrs:{size:"mini"},model:{value:t.config.table.query_extra.order_by,callback:function(e){t.$set(t.config.table.query_extra,"order_by",e)},expression:"config.table.query_extra.order_by"}},[e("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),e("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)}),[function(){var t=this._self._c;return t("p",[t("small",[this._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}],!1,null,null,null).exports;function N(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return O(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function M(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function z(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const B={name:"WPPostMetaQuery",props:["metas"],data:function(){return{default_condition:{field:null,operator:null,value:null,operators:[],selectableOptions:[],is_selectable:"false"},operators:[{key:"=",value:"Equal To"},{key:"!=",value:"Not Equal To"},{key:"IN",value:"In"},{key:"NOT IN",value:"Not In"},{key:">",value:"Greater Than"},{key:">=",value:"Greater Than Or Equal To"},{key:"<",value:"Less Than"},{key:"<=",value:"Less Than Or Equal To"}]}},methods:{addCondition:function(t){this.metas.push(function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?M(Object(a),!0).forEach((function(e){z(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):M(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},this.default_condition))},removeCondition:function(t,e){this.metas.splice(t,1)},setOperators:function(t,e){e.operators=N(this.operators),this.setValueField(t,e)},setValueField:function(t,e){e.value=null,e.is_selectable="false",e.selectableOptions=[]},shouldShowInfo:function(t){return-1!==["IN","NOT IN"].indexOf(t)}}};var F=a(4253),L={insert:"head",singleton:!1};s()(F.Z,L);F.Z.locals;const R=n(B,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wp-post-conditions"},[e("el-row",[e("el-col",{attrs:{md:21}},[e("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.metas,(function(a,n){return[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{md:7,sm:7}},[e("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(e){return t.setOperators(e,a)}},model:{value:a.field,callback:function(e){t.$set(a,"field",e)},expression:"condition.field"}})],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-select",{attrs:{placeholder:"Select"},model:{value:a.operator,callback:function(e){t.$set(a,"operator",e)},expression:"condition.operator"}},t._l(a.operators,(function(t){return e("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),e("el-col",{attrs:{md:7,sm:7}},[e("el-input",{attrs:{placeholder:"Value"},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(a.operator)?[e("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),e("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[e("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(e){return t.removeCondition(n,e)}}})],1)],1)]}))],2)}),[],!1,null,null,null).exports;const H={name:"PremiumNotice",components:{GetPro:i},props:["highlight"]};var W=a(7100),q={insert:"head",singleton:!1};s()(W.Z,q);W.Z.locals;const V=n(H,(function(){var t=this,e=t._self._c;return e("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[e("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?e("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),e("b",[t._v("unlimited customizations")]),t._v(",\n "),e("b",[t._v("data filters")]),t._v(",\n "),e("b",[t._v("professional looks")]),t._v(",\n "),e("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),e("get-pro")],1)}),[],!1,null,"c52d6be2",null).exports;const U=n({name:"UpgradeNotice"},(function(){var t=this._self._c;return t("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[t("p",[this._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.0 or later\n ")])])}),[],!1,null,null,null).exports,Y={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":E,PremiumNotice:V,UpgradeNotice:U,WpPostMetaQuery:R},data:function(){return{loading:!1,saving:!1,title:null,tableId:null,postStatuses:[],all_types:[],all_fields:[],post_types:[],selected_post_types:[],post_types_fields:[],selected_post_types_fields:[],conditions_section:"conditions",conditions:[],meta_query:"meta",metas:[],active_step:0,query_extra:{},activated_features:window.ninja_table_admin.activated_features,hasPro:!!window.ninja_table_admin.hasPro,queryable_fields:["ID","post_author","comment_count","post_date","post_modified","post_status"]}},computed:{query_able_post_types_fields:function(){var t=this;return this.post_types_fields.filter((function(e){return-1!=t.queryable_fields.indexOf(e.key)||-1!=e.key.indexOf(".")}))}},methods:{nextStep:function(){var t="";if(this.title||(t+=" The title field is required."),this.selected_post_types.length||(t+=" At least select one post type."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1&&(this.active_step=0)},handlePostTypeChange:function(t,e,a){var n=this,i=[];this.selected_post_types.forEach((function(t){n.all_types[t]&&n.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,a){var n=e.split(".");n.length>1&&-1==t.selected_post_types.indexOf(n[0])&&t.selected_post_types_fields.splice(a,1)}))},save:function(){var t=this;this.saving=!0;var e={post_types:this.selected_post_types,columns:this.selected_post_types_fields,where:this.conditions.map((function(t){return Object.assign({},t)})),metas:this.metas.map((function(t){return Object.assign({},t)})),query_extra:!(!this.config||!this.config.table)&&this.config.table.query_extra};_.forEach(e.where,(function(t){delete t.selectableOptions})),this.$post({action:"ninja_table_wp-posts_create_table",post_title:this.title,tableId:this.tableId,data:e}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,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,a){var n="";"private"===a.status&&(n=" (private)"),t.post_types.push({key:e,label:e+n})})),t.all_fields=e.data.post_fields.map((function(t){return{key:t,label:t}})),t.config&&(t.tableId=t.config.table.ID,t.conditions=t.config.table.whereConditions||[],t.metas=t.config.table.metaQuery||[],t.selected_post_types=t.config.table.post_types,t.selected_post_types_fields=t.config.columns.map((function(t){return t.original_name})),t.handlePostTypeChange())})).fail((function(t){console.log(t)})).always((function(){t.loading=!1}))}},mounted:function(){this.getPostTypes()}};var Z=a(5443),J={insert:"head",singleton:!1};s()(Z.Z,J);Z.Z.locals;const Q=n(Y,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?e("div",[t.hasPLainLayout?[e("el-row",[e("el-col",{staticClass:"table-rows",attrs:{md:12}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1),t._v(" "),e("el-col",{staticClass:"table-rows",attrs:{md:12}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)],1),t._v(" "),t.loading?t._e():e("el-row",[e("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),e("wp-post-conditions",{attrs:{config:t.config,selected_post_types:t.selected_post_types,postStatuses:t.postStatuses,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}})],2)],1),t._v(" "),e("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[e("el-collapse-item",{attrs:{name:"1"}},[e("template",{slot:"title"},[e("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),e("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),e("el-row",[e("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",size:"small",loading:t.saving},on:{click:t.save}},[t._v("Update\n ")])],1)]:t._e(),t._v(" "),t.hasPLainLayout?t._e():[e("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),e("el-steps",{attrs:{active:t.active_step,"align-center":""}},[e("el-step",{attrs:{title:"Step 1"}}),t._v(" "),e("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[e("el-row",{staticStyle:{"margin-top":"20px"}},[e("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types,titles:["All Types","Selected Types"]},on:{change:t.handlePostTypeChange},model:{value:t.selected_post_types,callback:function(e){t.selected_post_types=e},expression:"selected_post_types"}})],1)])]:t._e(),t._v(" "),1==t.active_step?[e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("el-transfer",{staticStyle:{"text-align":"left",display:"block"},attrs:{data:t.post_types_fields,titles:["All Properties","Selected Properties"]},model:{value:t.selected_post_types_fields,callback:function(e){t.selected_post_types_fields=e},expression:"selected_post_types_fields"}})],1)]),t._v(" "),e("el-row",{staticStyle:{"margin-top":"20px"}},[e("div",[e("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[e("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?e("wp-post-conditions",{attrs:{postStatuses:t.postStatuses,selected_post_types:t.selected_post_types,conditions:t.conditions,allPostTypes:t.all_types,fields:t.query_able_post_types_fields}}):t._e()],1)],1)],1)])]:t._e(),t._v(" "),e("el-row",[e("el-col",{attrs:{md:12}},[e("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),e("el-col",{attrs:{md:12}},[t.active_step>0?e("el-button",{staticStyle:{float:"right","margin-top":"12px"},attrs:{type:"success",disabled:!t.activated_features.wp_posts_table,loading:t.saving},on:{click:t.save}},[t._v("Save\n ")]):t._e()],1)],1)]],2):[e("upgrade-notice")]:[e("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"ninja_subtitle"},[t._v("\n Displays website content in a searchable, sortable with Ninja Tables. It supports custom posts,\n pages, &\n custom post types. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/wp-posts-table/"}},[t._v("Learn more\n about this module")])])}],!1,null,null,null).exports;var X=a(6073),G=a.n(X);const K=n({name:"woo_conditions",props:["query_selections","query_conditions"],data:function(){return{query_terms:[],loading:!1,product_orders:{post_title:"Product Title",date:"Date",menu_order:"Menu Order",average_rating:"Average Rating",price:"price",popularity:"Popularity (Sales)",random:"Random"}}},methods:{getWooSettings:function(){var t=this;this.loading=!0,this.$get({action:"ninja_table_woocommerece_get_options"}).then((function(e){var a=e.data.query_terms;G()(a,(function(e,a){t.query_selections[a]||t.$set(t.query_selections,a,[])})),t.query_terms=a})).fail((function(t){})).always((function(){t.loading=!1}))}},mounted:function(){this.getWooSettings()}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,(function(a,n){return e("div",{staticClass:"nt_each_selection"},[e("div",{staticClass:"nt_query_header"},[e("h3",[t._v(t._s(a.title))]),t._v(" "),e("p",[t._v(t._s(a.description))])]),t._v(" "),e("div",{staticClass:"nt_query_body"},[e("el-checkbox-group",{model:{value:t.query_selections[n],callback:function(e){t.$set(t.query_selections,n,e)},expression:"query_selections[term_name]"}},t._l(a.terms,(function(a){return e("el-checkbox",{key:a.slug,attrs:{label:a.slug}},[t._v(t._s(a.name)+" ("+t._s(a.count)+")\n ")])})),1)],1)])})),t._v(" "),e("div",{staticClass:"nt_each_selection"},[e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.query_conditions.hide_out_of_stock,callback:function(e){t.$set(t.query_conditions,"hide_out_of_stock",e)},expression:"query_conditions.hide_out_of_stock"}},[t._v("\n Hide "),e("b",[t._v("out of stocks")]),t._v(" items\n ")])],1),t._v(" "),e("div",{staticClass:"nt_each_selection"},[e("label",[t._v("\n Initial Order By\n "),e("el-select",{attrs:{size:"mini",placeholder:"Order By"},model:{value:t.query_conditions.order_by,callback:function(e){t.$set(t.query_conditions,"order_by",e)},expression:"query_conditions.order_by"}},t._l(t.product_orders,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1),t._v(" "),e("el-select",{directives:[{name:"show",rawName:"v-show",value:t.query_conditions.order_by&&"random"!=t.query_conditions.order_by,expression:"query_conditions.order_by && query_conditions.order_by != 'random'"}],attrs:{size:"mini",placeholder:"Order By Type"},model:{value:t.query_conditions.order_by_type,callback:function(e){t.$set(t.query_conditions,"order_by_type",e)},expression:"query_conditions.order_by_type"}},[e("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),e("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)}),[],!1,null,null,null).exports;const tt=n({name:"woo_product_table",components:{WooNav:K},data:function(){return{loading:!1,saving:!1,query_selections:{},post_title:"",query_conditions:{}}},props:{tableCreated:{type:Function}},methods:{save:function(){var t=this;this.post_title?(this.saving=!0,this.$post({action:"ninja_table_woocommerece_create_table",post_title:this.post_title,query_selections:this.query_selections,query_conditions:this.query_conditions}).then((function(e){t.$message({showClose:!0,message:e.data.message,type:"success"}),t.tableCreated(e.data.table_id)})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"})})).always((function(e){return t.saving=!1}))):this.$message({showClose:!0,message:"Please Provide a Table Title",type:"error"})}},mounted:function(){}},(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),e("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),e("div",{staticClass:"form-group"},[e("el-button",{attrs:{loading:t.saving,type:"primary",size:"small"},on:{click:function(e){return t.save()}}},[t._v("\n Create Products Table\n ")])],1)],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"nt_module_header"},[e("h3",[t._v("\n Construct Table from Your WooCommerce Products\n ")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Displays products content in a searchable, sortable with Ninja Tables. "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/woocommerce-product-table/"}},[t._v("Learn more\n about wocommerece integration")])])])}],!1,null,null,null).exports;const et={name:"FluentForm",props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object}},data:function(){return{installing:!1,fetching:!1,forms:[],fields:[],btnLoading:!1,post_title:"",form:{id:null,fields:[],entry_status:"all",entry_limit:1e3},hasFluentForm:!!window.ninja_table_admin.hasFluentForm,isFluentFormUpdated:!!window.ninja_table_admin.isFluentFormUpdated}},methods:{fetchForms:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_get-fluentform-forms"}).then((function(e){return t.forms=e.data})).fail((function(t){return console.log(t)})).always((function(){t.fetching=!1}))},handleFormSelectionChange:function(t){var e=this;this.$get({form_Id:t,action:"ninja-tables_get-fluentform-fields"}).then((function(t){e.fields=t.data,e.editing&&(e.form.entry_limit=e.config.table.entry_limit,e.form.entry_status=e.config.table.entry_status,e.$nextTick((function(){var t=e.config.columns.map((function(t){return t.original_name}));e.fields.filter((function(e){return-1!=t.indexOf(e.name)})).forEach((function(t){e.$refs.rowSelectableTable.toggleRowSelection(t)}))})))})).fail((function(t){})).always((function(){}))},handleFieldsSelectionChange:function(t){this.form.fields=t},save:function(){var t=this;this.btnLoading=!0,this.config&&this.config.table.current_user_entry_only&&(this.form.current_user_entry_only=this.config.table.current_user_entry_only),this.$post({action:"ninja_tables_save_fluentform_table",post_title:this.post_title,form:this.form,table_Id:this.config&&this.config.table.ID||null}).then((function(e){return t.tableCreated(e.data.table_id)})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"})})).always((function(e){return t.btnLoading=!1}))},installFluentFrom:function(){var t=this;this.installing=!0,this.$post({action:"ninja_tables_ajax_actions",target_action:"install_fluent_form"}).then((function(e){t.$message.success(e.data.message),e.data.redirect_url&&(window.location.href=e.data.redirect_url)})).fail((function(e){t.$message.error(e.responseJSON.message)})).always((function(){t.installing=!1}))}},mounted:function(){this.hasFluentForm&&(this.editing?this.handleFormSelectionChange(this.form.id=this.config.table.fluentFormFormId):this.fetchForms())}};var at=a(5855),nt={insert:"head",singleton:!1};s()(at.Z,nt);at.Z.locals;const it=n(et,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():e("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():e("p",{staticClass:"ninja_subtitle"},[t._v("\n Prepare your table from your existing WP Fluent Forms submissions. It can be used to easily showcase\n your form submissions.\n "),e("a",{attrs:{target:"_blank",href:"https://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():e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),t.editing?t._e():e("div",{staticClass:"form-group"},[e("el-select",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"Select a Form"},on:{change:t.handleFormSelectionChange},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}},t._l(t.forms,(function(t){return e("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})})),1)],1),t._v(" "),t.form.id?e("div",{staticClass:"form-group"},[e("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("strong",[t._v("Options (Optional)")]),t._v(" "),e("hr"),t._v(" "),e("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[e("el-col",{attrs:{md:12}},[e("el-row",[e("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[e("strong",[e("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[e("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),e("el-col",{attrs:{md:18}},[e("el-input",{model:{value:t.form.entry_limit,callback:function(e){t.$set(t.form,"entry_limit",e)},expression:"form.entry_limit"}})],1)],1)],1),t._v(" "),e("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[e("el-row",[e("el-col",{attrs:{md:6}},[e("strong",[e("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[e("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),e("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[e("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[e("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),e("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),e("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[e("br"),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.config.table.current_user_entry_only,callback:function(e){t.$set(t.config.table,"current_user_entry_only",e)},expression:"config.table.current_user_entry_only"}},[t._v("Show current user submissions only at frontend")])]:t._e()],2),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("el-button",{staticStyle:{"margin-top":"12px",float:"right"},attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.save}},[t._v(t._s(t.editing?t.$t("Update"):t.$t("Save"))+"\n ")])],1)]:t.hasFluentForm?[e("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[t._v("To use this feature your WP Fluent Form need to be updated. Please update WP Fluent From from plugins\n screen")])]),t._v(" "),e("h4",[t._v("See the form in action:")]),t._v(" "),e("br"),t._v(" "),t._m(0)]:e("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),e("div",[e("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?e("span",[t._v("Installing WP Fluent From...")]):e("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?e("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),e("h4",[t._v("See the form in action:")]),t._v(" "),e("br"),t._v(" "),t._m(2)])],2)}),[function(){var t=this._self._c;return t("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[t("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this,e=t._self._c;return e("p",[e("a",{attrs:{href:"https://wordpress.org/plugins/fluentform",target:"_blank"}},[t._v("WP Fluent Form")]),t._v(" is a WordPress\n Contact Form plugin packed with all the premium features you would need to create\n a responsive, customizable, drag and drop form. Using this module, You can easily show your form entries\n in Ninja Tables.\n ")])},function(){var t=this._self._c;return t("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[t("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,null,null).exports;function ot(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function lt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(a),!0).forEach((function(e){st(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ot(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function st(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const rt=n({name:"Remote-Data-Source",components:{PremiumNotice:V,UpgradeNotice:U},props:{columns:{type:Array},type:{type:String,required:!0},tableCreated:{type:Function,required:!0},hasPro:{required:!0},table:{type:Object,default:function(){return{post_title:"",remote_url:"",fields:[],table_id:null}}},editing:{type:Boolean,default:!1},activated_features:{type:Object,default:function(){return{}}}},data:function(){return{fields:[],active_step:0,saving:!1,fetching:!1}},methods:{nextStep:function(){var t="";if(this.table.post_title||(t+=" The title field is required."),this.table.remote_url||(t+=" The url field is required."),t=jQuery.trim(t))return this.active_step=0,void this.$message({showClose:!0,message:t,type:"error"});this.active_step++>=1?this.active_step=0:this.fatchRemoteData()},fatchRemoteData:function(){var t=this;this.fetching=!0;var e=lt(lt({action:"ninja_table_external_data_source_create"},this.table),{},{type:this.type,get_headers_only:!0});delete e.custom_css,this.$post(e).then((function(e){var a=[];if(jQuery.each(e.data,(function(t){return a.push({name:t})})),t.fields=a,t.editing){var n=t.columns.map((function(t){return t.original_name}));t.$nextTick((function(){t.fields.filter((function(t){return-1!=n.indexOf(t.name)})).forEach((function(e){t.$refs.rowSelectableTable.toggleRowSelection(e)}))}))}})).fail((function(e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"})})).always((function(e){return t.fetching=!1}))},handleFieldsSelectionChange:function(t){this.table.fields=t},save:function(t){var e=this;this.saving=!0;var a=lt(lt({},this.table),{},{type:this.type,action:"ninja_table_external_data_source_create"});delete a.custom_css,this.$post(a).then((function(t){var a=t.data;return e.tableCreated(a.ID)})).fail((function(t){var a="",n=t.responseJSON.data.message;for(var i in n)a+=" "+n[i];e.$message({showClose:!0,message:a,type:"error"})})).always((function(){return e.saving=!1}))}},created:function(){this.editing&&(this.table.table_id=this.table.ID,this.fatchRemoteData())}},(function(){var t=this,e=t._self._c;return e("div",[t.editing?[e("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:e("div",{staticClass:"ninja_modal-body"},[e("el-steps",{attrs:{active:t.active_step,"align-center":""}},[e("el-step",{attrs:{title:"Step 1"}}),t._v(" "),e("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[e("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[e("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.table.remote_url,expression:"table.remote_url"}],staticClass:"form-control",attrs:{id:"remote_url",type:"text",placeholder:"Enter your source URL",disabled:!t.activated_features.external_data_source},domProps:{value:t.table.remote_url},on:{input:function(e){e.target.composing||t.$set(t.table,"remote_url",e.target.value)}}})])]:[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[e("UpgradeNotice")]:[e("premium-notice")],t._v(" "),e("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():e("el-row",[e("el-col",{attrs:{md:12}},[e("el-button",{staticStyle:{float:"left"},attrs:{type:"primary",size:"small"},on:{click:t.nextStep}},[t._v("\n "+t._s(t.active_step>0?"Prev":"Next")+"\n ")])],1),t._v(" "),t.active_step>0?e("el-col",{attrs:{md:12}},[e("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"small",loading:t.saving,disabled:!t.activated_features.external_data_source},on:{click:t.save}},[t._v(t._s(t.$t("Save"))+"\n ")])],1):t._e()],1)],1),t._v(" "),t.editing?e("div",{staticStyle:{"margin-top":"15px"}},[e("el-input",{attrs:{placeholder:"Remote URL..."},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fatchRemoteData.apply(null,arguments)}},model:{value:t.table.remoteURL,callback:function(e){t.$set(t.table,"remoteURL",e)},expression:"table.remoteURL"}},[e("el-button",{attrs:{slot:"prepend",loading:t.fetching,size:"small",plain:""},on:{click:t.fatchRemoteData},slot:"prepend"},[t._v(t._s(t.$t("Fetch Columns"))+"\n ")]),t._v(" "),e("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:"",type:"primary"},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your Google Sheets data changes it will be automatically reflected here. You won't have\n to do a thing. Please provide the publishable public URL of your google sheet.\n "),e("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/construct-table-from-google-sheets/"}},[t._v("View\n Documentation Here")])])}],!1,null,null,null).exports;const ct={name:"ImportTable",data:function(){return{imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables"),dragAndDrop:this.$t("JSON/CSV - Exported From Drag & Drop Tables")},format:"csv"},do_unicode:"no",errors:[],btnLoading:!1}},methods:{clear:function(){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 a=new FormData;a.append("format",this.imports.format),a.append("file",e),a.append("action","ninja_tables_ajax_actions"),a.append("target_action","import-table"),a.append("do_unicode",this.do_unicode),a.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:a,type:"POST",contentType:!1,processData:!1,success:function(e){t.$message({showClose:!0,message:e.message?e.message:t.$t("Successfully added a table."),type:"success"}),"dragAndDrop"===t.imports.format?t.$router.push({name:"table_builder_edit_table",params:{table_id:e.data.id}}):e.tableId&&t.$router.push({name:"data_items",params:{table_id:e.tableId}})},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}}};var ut=a(9071),dt={insert:"head",singleton:!1};s()(ut.Z,dt);ut.Z.locals;const pt=n(ct,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"ninja_modal-body"},[e("h3",[t._v("Import Table")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),e("div",{staticClass:"form"},[e("div",{staticClass:"form-group"},["file"===t.imports.source?[e("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),e("br"),t._v(" "),e("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[e("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),e("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.imports.format,expression:"imports.format"}],staticClass:"form-control",attrs:{id:"import_format"},on:{change:function(e){var a=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?a:a[0])}}},t._l(t.imports.formatOptions,(function(a,n){return e("option",{domProps:{value:n}},[t._v(t._s(t.$t(a))+"\n ")])})),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),e("el-checkbox",{attrs:{"true-label":"yes","false-label":"no"},model:{value:t.do_unicode,callback:function(e){t.do_unicode=e},expression:"do_unicode"}},[t._v("Convert to UTF-8 format ( Check this if your csv is non-unicode format )")])]:t._e(),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:"json"===t.imports.format||"ninjaJson"===t.imports.format,expression:"imports.format === 'json' || imports.format === 'ninjaJson'"}],staticClass:"hint"},[t._v("\n Check tutorial for importing Table from JSON file\n\n "),e("a",{attrs:{href:"https://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?e("div",{staticClass:"form_group ninja_errors"},[e("ul",t._l(t.errors,(function(a,n){return e("li",{key:n},[t._v("\n "+t._s(a.info)+"\n ")])})),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{size:"small",type:"primary",loading:t.btnLoading},on:{click:t.importTable}},[t._v("\n "+t._s(t.$t("Import"))+"\n ")])],1)])}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"hint"},[t._v("\n Check tutorial for importing data from CSV file\n "),e("a",{attrs:{href:"https://wpmanageninja.com/docs/ninja-tables/import-table-data-from-csv/?utm_source=ninja-tables",target:"_blank"}},[t._v("here")])])}],!1,null,"4a4d4c11",null).exports;const mt={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 a=e.getSession().getAnnotations();for(var n in t.editorError="",a)"error"==a[n].type&&(t.editorError=a[n].text)})),e.getSession().on("change",(function(){t.$emit("input",e.getSession().getValue())})),this.loading=!1}},mounted:function(){this.loadDependencies()}};var _t=a(1799),ht={insert:"head",singleton:!1};s()(_t.Z,ht);_t.Z.locals;const ft=n(mt,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[e("div",{staticClass:"ace_container"},[e("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),e("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.editorError,expression:"editorError"}],staticStyle:{"text-align":"right",display:"inline-block",color:"#ff7171",float:"right"}},[t._v(t._s(t.editorError))])])])}),[],!1,null,"ad6aab96",null).exports;const vt=n({name:"remote_sql_form",props:["connection"],data:function(){return{}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sql_connection_wrapper"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB Name\n "),e("el-input",{attrs:{size:"mini",placeholder:"DB Name"},model:{value:t.connection.db_name,callback:function(e){t.$set(t.connection,"db_name",e)},expression:"connection.db_name"}})],1)]),t._v(" "),e("div",{staticClass:"nt_row_2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB username\n "),e("el-input",{attrs:{size:"mini",placeholder:"DB User Name"},model:{value:t.connection.db_username,callback:function(e){t.$set(t.connection,"db_username",e)},expression:"connection.db_username"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB User Password\n "),e("el-input",{attrs:{size:"mini",type:"password",placeholder:"DB User Password"},model:{value:t.connection.db_userpassword,callback:function(e){t.$set(t.connection,"db_userpassword",e)},expression:"connection.db_userpassword"}})],1)])]),t._v(" "),e("div",{staticClass:"nt_row_2"},[e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB Host\n "),e("el-input",{attrs:{size:"mini",placeholder:"DB Host"},model:{value:t.connection.db_host,callback:function(e){t.$set(t.connection,"db_host",e)},expression:"connection.db_host"}})],1)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("\n DB Host Port\n "),e("el-input",{attrs:{size:"mini",type:"number",placeholder:"Default: 3306 "},model:{value:t.connection.db_host_port,callback:function(e){t.$set(t.connection,"db_host_port",e)},expression:"connection.db_host_port"}})],1)])])])}),[],!1,null,null,null).exports,bt={name:"CustomSQLQuery",components:{MySqlEditor:ft,PremiumNotice:V,RemoteSqlConnection:vt},props:{tableCreated:{type:Function,required:!0},editing:{type:Boolean},config:{type:Object},activated_features:{type:Object}},data:function(){return{installing:!1,fetching:!1,btnLoading:!1,post_title:"",connection_type:"local",remote_connection:{db_name:"",db_username:"",db_userpassword:"",db_host:"localhost",db_host_port:3306},sql:"",error_html:"",isActivated:this.activated_features.raw_sql_query,hasPro:!!ninja_table_admin.hasPro,has_sql_permission:"yes"==window.ninja_table_admin.has_sql_permission}},methods:{save:function(){var t=this;this.btnLoading=!0,this.error_html="",this.$post({action:"ninja_tables_save_raw_sql_table",post_title:this.post_title,sql:this.sql,connection_details:this.remote_connection,connection_type:this.connection_type,table_Id:this.config&&this.config.table.ID||null}).then((function(e){console.log(e),"string"!=typeof e&&e&&e.data&&e.data.table_id?t.tableCreated(e.data.table_id):t.error_html=e})).fail((function(e){if(console.log(e),"string"!=typeof e){var a="",n=e.responseJSON.data.message;for(var i in n)a+=" "+n[i];t.$message({showClose:!0,message:a,type:"error"}),e.responseJSON.data.error&&(t.error_html=e.responseJSON.data.error)}else t.error_html=res})).always((function(e){return t.btnLoading=!1}))}},mounted:function(){}};var gt=a(5814),yt={insert:"head",singleton:!1};s()(gt.Z,yt);gt.Z.locals;const wt=n(bt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja_modal-body"},[e("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),e("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[e("div",{staticClass:"ninja_modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.post_title,expression:"post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.post_title},on:{input:function(e){e.target.composing||(t.post_title=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),e("my-sql-editor",{attrs:{mode:"mysql",editor_id:"ninja_mysql_editor"},model:{value:t.sql,callback:function(e){t.sql=e},expression:"sql"}}),t._v(" "),t._m(0)],1),t._v(" "),t.error_html?e("div",{staticClass:"form-group"},[e("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[e("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),e("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[e("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),e("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),e("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[e("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[e("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[e("el-alert",{attrs:{title:"",type:"error",closable:!1}},[e("p",[t._v("\n For security reason, Custom SQL module is enabled only for Administrator user role. Please ask your site administrator to enable SQL module for other user roles.\n ")])])]:[e("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)}),[function(){var t=this,e=t._self._c;return e("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),e("code",[t._v("$wpdb->get_results()")]),t._v(" function")])}],!1,null,null,null).exports;var xt=a(9980),kt=a.n(xt),Ct={computed:{margin:function(){return{"margin-bottom":this.item.data.style.margin.bottom+"px","margin-left":this.item.data.style.margin.left+"px","margin-right":this.item.data.style.margin.right+"px","margin-top":this.item.data.style.margin.top+"px"}},padding:function(){return{"padding-top":this.item.data.style.padding.top+"px","padding-bottom":this.item.data.style.padding.bottom+"px","padding-left":this.item.data.style.padding.left+"px","padding-right":this.item.data.style.padding.right+"px"}},fontSize:function(){return{"font-size":""===this.item.data.style.fontSize||10===this.item.data.style.fontSize?this.setting.global_styling.options.font_size.value+"px":this.item.data.style.fontSize+"px"}},displayBlock:function(){return{display:"block"}},displayFlex:function(){return{display:"flex"}},textAlign:function(){return{"text-align":this.item.data.style.alignment}},color:function(){return{color:""===this.item.data.style.color||"#000001"===this.item.data.style.color?this.setting.global_styling.options.color.value:this.item.data.style.color}},backgroundColor:function(){return{background:this.item.data.style.backgroundColor}},border:function(){return{border:"".concat(this.item.data.style.borderSize,"px solid ").concat(this.item.data.style.borderColor)}},buttonIconHover:function(){var t=this.item.data.style.hoverIconColor,e=this.item.data.style.iconColor;return{"--icon-color-hover":t=!0===this.item.data.style.isHover?this.svgExtension(this.item.data.style.iconName)?""===t?this.setting.global_styling.options.color.value:t:"transparent":this.svgExtension(this.item.data.style.iconName)?""===e?this.setting.global_styling.options.color.value:e:"transparent"}},iconStyle:function(){var t={},e=this.item.data.style.fontSize,a=this.item.data.style.color,n=""===e||10===e?this.setting.global_styling.options.font_size.value:e,i=""===a||"#000001"===a?this.setting.global_styling.options.color.value:a;return t.width=n+"px",t.height=n+"px",this.svgExtension(this.item.data.value)?(t["mask-image"]="url("+this.getAsset(this.item.data.value)+")",t["-webkit-mask-image"]="url("+this.getAsset(this.item.data.value)+")",t.background=i):(t["background-image"]="url("+this.item.data.value+")",t["background-size"]="cover"),t},iconWithOtherComponent:function(){var t={},e=this.item.data.style.iconFontSize,a=this.item.data.style.iconColor,n=""===e||10===e?this.setting.global_styling.options.font_size.value:e,i=""===a||"#000001"===a?this.setting.global_styling.options.color.value:a;return t.width=n+"px",t.height=n+"px",this.svgExtension(this.item.data.style.iconName)?(t["mask-image"]="url("+this.getAsset(this.item.data.style.iconName)+")",t["-webkit-mask-image"]="url("+this.getAsset(this.item.data.style.iconName)+")",t.background=i):(t["background-image"]="url("+this.item.data.style.iconName+")",t["background-size"]="cover"),t},buttonStyle:function(){return{"text-decoration":"none","border-radius":this.item.data.style.borderRadius+"px",width:"true"===this.item.data.style.fullWidth||!0===this.item.data.style.fullWidth?"100%":"","text-align":this.item.data.style.contentAlignment,overflow:"hidden","line-height":2,display:"inline-block"}},justifyContent:function(){var t="center";return"left"===this.item.data.style.alignment?t="flex-start":"right"===this.item.data.style.alignment&&(t="flex-end"),{"justify-content":t}},lineHeight:function(){return{"line-height":this.item.data.style.lineHeight+"px"}},listStyle:function(){return{padding:0,margin:"15px0px","list-style-position":"inside","list-style-type":"list"===this.item.data.type?this.item.data.style.listStyle:"none"}},progressBarTextStyle:function(){var t=this.item.data.style,e=""===t.fontSize||10===t.fontSize?this.setting.global_styling.options.font_size.value:t.fontSize;return{"--progress-bar-text-color":""===t.color?this.setting.global_styling.options.color.value:t.color,"--progress-bar-font-size":e+"px"}},ratingStyle:function(){var t=this.item.data.style.fontSize;return{"--rating-font-size":(""===t||10===t?this.setting.global_styling.options.font_size.value:t)+"px"}},showRatingScore:function(){return"true"===this.item.data.style.showRatingValue||!0===this.item.data.style.showRatingValue},scoreTemplate:function(){var t=this.item.data.value;return Number.isInteger(t)?"".concat(t,"/").concat(this.item.data.style.maxStar):"".concat(t.toFixed(1),"/").concat(this.item.data.style.maxStar)},starRatingStyling:function(){var t=this.item.data.style.color,e=this.setting.global_styling.options.color.value;return""===t?[e,e,e]:[t,t,t]},fontWeight:function(){var t=this.item.data.style.fontWeight;if(t&&t.length>=0){for(var e="normal",a="normal",n="none",i=0;i<t.length;i++)"bold"===t[i]&&(e="bold"),"italic"===t[i]&&(a="italic"),"underline"===t[i]&&(n="underline");return{"font-weight":e,"font-style":a,"text-decoration":n}}},borderRadius:function(){return{"border-radius":("round"===this.item.data.style.shape?50:0)+"%"}},ribbonSize:function(){var t=this.item.data.style.ribbonType,e="",a="";return"bookmark"===t?(a=this.item.data.style.bookmarkWidth,e=this.item.data.style.bookmarkHeight):"side"===t?(a=this.item.data.style.sideWidth,e=this.item.data.style.sideHeight):"horizontal"===t?(a=this.item.data.style.horizontalWidth,e=this.item.data.style.horizontalHeight):(a=this.item.data.style.width,e=this.item.data.style.height),{width:a+"px",height:e+"px"}},xAxisRibbon:function(){var t=this.item.data.style,e=this.setting.general.options.cell_padding.value;return"corner"===t.ribbonType?Number(t.cornerXAxis-e+10)+"px":Number(t.xAxis-e+10)+"px"},yAxisRibbon:function(){return Number(this.item.data.style.yAxis-this.setting.general.options.cell_padding.value+10)+"px"},textStyle:function(){return{opacity:""===this.item.data.value?".4":1,"line-height":1.2}},verticalAlignMiddle:function(){return{"vertical-align":"middle"}}},methods:{svgExtension:function(t){if(t){var e=t.slice(-4);return".svg"===e.slice(-4)||!e.includes(".")}}}};const St={name:"Elements",mixins:[Ct],data:function(){return{icon:"",url:"",colors:{5:{value:"#F7BA2A"}}}},watch:{item:{handler:function(t,e){t.data.style.maxStar<t.data.value&&(t.data.value=t.data.style.maxStar)},deep:!0}},methods:{getAsset:function(t){return t.includes(window.location.origin)?t:ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"},dataTypes:function(t){return!!["text","custom_html","shortcode","button","text_icon"].includes(t)}},props:{item:{type:Object,default:null},itemId:{type:[Number,String],default:0},listItem:{type:Number,default:null},setting:{type:Object,default:{}}},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}}};var jt=a(394),$t={insert:"head",singleton:!1};s()(jt.Z,$t);jt.Z.locals;var Tt=n(St,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ntb-elements-wrapper",style:[t.itemId===t.item.id?t.margin:""]},[t.itemId===t.item.id&&t.dataTypes(t.item.data.type)?e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],style:"color:#ff0000",nativeOn:{mouseleave:function(e){return t.$emit("child-data",t.item.data)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("child-data","clickEnter")}},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}):t.itemId===t.item.id&&"star_rating"===t.item.data.type?e("el-rate",{staticClass:"ntb-rating",style:[t.padding,t.ratingStyle,t.textAlign],attrs:{colors:t.starRatingStyling,max:t.item.data.style.maxStar,"score-template":t.scoreTemplate,"show-score":t.showRatingScore,"text-color":"".concat(""===t.item.data.style.color?t.setting.global_styling.options.color.value:t.item.data.style.color),"allow-half":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("child-data")}},nativeOn:{mouseleave:function(e){return t.$emit("child-data")}},model:{value:t.item.data.value,callback:function(e){t.$set(t.item.data,"value",e)},expression:"item.data.value"}}):"icon"===t.item.data.type&&t.itemId===t.item.id?e("span",{style:[t.padding,t.displayBlock,t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[e("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type&&t.itemId===t.item.id?e("span",{staticClass:"ntb-progress",style:[t.padding,t.displayBlock,t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[Number(t.item.data.style.percentage)?e("el-progress",{style:[t.progressBarTextStyle,{"margin-top":"3px"}],attrs:{color:[t.color],percentage:Number(t.item.data.style.percentage),"stroke-width":Number(t.item.data.style.thickness),type:t.item.data.style.type,width:Number(t.item.data.style.width)}}):t._e()],1):"image"===t.item.data.type&&t.itemId===t.item.id?e("span",{on:{mouseleave:function(e){return t.$emit("child-data")}}},[e("a",{style:[t.displayFlex,t.justifyContent],attrs:{href:"".concat(t.item.data.style.link)},on:{click:function(t){t.preventDefault()}}},[e("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{alt:"".concat(t.item.data.style.alt),src:t.item.data.value}})])]):"list"!==t.item.data.type&&"stylist_list"!==t.item.data.type||t.itemId!==t.item.id?"ribbon"===t.item.data.type&&t.itemId===t.item.id?e("span",{staticStyle:{position:"relative",margin:"0",padding:"0",width:"100%"},on:{mouseleave:function(e){return t.$emit("child-data")}}},[e("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[e("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[e("div",{class:["content","left"===t.item.data.style.ribbonPosition?"left":"right"],style:[t.ribbonSize,t.backgroundColor,{"text-align":"center",padding:"corner"===t.item.data.style.ribbonType?t.item.data.style.height+"px 0px":""}]},[e("p",{style:[t.fontSize,t.color,t.fontWeight,{"margin-top":t.item.data.style.textYAxis+"px","margin-left":t.item.data.style.textXAxis+"px"}]},[t._v(t._s(t.item.data.value))])])])])]):t._e():e("span",{style:[t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[e(t.item.data.style.listType,{tag:"component",staticClass:"ntb-list-style",style:[t.listStyle,t.padding]},[t._l(t.item.data.value,(function(a,n){return e("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},["stylist_list"===t.item.data.type?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,{"vertical-align":"middle"}]}):t._e(),t._v(" "),e("span",{style:[{"margin-left":t.item.data.style.itemSpacing+"px","vertical-align":"middle"}],domProps:{innerHTML:t._s(a)}})])})),t._v(" "),e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],on:{mouseleave:function(e){return t.$emit("child-data")}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("child-data",{item:t.item})}},model:{value:t.item.data.value[t.listItem],callback:function(e){t.$set(t.item.data.value,t.listItem,e)},expression:"item.data.value[listItem]"}})],2)],1)],1)}),[],!1,null,null,null);const Dt=Tt.exports;const It={name:"Datas",mixins:[Ct],props:["item","manage","setting"],methods:{copyItem:function(t){this.item.data.value.splice(t+1,0,this.item.data.value[t])},deleteItem:function(t){this.item.data.value.splice(t,1)},getAsset:function(t){return t.includes(window.location.origin)?t:ninja_table_admin.ninja_tables_pro_url+"/assets/libs/icons/"+t+".svg"}},computed:{ratingValue:{get:function(){return Number(this.item.data.value)},set:function(t){this.item.data.value=t}},mouseOver:function(){if(!0===this.item.data.style.isHover){var t=this.item.data.style.hoverColor,e=""===t?this.setting.global_styling.options.color.value:t;return["this.style.background='"+this.item.data.style.hoverBackgroundColor+"'","this.style.color='"+e+"'","this.style.border='"+this.item.data.style.hoverBorderSize+"px solid"+this.item.data.style.hoverBorderColor+"'","this.style.transform='scale("+this.item.data.style.transition+")'"]}},mouseOut:function(){if(!0===this.item.data.style.isHover){var t=this.item.data.style.iconColor,e=""===t||"#000000"===t?this.setting.global_styling.options.color.value:t;return["this.style.background='"+this.item.data.style.backgroundColor+"'","this.style.color='"+e+"'","this.style.border='"+this.item.data.style.borderSize+"px solid"+this.item.data.style.borderColor+"'","this.style.transform='scale(1)'"]}}}},Pt=It;var At=a(4889),Et={insert:"head",singleton:!1};s()(At.Z,Et);At.Z.locals;var Nt=n(Pt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ntb-datas-wrapper",style:[t.margin]},["text"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color,t.textStyle],domProps:{innerHTML:t._s(""===t.item.data.value?"Add New":t.item.data.value)}}):"button"===t.item.data.type?e("div",{staticClass:"hover-item",style:[t.justifyContent,{display:t.item.data.style.fullWidth?"block":"flex"}]},[e("a",{style:[t.justifyContent,t.displayFlex,{"text-decoration":"none"}],attrs:{href:"".concat(t.item.data.style.url),target:t.item.data.style.newTab?"_black":""},on:{click:function(t){t.preventDefault()}}},[e("el-button",{staticClass:"ntb-el-button",style:[t.buttonIconHover,t.fontSize,t.color,t.backgroundColor,t.border,t.buttonStyle,{padding:"0px"}],attrs:{type:"primary",onmouseover:t.mouseOver,onmouseout:t.mouseOut}},[e("span",{staticClass:"button-content-wrapper",style:[t.padding]},["left"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e(),t._v(" "),e("span",{style:[t.fontWeight,{"margin-left":"left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing+"px":"0px","margin-right":"right"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing+"px":"0px"}],domProps:{innerHTML:t._s(t.item.data.value)}}),t._v(" "),"right"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e()])])],1)]):"custom_html"===t.item.data.type?e("div",{staticClass:"hover-item",style:[t.padding],domProps:{innerHTML:t._s(t.item.data.value)}}):"shortcode"===t.item.data.type?e("div",{staticClass:"ninja_table_builder_shortcode hover-item",style:[t.textAlign,t.padding],domProps:{innerHTML:t._s(t.item.data.value)}}):"star_rating"===t.item.data.type?e("span",[e("el-rate",{staticClass:"ntb-rating hover-item",style:[t.ratingStyle,t.textAlign,t.padding],attrs:{"score-template":t.scoreTemplate,"allow-half":"","show-score":t.showRatingScore,"text-color":"".concat(""===t.item.data.style.color?t.setting.global_styling.options.color.value:t.item.data.style.color),max:t.item.data.style.maxStar,colors:t.starRatingStyling},model:{value:t.ratingValue,callback:function(e){t.ratingValue=e},expression:"ratingValue"}})],1):"icon"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[e("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type?e("span",{staticClass:"ntb-progress hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[Number(t.item.data.style.percentage)?e("el-progress",{style:[t.progressBarTextStyle,{"margin-top":"3px"}],attrs:{type:t.item.data.style.type,width:Number(t.item.data.style.width),percentage:Number(t.item.data.style.percentage),color:[t.color],"stroke-width":Number(t.item.data.style.thickness)}}):t._e()],1):"image"===t.item.data.type?e("span",[e("a",{staticClass:"hover-item",style:[t.displayBlock,t.textAlign],attrs:{target:"_blank",href:"".concat(t.item.data.style.link)},on:{click:function(t){t.preventDefault()}}},[e("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{src:t.item.data.value,alt:"".concat(t.item.data.style.alt)}})])]):"list"===t.item.data.type||"stylist_list"===t.item.data.type?e("span",{staticClass:"ntb-list hover-item",style:[t.textAlign,t.displayFlex,t.justifyContent]},[e(t.item.data.style.listType,{tag:"component",class:t.manage?"":"ntb-list-style",style:[t.listStyle,t.padding]},t._l(t.item.data.value,(function(a,n){return e("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},[e("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.$emit("list-item",{index:n})}}},["stylist_list"===t.item.data.type?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),e("span",{style:[t.fontWeight,t.verticalAlignMiddle,{"margin-left":t.item.data.style.itemSpacing+"px"}],domProps:{innerHTML:t._s(a)}})]),t._v(" "),t.manage?t._e():e("div",{staticClass:"icon-styles remove-elements"},[e("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return e.stopPropagation(),t.copyItem(n)}}}),t._v(" "),e("i",{staticClass:"el-icon-delete",on:{click:function(e){return e.stopPropagation(),t.deleteItem(n)}}})])])})),0)],1):t._e(),t._v(" "),"text_icon"===t.item.data.type?e("span",{staticClass:"hover-item",style:[t.displayFlex,t.justifyContent]},[e("span",{staticClass:"icon-text-wrapper",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color]},["left"===t.item.data.style.iconPosition?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),e("span",{style:"\n vertical-align: middle;\n margin-left: ".concat("left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0,"px;\n margin-right: ").concat("right"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0,"px;\n "),domProps:{innerHTML:t._s(t.item.data.value)}}),t._v(" "),"right"===t.item.data.style.iconPosition?e("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e()])]):t._e(),t._v(" "),"ribbon"===t.item.data.type?[e("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[e("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[e("div",{class:["content","left"===t.item.data.style.ribbonPosition?"left":"right"],style:[t.ribbonSize,t.backgroundColor,{"text-align":"center",padding:"corner"===t.item.data.style.ribbonType?t.item.data.style.height+"px 0px":""}]},[e("p",{style:[t.fontSize,t.color,t.fontWeight,{"margin-top":t.item.data.style.textYAxis+"px","margin-left":t.item.data.style.textXAxis+"px"}]},[t._v(t._s(t.item.data.value))])])])])]:t._e()],2)}),[],!1,null,null,null);const Ot=Nt.exports;function Mt(t){return function(t){if(Array.isArray(t))return zt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return zt(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var Bt={data:function(){return{tdIds:[],merge:{items:[],rowColumn:[],history:{},visible:!1},split:{visible:!1}}},methods:{addTopRow:function(){this.tableData.data.unshift(this.row()),this.tableData.table.tr=Number(this.tableData.table.tr)+1,this.updateHistoryRowIndex()},addBottomRow:function(){this.tableData.data.push(this.row()),this.tableData.table.tr=Number(this.tableData.table.tr)+1,this.updateHistoryRowIndex()},addLeftColumn:function(){var t=this;this.tableData.data.forEach((function(e,a){t.$set(e.rows,t.columnName,t.defaultTd())})),this.tableData.headers.unshift(this.columnName),this.tableData.table.tc=Number(this.tableData.table.tc)+1,this.updateHistoryColumnIndex()},addRightColumn:function(){var t=this;this.tableData.data.forEach((function(e,a){t.$set(e.rows,t.columnName,t.defaultTd())})),this.tableData.headers.push(this.columnName),this.tableData.table.tc=Number(this.tableData.table.tc)+1,this.updateHistoryColumnIndex()},defaultItem:function(){var t=this.initialData.components.general.fields[0];return{id:this.id(),data:this.deepClone(t)}},row:function(){var t=this,e={};return this.tableData.headers.forEach((function(a){e[a]=t.defaultTd()})),{rows:e,style:this.trStyle()}},defaultTd:function(){return{style:this.tdStyle(),columns:[this.defaultItem()]}},tdStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{tdId:this.id(8),backgroundColor:t.backgroundColor?t.backgroundColor:"",columnWidth:t.columnWidth?t.columnWidth:"",emptyCell:t.emptyCell?t.emptyCell:"",verticalAlignment:t.verticalAlignment?t.verticalAlignment:"",rowspan:t.rowspan||0===t.rowspan?t.rowspan:1,colspan:t.colspan||0===t.colspan?t.colspan:1,highlighted:{active:!!t.highlighted&&t.highlighted.active,height:t.highlighted?t.highlighted.height:10,shadowColor:t.highlighted?t.highlighted.shadowColor:"#888",offset_x:t.highlighted?t.highlighted.offset_x:0,offset_y:t.highlighted?t.highlighted.offset_y:10,blur_radius:t.highlighted?t.highlighted.blur_radius:10}}},trStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{trId:this.id(7),backgroundColor:t.backgroundColor?t.backgroundColor:"",rowHeight:t.rowHeight?t.rowHeight:""}},copyRow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(arguments.length>1&&void 0!==arguments[1]||this.table.rowIndex,{}),n=this.isEmpty(e)?this.table.row:e;return this.tableData.headers.forEach((function(e){var i=n.rows[e],o=[];i.columns.forEach((function(e){var a={id:t.id(),data:t.deepClone(e.data)};o.push(a)})),a[e]={style:t.tdStyle(i.style),columns:o}})),{style:this.trStyle(n.style),rows:a}},removeRow:function(){var t=this,e=this.selectedColumnStyle,a=function(e){t.tableData.data.splice(e,1),t.tableData.table.tr=Number(t.tableData.table.tr)-1,t.updateHistoryRowIndex()},n=function(e,a,n){var i=e.style,o=e.columns;i.rowspan=i.rowspan-1;var l=t.tableData.data[a+1].rows[n];l.columns=o,l.style=i},i=this.table.rowIndex,o=this.mergedIndexes("rowIndexes").sort(),l=this.selectedRowSpans();this.allEqual(l)?a(i):e&&e.rowspan>1?(o.forEach((function(e){t.tableData.headers.forEach((function(a){var o=t.tableData.data[e]&&t.tableData.data[e].rows[a];e===i?t.merge.history[o.style.tdId]&&delete t.merge.history[o.style.tdId]:o.style.rowspan>1&&(n(o,e,a),t.updateHistoryByRow(o.style.tdId,e,"pop"))}))})),this.$nextTick((function(){var t=o.length-e.rowspan;o.splice(0,t),o.reverse().forEach((function(t){a(t)}))}))):(o.forEach((function(e){t.tableData.headers.forEach((function(a){var l=t.tableData.data[e]&&t.tableData.data[e].rows[a];e===i&&l.style.rowspan>1?(n(l,e,a),t.updateHistoryByRow(l.style.tdId,e,"pop")):l&&l.style.rowspan>1&&e!==Math.max.apply(Math,Mt(o))&&(l.style.rowspan=l.style.rowspan-1,t.updateHistoryByRow(l.style.tdId,e,"pop"))}))})),this.$nextTick((function(){a(i)}))),this.clearMerge()},removeColumn:function(){var t=this,e=this.selectedColumnStyle,a=function(e){var a=t.tableData.headers.indexOf(t.headerName(e));a>-1&&(t.tableData.data.forEach((function(a){delete a.rows[t.headerName(e)]})),t.tableData.headers.splice(a,1),t.tableData.table.tc=Number(t.tableData.table.tc)-1),t.updateHistoryColumnIndex()},n=function(e,a,n){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=a.style,r=a.columns;if(a.style.colspan>1){if(s.colspan=s.colspan-1,i===l?l:o[0]){var c=e.rows[t.headerName(n+1)];c.columns=r,c.style=s}t.updateHistoryByColumn(n+1,a.style.tdId,"pop")}},i=this.table.columnIndex,o=this.mergedIndexes("columnIndexes").sort(),l=this.selectedColSpans();this.allEqual(l)?a(i):e&&e.colspan>1?(o.forEach((function(e){t.tableData.data.forEach((function(a){var o=a.rows[t.headerName(e)];e===i?t.merge.history[o.style.tdId]&&delete t.merge.history[o.style.tdId]:n(a,o,e)}))})),this.$nextTick((function(){var t=o.length-e.colspan;o.splice(0,t),o.reverse().forEach((function(t){a(t)}))}))):(o.forEach((function(e){t.tableData.data.forEach((function(a){var l=a.rows[t.headerName(e)];e===i&&l.style.colspan>1?n(a,l,e,e):l&&l.style.colspan>1&&e!==Math.max.apply(Math,Mt(o))&&(l.style.colspan=l.style.colspan-1,t.updateHistoryByColumn(e+1,l.style.tdId,"pop"))}))})),this.$nextTick((function(){a(i)}))),this.clearMerge()},duplicateRow:function(){var t=this,e=this.selectedColumnStyle,a=this.selectedRowSpans(),n=this.mergedIndexes("rowIndexes").sort();n=n.length>0?n:[this.table.rowIndex];var i=this.table.rowIndex,o=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.tableData.data.splice(e+1,0,t.copyRow(a,e)),t.tableData.table.tr=Number(t.tableData.table.tr)+1,t.updateHistoryRowIndex()};if(this.allEqual(a))o(i);else if(e&&e.rowspan>1||e.colspan>1)!function(){for(var e=0,l=function(l){var s=t.tableData.data[l];o(Math.max.apply(Math,Mt(n))+e,s),e++,t.tableData.headers.forEach((function(o,r){var c=s&&s.rows[o],u=t.tableData.data[Math.max.apply(Math,Mt(n))+e],d=u&&u.rows[o];if(c&&c.style.rowspan>1||c.style.colspan>1){var p=t.merge.history[c.style.tdId],m=t.deepClone(p);(d&&d.style.rowspan>1||d.style.colspan>1)&&(t.merge.history[d.style.tdId]=m,t.updateHistoryRowIndex())}if(c.style.rowspan>1&&Math.min.apply(Math,Mt(n))!==l&&i===Math.min.apply(Math,Mt(n))){var _=t.merge.history[c.style.tdId],h=[],f=[];_.forEach((function(t,e){f.push(t.columnIndex)}));var v=Mt(new Set(f)),b=Mt(new Set(f)),g=v.concat(b);_.forEach((function(t,e){Math.min.apply(Math,Mt(n))!==t.rowIndex&&t.rowIndex<=Math.max.apply(Math,Mt(n))&&h.push({rowIndex:t.rowIndex,columnIndex:g[e]})})),t.merge.history[c.style.tdId]=h,c.style.rowspan=c.style.rowspan-1,c.columns=[t.defaultItem()]}else l!==i||0!==d.style.rowspan||0!==a[r-1]&&0!==a[r+1]||(d.style.colspan=1,d.style.rowspan=1,d.columns=[t.defaultItem()])}))},s=i;s<=Math.max.apply(Math,Mt(n));s++)l(s)}();else{o(i);for(var l=Math.min.apply(Math,Mt(n));l<=i;l++){var s=this.tableData.data[l];Object.entries(s.rows).forEach((function(e){var a=e[1];a.style.rowspan>1&&(a.style.rowspan=a.style.rowspan+1,t.updateHistoryByRow(a.style.tdId,i,"push"))}))}this.greaterThanOneNumber(a,1)&&(a=this.selectedRowSpans(this.tableData.data[i]));var r=this.tableData.data[i+1];a.forEach((function(e,a){(0===e||e>1)&&(r.rows[t.headerName(a)].style.rowspan=0)}))}this.clearMerge()},duplicateColumn:function(){var t=this,e=this.selectedColumnStyle,a=this.table.columnIndex,n=this.mergedIndexes("columnIndexes").sort(),i=this.selectedColSpans(),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.tableData.data.forEach((function(a,o){var s=[],r=a.rows[t.headerName(e)];r.columns.forEach((function(e){var a={id:t.id(),data:t.deepClone(e.data)};s.push(a)}));var c={style:t.tdStyle(r.style),columns:s};"else"===l?e===Math.min.apply(Math,Mt(n))&&(r.style.colspan>1||0===r.style.colspan)?r.style.colspan=0:e!==Math.min.apply(Math,Mt(n))&&r.style.colspan>1&&(r.style.colspan=0,r.style.rowspan=0):"elseif"===l&&(Math.min.apply(Math,Mt(n))!==e&&r.style.colspan>1?(r.style.colspan=r.style.colspan-1,r.columns=[t.defaultItem()]):0!==c.style.colspan||0!==i[o]||0!==i[o-1]&&0!==i[o+1]||(c.style.colspan=1,c.style.rowspan=1,c.columns=[t.defaultItem()])),t.$set(a.rows,t.columnName,c);var u=t.merge.history[r.style.tdId];if(u){var d=t.deepClone(u);c.style.colspan>1&&(t.merge.history[c.style.tdId]=d)}}));var s="else"===l?a:n.length>0?Math.max.apply(Math,Mt(n))+o:a;t.tableData.headers.splice(s,0,t.columnName),t.tableData.table.tc=Number(t.tableData.table.tc)+1,t.updateHistoryColumnIndex()};if(this.allEqual(i))o(a);else if(e&&e.colspan>1){var l=n.length-e.colspan;n.splice(0,l),n.forEach((function(t,e){o(t,++e,"elseif")}))}else n.forEach((function(e){t.tableData.data.forEach((function(a){var n=a.rows[t.headerName(e)];n.style.colspan>1&&(n.style.colspan=n.style.colspan+1,t.updateHistoryByColumn(e,n.style.tdId,"push"))}))})),o(a,0,"else");this.clearMerge()},insertColumnBefore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.columnIndex,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n=function(e){t.tableData.data.forEach((function(e,a){t.$set(e.rows,t.columnName,t.defaultTd())})),t.tableData.headers.splice(e,0,t.columnName),t.tableData.table.tc=Number(t.tableData.table.tc)+1,t.updateHistoryColumnIndex()},i=this.deepClone(e),o=this.selectedColumnStyle,l=o&&o.colspan,s=this.mergedIndexes("columnIndexes").sort(),r=this.selectedColSpans();if("before"!==a||!this.allEqual(r)&&i!==Math.min.apply(Math,Mt(s)))if("after"!==a||Math.max.apply(Math,Mt(s))!==e-1&&!this.allEqual(r)){n(e);for(var c=function(e){t.tableData.data.forEach((function(a,n){var o=a.rows[t.headerName(e)];t.greaterThanOneNumber(r,1)&&(r=t.selectedColSpans(i-1)),o.style.colspan>1?(o.style.colspan=o.style.colspan+1,t.updateHistoryByColumn(i,o.style.tdId,"push")):(0===r[n]||r[n]>1)&&(o.style.colspan=0,o.columns=[])}))},u=Math.min.apply(Math,Mt(s));u<=i;u++)c(u)}else l>1&&(e=Math.max.apply(Math,Mt(s))+1),n(e);else n(e);this.clearMerge()},insertColumnAfter:function(){this.insertColumnBefore(this.table.columnIndex+1,"after")},mergedIndexes:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rowIndexes",a=Object.entries(this.merge.history);a.map((function(a){a[1].map((function(n){("rowIndexes"!==e||n.rowIndex!==t.table.rowIndex||t.tdIds.includes(a[0]))&&("columnIndexes"!==e||n.columnIndex!==t.table.columnIndex||t.tdIds.includes(a[0]))||t.tdIds.push(a[0])}))}));var n=[];return this.tdIds.forEach((function(a){var i=t.merge.history[a];i&&i.map((function(t){n.push("rowIndexes"===e?t.rowIndex:t.columnIndex)}))})),Mt(new Set(n))},selectedColSpans:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.columnIndex,a=[];return this.tableData.data.forEach((function(n,i){var o=n.rows[t.headerName(e)];a.push(o.style.colspan)})),a},selectedRowSpans:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.isEmpty(t)?this.table.row:t,a=[];return e&&Object.values(e.rows).forEach((function(t){a.push(t.style.rowspan)})),a},insertRowBefore:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.table.rowIndex,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n=this.selectedColumnStyle,i=n&&n.rowspan,o=function(e){t.tableData.data.splice(e,0,t.row()),t.tableData.table.tr=Number(t.tableData.table.tr)+1,t.updateHistoryRowIndex()},l=this.deepClone(e),s=this.mergedIndexes("rowIndexes"),r=this.selectedRowSpans();if("before"!==a||!this.allEqual(r)&&l!==Math.min.apply(Math,Mt(s)))if("after"!==a||Math.max.apply(Math,Mt(s))!==e-1&&!this.allEqual(r)){o(e);for(var c=Math.min.apply(Math,Mt(s));c<l;c++){var u=this.tableData.data[c];Object.entries(u.rows).forEach((function(e){var a=e[1];a.style.rowspan>1&&(a.style.rowspan=a.style.rowspan+1,t.updateHistoryByRow(a.style.tdId,l,"push"))}))}this.greaterThanOneNumber(r,1)&&(r=this.selectedRowSpans(this.tableData.data[e-1]));var d=this.tableData.data[e];r.forEach((function(e,a){(0===e||e>1)&&(d.rows[t.headerName(a)].style.rowspan=0)}))}else i>1&&(e=Math.max.apply(Math,Mt(s))+1),o(e);else o(e);this.clearMerge()},updateHistoryColumnIndex:function(){var t=this;this.tableData.data.forEach((function(e,a){t.tableData.headers.forEach((function(a,n){var i=e.rows[a],o=t.merge.history[i.style.tdId];o&&o.forEach((function(t,e){t.columnIndex=n+Math.floor(e/2)}))}))}))},updateHistoryRowIndex:function(){var t=this;this.tableData.data.forEach((function(e,a){Object.values(e.rows).forEach((function(e){var n=t.merge.history[e.style.tdId];if(n){var i=n.map((function(t){return t.columnIndex}));t.allEqual(i)?n.forEach((function(t,e){t.rowIndex=a+e})):n.forEach((function(t,e){t.rowIndex=a+Math.floor(e/2)}))}}))}))},insertRowAfter:function(){this.insertRowBefore(this.table.rowIndex+1,"after")},dragColumn:function(t){t.moved&&(this.updateHistoryColumnIndex(),this.clearMerge())},dragRow:function(t){t.moved&&(this.updateHistoryRowIndex(),this.clearMerge())},clearMerge:function(){this.tdIds=[],this.merge.items=[],this.merge.rowColumn=[],this.split.visible=!1,this.merge.visible=!1},selectItem:function(t,e,a,n,i){var o=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.setTdIndex(),this.table.rowIndex=t,this.table.columnIndex=a,this.table.row=i,this.table.column=n;var s=jQuery("#td_id_"+n.style.tdId).attr("cellIndex");if("cells"===this.activeTab){if(l)this.split.visible=!1;else if(this.clearMerge(),n.style.colspan>1||n.style.rowspan>1){var r=Object.keys(this.merge.history),c=r.map((function(t){return parseInt(t)}));this.split.visible=c.includes(parseInt(n.style.tdId))}else this.split.visible=!1;if(this.tdIds.includes(n.style.tdId)){n.columns.forEach((function(t){var e=o.merge.items.indexOf(t);e>=0&&o.merge.items.splice(e,1)}));var u=1,d=n.style.colspan,p=n.style.rowspan;d>1&&p>1?u=d*p:d>1?u=d:p>1&&(u=p);for(var m=0;m<u;m++){var _=this.merge.rowColumn.findIndex((function(t){return t.cellIndex===s}));_>=0&&this.merge.rowColumn.splice(_,1)}var h=this.tdIds.indexOf(n.style.tdId);h>=0&&this.tdIds.splice(h,1)}else this.tdIds.push(n.style.tdId),n.columns.forEach((function(t){o.merge.items.push(t)})),this.keyExist(this.merge.history,n.style.tdId)?this.merge.history[n.style.tdId].forEach((function(t){o.merge.rowColumn.push({rowIndex:t.rowIndex,columnIndex:t.columnIndex,cellIndex:s,tdId:n.style.tdId})})):this.merge.rowColumn.push({rowIndex:t,columnIndex:a,cellIndex:s,tdId:n.style.tdId});var f=this.merge.rowColumn.map((function(t){return t.rowIndex})),v=this.merge.rowColumn.map((function(t){return t.columnIndex}));this.merge.visible=this.groupByData(f,v)}else if(l)if(this.tdIds.includes(n.style.tdId)){var b=this.tdIds.indexOf(n.style.tdId);b>=0&&this.tdIds.splice(b,1)}else this.tdIds.push(n.style.tdId);else this.tdIds=[],this.tdIds.splice(0,1,n.style.tdId);this.manageCell(!0,this.activeTab)},groupByData:function(t,e){if(t.length>1){var a=t.reduce((function(t,e){return t[e]=t[e]?t[e]+1:1,t}),{}),n=Object.values(a).every((function(t,e,a){return t===a[0]})),i=e.reduce((function(t,e){return t[e]=t[e]?t[e]+1:1,t}),{}),o=Object.values(i).every((function(t,e,a){return t===a[0]}));if(n&&o){var l=Mt(new Set(t)).sort(),s=Mt(new Set(e)).sort(),r=this.findElement(l),c=this.findElement(s);if(r&&c){if(2===t.length&&2===e.length){var u=this.merge.rowColumn.map((function(t){return Number(t.rowIndex)})),d=this.merge.rowColumn.map((function(t){return Number(t.columnIndex)}));return u[0]===u[1]||d[0]===d[1]}return!0}return!1}return!1}return!1},findElement:function(t){for(var e=1;e<t.length;e++)if(t[e]-t[e-1]>1)return!1;return!0},mergeCell:function(){var t=this,e=Math.min.apply(Math,Mt(this.merge.rowColumn.map((function(t){return t.cellIndex})))),a=this.merge.rowColumn.find((function(t){return t.cellIndex==e})),n=this.merge.rowColumn.map((function(t){return t.rowIndex})).filter((function(t,e,a){return a.indexOf(t)===e})),i=this.merge.rowColumn.map((function(t){return t.columnIndex})).filter((function(t,e,a){return a.indexOf(t)===e})),o=[];this.merge.rowColumn.forEach((function(e){var l=e.columnIndex,s=e.rowIndex,r=t.headerName(l),c=t.tableData.data[s].rows[r];o.push({rowIndex:s,columnIndex:l}),a.tdId===c.style.tdId?(c.columns=t.merge.items,c.style.rowspan=n.length,c.style.colspan=i.length,t.merge.history[a.tdId]=o):(c.style.rowspan=0,c.style.colspan=0)})),this.clearMerge(),o=[],this.tableData.table.merge.history=this.merge.history},splitCell:function(){var t=this,e=this.table.column;this.merge.history[e.style.tdId].forEach((function(e){var a=t.headerName(e.columnIndex),n=t.tableData.data[e.rowIndex].rows[a];0===n.style.rowspan&&0===n.style.colspan&&(n.columns=[t.defaultItem()]),n.style.rowspan=1,n.style.colspan=1})),delete this.merge.history[e.style.tdId],this.clearMerge()},tdActiveRowSpan:function(t){return this.selectedTrId===t?this.selectedRowSpan:1},tdActiveInactiveClass:function(t){return this.selectedTrId===t?"td-active":"td-inactive"},highlightClass:function(t,e){return!!t.rows[e].style.highlighted&&t.rows[e].style.highlighted.active?"td-highlight":""},highlightedColumnStyle:function(t,e){if(!!t.rows[e].style.highlighted&&t.rows[e].style.highlighted.active){var a=t.rows[e].style.highlighted.height,n=t.rows[e].style.highlighted.shadowColor,i=t.rows[e].style.highlighted.offset_x,o=t.rows[e].style.highlighted.offset_y,l=t.rows[e].style.highlighted.blur_radius;return{"--highlight-height-top":"-".concat(a,"px"),"--highlight-height-bottom":"".concat(a,"px"),"--shadow-color":"".concat(n),"--offset-x":"".concat(i,"px"),"--offset-y":"".concat(o,"px"),"--blur-radius":"".concat(l,"px")}}return{}},tdClass:function(t,e,a){return this.table.columnIndex===a&&1===this.tdIds.length?"single-row-column":"td_class_"+this.tdId(t,e)},thActiveInactiveClass:function(t){return this.headerName(this.table.columnIndex)===t?"th-active":"th-inactive"},trId:function(t){return this.tdIds.includes(t)?"selected-item":"tr_id_"+t},trInlineStyle:function(t,e){var a=t.style,n=this.setting.background.options,i="";return i=0===e&&""===a.backgroundColor?n.header_background.value:e%2==0&&0!==e&&""===a.backgroundColor?n.even_row_background.value:e%1==0&&0!==e&&""===a.backgroundColor?n.odd_row_background.value:a.backgroundColor,{height:a.rowHeight>"50"?a.rowHeight+"px":"",background:i}},tdInlineStyle:function(t,e){return{padding:this.setting.general.options.cell_padding.value+"px","max-width":this.columnWidth(t,e)+"px","min-width":this.columnWidth(t,e)+"px","background-color":t.rows[e]?t.rows[e].style.backgroundColor:"",display:t.rows[e].style.colspan>0&&t.rows[e].style.rowspan>0?"":"none"}},tdInlineStyleResponsive:function(t,e,a,n,i,o,l){var s=Object.keys(this.headerInfo).length,r=this.responsive.responsive_settings.options.devices,c=this.setting.general.options.cell_padding.value,u=(n?1:0)+i,d=this.setting.background.options,p="";"mobile"===o?(c=r.mobile.mobile_cell_padding.value,p=.8*this.responsiveInitial.mobileActivePixel):"tablet"===o?(c=r.tablet.tablet_cell_padding.value,p=.8*this.responsiveInitial.tabletActivePixel):(c=this.setting.general.options.cell_padding.value,p=300);var m="",_="";return _=1==this.tableData.table.tr?n?p+"px":p/i+"px":n&&"column"==l?p/s+"px":p/u+"px",m=""!==t.backgroundColor?t.backgroundColor:0===a?""===e.backgroundColor?d.header_background.value:e.backgroundColor:a%2==0?""===e.backgroundColor?d.even_row_background.value:e.backgroundColor:a%1==0?""===e.backgroundColor?d.odd_row_background.value:e.backgroundColor:"",{padding:c+"px",height:""!==e.rowHeight?e.rowHeight+"px":"","max-width":_,"min-width":_,"background-color":m,"box-sizing":"border-box",overflow:"hidden",display:t.colspan>0&&t.rowspan>0||this.mobileDeviceShowHeader?"":"none"}},headerName:function(t){return this.tableData.headers[t]},updateHistoryByColumn:function(t,e,a){var n=this.merge.history[e];if(n&&a)if("push"===a){var i=Math.max.apply(Math,Mt(n.map((function(t){return t.columnIndex}))));Mt(new Set(n.map((function(t){return t.rowIndex})))).forEach((function(t){var e={rowIndex:t,columnIndex:i+1};n.push(e)}))}else"pop"===a&&n.forEach((function(e,a){if(e.columnIndex===t)for(var i=0;i<2;i++)n.splice(a,1)}))},updateHistoryByRow:function(t,e,a){var n=this.merge.history[t];if(n&&a)if("push"===a){var i=Math.max.apply(Math,Mt(n.map((function(t){return t.rowIndex}))));n.forEach((function(t,a){if(t.rowIndex===e){var o={rowIndex:i+1,columnIndex:t.columnIndex};n.push(o)}}))}else"pop"===a&&n.forEach((function(t,a){if(t.rowIndex===e)for(var i=0;i<2;i++)n.splice(a,1)}))},mergedTdIndexes:function(){var t=[],e=this.selectedColumnStyle,a=e&&e.tdId,n=this.merge.history[a];if(n){for(var i=Mt(new Set(n.map((function(t){return t.rowIndex})))),o=0;o<i.length;o++)t.push(o+this.table.rowIndex);t.shift()}return t},tableAlign:function(t){var e=this.responsive.responsive_settings.options.devices,a=this.setting.general.options.table_alignment.value;return"mobile"===t?a=e.mobile.mobile_table_alignment.value:"tablet"===t&&(a=e.tablet.tablet_table_alignment.value),this.responsiveAlign(a)},responsiveAlign:function(t){var e={};return"center"===t?e={"margin-left":"auto","margin-right":"auto"}:"left"===t?e={"margin-right":"auto"}:"right"===t&&(e={"margin-left":"auto"}),e}},computed:{tableMarginTop:function(){return{"margin-top":this.setting.global_styling.options.margin_top.value+"px"}},tableMarginBottom:function(){return{"margin-bottom":this.setting.global_styling.options.margin_bottom.value+"px"}},tableInlineStyle:function(){var t=this.setting.general.options,e=this.setting.border.options,a=t.columns_rows_separate;return{"table-layout":"fixed","border-collapse":this.getBoolean(a.value)?"separate":"collapse",border:e.table_border.value+"px solid "+e.border_color.value,"font-family":this.setting.global_styling.options.font_family.value,"border-spacing":"".concat(this.getBoolean(a.value)?a.childs.space_between_column.value+"px "+a.childs.space_between_row.value+"px":"0px")}},tableWrapperStyle:function(){var t=this.setting.general.options.container_max_width_switch;return{"max-width":this.getBoolean(t.value)?t.childs.container_max_width.value+"px":"","max-height":this.setting.general.options.container_max_height.value+"px"}},selectedTrId:function(){return this.table.row&&this.table.row.style&&this.table.row.style.trId},selectedRowSpan:function(){var t=this.selectedColumnStyle;return t&&t.rowspan?t.rowspan:1},columnName:function(){var t=this.tableData.headers,e=[];return t.forEach((function(t){e.push(t.slice(7,t.length))})),"column_"+(Math.max.apply(Math,e)+1)},selectedColumnStyle:function(){return this.table.column&&this.table.column.style}}},Ft={data:function(){return{headerInfo:null,formattedResponsiveData:null,responsiveInitial:{showHeader:!1,itemsPerRow:1,tableData:{},tableDataLength:null,cell_direction:"row",mobileActivePixel:400,tabletActivePixel:750}}},methods:{calculateColSpan:function(t){return this.responsiveInitial.showHeader&&"row"===this.responsiveInitial.cell_direction?t.rowspan:this.responsiveInitial.showHeader&&"column"===this.responsiveInitial.cell_direction?t.colspan:1},calculateRowSpan:function(t){return this.responsiveInitial.showHeader&&"row"===this.responsiveInitial.cell_direction?t.colspan:this.responsiveInitial.showHeader&&"column"===this.responsiveInitial.cell_direction?t.rowspan:1},makeResponsiveDataFormat:function(){for(var t=this.deepClone(this.tableData.data),e=this.deepClone(this.tableData.headers),a={},n=0,i=function(i){e.forEach((function(o,l){var s=e.length-1===l?l:null,r=o.slice(7);a["data_"+n]=t[i].rows[o],a["data_"+n].rowIndex=i,a["data_"+n].columnIndex=r,a["data_"+n].rowStyle=t[i].style,a["data_"+n].lastColumnIndex=s,n++}))},o=0;o<t.length;o++)i(o);for(var l={},s=0;s<e.length;s++)l["data_"+s]=a["data_"+s];this.headerInfo=l,this.formattedResponsiveData=a},getResponsiveTableData:function(t,e,a,n){if("mobile"!==this.selectedDevice&&"tablet"!==this.selectedDevice)return{};n&&this.makeResponsiveDataFormat();var i=Object.keys(this.headerInfo).length,o=Object.keys(this.formattedResponsiveData).length,l={},s=0;if(e&&"row"===t)return this.headerAndCellDirectionRow(a,i,o);if(e&&"column"===t)return this.headerAndCellDirectionColumn(a,i);var r={},c=0,u=this.tableData.table.tr;if("row"===t)for(var d=0;d<o;d++)0!==this.formattedResponsiveData["data_"+d].style.rowspan&&0!==this.formattedResponsiveData["data_"+d].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+d],c++);else for(var p=0;p<i;p++)for(var m=0;m<u;m++){var _=p+m*i;0!==this.formattedResponsiveData["data_"+_].style.rowspan&&0!==this.formattedResponsiveData["data_"+_].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+_],c++)}for(var h=Object.keys(r).length,f=0;f<h;){for(var v={},b=0;b<a;b++)r["data_"+f]&&(v["data_"+b]=r["data_"+f],f++);l[s]=v,s++}return l},headerAndCellDirectionRow:function(t,e,a){var n={},i=0;if(1===Number(this.tableData.table.tr))return this.responsiveSingleRow(e);for(var o=Math.ceil((a-e)/(t*e)),l=0;l<o;l++)for(var s=0;s<e;s++){for(var r={},c=0;c<=t;c++)if(0==c)r["data_"+c]=this.formattedResponsiveData["data_"+s];else{var u=l*t*e+c*e+s;this.formattedResponsiveData["data_"+u]&&0!==this.formattedResponsiveData["data_"+u].style.rowspan&&0!==this.formattedResponsiveData["data_"+u].style.colspan&&(r["data_"+c]=this.formattedResponsiveData["data_"+u])}n[i]=r,i++}return this.responsiveInitial.tableDataLength=Object.keys(n).length,n},headerAndCellDirectionColumn:function(t,e){var a={},n=0;if(1===Number(this.tableData.table.tr))return this.responsiveSingleRow(e);for(var i=e,o=Math.ceil((this.tableData.table.tr-1)/t),l=0;l<o;l++)for(var s=0;s<=t&&this.formattedResponsiveData["data_"+i];s++){for(var r={},c=0;c<e;c++)0===s?r["data_"+c]=this.formattedResponsiveData["data_"+c]:(this.formattedResponsiveData["data_"+i].style.rowspan>0&&this.formattedResponsiveData["data_"+i].style.colspan>0&&(r["data_"+c]=this.formattedResponsiveData["data_"+i]),i++);a[n]=r,n++}return this.responsiveInitial.tableDataLength=Object.keys(a).length,a},responsiveSingleRow:function(t){for(var e={},a=0,n=0;n<t;n++){var i={};this.headerInfo["data_"+n]&&(i["data_"+n]=this.headerInfo["data_"+n]),e[a]=i,a++}return e},bottomBorderResponsive:function(t,e,a,n){var i=Number(t)+1,o=this.deepClone(this.tableData.headers).length;return"column"===e&&i%(a+1)==0&&this.tableData.table.tr>1&&i!=this.responsiveInitial.tableDataLength||"row"===e&&i%o==0&&i!=this.responsiveInitial.tableDataLength?{borderBottom:("tablet"===this.selectedDevice?n.tablet.cell_border.value:n.mobile.cell_border.value)+"px solid black"}:void 0}},computed:{responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices},responsiveIsEnabled:function(){var t=this.responsive.general.options.enable_responsive_table.value;return this.getBoolean(t)},mobileDeviceShowHeader:function(){var t=this.responsiveDevice.mobile.top_row_as_header.value;return this.getBoolean(t)},tabletDeviceShowHeader:function(){var t=this.responsiveDevice.tablet.top_row_as_header.value;return this.getBoolean(t)},mobileDeviceItemsPerRow:function(){return this.responsiveDevice.mobile.items_per_row.value},tabletDeviceItemsPerRow:function(){return this.responsiveDevice.tablet.items_per_row.value},mobileDeviceBreakpoint:function(){var t=this.responsiveDevice.mobile.disable_breakpoint.value;return this.getBoolean(t)},tabletDeviceBreakpoint:function(){var t=this.responsiveDevice.tablet.disable_breakpoint.value;return this.getBoolean(t)},mobileDeviceCellDirection:function(){return this.responsiveDevice.mobile.cell_direction.value},tabletDeviceCellDirection:function(){return this.responsiveDevice.tablet.cell_direction.value},pixelBarValue:{get:function(){return"mobile"===this.selectedDevice?this.responsiveInitial.mobileActivePixel:this.responsiveInitial.tabletActivePixel},set:function(t){"mobile"===this.selectedDevice?this.responsiveInitial.mobileActivePixel=t:this.responsiveInitial.tabletActivePixel=t}},showPixelSlider:function(){return"mobile"!==this.selectedDevice||this.mobileDeviceBreakpoint?"tablet"!==this.selectedDevice||this.tabletDeviceBreakpoint?{preview:!1}:{preview:!0,min:700,max:1023}:{preview:!0,min:300,max:699}}}},Lt={methods:{id:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9;this.length=t,this.timestamp=+new Date;for(var e=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},a=this.timestamp.toString(),n=a.split("").reverse(),i="",o=0;o<this.length;++o){var l=e(0,n.length-1);i+=n[l]}return i},deepClone:function(t){return JSON.parse(JSON.stringify(t))},getBoolean:function(t){return!0===t||"true"===t},isEmpty:function(t){return t&&0===Object.keys(t).length},allEqual:function(t){return t.every((function(e){return e===t[0]}))},greaterThanOneNumber:function(t,e){return t.some((function(t){return t>e}))},keyExist:function(t,e){for(var a in t)if(e==a)return!0;return!1},ucWords:function(t){var e,a=t.split("_");for(e=0;e<a.length;e++)a[e]=a[e].charAt(0).toUpperCase()+a[e].slice(1);return a.join(" ")},upgradeMessage:function(){var t=(0,this.$createElement)("div",{domProps:{innerHTML:'You are using free version of ninja-tables, <a href="https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&amp;utm_medium=wp&amp;utm_campaign=wp_plugin&amp;utm_term=upgrade" target="_blank">Upgrade To Pro</a>'}});return this.$message({showClose:!0,message:this.$t(t),type:"warning"})}}};const Rt={name:"Layout",mixins:[Bt,Ft,Lt],props:["setting","tableData","responsive","selectedDevice","initialData"],mounted:function(){var t=this;this.$nextTick((function(){jQuery("body").click((function(e){var a=document.querySelector(".tbody");jQuery("#leftside").click((function(e){t.isSelectedTdId=!0})),a.onclick=function(){t.isSelectedTdId=!0},!0===t.isSelectedTdId?t.isSelectedTdId=!1:(null!==t.selectedTdId&&t.$emit("editItem",""),t.selectedTdId=null)}))}))},data:function(){return{isSelectedTdId:!0,selectedTdId:null,itemId:-1,listItemIndex:null,manage:!1,activeTab:"background",table:{multipleTd:!1,rowIndex:null,columnIndex:null,row:{},column:{},columns:[],rows:[]},maxWidth:""}},components:{draggable:kt(),Elements:Dt,TableData:Ot},methods:{iconSpacing:function(t){return"ribbon"===t.data.type?{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+"px","margin-left":("corner"===t.data.style.ribbonType?Number(t.data.style.cornerXAxis-this.setting.general.options.cell_padding.value+10):t.data.style.xAxis-Number(this.setting.general.options.cell_padding.value-10))+"px"}:{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+Number(t.data.style.margin.top)+"px","margin-left":"".concat(t.data.style.margin.left,"px"),"margin-right":"".concat(t.data.style.margin.right,"px"),width:"auto"}},stickyColumn:function(){return{position:"sticky",left:0,zIndex:1}},onMove:function(t){t&&t.to.id&&window.ninjaTableBus.$emit("singleTdId",t.to.id)},thInlineStyle:function(t){return{padding:"0px ".concat(this.setting.general.options.cell_padding.value,"px"),width:"".concat(this.tableHeadWidth(t),"px"),display:"".concat(this.displayHeader(t))}},selectedTdBackground:function(){return{border:"1px solid #3f9eff"}},displayHeader:function(t){var e=this;if(this.merge&&this.merge.rowColumn.length>1&&this.split.visible){var a=Object.values(this.merge.rowColumn).map((function(t){return e.headerName(t.columnIndex)}));return t!==this.headerName(this.table.columnIndex)&&a.includes(t)?"none":""}return""},headerColSpan:function(t){var e=this.selectedColumnStyle;return e&&e.colspan&&this.headerName(this.table.columnIndex)===t?e&&e.colspan:1},columnWidth:function(t,e){return t.rows&&t.rows[e]&&t.rows[e].style.columnWidth?t.rows[e].style.columnWidth:this.setting.general.options.cell_min_auto_width.value},tdId:function(t,e){return t.rows[e]?t.rows[e].style.tdId:null},listItem:function(t){this.listItemIndex=t.index},dragRowColumn:function(t,e,a,n,i,o){this.table.columnIndex=n,this.table.rowIndex=e,this.manageCell(!0,this.activeTab)},setTdIndex:function(){for(var t=document.getElementById("ntb_table").getElementsByTagName("tbody"),e=t[0].rows,a=(e.length,e[0].getElementsByTagName("td").length-1),n=0;n<t.length;n++)for(var i=t[n].getElementsByTagName("td"),o=0;o<i.length;o++)jQuery(i[o]).attr("cellIndex",o+n*a+1)},manageCell:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"background";if(this.isSelectedTdId=!0,this.selectedTdId=null,"cells"===e){var a=this.tableData.table.merge.history;this.isEmpty(a)||(this.merge.history=a)}this.manage=t,this.activeTab=e;var n={data:{tdIds:this.tdIds,setting:this.setting,tableData:this.tableData.data,table:this.table,headers:this.tableData.headers},active:t,activeTab:e};window.ninjaTableBus.$emit("manage-cell",n)},childData:function(t){"clickEnter"===t&&(this.selectedTdId=null),this.itemId=-1;["list","stylist_list"].includes(t&&t.item&&t.item.data.type)&&this.manageListItem(t.item)},manageListItem:function(t){t.data.value.splice(this.listItemIndex+1,0,"list item x")},styleChange:function(t,e,a,n,i){if(this.selectedTdId=t.id,this.manage)this.dragRowColumn(t,e,a,n,i);else if(t.id==this.itemId)this.itemId=-1;else{var o={edit:!0,item:t};this.$emit("editItem",o),window.ninjaTableBus.$emit("singleTdId","td_id_"+n.style.tdId),this.itemId=t.id}},copyItem:function(t,e,a){var n={id:this.id(),data:this.deepClone(a.data)};this.tableData.data[t].rows[e].columns.push(n)},deleteItem:function(t,e,a){this.$emit("editItem",""),this.tableData.data[t].rows[e].columns.splice(a,1)},innerBorder:function(t){var e=this.setting.border.options.inner_border,a=e.childs,n="";return 0!==t&&e.value&&(n="".concat(a.inner_border_size.value,"px solid ").concat(a.inner_border_color.value)),0===t&&e.value&&a.header_inner_border.value&&(n="".concat(a.inner_border_size.value,"px solid ").concat(a.inner_border_color.value)),{border:n}},tableHeadWidth:function(t){var e=this,a=this.table.columnIndex,n=this.table.row,i=(n&&this.columnWidth(n,t),this.headerColSpan(t)),o=11*i+(i>2?11*(i-2):0),l=this.deepClone(this.tableData.headers).splice(a,i);return i>1?(l.forEach((function(t){o+=n&&e.columnWidth(n,t)})),o):(n&&this.columnWidth(n,t))+1}},created:function(){var t=this;window.ninjaTableBus.$on("manageCell",(function(){t.table.columnIndex=null,t.table.rowIndex=null,t.selectedTdId=null,t.manage=!1,t.activeTab="background",t.clearMerge()}))},computed:{firstRowSticky:function(){var t=this.setting.sticky.options.first_row_sticky.value;return this.getBoolean(t)},firstColumnSticky:function(){var t=this.setting.sticky.options.first_column_sticky.value;return this.getBoolean(t)},tdThActiveMargin:function(){if(this.manage&&this.setting.border.options.table_border.value>0&&1===this.tdIds.length)return{"--td-th-active-margin":"-16px"}},tableWrapperActivePadding:function(){if(this.manage&&this.setting.border.options.table_border.value>0&&1===this.tdIds.length)return{"--table-wrapper-padding":"16px"}},showInnerBorder:function(){return this.setting.border.options.inner_border.value},tableBorder:function(){var t,e=this.setting.border.options,a=this.table.columnIndex,n=e.table_border?e.table_border.value:0,i=e.inner_border.childs?e.inner_border.childs.inner_border_size.value:0,o=this.getBoolean(this.setting.general.options.columns_rows_separate.value),l=this.setting.general.options?this.setting.general.options.columns_rows_separate.childs.space_between_column.value:0,s=this.setting.general.options?this.setting.general.options.columns_rows_separate.childs.space_between_row.value:0,r=0;o&&(r=2*l+(e.inner_border.value?a*i:0)),t=16+n+r-a+(e.inner_border.value?(a+1)*i:0);var c="".concat(-5-(o?s:0),"px");return{"--border-color":e.inner_border.childs.inner_border_color.value?e.inner_border.childs.inner_border_color.value:"#000000","--border-size":"".concat(i,"px"),"--column-arrow":"".concat(t,"px"),"--margin-top":c,"--margin-bottom":"-".concat(o?0===n?3*s:s:0,"px")}}},watch:{selectedDevice:function(t,e){this.responsiveInitial.showHeader="mobile"===t?this.mobileDeviceShowHeader:"tablet"===t&&this.tabletDeviceShowHeader,this.responsiveInitial.itemsPerRow="mobile"===t?this.mobileDeviceItemsPerRow:"tablet"===t?this.tabletDeviceItemsPerRow:1,this.responsiveInitial.cell_direction="mobile"===t?this.mobileDeviceCellDirection:"tablet"===t?this.tabletDeviceCellDirection:"row",this.responsiveInitial.tableData=this.getResponsiveTableData(this.responsiveInitial.cell_direction,this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow,!0)},responsive:{handler:function(t,e){"mobile"===this.selectedDevice?(this.responsiveInitial.showHeader=this.getBoolean(t.mode_options.options.devices.mobile.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.mobile.items_per_row.value,this.responsiveInitial.cell_direction=t.mode_options.options.devices.mobile.cell_direction.value):"tablet"===this.selectedDevice&&(this.responsiveInitial.showHeader=this.getBoolean(t.mode_options.options.devices.tablet.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.tablet.items_per_row.value,this.responsiveInitial.cell_direction=t.mode_options.options.devices.tablet.cell_direction.value),this.responsiveInitial.tableData=this.getResponsiveTableData(this.responsiveInitial.cell_direction,this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow,!1)},deep:!0}}},Ht=Rt;var Wt=a(5865),qt={insert:"head",singleton:!1};s()(Wt.Z,qt);Wt.Z.locals;var Vt=n(Ht,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ninja-tables-layout"},[""===t.selectedDevice?e("div",{staticClass:"table-customize-button"},["background"===t.activeTab?e("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-s-grid",size:"small"},on:{click:function(e){return t.manageCell(!0,"cells")}}},[t._v(t._s(t.$t("Manage Cells"))+"\n ")]),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-ice-cream-square",size:"small"},on:{click:function(e){return t.manageCell(!0,"background")}}},[t._v(t._s(t.$t("Background"))+"\n ")])],1):e("div",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[e("el-button",{attrs:{type:"primary",icon:"el-icon-folder-checked",size:"small",disabled:t.tdIds.length<2||!1===t.merge.visible},on:{click:function(e){return t.mergeCell()}}},[t._v(t._s(t.$t("Merge"))+"\n ")]),t._v(" "),e("el-button",{attrs:{type:"primary",icon:"el-icon-scissors",size:"small",disabled:!1===t.split.visible},on:{click:t.splitCell}},[t._v(t._s(t.$t("Split"))+"\n ")])],1)],1):t._e(),t._v(" "),t.setting&&(t.setting.general&&t.setting.border&&t.setting.background)?e("div",{staticClass:"ntb_table_wrapper",style:[t.tableWrapperStyle,t.tableWrapperActivePadding],attrs:{id:"ninja_tables_builder_id"}},[t.responsiveIsEnabled&&t.showPixelSlider.preview?e("div",{staticClass:"pixel-bar-slider"},[e("el-slider",{attrs:{max:t.showPixelSlider.max,min:t.showPixelSlider.min,"show-input":""},model:{value:t.pixelBarValue,callback:function(e){t.pixelBarValue=e},expression:"pixelBarValue"}})],1):t._e(),t._v(" "),e("table",{class:"table ninja_tables_builder_class_"+t.tableData.id,style:[t.tableMarginTop,t.tableMarginBottom,t.tableInlineStyle,t.tableAlign(t.selectedDevice)],attrs:{id:"ntb_table",role:"".concat(t.setting.accessibility.options.table_role.value)}},[t.manage?e("div",{staticClass:"table-header",style:t.tableBorder},[e("draggable",{attrs:{tag:"tr"},on:{change:t.dragColumn},model:{value:t.tableData.headers,callback:function(e){t.$set(t.tableData,"headers",e)},expression:"tableData.headers"}},t._l(t.tableData.headers,(function(a,n){return e("th",{key:a,class:t.thActiveInactiveClass(a),style:[t.tdThActiveMargin,t.thInlineStyle(a)],attrs:{scope:"col",colspan:t.headerColSpan(a)}},[t.headerName(t.table.columnIndex)!==a||1!==t.tdIds.length||t.merge.visible&&!t.split.visible?t._e():[e("el-dropdown",{staticClass:"column-options",attrs:{trigger:"click",placement:"top-start"}},[e("span",{staticClass:"el-dropdown-link"},[e("i",{staticClass:"el-icon-caret-bottom el-icon--right",class:n===t.table.columnIndex?"i-active":""})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnBefore()}}},[t._v(t._s(t.$t("Insert column before"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert column after"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addLeftColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert left column")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addRightColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert right column")))]),t._v(" "),e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.duplicateColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Duplicate column"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.removeColumn.apply(null,arguments)}}},[e("p",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("Remove column")))])])],1)],1)]],2)})),0)],1):t._e(),t._v(" "),""===t.selectedDevice||"desktop"===t.selectedDevice||!t.responsiveIsEnabled||"mobile"===t.selectedDevice&&t.mobileDeviceBreakpoint||"tablet"===t.selectedDevice&&t.tabletDeviceBreakpoint?e("draggable",{staticClass:"tbody",style:t.tdThActiveMargin,attrs:{tag:"tbody"},on:{change:t.dragRow},model:{value:t.tableData.data,callback:function(e){t.$set(t.tableData,"data",e)},expression:"tableData.data"}},t._l(t.tableData.data,(function(a,n){return e("tr",{key:n,staticClass:"desktop-view",class:"".concat(t.table.rowIndex===n&&t.tdIds.length<=0?"single-row-column":"tr_class_"+a.style.trId," ").concat(t.firstRowSticky&0==n?"firstRowSticky":""),style:[t.trInlineStyle(a,n)],attrs:{id:t.trId(a.style.trId)}},[t.manage&&1===t.tdIds.length&&!t.mergedTdIndexes().includes(n)?e("td",{class:t.tdActiveInactiveClass(a.style.trId),attrs:{rowspan:t.tdActiveRowSpan(a.style.trId)}},[e("el-dropdown",{staticClass:"row-options",attrs:{trigger:"click",placement:"top-start"}},[e("span",{staticClass:"el-dropdown-link"},[e("i",{staticClass:"el-icon-caret-right"})]),t._v(" "),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowBefore()}}},[t._v(t._s(t.$t("Insert row before")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert row after")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addTopRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert top row")))]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.addBottomRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert bottom row")))]),t._v(" "),e("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.duplicateRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Duplicate row"))+"\n ")]),t._v(" "),e("el-dropdown-item",{nativeOn:{click:function(e){return t.removeRow.apply(null,arguments)}}},[e("p",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("Remove row")))])])],1)],1)],1):t._e(),t._v(" "),t._l(t.tableData.headers,(function(i,o){return e("td",{key:i,class:[t.tdClass(a,i,o),t.highlightClass(a,i)],style:[t.tdInlineStyle(a,i),t.highlightedColumnStyle(a,i),t.showInnerBorder?t.innerBorder(n):"",t.firstColumnSticky&&0===o?t.stickyColumn():""],attrs:{id:"td_id_"+t.tdId(a,i),rowspan:a.rows[i].style.rowspan,colspan:a.rows[i].style.colspan},on:{click:[function(e){if(!e.shiftKey)return null;t.manage&&t.selectItem(n,i,o,a.rows[i],a,!0)},function(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return null;t.manage&&t.selectItem(n,i,o,a.rows[i],a,!1)}]}},[e("draggable",{attrs:{list:a.rows[i].columns,group:"people",id:t.tdIds.includes(t.tdId(a,i))?"selected-item":"td_id_"+t.tdId(a,i),move:t.onMove}},t._l(a.rows[i].columns,(function(l,s){return e("div",{key:s,staticClass:"single-item",class:t.manage?"single-item-edit":""===t.selectedDevice?"ribbon"===l.data.type?"only-ribbon":"other-item":"responsive-mode"},[l.id!=t.itemId?e("table-data",{style:[l.id===t.selectedTdId&&"ribbon"!==l.data.type?t.selectedTdBackground():""],attrs:{manage:t.manage,setting:t.setting,item:l},on:{"list-item":function(e){return t.listItem(e)}},nativeOn:{click:function(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return null;!t.manage&&""===t.selectedDevice&&t.styleChange(l,n,o,a.rows[i],a)}}}):t._e(),t._v(" "),t.manage||""!==t.selectedDevice?t._e():[e("elements",{staticClass:"remove-elements",attrs:{itemId:t.itemId,setting:t.setting,listItem:t.listItemIndex,item:l},on:{"child-data":function(e){return t.childData(e)}}}),t._v(" "),e("div",{staticClass:"icon-style remove-elements",style:t.iconSpacing(l)},[e("i",{staticClass:"el-icon-rank"}),t._v(" "),e("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return t.copyItem(n,i,l)}}}),t._v(" "),e("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteItem(n,i,s)}}})])]],2)})),0)],1)}))],2)})),0):e("tbody",t._l(t.responsiveInitial.tableData,(function(a,n){return e("tr",{key:n,class:"".concat("mobile"===t.selectedDevice?"mobile-view tr_class_mobile_"+n:"tablet-view tr_class_tablet_"+n),style:[t.responsiveInitial.showHeader?t.bottomBorderResponsive(n,t.responsiveInitial.cell_direction,t.responsiveInitial.itemsPerRow,t.responsive.mode_options.options.devices):""],attrs:{id:"".concat("mobile"===t.selectedDevice?"tr_id_mobile_"+n:"tr_id_tablet_"+n)}},t._l(a,(function(n){return n.style.rowspan>0&&n.style.colspan>0?e("td",{style:[t.tdInlineStyleResponsive(n.style,n.rowStyle,n.rowIndex,t.responsiveInitial.showHeader,t.responsiveInitial.itemsPerRow,t.selectedDevice,t.responsiveInitial.cell_direction),t.innerBorder(n.rowIndex)],attrs:{id:"td_id_".concat(n.style.tdId),colspan:t.calculateColSpan(n.style),rowspan:t.calculateRowSpan(n.style)}},t._l(n.columns,(function(n,i){return e("span",{key:i},[a.id!=t.itemId?e("table-data",{staticClass:"responsive-mode",attrs:{setting:t.setting,item:n}}):t._e()],1)})),0):t._e()})),0)})),0)],1)]):t._e()])}),[],!1,null,null,null);const Ut=Vt.exports,Yt={name:"RightSideBar",props:["initialData","tableId","selectedDevice"],mixins:[Lt],components:{draggable:kt(),TableLayout:Ut},data:function(){return{newTable:!1,value:"",file:{},loading:!1,url:""}},computed:{tableRowColumn:function(){return this.initialData.table_data.table.tr*this.initialData.table_data.table.tc},hasPro:function(){return!!window.ninja_table_admin.hasPro}},methods:{upgradeToPro:function(){if(!this.hasPro)return this.upgradeMessage()},importCJ:function(){var t=this;if(this.url&&!this.hasPro)return this.upgradeMessage();this.loading=!0;var e=new FormData;e.append("file",this.file),e.append("url",this.url),e.append("action","ninja_tables_builder_ajax_actions"),e.append("target_action","import-table"),e.append("ninja_table_admin_nonce",window.ninja_table_admin.ninja_table_admin_nonce),jQuery.ajax({url:ajaxurl,data:e,type:"POST",contentType:!1,processData:!1,success:function(e){t.loading=!1,t.$message({showClose:!0,message:t.$t("Imported successfully."),type:"success"}),t.$router.push({name:"table_builder_edit_table",params:{table_id:e.data.id}})},error:function(e){t.failedMessage()}})},handleRemove:function(t,e){this.file={}},handleFileSuccess:function(t,e){this.file=e.raw},beforeFileUpload:function(t){var e="text/csv"===t.type||"application/json"===t.type,a=t.size/1024/1024<1;return e||this.$message.error("File type must be CSV/JSON format!"),a||this.$message.error("File size can not exceed 1MB!"),e&&a},editItem:function(t){this.$emit("editItem",t)},failedMessage:function(){return this.$message({showClose:!0,message:this.$t("Something went wrong, please try again."),type:"warning"})},createTable:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t;if(!this.hasPro&&a.has_pro)return this.upgradeMessage();if(this.initialData.table_data.table_name){this.initialData.table_data.table_type="default"===n?"":n;var i={action:"ninja_tables_builder_ajax_actions",target_action:"create-table",data:this.initialData};this.$post(i).then((function(t){e.$message({showClose:!0,message:e.$t("Table created successfully."),type:"success"}),e.$router.push({name:"table_builder_edit_table",params:{table_id:t.data.id}})})).fail((function(t){e.failedMessage()}))}else this.failedMessage()},getAsset:function(t){return window.ninja_table_admin.img_url+t}}};var Zt=a(9192),Jt={insert:"head",singleton:!1};s()(Zt.Z,Jt);Zt.Z.locals;const Qt=n(Yt,(function(){var t=this,e=t._self._c;return e("div",[t.tableId?t.tableId?e("el-row",[e("table-layout",{attrs:{initialData:t.initialData,tableData:t.initialData.table_data,setting:t.initialData.settings,responsive:t.initialData.responsive,selectedDevice:t.selectedDevice},on:{editItem:t.editItem}})],1):t._e():e("div",{staticStyle:{height:"500px","overflow-y":"scroll",padding:"0px 20px","box-sizing":"border-box"},attrs:{gutter:20}},[[e("h3",[t._v(t._s(t.$t("Create a Drag & Drop Table")))]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n "+t._s(t.$t("Create your drag & drop table columns and rows to get complete control over your data with lots of customizations."))+"\n ")])],t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.initialData.table_data.table_name,expression:"initialData.table_data.table_name"}],staticClass:"form-control",staticStyle:{width:"95%"},attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.initialData.table_data.table_name},on:{input:function(e){e.target.composing||t.$set(t.initialData.table_data,"table_name",e.target.value)}}})]),t._v(" "),t.newTable?t._e():e("el-row",{staticClass:"new-table-wrapper"},[e("el-col",{attrs:{span:12}},[[e("div",{staticClass:"new_table",style:"grid-template-rows:repeat(".concat(t.initialData.table_data.table.tr,",1fr);grid-template-columns:repeat(").concat(t.initialData.table_data.table.tc,",1fr)")},[e("el-input-number",{staticClass:"table-column-input",attrs:{step:1,min:1,max:30},model:{value:t.initialData.table_data.table.tc,callback:function(e){t.$set(t.initialData.table_data.table,"tc",e)},expression:"initialData.table_data.table.tc"}}),t._v(" "),e("el-input-number",{staticClass:"table-row-input",attrs:{step:1,min:1,max:30},model:{value:t.initialData.table_data.table.tr,callback:function(e){t.$set(t.initialData.table_data.table,"tr",e)},expression:"initialData.table_data.table.tr"}}),t._v(" "),t._l(t.tableRowColumn,(function(t){return e("span",{key:t,staticClass:"table-row-column"})}))],2),t._v(" "),e("div",{staticClass:"create-button"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.createTable("default")}}},[t._v("Create\n ")])],1)]],2),t._v(" "),e("el-col",{attrs:{span:12}},[e("h4",[t._v(t._s(t.$t("Import Table from CSV / JSON File")))]),t._v(" "),e("hr"),t._v(" "),t.file.name?t._e():e("div",[e("el-input",{attrs:{disabled:!t.hasPro,placeholder:t.$t("Import CSV/JSON from URL")},nativeOn:{mouseover:function(e){return t.upgradeToPro.apply(null,arguments)}},model:{value:t.url,callback:function(e){t.url=e},expression:"url"}}),t._v(" "),e("hr")],1),t._v(" "),t.url?t._e():e("el-upload",{attrs:{accept:".csv, .json",drag:"",action:"#",limit:1,"before-upload":t.beforeFileUpload,"on-success":t.handleFileSuccess,"on-remove":t.handleRemove}},[e("i",{staticClass:"el-icon-upload"}),t._v(" "),e("div",{staticClass:"el-upload__text"},[t._v(t._s(t.$t("Drop file here or "))),e("em",[t._v(t._s(t.$t("click to upload")))])])]),t._v(" "),t.file.name||t.url?e("div",{staticClass:"import-button"},[e("el-button",{attrs:{loading:t.loading,type:"primary",size:"mini"},on:{click:t.importCJ}},[t._v("Import\n ")])],1):t._e()],1)],1),t._v(" "),t.newTable?t._e():e("el-row",{staticClass:"new-table-wrapper"},t._l(t.initialData.ready_made_tables,(function(a,n){return e("el-col",{key:n,attrs:{span:24}},[e("div",{staticClass:"table-type-heading"},[e("h2",{staticClass:"ready-made-name"},[t._v(t._s(a.name))])]),t._v(" "),e("el-row",t._l(a.tables,(function(a,n){return e("el-col",{key:n,attrs:{span:8}},[e("div",{staticClass:"ready-made-table-image"},[e("img",{staticStyle:{margin:"0 auto",width:"180px",display:"flex"},attrs:{src:t.getAsset(a.key+".jpg"),alt:""}}),t._v(" "),e("div",{staticClass:"ready-made-table-hover-button"},[e("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.createTable(a.key,a)}}},[e("span",[t._v(t._s(!t.hasPro&&a.has_pro?"Unlock in Pro":"Create"))])])],1)]),t._v(" "),e("h4",{staticClass:"table-title-style"},[t._v(t._s(a.name))])])})),1)],1)})),1)],2)],1)}),[],!1,null,null,null).exports,Xt={name:"add_table",components:{RightSideBar:Qt,wp_editor:C,"wp-posts-data-source":Q,"woo-data-source":tt,"fluent-form-data-source":it,"external-data-source":rt,ImportTable:pt,RawSqlForm:wt,PremiumNotice:V},props:{table:{type:Object,default:function(){return{ID:null,post_title:"",post_content:""}}},hasPro:{required:!0}},data:function(){return{activeTabName:"default",btnLoading:!1,activated_features:window.ninja_table_admin.activated_features,has_sql_permission:"yes"==window.ninja_table_admin.sql_permission,editorOption:{modules:{toolbar:[["bold","italic","underline","strike","link"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{align:[]}],[{direction:"rtl"}]]}},isCollapse:!1,fluentFormIcon:window.ninja_table_admin.fluent_form_icon,wooIcon:window.ninja_table_admin.img_url+"woo-logo.png",has_woo:!!window.ninja_table_admin.has_woocommerce,initialData:{}}},methods:{createDragAndDropTable:function(){var t=this;this.$get({action:"ninja_tables_builder_ajax_actions",target_action:"get-table-config"}).done((function(e){t.initialData=e.data})).fail((function(e){t.$message({showClose:!0,message:t.$t("Something went wrong, please try again."),type:"warning"})}))},handleTabClick:function(t,e){setTimeout((function(){jQuery(t.$el).find("input:first").focus()}),0)},addTable:function(){var t=this;this.btnLoading=!0;var e={action:"ninja_tables_ajax_actions",target_action:"store-a-table",post_title:this.table.post_title,post_content:this.table.post_content,tableId:this.table.ID};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"}),window.ninjaTableBus.$emit("addedTable"),t.table.ID?t.closeModal():t.fireTableCreated(e.table_id)})).fail((function(e){e.responseJSON.data.message?t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"}):t.$message({showClose:!0,message:e.responseText,type:"error"})})).always((function(){t.btnLoading=!1}))},closeModal:function(){this.$emit("modal_close")},onEditorChange:function(t){t.editor;var e=t.html;t.text;this.table.post_content=e},fireTableCreated:function(t){this.$emit("table_inserted",t)},checkScreenSize:function(){window.innerWidth<1e3?this.isCollapse=!0:this.isCollapse=!1}},mounted:function(){var t=this;this.checkScreenSize(),this.createDragAndDropTable(),jQuery(window).resize((function(){t.checkScreenSize()}))}};var Gt=a(8674),Kt={insert:"head",singleton:!1};s()(Gt.Z,Kt);Gt.Z.locals;const te=n(Xt,(function(){var t=this,e=t._self._c;return e("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():e("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[e("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[e("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[e("i",{staticClass:"el-icon-setting"}),t._v(" "),e("span",[t._v("Default")])]),t._v(" "),e("el-menu-item",{attrs:{index:"drag_and_drop"},on:{click:function(e){t.activeTabName="drag_and_drop"}}},[e("i",{staticClass:"el-icon-s-unfold"}),t._v(" "),e("span",[t._v("Drag & Drop Table")])]),t._v(" "),e("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[e("i",{staticClass:"el-icon-upload2"}),t._v(" "),e("span",[t._v("Import Table")])]),t._v(" "),e("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[e("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),e("span",[t._v("Connect Fluent Forms")])]),t._v(" "),e("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[e("i",{staticClass:"el-icon-news"}),t._v(" "),e("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?e("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[e("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),e("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),e("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[e("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),e("span",[t._v("Connect Google Sheets")])]),t._v(" "),e("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[e("i",{staticClass:"el-icon-document"}),t._v(" "),e("span",[t._v("Connect External CSV")])]),t._v(" "),e("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[e("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),e("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),e("el-main",["default"==t.activeTabName?[e("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[e("h3",[t._v("Manually Create a Table")]),t._v(" "),e("p",{staticClass:"ninja_subtitle"},[t._v("\n Manually create your table columns and rows to get complete\n control over your data with tons of customizations.\n ")])],t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.table.post_title,expression:"table.post_title"}],staticClass:"form-control",attrs:{type:"text",id:"name",placeholder:"Enter a title to identify your table"},domProps:{value:t.table.post_title},on:{input:function(e){e.target.composing||t.$set(t.table,"post_title",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),e("wp_editor",{model:{value:t.table.post_content,callback:function(e){t.$set(t.table,"post_content",e)},expression:"table.post_content"}})],1)],2),t._v(" "),e("div",{staticClass:"modal-footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?e("span",[t._v(t._s(t.$t("Update")))]):e("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?e("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"drag_and_drop"===t.activeTabName?[e("right-side-bar",{attrs:{initialData:t.initialData}})]:"import_table"===t.activeTabName?[e("import-table")]:"google_spread_sheet"==t.activeTabName?[e("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[e("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[e("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[e("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?e("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?e("div",[e("p",[t._v("Please update to latest version of "),e("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?e("div",{staticClass:"ninja_no_woo"},[e("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),e("premium-notice",{attrs:{highlight:"WooCommerce Integration module where you can create and build table with Woocomerce produsts and increase your conversion rate"}})],1):t._e()]:"raw_sql"==t.activeTabName?[e("raw-sql-form",{attrs:{has_sql_permission:t.has_sql_permission,tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:t._e()],2)],1)}),[],!1,null,null,null).exports;const ee={name:"ninja_lead",data:function(){return{loading:!1,leadVisible:!!window.ninja_table_admin.show_lead_pop_up,display_name:window.ninja_table_admin.current_user_name,showPermission:!1}},methods:{optin:function(t){var e=this;this.loading=!0,this.$post({action:"ninja_table_lead_optin",status:t}).then((function(t){e.$message({showClose:!0,message:t.data.message,type:"success"})})).fail((function(t){})).always((function(){e.leadVisible=!1,e.loading=!1,"yes"===t&&(window.ninja_table_admin.show_lead_pop_up=!1)}))}}};var ae=a(1967),ne={insert:"head",singleton:!1};s()(ae.Z,ne);ae.Z.locals;const ie=n(ee,(function(){var t=this,e=t._self._c;return t.leadVisible?e("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[e("p",[t._v("Hey "+t._s(t.display_name)+","),e("br"),t._v("\n Never miss an important update - opt in to our security & feature updates notifications. We will never\n spam / share your data, We will only send emails about important updates")]),t._v(" "),e("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),e("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),e("div",{staticClass:"ninja_permissions"},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.showPermission,expression:"showPermission"}],staticClass:"permissions"},[t._v("\n Name, email, Site URL, Plugins info, ip Address and uninstall event\n ")])])],1)]):t._e()}),[],!1,null,null,null).exports;const oe={name:"review_dialog",methods:{recordActivity:function(t){var e=this;this.$post({action:"ninja_table_review_consent",status:t}).then((function(){})).fail((function(){})).always((function(){e.$emit("hideNotification",!0)}))}}};var le=a(6140),se={insert:"head",singleton:!1};s()(le.Z,se);le.Z.locals;const re={name:"all_tables",components:{Welcome:h,"list-all-tables":y,"add-table-modal":te,"lead-modal":ie,NinjaReviewDialog:n(oe,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"review_dialog"},[e("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),e("div",{staticClass:"consent_body"},[e("p",[t._v("Thank You for using Ninja Tables Plugin. We are continuously working on it to improve this plugin. If You can spare a minute, Please help us by leaving a five star rating on wordpress.org")]),t._v(" "),e("a",{staticClass:"el-button el-button--success el-button--small",attrs:{target:"_blank",href:"https://wordpress.org/support/plugin/ninja-tables/reviews/#new-post"},on:{click:function(e){return t.recordActivity("yes")}}},[t._v("Happy To Help")]),t._v(" "),e("span",{staticStyle:{cursor:"pointer","font-size":"11px"},on:{click:function(e){return t.recordActivity("no")}}},[t._v("Hide Notification")])])])}),[],!1,null,null,null).exports},props:["hasPro"],data:function(){return{modalVisible:!1,published_tables:parseInt(window.ninja_table_admin.published_tables),searchAction:0,searchString:"",selected:[],review_option:window.ninja_table_admin.show_review_dialog}},methods:{addTableAction:function(t){this.$router.push({name:"data_items",params:{table_id:t}}),this.modalVisible=!1},getData:function(){this.searchAction++},makeSelection:function(t){this.selected=t},handleBulkActions:function(t){"delete"===t&&this.deleteTables()},deleteTables:function(){this.selected.length&&this.$confirm(this.$t("This will permanently delete the selected tables. Continue?"),"Warning",{confirmButtonText:this.$t("Yes, Delete"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then((function(){})).catch((function(){}))}},mounted:function(){var t=this;window.ninjaTableBus.$on("addedTable",(function(){t.published_tables||(window.ninja_table_admin.published_tables=1)}))}};var ce=a(9420),ue={insert:"head",singleton:!1};s()(ce.Z,ue);ce.Z.locals;const de=n(re,(function(){var t=this,e=t._self._c;return e("div",[t.published_tables?[e("div",{staticClass:"row clearfix",staticStyle:{"margin-top":"10px"}},[e("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),e("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[e("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],staticClass:"form-control inline",attrs:{id:"search",placeholder:"Search",type:"text"},domProps:{value:t.searchString},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getData.apply(null,arguments)},input:function(e){e.target.composing||(t.searchString=e.target.value)}}}),t._v(" "),e("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),e("router-link",{attrs:{to:{name:"import_tables"}}},[e("el-button",{attrs:{size:"small"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")])],1)]),t._v(" "),e("hr"),t._v(" "),e("list-all-tables",{directives:[{name:"show",rawName:"v-show",value:t.published_tables,expression:"published_tables"}],attrs:{searchString:t.searchString,searchAction:t.searchAction},on:{total_table:function(e){t.published_tables=!0},selection:t.makeSelection}})]:e("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),e("el-dialog",{attrs:{"close-on-click-modal":!1,title:t.$t("How would you like to create your table?"),visible:t.modalVisible,top:"50px",width:"75%","append-to-body":!0,"custom-class":"create-table-modal"},on:{"update:visible":function(e){t.modalVisible=e}}},[e("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),e("lead-modal")],2)}),[],!1,null,null,null).exports;const pe=n({name:"Tools",data:function(){return{has_pro:!!window.ninja_table_admin.hasPro,menuItems:[]}},computed:{active_menu:function(){return this.$route.name}},methods:{setUpMenuItems:function(){this.menuItems=this.applyFilters("ninja_table_settings_tools",[{route:"import_tables",title:this.$t("Import"),icon_class:"el-icon-upload",status:!0},{route:"default_table_appearance",title:this.$t("Global Appearance"),icon_class:"el-icon-star-off",status:!0},{route:"permission",title:this.$t("Permission"),icon_class:"el-icon-setting",status:!0},{route:"licensing",title:this.$t("License"),icon_class:"ninja-tables-dashicons dashicons dashicons-shield",status:this.has_pro},{route:"global_settings",title:this.$t("Global Settings"),icon_class:"el-icon-menu",status:!0}])}},mounted:function(){this.setUpMenuItems()}},(function(){var t=this,e=t