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

Version Description

(Date: August 10, 2022) = * Improves NinjaTableClass.php

Download this release

Release Info

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

Code changes from version 4.2.2 to 4.2.3

assets/css/ninja-table-builder-public.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ .fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-fade-in-enter,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1)}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1)}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1)}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:height .3s ease-in-out,padding-top .3s ease-in-out,padding-bottom .3s ease-in-out}.horizontal-collapse-transition{transition:width .3s ease-in-out,padding-left .3s ease-in-out,padding-right .3s ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}@font-face{font-display:"auto";font-family:element-icons;font-style:normal;font-weight:400;src:url(../fonts/vendor/element-ui/lib/theme-chalk/element-icons.woff?313f7dacf2076822059d2dca26dedfc6) format("woff"),url(../fonts/vendor/element-ui/lib/theme-chalk/element-icons.ttf?4520188144a17fb24a6af28a70dae0ce) format("truetype")}[class*=" el-icon-"],[class^=el-icon-]{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:element-icons!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;vertical-align:baseline}.el-icon-ice-cream-round:before{content:"\e6a0"}.el-icon-ice-cream-square:before{content:"\e6a3"}.el-icon-lollipop:before{content:"\e6a4"}.el-icon-potato-strips:before{content:"\e6a5"}.el-icon-milk-tea:before{content:"\e6a6"}.el-icon-ice-drink:before{content:"\e6a7"}.el-icon-ice-tea:before{content:"\e6a9"}.el-icon-coffee:before{content:"\e6aa"}.el-icon-orange:before{content:"\e6ab"}.el-icon-pear:before{content:"\e6ac"}.el-icon-apple:before{content:"\e6ad"}.el-icon-cherry:before{content:"\e6ae"}.el-icon-watermelon:before{content:"\e6af"}.el-icon-grape:before{content:"\e6b0"}.el-icon-refrigerator:before{content:"\e6b1"}.el-icon-goblet-square-full:before{content:"\e6b2"}.el-icon-goblet-square:before{content:"\e6b3"}.el-icon-goblet-full:before{content:"\e6b4"}.el-icon-goblet:before{content:"\e6b5"}.el-icon-cold-drink:before{content:"\e6b6"}.el-icon-coffee-cup:before{content:"\e6b8"}.el-icon-water-cup:before{content:"\e6b9"}.el-icon-hot-water:before{content:"\e6ba"}.el-icon-ice-cream:before{content:"\e6bb"}.el-icon-dessert:before{content:"\e6bc"}.el-icon-sugar:before{content:"\e6bd"}.el-icon-tableware:before{content:"\e6be"}.el-icon-burger:before{content:"\e6bf"}.el-icon-knife-fork:before{content:"\e6c1"}.el-icon-fork-spoon:before{content:"\e6c2"}.el-icon-chicken:before{content:"\e6c3"}.el-icon-food:before{content:"\e6c4"}.el-icon-dish-1:before{content:"\e6c5"}.el-icon-dish:before{content:"\e6c6"}.el-icon-moon-night:before{content:"\e6ee"}.el-icon-moon:before{content:"\e6f0"}.el-icon-cloudy-and-sunny:before{content:"\e6f1"}.el-icon-partly-cloudy:before{content:"\e6f2"}.el-icon-cloudy:before{content:"\e6f3"}.el-icon-sunny:before{content:"\e6f6"}.el-icon-sunset:before{content:"\e6f7"}.el-icon-sunrise-1:before{content:"\e6f8"}.el-icon-sunrise:before{content:"\e6f9"}.el-icon-heavy-rain:before{content:"\e6fa"}.el-icon-lightning:before{content:"\e6fb"}.el-icon-light-rain:before{content:"\e6fc"}.el-icon-wind-power:before{content:"\e6fd"}.el-icon-baseball:before{content:"\e712"}.el-icon-soccer:before{content:"\e713"}.el-icon-football:before{content:"\e715"}.el-icon-basketball:before{content:"\e716"}.el-icon-ship:before{content:"\e73f"}.el-icon-truck:before{content:"\e740"}.el-icon-bicycle:before{content:"\e741"}.el-icon-mobile-phone:before{content:"\e6d3"}.el-icon-service:before{content:"\e6d4"}.el-icon-key:before{content:"\e6e2"}.el-icon-unlock:before{content:"\e6e4"}.el-icon-lock:before{content:"\e6e5"}.el-icon-watch:before{content:"\e6fe"}.el-icon-watch-1:before{content:"\e6ff"}.el-icon-timer:before{content:"\e702"}.el-icon-alarm-clock:before{content:"\e703"}.el-icon-map-location:before{content:"\e704"}.el-icon-delete-location:before{content:"\e705"}.el-icon-add-location:before{content:"\e706"}.el-icon-location-information:before{content:"\e707"}.el-icon-location-outline:before{content:"\e708"}.el-icon-location:before{content:"\e79e"}.el-icon-place:before{content:"\e709"}.el-icon-discover:before{content:"\e70a"}.el-icon-first-aid-kit:before{content:"\e70b"}.el-icon-trophy-1:before{content:"\e70c"}.el-icon-trophy:before{content:"\e70d"}.el-icon-medal:before{content:"\e70e"}.el-icon-medal-1:before{content:"\e70f"}.el-icon-stopwatch:before{content:"\e710"}.el-icon-mic:before{content:"\e711"}.el-icon-copy-document:before{content:"\e718"}.el-icon-full-screen:before{content:"\e719"}.el-icon-switch-button:before{content:"\e71b"}.el-icon-aim:before{content:"\e71c"}.el-icon-crop:before{content:"\e71d"}.el-icon-odometer:before{content:"\e71e"}.el-icon-time:before{content:"\e71f"}.el-icon-bangzhu:before{content:"\e724"}.el-icon-close-notification:before{content:"\e726"}.el-icon-microphone:before{content:"\e727"}.el-icon-turn-off-microphone:before{content:"\e728"}.el-icon-position:before{content:"\e729"}.el-icon-postcard:before{content:"\e72a"}.el-icon-message:before{content:"\e72b"}.el-icon-chat-line-square:before{content:"\e72d"}.el-icon-chat-dot-square:before{content:"\e72e"}.el-icon-chat-dot-round:before{content:"\e72f"}.el-icon-chat-square:before{content:"\e730"}.el-icon-chat-line-round:before{content:"\e731"}.el-icon-chat-round:before{content:"\e732"}.el-icon-set-up:before{content:"\e733"}.el-icon-turn-off:before{content:"\e734"}.el-icon-open:before{content:"\e735"}.el-icon-connection:before{content:"\e736"}.el-icon-link:before{content:"\e737"}.el-icon-cpu:before{content:"\e738"}.el-icon-thumb:before{content:"\e739"}.el-icon-female:before{content:"\e73a"}.el-icon-male:before{content:"\e73b"}.el-icon-guide:before{content:"\e73c"}.el-icon-news:before{content:"\e73e"}.el-icon-price-tag:before{content:"\e744"}.el-icon-discount:before{content:"\e745"}.el-icon-wallet:before{content:"\e747"}.el-icon-coin:before{content:"\e748"}.el-icon-money:before{content:"\e749"}.el-icon-bank-card:before{content:"\e74a"}.el-icon-box:before{content:"\e74b"}.el-icon-present:before{content:"\e74c"}.el-icon-sell:before{content:"\e6d5"}.el-icon-sold-out:before{content:"\e6d6"}.el-icon-shopping-bag-2:before{content:"\e74d"}.el-icon-shopping-bag-1:before{content:"\e74e"}.el-icon-shopping-cart-2:before{content:"\e74f"}.el-icon-shopping-cart-1:before{content:"\e750"}.el-icon-shopping-cart-full:before{content:"\e751"}.el-icon-smoking:before{content:"\e752"}.el-icon-no-smoking:before{content:"\e753"}.el-icon-house:before{content:"\e754"}.el-icon-table-lamp:before{content:"\e755"}.el-icon-school:before{content:"\e756"}.el-icon-office-building:before{content:"\e757"}.el-icon-toilet-paper:before{content:"\e758"}.el-icon-notebook-2:before{content:"\e759"}.el-icon-notebook-1:before{content:"\e75a"}.el-icon-files:before{content:"\e75b"}.el-icon-collection:before{content:"\e75c"}.el-icon-receiving:before{content:"\e75d"}.el-icon-suitcase-1:before{content:"\e760"}.el-icon-suitcase:before{content:"\e761"}.el-icon-film:before{content:"\e763"}.el-icon-collection-tag:before{content:"\e765"}.el-icon-data-analysis:before{content:"\e766"}.el-icon-pie-chart:before{content:"\e767"}.el-icon-data-board:before{content:"\e768"}.el-icon-data-line:before{content:"\e76d"}.el-icon-reading:before{content:"\e769"}.el-icon-magic-stick:before{content:"\e76a"}.el-icon-coordinate:before{content:"\e76b"}.el-icon-mouse:before{content:"\e76c"}.el-icon-brush:before{content:"\e76e"}.el-icon-headset:before{content:"\e76f"}.el-icon-umbrella:before{content:"\e770"}.el-icon-scissors:before{content:"\e771"}.el-icon-mobile:before{content:"\e773"}.el-icon-attract:before{content:"\e774"}.el-icon-monitor:before{content:"\e775"}.el-icon-search:before{content:"\e778"}.el-icon-takeaway-box:before{content:"\e77a"}.el-icon-paperclip:before{content:"\e77d"}.el-icon-printer:before{content:"\e77e"}.el-icon-document-add:before{content:"\e782"}.el-icon-document:before{content:"\e785"}.el-icon-document-checked:before{content:"\e786"}.el-icon-document-copy:before{content:"\e787"}.el-icon-document-delete:before{content:"\e788"}.el-icon-document-remove:before{content:"\e789"}.el-icon-tickets:before{content:"\e78b"}.el-icon-folder-checked:before{content:"\e77f"}.el-icon-folder-delete:before{content:"\e780"}.el-icon-folder-remove:before{content:"\e781"}.el-icon-folder-add:before{content:"\e783"}.el-icon-folder-opened:before{content:"\e784"}.el-icon-folder:before{content:"\e78a"}.el-icon-edit-outline:before{content:"\e764"}.el-icon-edit:before{content:"\e78c"}.el-icon-date:before{content:"\e78e"}.el-icon-c-scale-to-original:before{content:"\e7c6"}.el-icon-view:before{content:"\e6ce"}.el-icon-loading:before{content:"\e6cf"}.el-icon-rank:before{content:"\e6d1"}.el-icon-sort-down:before{content:"\e7c4"}.el-icon-sort-up:before{content:"\e7c5"}.el-icon-sort:before{content:"\e6d2"}.el-icon-finished:before{content:"\e6cd"}.el-icon-refresh-left:before{content:"\e6c7"}.el-icon-refresh-right:before{content:"\e6c8"}.el-icon-refresh:before{content:"\e6d0"}.el-icon-video-play:before{content:"\e7c0"}.el-icon-video-pause:before{content:"\e7c1"}.el-icon-d-arrow-right:before{content:"\e6dc"}.el-icon-d-arrow-left:before{content:"\e6dd"}.el-icon-arrow-up:before{content:"\e6e1"}.el-icon-arrow-down:before{content:"\e6df"}.el-icon-arrow-right:before{content:"\e6e0"}.el-icon-arrow-left:before{content:"\e6de"}.el-icon-top-right:before{content:"\e6e7"}.el-icon-top-left:before{content:"\e6e8"}.el-icon-top:before{content:"\e6e6"}.el-icon-bottom:before{content:"\e6eb"}.el-icon-right:before{content:"\e6e9"}.el-icon-back:before{content:"\e6ea"}.el-icon-bottom-right:before{content:"\e6ec"}.el-icon-bottom-left:before{content:"\e6ed"}.el-icon-caret-top:before{content:"\e78f"}.el-icon-caret-bottom:before{content:"\e790"}.el-icon-caret-right:before{content:"\e791"}.el-icon-caret-left:before{content:"\e792"}.el-icon-d-caret:before{content:"\e79a"}.el-icon-share:before{content:"\e793"}.el-icon-menu:before{content:"\e798"}.el-icon-s-grid:before{content:"\e7a6"}.el-icon-s-check:before{content:"\e7a7"}.el-icon-s-data:before{content:"\e7a8"}.el-icon-s-opportunity:before{content:"\e7aa"}.el-icon-s-custom:before{content:"\e7ab"}.el-icon-s-claim:before{content:"\e7ad"}.el-icon-s-finance:before{content:"\e7ae"}.el-icon-s-comment:before{content:"\e7af"}.el-icon-s-flag:before{content:"\e7b0"}.el-icon-s-marketing:before{content:"\e7b1"}.el-icon-s-shop:before{content:"\e7b4"}.el-icon-s-open:before{content:"\e7b5"}.el-icon-s-management:before{content:"\e7b6"}.el-icon-s-ticket:before{content:"\e7b7"}.el-icon-s-release:before{content:"\e7b8"}.el-icon-s-home:before{content:"\e7b9"}.el-icon-s-promotion:before{content:"\e7ba"}.el-icon-s-operation:before{content:"\e7bb"}.el-icon-s-unfold:before{content:"\e7bc"}.el-icon-s-fold:before{content:"\e7a9"}.el-icon-s-platform:before{content:"\e7bd"}.el-icon-s-order:before{content:"\e7be"}.el-icon-s-cooperation:before{content:"\e7bf"}.el-icon-bell:before{content:"\e725"}.el-icon-message-solid:before{content:"\e799"}.el-icon-video-camera:before{content:"\e772"}.el-icon-video-camera-solid:before{content:"\e796"}.el-icon-camera:before{content:"\e779"}.el-icon-camera-solid:before{content:"\e79b"}.el-icon-download:before{content:"\e77c"}.el-icon-upload2:before{content:"\e77b"}.el-icon-upload:before{content:"\e7c3"}.el-icon-picture-outline-round:before{content:"\e75f"}.el-icon-picture-outline:before{content:"\e75e"}.el-icon-picture:before{content:"\e79f"}.el-icon-close:before{content:"\e6db"}.el-icon-check:before{content:"\e6da"}.el-icon-plus:before{content:"\e6d9"}.el-icon-minus:before{content:"\e6d8"}.el-icon-help:before{content:"\e73d"}.el-icon-s-help:before{content:"\e7b3"}.el-icon-circle-close:before{content:"\e78d"}.el-icon-circle-check:before{content:"\e720"}.el-icon-circle-plus-outline:before{content:"\e723"}.el-icon-remove-outline:before{content:"\e722"}.el-icon-zoom-out:before{content:"\e776"}.el-icon-zoom-in:before{content:"\e777"}.el-icon-error:before{content:"\e79d"}.el-icon-success:before{content:"\e79c"}.el-icon-circle-plus:before{content:"\e7a0"}.el-icon-remove:before{content:"\e7a2"}.el-icon-info:before{content:"\e7a1"}.el-icon-question:before{content:"\e7a4"}.el-icon-warning-outline:before{content:"\e6c9"}.el-icon-warning:before{content:"\e7a3"}.el-icon-goods:before{content:"\e7c2"}.el-icon-s-goods:before{content:"\e7b2"}.el-icon-star-off:before{content:"\e717"}.el-icon-star-on:before{content:"\e797"}.el-icon-more-outline:before{content:"\e6cc"}.el-icon-more:before{content:"\e794"}.el-icon-phone-outline:before{content:"\e6cb"}.el-icon-phone:before{content:"\e795"}.el-icon-user:before{content:"\e6e3"}.el-icon-user-solid:before{content:"\e7a5"}.el-icon-setting:before{content:"\e6ca"}.el-icon-s-tools:before{content:"\e7ac"}.el-icon-delete:before{content:"\e6d7"}.el-icon-delete-solid:before{content:"\e7c9"}.el-icon-eleme:before{content:"\e7c7"}.el-icon-platform-eleme:before{content:"\e7ca"}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
2
+ .el-rate__icon,.el-rate__item{display:inline-block;position:relative}.el-rate{height:20px;line-height:1}.el-rate:active,.el-rate:focus{outline-width:0}.el-rate__item{font-size:0;vertical-align:middle}.el-rate__icon{color:#c0c4cc;font-size:18px;margin-right:6px;transition:.3s}.el-rate__decimal,.el-rate__icon .path2{left:0;position:absolute;top:0}.el-rate__icon.hover{transform:scale(1.15)}.el-rate__decimal{display:inline-block;overflow:hidden}.el-rate__text{font-size:14px;vertical-align:middle}
3
+ .el-progress{line-height:1;position:relative}.el-progress__text{color:#606266;display:inline-block;font-size:14px;line-height:1;margin-left:10px;vertical-align:middle}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress-bar,.el-progress-bar__inner:after,.el-progress-bar__innerText{display:inline-block;vertical-align:middle}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:#67c23a}.el-progress.is-success .el-progress__text{color:#67c23a}.el-progress.is-warning .el-progress-bar__inner{background-color:#e6a23c}.el-progress.is-warning .el-progress__text{color:#e6a23c}.el-progress.is-exception .el-progress-bar__inner{background-color:#f56c6c}.el-progress.is-exception .el-progress__text{color:#f56c6c}.el-progress-bar{box-sizing:border-box;margin-right:-55px;padding-right:50px;width:100%}.el-progress-bar__outer{background-color:#ebeef5;border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:#409eff;border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";height:100%}.el-progress-bar__innerText{color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}
4
+ .ntb_table_wrapper{max-width:none;overflow-y:scroll;word-break:break-word}.ntb_table_wrapper *{margin:0;padding:0}.ntb_table_wrapper table{box-sizing:initial;width:auto}.ntb_table_wrapper table hr{all:revert}.ntb_table_wrapper table tbody{display:block}.ntb_table_wrapper table tbody tr.firstRowSticky{position:-webkit-sticky;position:sticky;top:0;z-index:2}.ntb_table_wrapper table tbody tr td{border:initial}.ntb_table_wrapper table tbody .button-content-wrapper{align-items:center;display:flex;justify-content:center}.ntb_table_wrapper table tbody .ntb-el-button:hover .svgIcon{background-color:var(--icon-color-hover)!important}.ntb_table_wrapper table .svgIcon{display:inline-block;mask-size:cover;-webkit-mask-size:cover}.ntb_table_wrapper table .icon-text-wrapper{align-items:center;justify-content:center}.ntb_table_wrapper table .ntb-progress .el-progress{align-items:center;display:flex;justify-content:center}.ntb_table_wrapper table .ntb-progress .el-progress .el-progress__text{color:var(--progress-bar-text-color);font-size:var(--progress-bar-font-size)!important}.ntb_table_wrapper table .ntb-rating .el-rate__item i{font-size:var(--rating-font-size)}.ntb_table_wrapper table .ribbon-wrapper{box-shadow:0 0 15px rgba(0,0,0,.1);max-width:600px;position:relative;width:90%;z-index:1}.ntb_table_wrapper table .ribbon-wrapper .corner{height:100px;overflow:hidden;position:absolute;width:120px}.ntb_table_wrapper table .ribbon-wrapper .corner .content{box-shadow:0 1px 2px rgba(0,0,0,.5);display:block;position:absolute;text-align:center}.ntb_table_wrapper table .ribbon-wrapper .corner .left{right:-25px;top:30px;transform:rotate(-45deg)}.ntb_table_wrapper table .ribbon-wrapper .corner .right{left:-25px;top:30px;transform:rotate(45deg)}.ntb_table_wrapper table .ribbon-wrapper .bookmark{filter:drop-shadow(2px 3px 2px rgba(0,0,0,.5));overflow:hidden;position:absolute}.ntb_table_wrapper table .ribbon-wrapper .bookmark>.content{font-size:1.25rem;font-weight:400;padding:8px 2px 4px;text-align:center}.ntb_table_wrapper table .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%)}.ntb_table_wrapper table .ribbon-wrapper .side{background-size:cover;float:left;position:relative}.ntb_table_wrapper table .ribbon-wrapper .side .content{box-shadow:-1px 2px 3px rgba(0,0,0,.3);padding:8px 10px;position:absolute}.ntb_table_wrapper table .ribbon-wrapper .side .content:before{background:inherit;border-radius:5px 0 0 5px;content:"";height:100%;left:-6.5px;padding:0 0 7px;position:absolute;top:0;width:7px}.ntb_table_wrapper table .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}.remove-elements{display:none}
assets/js/ninja-table-builder-public.js ADDED
@@ -0,0 +1 @@
 
1
+ (()=>{function t(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var a,n,o=[],i=!0,s=!1;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){s=!0,n=t}finally{try{i||null==r.return||r.return()}finally{if(s)throw n}}return o}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);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 e(t,r)}(t,r)||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 r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}jQuery(document).ready((function(e){e(".ntb_table_wrapper").each((function(){var r=e(this)[0],a=r.innerHTML,n=JSON.parse(r.dataset.responsive),o=n.general.options.enable_responsive_table.value;if(!0===o||"true"===o){var i=function(t,r,a){if("false"===t||!1===t){t=!0,A=!1,H=!1;var o=n.mode_options.options.devices.mobile,i=o.disable_breakpoint.value,s=o.top_row_as_header.value,u=o.items_per_row.value,f=n.mode_options.options.devices.mobile.cell_border.value;"false"!==i&&!1!==i||(e("#"+c+" table tbody").empty(),"true"===s||!0===s?b(u,r,a,f):d(u,r,a))}else l(H)},s=function(t,r,a){if("false"===t||!1===t){C=!1,t=!0,H=!1;var o=n.mode_options.options.devices.tablet,i=o.disable_breakpoint.value,s=o.top_row_as_header.value,u=o.items_per_row.value,f=n.mode_options.options.devices.tablet.cell_border.value;"false"===i||!1===i?(e("#"+c+" table tbody").empty(),"true"===s||!0===s?b(u,r,a,f):d(u,r,a)):l(H)}},l=function(t){"false"!==t&&!1!==t||(C=!1,A=!1,H=!0,e("#"+c)[0].innerHTML=a)},d=function(t,r,a){for(var n=r/t+"px",o={},i={},s={},l={},d={},b=0,u=0;u<Object.keys(y).length;u++)0!==m[u]&&0!==h[u]&&(o[b]=y[u].innerHTML,i[b]=p[u],s[b]=v[u],l[b]=w[u],d[b]=_[u],b++);for(var f=Math.ceil(b/t),g=0,j=0;j<f;j++){e("#"+c+" table tbody").append("<tr></tr>");var O=e("#"+c+" table tbody tr");O.addClass(a+"_view");for(var x=O.addClass("staticRow"),M=0;M<t;M++){if(void 0!==o[g]){var C=x[j].insertCell();C.innerHTML=o[g],e(C).prop("id",l[g]),e(C).addClass(d[g]),e(C).attr("style",i[g]+" "+s[g]),e(C).css({width:n,"min-width":n,"max-width":n,"box-sizing":"border-box"})}g++}}},b=function(r,a,n,o){for(var i=a/(r+1)+"px",s=Math.ceil(M/(r*x)),l=0,d={},b={},u={},f={},g={},j={},O=0;O<s;O++)for(var C=0;C<x;C++){for(var A={},H={},T={},L={},S={},k={},z=0;z<=r;z++){var I=O*r*x+z*x+C;0===z?(A[z]=y[C],L[z]=p[C]+" "+v[C],S[z]=h[C],k[z]=m[C],H[z]=w[C],T[z]=_[C]):(A[z]=y[I],L[z]=p[I]+" "+v[I],S[z]=h[I],k[z]=m[I],H[z]=w[I],T[z]=_[I])}d[l]=Object.assign(A),f[l]=Object.assign(L),g[l]=Object.assign(S),j[l]=Object.assign(k),b[l]=Object.assign(H),u[l]=Object.assign(T),l++}for(var N=0,R=Object.entries(d);N<R.length;N++){var E=t(R[N],2),J=E[0],Q=E[1];e("#"+c+" table tbody").append("<tr></tr>");var U=e("#"+c+" table tbody tr");U.addClass(n+"_view");for(var $=U.addClass("topRowAsHeader"),q=0;q<Object.keys(Q).length;q++)if(void 0!==Q[q]){var B=$[J].insertCell();B.innerHTML=Q[q].innerHTML,e(B).prop("id",b[J][q]),e(B).addClass(u[J][q]),e(B).attr("style",f[J][q]),e(B).prop("colspan",g[J][q]),e(B).prop("rowspan",j[J][q]),e(B).css({width:i,"min-width":i,"max-width":i,"box-sizing":"border-box"})}var D=Number(J)+1,F=Object.entries(d).length;if(D%x==0&&D!==F){var G=$[J];e(G).css("border-bottom",o+"px solid black")}}},c=r.id,u=e("#"+c+" table")[0].rows,f={},p={},v={},y={},h={},m={},w={},_={},g=0;e(u).each((function(t,r){f[t]=Object.assign(r),e(r).find("td").each((function(r,a){y[g]=Object.assign(a),p[g]=e(f[t]).attr("style"),v[g]=e(y[g]).attr("style"),h[g]=e(a).attr("rowspan"),m[g]=e(a).attr("colspan"),w[g]=e(a).attr("id"),_[g]=e(a).attr("class"),g++}))}));var j=e("#"+c+" table").find("tr").length,O=e("#"+c+" table tr").find("td").length,x=Math.ceil(O/j),M=O-x,C=!1,A=!1,H=!1,T=e(window).width(),L=Number(.8*T);T<=700?i(C,L,"mobile"):T>700&&T<1024?s(A,L,"tablet"):l(H),e(window).resize((function(){var t=.8*e(window).width();t<=700?i(C,t,"mobile"):t>700&&t<1024?s(A,t,"tablet"):l(H)}))}}))}))})();
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()},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})}}},3975:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-menu.el-menu--horizontal{border-bottom:none}",""]);const o=i},5981:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6944:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".form-item[data-v-0ccd418e]{margin:10px 0}.form-item label[data-v-0ccd418e]{width:100px}",""]);const o=i},3601:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6167:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".remove[data-v-590fa148]{display:inline-block}",""]);const o=i},420:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4007:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5875:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},370:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4701:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6702:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5783:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7571:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},464:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},2134:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},476:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},8698:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3582:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6481:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7203:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4867:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1376:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},8523:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7851:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6030:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".spaced>.el-radio[data-v-7c7cfd0a]{line-height:2;margin-left:0;margin-right:30px!important}",""]);const o=i},3835:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1606:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3836:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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}",""]);const o=i},4946:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5529:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5117:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".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 .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}",""]);const o=i},3984:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},9838:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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;padding-left:var(--table-wrapper-padding);padding-top:5px;position:relative;word-break:break-word;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:3}.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 tr.firstRowSticky{position:-webkit-sticky;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:2}.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},6732:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},8052:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},2010:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1547:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4241:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},2980:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3589:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},8099:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7004:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5003:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1687:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},2482:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4135:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".premium-notice .buy_now_button[data-v-06fd6e1a]{text-decoration:none}",""]);const o=i},1502:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""]);const o=i},1714:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1519: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}},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)}}},8674: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(8674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});t.exports=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(1903);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(8674)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=n},1903: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],E=T||k(v),I=v?S?k("entries"):E:void 0,D="Array"==e&&$.entries||T;if(D&&(x=u(D.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,E=function(){return T.call(this)}),n&&!g||!p&&!j&&$[d]||l($,d,E),s[e]=E,s[C]=h,v)if(y={values:S?E:k(_),keys:b?E: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 E=[C].concat(j,S,p);void 0!==T&&E.push(T);var I=String(e.apply(void 0,E))}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 E(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=E(t)[e];n;){var o=E(n)[a];if(!("top"===a||"left"===a?i>=o:i<=o))return n;if(n===T())break;n=O(n,!1)}return!1}function D(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 P(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 F(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 z(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:E(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=E(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:Ft,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=[],Et="undefined"!=typeof document,It=_,Dt=d||u?"cssFloat":"float",Pt=Et&&!h&&!_&&"draggable"in document.createElement("div"),At=function(){if(Et){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=D(t,0,e),o=D(t,1,e),l=i&&S(i),s=o&&S(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+E(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(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[Dt]||o&&"none"===a[Dt]&&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")},Ft=function(){!At&&G&&S(G,"display","")};Et&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var zt=function(t){if(Q){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!P(t)){var e=E(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&&Pt,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||E(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=E(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",zt),v(s,"mousemove",zt),v(s,"touchmove",zt),v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,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);Ft()}},_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=E(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=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=E(Q),M("dragOverValid"),Lt.eventCanceled)return h;if(n)return X=K,F(),this._hideClone(),M("revert"),Lt.eventCanceled||(tt?K.insertBefore(Q,tt):K.appendChild(Q)),B(!0);var f=P(o,r.draggable);if(!f||function(t,e,a){var n=E(P(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=E(s)),!1!==Rt(K,o,Q,e,s,a,t,!!s))return F(),o.appendChild(Q),X=o,L(),B(!0)}else if(s.parentNode===o){a=E(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 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 D=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),F(),N&&!D?o.appendChild(Q):s.parentNode.insertBefore(Q,N?D:s),j&&z(j,0,$-j.scrollTop),X=Q.parentNode,void 0===b||St||(gt=Math.abs(b-E(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,E(a),t,n)},changed:L},c))}function F(){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&&zt(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",zt),b(document,"mousemove",zt),b(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,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()}},Et&&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:F,closest:w,toggleClass:C,clone:B,index:A,nextTick:Vt,cancelNextTick:Ut,detectDirection:Nt,getChild:D},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=F((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,_=E(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 D=w&&(Math.abs(b-o)<=s&&$+g<k)-(Math.abs(v-o)<=s&&!!$),P=x&&(Math.abs(f-l)<=s&&I+y<C)-(Math.abs(h-l)<=s&&!!I);if(!Kt[d])for(var A=0;A<=d;A++)Kt[A]||(Kt[A]={});Kt[d].vx==D&&Kt[d].vy==P&&Kt[d].el===m||(Kt[d].el=m,Kt[d].vx=D,Kt[d].vy=P,clearInterval(Kt[d].pid),0==D&&0==P||(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)||z(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=D(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=E(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?E(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=E(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=E(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?E(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);const n={name:"home",data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[]}},computed:{activeMenu:function(){return-1!=["home","help"].indexOf(this.$route.name)?this.$route.name:"import_tables"}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])}},mounted:function(){this.setTopMenu()}};var i=a(3379),o=a.n(i),l=a(3975),s={insert:"head",singleton:!1};o()(l.Z,s);l.Z.locals;function r(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 c=r(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_main_nav"},[a("el-menu",{attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[a("span",{staticClass:"plugin-name"},[t._v("\n "+t._s(t.$t("Ninja Tables"))+" "),t.has_pro?[t._v(t._s(t.$t("Pro")))]:t._e()],2),t._v(" "),t._l(t.topMenus,(function(e){return a("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[a("i",{class:e.icon_class}),t._v(" "),a("span",[t._v("\n "+t._s(e.title)+"\n ")])])})),t._v(" "),a("el-menu-item",{staticClass:"buy_pro_tab",attrs:{index:"buy-pro"}},[t.has_pro?t._e():a("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("\n "+t._s(t.$t("Upgrade To Pro"))+"\n ")])])],2)],1),t._v(" "),a("router-view",{attrs:{"has-pro":t.has_pro}})],1)}),[],!1,null,null,null).exports;const u={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}};var d=a(7004),p={insert:"head",singleton:!1};o()(d.Z,p);d.Z.locals;const m=r(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_intro_welcome"},[a("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),a("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),a("div",{staticClass:"ninja_actions"},[a("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),a("router-link",{attrs:{to:{name:"import_tables"}}},[a("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),a("hr"),t._v(" "),t._m(0)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_docs"},[a("h4",[t._v("Ninja Tables Documentation:")]),t._v(" "),a("ul",[a("li",[a("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(" "),a("li",[a("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(" "),a("li",[a("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 h=r({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.$createElement,a=t._self._c||e;return a("div",{staticClass:"tablenav-pages"},[t.paginate.total?a("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),a("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[a("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),a("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),a("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 "),a("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[a("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),a("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])}),[],!1,null,null,null).exports,f={name:"Home",components:{ninja_pagination:h},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 v=a(1687),b={insert:"head",singleton:!1};o()(v.Z,b);v.Z.locals;const g=r(f,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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}},[a("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return["drag_and_drop"===e.row.dataSourceType?a("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")]):a("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("strong",[t.shouldBeVisible(e.row)?["drag_and_drop"===e.row.dataSourceType?a("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t(e.row.post_title))+"\n ")]):a("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t(e.row.post_title))+"\n ")])]:[t._v("\n "+t._s(e.row.post_title)+"\n ")],t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=e.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(e.row.post_status)+")\n ")])],2),t._v(" "),a("div",{staticClass:"row-actions"},[t.shouldBeVisible(e.row)?a("span",{staticClass:"row-edit"},["drag_and_drop"===e.row.dataSourceType?a("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]):a("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(e.row)?a("span",{staticClass:"row-preview"},[a("a",{attrs:{rel:"noopener",href:e.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)?a("span",{staticClass:"row-duplicate"},[a("a",{attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.duplicate(e.row.ID,e.row.dataSourceType)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)&&e.row.fluentfrom_url?a("span",{staticClass:"row-duplicate"},[a("a",{attrs:{href:e.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),a("span",{staticClass:"row-delete"},[a("a",{attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.confirmDeleteTable(e.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(e.row.post_content)}})]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(e){return["drag_and_drop"===e.row.dataSourceType?a("strong",[t._v(t._s(t.$t("Drag & Drop Table")))]):a("strong",[t._v(t._s(t.dataSourceType(e.row)))]),t._v(" "),e.row.remoteURL?[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.remoteURL,placement:"top-start"}},[a("i",{staticClass:"dashicons dashicons-info"})])]:t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},["drag_and_drop"===e.row.dataSourceType?a("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_table_builder id="'+e.row.ID+'"]'}},[a("i",{staticClass:"el-icon-document"}),t._v(' [ninja_table_builder id="'+t._s(e.row.ID)+'"]\n ')]):a("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+e.row.ID+'"]'}},[a("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(e.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),a("div",{staticClass:"pull-right"},[a("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?a("div",[a("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[a("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?a("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[a("hr"),t._v(" "),a("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Upgrade To Pro")])]):t._e()],1)}),[],!1,null,null,null).exports;const y={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 w=a(1714),x={insert:"head",singleton:!1};o()(w.Z,x);w.Z.locals;const k=r(y,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():a("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[a("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),a("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),a("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,e=t.$createElement,a=t._self._c||e;return a("p",{staticStyle:{"font-style":"italic"}},[a("small",[t._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}],!1,null,null,null).exports;function C(t){return function(t){if(Array.isArray(t))return S(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 S(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 S(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 S(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 j(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 T(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const E={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?j(Object(a),!0).forEach((function(e){T(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):j(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=C(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=C(e.operators.concat(this.other_operators)):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=C(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=C(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 I=a(2134),D={insert:"head",singleton:!1};o()(I.Z,D);I.Z.locals;const P=r(E,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wp-post-conditions"},[a("el-row",[a("el-col",{attrs:{md:21}},[a("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[a("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,(function(e,n){return[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{md:7,sm:7}},[a("el-select",{attrs:{placeholder:"Select"},on:{change:function(a){return t.setOperators(a,e)}},model:{value:e.field,callback:function(a){t.$set(e,"field",a)},expression:"condition.field"}},t._l(t.fields,(function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1)],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[a("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(a){t.$set(e,"operator",a)},expression:"condition.operator"}},t._l(e.operators,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(e)||t.isDateField(e)?!t.isSelectable(e)&&t.isDateField(e)?a("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}}):t.isSelectable(e)?a("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}},t._l(e.selectableOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1):t._e():a("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}})],1),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[a("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?a("div",{staticClass:"ninja_post_query_limit"},[a("div",{staticClass:"ninja_form_group"},[a("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Query Limit")]),t._v(" "),a("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("div",{staticClass:"ninja_form_group"},[a("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Order By Column")]),t._v(" "),a("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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 a("el-option",{key:t,attrs:{value:t,label:t}})})),1)],1),t._v(" "),a("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[a("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Order By Type")]),t._v(" "),a("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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"}},[a("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),a("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("small",[t._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}],!1,null,null,null).exports;function A(t){return function(t){if(Array.isArray(t))return N(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 N(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 N(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 N(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){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 M(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?O(Object(a),!0).forEach((function(e){M(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):O(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=A(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 z=a(476),B={insert:"head",singleton:!1};o()(z.Z,B);z.Z.locals;const L=r(F,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wp-post-conditions"},[a("el-row",[a("el-col",{attrs:{md:21}},[a("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[a("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.metas,(function(e,n){return[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{md:7,sm:7}},[a("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(a){return t.setOperators(a,e)}},model:{value:e.field,callback:function(a){t.$set(e,"field",a)},expression:"condition.field"}})],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[a("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(a){t.$set(e,"operator",a)},expression:"condition.operator"}},t._l(e.operators,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[a("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(e.operator)?[a("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[a("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 R={name:"PremiumNotice",props:["highlight"]};var H=a(4135),W={insert:"head",singleton:!1};o()(H.Z,W);H.Z.locals;const q=r(R,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[a("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?a("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),a("b",[t._v("unlimited customizations")]),t._v(",\n "),a("b",[t._v("data filters")]),t._v(",\n "),a("b",[t._v("professional looks")]),t._v(",\n "),a("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),a("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("\n Get Premium Version Now\n ")])])}),[],!1,null,"06fd6e1a",null).exports;const V=r({name:"UpgradeNotice"},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[a("p",[t._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,U={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":P,PremiumNotice:q,UpgradeNotice:V,WpPostMetaQuery:L},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 Y=a(8698),Z={insert:"head",singleton:!1};o()(Y.Z,Z);Y.Z.locals;const J=r(U,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?a("div",[t.hasPLainLayout?[a("el-row",[a("el-col",{staticClass:"table-rows",attrs:{md:12}},[a("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(" "),a("el-col",{staticClass:"table-rows",attrs:{md:12}},[a("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():a("el-row",[a("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),a("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(" "),a("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),a("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),a("el-row",[a("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():[a("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),a("el-steps",{attrs:{active:t.active_step,"align-center":""}},[a("el-step",{attrs:{title:"Step 1"}}),t._v(" "),a("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[a("el-row",{staticStyle:{"margin-top":"20px"}},[a("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"}},[a("div",{staticStyle:{"text-align":"center"}},[a("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?[a("el-row",{staticStyle:{"margin-top":"20px"}},[a("div",{staticStyle:{"text-align":"center"}},[a("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(" "),a("el-row",{staticStyle:{"margin-top":"20px"}},[a("div",[a("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[a("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?a("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(" "),a("el-row",[a("el-col",{attrs:{md:12}},[a("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(" "),a("el-col",{attrs:{md:12}},[t.active_step>0?a("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):[a("upgrade-notice")]:[a("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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. "),a("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 Q=a(6073),X=a.n(Q);const G=r({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;X()(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.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,(function(e,n){return a("div",{staticClass:"nt_each_selection"},[a("div",{staticClass:"nt_query_header"},[a("h3",[t._v(t._s(e.title))]),t._v(" "),a("p",[t._v(t._s(e.description))])]),t._v(" "),a("div",{staticClass:"nt_query_body"},[a("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(e.terms,(function(e){return a("el-checkbox",{key:e.slug,attrs:{label:e.slug}},[t._v(t._s(e.name)+" ("+t._s(e.count)+")\n ")])})),1)],1)])})),t._v(" "),a("div",{staticClass:"nt_each_selection"},[a("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 "),a("b",[t._v("out of stocks")]),t._v(" items\n ")])],1),t._v(" "),a("div",{staticClass:"nt_each_selection"},[a("label",[t._v("\n Initial Order By\n "),a("el-select",{attrs:{size:"mini",placeholder:"Order By"},model:{value:t.query_conditions.order_by,callback:function(e){t.$set(t.query_conditions,"order_by",e)},expression:"query_conditions.order_by"}},t._l(t.product_orders,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),a("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"}},[a("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),a("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)}),[],!1,null,null,null).exports;const K=r({name:"woo_product_table",components:{WooNav:G},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.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),a("div",{staticClass:"form-group"},[a("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.$createElement,a=t._self._c||e;return a("div",{staticClass:"nt_module_header"},[a("h3",[t._v("\n Construct Table from Your WooCommerce Products\n ")]),t._v(" "),a("p",{staticClass:"ninja_subtitle"},[t._v("\n Displays products content in a searchable, sortable with Ninja Tables. "),a("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 tt={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 et=a(7571),at={insert:"head",singleton:!1};o()(et.Z,at);et.Z.locals;const nt=r(tt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():a("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():a("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 "),a("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():a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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():a("div",{staticClass:"form-group"},[a("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 a("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})})),1)],1),t._v(" "),t.form.id?a("div",{staticClass:"form-group"},[a("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("strong",[t._v("Options (Optional)")]),t._v(" "),a("hr"),t._v(" "),a("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[a("el-col",{attrs:{md:12}},[a("el-row",[a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[a("strong",[a("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[a("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),a("el-col",{attrs:{md:18}},[a("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(" "),a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[a("el-row",[a("el-col",{attrs:{md:6}},[a("strong",[a("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[a("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),a("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[a("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[a("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),a("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),a("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[a("br"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("div",{staticClass:"form-group"},[a("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?[a("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[a("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(" "),a("h4",[t._v("See the form in action:")]),t._v(" "),a("br"),t._v(" "),t._m(0)]:a("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),a("div",[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?a("span",[t._v("Installing WP Fluent From...")]):a("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?a("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),a("h4",[t._v("See the form in action:")]),t._v(" "),a("br"),t._v(" "),t._m(2)])],2)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("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.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,null,null).exports;function it(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 ot(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?it(Object(a),!0).forEach((function(e){lt(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):it(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function lt(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const st=r({name:"Remote-Data-Source",components:{PremiumNotice:q,UpgradeNotice:V},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=ot(ot({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=ot(ot({},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.$createElement,a=t._self._c||e;return a("div",[t.editing?[a("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:a("div",{staticClass:"ninja_modal-body"},[a("el-steps",{attrs:{active:t.active_step,"align-center":""}},[a("el-step",{attrs:{title:"Step 1"}}),t._v(" "),a("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[a("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[a("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),a("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),a("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)}}})])]:[a("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}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[a("UpgradeNotice")]:[a("premium-notice")],t._v(" "),a("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():a("el-row",[a("el-col",{attrs:{md:12}},[a("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?a("el-col",{attrs:{md:12}},[a("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?a("div",{staticStyle:{"margin-top":"15px"}},[a("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"}},[a("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(" "),a("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:""},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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 "),a("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 rt={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 ct=a(2482),ut={insert:"head",singleton:!1};o()(ct.Z,ut);ct.Z.locals;const dt=r(rt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_modal-body"},[a("h3",[t._v("Import Table")]),t._v(" "),a("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),a("div",{staticClass:"form"},[a("div",{staticClass:"form-group"},["file"===t.imports.source?[a("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),a("br"),t._v(" "),a("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[a("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),a("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),a("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(e,n){return a("option",{domProps:{value:n}},[t._v(t._s(t.$t(e))+"\n ")])})),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),a("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(" "),a("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 "),a("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?a("div",{staticClass:"form_group ninja_errors"},[a("ul",t._l(t.errors,(function(e,n){return a("li",{key:n},[t._v("\n "+t._s(e.info)+"\n ")])})),0)]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("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.$createElement,a=t._self._c||e;return a("p",{staticClass:"hint"},[t._v("\n Check tutorial for importing data from CSV file\n "),a("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 pt={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 mt=a(370),_t={insert:"head",singleton:!1};o()(mt.Z,_t);mt.Z.locals;const ht=r(pt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[a("div",{staticClass:"ace_container"},[a("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),a("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[a("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 ft=r({name:"remote_sql_form",props:["connection"],data:function(){return{}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sql_connection_wrapper"},[a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB Name\n "),a("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(" "),a("div",{staticClass:"nt_row_2"},[a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB username\n "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB User Password\n "),a("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(" "),a("div",{staticClass:"nt_row_2"},[a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB Host\n "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB Host Port\n "),a("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,vt={name:"CustomSQLQuery",components:{MySqlEditor:ht,PremiumNotice:q,RemoteSqlConnection:ft},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 bt=a(464),gt={insert:"head",singleton:!1};o()(bt.Z,gt);bt.Z.locals;const yt=r(vt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_modal-body"},[a("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),a("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[a("div",{staticClass:"ninja_modal-body"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),a("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?a("div",{staticClass:"form-group"},[a("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[a("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),a("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[a("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),a("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),a("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[a("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[a("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[a("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[a("el-alert",{attrs:{title:"",type:"error",closable:!1}},[a("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 ")])])]:[a("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),a("code",[t._v("$wpdb->get_results()")]),t._v(" function")])}],!1,null,null,null).exports;var wt=a(9980),xt=a.n(wt),kt={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 Ct={name:"Elements",mixins:[kt],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 St=a(8052),jt={insert:"head",singleton:!1};o()(St.Z,jt);St.Z.locals;var $t=r(Ct,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ntb-elements-wrapper",style:[t.itemId===t.item.id?t.margin:""]},[t.itemId===t.item.id&&t.dataTypes(t.item.data.type)?a("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?a("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":""+(""===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?a("span",{style:[t.padding,t.displayBlock,t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[a("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type&&t.itemId===t.item.id?a("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)?a("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?a("span",{on:{mouseleave:function(e){return t.$emit("child-data")}}},[a("a",{style:[t.displayFlex,t.justifyContent],attrs:{href:""+t.item.data.style.link},on:{click:function(t){t.preventDefault()}}},[a("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{alt:""+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?a("span",{staticStyle:{position:"relative",margin:"0",padding:"0",width:"100%"},on:{mouseleave:function(e){return t.$emit("child-data")}}},[a("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[a("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[a("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":""}]},[a("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():a("span",{style:[t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[a(t.item.data.style.listType,{tag:"component",staticClass:"ntb-list-style",style:[t.listStyle,t.padding]},[t._l(t.item.data.value,(function(e,n){return a("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},["stylist_list"===t.item.data.type?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,{"vertical-align":"middle"}]}):t._e(),t._v(" "),a("span",{style:[{"margin-left":t.item.data.style.itemSpacing+"px","vertical-align":"middle"}],domProps:{innerHTML:t._s(e)}})])})),t._v(" "),a("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 Tt=$t.exports;const Et={name:"Datas",mixins:[kt],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)'"]}}}},It=Et;var Dt=a(6732),Pt={insert:"head",singleton:!1};o()(Dt.Z,Pt);Dt.Z.locals;var At=r(It,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ntb-datas-wrapper",style:[t.margin]},["text"===t.item.data.type?a("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?a("div",{staticClass:"hover-item",style:[t.justifyContent,{display:t.item.data.style.fullWidth?"block":"flex"}]},[a("a",{style:[t.justifyContent,t.displayFlex,{"text-decoration":"none"}],attrs:{href:""+t.item.data.style.url,target:t.item.data.style.newTab?"_black":""},on:{click:function(t){t.preventDefault()}}},[a("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}},[a("span",{staticClass:"button-content-wrapper",style:[t.padding]},["left"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e(),t._v(" "),a("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?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e()])])],1)]):"custom_html"===t.item.data.type?a("div",{staticClass:"hover-item",style:[t.padding],domProps:{innerHTML:t._s(t.item.data.value)}}):"shortcode"===t.item.data.type?a("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?a("span",[a("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":""+(""===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?a("span",{staticClass:"hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[a("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type?a("span",{staticClass:"ntb-progress hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[Number(t.item.data.style.percentage)?a("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?a("span",[a("a",{staticClass:"hover-item",style:[t.displayBlock,t.textAlign],attrs:{target:"_blank",href:""+t.item.data.style.link},on:{click:function(t){t.preventDefault()}}},[a("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{src:t.item.data.value,alt:""+t.item.data.style.alt}})])]):"list"===t.item.data.type||"stylist_list"===t.item.data.type?a("span",{staticClass:"ntb-list hover-item",style:[t.textAlign,t.displayFlex,t.justifyContent]},[a(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(e,n){return a("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.$emit("list-item",{index:n})}}},["stylist_list"===t.item.data.type?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),a("span",{style:[t.fontWeight,t.verticalAlignMiddle,{"margin-left":t.item.data.style.itemSpacing+"px"}],domProps:{innerHTML:t._s(e)}})]),t._v(" "),t.manage?t._e():a("div",{staticClass:"icon-styles remove-elements"},[a("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return e.stopPropagation(),t.copyItem(n)}}}),t._v(" "),a("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?a("span",{staticClass:"hover-item",style:[t.displayFlex,t.justifyContent]},[a("span",{staticClass:"icon-text-wrapper",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color]},["left"===t.item.data.style.iconPosition?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),a("span",{style:"\n vertical-align: middle;\n margin-left: "+("left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0)+"px;\n margin-right: "+("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?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e()])]):t._e(),t._v(" "),"ribbon"===t.item.data.type?[a("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[a("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[a("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":""}]},[a("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 Nt=At.exports;function Ot(t){return function(t){if(Array.isArray(t))return Mt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mt(t,e);var 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 Mt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var 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}},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,Ot(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,Ot(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,Ot(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,Ot(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,Ot(n))!==l&&i===Math.min.apply(Math,Ot(n))){var _=t.merge.history[c.style.tdId],h=[],f=[];_.forEach((function(t,e){f.push(t.columnIndex)}));var v=Ot(new Set(f)),b=Ot(new Set(f)),g=v.concat(b);_.forEach((function(t,e){Math.min.apply(Math,Ot(n))!==t.rowIndex&&t.rowIndex<=Math.max.apply(Math,Ot(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,Ot(n));s++)l(s)}();else{o(i);for(var l=Math.min.apply(Math,Ot(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,Ot(n))&&(r.style.colspan>1||0===r.style.colspan)?r.style.colspan=0:e!==Math.min.apply(Math,Ot(n))&&r.style.colspan>1&&(r.style.colspan=0,r.style.rowspan=0):"elseif"===l&&(Math.min.apply(Math,Ot(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,Ot(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,Ot(s)))if("after"!==a||Math.max.apply(Math,Ot(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,Ot(s));u<=i;u++)c(u)}else l>1&&(e=Math.max.apply(Math,Ot(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)}))})),Ot(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,Ot(s)))if("after"!==a||Math.max.apply(Math,Ot(s))!==e-1&&!this.allEqual(r)){o(e);for(var c=Math.min.apply(Math,Ot(s));c<l;c++){var u=this.tableData.data[c];Object.entries(u.rows).forEach((function(e){var 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,Ot(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=Ot(new Set(t)).sort(),s=Ot(new Set(e)).sort(),r=this.findElement(l),c=this.findElement(s);if(r&&c){if(2===t.length&&2===e.length){var u=this.merge.rowColumn.map((function(t){return Number(t.rowIndex)})),d=this.merge.rowColumn.map((function(t){return Number(t.columnIndex)}));return u[0]===u[1]||d[0]===d[1]}return!0}return!1}return!1}return!1},findElement:function(t){for(var e=1;e<t.length;e++)if(t[e]-t[e-1]>1)return!1;return!0},mergeCell:function(){var t=this,e=Math.min.apply(Math,Ot(this.merge.rowColumn.map((function(t){return t.cellIndex})))),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"},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){var l=this.setting.general.options.cell_padding.value,s=(n?1:0)+i,r=this.setting.background.options,c="";c="mobile"===o?.8*this.responsiveInitial.mobileActivePixel:"tablet"===o?.8*this.responsiveInitial.tabletActivePixel:300;var u=1==this.tableData.table.tr&&n?c+"px":c/s+"px",d="";return d=""!==t.backgroundColor?t.backgroundColor:0===a?""===e.backgroundColor?r.header_background.value:e.backgroundColor:a%2==0?""===e.backgroundColor?r.even_row_background.value:e.backgroundColor:a%1==0?""===e.backgroundColor?r.odd_row_background.value:e.backgroundColor:"",{padding:l+"px",height:""!==e.rowHeight?e.rowHeight+"px":"","max-width":u,"min-width":u,"background-color":d,"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,Ot(n.map((function(t){return t.columnIndex}))));Ot(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,Ot(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=Ot(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}},computed:{tableMarginTop:function(){return{"margin-top":this.setting.global_styling.options.margin_top.value+"px"}},tableAlign:function(){var t={},e=this.setting.general.options.table_alignment.value;return"center"===e?t={"margin-left":"auto","margin-right":"auto"}:"left"===e?t={"margin-right":"auto"}:"right"===e&&(t={"margin-left":"auto"}),t},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}}},zt={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 Bt={name:"Layout",mixins:[Ft,zt],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:[]},headerInfo:null,responsiveTableData:null,responsiveInitial:{showHeader:!1,itemsPerRow:1,tableData:{},mobileActivePixel:350,tabletActivePixel:750},maxWidth:""}},components:{draggable:xt(),Elements:Tt,TableData:Nt},methods:{iconSpacing:function(t){return"ribbon"===t.data.type?{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+"px","margin-left":("corner"===t.data.style.ribbonType?Number(t.data.style.cornerXAxis-this.setting.general.options.cell_padding.value+10):t.data.style.xAxis-Number(this.setting.general.options.cell_padding.value-10))+"px"}:{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+Number(t.data.style.margin.top)+"px","margin-left":"".concat(t.data.style.margin.left,"px"),"margin-right":"".concat(t.data.style.margin.right,"px"),width:"auto"}},stickyColumn:function(){return{position:"sticky",left:0,zIndex:1}},onMove:function(t){t&&t.to.id&&window.ninjaTableBus.$emit("singleTdId",t.to.id)},thInlineStyle:function(t){return{padding:"0px ".concat(this.setting.general.options.cell_padding.value,"px"),width:"".concat(this.tableHeadWidth(t),"px"),display:"".concat(this.displayHeader(t))}},selectedTdBackground:function(){return{border:"1px solid #3f9eff"}},processResponsiveData: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.responsiveTableData=a},responsiveDataFormat:function(t,e){if("mobile"!==this.selectedDevice&&"tablet"!==this.selectedDevice)return{};this.processResponsiveData();var a=Object.keys(this.headerInfo).length,n=Object.keys(this.responsiveTableData).length,i={},o=0;if(t){var l=Math.ceil((n-a)/(e*a));if(0===l)for(var s=0;s<a;s++){var r={};this.responsiveTableData["data_"+s]&&(r["data_"+s]=this.responsiveTableData["data_"+s]),i["record_"+o]=r,o++}for(var c=0;c<l;c++)for(var u=0;u<a;u++){for(var d={},p=0;p<=e;p++)if(0==p)d["data_"+p]=this.responsiveTableData["data_"+u];else{var m=c*e*a+p*a+u;this.responsiveTableData["data_"+m]&&(d["data_"+p]=this.responsiveTableData["data_"+m])}i["record_"+o]=d,o++}}else{for(var _={},h=0,f=0;f<n;f++)0!==this.responsiveTableData["data_"+f].style.rowspan&&0!==this.responsiveTableData["data_"+f].style.colspan&&(_["data_"+h]=this.responsiveTableData["data_"+f],h++);for(var v=Object.keys(_).length,b=0;b<v;){for(var g={},y=0;y<e;y++)_["data_"+b]&&(g["data_"+y]=_["data_"+b],b++);i["record_"+o]=g,o++}}return i},bottomBorderResponsive:function(t,e){var a=Number(t.slice(7))+1,n=this.deepClone(this.tableData.headers).length,i=Object.keys(this.responsiveInitial.tableData).length;if(a%n==0&&a!=i)return{borderBottom:("tablet"===this.selectedDevice?e.tablet.cell_border.value:e.mobile.cell_border.value)+"px solid black"}},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"}},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}},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)},showInnerBorder:function(){return this.setting.border.options.inner_border.value},responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices},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.tableData=this.responsiveDataFormat(this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow)},responsive:{handler:function(t,e){"mobile"===this.selectedDevice?(this.responsiveInitial.showHeader=Boolean(t.mode_options.options.devices.mobile.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.mobile.items_per_row.value):"tablet"===this.selectedDevice&&(this.responsiveInitial.showHeader=Boolean(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.tableData=this.responsiveDataFormat(this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow)},deep:!0}}},Lt=Bt;var Rt=a(9838),Ht={insert:"head",singleton:!1};o()(Rt.Z,Ht);Rt.Z.locals;var Wt=r(Lt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja-tables-layout"},[""===t.selectedDevice?a("div",{staticClass:"table-customize-button"},["background"===t.activeTab?a("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[a("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(" "),a("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):a("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-folder-checked",size:"small",disabled:t.tdIds.length<2||!t.merge.visible},on:{click:function(e){return t.mergeCell()}}},[t._v(t._s(t.$t("Merge"))+"\n ")]),t._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-scissors",size:"small",disabled:!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)?a("div",{staticClass:"ntb_table_wrapper",style:[t.tableWrapperStyle,t.tableAlign,t.tableWrapperActivePadding],attrs:{id:"ninja_tables_builder_id"}},[t.responsiveIsEnabled&&t.showPixelSlider.preview?a("div",{staticClass:"pixel-bar-slider"},[a("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(" "),a("table",{class:"table ninja_tables_builder_class_"+t.tableData.id,style:[t.tableMarginTop,t.tableInlineStyle,t.tableAlign],attrs:{id:"ntb_table",role:""+t.setting.accessibility.options.table_role.value}},[t.manage?a("div",{staticClass:"table-header",style:t.tableBorder},[a("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(e,n){return a("th",{key:e,class:t.thActiveInactiveClass(e),style:[t.tdThActiveMargin,t.thInlineStyle(e)],attrs:{scope:"col",colspan:t.headerColSpan(e)}},[t.headerName(t.table.columnIndex)!==e||1!==t.tdIds.length||t.merge.visible&&!t.split.visible?t._e():[a("el-dropdown",{staticClass:"column-options",attrs:{trigger:"click",placement:"top-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-bottom el-icon--right",class:n===t.table.columnIndex?"i-active":""})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnBefore()}}},[t._v(t._s(t.$t("Insert column before"))+"\n ")]),t._v(" "),a("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(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addLeftColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert left column")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addRightColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert right column")))]),t._v(" "),a("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(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.removeColumn.apply(null,arguments)}}},[a("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?a("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(e,n){return a("tr",{key:n,staticClass:"desktop-view",class:(t.table.rowIndex===n&&t.tdIds.length<=0?"single-row-column":"tr_class_"+e.style.trId)+" "+(t.firstRowSticky&0==n?"firstRowSticky":""),style:[t.trInlineStyle(e,n)],attrs:{id:t.trId(e.style.trId)}},[t.manage&&1===t.tdIds.length&&!t.mergedTdIndexes().includes(n)?a("td",{class:t.tdActiveInactiveClass(e.style.trId),attrs:{rowspan:t.tdActiveRowSpan(e.style.trId)}},[a("el-dropdown",{staticClass:"row-options",attrs:{trigger:"click",placement:"top-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowBefore()}}},[t._v(t._s(t.$t("Insert row before")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert row after")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addTopRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert top row")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addBottomRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert bottom row")))]),t._v(" "),a("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(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.removeRow.apply(null,arguments)}}},[a("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 a("td",{key:i,class:t.tdClass(e,i,o),style:[t.tdInlineStyle(e,i),t.showInnerBorder?t.innerBorder(n):"",t.firstColumnSticky&&0===o?t.stickyColumn():""],attrs:{id:"td_id_"+t.tdId(e,i),rowspan:e.rows[i].style.rowspan,colspan:e.rows[i].style.colspan},on:{click:[function(a){if(!a.shiftKey)return null;t.manage&&t.selectItem(n,i,o,e.rows[i],e,!0)},function(a){if(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey)return null;t.manage&&t.selectItem(n,i,o,e.rows[i],e,!1)}]}},[a("draggable",{attrs:{list:e.rows[i].columns,group:"people",id:t.tdIds.includes(t.tdId(e,i))?"selected-item":"td_id_"+t.tdId(e,i),move:t.onMove}},t._l(e.rows[i].columns,(function(l,s){return a("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?a("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(a){if(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey)return null;!t.manage&&""===t.selectedDevice&&t.styleChange(l,n,o,e.rows[i],e)}}}):t._e(),t._v(" "),t.manage||""!==t.selectedDevice?t._e():[a("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(" "),a("div",{staticClass:"icon-style remove-elements",style:t.iconSpacing(l)},[a("i",{staticClass:"el-icon-rank"}),t._v(" "),a("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return t.copyItem(n,i,l)}}}),t._v(" "),a("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteItem(n,i,s)}}})])]],2)})),0)],1)}))],2)})),0):a("tbody",t._l(t.responsiveInitial.tableData,(function(e,n){return a("tr",{key:n,class:"mobile"===t.selectedDevice?"mobile-view tr_mobile_"+n:"tablet-view tr_tablet_"+n,style:[t.responsiveInitial.showHeader?t.bottomBorderResponsive(n,t.responsive.mode_options.options.devices):""]},t._l(e,(function(n){return n.style.rowspan>0&&n.style.colspan>0?a("td",{style:[t.tdInlineStyleResponsive(n.style,n.rowStyle,n.rowIndex,t.responsiveInitial.showHeader,t.responsiveInitial.itemsPerRow,t.selectedDevice),t.innerBorder(n.rowIndex)],attrs:{id:"td_id_"+n.style.tdId,colspan:t.responsiveInitial.showHeader?n.style.rowspan:1,rowspan:t.responsiveInitial.showHeader?n.style.colspan:1}},t._l(n.columns,(function(n,i){return a("span",{key:i},[e.id!=t.itemId?a("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 qt=Wt.exports,Vt={name:"RightSideBar",props:["initialData","tableId","selectedDevice"],mixins:[zt],components:{draggable:xt(),TableLayout:qt},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 Ut=a(3984),Yt={insert:"head",singleton:!1};o()(Ut.Z,Yt);Ut.Z.locals;const Zt=r(Vt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.tableId?t.tableId?a("el-row",[a("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():a("div",{staticStyle:{height:"500px","overflow-y":"scroll",padding:"0px 20px","box-sizing":"border-box"},attrs:{gutter:20}},[[a("h3",[t._v(t._s(t.$t("Create a Drag & Drop Table")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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():a("el-row",{staticClass:"new-table-wrapper"},[a("el-col",{attrs:{span:12}},[[a("div",{staticClass:"new_table",style:"grid-template-rows:repeat("+t.initialData.table_data.table.tr+",1fr);grid-template-columns:repeat("+t.initialData.table_data.table.tc+",1fr)"},[a("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(" "),a("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 a("span",{key:t,staticClass:"table-row-column"})}))],2),t._v(" "),a("div",{staticClass:"create-button"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.createTable("default")}}},[t._v("Create\n ")])],1)]],2),t._v(" "),a("el-col",{attrs:{span:12}},[a("h4",[t._v(t._s(t.$t("Import Table from CSV / JSON File")))]),t._v(" "),a("hr"),t._v(" "),t.file.name?t._e():a("div",[a("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(" "),a("hr")],1),t._v(" "),t.url?t._e():a("el-upload",{attrs:{accept:".csv, .json",drag:"",action:"#",limit:1,"before-upload":t.beforeFileUpload,"on-success":t.handleFileSuccess,"on-remove":t.handleRemove}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v(t._s(t.$t("Drop file here or "))),a("em",[t._v(t._s(t.$t("click to upload")))])])]),t._v(" "),t.file.name||t.url?a("div",{staticClass:"import-button"},[a("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():a("el-row",{staticClass:"new-table-wrapper"},t._l(t.initialData.ready_made_tables,(function(e,n){return a("el-col",{key:n,attrs:{span:24}},[a("div",{staticClass:"table-type-heading"},[a("h2",{staticClass:"ready-made-name"},[t._v(t._s(e.name))])]),t._v(" "),a("el-row",t._l(e.tables,(function(e,n){return a("el-col",{key:n,attrs:{span:8}},[a("div",{staticClass:"ready-made-table-image"},[a("img",{staticStyle:{margin:"0 auto",width:"180px",display:"flex"},attrs:{src:t.getAsset(e.key+".jpg"),alt:""}}),t._v(" "),a("div",{staticClass:"ready-made-table-hover-button"},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return t.createTable(e.key,e)}}},[a("span",[t._v(t._s(!t.hasPro&&e.has_pro?"Unlock in Pro":"Create"))])])],1)]),t._v(" "),a("h4",{staticClass:"table-title-style"},[t._v(t._s(e.name))])])})),1)],1)})),1)],2)],1)}),[],!1,null,null,null).exports,Jt={name:"add_table",components:{RightSideBar:Zt,wp_editor:k,"wp-posts-data-source":J,"woo-data-source":K,"fluent-form-data-source":nt,"external-data-source":st,ImportTable:dt,RawSqlForm:yt,PremiumNotice:q},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 Qt=a(5003),Xt={insert:"head",singleton:!1};o()(Qt.Z,Xt);Qt.Z.locals;const Gt=r(Jt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():a("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[a("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[a("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[a("i",{staticClass:"el-icon-setting"}),t._v(" "),a("span",[t._v("Default")])]),t._v(" "),a("el-menu-item",{attrs:{index:"drag_and_drop"},on:{click:function(e){t.activeTabName="drag_and_drop"}}},[a("i",{staticClass:"el-icon-s-unfold"}),t._v(" "),a("span",[t._v("Drag & Drop Table")]),t._v(" "),a("el-tag",{attrs:{color:"#185b9e",effect:"dark"}},[t._v("\n Beta\n ")])],1),t._v(" "),a("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[a("i",{staticClass:"el-icon-upload2"}),t._v(" "),a("span",[t._v("Import Table")])]),t._v(" "),a("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[a("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),a("span",[t._v("Connect Fluent Forms")])]),t._v(" "),a("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[a("i",{staticClass:"el-icon-news"}),t._v(" "),a("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?a("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[a("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),a("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),a("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[a("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),a("span",[t._v("Connect Google Sheets")])]),t._v(" "),a("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[a("i",{staticClass:"el-icon-document"}),t._v(" "),a("span",[t._v("Connect External CSV")])]),t._v(" "),a("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[a("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),a("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),a("el-main",["default"==t.activeTabName?[a("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[a("h3",[t._v("Manually Create a Table")]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),a("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(" "),a("div",{staticClass:"modal-footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?a("span",[t._v(t._s(t.$t("Update")))]):a("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"drag_and_drop"===t.activeTabName?[a("right-side-bar",{attrs:{initialData:t.initialData}})]:"import_table"===t.activeTabName?[a("import-table")]:"google_spread_sheet"==t.activeTabName?[a("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[a("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[a("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[a("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?a("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?a("div",[a("p",[t._v("Please update to latest version of "),a("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?a("div",{staticClass:"ninja_no_woo"},[a("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),a("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?[a("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 Kt={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 te=a(7203),ee={insert:"head",singleton:!1};o()(te.Z,ee);te.Z.locals;const ae=r(Kt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.leadVisible?a("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[a("p",[t._v("Hey "+t._s(t.display_name)+","),a("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(" "),a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),a("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),a("div",{staticClass:"ninja_permissions"},[a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),a("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 ne={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 ie=a(6481),oe={insert:"head",singleton:!1};o()(ie.Z,oe);ie.Z.locals;const le={name:"all_tables",components:{Welcome:m,"list-all-tables":g,"add-table-modal":Gt,"lead-modal":ae,NinjaReviewDialog:r(ne,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"review_dialog"},[a("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),a("div",{staticClass:"consent_body"},[a("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(" "),a("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(" "),a("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 se=a(6702),re={insert:"head",singleton:!1};o()(se.Z,re);se.Z.locals;const ce=r(le,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.published_tables?[a("div",{staticClass:"row clearfix"},[a("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),t.review_option?a("ninja-review-dialog",{on:{hideNotification:function(e){t.review_option=!1}}}):t._e(),t._v(" "),a("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[a("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[a("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(" "),a("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")]),t._v(" "),a("router-link",{attrs:{to:{name:"import_tables"}}},[a("el-button",{attrs:{size:"small",type:"success"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1)],1)],1),t._v(" "),a("hr"),t._v(" "),a("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}})]:a("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),a("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}}},[a("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),a("lead-modal")],2)}),[],!1,null,null,null).exports;const ue=r({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.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"margin-top":"15px"}},[a("el-container",[a("el-aside",{attrs:{width:"200px"}},[a("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,(function(e){return e.status?a("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[a("i",{class:e.icon_class}),t._v(" "),a("span",[t._v(t._s(e.title))])]):t._e()})),1)],1),t._v(" "),a("el-main",[a("router-view")],1)],1)],1)}),[],!1,null,null,null).exports;const de={name:"Tools",data:function(){return{has_pro:window.ninja_table_admin.hasPro,active_menu:"import",activeNames:["1","2"],imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",UltimateTables:"Ultimate Tables",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1,UltimateTables:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var 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"}))}},pe=de;var me=a(6944),_e={insert:"head",singleton:!1};o()(me.Z,_e);me.Z.locals;const he=r(pe,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_header"},[a("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),a("div",{staticClass:"ninja_content"},[a("div",{staticClass:"ninja_block"},[a("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(" "),a("hr"),t._v(" "),a("div",{staticClass:"ninja_block_section"},[a("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),a("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"form"},[a("div",{staticClass:"form-item"},["file"==t.imports.source?[a("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),a("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[a("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),a("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),a("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(e,n){return a("option",{domProps:{value:n}},[t._v(t._s(t.$t(e))+"\n ")])})),0),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),a("div",{staticClass:"form-item"},[a("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(" "),a("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 "),a("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(" "),a("div",{staticClass:"form-item"},[a("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(" "),a("hr"),t._v(" "),a("div",{staticClass:"ninja_block_section"},[a("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),a("table",{staticStyle:{"min-width":"400px"}},[a("tbody",t._l(t.otherPlugins,(function(e,n){return a("tr",[a("td",[t._v(t._s(e))]),t._v(" "),a("td",[a("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 "),a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])})),0)])])]),t._v(" "),a("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?[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[a("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_already_imported?a("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(e.row.post_title)+"\n ")]}}],null,!1,2469912787)}),t._v(" "),a("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.importThisTable(e.row,e.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),e.row.ninja_table_id?a("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:e.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}],null,!1,3480308331)})],1),t._v(" "),t.importing?[a("br"),a("br"),t._v(" "),a("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()]:a("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.$createElement,a=t._self._c||e;return a("p",[t._v("\n Select the intended format and click "),a("strong",[t._v("Import")]),t._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"help"},[t._v("\n Check tutorial for importing data from CSV file "),a("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.$createElement,a=t._self._c||e;return a("p",[t._v("\n To import from other WordPress plugins click the respective "),a("strong",[t._v("Import")]),t._v("\n button.\n ")])}],!1,null,"0ccd418e",null).exports;const fe={name:"Privacy",data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,sql_permission:"no",capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then((function(e){t.capability=e.capability,t.roles=e.roles,t.sql_permission=e.sql_permission,t.handleCheckedCapabilitiesChange(t.capability)})).fail((function(t){})).always((function(){t.fetching=!1}))},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability,sql_permission:this.sql_permission};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"})})).fail((function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}))},handleCheckAllChange:function(t){this.capability=t?this.roles.map((function(t){return t.key})):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}};var ve=a(3601),be={insert:"head",singleton:!1};o()(ve.Z,be);ve.Z.locals;const ge=r(fe,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"privacy"},[a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Permission "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),a("hr"),t._v(" "),t.hasPro?[a("div",{staticClass:"form-group"},[a("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(" "),a("div",{staticClass:"form-group"},[a("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,(function(e){return a("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),t._v(" "),t.capability&&t.capability.length?a("div",{staticClass:"form-group"},[a("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(" "),a("div",{staticClass:"form-group"},[a("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 "),a("p",[a("a",{attrs:{target:"_blank",href:t.upgrade}},[t._v("Buy Ninja Tables Pro Add-On")])])]],2)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_block"},[a("p",[t._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 ye=a(5325),we=a.n(ye),xe=a(4486),ke=a.n(xe);const Ce=r({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=[];ke()(this.availableStyles,(function(t){e.push(t.key)})),this.default_settings.css_classes=we()(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.$createElement,a=t._self._c||e;return a("div",{staticClass:"privacy"},[t._m(0),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),a("hr"),t._v(" "),[a("div",{staticClass:"ninja_block"},[a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Styling Library")]),t._v(" "),a("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:n}},[t._v("\n "+t._s(e.title)+"\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,(function(e){return a("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,e.key)>-1:t.default_settings.css_classes},on:{change:function(a){var n=t.default_settings.css_classes,i=a.target,o=!!i.checked;if(Array.isArray(n)){var l=e.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(e.title)+"\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2),t._v(" "),a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Features")]),t._v(" "),a("label",{attrs:{for:"show_title"}},[a("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 "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",{attrs:{for:"show_description"}},[a("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 "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",{attrs:{for:"enable_search"}},[a("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(" "),a("label",{attrs:{for:"column_sorting"}},[a("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(" "),a("label",[a("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(" "),a("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[a("h3",[t._v("Default Table Color")]),t._v(" "),a("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(e,n){return a("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(e)+"\n ")])})),0)]),t._v(" "),a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Pagination Setting")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[a("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),a("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(" "),a("div",{staticClass:"font-setting"},[a("h3",[t._v("Default Font Setting")]),t._v(" "),a("div",{staticClass:"font form_group "},[a("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),a("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,e){return a("option",{key:e,attrs:{label:"inherit"===t?"theme-font":t},domProps:{value:t}})})),0)]),t._v(" "),a("div",{staticClass:"font form_group",staticStyle:{"max-width":"400px"}},[a("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[a("el-button",{attrs:{loading:t.saving,type:"success",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Global Appearance Settings")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_block"},[a("p",[t._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 Se={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 je=a(8099),$e={insert:"head",singleton:!1};o()(je.Z,$e);je.Z.locals;const Te=r(Se,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"license"},[a("div",{staticClass:"ninja_header"},["valid"==t.is_valid?a("div",[a("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[a("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):a("div",[a("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?a("div",{staticClass:"license_success"},[a("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),a("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?a("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[a("div",{staticClass:"checking_license license_renew_box",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),a("p",[t._v("If you already renewed your license then please "),a("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),a("p",[t._v("Have a new license key? Please "),a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?a("div",{staticClass:"license_form"},[a("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),a("div",{staticClass:"form_input"},[a("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(" "),a("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(" "),a("div",{staticClass:"nt_messages"},[t.error_message?a("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):a("div",{staticClass:"license_form"},[a("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),a("div",{staticClass:"form_input"},[a("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(" "),a("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(" "),a("div",{staticClass:"nt_messages"},[t.error_message?a("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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 "),a("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. "),a("br"),t._v("Any questions or problems with your license? "),a("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[t._v("Contact us!")])])}],!1,null,null,null).exports;const Ee=r({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.$createElement,a=t._self._c||e;return a("div",{staticClass:"privacy"},[t._m(0),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[a("div",{staticClass:"ninja_block"},[a("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),a("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"}},[a("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),a("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),a("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),a("div",{staticClass:"ninja_block ninja_heightlight_block"},[a("h3",[t._v("Clear Table Cache")]),t._v(" "),a("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){return t.clearCache()}}},[t._v("Clear Table Cache")])],1)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Global Settings")])])}],!1,null,null,null).exports;const Ie={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 De=a(5783),Pe={insert:"head",singleton:!1};o()(De.Z,Pe);De.Z.locals;const Ae=r(Ie,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_intro_welcome"},[a("div",{staticClass:"ninja_charts_promo_banner"},[a("img",{attrs:{src:t.imageUrl("ninja-charts-promo.png"),alt:"Ninja Charts"}})]),t._v(" "),a("h2",[t._v("Welcome to Ninja Charts")]),t._v(" "),a("p",[t._v("Best WP Charts Plugin for WordPress")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"ninja_actions"},[a("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.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_charts_promo"},[e("iframe",{attrs:{width:"600",height:"315",src:"https://www.youtube.com/embed/vIHR3_vNOFM",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,"6779a907",null).exports;const Ne=r({name:"add_table",components:{wp_editor:k},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.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_table_edit"},[a("div",{staticClass:"ninja_modal-body"},[a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),a("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(" "),a("div",{staticClass:"modal-footer"},[a("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 Oe=a(4238),Me=a.n(Oe),Fe=a(2628),ze=a.n(Fe);function Be(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 Le(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const Re={name:"table_home",components:{edit_table:Ne},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=ze()(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:Me(),each:X(),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?Be(Object(a),!0).forEach((function(e){Le(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(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")}},He=Re;var We=a(1606),qe={insert:"head",singleton:!1};o()(We.Z,qe);We.Z.locals;const Ve=r(He,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.doingAjax?a("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),a("div",{staticClass:"settings_header"},[a("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[a("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[a("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),a("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[a("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+t.tableId+'"]'}},[a("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),a("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[a("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),a("a",{attrs:{href:t.preview_url,target:"_blank"}},[a("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():a("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"}},[a("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Buy Pro")))])],1)],1)]),t._v(" "),a("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[a("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,(function(e){return a("router-link",{key:e.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:e.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(e.title)+"\n ")])})),1),t._v(" "),t.config?a("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),a("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?a("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 Ue(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 Ye(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(a),!0).forEach((function(e){Je(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ue(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function Ze(t){return Ze="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},Ze(t)}function Je(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Qe(){return Qe=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},Qe.apply(this,arguments)}function Xe(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 Ge(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var Ke=Ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ta=Ge(/Edge/i),ea=Ge(/firefox/i),aa=Ge(/safari/i)&&!Ge(/chrome/i)&&!Ge(/android/i),na=Ge(/iP(ad|od|hone)/i),ia=Ge(/chrome/i)&&Ge(/android/i),oa={capture:!1,passive:!1};function la(t,e,a){t.addEventListener(e,a,!Ke&&oa)}function sa(t,e,a){t.removeEventListener(e,a,!Ke&&oa)}function ra(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 ca(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function ua(t,e,a,n){if(t){a=a||document;do{if(null!=e&&(">"===e[0]?t.parentNode===a&&ra(t,e):ra(t,e))||n&&t===a)return t;if(t===a)break}while(t=ca(t))}return null}var da,pa=/\s+/g;function ma(t,e,a){if(t&&e)if(t.classList)t.classList[a?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(pa," ").replace(" "+e+" "," ");t.className=(n+(a?" "+e:"")).replace(pa," ")}}function _a(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 ha(t,e){var a="";if("string"==typeof t)a=t;else do{var n=_a(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 fa(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 va(){var t=document.scrollingElement;return t||document.documentElement}function ba(t,e,a,n,i){if(t.getBoundingClientRect||t===window){var o,l,s,r,c,u,d;if(t!==window&&t.parentNode&&t!==va()?(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,!Ke))do{if(i&&i.getBoundingClientRect&&("none"!==_a(i,"transform")||a&&"static"!==_a(i,"position"))){var p=i.getBoundingClientRect();l-=p.top+parseInt(_a(i,"border-top-width")),s-=p.left+parseInt(_a(i,"border-left-width")),r=l+o.height,c=s+o.width;break}}while(i=i.parentNode);if(n&&t!==window){var m=ha(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 ga(t,e,a){for(var n=Ca(t,!0),i=ba(t)[e];n;){var o=ba(n)[a];if(!("top"===a||"left"===a?i>=o:i<=o))return n;if(n===va())break;n=Ca(n,!1)}return!1}function ya(t,e,a,n){for(var i=0,o=0,l=t.children;o<l.length;){if("none"!==l[o].style.display&&l[o]!==En.ghost&&(n||l[o]!==En.dragged)&&ua(l[o],a.draggable,t,!1)){if(i===e)return l[o];i++}o++}return null}function wa(t,e){for(var a=t.lastElementChild;a&&(a===En.ghost||"none"===_a(a,"display")||e&&!ra(a,e));)a=a.previousElementSibling;return a||null}function xa(t,e){var a=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===En.clone||e&&!ra(t,e)||a++;return a}function ka(t){var e=0,a=0,n=va();if(t)do{var i=ha(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 Ca(t,e){if(!t||!t.getBoundingClientRect)return va();var a=t,n=!1;do{if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var i=_a(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 va();if(n||e)return a;n=!0}}}while(a=a.parentNode);return va()}function Sa(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 ja(t,e){return function(){if(!da){var a=arguments,n=this;1===a.length?t.call(n,a[0]):t.apply(n,a),da=setTimeout((function(){da=void 0}),e)}}}function $a(t,e,a){t.scrollLeft+=e,t.scrollTop+=a}function Ta(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 Ea="Sortable"+(new Date).getTime();function Ia(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==_a(t,"display")&&t!==En.ghost){e.push({target:t,rect:ba(t)});var a=Ye({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=ha(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=ba(a),r=a.prevFromRect,c=a.prevToRect,u=t.rect,d=ha(a,!0);d&&(s.top-=d.f,s.left-=d.e),a.toRect=s,a.thisAnimationDuration&&Sa(r,s)&&!Sa(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)),Sa(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){_a(t,"transition",""),_a(t,"transform","");var i=ha(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,_a(t,"transform","translate3d("+s+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),_a(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),_a(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){_a(t,"transition",""),_a(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var Da=[],Pa={initializeByDefault:!0},Aa={mount:function(t){for(var e in Pa)Pa.hasOwnProperty(e)&&!(e in t)&&(t[e]=Pa[e]);Da.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Da.push(t)},pluginEvent:function(t,e,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var i=t+"Global";Da.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][i]&&e[n.pluginName][i](Ye({sortable:e},a)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](Ye({sortable:e},a)))}))},initializePlugins:function(t,e,a,n){for(var i in Da.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,Qe(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 Da.forEach((function(n){"function"==typeof n.eventProperties&&Qe(a,n.eventProperties.call(e[n.pluginName],t))})),a},modifyOption:function(t,e,a){var n;return Da.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(n=i.optionListeners[e].call(t[i.pluginName],a))})),n}};function Na(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[Ea]){var h,f=e.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||Ke||ta?(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=Ye(Ye({},_),Aa.getEventProperties(n,e));for(var g in b)h[g]=b[g];a&&a.dispatchEvent(h),f[v]&&f[v].call(e,h)}}var Oa=["evt"],Ma=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=a.evt,i=Xe(a,Oa);Aa.pluginEvent.bind(En)(t,e,Ye({dragEl:za,parentEl:Ba,ghostEl:La,rootEl:Ra,nextEl:Ha,lastDownEl:Wa,cloneEl:qa,cloneHidden:Va,dragStarted:on,putSortable:Xa,activeSortable:En.active,originalEvent:n,oldIndex:Ua,oldDraggableIndex:Za,newIndex:Ya,newDraggableIndex:Ja,hideGhostForTarget:Sn,unhideGhostForTarget:jn,cloneNowHidden:function(){Va=!0},cloneNowShown:function(){Va=!1},dispatchSortableEvent:function(t){Fa({sortable:e,name:t,originalEvent:n})}},i))};function Fa(t){Na(Ye({putSortable:Xa,cloneEl:qa,targetEl:za,rootEl:Ra,oldIndex:Ua,oldDraggableIndex:Za,newIndex:Ya,newDraggableIndex:Ja},t))}var za,Ba,La,Ra,Ha,Wa,qa,Va,Ua,Ya,Za,Ja,Qa,Xa,Ga,Ka,tn,en,an,nn,on,ln,sn,rn,cn,un=!1,dn=!1,pn=[],mn=!1,_n=!1,hn=[],fn=!1,vn=[],bn="undefined"!=typeof document,gn=na,yn=ta||Ke?"cssFloat":"float",wn=bn&&!ia&&!na&&"draggable"in document.createElement("div"),xn=function(){if(bn){if(Ke)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),kn=function(t,e){var a=_a(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=ya(t,0,e),o=ya(t,1,e),l=i&&_a(i),s=o&&_a(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ba(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ba(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[yn]||o&&"none"===a[yn]&&r+c>n)?"vertical":"horizontal"},Cn=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"==Ze(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},Sn=function(){!xn&&La&&_a(La,"display","none")},jn=function(){!xn&&La&&_a(La,"display","")};bn&&!ia&&document.addEventListener("click",(function(t){if(dn)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),dn=!1,!1}),!0);var $n=function(t){if(za){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,pn.some((function(t){var e=t[Ea].options.emptyInsertThreshold;if(e&&!wa(t)){var a=ba(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[Ea]._onDragOver(a)}}var i,o,l},Tn=function(t){za&&za.parentNode[Ea]._isOutsideThisEl(t.target)};function En(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=Qe({},e),t[Ea]=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 kn(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!==En.supportPointer&&"PointerEvent"in window&&!aa,emptyInsertThreshold:5};for(var n in Aa.initializePlugins(this,t,a),a)!(n in e)&&(e[n]=a[n]);for(var i in Cn(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&wn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?la(t,"pointerdown",this._onTapStart):(la(t,"mousedown",this._onTapStart),la(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(la(t,"dragover",this),la(t,"dragenter",this)),pn.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Qe(this,Ia())}function In(t,e,a,n,i,o,l,s){var r,c,u=t[Ea],d=u.options.onMove;return!window.CustomEvent||Ke||ta?(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||ba(e),r.willInsertAfter=s,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function Dn(t){t.draggable=!1}function Pn(){fn=!1}function An(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 Nn(t){return setTimeout(t,0)}function On(t){return clearTimeout(t)}En.prototype={constructor:En,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ln=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,za):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){vn.length=0;var e=t.getElementsByTagName("input"),a=e.length;for(;a--;){var n=e[a];n.checked&&vn.push(n)}}(a),!za&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!aa||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=ua(s,n.draggable,a,!1))&&s.animated||Wa===s)){if(Ua=xa(s),Za=xa(s,n.draggable),"function"==typeof c){if(c.call(this,t,s,this))return Fa({sortable:e,rootEl:r,name:"filter",targetEl:s,toEl:a,fromEl:a}),Ma("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=ua(r,n.trim(),a,!1))return Fa({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:a,toEl:a}),Ma("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());n.handle&&!ua(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&&!za&&a.parentNode===o){var r=ba(a);if(Ra=o,Ba=(za=a).parentNode,Ha=za.nextSibling,Wa=a,Qa=l.group,En.dragged=za,Ga={target:za,clientX:(e||t).clientX,clientY:(e||t).clientY},an=Ga.clientX-r.left,nn=Ga.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,za.style["will-change"]="all",n=function(){Ma("delayEnded",i,{evt:t}),En.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!ea&&i.nativeDraggable&&(za.draggable=!0),i._triggerDragStart(t,e),Fa({sortable:i,name:"choose",originalEvent:t}),ma(za,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){fa(za,t.trim(),Dn)})),la(s,"dragover",$n),la(s,"mousemove",$n),la(s,"touchmove",$n),la(s,"mouseup",i._onDrop),la(s,"touchend",i._onDrop),la(s,"touchcancel",i._onDrop),ea&&this.nativeDraggable&&(this.options.touchStartThreshold=4,za.draggable=!0),Ma("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(ta||Ke))n();else{if(En.eventCanceled)return void this._onDrop();la(s,"mouseup",i._disableDelayedDrag),la(s,"touchend",i._disableDelayedDrag),la(s,"touchcancel",i._disableDelayedDrag),la(s,"mousemove",i._delayedDragTouchMoveHandler),la(s,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&la(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(){za&&Dn(za),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;sa(t,"mouseup",this._disableDelayedDrag),sa(t,"touchend",this._disableDelayedDrag),sa(t,"touchcancel",this._disableDelayedDrag),sa(t,"mousemove",this._delayedDragTouchMoveHandler),sa(t,"touchmove",this._delayedDragTouchMoveHandler),sa(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?la(document,"pointermove",this._onTouchMove):la(document,e?"touchmove":"mousemove",this._onTouchMove):(la(za,"dragend",this),la(Ra,"dragstart",this._onDragStart));try{document.selection?Nn((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(un=!1,Ra&&za){Ma("dragStarted",this,{evt:e}),this.nativeDraggable&&la(document,"dragover",Tn);var a=this.options;!t&&ma(za,a.dragClass,!1),ma(za,a.ghostClass,!0),En.active=this,t&&this._appendGhost(),Fa({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Ka){this._lastX=Ka.clientX,this._lastY=Ka.clientY,Sn();for(var t=document.elementFromPoint(Ka.clientX,Ka.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ka.clientX,Ka.clientY))!==e;)e=t;if(za.parentNode[Ea]._isOutsideThisEl(t),e)do{if(e[Ea]){if(e[Ea]._onDragOver({clientX:Ka.clientX,clientY:Ka.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);jn()}},_onTouchMove:function(t){if(Ga){var e=this.options,a=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=La&&ha(La,!0),l=La&&o&&o.a,s=La&&o&&o.d,r=gn&&cn&&ka(cn),c=(i.clientX-Ga.clientX+n.x)/(l||1)+(r?r[0]-hn[0]:0)/(l||1),u=(i.clientY-Ga.clientY+n.y)/(s||1)+(r?r[1]-hn[1]:0)/(s||1);if(!En.active&&!un){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(La){o?(o.e+=c-(tn||0),o.f+=u-(en||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,")");_a(La,"webkitTransform",d),_a(La,"mozTransform",d),_a(La,"msTransform",d),_a(La,"transform",d),tn=c,en=u,Ka=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!La){var t=this.options.fallbackOnBody?document.body:Ra,e=ba(za,!0,gn,!0,t),a=this.options;if(gn){for(cn=t;"static"===_a(cn,"position")&&"none"===_a(cn,"transform")&&cn!==document;)cn=cn.parentNode;cn!==document.body&&cn!==document.documentElement?(cn===document&&(cn=va()),e.top+=cn.scrollTop,e.left+=cn.scrollLeft):cn=va(),hn=ka(cn)}ma(La=za.cloneNode(!0),a.ghostClass,!1),ma(La,a.fallbackClass,!0),ma(La,a.dragClass,!0),_a(La,"transition",""),_a(La,"transform",""),_a(La,"box-sizing","border-box"),_a(La,"margin",0),_a(La,"top",e.top),_a(La,"left",e.left),_a(La,"width",e.width),_a(La,"height",e.height),_a(La,"opacity","0.8"),_a(La,"position",gn?"absolute":"fixed"),_a(La,"zIndex","100000"),_a(La,"pointerEvents","none"),En.ghost=La,t.appendChild(La),_a(La,"transform-origin",an/parseInt(La.style.width)*100+"% "+nn/parseInt(La.style.height)*100+"%")}},_onDragStart:function(t,e){var a=this,n=t.dataTransfer,i=a.options;Ma("dragStart",this,{evt:t}),En.eventCanceled?this._onDrop():(Ma("setupClone",this),En.eventCanceled||((qa=Ta(za)).removeAttribute("id"),qa.draggable=!1,qa.style["will-change"]="",this._hideClone(),ma(qa,this.options.chosenClass,!1),En.clone=qa),a.cloneId=Nn((function(){Ma("clone",a),En.eventCanceled||(a.options.removeCloneOnHide||Ra.insertBefore(qa,za),a._hideClone(),Fa({sortable:a,name:"clone"}))})),!e&&ma(za,i.dragClass,!0),e?(dn=!0,a._loopId=setInterval(a._emulateDragOver,50)):(sa(document,"mouseup",a._onDrop),sa(document,"touchend",a._onDrop),sa(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(a,n,za)),la(document,"drop",a),_a(za,"transform","translateZ(0)")),un=!0,a._dragStartId=Nn(a._dragStarted.bind(a,e,t)),la(document,"selectstart",a),on=!0,aa&&_a(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=En.active,u=Qa===r,d=s.sort,p=Xa||c,m=this,_=!1;if(!fn){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=ua(l,s.draggable,o,!0),E("dragOver"),En.eventCanceled)return _;if(za.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return D(!1);if(dn=!1,c&&!s.disabled&&(u?d||(n=Ba!==Ra):Xa===this||(this.lastPutMode=Qa.checkPull(this,c,za,t))&&r.checkPut(this,c,za,t))){if(i="vertical"===this._getDirection(t,l),e=ba(za),E("dragOverValid"),En.eventCanceled)return _;if(n)return Ba=Ra,I(),this._hideClone(),E("revert"),En.eventCanceled||(Ha?Ra.insertBefore(za,Ha):Ra.appendChild(za)),D(!0);var h=wa(o,s.draggable);if(!h||function(t,e,a){var n=ba(wa(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===za)return D(!1);if(h&&o===t.target&&(l=h),l&&(a=ba(l)),!1!==In(Ra,o,za,e,l,a,t,!!l))return I(),h&&h.nextSibling?o.insertBefore(za,h.nextSibling):o.appendChild(za),Ba=o,P(),D(!0)}else if(h&&function(t,e,a){var n=ba(ya(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=ya(o,0,s,!0);if(f===za)return D(!1);if(a=ba(l=f),!1!==In(Ra,o,za,e,l,a,t,!1))return I(),o.insertBefore(za,f),Ba=o,P(),D(!0)}else if(l.parentNode===o){a=ba(l);var v,b,g,y=za.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}(za.animated&&za.toRect||e,l.animated&&l.toRect||a,i),x=i?"top":"left",k=ga(l,"top","top")||ga(za,"top","top"),C=k?k.scrollTop:void 0;if(ln!==l&&(b=a[x],mn=!1,_n=!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&&rn<c*i){if(!mn&&(1===sn?r>u+c*o/2:r<d-c*o/2)&&(mn=!0),mn)p=!0;else if(1===sn?r<u+rn:r>d-rn)return-sn}else if(r>u+c*(1-i)/2&&r<d-c*(1-i)/2)return function(t){return xa(za)<xa(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,_n,ln===l),0!==v){var S=xa(za);do{S-=v,g=Ba.children[S]}while(g&&("none"===_a(g,"display")||g===La))}if(0===v||g===l)return D(!1);ln=l,sn=v;var j=l.nextElementSibling,$=!1,T=In(Ra,o,za,e,l,a,t,$=1===v);if(!1!==T)return 1!==T&&-1!==T||($=1===T),fn=!0,setTimeout(Pn,30),I(),$&&!j?o.appendChild(za):l.parentNode.insertBefore(za,$?j:l),k&&$a(k,0,C-k.scrollTop),Ba=za.parentNode,void 0===b||_n||(rn=Math.abs(b-ba(l)[x])),P(),D(!0)}if(o.contains(za))return D(!1)}return!1}function E(s,r){Ma(s,m,Ye({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:n,dragRect:e,targetRect:a,canSort:d,fromSortable:p,target:l,completed:D,onMove:function(a,n){return In(Ra,o,za,e,a,ba(a),t,n)},changed:P},r))}function I(){E("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function D(e){return E("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(m),m!==p&&(ma(za,Xa?Xa.options.ghostClass:c.options.ghostClass,!1),ma(za,s.ghostClass,!0)),Xa!==m&&m!==En.active?Xa=m:m===En.active&&Xa&&(Xa=null),p===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){E("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===za&&!za.animated||l===o&&!l.animated)&&(ln=null),s.dragoverBubble||t.rootEl||l===document||(za.parentNode[Ea]._isOutsideThisEl(t.target),!e&&$n(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function P(){Ya=xa(za),Ja=xa(za,s.draggable),Fa({sortable:m,name:"change",toEl:o,newIndex:Ya,newDraggableIndex:Ja,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){sa(document,"mousemove",this._onTouchMove),sa(document,"touchmove",this._onTouchMove),sa(document,"pointermove",this._onTouchMove),sa(document,"dragover",$n),sa(document,"mousemove",$n),sa(document,"touchmove",$n)},_offUpEvents:function(){var t=this.el.ownerDocument;sa(t,"mouseup",this._onDrop),sa(t,"touchend",this._onDrop),sa(t,"pointerup",this._onDrop),sa(t,"touchcancel",this._onDrop),sa(document,"selectstart",this)},_onDrop:function(t){var e=this.el,a=this.options;Ya=xa(za),Ja=xa(za,a.draggable),Ma("drop",this,{evt:t}),Ba=za&&za.parentNode,Ya=xa(za),Ja=xa(za,a.draggable),En.eventCanceled||(un=!1,_n=!1,mn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),On(this.cloneId),On(this._dragStartId),this.nativeDraggable&&(sa(document,"drop",this),sa(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),aa&&_a(document.body,"user-select",""),_a(za,"transform",""),t&&(on&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),La&&La.parentNode&&La.parentNode.removeChild(La),(Ra===Ba||Xa&&"clone"!==Xa.lastPutMode)&&qa&&qa.parentNode&&qa.parentNode.removeChild(qa),za&&(this.nativeDraggable&&sa(za,"dragend",this),Dn(za),za.style["will-change"]="",on&&!un&&ma(za,Xa?Xa.options.ghostClass:this.options.ghostClass,!1),ma(za,this.options.chosenClass,!1),Fa({sortable:this,name:"unchoose",toEl:Ba,newIndex:null,newDraggableIndex:null,originalEvent:t}),Ra!==Ba?(Ya>=0&&(Fa({rootEl:Ba,name:"add",toEl:Ba,fromEl:Ra,originalEvent:t}),Fa({sortable:this,name:"remove",toEl:Ba,originalEvent:t}),Fa({rootEl:Ba,name:"sort",toEl:Ba,fromEl:Ra,originalEvent:t}),Fa({sortable:this,name:"sort",toEl:Ba,originalEvent:t})),Xa&&Xa.save()):Ya!==Ua&&Ya>=0&&(Fa({sortable:this,name:"update",toEl:Ba,originalEvent:t}),Fa({sortable:this,name:"sort",toEl:Ba,originalEvent:t})),En.active&&(null!=Ya&&-1!==Ya||(Ya=Ua,Ja=Za),Fa({sortable:this,name:"end",toEl:Ba,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Ma("nulling",this),Ra=za=Ba=La=Ha=qa=Wa=Va=Ga=Ka=on=Ya=Ja=Ua=Za=ln=sn=Xa=Qa=En.dragged=En.ghost=En.clone=En.active=null,vn.forEach((function(t){t.checked=!0})),vn.length=tn=en=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":za&&(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++)ua(t=a[n],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||An(t));return e},sort:function(t,e){var a={},n=this.el;this.toArray().forEach((function(t,e){var i=n.children[e];ua(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 ua(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=Aa.modifyOption(this,t,e);a[t]=void 0!==n?n:e,"group"===t&&Cn(a)},destroy:function(){Ma("destroy",this);var t=this.el;t[Ea]=null,sa(t,"mousedown",this._onTapStart),sa(t,"touchstart",this._onTapStart),sa(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(sa(t,"dragover",this),sa(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),pn.splice(pn.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Va){if(Ma("hideClone",this),En.eventCanceled)return;_a(qa,"display","none"),this.options.removeCloneOnHide&&qa.parentNode&&qa.parentNode.removeChild(qa),Va=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Va){if(Ma("showClone",this),En.eventCanceled)return;za.parentNode!=Ra||this.options.group.revertClone?Ha?Ra.insertBefore(qa,Ha):Ra.appendChild(qa):Ra.insertBefore(qa,za),this.options.group.revertClone&&this.animate(za,qa),_a(qa,"display",""),Va=!1}}else this._hideClone()}},bn&&la(document,"touchmove",(function(t){(En.active||un)&&t.cancelable&&t.preventDefault()})),En.utils={on:la,off:sa,css:_a,find:fa,is:function(t,e){return!!ua(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:ja,closest:ua,toggleClass:ma,clone:Ta,index:xa,nextTick:Nn,cancelNextTick:On,detectDirection:kn,getChild:ya},En.get=function(t){return t[Ea]},En.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&&(En.utils=Ye(Ye({},En.utils),t.utils)),Aa.mount(t)}))},En.create=function(t,e){return new En(t,e)},En.version="1.15.0";var Mn,Fn,zn,Bn,Ln,Rn,Hn=[],Wn=!1;function qn(){Hn.forEach((function(t){clearInterval(t.pid)})),Hn=[]}function Vn(){clearInterval(Rn)}var Un=ja((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=va(),u=!1;Fn!==a&&(Fn=a,qn(),Mn=e.scroll,i=e.scrollFn,!0===Mn&&(Mn=Ca(a,!0)));var d=0,p=Mn;do{var m=p,_=ba(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=_a(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),E=x&&(Math.abs(f-l)<=s&&$+y<C)-(Math.abs(h-l)<=s&&!!$);if(!Hn[d])for(var I=0;I<=d;I++)Hn[I]||(Hn[I]={});Hn[d].vx==T&&Hn[d].vy==E&&Hn[d].el===m||(Hn[d].el=m,Hn[d].vx=T,Hn[d].vy=E,clearInterval(Hn[d].pid),0==T&&0==E||(u=!0,Hn[d].pid=setInterval(function(){n&&0===this.layer&&En.active._onTouchMove(Ln);var e=Hn[this.layer].vy?Hn[this.layer].vy*r:0,a=Hn[this.layer].vx?Hn[this.layer].vx*r:0;"function"==typeof i&&"continue"!==i.call(En.dragged.parentNode[Ea],a,e,t,Ln,Hn[this.layer].el)||$a(Hn[this.layer].el,a,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=Ca(p,!1)));Wn=u}}),30),Yn=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 Zn(){}function Jn(){}Zn.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=ya(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:Yn},Qe(Zn,{pluginName:"revertOnSpill"}),Jn.prototype={onSpill:function(t){var e=t.dragEl,a=t.putSortable||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:Yn},Qe(Jn,{pluginName:"removeOnSpill"});En.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?la(document,"dragover",this._handleAutoScroll):this.options.supportPointer?la(document,"pointermove",this._handleFallbackAutoScroll):e.touches?la(document,"touchmove",this._handleFallbackAutoScroll):la(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?sa(document,"dragover",this._handleAutoScroll):(sa(document,"pointermove",this._handleFallbackAutoScroll),sa(document,"touchmove",this._handleFallbackAutoScroll),sa(document,"mousemove",this._handleFallbackAutoScroll)),Vn(),qn(),clearTimeout(da),da=void 0},nulling:function(){Ln=Fn=Mn=Wn=Rn=zn=Bn=null,Hn.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(Ln=t,e||this.options.forceAutoScrollFallback||ta||Ke||aa){Un(t,this.options,o,e);var l=Ca(o,!0);!Wn||Rn&&n===zn&&i===Bn||(Rn&&Vn(),Rn=setInterval((function(){var o=Ca(document.elementFromPoint(n,i),!0);o!==l&&(l=o,qn()),Un(t,a.options,o,e)}),10),zn=n,Bn=i)}else{if(!this.options.bubbleScroll||Ca(o,!0)===va())return void qn();Un(t,this.options,Ca(o,!1),!1)}}},Qe(t,{pluginName:"scroll",initializeByDefault:!0})}),En.mount(Jn,Zn);const Qn=En;var Xn=a(998),Gn=a.n(Xn),Kn=a(1865),ti=a.n(Kn);const ei=r({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.$createElement,a=t._self._c||e;return t.appReady?a("div",{staticClass:"maybe_nt_multi_select",staticStyle:{"max-width":"90%"}},["yes"==t.column.isMultiple?[a("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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1)]:[a("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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1)]],2):t._e()}),[],!1,null,null,null).exports;const ai=r({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:(X()(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.$createElement,a=t._self._c||e;return t.appReady?a("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?[a("div",{staticClass:"nt_form_group"},[a("label",[t._v("Upload Image")]),t._v(" "),a("div",{staticClass:"nt_form_input"},[t.data.image_thumb?a("div",{staticClass:"image_preview"},[a("img",{attrs:{src:t.data.image_thumb}})]):t._e(),t._v(" "),a("el-button",{staticClass:"image_select_button",attrs:{size:"mini",type:"info"},on:{click:t.initUploader}},[t.data.image_thumb?a("span",[t._v("Change Image")]):a("span",[t._v("Upload Image")])]),t._v(" "),t.data.image_thumb?a("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?a("div",{staticClass:"nt_form_group"},["iframe_ligtbox"==t.column.link_type?a("label",[t._v("Iframe URL (Only The URL)")]):a("label",[t._v("Target URL")]),t._v(" "),a("div",{staticClass:"nt_form_input"},[a("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 ni={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 ii=a(3582),oi={insert:"head",singleton:!1};o()(ii.Z,oi);ii.Z.locals;const li=r(ni,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:"yes"==t.only_picker?"ninja_only_picker":"ninja_date_picker"},["yes"!=t.only_picker?a("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(" "),a("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,si={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(X()(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={};X()(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",{}),X()(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:{wp_editor:k,NinjaDatePicker:li,mayBeSelect:ei,ImageSelector:ai}};var ri=a(5529),ci={insert:"head",singleton:!1};o()(ri.Z,ci);ri.Z.locals;const ui=r(si,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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?a("div",[t._l(t.columns,(function(e){return a("div",{key:e.key,staticClass:"form-group"},[a("label",{attrs:{for:t.slugify(e.key)}},[t._v(t._s(e.name||e.key))]),t._v(" "),"textarea"==e.data_type?a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(a){a.target.composing||t.$set(t.newColumn,e.key,a.target.value)}}})]):"html"==e.data_type?a("div",[a("wp_editor",{attrs:{editor_id:t.slugify(e.key)},model:{value:t.newColumn[e.key],callback:function(a){t.$set(t.newColumn,e.key,a)},expression:"newColumn[column.key]"}})],1):"date"==e.data_type?a("div",[a("ninja-date-picker",{attrs:{column:e,new_column:t.newColumn}})],1):"selection"==e.data_type?a("div",[a("may-be-select",{attrs:{column:e,newColumn:t.newColumn}})],1):"image"==e.data_type&&t.has_pro?a("div",[a("image-selector",{attrs:{adding_counter:t.adding_counter,column:e,newColumn:t.newColumn}})],1):"button"==e.data_type&&t.has_pro?a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:"Valid button URL",type:"url",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(a){a.target.composing||t.$set(t.newColumn,e.key,a.target.value)}}}),t._v(" "),a("small",[t._v("Please provide valid URL")])]):a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newColumn[e.key],expression:"newColumn[column.key]"}],staticClass:"form-control",attrs:{placeholder:e.name,type:"text",id:t.slugify(e.key)},domProps:{value:t.newColumn[e.key]},on:{input:function(a){a.target.composing||t.$set(t.newColumn,e.key,a.target.value)}}})])])})),t._v(" "),t.editId||!t.manualSort||t.insertAfterPosition?t._e():a("div",[t._v("\n Add at\n "),a("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 "),a("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?a("div",{staticClass:"row_config_container"},[t.has_pro?[a("h3",[t._v("Row Settings")]),t._v(" "),a("div",{staticClass:"form_row_full"},[a("div",{staticClass:"form-group form_row_half"},[a("label",[t._v("Row Background Color")]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group form_row_half"},[a("label",[t._v("Row Text Color")]),t._v(" "),a("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(" "),a("h3",[t._v("Cell Color Customization")]),t._v(" "),a("table",{staticClass:"wp-list-table widefat fixed striped"},[a("thead",[a("tr",[a("th",[t._v("Column")]),t._v(" "),a("th",[t._v("Background Color")]),t._v(" "),a("th",[t._v("Text Color")])])]),t._v(" "),a("tbody",t._l(t.columns,(function(e){return a("tr",{key:e.key},[a("td",[t._v(t._s(e.name))]),t._v(" "),a("td",[a("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key]["background-color"],callback:function(a){t.$set(t.item_settings.cell[e.key],"background-color",a)},expression:"item_settings.cell[column.key]['background-color']"}})],1),t._v(" "),a("td",[a("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.item_settings.cell[e.key].color,callback:function(a){t.$set(t.item_settings.cell[e.key],"color",a)},expression:"item_settings.cell[column.key]['color']"}})],1)])})),0)]),t._v(" "),t.insertAfterPosition?t._e():a("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[a("label",[t._v("\n Data Create Date\n "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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)]:[a("h3",[t._v("Row and Cell Color Customization")]),t._v(" "),a("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(" "),a("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"}},[a("button",{staticClass:"el-button el-button--danger el-button--mini",attrs:{type:"button"}},[a("span",[t._v("Buy Pro")])])])]],2):t._e(),t._v(" "),a("div",{staticClass:"dialog-footer",class:{"single-child":t.shouldNotContinueAdding},attrs:{slot:"footer"},slot:"footer"},[t.shouldNotContinueAdding?t._e():[a("div",[a("label",{staticClass:"dialog-footer-item",attrs:{for:"adding_more"}},[a("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(" "),a("div",{staticClass:"dialog-footer-item"},[a("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){t.row_config=!t.row_config}}},[a("i",{staticClass:"el-icon-setting"})]),t._v(" "),a("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?a("span",[t._v(" "+t._s(t.$t("Update")))]):a("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)],2)])}),[],!1,null,null,null).exports;const di={name:"ninja_alert",props:["type"],computed:{alertClass:function(){return this.type||"success"}}};var pi=a(420),mi={insert:"head",singleton:!1};o()(pi.Z,mi);pi.Z.locals;const _i=r(di,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"alert",class:"alert-"+t.alertClass},[t._t("default")],2)}),[],!1,null,null,null).exports;const hi={name:"DeletePopOver",props:["label"],data:function(){return{visible:!1}},methods:{proceedConfirmation:function(){this.visible=!1,this.$emit("deleted")}}};var fi=a(6167),vi={insert:"head",singleton:!1};o()(fi.Z,vi);fi.Z.locals;const bi=r(hi,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"remove"},[a("el-popover",{ref:"popover5",attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("p",[t._v(t._s(t.$t("Are you sure to delete this?")))]),t._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("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(" "),a("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?a("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"span-block",domProps:{textContent:t._s(t.label)}}):a("a",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}]},[a("span",{staticClass:"dashicons dashicons-trash"})])],1)}),[],!1,null,"590fa148",null).exports;const gi={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 yi=a(1502),wi={insert:"head",singleton:!1};o()(yi.Z,wi);yi.Z.locals;const xi=r(gi,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"sortable-upgrade-notice",attrs:{visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("h1",{staticClass:"el-notifications",attrs:{slot:"title"},slot:"title"},[a("i",{staticClass:"el-icon-warning text-warning"}),t._v(" "+t._s(t.$t("Upgrade Notice"))+"\n ")]),t._v(" "),a("span",[t._v("\n "+t._s(t.$t("Your Ninja Tables Pro plugin is outdated. Please upgrade to its latest version."))+"\n ")]),t._v(" "),a("br"),t._v(" "),a("br"),t._v(" "),a("span",[a("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 ki=r({name:"ninja_color_picker",props:["label","value","disabled"],data:function(){return{color:"",previous_color:""}},watch:{color:function(t){"transparent"===t&&(this.color=""),this.previous_color=this.color,this.$emit("input",this.color)}},methods:{changeColor:function(t){"transparent"===this.previous_color?(this.previous_color=t,this.color="transparent"):this.color=t}},mounted:function(){this.color=this.value}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form_group"},[a("el-color-picker",{attrs:{"show-alpha":"",disabled:t.disabled},on:{"active-change":t.changeColor},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),t._v(" "),t.label?a("label",[t._v(t._s(t.label))]):t._e()],1)}),[],!1,null,null,null).exports;function Ci(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 Si(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const ji={name:"Conditional",props:{hasPro:{type:Boolean,default:!1},column:{type:Object,default:function(){return{}}}},components:{NinjaColorPicker:ki},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?Ci(Object(a),!0).forEach((function(e){Si(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ci(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",[])}},$i=ji;var Ti=a(8523),Ei={insert:"head",singleton:!1};o()(Ti.Z,Ei);Ti.Z.locals;var Ii=r($i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"column-condition-config"},[t.hasPro?a("div",{staticClass:"conditional-settings-header"},[t._m(0),t._v(" "),a("el-button",{attrs:{size:"small",type:"info",disabled:!t.hasPro},on:{click:t.addCondition}},[t._v("\n Add Condition\n ")])],1):a("div",{staticClass:"conditional-settings-header ninja_table_inline_upgrade"},[a("div",{staticClass:"conditional-settings-title"},[a("H3",[t._v("Conditional Formatting")]),t._v(" "),a("p",[t._v("\n Customize your table's appearances based on the cell value. Add as many conditions as you like.\n Conditional Formatting is a pro feature which can be enabled by using Ninja Table pro Add-on. Ninja\n Table Pro has lots of features that will help you to build any type of Tables.\n ")]),t._v(" "),t._m(1)],1)]),t._v(" "),a("hr"),t._v(" "),t._l(t.column.conditions,(function(e,n){return a("el-row",{key:n},[a("el-col",{attrs:{sm:2,md:2}},[a("div",{staticClass:"if-cell-value"},[t._v("If Cell Value")])]),t._v(" "),a("el-col",{attrs:{sm:5,md:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,size:"small"},model:{value:e.conditionalOperator,callback:function(a){t.$set(e,"conditionalOperator",a)},expression:"condition.conditionalOperator"}},[a("el-option",{attrs:{label:"Equal",value:"equal"}}),t._v(" "),a("el-option",{attrs:{label:"Not Equal",value:"not-equal"}}),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?a("el-option",{attrs:{label:"Contains",value:"contains"}}):t._e(),t._v(" "),-1==["number","date"].indexOf(t.column.data_type)?a("el-option",{attrs:{label:"Does Not Contain",value:"does-not-contain"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?a("el-option",{attrs:{label:"Less Than",value:"less-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?a("el-option",{attrs:{label:"Greater Than",value:"greater-than"}}):t._e(),t._v(" "),-1!=["number","date"].indexOf(t.column.data_type)?a("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)?a("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)?a("el-option",{attrs:{label:"Between (Min & Max Values)",value:"between"}}):t._e()],1)],1),t._v(" "),a("el-col",{attrs:{sm:5,md:5}},[a("el-input",{attrs:{size:"small",placeholder:"between"==e.conditionalOperator?"Min value":"Enter Value",disabled:!t.hasPro},model:{value:e.conditionalValue,callback:function(a){t.$set(e,"conditionalValue",a)},expression:"condition.conditionalValue"}})],1),t._v(" "),"between"==e.conditionalOperator?a("el-col",{attrs:{sm:4,md:4}},[a("el-input",{attrs:{size:"small",placeholder:"Max Value"},model:{value:e.conditionalValue2,callback:function(a){t.$set(e,"conditionalValue2",a)},expression:"condition.conditionalValue2"}})],1):t._e(),t._v(" "),a("el-col",{attrs:{sm:1,md:1}},[a("div",{staticClass:"if-cell-value text-center"},[t._v("Then")])]),t._v(" "),a("el-col",{attrs:{sm:5,md:5}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.hasPro,filterable:"",size:"small"},model:{value:e.targetAction,callback:function(a){t.$set(e,"targetAction",a)},expression:"condition.targetAction"}},[a("el-option-group",{key:"cell_options",attrs:{label:"Cell Options"}},[a("el-option",{attrs:{label:"Set cell color",value:"set-cell-color"}}),t._v(" "),a("el-option",{attrs:{label:"Set cell background color",value:"set-cell-bg-color"}}),t._v(" "),a("el-option",{attrs:{label:"Set cell content",value:"set-cell-content"}}),t._v(" "),a("el-option",{attrs:{label:"Set cell CSS class",value:"set-cell-css-class"}}),t._v(" "),a("el-option",{attrs:{label:"Reset cell color to default",value:"reset-cell-color-to-default"}}),t._v(" "),a("el-option",{attrs:{label:"Reset cell background color to default",value:"reset-cell-bg-color-to-default"}}),t._v(" "),a("el-option",{attrs:{label:"Remove cell CSS class",value:"remove-cell-css-class"}})],1),t._v(" "),a("el-option-group",{key:"row_options",attrs:{label:"Row Options"}},[a("el-option",{attrs:{label:"Set row color",value:"set-row-color"}}),t._v(" "),a("el-option",{attrs:{label:"Set row background color",value:"set-row-bg-color"}}),t._v(" "),a("el-option",{attrs:{label:"Set row CSS class",value:"set-row-css-class"}}),t._v(" "),a("el-option",{attrs:{label:"Reset row color to default",value:"reset-row-color-to-default"}}),t._v(" "),a("el-option",{attrs:{label:"Reset row background color to default",value:"reset-row-bg-color"}}),t._v(" "),a("el-option",{attrs:{label:"Remove row CSS class",value:"remove-row-css-class"}})],1),t._v(" "),a("el-option-group",{key:"column_options",attrs:{label:"Column Options"}},[a("el-option",{attrs:{label:"Set column color",value:"set-column-color"}}),t._v(" "),a("el-option",{attrs:{label:"Set column background color",value:"set-column-bg-color"}}),t._v(" "),a("el-option",{attrs:{label:"Add column CSS class",value:"add-column-css-class"}}),t._v(" "),a("el-option",{attrs:{label:"Remove column CSS class",value:"remove-column-css-class"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{sm:4,md:4}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.shouldShowColorPicker(e),expression:"!shouldShowColorPicker(condition)"}],attrs:{size:"small",placeholder:"Enter Value",disabled:!t.hasPro},model:{value:e.targetValue,callback:function(a){t.$set(e,"targetValue",a)},expression:"condition.targetValue"}}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowColorPicker(e),expression:"shouldShowColorPicker(condition)"}],staticClass:"conditional_color_block"},[a("ninja-color-picker",{attrs:{size:"mini",disabled:!t.hasPro},model:{value:e.targetValueColor,callback:function(a){t.$set(e,"targetValueColor",a)},expression:"condition.targetValueColor"}})],1)],1),t._v(" "),a("el-col",{attrs:{sm:1,md:1}},[a("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?a("div",{staticClass:"nt_suggest"},[a("h4",[t._v("You can use placeholder for dynamic dates to style your row/cell/column")]),t._v(" "),a("p",[t._v("Example Usage")]),t._v(" "),a("ul",[a("li",[t._v("Today's Date: "),a("code",[t._v("{date:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),a("li",[t._v("Tomorrow's Date: "),a("code",[t._v("{date+1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),a("li",[t._v("Yesterday's Date: "),a("code",[t._v("{date-1:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),a("li",[t._v("Date After 10 Days: "),a("code",[t._v("{date+10:"+t._s(t.column.dateFormat)+"}")])]),t._v(" "),a("li",[t._v("Date Before 10 Days: "),a("code",[t._v("{date-10:"+t._s(t.column.dateFormat)+"}")])])])]):t._e(),t._v(" "),t.column.conditions&&t.column.conditions.length?t._e():a("el-row",[a("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.$createElement,a=t._self._c||e;return a("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. "),a("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/docs/ninja-tables/conditional-column-formatting/"}},[t._v("View\n Documentation")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=conditional_formatting&utm_term=upgrade",target:"_blank"}},[a("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[a("span",[t._v("Buy Pro and Enable Conditional Formatting")])])])}],!1,null,null,null);const Di=Ii.exports;const Pi=r({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.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[a("h4",[t._v(t._s(t.$t("Dynamic Post Data Settings")))]),t._v(" "),a("hr"),t._v(" "),"custom"==t.column.source_type?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Field Type")]),t._v(" "),a("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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 a("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})})),1)],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Field Value")]),t._v(" "),a("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[a("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 a("el-option",{key:t,attrs:{value:t,label:t}})})),1)]:a("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?a("div",{staticClass:"ninja_instruction"},[a("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?a("p",[a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),a("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.original_name?a("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"}}):a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Permalink Action Type")]),t._v(" "),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Open Link To New tab")]),t._v(" "),a("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),a("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Taxonomy Separator")]),t._v(" "),a("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Permalink Action Type")]),t._v(" "),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Open Link To New tab")]),t._v(" "),a("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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 Ai(t){return Ai="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},Ai(t)}function Ni(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 Oi=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":Ai(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}))}}])&&Ni(e.prototype,a),n&&Ni(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());const Mi={name:"ColumnsEditor",components:{wp_editor:k,condition:Di,"wp-post-dynamic-column":Pi,"content-transformer":r({name:"ContentTransformer",props:{column:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}},settings:{type:Object}},components:{ninja_alert:_i,NinjaPremiumNotice:q},watch:{"settings.formula_support":function(){this.storeSettings()}},data:function(){return{hasPro:!!window.ninja_table_admin.hasPro,tableId:this.$route.params.table_id,doingAjax:!1,supported_formullas:[],show_formulas:!1}},computed:{placeholder:function(){var t="Please Input Transform Values (HTML supported)";return"yes"==this.settings.formula_support&&(t="Please Input Transform Values (HTML and Excel Formula are supported)"),t}},methods:{storeSettings:function(){var t=this;window.ninjaTableBus.$emit("tableDoingAjax",!0),this.doingAjax=!0;var e={action:"ninja_tables_ajax_actions",target_action:"update-table-settings",table_id:this.tableId,table_settings:this.settings};this.$post(e).success((function(t){})).fail((function(t){})).always((function(){t.doingAjax=!1,window.ninjaTableBus.$emit("tableDoingAjax",!1)}))}},mounted:function(){this.supported_formullas=Oi.getSupportedFormulas()}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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(" "),a("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():a("ninja-premium-notice",{attrs:{highlight:"Transform Column Value"}}),t._v(" "),a("div",{staticClass:"ninja_instruction"},[a("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(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.settings.formula_support,expression:"settings.formula_support == 'yes'"}]},[a("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(" "),a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.show_formulas=!0}}},[t._v("Show Formulas")]),t._v(" "),a("el-dialog",{attrs:{title:"Supported Excel Formullas",visible:t.show_formulas,width:"30%"},on:{"update:visible":function(e){t.show_formulas=e}}},[a("ul",{staticStyle:{margin:"0px 20px","padding-top":"20px"}},t._l(t.supported_formullas,(function(e){return a("li",[t._v(t._s(e))])})),0)])],1)],1),t._v(" "),a("div",{staticClass:"ninja_instruction"},[a("p",[t._v("You can use the following Reference Shortcode Values to transform your cell value")]),t._v(" "),a("table",{staticClass:"wp-list-table widefat fixed striped"},[t._m(0),t._v(" "),a("tbody",t._l(t.columns,(function(e){return a("tr",{key:e.key},[a("td",[t._v(t._s(e.name))]),t._v(" "),a("td",[t._v("{{"),a("span",[t._v("row."+t._s(e.key))]),t._v("}}")])])})),0)]),t._v(" "),a("br"),t._v(" "),t._m(1),t._v(" "),a("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.$createElement,a=t._self._c||e;return a("thead",[a("tr",[a("th",[t._v("Column Title")]),t._v(" "),a("th",[t._v("Reference Shortcode")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[t._v("You may "),a("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:r({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.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"wp_posts_dynamic_field"},[a("h4",[t._v(t._s(t.$t("Dynamic Column Data Settings")))]),t._v(" "),a("hr"),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Field Type")]),t._v(" "),a("p",[t._v("Select The field type you want to populate for each row")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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 a("el-option",{key:t.key,attrs:{value:t.key,disabled:t.disabled,label:t.label}})})),1)],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Field Value"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Field Value")]),t._v(" "),a("p",[t._v("Provide the column value for your corresponding value type select")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"options"==t.selectedFiledValueType?[a("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.selectedField.placeholder,size:"small"},model:{value:t.column.wp_post_custom_data_key,callback:function(e){t.$set(t.column,"wp_post_custom_data_key",e)},expression:"column.wp_post_custom_data_key"}},t._l(t.selectedField.options,(function(t,e){return a("el-option",{key:e,attrs:{value:e,label:t}})})),1),t._v(" "),"featured_image"==t.column.wp_post_custom_data_source_type?a("div",[a("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"}},[a("el-radio",{attrs:{label:"lightbox"}},[t._v("Make image as lightbox")]),t._v(" "),a("el-radio",{attrs:{label:"linked"}},[t._v("Link to Product page")]),t._v(" "),a("el-radio",{attrs:{label:""}},[t._v("None")])],1),t._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:"linked"==t.column.image_permalink_type,expression:"column.image_permalink_type == 'linked'"}]},[a("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()]:a("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?a("div",{staticClass:"ninja_instruction"},[a("p",{domProps:{innerHTML:t._s(t.selectedField.instruction)}}),t._v(" "),t.selectedField.learn_more_url?a("p",[a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Buy Now Button Text"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Buy Now Button Text")]),t._v(" "),a("p",[t._v("Provide Buy Now Button Text")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Link to Post/Author Permalink")]),t._v(" "),a("p",[t._v("\n Enable this if you want to link to post/Author permalink\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),"post_author"==t.column.wp_post_custom_data_key?a("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"}}):a("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(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Link to Taxonomy Permalink")]),t._v(" "),a("p",[t._v("\n Enable this if you want to link to Taxonomy permalink\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Taxonomy Separator"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Taxonomy Separator")]),t._v(" "),a("p",[t._v("Taxonomy Separator for Multiple Items")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Permalink Action"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Permalink Action Type")]),t._v(" "),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Open Link To New tab"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Open Link To New tab")]),t._v(" "),a("p",[t._v("\n Enable this if you want to open the links to new tab\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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:ki},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 Fi=a(4867),zi={insert:"head",singleton:!1};o()(Fi.Z,zi);Fi.Z.locals;const Bi=r(Mi,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.model,"label-width":"200px"}},[a("el-tabs",{on:{"tab-click":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[a("el-tab-pane",{staticClass:"basic_settings",attrs:{label:"Basic Settings",name:"basic"}},[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Name"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Column Name")]),t._v(" "),a("p",[t._v("\n Enter a column name to set the header title.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Key"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Column Key")]),t._v(" "),a("p",[t._v("\n Column key is for data mapping, export and import table data.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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():a("small",[t._v("Please use english letters only")])],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Data Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v(" "+t._s(t.$t("Data Type")))]),t._v(" "),a("p",[t._v("\n Choose the data type of the column.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select Data Type of this column"},model:{value:t.model.data_type,callback:function(e){t.$set(t.model,"data_type",e)},expression:"model.data_type"}},t._l(t.dataTypesOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Format"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v(" "+t._s(t.$t("Date Format")))]),t._v(" "),a("p",[t._v("\n Pattern of the date value.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-radio-group",{model:{value:t.model.formatType,callback:function(e){t.$set(t.model,"formatType",e)},expression:"model.formatType"}},[a("el-radio",{attrs:{label:"standard"}},[t._v(t._s(t.$t("Standard")))]),t._v(" "),a("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?a("el-form-item",[a("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])}}},[a("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.dateFormats,(function(e,n){return a("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(n)+" - (Ex: "+t._s(e)+")\n ")])}))],2)]):a("el-form-item",[a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Show Time"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Show Time")]),t._v(" "),a("p",[t._v("\n If you select yes, then time picker will be available\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?a("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])}}},[a("option",{attrs:{value:""}},[t._v(t._s(t.$t("Select a Format")))]),t._v(" "),t._l(t.timeFormats,(function(e,n){return a("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(n)+" - (Ex: "+t._s(e)+")\n ")])}))],2):t._e()],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("First Day"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("First Day")]),t._v(" "),a("p",[t._v("\n The first day of the week, e.g. Sunday, Monday, etc.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-select",{staticClass:"nt_column_type_select",attrs:{size:"mini",placeholder:"Select first day of the week"},model:{value:t.model.firstDayOfWeek,callback:function(e){t.$set(t.model,"firstDayOfWeek",e)},expression:"model.firstDayOfWeek"}},t._l(t.weekDays,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1)],2)]:"number"==t.model.data_type&&t.hasPro?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Separator Style"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v(" "+t._s(t.$t("Thousand Separator")))]),t._v(" "),a("p",[t._v("\n Please Provide The Thousand/Decimal Separator If Any.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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"}},[a("el-radio",{attrs:{label:"us"}},[t._v("US Style - decimal point (123,234.01)")]),t._v(" "),a("el-radio",{attrs:{label:"eu"}},[t._v("European Style - decimal comma (123.234,01)")])],1)],2)]:"selection"==t.model.data_type?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Select Items"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Select Field")]),t._v(" "),a("p",[t._v("\n Use Select Field to add data in your table from predefined list\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-form-item",[t.has_pro?t._e():a("p",[a("b",[t._v("Selection feature is only available on Pro version Please upgrade to\n pro to unlock this feature")])]),t._v(" "),a("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(" "),a("small",[t._v("Enter Select items one per line")])],1)],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Placeholder")]),t._v(" "),a("p",[t._v("\n Enter the selection placeholder, default: 'Select'\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Enable Multi-Selection"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Multiple Selection")]),t._v(" "),a("p",[t._v("\n If you select yes, Then admin can select multiple item on create data\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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():[a("el-form-item",[a("p",{staticStyle:{color:"red"}},[t._v("Image upload with lightbox, download link is a pro feature. It will\n not work without Pro Version "),a("b",[a("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Please upgrade to pro")])])])])],t._v(" "),a("el-form-item",{attrs:{label:"Image Linkable?"}},[a("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(" "),a("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(" "),a("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(" "),a("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?a("el-form-item",{attrs:{label:"Download Button Text / HTML"}},[a("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?a("el-form-item",[a("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():[a("el-form-item",[a("p",{staticStyle:{color:"red"}},[t._v("Button on Table is a pro Feature. It will not work without Pro Version. "),a("b",[a("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("Please upgrade to pro")])])])])],t._v(" "),a("el-form-item",{attrs:{label:"Button Text"}},[a("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(" "),a("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(" "),a("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(" "),a("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(" "),a("el-form-item",{attrs:{label:"Button Style"}},[a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Link With Rel Attribute"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Sponsored, Nofollow & NoReferrer")]),t._v(" "),a("p",[t._v("\n Check one or multiple a rel attribute of the column\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.model.relAttributes?a("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 a("el-checkbox",{key:t,attrs:{label:t}})})),1):t._e()],2)]:t._e(),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Responsive Breakpoint"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Responsive Breakpoint")]),t._v(" "),a("p",[t._v("\n Choose responsive breakpoints of your table columns. "),a("br"),t._v("\n For more details check "),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-select",{attrs:{size:"mini",placeholder:"Select Responsive Breakpoint"},model:{value:t.model.breakpoints,callback:function(e){t.$set(t.model,"breakpoints",e)},expression:"model.breakpoints"}},t._l(t.breakPointsOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1)],2),t._v(" "),"wp-posts"==t.dataSourceType?a("wp-post-dynamic-column",{attrs:{columns:t.columns,column:t.model}}):"wp_woo"==t.dataSourceType?[a("dynamic-woo-column",{attrs:{columns:t.columns,column:t.model}})]:t._e()],2),t._v(" "),a("el-tab-pane",{attrs:{label:"Advanced Settings",name:"advanced"}},[a("div",{staticClass:"advanced-settings"},[t.hasPro?t._e():a("div",{staticClass:"ninja_table_inline_upgrade"},[a("H3",[t._v("Advanced Column Settings")]),t._v(" "),a("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(" "),a("a",{attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=advanced_column&utm_term=upgrade",target:"_blank"}},[a("button",{staticClass:"el-button el-button--danger",attrs:{type:"button"}},[a("span",[t._v("Buy Pro and Enable This Module")])])])],1),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Extra Classes"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Extra CSS Classes")]),t._v(" "),a("p",[t._v("\n Enter extra CSS classes to the column. "),a("br"),t._v("\n Use `space` to separate each class.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Max Width"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v(t._s(t.$t("Maximum Width")))]),t._v(" "),a("p",[t._v("\n Enter the maximum width of the column. This will be applied for the entire\n column\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-col",{attrs:{xs:22,md:22,lg:22,xl:22}},[a("el-form-item",[a("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(" "),a("el-col",{attrs:{xs:2,md:2,lg:2,xl:2}},[a("el-form-item",[a("el-select",{attrs:{size:"small",placeholder:"Select"},model:{value:t.model.maxWidthUnit,callback:function(e){t.$set(t.model,"maxWidthUnit",e)},expression:"model.maxWidthUnit"}},[a("el-option",{attrs:{label:"px",value:"px"}}),t._v(" "),a("el-option",{attrs:{label:"%",value:"%"}})],1)],1)],1)],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header Text Align"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Header Text Alignment")]),t._v(" "),a("p",[t._v("\n Choose the text alignment. This will be applied only for header\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-select",{attrs:{size:"mini",placeholder:"Text Align"},model:{value:t.model.textAlign,callback:function(e){t.$set(t.model,"textAlign",e)},expression:"model.textAlign"}},t._l(t.alignmentOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1)],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Row Content Text Align"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Content Text Alignment")]),t._v(" "),a("p",[t._v(" Choose the text alignment for Column Rows")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-select",{attrs:{size:"mini",placeholder:"Content Alignment"},model:{value:t.model.contentAlign,callback:function(e){t.$set(t.model,"contentAlign",e)},expression:"model.contentAlign"}},t._l(t.contentAlignmentOptions,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1)],2),t._v(" "),a("el-form-item",[a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Header HTML Content"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Header HTML Content")]),t._v(" "),a("p",[t._v("\n Provide content for table column header if you want to show html content.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filterable"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Filterable")]),t._v(" "),a("p",[t._v("\n If You enable this then this column data will not be filterable at the frontend.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Sortable"))+"\n\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Sortable")]),t._v(" "),a("p",[t._v("\n If You enable this then this column data will not be sortable at the frontend.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Background"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Background color")]),t._v(" "),a("p",[t._v("\n You can set background color of this particular column that will show on the\n frontend table.\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.background_color,callback:function(e){t.$set(t.model,"background_color",e)},expression:"model.background_color"}})],2),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Column Text Color"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Text Color color")]),t._v(" "),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-color-picker",{attrs:{disabled:!t.hasPro,"show-alpha":""},model:{value:t.model.text_color,callback:function(e){t.$set(t.model,"text_color",e)},expression:"model.text_color"}})],2)],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"Conditional Formatting",name:"conditional"}},[a("condition",{attrs:{column:t.model,"has-pro":t.hasPro}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"Transform Value",name:"transformer"}},[a("content-transformer",{attrs:{settings:t.settings,columns:t.columns,column:t.model}})],1),t._v(" "),a("hr",{staticStyle:{margin:"10px 0"}}),t._v(" "),a("div",{staticClass:"form_group"},[a("div",{staticClass:"pull-right"},[t.updating?[t.hideDelete?t._e():a("el-popover",{attrs:{placement:"top",width:"170",trigger:"click"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[a("p",[t._v("Are you sure to delete this?")]),t._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){t.showConfirm=!1}}},[t._v("cancel\n ")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.deleteColumn}},[t._v("confirm\n ")])],1),t._v(" "),t.hideDelete?t._e():a("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[t._v(t._s(t.$t("Delete"))+"\n ")])],1),t._v(" "),a("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():a("el-button",{attrs:{type:"danger",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(" "),a("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 Li={name:"FluentformNav",components:{FluentForm:nt},props:{config:{type:Object},tableCreated:{type:Function},isEditableMessage:{required:!0},model:{type:Object},hasPro:{type:Boolean}},data:function(){return{}}};var Ri=a(1547),Hi={insert:"head",singleton:!1};o()(Ri.Z,Hi);Ri.Z.locals;const Wi=r(Li,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fluent-form-nav"},[a("el-collapse",[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),a("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),a("FluentForm",{attrs:{tableCreated:t.tableCreated,editing:!0,config:t.config}})],2)],1)],1)}),[],!1,null,null,null).exports;const qi={name:"External",components:{"external-data-source":st},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 Vi=a(2010),Ui={insert:"head",singleton:!1};o()(Vi.Z,Ui);Vi.Z.locals;const Yi=r(qi,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"external-source-nav"},[a("el-collapse",[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),a("strong",[t._v("Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),a("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 Zi={name:"RowSQLNav",components:{MySqlEditor:ht,RemoteSqlConnection:ft},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 Ji=a(4241),Qi={insert:"head",singleton:!1};o()(Ji.Z,Qi);Ji.Z.locals;const Xi=r(Zi,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fluent-form-nav"},[t.has_sql_permission?a("el-collapse",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("i",{staticClass:"header-icon el-icon-info el-text-info"}),t._v(" "),a("strong",[t._v(" Edit:")]),t._v(" "+t._s(t.isEditableMessage)+"\n ")]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),a("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(" "),a("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),a("code",[t._v("$wpdb->get_results()")]),t._v(" function")]),t._v(" "),a("p",[t._v("Check the documentation for advanced use cases: "),a("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(" "),a("p",[t._v("Available Dynamic Placeholders: "),a("code",[t._v("{current_user_id}")]),t._v(" "),a("code",[t._v("{current_date}")]),t._v(" "),a("code",[t._v("{current_date_time}")]),t._v(" "),a("code",[t._v("{current_post_id}")]),t._v(" "),a("code",[t._v("{current_post_title}")]),t._v(" "),a("code",[t._v("{prefix}")])])],1),t._v(" "),t.error_html?a("div",{staticClass:"form-group"},[a("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[a("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),a("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[a("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?a("el-collapse-item",{attrs:{name:"2"}},[a("template",{slot:"title"},[a("strong",[t._v("SQL Connection Details:")])]),t._v(" "),a("remote-sql-connection",{attrs:{connection:t.connection_details}}),t._v(" "),t.error_html?a("div",{staticClass:"form-group"},[a("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[a("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),a("div",{staticClass:"form-group",staticStyle:{"text-align":"right"}},[a("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):[a("el-alert",{attrs:{title:"",type:"error",closable:!1}},[a("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."),a("br"),t._v("\n You can only see the data and update other settings but can't alter the original SQL.\n ")]),t._v(" "),a("b",[t._v("Current SQL Query: ")]),t._v(" "),a("p",[a("code",[t._v(t._s(t.config.table.sql))])])])]],2)}),[],!1,null,null,null).exports;const Gi={name:"WPPostsNav",components:{WPPosts:J,columnsEditor:Bi},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 Ki=a(2980),to={insert:"head",singleton:!1};o()(Ki.Z,to);Ki.Z.locals;const eo=r(Gi,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fluent-form-nav"},[a("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"Table Query Settings and New Column",name:"1"}},[a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"Table Info"}},[a("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(" "),a("el-tab-pane",{attrs:{label:"Query Settings"}},[a("WPPosts",{attrs:{hasPLainLayout:!0,config:t.config,tableCreated:t.tableCreated}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"Add New Column"}},[a("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 ao={name:"woo_nav_edit",props:["config","model"],components:{WooNav:G,ColumnsEditor:Bi},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 no=a(3589),io={insert:"head",singleton:!1};o()(no.Z,io);no.Z.locals;const oo=r(ao,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nt-woo-nav"},[a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{staticClass:"nt-appearance",attrs:{label:"Appearance"}},[a("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(" "),a("br"),t._v(" "),a("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(" "),a("br"),t._v(" "),a("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(" "),a("br"),t._v(" "),a("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(" "),a("br"),t._v(" "),a("div",{staticClass:"nt-form-group"},[a("label",{attrs:{for:"cartBtnText"}},[t._v("\n Cart Text\n ")]),t._v(" "),a("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(" "),a("div",{staticClass:"nt-form-group"},[a("label",{attrs:{for:"checkoutBtnText"}},[t._v("\n Checkout Text\n ")]),t._v(" "),a("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(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),a("el-tab-pane",{attrs:{label:"Query Settings"}},[a("woo-nav",{attrs:{query_selections:t.config.table.query_selections,query_conditions:t.config.table.query_conditions}}),t._v(" "),a("br"),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveSettings()}}},[t._v("Save Settings")])],1),t._v(" "),a("el-tab-pane",{attrs:{label:"Add New Column"}},[a("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 lo(t){return lo="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},lo(t)}a(8091).polyfill();const so=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"==lo(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(lo(m))?s+=m.call(p,u,(function(t){return l(t,p)})):s+=l(u,m,p,c),u=""):++d}))}return s};var ro=a(7955),co=a.n(ro),uo=a(3311),po=a.n(uo);function mo(t){return mo="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},mo(t)}const _o={name:"TableDataItems",components:{add_data_modal:ui,ninja_pagination:h,Alert:_i,DeletePopOver:bi,SortableUpgradeNotice:xi,columnsEditor:Bi,FluentFormNav:Wi,ExternalSourceNav:Yi,WPPostsNav:eo,RawSqlNav:Xi,WooNavEdit:oo,ShowEditableCell:r({name:"show_cell",props:["row","columns","column","formula_support","is_editable"],components:{mayBeSelect:ei,NinjaDatePicker:li},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"==mo(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=Oi.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=po()(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=co()(so(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.$createElement,a=t._self._c||e;return a("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?a("div",{staticClass:"cell_editing"},["selection"==t.column.data_type?a("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?a("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?a("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)}}}):a("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):a("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=ti()(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===Gn()(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=Qn.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=Gn()(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()}},ho=_o;var fo=a(3836),vo={insert:"head",singleton:!1};o()(fo.Z,vo);fo.Z.locals;var bo=r(ho,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.isEditable?t._e():["fluent-form"==t.dataSourceType?a("div",{staticClass:"tablenav top"},[a("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")?a("div",{staticClass:"tablenav top"},[a("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?a("div",{staticClass:"tablenav top"},[a("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?a("div",{staticClass:"tablenav top"},[a("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?a("div",{staticClass:"tablenav top"},[a("div",{staticClass:"woo_data_source_config"},[a("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():a("div",[a("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?a("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(" "),a("div",{staticClass:"tablenav top"},[a("div",{staticClass:"alignleft actions bulkactions"},[a("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),a("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]}}},[a("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),a("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),a("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(" "),a("label",{staticClass:"form_group",attrs:{for:"compact_view"}},[a("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(" "),a("label",[t._v("\n | "),a("i",{staticClass:"el-icon-news",attrs:{title:"show meta data"},on:{click:function(e){t.show_meta=!t.show_meta}}})]),t._v(" "),a("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[a("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(" "),a("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),a("label",[a("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(" "),a("div",{staticClass:"pull-right"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.add()}}},[t._v(" "+t._s(t.$t("Add Data")))]),t._v(" "),a("el-button",{attrs:{size:"small",type:"info"},on:{click:function(e){return t.addColumn()}}},[t._v(" "+t._s(t.$t("Add Column")))])],1)])]:t._e(),t._v(" "),t.loading||t.columns.length||!t.isEditable?t._e():a("div",{staticClass:"instruction_block",staticStyle:{"margin-top":"15px","text-align":"center"},attrs:{type:"warning"}},[a("h3",[t._v(t._s(t.$t("To get started please add table columns")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addColumn()}}},[t._v("\n Add Column\n ")])],1),t._v(" "),t.columns.length?[a("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?a("el-table-column",{attrs:{type:"selection",width:"60"}}):t._e(),t._v(" "),t._l(t.columns,(function(e,n){return a("el-table-column",{key:n,attrs:{width:t.columnLength==n+1?"":150},scopedSlots:t._u([{key:"default",fn:function(n){return[a("show-editable-cell",{attrs:{row:n.row,column:e,columns:t.columns,formula_support:t.config.settings.formula_support,is_editable:t.isEditable}})]}}],null,!0)},[t._v(" "),a("template",{slot:"header"},[a("span",[t._v("\n "+t._s(e.name||e.key)+"\n\n "),a("i",{staticClass:"el-icon-setting nt-column-config",on:{click:function(a){return t.showColumnConfigModal(e)}}})])])],2)})),t._v(" "),t.isEditable?[t.show_meta?[a("el-table-column",{attrs:{label:"Row ID",width:"100px",prop:"id"}}),t._v(" "),a("el-table-column",{attrs:{label:"Created By",width:"165px",prop:"created_by"}}),t._v(" "),a("el-table-column",{attrs:{label:"Reference Date",width:"165px",prop:"created_at"}})]:t._e(),t._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"Actions","class-name":"actions",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.has_pro?a("a",{on:{click:function(a){return t.addAfter(e)}}},[a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Add Data after this row","open-delay":500}},[a("span",{staticClass:"dashicons dashicons-plus"})])],1):t._e(),t._v(" "),a("a",{on:{click:function(a){return t.showUpdateModal(e)}}},[a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Edit data","open-delay":500}},[a("span",{staticClass:"dashicons dashicons-edit"})])],1),t._v(" "),a("a",{on:{click:function(a){return t.duplicateData(e)}}},[a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Duplicate data","open-delay":500}},[a("span",{staticClass:"dashicons dashicons-admin-page"})])],1),t._v(" "),a("delete-pop-over",{on:{deleted:function(a){return t.deleteItem(e.row.id)}}})]}}],null,!1,2116760848)})]:t._e()],2),t._v(" "),a("div",{staticClass:"tablenav bottom"},[t.isEditable?a("div",{staticClass:"alignleft actions bulkactions"},[a("label",{staticClass:"screen-reader-text",attrs:{for:"bulk-action-selector-top"}},[t._v("\n "+t._s(t.$t("Select bulk action"))+"\n ")]),t._v(" "),a("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]}}},[a("option",{attrs:{value:"-1"}},[t._v(t._s(t.$t("Bulk Actions")))]),t._v(" "),a("option",{attrs:{value:"delete"}},[t._v(t._s(t.$t("Delete Entries")))])]),t._v(" "),a("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(" "),a("div",{staticClass:"pull-right"},[a("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(" "),a("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}}),t._v(" "),a("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?a("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(" "),a("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}}},[a("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 go=bo.exports;var yo=a(7361),wo=a.n(yo);const xo={name:"ninja_key_pair_options",components:{draggable:xt()},props:["value"],data:function(){return{filterArray:[]}},methods:{deleteItem:function(t){this.value.splice(t,1)},add:function(){this.value.push({label:"",value:""})}},mounted:function(){}},ko=xo;var Co=a(3835),So={insert:"head",singleton:!1};o()(Co.Z,So);Co.Z.locals;var jo=r(ko,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"ninja_filter_table"},[t._m(0),t._v(" "),a("draggable",{attrs:{options:{handle:".handle"},list:t.value,element:"tbody"}},t._l(t.value,(function(e,n){return a("tr",[a("td",[a("span",{staticClass:"dashicons dashicons-editor-justify handle",staticStyle:{"margin-top":"10px"}})]),t._v(" "),a("td",[a("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.label,callback:function(a){t.$set(e,"label",a)},expression:"filter.label"}})],1),t._v(" "),a("td",[a("el-input",{attrs:{size:"mini",type:"text"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"filter.value"}})],1),t._v(" "),a("td",[a("el-button",{attrs:{disabled:1==t.value.length,type:"danger",size:"mini"},on:{click:function(e){return t.deleteItem(n)}}},[t._v("-")]),t._v(" "),a("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.$createElement,a=t._self._c||e;return a("thead",[a("tr",[a("th"),t._v(" "),a("th",[t._v("Label")]),t._v(" "),a("th",[t._v("Filter Value")])])])}],!1,null,null,null);const $o={name:"FilterEditor",components:{KeyPairOptions:jo.exports},props:["activeEditor","columnKeyPairs","columns"],computed:{current_columns:function(){if("date_picker"==this.activeEditor.type||"date_range"==this.activeEditor.type){var t=[];return X()(this.columns,(function(e){"date"==e.data_type&&t.push(e)})),t}if("number_range"==this.activeEditor.type){var e=[];return X()(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 To=a(6030),Eo={insert:"head",singleton:!1};o()(To.Z,Eo);To.Z.locals;const Io={name:"custom_filter",props:["table_id","columns"],components:{NinjaFilterEditor:r($o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"form",staticClass:"form-wrapper",attrs:{model:t.activeEditor,"label-width":"250px"}},[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Title"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Filter Title")]),t._v(" "),a("p",[t._v("Just a Name to identify your Filter")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Label"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Prefix")]),t._v(" "),a("p",[t._v("This will show on your Table Filter")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("small",[t._v("Keep it blank if you don't need any filter instruction at the frontend")])],2):t._e(),t._v(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter UI Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Filter UI")]),t._v(" "),a("p",[t._v("Select the filter type that you want to show the filter in the frontend")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.type,callback:function(e){t.$set(t.activeEditor,"type",e)},expression:"activeEditor.type"}},[a("el-radio",{attrs:{label:"select"}},[t._v("Select Dropdown")]),t._v(" "),a("el-radio",{attrs:{label:"radio"}},[t._v("Radio")]),t._v(" "),a("el-radio",{attrs:{label:"checkbox"}},[t._v("Checkbox")]),t._v(" "),a("el-radio",{attrs:{label:"date_picker"}},[t._v("Date Picker")]),t._v(" "),a("el-radio",{attrs:{label:"date_range"}},[t._v("Date Range")]),t._v(" "),a("el-radio",{attrs:{label:"text_input"}},[t._v("Text Input")]),t._v(" "),a("el-radio",{attrs:{label:"number_range"}},[t._v("Number Range")]),t._v(" "),a("el-radio",{attrs:{label:"reset_filter"}},[t._v("Reset Filter Button")])],1)],2),t._v(" "),t.need_placeholder?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Placeholder"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[t._v("This will show on as default placeholder to reset the label ( Ex: All )")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Value Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[t._v("Select How the value will be populated to the select dropdown")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"manual"}},[t._v("Manual Data")]),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Target Column"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[t._v("Select Column That you want to populate data")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-radio-group",{staticClass:"spaced",model:{value:t.activeEditor.dynamic_select_column,callback:function(e){t.$set(t.activeEditor,"dynamic_select_column",e)},expression:"activeEditor.dynamic_select_column"}},t._l(t.current_columns,(function(e){return a("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])})),1)],2),t._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("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?[a("el-form-item",{attrs:{label:"Sort Dynamic Value as: "}},[a("el-radio-group",{model:{value:t.activeEditor.sorting_type,callback:function(e){t.$set(t.activeEditor,"sorting_type",e)},expression:"activeEditor.sorting_type"}},[a("el-radio",{attrs:{label:"asc"}},[t._v("Asending Way")]),t._v(" "),a("el-radio",{attrs:{label:"desc"}},[t._v("Descending Way")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"Sort Algorithom"}},[a("el-radio-group",{model:{value:t.activeEditor.sorting_method,callback:function(e){t.$set(t.activeEditor,"sorting_method",e)},expression:"activeEditor.sorting_method"}},[a("el-radio",{attrs:{label:"text"}},[t._v("As Text Basis")]),t._v(" "),a("el-radio",{attrs:{label:"numeric"}},[t._v("As Numeric Basis")])],1)],1)]:t._e()]:t._e(),t._v(" "),a("el-form-item",[a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Options"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Options")]),t._v(" "),a("p",[t._v("Provide the values that you want to show on the frontend. Your values should match your table cell data")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Date Filter Operator"))+"\n ")]),t._v(" "),a("el-radio-group",{model:{value:t.activeEditor.filter_operator,callback:function(e){t.$set(t.activeEditor,"filter_operator",e)},expression:"activeEditor.filter_operator"}},[a("el-radio",{attrs:{label:"less"}},[t._v("Less Than Equal")]),t._v(" "),a("el-radio",{attrs:{label:"greater"}},[t._v("Greater Than Equal")]),t._v(" "),a("el-radio",{attrs:{label:"equal"}},[t._v("Equal")])],1)],2)]:"date_range"==t.activeEditor.type||"number_range"==t.activeEditor.type?[a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("From Placeholder"))+"\n ")]),t._v(" "),a("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(" "),a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("To Placeholder"))+"\n ")]),t._v(" "),a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Prefix"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Filter Prefix")]),t._v(" "),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Filter Columns"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Columns")]),t._v(" "),a("p",[t._v("Select the columns that you want to apply this filter")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.current_columns.length?a("el-checkbox-group",{model:{value:t.activeEditor.columns,callback:function(e){t.$set(t.activeEditor,"columns",e)},expression:"activeEditor.columns"}},t._l(t.current_columns,(function(e){return a("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.name))])})),1):a("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?a("el-form-item",[a("template",{slot:"label"},[t._v("\n "+t._s(t.$t("Button Text"))+"\n ")]),t._v(" "),a("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(" "),a("el-form-item",[a("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,"7c7cfd0a",null).exports,draggable:xt()},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 X()(this.columns,(function(e){t[e.key]=e.name})),t}},methods:{each:X(),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 Do=r(Io,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_custom_filter_wrapper"},[t._m(0),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_style_wrapper",staticStyle:{margin:"25px 0"}},[t.hasAdvancedFilters?a("div",{staticClass:"section_block"},[a("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?[a("table",{staticClass:"wp-list-table table-bordered widefat fixed striped",staticStyle:{margin:"20px 0"}},[t._m(1),t._v(" "),a("draggable",{attrs:{options:{handle:".handle"},list:t.table_filters,element:"tbody"},on:{change:function(e){return t.saveFilters()}}},t._l(t.table_filters,(function(e,n){return a("tr",[a("td",[a("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "+t._s(e.title))]),t._v(" "),a("td",[t._v(t._s(e.type))]),t._v(" "),a("td",t._l(e.columns,(function(e){return a("code",{directives:[{name:"show",rawName:"v-show",value:t.columnKeyPairs[e],expression:"columnKeyPairs[columnKey]"}]},[t._v("\n "+t._s(t.columnKeyPairs[e])+"\n ")])})),0),t._v(" "),a("td",[a("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(a){return t.edit(e)}}}),t._v(" "),a("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(e){return t.deleteFilter(n)}}})],1)])})),0)],1),t._v(" "),a("h3",[t._v("Filter Appearance")]),t._v(" "),a("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"}},[a("el-radio",{attrs:{label:"inline"}},[t._v("Show filter inputs as inline")]),t._v(" "),a("el-radio",{attrs:{label:"columns"}},[t._v("Show filter inputs as Columns")])],1),t._v(" "),"columns"==t.filter_styling.filter_display_type?[a("h3",[t._v("Filter Columns")]),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"columns_2"}},[t._v("Two Columns")]),t._v(" "),a("el-radio-button",{attrs:{label:"columns_3"}},[t._v("Three Columns")]),t._v(" "),a("el-radio-button",{attrs:{label:"columns_4"}},[t._v("Four Columns")])],1)]:t._e(),t._v(" "),a("h3",[t._v("Progressive Filter")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group",staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{loading:t.saving,size:"small",type:"success"},on:{click:t.saveFilters}},[t._v("Update Settings")])],1)]:t._e()],2):t.hasPro?a("div",{staticClass:"section_block"},[t._m(2)]):a("div",{staticClass:"section_block text-center"},[t._m(3),t._v(" "),a("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])]),t._v(" "),a("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?a("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.editorModal=!1}}},[t._v("Cancel")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateFilter(t.activeEditor)}}},[t._v("Update")])],1)],1),t._v(" "),a("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?a("ninja-filter-editor",{attrs:{columns:t.columns,columnKeyPairs:t.columnKeyPairs,activeEditor:t.activeEditor}}):t._e(),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addFilterModal=!1}}},[t._v("Cancel")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addFilter(t.activeEditor)}}},[t._v("Add")])],1)],1)],1)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_header"},[a("h2",{staticClass:"ninja_block"},[t._v("Custom Search Filters")]),t._v(" "),a("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 "),a("br"),t._v("\n To learn more about this "),a("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.$createElement,a=t._self._c||e;return a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Target Columns")]),t._v(" "),a("th",[t._v("Action")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[t._v("Custom Filters is introduced in version 2.4.0. Please update "),a("b",[t._v("Ninja tables pro")]),t._v(" plugin to use\n this feature")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[t._v("Custom Filters is pro only features. Please purchase "),a("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature\n ")])}],!1,null,null,null).exports;const Po=r({name:"ninja_language_settings",props:["tableSettings"],methods:{storeSettings:function(){this.$emit("storeSettings")}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_Language_settings"},[a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Language Settings")]),t._v(" "),a("div",{staticClass:"ninja_actions_action"},[a("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(" "),a("div",{staticClass:"ninja_style_wrapper"},[a("div",{staticClass:"section_block"},[a("div",{staticClass:"language_block"},[a("div",{staticClass:"form_group"},[a("label",{attrs:{for:"no_result_text"}},[t._v("Empty Results Text:")]),t._v(" "),a("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(" "),a("small",[t._v("The text to display if the table contains no rows.")])]),t._v(" "),a("div",{staticClass:"form_group"},[a("label",{attrs:{for:"search_box_placeholder"}},[t._v("Search Box Placeholder Text")]),t._v(" "),a("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(" "),a("small",[t._v("Search Box Placeholder")])]),t._v(" "),a("div",{staticClass:"form_group"},[a("label",{attrs:{for:"search_box_in"}},[t._v("Search Dropdown Heading")]),t._v(" "),a("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(" "),a("small",[t._v("Search Dropdown Box Title")])])])])])])}),[],!1,null,null,null).exports;const Ao=r({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.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_rendering_settings"},[a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Table Render Settings")]),t._v(" "),a("div",{staticClass:"ninja_actions_action"},[a("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(" "),a("div",{staticClass:"ninja_style_wrapper"},[a("div",{staticClass:"ninja_section_block_body"},[a("div",{staticClass:"section_block_item"},[a("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(" "),a("div",{staticClass:"card_block"},[a("div",{staticClass:"section_card",class:"ajax_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("ajax_table")}}},[a("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(" "),a("h4",[t._v("Ajax Table")]),t._v(" "),a("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(" "),a("div",{staticClass:"section_card",class:"legacy_table"==t.tableSettings.render_type?"selected_type":"",on:{click:function(e){return t.changeTableType("legacy_table")}}},[a("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(" "),a("h4",[t._v("Advanced Table (Legacy)")]),t._v(" "),t._m(0)])])]),t._v(" "),t.config.table.hasCacheFeature?a("div",{staticClass:"section_block_item"},[a("h3",[t._v("\n Disable Caching\n "),a("el-tooltip",{attrs:{placement:"right",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, we cache the table "),a("br"),t._v("\n contents. It's not recommended to disable "),a("br"),t._v("\n caching unless you know what you are doing\n ")]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("div",{staticClass:"caching-block"},[a("div",{staticClass:"form-group"},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v("Display Frontend Loader")]),t._v(" "),a("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(" "),a("div",{staticClass:"caching-block"},[a("div",{staticClass:"form-group"},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v("Disable Caching")]),t._v(" "),a("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?a("div",{staticClass:"section_block_item"},[a("h3",[t._v("\n Caching Interval\n "),a("el-tooltip",{attrs:{placement:"right",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n To optimize and load faster, You can cache the table data for certain minutes "),a("br"),t._v("\n so the data will load from cached data. Please Provide the value in minutes.\n ")]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("div",{staticClass:"caching-block"},[a("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),a("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(" "),a("p",[t._v("Keep Blank or 0 to disable caching for table data")]),t._v(" "),t.tableSettings.caching_interval>60?a("p",[t._v("Current Caching Interval: "),a("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?a("div",{staticClass:"section_block_item"},[a("h3",[t._v("\n Enable Full HTML Cache\n "),a("el-tooltip",{attrs:{placement:"right",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n If you enable this then ninja tables will cache the full html of the table and"),a("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(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("div",{staticClass:"caching-block"},[a("div",{staticClass:"form-group"},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v("Enable HTML Caching")]),t._v(" "),a("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?a("div",{staticClass:"form-group"},[a("div",{staticClass:"form-group",staticStyle:{"max-width":"400px"}},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v("Caching Interval (In Minutes)")]),t._v(" "),a("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?a("p",[t._v("Current Caching Interval: "),a("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.$createElement,a=t._self._c||e;return a("div",[a("p",[t._v("\n Recommended settings for advanced features\n ")]),t._v(" "),a("ul",{staticClass:"ninja_render_features"},[a("li",[a("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Colspan ( Cell-Merge )")]),t._v(" "),a("li",[a("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Server Side Dom-Generation")]),t._v(" "),a("li",[a("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Render shortcode into table cells\n ")]),t._v(" "),a("li",[a("span",{staticClass:"dashicons dashicons-yes"}),t._v(" Better for SEO")])])])}],!1,null,null,null).exports;const No=r({name:"button_settings",components:{wpEditor:k},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.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_Language_settings"},[t._m(0),t._v(" "),t.hasPro?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_style_wrapper"},[a("div",{staticClass:"section_block",staticStyle:{"max-width":"800px"}},[a("h3",[t._v("CSV Export Button Settings")]),t._v(" "),a("div",{staticClass:"form_group"},[a("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?[a("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[a("label",[t._v("Button Label")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group"},[a("label",[t._v("Button Background Color")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group"},[a("label",[t._v("Button Text Color")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group"},[a("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(" "),a("hr"),t._v(" "),a("h3",[t._v("Print Button Settings")]),t._v(" "),a("div",{staticClass:"form_group"},[a("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?[a("div",{staticClass:"form_group",staticStyle:{"max-width":"500px"}},[a("label",[t._v("Button Label")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group form_row_full"},[a("div",{staticClass:"form_row_half"},[a("label",[t._v("Button Background Color")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_row_half"},[a("div",{staticClass:"form_group"},[a("label",[t._v("Button Text Color")]),t._v(" "),a("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(" "),a("el-collapse",{attrs:{accordion:""}},[a("el-collapse-item",{attrs:{title:"Print Screen Header",name:"header"}},[[a("label",[t._v("Header in each page")]),t._v(" "),a("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(" "),a("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(" "),a("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(" "),a("el-collapse-item",{attrs:{title:"Print Screen Footer",name:"footer"}},[[a("label",[t._v("Footer in each page")]),t._v(" "),a("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(" "),a("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(" "),a("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(" "),a("hr"),t._v(" "),a("h3",[t._v("Buttons Position")]),t._v(" "),a("div",{staticClass:"form_group"},[a("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_position,callback:function(e){t.$set(t.table_buttons,"button_position",e)},expression:"table_buttons.button_position"}},t._l(t.button_positions,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:n}},[t._v(t._s(e))])})),1)],1),t._v(" "),a("div",{staticClass:"form_group"},[a("label",[t._v("Buttons Alignment")]),t._v(" "),a("el-radio-group",{attrs:{size:"small"},model:{value:t.table_buttons.button_alignment,callback:function(e){t.$set(t.table_buttons,"button_alignment",e)},expression:"table_buttons.button_alignment"}},t._l(t.buttonAlignments,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:n}},[t._v(t._s(e))])})),1)],1),t._v(" "),t.hasPro?a("div",{staticClass:"form_group"},[a("el-button",{attrs:{loading:t.saving,disabled:t.saving,size:"small",type:"success"},on:{click:function(e){return t.saveSettings()}}},[t._v("Update Settings")])],1):t._e()],2)]):a("div",{staticClass:"section_block text-center",staticStyle:{width:"100%",display:"block",padding:"20px"}},[t._m(1),t._v(" "),a("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=custom_filters&utm_term=upgrade"}},[t._v("Purchase Now")])])])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_header"},[a("h2",[t._v("CSV Export / Print Button Settings for Frontend")]),t._v(" "),a("p",[t._v("You can enable/disable print and csv export settings here")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[t._v("Export CSV and Table Print is pro only features. Please purchase "),a("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature\n ")])}],!1,null,null,null).exports,Oo={name:"TableConfiguration",components:{draggable:xt(),ColumnsEditor:Bi,NinjaCustomFilters:Do,NinjaLanguageSettings:Po,NinjaRenderingSettings:Ao,NinjaButtonSettings:No},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=ti()(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===Gn()(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:Me(),get:wo(),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()}},Mo=Oo;var Fo=a(1376),zo={insert:"head",singleton:!1};o()(Fo.Z,zo);Fo.Z.locals;var Bo=r(Mo,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"table-column-settings"},[a("el-container",[a("el-aside",{attrs:{width:"200px"}},[a("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[a("el-menu-item",{attrs:{index:"columns"},on:{click:function(e){t.active_menu="columns"}}},[a("i",{staticClass:"dashicons dashicons-editor-table"}),t._v(" "),a("span",[t._v("Columns")])]),t._v(" "),a("el-menu-item",{attrs:{index:"rendering_settings"},on:{click:function(e){t.active_menu="rendering_settings"}}},[a("i",{staticClass:"dashicons dashicons-album"}),t._v(" "),a("span",[t._v("Rendering Settings")])]),t._v(" "),a("el-menu-item",{attrs:{index:"custom_filters"},on:{click:function(e){t.active_menu="custom_filters"}}},[a("i",{staticClass:"dashicons dashicons-filter"}),t._v(" "),a("span",[t._v("Custom Filters")])]),t._v(" "),a("el-menu-item",{attrs:{index:"button_settings"},on:{click:function(e){t.active_menu="button_settings"}}},[a("i",{staticClass:"dashicons dashicons-images-alt"}),t._v(" "),a("span",[t._v("Buttons (CSV/Print)")])]),t._v(" "),a("el-menu-item",{attrs:{index:"language_settings"},on:{click:function(e){t.active_menu="language_settings"}}},[a("i",{staticClass:"dashicons dashicons-translation"}),t._v(" "),a("span",[t._v("Language Settings")])])],1)],1),t._v(" "),a("el-main",["columns"==t.active_menu?[a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Table Column Settings")])]),t._v(" "),a("div",{staticClass:"ninja_content"},[a("div",{staticClass:"section_widget"},[a("div",{staticClass:"heading"},[t.addColumnStatus||!t.columns.length?a("h3",{staticClass:"title"},[t._v(t._s(t.$t("Add Table Column")))]):a("h3",{staticClass:"title"},[t._v(t._s(t.$t("Available Columns")))]),t._v(" "),t.addable?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.addColumnStatus,expression:"!addColumnStatus"}],staticClass:"inline_action"},[a("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(" "),a("div",{staticClass:"widget_body"},[t.addColumnStatus||!t.columns.length?a("div",{staticClass:"column"},[a("div",{staticClass:"add_column_wrapper"},[a("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(" "),a("draggable",{attrs:{handle:".handle",animation:"150"},on:{end:t.storeSettings},model:{value:t.columns,callback:function(e){t.columns=e},expression:"columns"}},t._l(t.columns,(function(e,n){return a("div",{key:e.key,staticClass:"column drawer"},[a("div",{staticClass:"header"},[a("span",{staticClass:"dashicons dashicons-editor-justify handle"}),t._v(" "),a("span",{on:{click:function(e){return t.openDrawer(n)}}},[t._v(t._s(e.name||e.key))]),t._v(" "),a("span",{staticClass:"dashicons dashicons-edit edit_icon",on:{click:function(e){return t.openDrawer(n)}}})]),t._v(" "),a("div",{staticClass:"drawer_body",class:"drawer_body_"+n},[a("columns-editor",{attrs:{columns:t.columns,dataSourceType:t.config.table.dataSourceType,model:e,"has-pro":t.has_pro,settings:t.config.settings,updating:!0},on:{delete:function(e){return t.deleteColumn(n)},store:function(e){return t.storeSettings()}}})],1)])})),0)],1)]),t._v(" "),a("div",{staticClass:"proms"},[a("div",{staticClass:"help_section"},[a("p",[t._v("Need help to configure the columns and responsive breakdowns, Please check tutorial with\n video "),a("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():a("div",{staticClass:"help_section"},[a("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 "),a("a",{attrs:{href:t.fluent_url}},[t._v("Download from\n WordPress.org")])])])])])]:"rendering_settings"==t.active_menu?[a("ninja-rendering-settings",{attrs:{tableSettings:t.tableSettings,config:t.config},on:{storeSettings:t.storeSettings}})]:"language_settings"==t.active_menu?[a("ninja-language-settings",{attrs:{tableSettings:t.tableSettings},on:{storeSettings:t.storeSettings}})]:"custom_filters"==t.active_menu?[a("ninja-custom-filters",{attrs:{columns:t.columns,table_id:t.tableId}})]:(t.active_menu="button_settings")?[a("ninja-button-settings",{attrs:{table_id:t.tableId}})]:t._e()],2)],1)],1)])}),[],!1,null,null,null);const Lo=Bo.exports;const Ro=r({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.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_header"},[a("h2",[t._v(t._s(t.$t("Export Data")))])]),t._v(" "),t.config.table.isExportable?a("div",{staticClass:"ninja_content"},[t._m(0),t._v(" "),a("div",{staticClass:"ninja_export_block"},[t._v("\n "+t._s(t.$t("Format:"))+"\n "),a("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(e,n){return a("option",{domProps:{value:n}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),a("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)]):a("div",{staticClass:"ninja_content"},[a("div",{staticClass:"ninja_suggest"},[a("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,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_suggest"},[a("p",[t._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 Ho={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 X()(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()}}},Wo=Ho;var qo=a(4946),Vo={insert:"head",singleton:!1};o()(qo.Z,Vo);qo.Z.locals;var Uo=r(Wo,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_header"},[a("h2",[t._v(t._s(t.$t("Import Table Data")))])]),t._v(" "),t.config.table.isImportable?a("div",{staticClass:"ninja_content"},[t.columns.length?a("div",[a("form",{attrs:{action:"",id:"fileUploadForm"}},[a("div",{staticClass:"form-group"},[a("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}}),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("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(" "),a("div",{staticClass:"form-group"},[a("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(" "),a("div",{staticClass:"ninja_suggest"},[a("p",[t._v("\n Please note that, your CSV data structure need to follow the sample CSV.\n You may want to check the "),a("a",{attrs:{href:t.tutorial}},[t._v("video tutorial here.")])]),t._v(" "),a("br"),t._v(" "),a("p",[t._v("\n Also make sure the content is in UTF-8 format, for the best result.\n ")])]),t._v(" "),a("div",{staticClass:"justify-items"},[a("h3",[t._v("\n "+t._s(t.$t("CSV Header Structure"))+"\n ")]),t._v(" "),a("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(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,(function(t){return a("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.key}})})),1),t._v(" "),a("h3",[t._v("or as bellow")]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.sampleData,stripe:""}},t._l(t.columns,(function(t){return a("el-table-column",{key:t.key,attrs:{prop:t.key,label:t.name}})})),1)],1):a("div",{staticClass:"error"},[a("p",[t._v(t._s(t.$t("Please set table configuration first.")))])])]):a("div",{staticClass:"ninja_content"},[a("div",{staticClass:"ninja_suggest"},[a("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 Yo=r({name:"ExportImport",components:{export:Ro,import:Uo.exports},props:["config"],data:function(){return{active_menu:"import",tableId:this.$route.params.table_id,activeNames:["1"]}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"margin-top":"15px"}},[a("el-container",[a("el-aside",{attrs:{width:"200px"}},[a("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff","active-text-color":"#ffd04b"}},[a("el-menu-item",{attrs:{index:"import"},on:{click:function(e){t.active_menu="import"}}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("span",[t._v(t._s(t.$t("Import Data")))])]),t._v(" "),a("el-menu-item",{attrs:{index:"export"},on:{click:function(e){t.active_menu="export"}}},[a("i",{staticClass:"el-icon-download"}),t._v(" "),a("span",[t._v(t._s(t.$t("Export Data")))])])],1)],1),t._v(" "),a("el-main",[a(t.active_menu,{tag:"component",attrs:{config:t.config,tableId:t.tableId}})],1)],1)],1)}),[],!1,null,null,null).exports;const Zo=r({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.$createElement,a=t._self._c||e;return t.will_it_show?a("div",{staticClass:"ninja_suggest_plugin"},[t.dismisable?a("div",{staticClass:"ninja_dismiss",on:{click:function(e){return t.dismiss()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"ninja_form_banner"},[a("img",{attrs:{src:t.image_url("fluentform_banner.jpg")}})]),t._v(" "),a("div",{staticClass:"ninja_fluent_copy"},[a("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(" "),a("a",{staticClass:"button button-primary",attrs:{href:t.fluent_url}},[t._v("Download from WordPress.org")]),t._v(" "),a("a",{staticClass:"button",attrs:{target:"_blank",href:t.fluent_wp_url}},[t._v("View Details")])])]):t._e()}),[],!1,null,null,null).exports;var Jo=r({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.$createElement,a=t._self._c||e;return t.will_it_show?a("div",{staticClass:"ninja_suggest_plugin"},[a("div",{staticClass:"ninja_form_banner"},[a("img",{attrs:{src:t.image_url("banner_premium.png")}})]),t._v(" "),t._m(0)]):t._e()}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_fluent_copy"},[a("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(" "),a("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(" "),a("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);var Qo=r({name:"help",components:{fluentpromoad:Zo,ninja_premium:Jo.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(){}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h2",[t._v(t._s(t.$t("Plugin Documentation and Help")))]),t._v(" "),a("hr"),t._v(" "),a("ninja_premium"),t._v(" "),a("div",{staticClass:"ninja_documentaion_wrapper"},[a("div",{staticClass:"ninja_doc_top_blocks"},[a("div",{staticClass:"ff_block block_1_3"},[a("div",{staticClass:"ff_block_box help_container text-center"},[a("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("fluent-icon.png")}}),t._v(" "),a("h3",[t._v("Try Fluent Forms")]),t._v(" "),t._m(0),t._v(" "),t._m(1)])]),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"ff_block block_1_3"},[a("div",{staticClass:"ff_block_box help_container text-center"},[a("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("azonpress_logo.jpg")}}),t._v(" "),a("h3",[t._v("Amazon Affiliate Plugin")]),t._v(" "),a("p",[t._v("Amazon Affiliate WordPress Plugin for serious Amazon Affiliates")]),t._v(" "),t._m(3)])]),t._v(" "),a("div",{staticStyle:{width:"100%",float:"none",position:"relative",height:"10px",overflow:"hidden"}}),t._v(" "),a("div",{staticClass:"ff_block block_1_3"},[a("div",{staticClass:"ff_block_box help_container"},[a("h3",[t._v("User Guide")]),t._v(" "),a("p",[t._v("Please check the following Tutorials and Documentation for Ninja Tables Plugin")]),t._v(" "),a("ul",{staticClass:"doc_items"},t._l(t.docs,(function(e,n){return a("li",{key:n},[a("a",{attrs:{href:e.url,target:"_blank"}},[t._v(t._s(e.title))])])})),0)])]),t._v(" "),a("div",{staticClass:"ff_block block_1_3"},[a("div",{staticClass:"ff_block_box text-center"},[a("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("heart.png")}}),t._v(" "),a("h3",[t._v("Love this Plugin?")]),t._v(" "),a("p",[t._v("Please write a review in wp.org plugin repository. We appreciate it!")]),t._v(" "),t._m(4)])]),t._v(" "),a("div",{staticClass:"ff_block block_1_3"},[a("div",{staticClass:"ff_block_box text-center"},[a("img",{staticClass:"block_icon",attrs:{src:t.imageUrl("support.png")}}),t._v(" "),a("h3",[t._v("Need And Expert Support?")]),t._v(" "),a("p",[t._v("Our EXPERTS would like to assist you for your query and any customization.")]),t._v(" "),t._m(5)])])])]),t._v(" "),a("fluentpromoad")],1)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("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,e=t.$createElement,a=t._self._c||e;return a("p",[a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform/"}},[t._v("Download from wp.org (Free)")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ff_block block_1_3"},[a("div",{staticClass:"ff_block_box help_container text-center"},[a("img",{staticClass:"block_icon",attrs:{src:"https://ps.w.org/wp-payment-form/assets/icon-256x256.png?rev=2745100"}}),t._v(" "),a("h3",[t._v("Paymattic - Accept Payment Easily with WordPress Forms")]),t._v(" "),a("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(" "),a("p",[a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/wp-payment-form/"}},[t._v("Download Paymattic (Free)")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/azonpress/"}},[t._v("Download AzonPress")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wordpress.org/plugins/ninja-tables/reviews/"}},[t._v("Write Review")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/support-tickets/"}},[t._v("Contact Support")])])}],!1,null,null,null);const Xo=Qo.exports;const Go={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 Ko=a(4007),tl={insert:"head",singleton:!1};o()(Ko.Z,tl);Ko.Z.locals;const el=r(Go,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[a("div",{staticClass:"ace_container"},[a("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),a("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[a("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 al={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 nl=a(5875),il={insert:"head",singleton:!1};o()(nl.Z,il);nl.Z.locals;const ol={name:"ninja_css_editor",props:["config"],components:{ace_code_editor:el,ace_js_editor:r(al,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[a("div",{staticClass:"ace_container"},[a("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_js"}},[t._v(t._s(t.value))])]),t._v(" "),a("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[a("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 ll=a(5981),sl={insert:"head",singleton:!1};o()(ll.Z,sl);ll.Z.locals;const rl=r(ol,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.fetching?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}]},[a("h3",[t._v("Loading... Please wait")])]):a("div",{staticClass:"section_block"},[a("el-radio-group",{model:{value:t.current_tab,callback:function(e){t.current_tab=e},expression:"current_tab"}},[a("el-radio-button",{attrs:{label:"additional_css"}},[t._v("Additional Custom CSS")]),t._v(" "),a("el-radio-button",{attrs:{label:"additional_js"}},[t._v("Custom Javascript")])],1),t._v(" "),a("hr"),t._v(" "),"additional_css"==t.current_tab?[a("p",[t._v("\n You may add "),a("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 "),a("code",[t._v("#footable_parent_NT_ID")]),t._v(" where "),a("b",[t._v("NT_ID")]),t._v(" will be replaced with your table ID dynamically.\n ")]),t._v(" "),a("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(" "),a("br"),t._v(" "),a("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom CSS")])],1)]:t._e(),t._v(" "),"additional_js"==t.current_tab?[a("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(" "),a("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?[a("div",{staticClass:"custom_css_submit",staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.saveScripts()}}},[t._v("Save Custom Javascript")])],1)]:[a("p",[t._v("Custom Javascript feature is a pro feature along with many awesome features. Please upgrade to pro.")])]]:t._e()],2),t._v(" "),a("div",{staticClass:"section_block"})])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[t._v("Please don't include "),a("code",[t._v("<style></style>")]),t._v(" tag")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"js_instruction"},[t._v("\n The Following Javascript variables are available that you can use: "),a("br"),t._v(" "),a("b",[t._v("$table")]),t._v(" : The Javascript DOM object of the table"),a("br"),t._v(" "),a("b",[t._v("tableConfig")]),t._v(" : The configuration object of the table.\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[t._v("Please don't include "),a("code",[t._v("<script><\/script>")]),t._v(" tag")])}],!1,null,null,null).exports;function cl(t){return cl="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},cl(t)}function ul(t){return function(t){if(Array.isArray(t))return dl(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 dl(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 dl(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 dl(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 pl={name:"table_preview",props:["config"],components:{SortableUpgradeNotice:xi,NinjaColorPicker:ki},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(ul(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 ke()(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 ke()(this.availableStyles,(function(t){e.push(t.key)})),t.css_classes=we()(e,this.tableSettings.css_classes),t},reInitFootables:function(){if(this.app_ready){if("object"==("undefined"==typeof FooTable?"undefined":cl(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:Me(),get:wo(),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,";\n color: ").concat(this.tableSettings.table_alt_color_secondary,";\n }\n ").concat(t," tbody tr:nth-child(odd) {\n background-color: ").concat(this.tableSettings.table_alt_2_color_primary,";\n color: ").concat(this.tableSettings.table_alt_2_color_secondary,";\n }\n ").concat(t," tbody tr:nth-child(even):hover {\n background-color: ").concat(this.tableSettings.table_alt_color_hover,";\n }\n ").concat(t," tbody tr:nth-child(odd):hover {\n background-color: ").concat(this.tableSettings.table_alt_2_color_hover,";\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")),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()}},ml=pl;var _l=a(7851),hl={insert:"head",singleton:!1};o()(_l.Z,hl);_l.Z.locals;const fl=r(ml,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_design"},[a("div",{staticClass:"ninja_title_section"},[a("div",{staticClass:"ninja_title"},[a("h3",{staticStyle:{"margin-right":"15px"}},[t._v("Table Style Customization")]),t._v(" "),a("el-radio-group",{staticClass:"ninja_resp_tabs",attrs:{size:"mini"},model:{value:t.showingDevice,callback:function(e){t.showingDevice=e},expression:"showingDevice"}},[a("el-radio-button",{attrs:{label:"desktop"}},[a("span",{staticClass:"dashicons dashicons-desktop"}),t._v(" Desktop\n ")]),t._v(" "),a("el-radio-button",{attrs:{label:"tablet"}},[a("span",{staticClass:"dashicons dashicons-tablet"}),t._v(" Tablet\n ")]),t._v(" "),a("el-radio-button",{attrs:{label:"mobile"}},[a("span",{staticClass:"dashicons dashicons-smartphone"}),t._v(" Mobile\n ")])],1)],1),t._v(" "),a("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(" "),a("div",{staticClass:"ninja_design_wrapper"},[a("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?a("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 "),a("a",{attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_studio"}},[t._v(t._s(t.$t("Upgrade To Pro")))])]):t._e(),t._v(" "),a("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?a("h3",{staticClass:"table_title footable_title"},[t._v(t._s(t.config.table.post_title))]):t._e(),t._v(" "),t.tableSettings.show_description?a("div",{staticClass:"table_description footable_description",domProps:{innerHTML:t._s(t.config.table.post_content)}}):t._e(),t._v(" "),a("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}},[a("colgroup",t._l(t.formattedColumns,(function(t,e){return a("col",{key:e,class:["ninja_column_"+e,t.breakpoints]})})),0),t._v(" "),a("thead")])]),t._v(" "),a("div",{staticClass:"ninja_demo_disclaimer"},[a("hr"),t._v(" "),"yes"==t.tableSettings.stackable?a("p",[a("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(" "),a("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(" "),a("div",{staticClass:"design_controls"},[a("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeDesign,callback:function(e){t.activeDesign=e},expression:"activeDesign"}},[a("el-tab-pane",{attrs:{label:"Styling",name:"features"}},[a("div",{staticClass:"form_group"},[a("h3",{staticClass:"ninja_inner_title"},[t._v("Select Styling Library")]),t._v(" "),a("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.css_lib,callback:function(e){t.$set(t.tableSettings,"css_lib",e)},expression:"tableSettings.css_lib"}},t._l(t.currentTableLibs,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:n}},[t._v("\n "+t._s(e.title)+"\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),t.availableStyles?a("div",{staticClass:"form_group label-normalize"},[a("h3",{staticClass:"ninja_inner_title"},[t._v("Styles")]),t._v(" "),t._l(t.availableStyles,(function(e){return a("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.tableSettings.css_classes,expression:"tableSettings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.tableSettings.css_classes)?t._i(t.tableSettings.css_classes,e.key)>-1:t.tableSettings.css_classes},on:{change:function(a){var n=t.tableSettings.css_classes,i=a.target,o=!!i.checked;if(Array.isArray(n)){var l=e.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(e.title)+"\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2):t._e(),t._v(" "),a("div",{staticClass:"form_group label-normalize"},[a("h3",{staticClass:"ninja_inner_title"},[t._v("Features")]),t._v(" "),a("label",{attrs:{for:"show_title"}},[a("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 "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",{attrs:{for:"show_description"}},[a("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 "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",{attrs:{for:"enable_search"}},[a("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?a("label",{attrs:{for:"column_sorting"}},[a("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(" "),a("label",[a("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(" "),a("label",[a("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(" "),a("label",[a("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 "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",[a("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 "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If You enable this then columns headings will not show into responsive drawer / Stackable View"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)]),t._v(" "),a("div",{staticClass:"form_group label-normalize"},[a("h3",{staticClass:"ninja_inner_title"},[t._v("\n Stackable Table Configuration\n "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("div",{staticClass:"form_group"},[a("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?[a("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Target Devices\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Select the device by width in where the stackable tables will be enabled"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-checkbox-group",{model:{value:t.tableSettings.stacks_devices,callback:function(e){t.$set(t.tableSettings,"stacks_devices",e)},expression:"tableSettings.stacks_devices"}},[a("el-checkbox",{attrs:{label:"xs"}},[t._v("Mobile Device")]),t._v(" "),a("el-checkbox",{attrs:{label:"sm"}},[t._v("Tablet Device")]),t._v(" "),a("el-checkbox",{attrs:{label:"md"}},[t._v("Laptop")]),t._v(" "),a("el-checkbox",{attrs:{label:"lg"}},[t._v("Large Devices (imac)")])],1),t._v(" "),a("h3",{staticClass:"ninja_inner_title",staticStyle:{"margin-top":"15px"}},[t._v("Stacked Appearance\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can customize the appearance in stacked view of your table"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-checkbox-group",{model:{value:t.tableSettings.stacks_appearances,callback:function(e){t.$set(t.tableSettings,"stacks_appearances",e)},expression:"tableSettings.stacks_appearances"}},[a("el-checkbox",{attrs:{label:"hide_stacked_th"}},[t._v("Hide column headings")]),t._v(" "),a("el-checkbox",{attrs:{label:"ninja_stacked_no_cell_border"}},[t._v("Hide internal borders\n ")])],1)]:t._e()],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"Table Colors",name:"color_customization"}},[a("div",{staticClass:"form_group"},[a("h3",{staticClass:"ninja_inner_title"},[t._v("Select Color Scheme")]),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"pre_defined_color"}},[t._v("Pre Defined Scheme")]),t._v(" "),a("el-radio-button",{attrs:{label:"custom_color"}},[t._v("Custom Scheme")])],1)],1),t._v(" "),"pre_defined_color"==t.tableSettings.table_color_type?a("div",{staticClass:"form_group"},[a("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(e,n){return a("option",{key:n,domProps:{value:n}},[t._v(t._s(e)+"\n ")])})),0)]):a("div",{staticClass:"form_group ninja_color_customization"},[a("h3",{staticClass:"ninja_inner_title"},[t._v("Search Bar Colors")]),t._v(" "),a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("ninja-color-picker",{attrs:{label:"Text"},model:{value:t.tableSettings.table_search_color_secondary,callback:function(e){t.$set(t.tableSettings,"table_search_color_secondary",e)},expression:"tableSettings.table_search_color_secondary"}})],1),t._v(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Header Colors")))]),t._v(" "),a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Table Body Colors")))]),t._v(" "),a("el-tabs",[a("el-tab-pane",{attrs:{label:"Default"}},[a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("el-tab-pane",{attrs:{label:"Hover"}},[a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_switch_wrapper"},[a("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?a("div",{staticClass:"ninja_alternate_colors"},[a("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Odd Row Colors")))]),t._v(" "),a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Even Row Colors")))]),t._v(" "),a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("h3",{staticClass:"ninja_inner_title"},[t._v(t._s(t.$t("Footer Colors")))]),t._v(" "),a("div",{staticClass:"ninja_color_blocks"},[a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("div",{staticClass:"ninja_color_block"},[a("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(" "),a("el-tab-pane",{attrs:{label:"Other",name:"other_settings"}},[a("div",{staticClass:"ninja_switch_wrapper"},[a("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(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tableSettings.show_all,expression:"tableSettings.show_all == 0"}],staticClass:"form_group"},[a("div",{staticClass:"form_group"},[a("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),a("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(" "),a("label",[t._v(t._s(t.$t("Pagination Position")))]),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),a("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),a("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1),t._v(" "),a("label",[a("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 "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then on pagination change, the table will be scrolled to top"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",[a("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 "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you enable this then Users can change the items per page on frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),t.tableSettings.show_pager?a("div",{staticClass:"form_group"},[a("label",[t._v(t._s(t.$t("Page Sizes (Number as Comma Separated)")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group"},[a("label",[t._v(t._s(t.$t("Search Bar Position")))]),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),a("el-radio-button",{attrs:{label:"center"}},[t._v("Center")]),t._v(" "),a("el-radio-button",{attrs:{label:"right"}},[t._v("Right")]),t._v(" "),a("el-radio-button",{attrs:{label:""}},[t._v("Default")])],1),t._v(" "),a("label",[a("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 "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(Pro Only)")]),t._v(" "),a("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)"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),a("div",{staticClass:"form_group"},[a("label",[t._v("Select Sorting Method")]),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{disabled:!t.config.table.isCreatedSortable,label:"by_created_at"}},[t._v("By\n Created at\n ")]),t._v(" "),a("el-radio-button",{attrs:{label:"by_column"}},[t._v("By Column")]),t._v(" "),a("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?a("div",{},[a("span",[t._v(t._s(t.$t("Sort Type"))+"\n "),a("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])}}},[a("option",{attrs:{value:"new_first"}},[t._v(t._s(t.$t("Show New Items First")))]),t._v(" "),a("option",{attrs:{value:"old_first"}},[t._v(t._s(t.$t("Show Old Items First")))])])])]):"by_column"==t.tableSettings.sorting_type?a("div",[a("label",[t._v(t._s(t.$t("Select Column"))+"\n "),a("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(e){return a("option",{key:e.key,domProps:{value:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]),t._v(" "),a("label",[t._v(t._s(t.$t("Sort Type"))+"\n "),a("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])}}},[a("option",{attrs:{value:"ASC"}},[t._v("Ascending Way")]),t._v(" "),a("option",{attrs:{value:"DESC"}},[t._v("Descending Way")])])])]):t.config.table.isSortable&&"manual_sort"==t.tableSettings.sorting_type?a("div",[a("p",[t._v("You can sort the table data from "),a("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?a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.tableSettings.sorting_type=""}}},[t._v("reset\n ")]):t._e()],1),t._v(" "),a("div",{staticClass:"form_group"},[a("label",[t._v(t._s(t.$t("Row Details (Responsive drawer)"))+" "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.has_pro,expression:"!has_pro"}]},[t._v("(PRO)")])]),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"default"}},[t._v("\n Default\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Show All the responsive columns data into the responsive drawer"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-radio-button",{attrs:{label:"expandFirst"}},[t._v("\n Expand First\n "),a("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."}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-radio-button",{attrs:{label:"expandAll"}},[t._v("\n Expand All\n "),a("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."}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),a("div",{staticClass:"form_group"},[a("label",[t._v(t._s(t.$t("Toggle Position")))]),t._v(" "),a("el-radio-group",{attrs:{size:"mini"},model:{value:t.tableSettings.togglePosition,callback:function(e){t.$set(t.tableSettings,"togglePosition",e)},expression:"tableSettings.togglePosition"}},[a("el-radio-button",{attrs:{label:"first"}},[t._v("\n First Column\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the first visible column"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-radio-button",{attrs:{label:"last"}},[t._v("\n Last Column\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"If you use responsive breakdown then the '+' icon will show at the last visible column"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)],1)],1),t._v(" "),a("div",{staticClass:"form_group"},[a("label",{attrs:{for:"extra_css_class"}},[t._v(t._s(t.$t("Extra CSS Class for the table")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group"},[a("label",[t._v(t._s(t.$t("Sticky Header (beta)"))+" "),t.has_pro?t._e():a("span",[t._v("(Pro)")])]),t._v(" "),a("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?[a("label",{staticStyle:{"margin-top":"10px"}},[t._v("Sticky Top Offset\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"You can set an offset value for the sticky table header."}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("small",[t._v("Please give positive/negative number or you can provide jquery element object\n ")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group font-setting"},[a("label",[t._v("Table Font Setting")]),t._v(" "),a("div",{staticClass:"font"},[a("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),a("el-select",{attrs:{placeholder:"Select Font"},model:{value:t.tableSettings.table_font_family,callback:function(e){t.$set(t.tableSettings,"table_font_family",e)},expression:"tableSettings.table_font_family"}},t._l(t.fontFamily,(function(t,e){return a("el-option",{key:e,attrs:{label:"inherit"===t?"theme-font":t,value:t}})})),1)],1),t._v(" "),a("div",{staticClass:"font"},[a("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),a("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?a("div",{staticClass:"ninja_design_tips"},[a("ul",{staticClass:"ninja_design_tips_lists"},t._l(t.design_tips,(function(e){return a("li",[a("i",{staticClass:"el-icon-warning"}),t._v(" "),a("span",{domProps:{innerHTML:t._s(e)}})])})),0)]):t._e(),t._v(" "),t.has_pro?t._e():a("div",{staticClass:"upgrade_box"},[a("a",{staticClass:"el-button el-button--danger el-button--small",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_studio"}},[a("i",{staticClass:"dashicons dashicons-shield"}),t._v(" "+t._s(t.$t("Upgrade To Pro to unlock advanced features"))+"\n ")])])],1)]),t._v(" "),a("sortable-upgrade-notice",{attrs:{show:t.sortableUpgradeNotice},on:{close:function(e){t.sortableUpgradeNotice=!1}}})],1)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("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 vl=r({name:"frontend-editing-settings",props:["config"],data:function(){return{fetching:!1,saving:!1,tableId:this.config.table.ID,columns:this.config.columns,settings:{allow_frontend:"no",user_roles_editing:[],user_roles_deleting:[]},editing_user_roles:{},user_roles:{},editing_items:{},required_items:{},default_values:{},appearance_settings:{},hasPro:!!window.ninja_table_admin.hasPro,isActivated:!!window.ninja_table_admin.activated_features.ninja_table_front_editor}},methods:{getEditSettings:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_table_pro_get_editing_settings",table_id:this.tableId}).then((function(e){t.settings=e.data.settings,t.user_roles=e.data.user_roles,t.editing_user_roles=e.data.editing_user_roles,t.editing_items=e.data.editor_pref.editing_items,t.required_items=e.data.editor_pref.required_items,t.default_values=e.data.editor_pref.default_values,t.appearance_settings=e.data.editor_pref.appearance_settings})).fail((function(t){})).always((function(){t.fetching=!1}))},updateSettings:function(){var t=this;this.saving=!0;var e={action:"ninja_table_pro_update_editing_settings",table_id:this.tableId,settings:this.settings,editing_items:this.editing_items,required_items:this.required_items,default_values:this.default_values,appearance_settings:this.appearance_settings};this.$post(e).then((function(e){t.$message({type:"success",message:e.data.message})})).fail((function(e){e.responseJSON&&e.responseJSON.data?t.$message({type:"error",message:e.responseJSON.data.message}):t.$message({type:"error",message:"Something is wrong! Please try again"})})).always((function(){t.saving=!1}))}},mounted:function(){this.getEditSettings()}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"table_editing"},[t.hasPro?t.isActivated?t.config.table.isEditable?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"el-main-editing"},[a("div",{staticClass:"ninja_header_editing"},[a("h2",[t._v("\n Frontend Editing Settings\n ")]),t._v(" "),a("div",{staticClass:"heading_actions"},[a("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)]),t._v(" "),a("div",{staticClass:"editing_body"},[a("div",{staticClass:"editing_sub_section"},[a("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 "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Allow editing table from the frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),"yes"==t.settings.allow_frontend?[a("div",{staticClass:"editing_sub_section"},[t._m(2),t._v(" "),a("div",{staticClass:"form_row_full"},[a("div",{staticClass:"form_group form_row_half"},[a("label",[t._v("\n User Roles for Edit/Add Table Rows\n "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-checkbox-group",{model:{value:t.settings.user_roles_editing,callback:function(e){t.$set(t.settings,"user_roles_editing",e)},expression:"settings.user_roles_editing"}},t._l(t.editing_user_roles,(function(e,n){return a("el-checkbox",{key:n,attrs:{label:n}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1),t._v(" "),a("div",{staticClass:"form_group form_row_half"},[a("label",[t._v("\n User Roles for Deleting Table Rows\n "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("el-checkbox-group",{model:{value:t.settings.user_roles_deleting,callback:function(e){t.$set(t.settings,"user_roles_deleting",e)},expression:"settings.user_roles_deleting"}},t._l(t.user_roles,(function(e,n){return a("el-checkbox",{key:n,attrs:{label:n}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("\n Own Data Only\n "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("div",{staticClass:"form-group"},[a("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(" "),a("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 "),a("br"),a("pre",[a("b",[t._v('[ninja_tables disable_edit="yes" id="'+t._s(t.tableId)+'"]')])])])])]),t._v(" "),a("div",{staticClass:"editing_sub_section"},[t._m(3),t._v(" "),a("div",{staticClass:"ninja_editing_pref"},[a("table",{staticClass:"wp-list-table ninja_editing_table widefat fixed striped"},[a("thead",[a("tr",[a("th",[t._v("Column Name")]),t._v(" "),a("th",[t._v("\n Editable?\n "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be editable from frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("th",[t._v("\n Required?\n "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Select the columns that you need to be required from frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("th",[t._v("\n Default Value\n "),a("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."}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)])]),t._v(" "),a("tbody",t._l(t.columns,(function(e){return a("tr",{key:e.key},[a("th",[t._v(t._s(e.name))]),t._v(" "),a("td",[a("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.editing_items[e.key],callback:function(a){t.$set(t.editing_items,e.key,a)},expression:"editing_items[column.key]"}})],1),t._v(" "),a("td",[a("el-switch",{attrs:{"active-value":"yes","inactive-value":"no"},model:{value:t.required_items[e.key],callback:function(a){t.$set(t.required_items,e.key,a)},expression:"required_items[column.key]"}})],1),t._v(" "),a("td",[a("el-input",{attrs:{placeholder:"Default Value for "+e.name,size:"mini"},model:{value:t.default_values[e.key],callback:function(a){t.$set(t.default_values,e.key,a)},expression:"default_values[column.key]"}})],1)])})),0)])])]),t._v(" "),a("div",{staticClass:"editing_sub_section"},[t._m(4),t._v(" "),a("div",{staticClass:"form-group"},[a("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 "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)],1),t._v(" "),a("div",{staticClass:"form_row_full"},[a("div",{staticClass:"form_group form_row_half"},[a("label",[t._v("\n Add Row Button Label\n "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Add New Data Default: 'New row'"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("div",{staticClass:"form_group form_row_half"},[a("label",[t._v("\n Edit Rows Button Label\n "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Button label for Edit Rows Default: 'Edit rows'"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("div",{staticClass:"form_row_full"},[a("div",{staticClass:"form_group form_row_half"},[a("label",[t._v("\n Add Popup Heading\n "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for adding new data"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("div",{staticClass:"form_group form_row_half"},[a("label",[t._v("\n Edit Popup Heading\n "),a("el-tooltip",{attrs:{placement:"top-start",effect:"light",content:"Title for popup heading for editing existing data"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("\n Editor Icon Position\n "),a("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"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("br"),t._v(" "),a("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"}},[a("el-radio-button",{attrs:{label:"left"}},[t._v("Left")]),t._v(" "),a("el-radio-button",{attrs:{label:"right"}},[t._v("Right")])],1)],1)])]:t._e(),t._v(" "),a("div",{staticClass:"form_group",staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.updateSettings()}}},[t._v("Update Settings")])],1)],2)]):a("div",[a("h3",[t._v("This table can not be editable on frontend")]),t._v(" "),a("p",[t._v('Only "Default" data source tables can be editable')])]):a("div",[t._m(1)]):a("div",[t._m(0)])])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"el-main-editing"},[a("div",{staticClass:"ninja_header_editing"},[a("h2",{},[t._v("\n Frontend Editing Settings\n ")])]),t._v(" "),a("div",{staticClass:"editing_body text-center"},[a("h3",[t._v("Frontend Editing is a pro only features. Please purchase "),a("b",[t._v('"Ninja Tables Pro"')]),t._v(" to use this feature")]),t._v(" "),a("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(" "),a("a",{staticClass:"el-button el-button--danger",attrs:{target:"_blank",href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=frontend-editing&utm_term=upgrade"}},[t._v("Purchase Now")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[t._v("\n Custom Filters is introduced in version 3.2.0. Please update "),a("b",[t._v("Ninja tables pro")]),t._v(" plugin to use\n this feature\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_section_block_header"},[a("h3",[t._v("Data Editing Permissions")]),t._v(" "),a("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.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_section_block_header"},[a("h3",[t._v("Editing Column Options")]),t._v(" "),a("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.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_section_block_header"},[a("h3",[t._v("Appearance Settings")]),t._v(" "),a("p",[t._v("\n You can set the Editing Component Labels and Appearances\n ")])])}],!1,null,null,null).exports;const bl=r({name:"TopNav",props:["initialData","tableId","selectedDevice"],data:function(){return{id:""}},methods:{saveTableData:function(){var t=this;window.ninjaTableBus.$emit("closeManageCell");var e=this.selectedDevice;""!==this.selectedDevice&&this.$emit("deviceSelected","desktop"),this.$nextTick((function(){var a=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 n={action:"ninja_tables_builder_ajax_actions",target_action:"update-table",data:JSON.stringify(t.initialData),table_html:a.innerHTML,table_id:t.id};t.$post(n).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(){})),t.$emit("deviceSelected",e)}))},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.$createElement,a=t._self._c||e;return a("el-menu",[a("el-row",{attrs:{type:"flex",align:"middle"}},[a("el-col",{attrs:{span:6}},[a("div",[t.initialData.table_data?a("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(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18}},[a("div",[t.idExist?a("el-button",{staticClass:"copy",attrs:{size:"small",type:"info","data-clipboard-text":'[ninja_table_builder id="'+t.id+'"]',icon:"el-icon-document-copy"}},[t._v('[ninja_table_builder id="'+t._s(t.id)+'"]\n ')]):t._e(),t._v(" "),t.idExist?a("a",{attrs:{href:t.previewURL,target:"_blank"}},[a("el-button",{attrs:{size:"small"}},[t._v(t._s(t.$t("Preview")))])],1):t._e(),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.saveTableData}},[t._v(t._s(t.$t("Save Table")))]),t._v(" "),a("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 gl=r({name:"SliderInput",model:{prop:["value"],event:"update"},computed:{mainValue:function(){return Number(this.value)},maxValue:function(){return Number(this.max)},minValue:function(){return Number(this.min)},stepValue:function(){return Number(this.step)}},props:{value:{type:[Number,String],default:12},max:{type:[Number,String],default:50},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},disableSlider:{type:Boolean,default:!1},enableResponsiveNClickDesktop:{type:Boolean,default:!1},mobileDisableBreakpoint:{type:Boolean,default:!1},tabletDisableBreakpoint:{type:Boolean,default:!1}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",[t._v(t._s(t.label))]),t._v(" "),"Table margin top"===t.label?a("el-tooltip",{attrs:{placement:"top-start"}},[a("p",{attrs:{slot:"content"},slot:"content"},[t._v("Use margin top only for"),a("br"),t._v("horizontal ribbon positioning. ")]),t._v(" "),a("i",{staticClass:"el-icon-info"})]):t._e(),t._v(" "),a("el-slider",{attrs:{value:t.mainValue,max:t.maxValue,min:t.minValue,step:t.stepValue,"show-input":"",disabled:t.disableResponsive||t.enableResponsiveNClickDesktop||t.mobileDisableBreakpoint||t.tabletDisableBreakpoint||t.disableSlider},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;const yl=r({name:"SwitchInput",model:{prop:"value",event:"update"},props:{value:{type:[Boolean,String],default:!1},label:{type:String,default:""},disableResponsive:{type:Boolean,default:!1},enableResponsiveNClickDesktop:{type:Boolean,default:!1},mobileDisableBreakpoint:{type:Boolean,default:!1},tabletDisableBreakpoint:{type:Boolean,default:!1}},computed:{mainValue:function(){return"true"===this.value||!0===this.value}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("br"),t._v(" "),a("span",[t._v(t._s(t.label))]),t._v(" "),a("el-switch",{attrs:{value:t.mainValue,disabled:t.disableResponsive||t.enableResponsiveNClickDesktop||t.mobileDisableBreakpoint||t.tabletDisableBreakpoint},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;const wl=r({name:"Alignment",model:{prop:"value",event:"update"},props:{value:{type:String,default:"left"},label:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",[t._v(t._s(t.label))]),t._v(" "),a("el-radio-group",{attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}},[a("el-radio",{attrs:{label:"left"}},[t._v(t._s(t.$t("Left")))]),t._v(" "),a("el-radio",{attrs:{label:"center"}},[t._v(t._s(t.$t("Center")))]),t._v(" "),a("el-radio",{attrs:{label:"right"}},[t._v(t._s(t.$t("Right")))])],1)],1)}),[],!1,null,null,null).exports;const xl=r({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)}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.label))]),t._v(" "),a("el-color-picker",{attrs:{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 kl=r({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:""}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.label))]),t._v(" "),a("el-select",{attrs:{value:t.mainValue,placeholder:"Select"},on:{change:function(e){return t.$emit("update",e)}}},t._l(t.items,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)}),[],!1,null,null,null).exports;const Cl=r({name:"AllInputElement",props:["initialData","item","disableResponsive","mobileDisableBreakpoint","tabletDisableBreakpoint","deviceName"],components:{SliderInput:gl,SwitchInput:yl,Alignment:wl,ColorInput:xl,SelectInput:kl},computed:{enableResponsive:function(){return this.initialData?Boolean(this.initialData.responsive.general.options.enable_responsive_table.value):null},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))||(!(!this.enableResponsive||1!==this.tableRow||!("mobile"===this.deviceName&&"mobile_cell_border"==this.item.key||"tablet"===this.deviceName&&"tablet_cell_border"==this.item.key))||(!!(this.enableResponsive&&"mobile_cell_border"==this.item.key&&"mobile"===this.deviceName&&!this.showHeaderMobile||"tablet_cell_border"==this.item.key&&"tablet"===this.deviceName&&!this.showHeaderTablet)||(!(!this.enableResponsive||!this.separateRowColumn||"mobile_cell_border"!==this.item.key&&"tablet_cell_border"!==this.item.key)||!(!this.enableResponsive||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.$createElement,a=t._self._c||e;return a("div",["slider"===t.item.type?a("slider-input",{attrs:{label:t.item.label,max:t.maxValue,min:t.item.min,disableSlider:t.showSlider,disableResponsive:t.disableResponsive,enableResponsiveNClickDesktop:t.enableResponsive&&"desktop"===this.deviceName,mobileDisableBreakpoint:t.enableResponsive&&t.mobileDisableBreakpoint,tabletDisableBreakpoint:t.enableResponsive&&t.tabletDisableBreakpoint},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"switch"===t.item.type?a("switch-input",{attrs:{label:t.$t(t.item.label),disableResponsive:t.disableResponsive,enableResponsiveNClickDesktop:t.enableResponsive&&"desktop"===this.deviceName,mobileDisableBreakpoint:t.enableResponsive&&t.mobileDisableBreakpoint,tabletDisableBreakpoint:t.enableResponsive&&t.tabletDisableBreakpoint},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"alignment"===t.item.type?a("alignment",{attrs:{label:t.$t(t.item.label)},model:{value:t.item.value,callback:function(e){t.$set(t.item,"value",e)},expression:"item.value"}}):"color"===t.item.type?a("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?a("select-input",{attrs:{items:t.item.items,label:t.$t(t.item.label)},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 Sl=r({name:"FontWeight",model:{prop:"value",event:"update"},props:{value:{type:Array,default:function(){return[]}},label:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",[t._v(t._s(t.label))]),t._v(" "),a("el-checkbox-group",{attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}},[a("el-checkbox",{attrs:{label:"bold"}},[t._v(t._s(t.$t("Bold")))]),t._v(" "),a("el-checkbox",{attrs:{label:"italic"}},[t._v(t._s(t.$t("Italic")))]),t._v(" "),a("el-checkbox",{attrs:{label:"underline"}},[t._v(t._s(t.$t("Underline")))])],1)],1)}),[],!1,null,null,null).exports;const jl=r({name:"TextOption",props:["item"],components:{ColorInput:xl,SliderInput:gl,Alignment:wl,FontWeight:Sl}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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 $l=r({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.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.label))]),t._v(" "),a("el-input",{attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}})],1)}),[],!1,null,null,null).exports;var Tl=["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 El=r({name:"Icon",props:["item","setValue"],data:function(){return{icons:Tl,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.$createElement,a=t._self._c||e;return a("div",[a("el-tooltip",{attrs:{effect:"dark",placement:"top-right",content:"If you choose svg you can customize the color otherwise can't"}},[a("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(" "),a("hr"),t._v(" "),a("el-input",{staticStyle:{margin:"10px 0px"},attrs:{placeholder:t.$t("Search Icon")},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),a("div",{staticStyle:{height:"100px",width:"100%","overflow-y":"scroll"}},t._l(t.iconList,(function(e,n){return a("span",{key:n},[a("img",{attrs:{src:t.getAsset(e),width:"30px",height:"30px"},on:{click:function(a){return t.chooseIcon(""+e)}}})])})),0)],1)}),[],!1,null,null,null);const Il=El.exports;const Dl=r({data:function(){return{activeName:"general"}},name:"ButtonOption",props:["item"],components:{ColorInput:xl,SliderInput:gl,SwitchInput:yl,TextInput:$l,Icon:Il,Alignment:wl,FontWeight:Sl},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.$createElement,a=t._self._c||e;return a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:t.$t("General"),name:"general"}},[a("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(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),!1===t.item.data.style.fullWidth?a("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(" "),!1===t.item.data.style.fullWidth?a("hr"):t._e(),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Text"),name:"text"}},[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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"}}),t._v(" "),a("hr")],1),t._v(" "),a("el-tab-pane",{attrs:{label:t.$t("Icon"),name:"icon"}},[t.hasPro?t._e():[a("span",{staticClass:"text-warning"},[t._v(t._s(t.$t("You are using free version of ninja-tables")))])],t._v(" "),t.hasPro?a("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?a("span",[a("hr"),t._v(" "),t.extension?a("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(" "),t.extension?a("hr"):t._e(),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("icon",{attrs:{item:t.item,setValue:"iconName"}}),t._v(" "),a("hr"),t._v(" "),a("p",[t._v(t._s(t.$t("Icon Position")))]),t._v(" "),a("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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1):t._e()],2),t._v(" "),a("el-tab-pane",{attrs:{label:t.$t("Hover"),name:"hover"}},[a("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?a("hr"):t._e(),t._v(" "),t.item.data.style.isHover?a("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?a("hr"):t._e(),t._v(" "),t.item.data.style.isHover?a("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?a("hr"):t._e(),t._v(" "),t.item.data.style.isHover&&t.item.data.style.enableIcon&&t.hasPro&&t.extension?a("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&&t.extension?a("hr"):t._e(),t._v(" "),t.item.data.style.isHover?a("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?a("hr"):t._e(),t._v(" "),t.item.data.style.isHover?a("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?a("hr"):t._e(),t._v(" "),t.item.data.style.isHover?a("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 Pl=r({name:"StarRatingOption",props:["item"],components:{SliderInput:gl,ColorInput:xl,AlignmentInput:wl,SwitchInput:yl}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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 Al=r({name:"IconOption",props:["item"],components:{ColorInput:xl,AlignmentInput:wl,Slider:gl,Icon:Il},computed:{extension:function(){var t=this.item.data.value.slice(-4);return".svg"===t.slice(-4)||!t.includes(".")}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.extension?a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("icon",{attrs:{item:t.item}})],1)}),[],!1,null,null,null).exports;const Nl=r({name:"ProgressOption",data:function(){return{types:["line","circle","dashboard"]}},props:["item"],components:{ColorInput:xl,Slider:gl,Alignment:wl}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("span",[t._v(t._s(t.$t("Progress Type")))]),t._v(" "),a("el-select",{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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1),t._v(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),"line"!==t.item.data.style.type?a("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(" "),"line"!==t.item.data.style.type?a("hr"):t._e(),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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 Ol=r({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:xl,Slider:gl,Alignment:wl,FontWeight:Sl},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.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:t.$t("General"),name:"general"}},[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Text"),name:"text"}},[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("List"),name:"list"}},[a("p",[t._v(t._s(t.$t("List Type")))]),t._v(" "),a("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"}},[a("el-radio",{attrs:{label:"ul"}},[t._v(t._s(t.$t("Unordered List")))]),t._v(" "),a("el-radio",{attrs:{label:"ol"}},[t._v(t._s(t.$t("Ordered List")))])],1),t._v(" "),a("hr"),t._v(" "),a("span",[t._v(t._s(t.$t("List Icon")))]),t._v(" "),a("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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports;const Ml=r({name:"CustomHTML",props:["item"]},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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 Fl=r({name:"ShortcodeOption",props:["item"],components:{AlignmentInput:wl}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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(" "),a("hr"),t._v(" "),a("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 zl=r({name:"StylistListOption",props:["item","settings"],data:function(){return{activeName:"general"}},components:{Slider:gl,ColorInput:xl,Alignment:wl,Icon:Il,fontWeight:Sl},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.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:t.$t("General"),name:"general"}},[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Text"),name:"text"}},[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Icon"),name:"icon"}},[t.extension?a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("icon",{attrs:{item:t.item,setValue:"iconName"}})],1)],1)],1)}),[],!1,null,null,null).exports;var Bl=r({name:"Shape",model:{prop:"value",event:"update"},props:{value:{type:String,default:"square"},label:{type:String,default:""}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("span",[t._v(t._s(t.label))]),t._v(" "),a("el-radio-group",{attrs:{value:t.value},on:{input:function(e){return t.$emit("update",e)}}},[a("el-radio",{attrs:{label:"square"}},[t._v(t._s(t.$t("Square")))]),t._v(" "),a("el-radio",{attrs:{label:"round"}},[t._v(t._s(t.$t("Round")))])],1)],1)}),[],!1,null,null,null);const Ll=r({name:"ImageOption",props:["item"],components:{Alignment:wl,TextInput:$l,SliderInput:gl,Shape:Bl.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.$createElement,a=t._self._c||e;return a("div",[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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 Rl=r({name:"SpacingInput",data:function(){return{lock:!1,activeName:"margin"}},props:["item","types"],components:{SliderInput:gl},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.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("i",{class:"el-icon-"+(!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(e){return a("el-tab-pane",{key:e,attrs:{label:t.$t("margin"===e?"Margin":"Padding"),name:e}},[a("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(" "),a("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(" "),a("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(" "),a("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 Hl=r({name:"TextIconOption",props:["item"],data:function(){return{activeName:"general"}},components:{Slider:gl,ColorInput:xl,Alignment:wl,Icon:Il,FontWeight:Sl},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.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:t.$t("General"),name:"general"}},[a("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(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Text"),name:"text"}},[a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Icon"),name:"icon"}},[t.extension?a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("icon",{attrs:{item:t.item,setValue:"iconName"}}),t._v(" "),a("hr"),t._v(" "),a("p",[t._v(t._s(t.$t("Icon Position")))]),t._v(" "),a("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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports;const Wl=r({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:xl,Slider:gl,FontWeight:Sl}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeTabName,callback:function(e){t.activeTabName=e},expression:"activeTabName"}},[a("el-tab-pane",{attrs:{label:t.$t("General"),name:"general"}},[a("span",[t._v(t._s(t.$t("Ribbon Type")))]),t._v(" "),a("el-select",{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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1),t._v(" "),a("hr"),t._v(" "),"corner"===t.item.data.style.ribbonType?a("p",[t._v(t._s(t.$t("Ribbon Position")))]):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?a("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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?a("hr"):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?a("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?a("hr"):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?a("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?a("hr"):t._e(),t._v(" "),"corner"===t.item.data.style.ribbonType?a("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(" "),"corner"===t.item.data.style.ribbonType?a("hr"):t._e(),t._v(" "),"side"===t.item.data.style.ribbonType?a("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?a("hr"):t._e(),t._v(" "),"side"===t.item.data.style.ribbonType?a("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(" "),"side"===t.item.data.style.ribbonType?a("hr"):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?a("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?a("hr"):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?a("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?a("hr"):t._e(),t._v(" "),"bookmark"===t.item.data.style.ribbonType?a("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(" "),"bookmark"===t.item.data.style.ribbonType?a("hr"):t._e(),t._v(" "),"horizontal"===t.item.data.style.ribbonType?a("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?a("hr"):t._e(),t._v(" "),"horizontal"===t.item.data.style.ribbonType?a("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(" "),"horizontal"===t.item.data.style.ribbonType?a("hr"):t._e(),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Text"),name:"text"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.item.data.value,expression:"item.data.value"}],attrs:{type:"text"},domProps:{value:t.item.data.value},on:{input:function(e){e.target.composing||t.$set(t.item.data,"value",e.target.value)}}}),t._v(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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(" "),a("el-tab-pane",{attrs:{label:t.$t("Background"),name:"background"}},[a("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 ql=r({name:"BackgroundColor",components:{ColorInput:xl},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:{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.$createElement,a=t._self._c||e;return a("div",[a("h3",[t._v(t._s(t.$t("General Color Options")))]),t._v(" "),a("color-input",{attrs:{label:t.$t("Header Background")},model:{value:t.manageCell.data.setting.background.options.header_background.value,callback:function(e){t.$set(t.manageCell.data.setting.background.options.header_background,"value",e)},expression:"manageCell.data.setting.background.options.header_background.value"}}),t._v(" "),a("hr"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("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?[a("h3",[t._v(t._s(t.$t("Selected Color Options")))]),t._v(" "),a("div",{staticClass:"block"},[a("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.$t("Selected Cell Row Background")))]),t._v(" "),a("color-input",{attrs:{predefine:t.predefineColors},model:{value:t.trBackground,callback:function(e){t.trBackground=e},expression:"trBackground"}}),t._v(" "),a("hr")],1),t._v(" "),a("div",{staticClass:"block"},[a("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v("\n "+t._s(t.$t("Selected Cell Column Background")))]),t._v(" "),a("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(" "),a("hr")],1)]:t._e(),t._v(" "),t.manageCell.data.tdIds.length>=1?a("div",{staticClass:"block"},[a("span",{staticStyle:{float:"left","margin-right":"10px","margin-top":"10px"}},[t._v(t._s(t.$t("Selected Cell Background")))]),t._v(" "),a("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?a("h5",[a("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;const Vl={name:"LeftSideBar",props:["initialData","singleItem","selectedDevice"],mixins:[zt],components:{SelectInput:kl,CellSetting:r({name:"CellSetting",props:["manageCell"],methods:{changeColumnWidth:function(){var t=this,e=this.manageCell.data.tableData,a=this.manageCell.data.headers[this.manageCell.data.table.columnIndex];e.forEach((function(e){e.rows[a].style.columnWidth=t.columnWidth}))}},computed:{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.$createElement,a=t._self._c||e;return a("div",[1!==t.manageCell.data.tdIds.length?a("div",[a("p",[t._v("\n "+t._s(t.$t("Click on a cell to get cell-specific options. Selected cells will be highlighted."))+" "),a("br"),a("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?a("div",[a("div",{staticClass:"block"},[a("span",[t._v(t._s(t.$t("Row height")))]),t._v(" "),a("el-slider",{attrs:{max:500,min:50,step:1,"show-input":""},model:{value:t.rowHeight,callback:function(e){t.rowHeight=e},expression:"rowHeight"}})],1),t._v(" "),a("hr"),t._v(" "),a("div",{staticClass:"block"},[a("span",[t._v(t._s(t.$t("Column Width")))]),t._v(" "),a("el-slider",{attrs:{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:ql,ColorInput:xl,RibbonOption:Wl,TextIconOption:Hl,SpacingInput:Rl,ButtonOption:Dl,AllInputElement:Cl,draggable:xt(),TextOption:jl,StarRating:Pl,IconOption:Al,ProgressOption:Nl,ListOption:Ol,CustomHtmlOption:Ml,ShortcodeOption:Fl,StylistListOption:zl,ImageOption:Ll},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){var e="mode_options"===t?this.deviceActiveName:"";this.deviceLastSelected=e,this.$emit("deviceSelected",e)},accorDianChange:function(t){this.activeOption=t},manageRowColumns:function(){var t=this;window.ninjaTableBus.$on("manage-cell",(function(e){e.active?(t.manageCell=e,t.activeName=e.activeTab):t.closeCellEditing()}))},closeCellEditing:function(){this.manageCell=!1,this.activeName="elements",window.ninjaTableBus.$emit("manageCell")}},created:function(){var t=this;this.manageRowColumns(),window.ninjaTableBus.$on("closeManageCell",(function(){t.closeCellEditing()})),window.ninjaTableBus.$on("singleTdId",(function(e){t.maxWidth=t.maximumWidth(e)}))},computed:{hasPro:function(){return!!window.ninja_table_admin.hasPro},enableResponsive:function(){var t=this.initialData.responsive.general.options.enable_responsive_table.value;return this.getBoolean(t)},isDisableMobileBreakpoint:function(){var t=this.responsiveDevice.mobile.disable_breakpoint.value;return this.getBoolean(t)},isDisableTabletBreakpoint:function(){var t=this.responsiveDevice.tablet.disable_breakpoint.value;return this.getBoolean(t)},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 Ul=a(5117),Yl={insert:"head",singleton:!1};o()(Ul.Z,Yl);Ul.Z.locals;var Zl=r(Vl,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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():a("el-tab-pane",{attrs:{label:t.$t("Elements"),name:"elements"}},t._l(t.initialData.components,(function(e,n){return a("el-collapse",{key:e.key,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},["container"!==e.key?a("el-collapse-item",{attrs:{title:e.name,name:n}},[a("el-row",{attrs:{gutter:20,align:"middle",justify:"center"}},[a("draggable",{attrs:{list:e.fields,group:{name:"people",pull:"clone",put:!1},clone:t.customClone},on:{end:t.end}},t._l(e.fields,(function(e,n){return a("el-col",{key:n,staticClass:"element-style",attrs:{span:12}},[a("el-badge",{staticClass:"item",attrs:{value:!t.hasPro&&e.has_pro?"Pro":""}},[a("el-button",{staticClass:"button-component",class:!t.hasPro&&e.has_pro?"pro-component":"",attrs:{disabled:!t.hasPro&&e.has_pro,size:"small",type:"default",plain:"",icon:null!==e.icon?e.icon:"el-icon-s-grid"}},[t._v(t._s(e.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?a("el-tab-pane",{attrs:{label:t.$t("Options"),name:"options"}},[a("el-collapse",{staticClass:"accordions",attrs:{accordion:""},on:{change:t.accorDianChange},model:{value:t.activeOption,callback:function(e){t.activeOption=e},expression:"activeOption"}},[a("el-collapse-item",{attrs:{title:t.$t(t.ucWords(t.item.data.type)+" Options"),name:"1"}},["text"===t.item.data.type?a("text-option",{attrs:{item:t.item}}):"button"===t.item.data.type?a("button-option",{attrs:{item:t.item}}):"star_rating"===t.item.data.type?a("star-rating",{attrs:{item:t.item}}):"icon"===t.item.data.type?a("icon-option",{attrs:{item:t.item}}):"progress"===t.item.data.type?a("progress-option",{attrs:{item:t.item}}):"list"===t.item.data.type?a("list-option",{attrs:{item:t.item,settings:t.initialData.settings}}):"custom_html"===t.item.data.type?a("custom-html-option",{attrs:{item:t.item}}):"shortcode"===t.item.data.type?a("shortcode-option",{attrs:{item:t.item}}):"stylist_list"===t.item.data.type?a("stylist-list-option",{attrs:{item:t.item,settings:t.initialData.settings}}):"image"===t.item.data.type?a("image-option",{attrs:{item:t.item}}):"text_icon"===t.item.data.type?a("text-icon-option",{attrs:{item:t.item}}):"ribbon"===t.item.data.type?a("ribbon-option",{attrs:{item:t.item,maxWidth:t.maxWidth,settings:t.initialData.settings}}):t._e()],1),t._v(" "),"ribbon"!==t.item.data.type?a("el-collapse-item",{attrs:{title:t.$t("Spacing"),name:"2"}},[a("spacing-input",{attrs:{types:["margin","padding"],item:t.item}})],1):t._e()],1)],1):t._e(),t._v(" "),t.manageCell.active?t._e():a("el-tab-pane",{attrs:{label:t.$t("Settings"),name:"settings"}},[t._l(t.initialData.settings,(function(e,n){return a("el-collapse",{key:n,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-collapse-item",{attrs:{name:n}},[a("template",{slot:"title"},[t._v("\n "+t._s(e.name)+"\n "),"Global Style"===e.name?a("el-tooltip",{attrs:{placement:"top-start",effect:"dark"}},[a("template",{slot:"content"},[a("p",[t._v("The global style will be applied if the "),a("br"),t._v(" component individual style is not applied.")])]),t._v(" "),a("i",{staticClass:"el-icon-info"})],2):t._e()],1),t._v(" "),t._l(e.options,(function(n,i,o){return a("span",{key:i},[a("all-input-element",{attrs:{disableResponsive:t.getBoolean(!t.hasPro&&e.has_pro),item:n}}),t._v(" "),n.childs&&t.getBoolean(n.value)?[t._l(n.childs,(function(e,n,i){return[a("hr"),t._v(" "),a("all-input-element",{key:n,attrs:{item:e}})]}))]:t._e(),t._v(" "),o!==Object.keys(e.options).length-1?a("hr"):t._e()],2)}))],2)],1)})),t._v(" "),a("el-collapse",{staticClass:"accordions",on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-collapse-item",{staticClass:"export",attrs:{title:t.$t("Export Table")}},[a("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(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.exportTable}},[t._v("Export")])],1)],1)],2),t._v(" "),t.manageCell.active?t._e():a("el-tab-pane",{attrs:{label:t.$t("Responsiveness"),name:"responsiveness"}},t._l(t.initialData.responsive,(function(e,n){return a("el-collapse",{key:n,staticClass:"accordions",attrs:{accordion:""},on:{change:t.handleChangeResponsive},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:e.name,name:n}},t._l(e.options,(function(e,n){return a("span",{key:n},[a("div","devices"===n?[a("el-tabs",{on:{"tab-click":t.handleDeviceClick},model:{value:t.deviceActiveName,callback:function(e){t.deviceActiveName=e},expression:"deviceActiveName"}},t._l(e,(function(e,n){return a("el-tab-pane",{key:n,attrs:{label:e.name,name:e.key}},t._l(e,(function(n,i){return"name"!=i&&"key"!=i?a("span",{key:i},[a("all-input-element",{attrs:{initialData:t.initialData,item:n,disableResponsive:!t.enableResponsive,mobileDisableBreakpoint:"mobile"===e.key&&t.isDisableMobileBreakpoint&&"disable_breakpoint"!==n.key,tabletDisableBreakpoint:"tablet"===e.key&&t.isDisableTabletBreakpoint&&"disable_breakpoint"!==n.key,deviceName:e.key}}),t._v(" "),a("hr")],1):t._e()})),0)})),1)]:[a("all-input-element",{attrs:{item:e}})],1)])})),0)],1)})),1),t._v(" "),"cells"===t.manageCell.activeTab?a("el-tab-pane",{attrs:{label:t.$t("Manage cell"),name:"cells"}},[a("cell-setting",{attrs:{manageCell:t.manageCell}}),t._v(" "),a("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?a("el-tab-pane",{attrs:{label:t.$t("Background"),name:"background"}},[a("background-color",{attrs:{manageCell:t.manageCell}}),t._v(" "),a("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 Jl=r({name:"TableBuilderHome",data:function(){return{tableId:"",initialData:{},singleItem:{},selectedDevice:""}},components:{TopNav:bl,LeftSideBar:Zl.exports,RightSideBar:Zt},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()},beforeRouteLeave:function(t,e,a){window.confirm("Changes that you made may not be saved")?a():a(!1)},created:function(){window.onbeforeunload=function(){return""}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja-table-dg-wrapper"},[a("div",{staticClass:"ninja_main_nav"},[a("top-nav",{attrs:{initialData:t.initialData,tableId:t.$route.params.table_id,selectedDevice:t.selectedDevice},on:{deviceSelected:t.deviceSelected}})],1),t._v(" "),a("el-row",{attrs:{align:"middle",gutter:20}},[a("el-col",{attrs:{xs:24,sm:10,md:9,lg:6,xl:6,id:"leftside"}},[a("left-side-bar",{attrs:{singleItem:t.singleItem,initialData:t.initialData,selectedDevice:t.selectedDevice},on:{deviceSelected:t.deviceSelected}})],1),t._v(" "),a("el-col",{attrs:{xs:24,sm:14,md:15,lg:18,xl:18}},[t.initialData?a("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 Ql=[{path:"/",component:c,props:!0,children:[{path:"home",name:"home",component:ce},{path:"/tools",component:ue,children:[{path:"",name:"import_tables",component:he},{path:"default_table_appearance",name:"default_table_appearance",component:Ce},{path:"permission",name:"permission",component:ge},{path:"licensing",name:"licensing",component:Te},{path:"global_settings",name:"global_settings",component:Ee}]},{path:"/help",name:"help",component:Xo}]},{path:"/tables/:table_id",component:Ve,props:!0,children:[{path:"",name:"data_items",component:go},{path:"columns",name:"data_columns",component:Lo},{path:"design_studio",name:"design_studio",component:fl},{path:"additional_css",name:"additional_css",component:rl},{path:"import-export",name:"import-export",component:Yo},{path:"table_editing",name:"table_editing",component:vl}]},{path:"/charts",component:Ae,props:!0},{path:"/table_builder_edit_table/:table_id",name:"table_builder_edit_table",component:Jl,props:!0},{path:"/table_builder_add_table",name:"table_builder_add_table",component:Jl,props:!0}];const Xl={name:"TableApp",data:function(){return{addVisible:!1,integrity:window.ninja_table_admin.nt_integrity,admin_notices:window.ninja_table_admin.admin_notices}},mounted:function(){var t=this;window.ninjaTableBus.$on("show_pro_popup",(function(e){t.addVisible=!0})),jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()}};var Gl=a(4701),Kl={insert:"head",singleton:!1};o()(Gl.Z,Kl);Gl.Z.locals;const ts=r(Xl,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrap"},[t._l(t.admin_notices,(function(e,n){return a("el-alert",{key:n,attrs:{type:e.type,closable:e.closable,effect:"dark"}},[a("div",{domProps:{innerHTML:t._s(e.message)}})])})),t._v(" "),a("router-view"),t._v(" "),a("div",{staticClass:"pro_feature_dialog"},[a("el-dialog",{attrs:{title:"NinjaTable Pro Features",visible:t.addVisible},on:{"update:visible":function(e){t.addVisible=e}}},[a("div",{staticClass:"add_content"},[a("ul",{staticClass:"list_features"},[a("li",[t._v("Use Unlimited Colors in Your Tables")]),t._v(" "),a("li",[t._v("Add Media to Your Table Cells")]),t._v(" "),a("li",[t._v("Drag and Drop Table Data Sorting")]),t._v(" "),a("li",[t._v("Use Advanced Date Sorting")]),t._v(" "),a("li",[t._v("Colspan/Cell Merging Feature")]),t._v(" "),a("li",[t._v("Create Custom Filter UI in Table")]),t._v(" "),a("li",[t._v("Use Shortcode in your table cell")]),t._v(" "),a("li",[t._v("Use Advanced Data Filtering")]),t._v(" "),a("li",[t._v("Use Advanced Customization Features")]),t._v(" "),a("li",[t._v("Get VIP Support for any Issue")]),t._v(" "),a("li",[t._v("Incremental New Premium Features")]),t._v(" "),a("li",[t._v("And Many More feature")])])]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Buy Pro Now")])])])],1),t._v(" "),"nope"==t.integrity?a("div",{staticStyle:{"margin-top":"90px",color:"rgb(236, 62, 62)","font-size":"16px","margin-bottom":"30px"}},[a("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 "),a("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 es=new window.NINJATABLE.Router({routes:window.NINJATABLE.applyFilters("ninja_table_global_routes",Ql),linkActiveClass:"active"});ts.router=es,window.ninjaApp=new window.NINJATABLE.Vue(ts).$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()},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})}}},483:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".el-menu.el-menu--horizontal{border-bottom:none}",""]);const o=i},1213:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},640:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".form-item[data-v-0ccd418e]{margin:10px 0}.form-item label[data-v-0ccd418e]{width:100px}",""]);const o=i},4077:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5974:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".remove[data-v-590fa148]{display:inline-block}",""]);const o=i},3608:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3098:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},9347:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1692:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3415:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5630:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6770:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4665:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},6307:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".fluent-form-promo p{font-size:medium}",""]);const o=i},6862:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},2238:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},941:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},6907:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},8578:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1178:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7796:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},990:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},9174:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},9577:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},9441:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".spaced>.el-radio[data-v-7c7cfd0a]{line-height:2;margin-left:0;margin-right:30px!important}",""]);const o=i},9946:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},542:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3102:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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}",""]);const o=i},6505:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7475:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5626:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".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 .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}",""]);const o=i},7148:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},4343:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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;padding-left:var(--table-wrapper-padding);padding-top:5px;position:relative;word-break:break-word;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:3}.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 tr.firstRowSticky{position:-webkit-sticky;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:2}.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},6381:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5975:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},41:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},8167:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1849:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},7301:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3155:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5085:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},9322:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},2235:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},5241:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},3823:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1109:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".premium-notice .buy_now_button[data-v-06fd6e1a]{text-decoration:none}",""]);const o=i},1072:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),i=a.n(n)()((function(t){return t[1]}));i.push([t.id,".sortable-upgrade-notice .el-dialog__body{padding:20px}",""]);const o=i},5542:(t,e,a)=>{"use strict";a.d(e,{Z:()=>o});var n=a(1519),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},1519: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}},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)}}},8674: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(8674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});t.exports=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(1903);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(8674)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=n},1903: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],E=T||k(v),I=v?S?k("entries"):E:void 0,D="Array"==e&&$.entries||T;if(D&&(x=u(D.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,E=function(){return T.call(this)}),n&&!g||!p&&!j&&$[d]||l($,d,E),s[e]=E,s[C]=h,v)if(y={values:S?E:k(_),keys:b?E: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 E=[C].concat(j,S,p);void 0!==T&&E.push(T);var I=String(e.apply(void 0,E))}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 E(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=E(t)[e];n;){var o=E(n)[a];if(!("top"===a||"left"===a?i>=o:i<=o))return n;if(n===T())break;n=O(n,!1)}return!1}function D(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 P(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 F(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 z(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:E(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=E(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:Ft,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=[],Et="undefined"!=typeof document,It=_,Dt=d||u?"cssFloat":"float",Pt=Et&&!h&&!_&&"draggable"in document.createElement("div"),At=function(){if(Et){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=D(t,0,e),o=D(t,1,e),l=i&&S(i),s=o&&S(o),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+E(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(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[Dt]||o&&"none"===a[Dt]&&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")},Ft=function(){!At&&G&&S(G,"display","")};Et&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var zt=function(t){if(Q){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,kt.some((function(t){if(!P(t)){var e=E(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&&Pt,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||E(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=E(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",zt),v(s,"mousemove",zt),v(s,"touchmove",zt),v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,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);Ft()}},_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=E(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=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=E(Q),M("dragOverValid"),Lt.eventCanceled)return h;if(n)return X=K,F(),this._hideClone(),M("revert"),Lt.eventCanceled||(tt?K.insertBefore(Q,tt):K.appendChild(Q)),B(!0);var f=P(o,r.draggable);if(!f||function(t,e,a){var n=E(P(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=E(s)),!1!==Rt(K,o,Q,e,s,a,t,!!s))return F(),o.appendChild(Q),X=o,L(),B(!0)}else if(s.parentNode===o){a=E(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 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 D=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),F(),N&&!D?o.appendChild(Q):s.parentNode.insertBefore(Q,N?D:s),j&&z(j,0,$-j.scrollTop),X=Q.parentNode,void 0===b||St||(gt=Math.abs(b-E(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,E(a),t,n)},changed:L},c))}function F(){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&&zt(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",zt),b(document,"mousemove",zt),b(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var e=this.el,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()}},Et&&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:F,closest:w,toggleClass:C,clone:B,index:A,nextTick:Vt,cancelNextTick:Ut,detectDirection:Nt,getChild:D},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=F((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,_=E(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 D=w&&(Math.abs(b-o)<=s&&$+g<k)-(Math.abs(v-o)<=s&&!!$),P=x&&(Math.abs(f-l)<=s&&I+y<C)-(Math.abs(h-l)<=s&&!!I);if(!Kt[d])for(var A=0;A<=d;A++)Kt[A]||(Kt[A]={});Kt[d].vx==D&&Kt[d].vy==P&&Kt[d].el===m||(Kt[d].el=m,Kt[d].vx=D,Kt[d].vy=P,clearInterval(Kt[d].pid),0==D&&0==P||(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)||z(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=D(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=E(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?E(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=E(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=E(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?E(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);const n={name:"home",data:function(){return{has_pro:window.ninja_table_admin.hasPro,topMenus:[]}},computed:{activeMenu:function(){return-1!=["home","help"].indexOf(this.$route.name)?this.$route.name:"import_tables"}},methods:{setTopMenu:function(){this.topMenus=this.applyFilters("ninja_table_top_menus",[{route:"home",title:"All Tables"},{route:"import_tables",title:"Tools and Settings"},{route:"help",title:"Help & Documentation"}])}},mounted:function(){this.setTopMenu()}};var i=a(3379),o=a.n(i),l=a(483),s={insert:"head",singleton:!1};o()(l.Z,s);l.Z.locals;function r(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 c=r(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_main_nav"},[a("el-menu",{attrs:{"default-active":t.activeMenu,router:!0,mode:"horizontal"}},[a("span",{staticClass:"plugin-name"},[t._v("\n "+t._s(t.$t("Ninja Tables"))+" "),t.has_pro?[t._v(t._s(t.$t("Pro")))]:t._e()],2),t._v(" "),t._l(t.topMenus,(function(e){return a("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[a("i",{class:e.icon_class}),t._v(" "),a("span",[t._v("\n "+t._s(e.title)+"\n ")])])})),t._v(" "),a("el-menu-item",{staticClass:"buy_pro_tab",attrs:{index:"buy-pro"}},[t.has_pro?t._e():a("a",{attrs:{href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade",target:"_blank"}},[t._v("\n "+t._s(t.$t("Upgrade To Pro"))+"\n ")])])],2)],1),t._v(" "),a("router-view",{attrs:{"has-pro":t.has_pro}})],1)}),[],!1,null,null,null).exports;const u={name:"Welcome",methods:{create:function(){this.$emit("create",!0)}}};var d=a(9322),p={insert:"head",singleton:!1};o()(d.Z,p);d.Z.locals;const m=r(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_intro_welcome"},[a("h2",[t._v("Welcome to Ninja Tables")]),t._v(" "),a("p",[t._v("Thank you for installing Ninja Tables - Best Responsive Table Plugin for WordPress")]),t._v(" "),a("div",{staticClass:"ninja_actions"},[a("el-button",{attrs:{type:"success"},on:{click:t.create}},[t._v("\n Create Your First Table\n ")]),t._v(" "),a("router-link",{attrs:{to:{name:"import_tables"}}},[a("el-button",{attrs:{type:"info"}},[t._v(t._s(t.$t("Import From CSV")))])],1)],1),t._v(" "),a("hr"),t._v(" "),t._m(0)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_docs"},[a("h4",[t._v("Ninja Tables Documentation:")]),t._v(" "),a("ul",[a("li",[a("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(" "),a("li",[a("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(" "),a("li",[a("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 h=r({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.$createElement,a=t._self._c||e;return a("div",{staticClass:"tablenav-pages"},[t.paginate.total?a("span",{staticClass:"displaying-num"},[t._v(t._s(t.paginate.total)+" "+t._s(t.$t("items")))]):t._e(),t._v(" "),a("span",{staticClass:"pagination-links"},[1==t.paginate.current_page?[a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("«")]),t._v(" "),a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("‹")])]:[a("a",{staticClass:"first-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("First page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),a("a",{staticClass:"prev-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page-1)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Previous page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("‹")])])],t._v(" "),a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Current Page")))]),t._v(" "),a("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 "),a("span",{staticClass:"total-pages"},[t._v(t._s(t.paginate.last_page))]),t._v(" "),t.paginate.current_page==t.paginate.last_page?[a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("›")]),t._v(" "),a("span",{staticClass:"tablenav-pages-navspan",attrs:{"aria-hidden":"true"}},[t._v("»")])]:[a("a",{staticClass:"next-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.current_page+1)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Next page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("›")])]),t._v(" "),a("a",{staticClass:"last-page",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goToPage(t.paginate.last_page)}}},[a("span",{staticClass:"screen-reader-text"},[t._v(t._s(t.$t("Last page")))]),a("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])]],2)])}),[],!1,null,null,null).exports,f={name:"Home",components:{ninja_pagination:h},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 v=a(5241),b={insert:"head",singleton:!1};o()(v.Z,b);v.Z.locals;const g=r(f,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("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}},[a("el-table-column",{attrs:{label:t.$t("ID"),width:"90",prop:"ID",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return["drag_and_drop"===e.row.dataSourceType?a("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")]):a("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(e.row.ID)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:t.$t("Title"),prop:"post_title",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("strong",[t.shouldBeVisible(e.row)?["drag_and_drop"===e.row.dataSourceType?a("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t(e.row.post_title))+"\n ")]):a("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t(e.row.post_title))+"\n ")])]:[t._v("\n "+t._s(e.row.post_title)+"\n ")],t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:"publish"!=e.row.post_status,expression:"scope.row.post_status != 'publish'"}]},[t._v("\n ("+t._s(e.row.post_status)+")\n ")])],2),t._v(" "),a("div",{staticClass:"row-actions"},[t.shouldBeVisible(e.row)?a("span",{staticClass:"row-edit"},["drag_and_drop"===e.row.dataSourceType?a("router-link",{attrs:{to:{name:"table_builder_edit_table",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]):a("router-link",{attrs:{to:{name:"data_items",params:{table_id:e.row.ID}}}},[t._v("\n "+t._s(t.$t("Edit"))+"\n ")]),t._v(" |\n ")],1):t._e(),t._v(" "),t.shouldBeVisible(e.row)?a("span",{staticClass:"row-preview"},[a("a",{attrs:{rel:"noopener",href:e.row.preview_url,target:"_blank"}},[t._v(t._s(t.$t("Preview")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)?a("span",{staticClass:"row-duplicate"},[a("a",{attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.duplicate(e.row.ID,e.row.dataSourceType)}}},[t._v(t._s(t.$t("Duplicate")))]),t._v(" |\n ")]):t._e(),t._v(" "),t.shouldBeVisible(e.row)&&e.row.fluentfrom_url?a("span",{staticClass:"row-duplicate"},[a("a",{attrs:{href:e.row.fluentfrom_url}},[t._v(t._s(t.$t("Fluent Form Entries")))]),t._v(" |\n ")]):t._e(),t._v(" "),a("span",{staticClass:"row-delete"},[a("a",{attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),t.confirmDeleteTable(e.row.ID)}}},[t._v(t._s(t.$t("Delete")))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:t.$t("Description"),"class-name":"description"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"nt_cell",domProps:{innerHTML:t._s(e.row.post_content)}})]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"190",label:t.$t("Data Source")},scopedSlots:t._u([{key:"default",fn:function(e){return["drag_and_drop"===e.row.dataSourceType?a("strong",[t._v(t._s(t.$t("Drag & Drop Table")))]):a("strong",[t._v(t._s(t.dataSourceType(e.row)))]),t._v(" "),e.row.remoteURL?[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.remoteURL,placement:"top-start"}},[a("i",{staticClass:"dashicons dashicons-info"})])]:t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"250",label:t.$t("ShortCode")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},["drag_and_drop"===e.row.dataSourceType?a("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_table_builder id="'+e.row.ID+'"]'}},[a("i",{staticClass:"el-icon-document"}),t._v(' [ninja_table_builder id="'+t._s(e.row.ID)+'"]\n ')]):a("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+e.row.ID+'"]'}},[a("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(e.row.ID)+'"]\n ')])])]}}])})],1),t._v(" "),a("div",{staticClass:"pull-right"},[a("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?a("div",[a("a",{staticStyle:{display:"block",width:"800px",margin:"40px auto 0px","max-width":"100%"},attrs:{target:"_blank",href:"https://wordpress.org/plugins/fluentform"}},[a("img",{staticStyle:{"max-width":"100%"},attrs:{src:t.img_url_path+"fluent_banner.png"}})])]):t.items.length>3&&!t.hasPro?a("div",{staticClass:"text-center",staticStyle:{"margin-top":"100px"}},[a("hr"),t._v(" "),a("h3",[t._v("Love Ninja Tables? Upgrade to Pro and get more exciting features and Performance")]),t._v(" "),a("a",{staticClass:"button button-primary",attrs:{target:"_blank",href:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("Upgrade To Pro")])]):t._e()],1)}),[],!1,null,null,null).exports;const y={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 w=a(5542),x={insert:"head",singleton:!1};o()(w.Z,x);w.Z.locals;const k=r(y,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wp_vue_editor_wrapper",class:"editor_wrapper_"+t.ninja_editor_id},[t.hasWpEditor?[t.has_pro?t._e():a("button",{staticClass:"button ninja_demo_media_button",attrs:{type:"button"},on:{click:t.showPro}},[a("span",{staticClass:"dashicons dashicons-admin-media"}),t._v(" Add Media (pro)")]),t._v(" "),a("textarea",{staticClass:"wp_vue_editor",attrs:{id:t.ninja_editor_id}},[t._v(t._s(t.value))])]:[t._m(0),t._v(" "),a("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,e=t.$createElement,a=t._self._c||e;return a("p",{staticStyle:{"font-style":"italic"}},[a("small",[t._v("WP Editor is only available on WordPress version 4.8 or later. Please Upgrade Your WordPress Core")])])}],!1,null,null,null).exports;function C(t){return function(t){if(Array.isArray(t))return S(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 S(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 S(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 S(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 j(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 T(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const E={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?j(Object(a),!0).forEach((function(e){T(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):j(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=C(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=C(e.operators.concat(this.other_operators)):-1==t.indexOf(".")&&-1==["post_author","post_status"].indexOf(t)||(e.operators=C(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=C(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 I=a(6862),D={insert:"head",singleton:!1};o()(I.Z,D);I.Z.locals;const P=r(E,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wp-post-conditions"},[a("el-row",[a("el-col",{attrs:{md:21}},[a("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional conditions/where clauses here.","show-icon":""}})],1),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[a("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.conditions,(function(e,n){return[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{md:7,sm:7}},[a("el-select",{attrs:{placeholder:"Select"},on:{change:function(a){return t.setOperators(a,e)}},model:{value:e.field,callback:function(a){t.$set(e,"field",a)},expression:"condition.field"}},t._l(t.fields,(function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1)],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[a("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(a){t.$set(e,"operator",a)},expression:"condition.operator"}},t._l(e.operators,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[t.isSelectable(e)||t.isDateField(e)?!t.isSelectable(e)&&t.isDateField(e)?a("el-date-picker",{attrs:{"popper-class":"wp-post-conditions-el-picker",type:"datetime",placeholder:"Pick a date",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}}):t.isSelectable(e)?a("el-select",{staticClass:"full-width",attrs:{multiple:"",filterable:"","collapse-tags":"",placeholder:"Select"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}},t._l(e.selectableOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1):t._e():a("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}})],1),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[a("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?a("div",{staticClass:"ninja_post_query_limit"},[a("div",{staticClass:"ninja_form_group"},[a("label",[t._v(t._s(t.$t("Query Limit for Frontend"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Query Limit")]),t._v(" "),a("p",[t._v("\n Please specify how many posts/CPTs you want to show in total, Leave blank to show all\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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(" "),a("div",{staticClass:"ninja_form_group"},[a("label",[t._v(t._s(t.$t("Order By Column"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Order By Column")]),t._v(" "),a("p",[t._v("\n Please specify order by column. The script will order by with the selected column\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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 a("el-option",{key:t,attrs:{value:t,label:t}})})),1)],1),t._v(" "),a("div",{staticClass:"ninja_form_group",staticStyle:{"margin-top":"20px"}},[a("label",[t._v(t._s(t.$t("Order By Type"))+"\n "),a("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start",effect:"light"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("h3",[t._v("Order By Type")]),t._v(" "),a("p",[t._v("\n Please specify order by type. The script will order with your selected type\n ")])]),t._v(" "),a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("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"}},[a("el-option",{attrs:{value:"ASC",label:"Ascending"}}),t._v(" "),a("el-option",{attrs:{value:"DESC",label:"Descending"}})],1)],1)]):t._e()],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("small",[t._v("Please specify how many posts/CPTs you want to show in total, Leave blank to show all")])])}],!1,null,null,null).exports;function A(t){return function(t){if(Array.isArray(t))return N(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 N(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 N(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 N(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){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 M(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?O(Object(a),!0).forEach((function(e){M(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):O(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=A(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 z=a(2238),B={insert:"head",singleton:!1};o()(z.Z,B);z.Z.locals;const L=r(F,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wp-post-conditions"},[a("el-row",[a("el-col",{attrs:{md:21}},[a("el-alert",{attrs:{type:"info",title:"",closable:!1,description:"You can add additional meta query here.","show-icon":""}})],1),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3}},[a("el-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return t.addCondition(e)}}})],1)],1),t._v(" "),t._l(t.metas,(function(e,n){return[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{md:7,sm:7}},[a("el-input",{attrs:{placeholder:"Meta Key"},on:{change:function(a){return t.setOperators(a,e)}},model:{value:e.field,callback:function(a){t.$set(e,"field",a)},expression:"condition.field"}})],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[a("el-select",{attrs:{placeholder:"Select"},model:{value:e.operator,callback:function(a){t.$set(e,"operator",a)},expression:"condition.operator"}},t._l(e.operators,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),a("el-col",{attrs:{md:7,sm:7}},[a("el-input",{attrs:{placeholder:"Value"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"condition.value"}}),t._v(" "),t.shouldShowInfo(e.operator)?[a("el-alert",{staticClass:"compact",attrs:{title:"enter comma separated value",type:"info",closable:!1}})]:t._e()],2),t._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{md:3,sm:3}},[a("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 R={name:"PremiumNotice",props:["highlight"]};var H=a(1109),W={insert:"head",singleton:!1};o()(H.Z,W);H.Z.locals;const q=r(R,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1}},[a("p",[t._v("\n This is a Premium feature. Get\n "),t.highlight?a("b",[t._v(t._s(t.highlight)+",")]):t._e(),t._v(" "),a("b",[t._v("unlimited customizations")]),t._v(",\n "),a("b",[t._v("data filters")]),t._v(",\n "),a("b",[t._v("professional looks")]),t._v(",\n "),a("b",[t._v("Many More Integrations")]),t._v("\n and so many things from the Pro version.\n ")]),t._v(" "),a("a",{staticClass:"buy_now_button el-button el-button--danger el-button--mini",attrs:{href:"https://wpmanageninja.com/ninja-tables/ninja-tables-pro-pricing/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},[t._v("\n Get Premium Version Now\n ")])])}),[],!1,null,"06fd6e1a",null).exports;const V=r({name:"UpgradeNotice"},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[a("p",[t._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,U={name:"WP-Posts",props:{config:{type:Object},tableCreated:{type:Function},hasPLainLayout:{type:Boolean,default:!1}},components:{"wp-post-conditions":P,PremiumNotice:q,UpgradeNotice:V,WpPostMetaQuery:L},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 Y=a(941),Z={insert:"head",singleton:!1};o()(Y.Z,Z);Y.Z.locals;const J=r(U,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_tables_wpposts"},[t.hasPro?t.activated_features.wp_posts_table?a("div",[t.hasPLainLayout?[a("el-row",[a("el-col",{staticClass:"table-rows",attrs:{md:12}},[a("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(" "),a("el-col",{staticClass:"table-rows",attrs:{md:12}},[a("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():a("el-row",[a("el-collapse",{staticClass:"nt_conditions",model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("h4",{staticClass:"no-margin"},[t._v("Conditions")])]),t._v(" "),a("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(" "),a("el-collapse",{staticClass:"nt_conditions",model:{value:t.meta_query,callback:function(e){t.meta_query=e},expression:"meta_query"}},[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("h4",{staticClass:"no-margin"},[t._v("Meta Query")])]),t._v(" "),a("wp-post-meta-query",{attrs:{config:t.config,metas:t.metas,fields:t.query_able_post_types_fields}})],2)],1)],1),t._v(" "),a("el-row",[a("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():[a("h3",[t._v("\n Construct Table from Posts / CPTs\n ")]),t._v(" "),t._m(0),t._v(" "),a("el-steps",{attrs:{active:t.active_step,"align-center":""}},[a("el-step",{attrs:{title:"Step 1"}}),t._v(" "),a("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?[a("el-row",{staticStyle:{"margin-top":"20px"}},[a("el-input",{attrs:{placeholder:"Title"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"}},[a("div",{staticStyle:{"text-align":"center"}},[a("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?[a("el-row",{staticStyle:{"margin-top":"20px"}},[a("div",{staticStyle:{"text-align":"center"}},[a("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(" "),a("el-row",{staticStyle:{"margin-top":"20px"}},[a("div",[a("el-collapse",{attrs:{accordion:"",value:"conditions"},model:{value:t.conditions_section,callback:function(e){t.conditions_section=e},expression:"conditions_section"}},[a("el-collapse-item",{attrs:{name:"conditions",title:"Conditions"}},[t.conditions_section?a("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(" "),a("el-row",[a("el-col",{attrs:{md:12}},[a("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(" "),a("el-col",{attrs:{md:12}},[t.active_step>0?a("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):[a("upgrade-notice")]:[a("premium-notice",{attrs:{highlight:"Create nice tables from your existings posts/pages/custom post types"}})]],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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. "),a("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 Q=a(6073),X=a.n(Q);const G=r({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;X()(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.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ntn_query_selections"},[t._l(t.query_terms,(function(e,n){return a("div",{staticClass:"nt_each_selection"},[a("div",{staticClass:"nt_query_header"},[a("h3",[t._v(t._s(e.title))]),t._v(" "),a("p",[t._v(t._s(e.description))])]),t._v(" "),a("div",{staticClass:"nt_query_body"},[a("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(e.terms,(function(e){return a("el-checkbox",{key:e.slug,attrs:{label:e.slug}},[t._v(t._s(e.name)+" ("+t._s(e.count)+")\n ")])})),1)],1)])})),t._v(" "),a("div",{staticClass:"nt_each_selection"},[a("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 "),a("b",[t._v("out of stocks")]),t._v(" items\n ")])],1),t._v(" "),a("div",{staticClass:"nt_each_selection"},[a("label",[t._v("\n Initial Order By\n "),a("el-select",{attrs:{size:"mini",placeholder:"Order By"},model:{value:t.query_conditions.order_by,callback:function(e){t.$set(t.query_conditions,"order_by",e)},expression:"query_conditions.order_by"}},t._l(t.product_orders,(function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})),1),t._v(" "),a("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"}},[a("el-option",{attrs:{label:"Assending Way",value:"ASC"}}),t._v(" "),a("el-option",{attrs:{label:"Descending Way",value:"DESC"}})],1)],1)])],2)}),[],!1,null,null,null).exports;const K=r({name:"woo_product_table",components:{WooNav:G},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.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"woo_table_creator"},[t._m(0),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("woo-nav",{attrs:{query_selections:t.query_selections,query_conditions:t.query_conditions}}),t._v(" "),a("div",{staticClass:"form-group"},[a("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.$createElement,a=t._self._c||e;return a("div",{staticClass:"nt_module_header"},[a("h3",[t._v("\n Construct Table from Your WooCommerce Products\n ")]),t._v(" "),a("p",{staticClass:"ninja_subtitle"},[t._v("\n Displays products content in a searchable, sortable with Ninja Tables. "),a("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 tt={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 et=a(4665),at={insert:"head",singleton:!1};o()(et.Z,at);et.Z.locals;const nt=r(tt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_modal-body"},[t.editing?t._e():a("h3",[t._v("\n Construct Table from WP Fluent Form Entries\n ")]),t._v(" "),t.isFluentFormUpdated?[t.editing?t._e():a("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 "),a("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():a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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():a("div",{staticClass:"form-group"},[a("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 a("el-option",{key:t.id,attrs:{label:t.id+" : "+t.title,value:t.id}})})),1)],1),t._v(" "),t.form.id?a("div",{staticClass:"form-group"},[a("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{data:t.fields,"empty-text":"Loading..."},on:{"selection-change":t.handleFieldsSelectionChange}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"label",label:"Select Entry Fields"}})],1)],1):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("strong",[t._v("Options (Optional)")]),t._v(" "),a("hr"),t._v(" "),a("el-row",{staticStyle:{"margin-top":"15px"},attrs:{gutter:20}},[a("el-col",{attrs:{md:12}},[a("el-row",[a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:6}},[a("strong",[a("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Maximun records to show in frontend, keep empty to show all."}},[a("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Max Records:\n ")],1)]),t._v(" "),a("el-col",{attrs:{md:18}},[a("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(" "),a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{md:12}},[a("el-row",[a("el-col",{attrs:{md:6}},[a("strong",[a("el-tooltip",{attrs:{placement:"right",effect:"light",content:"Select what type of entries you want to show from fluent form."}},[a("i",{staticClass:"el-icon-info el-text-info"})]),t._v("\n Entry Type:\n ")],1)]),t._v(" "),a("el-col",{staticStyle:{"margin-top":"3px"},attrs:{md:18}},[a("el-radio-group",{model:{value:t.form.entry_status,callback:function(e){t.$set(t.form,"entry_status",e)},expression:"form.entry_status"}},[a("el-radio",{attrs:{label:"all"}},[t._v("All")]),t._v(" "),a("el-radio",{attrs:{label:"read"}},[t._v("Read")]),t._v(" "),a("el-radio",{attrs:{label:"unread"}},[t._v("Unread")])],1)],1)],1)],1)],1),t._v(" "),t.config&&t.config.table?[a("br"),t._v(" "),a("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(" "),a("hr"),t._v(" "),a("div",{staticClass:"form-group"},[a("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?[a("el-alert",{staticClass:"premium-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[a("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(" "),a("h4",[t._v("See the form in action:")]),t._v(" "),a("br"),t._v(" "),t._m(0)]:a("div",{staticClass:"fluent-form-promo"},[t._m(1),t._v(" "),a("div",[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.installing,expression:"installing"}],attrs:{type:"success"},on:{click:t.installFluentFrom}},[t.installing?a("span",[t._v("Installing WP Fluent From...")]):a("span",[t._v("Install Fluent Form Now")])]),t._v(" "),t.installing?a("p",[t._v("Please wait while installing WP Fluent From")]):t._e()],1),t._v(" "),a("h4",[t._v("See the form in action:")]),t._v(" "),a("br"),t._v(" "),t._m(2)])],2)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("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.$createElement,e=this._self._c||t;return e("div",{staticStyle:{position:"relative","padding-bottom":"56.25%","padding-top":"25px",height:"0"}},[e("iframe",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},attrs:{width:"700",height:"394",src:"https://www.youtube.com/embed/XxBrmuhu6yQ",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,null,null).exports;function it(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 ot(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?it(Object(a),!0).forEach((function(e){lt(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):it(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function lt(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const st=r({name:"Remote-Data-Source",components:{PremiumNotice:q,UpgradeNotice:V},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=ot(ot({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=ot(ot({},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.$createElement,a=t._self._c||e;return a("div",[t.editing?[a("el-table",{ref:"rowSelectableTable",staticStyle:{width:"100% !important"},attrs:{loading:t.fetching,data:t.fields},on:{"selection-change":t.handleFieldsSelectionChange}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]:a("div",{staticClass:"ninja_modal-body"},[a("el-steps",{attrs:{active:t.active_step,"align-center":""}},[a("el-step",{attrs:{title:"Step 1"}}),t._v(" "),a("el-step",{attrs:{title:"Step 2"}})],1),t._v(" "),0==t.active_step?["google-csv"==t.type?[a("h3",[t._v("\n Construct Table from Google Sheets\n ")]),t._v(" "),t._m(0)]:t._e(),t._v(" "),"csv"==t.type?[a("h3",[t._v("\n Construct Table from Remote CSV File\n ")]),t._v(" "),a("p",{staticClass:"ninja_subtitle"},[t._v("\n Whenever your remote CSV data changes it will be synced here automatically.\n ")])]:t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"remote_url"}},[t._v(t._s(t.$t("Data Source URL")))]),t._v(" "),a("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)}}})])]:[a("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}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"Select Entry Fields"}})],1)]],2),t._v(" "),t.hasPro?t.activated_features.external_data_source?t._e():[a("UpgradeNotice")]:[a("premium-notice")],t._v(" "),a("div",{staticClass:"modal-footer",staticStyle:{"margin-top":"20px"}},[t.editing?t._e():a("el-row",[a("el-col",{attrs:{md:12}},[a("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?a("el-col",{attrs:{md:12}},[a("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?a("div",{staticStyle:{"margin-top":"15px"}},[a("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"}},[a("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(" "),a("el-button",{attrs:{slot:"append",loading:t.saving,size:"small",plain:""},on:{click:t.save},slot:"append"},[t._v(t._s(t.$t("Update Settings"))+"\n ")])],1)],1):t._e()],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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 "),a("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 rt={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 ct=a(3823),ut={insert:"head",singleton:!1};o()(ct.Z,ut);ct.Z.locals;const dt=r(rt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_modal-body"},[a("h3",[t._v("Import Table")]),t._v(" "),a("p",{staticClass:"ninja_subtitle"},[t._v("\n Import table from existing CSV or JSON file.\n ")]),t._v(" "),a("div",{staticClass:"form"},[a("div",{staticClass:"form-group"},["file"===t.imports.source?[a("label",{attrs:{for:"fileUpload"}},[t._v(t._s(t.$t("Select file:")))]),t._v(" "),a("br"),t._v(" "),a("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"===t.imports.source?[t._v("\n File upload url\n ")]:[a("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),a("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),a("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(e,n){return a("option",{domProps:{value:n}},[t._v(t._s(t.$t(e))+"\n ")])})),0),t._v(" "),"csv"===t.imports.format?[t._m(0),t._v(" "),a("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(" "),a("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 "),a("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?a("div",{staticClass:"form_group ninja_errors"},[a("ul",t._l(t.errors,(function(e,n){return a("li",{key:n},[t._v("\n "+t._s(e.info)+"\n ")])})),0)]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("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.$createElement,a=t._self._c||e;return a("p",{staticClass:"hint"},[t._v("\n Check tutorial for importing data from CSV file\n "),a("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 pt={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 mt=a(1692),_t={insert:"head",singleton:!1};o()(mt.Z,_t);mt.Z.locals;const ht=r(pt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"Loading Editor..."}},[a("div",{staticClass:"ace_container"},[a("div",{staticClass:"ninja_custom_css_editor",attrs:{id:"ninja_custom_css"}},[t._v(t._s(t.value))])]),t._v(" "),a("div",{staticClass:"editor_errors",class:"ninja_"+t.mode+"_errors"},[a("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 ft=r({name:"remote_sql_form",props:["connection"],data:function(){return{}}},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sql_connection_wrapper"},[a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB Name\n "),a("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(" "),a("div",{staticClass:"nt_row_2"},[a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB username\n "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB User Password\n "),a("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(" "),a("div",{staticClass:"nt_row_2"},[a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB Host\n "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v("\n DB Host Port\n "),a("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,vt={name:"CustomSQLQuery",components:{MySqlEditor:ht,PremiumNotice:q,RemoteSqlConnection:ft},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 bt=a(6307),gt={insert:"head",singleton:!1};o()(bt.Z,gt);bt.Z.locals;const yt=r(vt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_modal-body"},[a("h3",[t._v("\n Construct Table from Custom SQL Query\n ")]),t._v(" "),a("hr"),t._v(" "),t.hasPro?t.has_sql_permission?t.isActivated?[a("div",{staticClass:"ninja_modal-body"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Custom SQL Query")))]),t._v(" "),a("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?a("div",{staticClass:"form-group"},[a("el-alert",{attrs:{title:"SQL Error",type:"error"},on:{close:function(e){t.error_html=""}}},[a("div",{domProps:{innerHTML:t._s(t.error_html)}})])],1):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("SQL COnnection Type")))]),t._v(" "),a("el-radio-group",{model:{value:t.connection_type,callback:function(e){t.connection_type=e},expression:"connection_type"}},[a("el-radio",{attrs:{label:"local"}},[t._v("Default WP SQL Table")]),t._v(" "),a("el-radio",{attrs:{label:"external"}},[t._v("Remote/External SQL")])],1)],1),t._v(" "),"external"==t.connection_type?a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("MYSQL Connection Details")))]),t._v(" "),a("remote-sql-connection",{attrs:{connection:t.remote_connection}})],1):t._e()]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[a("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:[a("el-alert",{staticClass:"update-notice",attrs:{title:"",type:"warning",closable:!1,"show-icon":""}},[a("p",[t._v("\n Please update Ninja Tables Pro Plugin to latest version. Required Ninja Table Version: 3.3 or later\n ")])])]:[a("el-alert",{attrs:{title:"",type:"error",closable:!1}},[a("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 ")])])]:[a("premium-notice",{attrs:{highlight:"SQL module where you can write custom SQL to build your table with "}})]],2)}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[t._v("Please write valid SQL query. Your written SQL query will be passed to "),a("code",[t._v("$wpdb->get_results()")]),t._v(" function")])}],!1,null,null,null).exports;var wt=a(9980),xt=a.n(wt),kt={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 Ct={name:"Elements",mixins:[kt],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 St=a(5975),jt={insert:"head",singleton:!1};o()(St.Z,jt);St.Z.locals;var $t=r(Ct,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ntb-elements-wrapper",style:[t.itemId===t.item.id?t.margin:""]},[t.itemId===t.item.id&&t.dataTypes(t.item.data.type)?a("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?a("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":""+(""===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?a("span",{style:[t.padding,t.displayBlock,t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[a("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type&&t.itemId===t.item.id?a("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)?a("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?a("span",{on:{mouseleave:function(e){return t.$emit("child-data")}}},[a("a",{style:[t.displayFlex,t.justifyContent],attrs:{href:""+t.item.data.style.link},on:{click:function(t){t.preventDefault()}}},[a("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{alt:""+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?a("span",{staticStyle:{position:"relative",margin:"0",padding:"0",width:"100%"},on:{mouseleave:function(e){return t.$emit("child-data")}}},[a("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[a("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[a("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":""}]},[a("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():a("span",{style:[t.textAlign],on:{mouseleave:function(e){return t.$emit("child-data")}}},[a(t.item.data.style.listType,{tag:"component",staticClass:"ntb-list-style",style:[t.listStyle,t.padding]},[t._l(t.item.data.value,(function(e,n){return a("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},["stylist_list"===t.item.data.type?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,{"vertical-align":"middle"}]}):t._e(),t._v(" "),a("span",{style:[{"margin-left":t.item.data.style.itemSpacing+"px","vertical-align":"middle"}],domProps:{innerHTML:t._s(e)}})])})),t._v(" "),a("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 Tt=$t.exports;const Et={name:"Datas",mixins:[kt],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)'"]}}}},It=Et;var Dt=a(6381),Pt={insert:"head",singleton:!1};o()(Dt.Z,Pt);Dt.Z.locals;var At=r(It,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ntb-datas-wrapper",style:[t.margin]},["text"===t.item.data.type?a("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?a("div",{staticClass:"hover-item",style:[t.justifyContent,{display:t.item.data.style.fullWidth?"block":"flex"}]},[a("a",{style:[t.justifyContent,t.displayFlex,{"text-decoration":"none"}],attrs:{href:""+t.item.data.style.url,target:t.item.data.style.newTab?"_black":""},on:{click:function(t){t.preventDefault()}}},[a("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}},[a("span",{staticClass:"button-content-wrapper",style:[t.padding]},["left"===t.item.data.style.iconPosition&&t.item.data.style.enableIcon?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e(),t._v(" "),a("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?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign]}):t._e()])])],1)]):"custom_html"===t.item.data.type?a("div",{staticClass:"hover-item",style:[t.padding],domProps:{innerHTML:t._s(t.item.data.value)}}):"shortcode"===t.item.data.type?a("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?a("span",[a("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":""+(""===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?a("span",{staticClass:"hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[a("span",{staticClass:"svgIcon",style:[t.iconStyle,t.textAlign,{"margin-top":"3px"}]})]):"progress"===t.item.data.type?a("span",{staticClass:"ntb-progress hover-item",style:[t.padding,t.displayBlock,t.textAlign]},[Number(t.item.data.style.percentage)?a("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?a("span",[a("a",{staticClass:"hover-item",style:[t.displayBlock,t.textAlign],attrs:{target:"_blank",href:""+t.item.data.style.link},on:{click:function(t){t.preventDefault()}}},[a("img",{style:[t.padding,t.borderRadius,{width:this.item.data.style.size+"%"}],attrs:{src:t.item.data.value,alt:""+t.item.data.style.alt}})])]):"list"===t.item.data.type||"stylist_list"===t.item.data.type?a("span",{staticClass:"ntb-list hover-item",style:[t.textAlign,t.displayFlex,t.justifyContent]},[a(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(e,n){return a("li",{key:n,style:[t.color,t.fontSize,t.lineHeight]},[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.$emit("list-item",{index:n})}}},["stylist_list"===t.item.data.type?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),a("span",{style:[t.fontWeight,t.verticalAlignMiddle,{"margin-left":t.item.data.style.itemSpacing+"px"}],domProps:{innerHTML:t._s(e)}})]),t._v(" "),t.manage?t._e():a("div",{staticClass:"icon-styles remove-elements"},[a("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return e.stopPropagation(),t.copyItem(n)}}}),t._v(" "),a("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?a("span",{staticClass:"hover-item",style:[t.displayFlex,t.justifyContent]},[a("span",{staticClass:"icon-text-wrapper",style:[t.padding,t.fontWeight,t.fontSize,t.displayBlock,t.textAlign,t.color]},["left"===t.item.data.style.iconPosition?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e(),t._v(" "),a("span",{style:"\n vertical-align: middle;\n margin-left: "+("left"===t.item.data.style.iconPosition?t.item.data.style.itemSpacing:0)+"px;\n margin-right: "+("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?a("span",{staticClass:"svgIcon",style:[t.iconWithOtherComponent,t.textAlign,t.verticalAlignMiddle]}):t._e()])]):t._e(),t._v(" "),"ribbon"===t.item.data.type?[a("div",{staticClass:"ribbon-wrapper",style:[{top:t.yAxisRibbon,left:t.xAxisRibbon}]},[a("div",{class:[t.item.data.style.ribbonType,"bookmark"===t.item.data.style.ribbonType?"up":""]},[a("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":""}]},[a("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 Nt=At.exports;function Ot(t){return function(t){if(Array.isArray(t))return Mt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mt(t,e);var 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 Mt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var 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}},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,Ot(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,Ot(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,Ot(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,Ot(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,Ot(n))!==l&&i===Math.min.apply(Math,Ot(n))){var _=t.merge.history[c.style.tdId],h=[],f=[];_.forEach((function(t,e){f.push(t.columnIndex)}));var v=Ot(new Set(f)),b=Ot(new Set(f)),g=v.concat(b);_.forEach((function(t,e){Math.min.apply(Math,Ot(n))!==t.rowIndex&&t.rowIndex<=Math.max.apply(Math,Ot(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,Ot(n));s++)l(s)}();else{o(i);for(var l=Math.min.apply(Math,Ot(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,Ot(n))&&(r.style.colspan>1||0===r.style.colspan)?r.style.colspan=0:e!==Math.min.apply(Math,Ot(n))&&r.style.colspan>1&&(r.style.colspan=0,r.style.rowspan=0):"elseif"===l&&(Math.min.apply(Math,Ot(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,Ot(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,Ot(s)))if("after"!==a||Math.max.apply(Math,Ot(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,Ot(s));u<=i;u++)c(u)}else l>1&&(e=Math.max.apply(Math,Ot(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)}))})),Ot(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,Ot(s)))if("after"!==a||Math.max.apply(Math,Ot(s))!==e-1&&!this.allEqual(r)){o(e);for(var c=Math.min.apply(Math,Ot(s));c<l;c++){var u=this.tableData.data[c];Object.entries(u.rows).forEach((function(e){var 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,Ot(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=Ot(new Set(t)).sort(),s=Ot(new Set(e)).sort(),r=this.findElement(l),c=this.findElement(s);if(r&&c){if(2===t.length&&2===e.length){var u=this.merge.rowColumn.map((function(t){return Number(t.rowIndex)})),d=this.merge.rowColumn.map((function(t){return Number(t.columnIndex)}));return u[0]===u[1]||d[0]===d[1]}return!0}return!1}return!1}return!1},findElement:function(t){for(var e=1;e<t.length;e++)if(t[e]-t[e-1]>1)return!1;return!0},mergeCell:function(){var t=this,e=Math.min.apply(Math,Ot(this.merge.rowColumn.map((function(t){return t.cellIndex})))),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"},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){var l=this.setting.general.options.cell_padding.value,s=(n?1:0)+i,r=this.setting.background.options,c="";c="mobile"===o?.8*this.responsiveInitial.mobileActivePixel:"tablet"===o?.8*this.responsiveInitial.tabletActivePixel:300;var u=1==this.tableData.table.tr&&n?c+"px":c/s+"px",d="";return d=""!==t.backgroundColor?t.backgroundColor:0===a?""===e.backgroundColor?r.header_background.value:e.backgroundColor:a%2==0?""===e.backgroundColor?r.even_row_background.value:e.backgroundColor:a%1==0?""===e.backgroundColor?r.odd_row_background.value:e.backgroundColor:"",{padding:l+"px",height:""!==e.rowHeight?e.rowHeight+"px":"","max-width":u,"min-width":u,"background-color":d,"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,Ot(n.map((function(t){return t.columnIndex}))));Ot(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,Ot(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=Ot(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}},computed:{tableMarginTop:function(){return{"margin-top":this.setting.global_styling.options.margin_top.value+"px"}},tableAlign:function(){var t={},e=this.setting.general.options.table_alignment.value;return"center"===e?t={"margin-left":"auto","margin-right":"auto"}:"left"===e?t={"margin-right":"auto"}:"right"===e&&(t={"margin-left":"auto"}),t},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}}},zt={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 Bt={name:"Layout",mixins:[Ft,zt],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:[]},headerInfo:null,responsiveTableData:null,responsiveInitial:{showHeader:!1,itemsPerRow:1,tableData:{},mobileActivePixel:350,tabletActivePixel:750},maxWidth:""}},components:{draggable:xt(),Elements:Tt,TableData:Nt},methods:{iconSpacing:function(t){return"ribbon"===t.data.type?{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+"px","margin-left":("corner"===t.data.style.ribbonType?Number(t.data.style.cornerXAxis-this.setting.general.options.cell_padding.value+10):t.data.style.xAxis-Number(this.setting.general.options.cell_padding.value-10))+"px"}:{"margin-top":t.data.style.yAxis-Number(this.setting.general.options.cell_padding.value-10)+Number(t.data.style.margin.top)+"px","margin-left":"".concat(t.data.style.margin.left,"px"),"margin-right":"".concat(t.data.style.margin.right,"px"),width:"auto"}},stickyColumn:function(){return{position:"sticky",left:0,zIndex:1}},onMove:function(t){t&&t.to.id&&window.ninjaTableBus.$emit("singleTdId",t.to.id)},thInlineStyle:function(t){return{padding:"0px ".concat(this.setting.general.options.cell_padding.value,"px"),width:"".concat(this.tableHeadWidth(t),"px"),display:"".concat(this.displayHeader(t))}},selectedTdBackground:function(){return{border:"1px solid #3f9eff"}},processResponsiveData: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.responsiveTableData=a},responsiveDataFormat:function(t,e){if("mobile"!==this.selectedDevice&&"tablet"!==this.selectedDevice)return{};this.processResponsiveData();var a=Object.keys(this.headerInfo).length,n=Object.keys(this.responsiveTableData).length,i={},o=0;if(t){var l=Math.ceil((n-a)/(e*a));if(0===l)for(var s=0;s<a;s++){var r={};this.responsiveTableData["data_"+s]&&(r["data_"+s]=this.responsiveTableData["data_"+s]),i["record_"+o]=r,o++}for(var c=0;c<l;c++)for(var u=0;u<a;u++){for(var d={},p=0;p<=e;p++)if(0==p)d["data_"+p]=this.responsiveTableData["data_"+u];else{var m=c*e*a+p*a+u;this.responsiveTableData["data_"+m]&&(d["data_"+p]=this.responsiveTableData["data_"+m])}i["record_"+o]=d,o++}}else{for(var _={},h=0,f=0;f<n;f++)0!==this.responsiveTableData["data_"+f].style.rowspan&&0!==this.responsiveTableData["data_"+f].style.colspan&&(_["data_"+h]=this.responsiveTableData["data_"+f],h++);for(var v=Object.keys(_).length,b=0;b<v;){for(var g={},y=0;y<e;y++)_["data_"+b]&&(g["data_"+y]=_["data_"+b],b++);i["record_"+o]=g,o++}}return i},bottomBorderResponsive:function(t,e){var a=Number(t.slice(7))+1,n=this.deepClone(this.tableData.headers).length,i=Object.keys(this.responsiveInitial.tableData).length;if(a%n==0&&a!=i)return{borderBottom:("tablet"===this.selectedDevice?e.tablet.cell_border.value:e.mobile.cell_border.value)+"px solid black"}},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"}},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}},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)},showInnerBorder:function(){return this.setting.border.options.inner_border.value},responsiveDevice:function(){return this.initialData.responsive.mode_options.options.devices},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.tableData=this.responsiveDataFormat(this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow)},responsive:{handler:function(t,e){"mobile"===this.selectedDevice?(this.responsiveInitial.showHeader=Boolean(t.mode_options.options.devices.mobile.top_row_as_header.value),this.responsiveInitial.itemsPerRow=t.mode_options.options.devices.mobile.items_per_row.value):"tablet"===this.selectedDevice&&(this.responsiveInitial.showHeader=Boolean(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.tableData=this.responsiveDataFormat(this.responsiveInitial.showHeader,this.responsiveInitial.itemsPerRow)},deep:!0}}},Lt=Bt;var Rt=a(4343),Ht={insert:"head",singleton:!1};o()(Rt.Z,Ht);Rt.Z.locals;var Wt=r(Lt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja-tables-layout"},[""===t.selectedDevice?a("div",{staticClass:"table-customize-button"},["background"===t.activeTab?a("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[a("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(" "),a("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):a("el-button-group",{staticClass:"button-group",staticStyle:{"margin-top":"0"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-folder-checked",size:"small",disabled:t.tdIds.length<2||!t.merge.visible},on:{click:function(e){return t.mergeCell()}}},[t._v(t._s(t.$t("Merge"))+"\n ")]),t._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-scissors",size:"small",disabled:!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)?a("div",{staticClass:"ntb_table_wrapper",style:[t.tableWrapperStyle,t.tableAlign,t.tableWrapperActivePadding],attrs:{id:"ninja_tables_builder_id"}},[t.responsiveIsEnabled&&t.showPixelSlider.preview?a("div",{staticClass:"pixel-bar-slider"},[a("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(" "),a("table",{class:"table ninja_tables_builder_class_"+t.tableData.id,style:[t.tableMarginTop,t.tableInlineStyle,t.tableAlign],attrs:{id:"ntb_table",role:""+t.setting.accessibility.options.table_role.value}},[t.manage?a("div",{staticClass:"table-header",style:t.tableBorder},[a("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(e,n){return a("th",{key:e,class:t.thActiveInactiveClass(e),style:[t.tdThActiveMargin,t.thInlineStyle(e)],attrs:{scope:"col",colspan:t.headerColSpan(e)}},[t.headerName(t.table.columnIndex)!==e||1!==t.tdIds.length||t.merge.visible&&!t.split.visible?t._e():[a("el-dropdown",{staticClass:"column-options",attrs:{trigger:"click",placement:"top-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-bottom el-icon--right",class:n===t.table.columnIndex?"i-active":""})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.insertColumnBefore()}}},[t._v(t._s(t.$t("Insert column before"))+"\n ")]),t._v(" "),a("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(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addLeftColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert left column")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addRightColumn.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert right column")))]),t._v(" "),a("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(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.removeColumn.apply(null,arguments)}}},[a("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?a("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(e,n){return a("tr",{key:n,staticClass:"desktop-view",class:(t.table.rowIndex===n&&t.tdIds.length<=0?"single-row-column":"tr_class_"+e.style.trId)+" "+(t.firstRowSticky&0==n?"firstRowSticky":""),style:[t.trInlineStyle(e,n)],attrs:{id:t.trId(e.style.trId)}},[t.manage&&1===t.tdIds.length&&!t.mergedTdIndexes().includes(n)?a("td",{class:t.tdActiveInactiveClass(e.style.trId),attrs:{rowspan:t.tdActiveRowSpan(e.style.trId)}},[a("el-dropdown",{staticClass:"row-options",attrs:{trigger:"click",placement:"top-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-caret-right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowBefore()}}},[t._v(t._s(t.$t("Insert row before")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.insertRowAfter.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert row after")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addTopRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert top row")))]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.addBottomRow.apply(null,arguments)}}},[t._v(t._s(t.$t("Insert bottom row")))]),t._v(" "),a("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(" "),a("el-dropdown-item",{nativeOn:{click:function(e){return t.removeRow.apply(null,arguments)}}},[a("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 a("td",{key:i,class:t.tdClass(e,i,o),style:[t.tdInlineStyle(e,i),t.showInnerBorder?t.innerBorder(n):"",t.firstColumnSticky&&0===o?t.stickyColumn():""],attrs:{id:"td_id_"+t.tdId(e,i),rowspan:e.rows[i].style.rowspan,colspan:e.rows[i].style.colspan},on:{click:[function(a){if(!a.shiftKey)return null;t.manage&&t.selectItem(n,i,o,e.rows[i],e,!0)},function(a){if(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey)return null;t.manage&&t.selectItem(n,i,o,e.rows[i],e,!1)}]}},[a("draggable",{attrs:{list:e.rows[i].columns,group:"people",id:t.tdIds.includes(t.tdId(e,i))?"selected-item":"td_id_"+t.tdId(e,i),move:t.onMove}},t._l(e.rows[i].columns,(function(l,s){return a("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?a("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(a){if(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey)return null;!t.manage&&""===t.selectedDevice&&t.styleChange(l,n,o,e.rows[i],e)}}}):t._e(),t._v(" "),t.manage||""!==t.selectedDevice?t._e():[a("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(" "),a("div",{staticClass:"icon-style remove-elements",style:t.iconSpacing(l)},[a("i",{staticClass:"el-icon-rank"}),t._v(" "),a("i",{staticClass:"el-icon-copy-document",on:{click:function(e){return t.copyItem(n,i,l)}}}),t._v(" "),a("i",{staticClass:"el-icon-delete",on:{click:function(e){return t.deleteItem(n,i,s)}}})])]],2)})),0)],1)}))],2)})),0):a("tbody",t._l(t.responsiveInitial.tableData,(function(e,n){return a("tr",{key:n,class:"mobile"===t.selectedDevice?"mobile-view tr_mobile_"+n:"tablet-view tr_tablet_"+n,style:[t.responsiveInitial.showHeader?t.bottomBorderResponsive(n,t.responsive.mode_options.options.devices):""]},t._l(e,(function(n){return n.style.rowspan>0&&n.style.colspan>0?a("td",{style:[t.tdInlineStyleResponsive(n.style,n.rowStyle,n.rowIndex,t.responsiveInitial.showHeader,t.responsiveInitial.itemsPerRow,t.selectedDevice),t.innerBorder(n.rowIndex)],attrs:{id:"td_id_"+n.style.tdId,colspan:t.responsiveInitial.showHeader?n.style.rowspan:1,rowspan:t.responsiveInitial.showHeader?n.style.colspan:1}},t._l(n.columns,(function(n,i){return a("span",{key:i},[e.id!=t.itemId?a("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 qt=Wt.exports,Vt={name:"RightSideBar",props:["initialData","tableId","selectedDevice"],mixins:[zt],components:{draggable:xt(),TableLayout:qt},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 Ut=a(7148),Yt={insert:"head",singleton:!1};o()(Ut.Z,Yt);Ut.Z.locals;const Zt=r(Vt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.tableId?t.tableId?a("el-row",[a("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():a("div",{staticStyle:{height:"500px","overflow-y":"scroll",padding:"0px 20px","box-sizing":"border-box"},attrs:{gutter:20}},[[a("h3",[t._v(t._s(t.$t("Create a Drag & Drop Table")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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():a("el-row",{staticClass:"new-table-wrapper"},[a("el-col",{attrs:{span:12}},[[a("div",{staticClass:"new_table",style:"grid-template-rows:repeat("+t.initialData.table_data.table.tr+",1fr);grid-template-columns:repeat("+t.initialData.table_data.table.tc+",1fr)"},[a("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(" "),a("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 a("span",{key:t,staticClass:"table-row-column"})}))],2),t._v(" "),a("div",{staticClass:"create-button"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.createTable("default")}}},[t._v("Create\n ")])],1)]],2),t._v(" "),a("el-col",{attrs:{span:12}},[a("h4",[t._v(t._s(t.$t("Import Table from CSV / JSON File")))]),t._v(" "),a("hr"),t._v(" "),t.file.name?t._e():a("div",[a("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(" "),a("hr")],1),t._v(" "),t.url?t._e():a("el-upload",{attrs:{accept:".csv, .json",drag:"",action:"#",limit:1,"before-upload":t.beforeFileUpload,"on-success":t.handleFileSuccess,"on-remove":t.handleRemove}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v(t._s(t.$t("Drop file here or "))),a("em",[t._v(t._s(t.$t("click to upload")))])])]),t._v(" "),t.file.name||t.url?a("div",{staticClass:"import-button"},[a("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():a("el-row",{staticClass:"new-table-wrapper"},t._l(t.initialData.ready_made_tables,(function(e,n){return a("el-col",{key:n,attrs:{span:24}},[a("div",{staticClass:"table-type-heading"},[a("h2",{staticClass:"ready-made-name"},[t._v(t._s(e.name))])]),t._v(" "),a("el-row",t._l(e.tables,(function(e,n){return a("el-col",{key:n,attrs:{span:8}},[a("div",{staticClass:"ready-made-table-image"},[a("img",{staticStyle:{margin:"0 auto",width:"180px",display:"flex"},attrs:{src:t.getAsset(e.key+".jpg"),alt:""}}),t._v(" "),a("div",{staticClass:"ready-made-table-hover-button"},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return t.createTable(e.key,e)}}},[a("span",[t._v(t._s(!t.hasPro&&e.has_pro?"Unlock in Pro":"Create"))])])],1)]),t._v(" "),a("h4",{staticClass:"table-title-style"},[t._v(t._s(e.name))])])})),1)],1)})),1)],2)],1)}),[],!1,null,null,null).exports,Jt={name:"add_table",components:{RightSideBar:Zt,wp_editor:k,"wp-posts-data-source":J,"woo-data-source":K,"fluent-form-data-source":nt,"external-data-source":st,ImportTable:dt,RawSqlForm:yt,PremiumNotice:q},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 Qt=a(2235),Xt={insert:"head",singleton:!1};o()(Qt.Z,Xt);Qt.Z.locals;const Gt=r(Jt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-container",{staticClass:"ninja-add-table"},[t.table.ID?t._e():a("el-aside",{staticStyle:{"background-color":"rgb(35, 40, 45)"}},[a("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.activeTabName,"background-color":"#23282d","text-color":"#eee","active-text-color":"#fff"}},[a("el-menu-item",{attrs:{index:"default"},on:{click:function(e){t.activeTabName="default"}}},[a("i",{staticClass:"el-icon-setting"}),t._v(" "),a("span",[t._v("Default")])]),t._v(" "),a("el-menu-item",{attrs:{index:"drag_and_drop"},on:{click:function(e){t.activeTabName="drag_and_drop"}}},[a("i",{staticClass:"el-icon-s-unfold"}),t._v(" "),a("span",[t._v("Drag & Drop Table")]),t._v(" "),a("el-tag",{attrs:{color:"#185b9e",effect:"dark"}},[t._v("\n Beta\n ")])],1),t._v(" "),a("el-menu-item",{attrs:{index:"import_table"},on:{click:function(e){t.activeTabName="import_table"}}},[a("i",{staticClass:"el-icon-upload2"}),t._v(" "),a("span",[t._v("Import Table")])]),t._v(" "),a("el-menu-item",{attrs:{index:"fluent_form"},on:{click:function(e){t.activeTabName="fluent_form"}}},[a("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.fluentFormIcon,alt:"fluent form icon"}}),t._v(" "),a("span",[t._v("Connect Fluent Forms")])]),t._v(" "),a("el-menu-item",{attrs:{index:"wp_posts"},on:{click:function(e){t.activeTabName="wp_posts"}}},[a("i",{staticClass:"el-icon-news"}),t._v(" "),a("span",[t._v("WP Posts")])]),t._v(" "),t.has_woo?a("el-menu-item",{attrs:{index:"woo_table"},on:{click:function(e){t.activeTabName="woo_table"}}},[a("img",{staticClass:"el-icon-fluent-form",attrs:{src:t.wooIcon,alt:"woocomerce icon"}}),t._v(" "),a("span",[t._v("WooCommerce Table")])]):t._e(),t._v(" "),a("el-menu-item",{attrs:{index:"google_spread_sheet"},on:{click:function(e){t.activeTabName="google_spread_sheet"}}},[a("span",{staticClass:"dashicons dashicons-media-spreadsheet"}),t._v(" "),a("span",[t._v("Connect Google Sheets")])]),t._v(" "),a("el-menu-item",{attrs:{index:"csv"},on:{click:function(e){t.activeTabName="csv"}}},[a("i",{staticClass:"el-icon-document"}),t._v(" "),a("span",[t._v("Connect External CSV")])]),t._v(" "),a("el-menu-item",{attrs:{index:"raw_sql"},on:{click:function(e){t.activeTabName="raw_sql"}}},[a("i",{staticClass:"dashicons dashicons-editor-code"}),t._v(" "),a("span",[t._v("Custom SQL Query")])])],1)],1),t._v(" "),a("el-main",["default"==t.activeTabName?[a("div",{staticClass:"ninja_modal-body"},[t.table.ID?t._e():[a("h3",[t._v("Manually Create a Table")]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),a("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(" "),a("div",{staticClass:"modal-footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.addTable}},[t.table.ID?a("span",[t._v(t._s(t.$t("Update")))]):a("span",[t._v(t._s(t.$t("Add")))]),t._v(" "),t.btnLoading?a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"}):t._e()])],1)]:"drag_and_drop"===t.activeTabName?[a("right-side-bar",{attrs:{initialData:t.initialData}})]:"import_table"===t.activeTabName?[a("import-table")]:"google_spread_sheet"==t.activeTabName?[a("external-data-source",{attrs:{type:"google-csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"csv"==t.activeTabName?[a("external-data-source",{attrs:{type:"csv",tableCreated:t.fireTableCreated,"has-pro":t.hasPro,activated_features:t.activated_features}})]:"fluent_form"==t.activeTabName?[a("fluent-form-data-source",{attrs:{tableCreated:t.fireTableCreated}})]:"wp_posts"==t.activeTabName?[a("wp-posts-data-source",{attrs:{tableCreated:t.fireTableCreated,activated_features:t.activated_features}})]:"woo_table"==t.activeTabName?[t.activated_features.woocommerce_table?a("woo-data-source",{attrs:{tableCreated:t.fireTableCreated}}):t.has_woo&&t.hasPro?a("div",[a("p",[t._v("Please update to latest version of "),a("b",[t._v("Ninja Tables Pro")]),t._v(" to use WooCommerce integration")])]):t.has_woo&&!t.hasPro?a("div",{staticClass:"ninja_no_woo"},[a("h3",[t._v("Upgrade to pro for using WooCommerce Integration")]),t._v(" "),a("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?[a("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 Kt={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 te=a(1178),ee={insert:"head",singleton:!1};o()(te.Z,ee);te.Z.locals;const ae=r(Kt,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.leadVisible?a("el-dialog",{attrs:{visible:t.leadVisible,title:"We made a few tweaks to Ninja Tables"},on:{"update:visible":function(e){t.leadVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_permission_wrapper"},[a("p",[t._v("Hey "+t._s(t.display_name)+","),a("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(" "),a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.optin("yes")}}},[t._v("Opt-in and Continue")]),t._v(" "),a("el-button",{staticClass:"pull-right",attrs:{size:"mini"},on:{click:function(e){return t.optin("no")}}},[t._v("Skip")]),t._v(" "),a("div",{staticClass:"ninja_permissions"},[a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showPermission=!t.showPermission}}},[t._v("What permissions are being granted?")]),t._v(" "),a("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 ne={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 ie=a(8578),oe={insert:"head",singleton:!1};o()(ie.Z,oe);ie.Z.locals;const le={name:"all_tables",components:{Welcome:m,"list-all-tables":g,"add-table-modal":Gt,"lead-modal":ae,NinjaReviewDialog:r(ne,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"review_dialog"},[a("span",{staticClass:"consentDismiss",on:{click:function(e){return t.recordActivity("dismiss")}}},[t._v("x")]),t._v(" "),a("div",{staticClass:"consent_body"},[a("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(" "),a("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(" "),a("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 se=a(5630),re={insert:"head",singleton:!1};o()(se.Z,re);se.Z.locals;const ce=r(le,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.published_tables?[a("div",{staticClass:"row clearfix"},[a("h1",{staticClass:"wp-heading-inline"},[t._v("\n "+t._s(t.$t("All Tables"))+"\n ")]),t._v(" "),t.review_option?a("ninja-review-dialog",{on:{hideNotification:function(e){t.review_option=!1}}}):t._e(),t._v(" "),a("div",{staticClass:"pull-right",staticStyle:{"margin-top":"7px"}},[a("label",{staticClass:"form_group search_action",attrs:{for:"search"}},[a("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(" "),a("i",{staticClass:"el-icon-search",on:{click:t.getData}})]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){t.modalVisible=!t.modalVisible}}},[t._v("\n "+t._s(t.$t("Add Table"))+"\n ")]),t._v(" "),a("router-link",{attrs:{to:{name:"import_tables"}}},[a("el-button",{attrs:{size:"small",type:"success"}},[t._v("\n "+t._s(t.$t("Import Table"))+"\n ")])],1)],1)],1),t._v(" "),a("hr"),t._v(" "),a("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}})]:a("welcome",{on:{create:function(e){t.modalVisible=!t.modalVisible}}}),t._v(" "),a("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}}},[a("add-table-modal",{attrs:{hasPro:t.hasPro},on:{table_inserted:t.addTableAction,modal_close:function(e){t.modalVisible=!1}}})],1),t._v(" "),a("lead-modal")],2)}),[],!1,null,null,null).exports;const ue=r({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.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"margin-top":"15px"}},[a("el-container",[a("el-aside",{attrs:{width:"200px"}},[a("el-menu",{attrs:{"background-color":"#545c64","default-active":t.active_menu,"text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},t._l(t.menuItems,(function(e){return e.status?a("el-menu-item",{key:e.route,attrs:{index:e.route,route:{name:e.route}}},[a("i",{class:e.icon_class}),t._v(" "),a("span",[t._v(t._s(e.title))])]):t._e()})),1)],1),t._v(" "),a("el-main",[a("router-view")],1)],1)],1)}),[],!1,null,null,null).exports;const de={name:"Tools",data:function(){return{has_pro:window.ninja_table_admin.hasPro,active_menu:"import",activeNames:["1","2"],imports:{source:"file",sourceOptions:["file"],formatOptions:{csv:this.$t("CSV - Comma-separated values"),json:this.$t("JSON - Javascript Object Notation"),ninjaJson:this.$t("JSON - Exported From Ninja Tables")},format:"csv"},do_unicode:"no",btnLoading:!1,otherPlugins:{TablePress:"Table Press",UltimateTables:"Ultimate Tables",supsystic:"Data Tables Generator by Supsystic"},btnsLoading:{TablePress:!1,UltimateTables:!1},showPluginModal:!1,selectedPlugin:null,otherPluginTables:[],importing:!1}},methods:{clear:function(){jQuery("#fileUpload").val("")},importTable:function(){var t=this;if(this.btnLoading=!0,"file"!=!this.imports.source){var e=jQuery("#fileUpload")[0].files[0];if(e){var 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"}))}},pe=de;var me=a(640),_e={insert:"head",singleton:!1};o()(me.Z,_e);me.Z.locals;const he=r(pe,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ninja_header"},[a("h2",[t._v(t._s(t.$t("Import Table")))])]),t._v(" "),a("div",{staticClass:"ninja_content"},[a("div",{staticClass:"ninja_block"},[a("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(" "),a("hr"),t._v(" "),a("div",{staticClass:"ninja_block_section"},[a("h3",[t._v("Import Table from CSV / JSON File")]),t._v(" "),a("p",[t._v("\n Browse and locate a CSV/JSON file you backed up before.\n ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"form"},[a("div",{staticClass:"form-item"},["file"==t.imports.source?[a("label",[t._v(t._s(t.$t("Select file:")))]),t._v(" "),a("input",{attrs:{type:"file",id:"fileUpload"},on:{click:t.clear}})]:"url"==t.imports.source?[t._v("\n File upload url\n ")]:[a("label",[t._v(t._s(t.$t("Import data:")))]),t._v(" "),a("textarea",{attrs:{rows:"10"}})]],2),t._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:"import_format"}},[t._v(t._s(t.$t("Import Format:")))]),t._v(" "),a("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(e,n){return a("option",{domProps:{value:n}},[t._v(t._s(t.$t(e))+"\n ")])})),0),t._v(" "),"csv"==t.imports.format?[t._m(1),t._v(" "),a("div",{staticClass:"form-item"},[a("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(" "),a("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 "),a("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(" "),a("div",{staticClass:"form-item"},[a("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(" "),a("hr"),t._v(" "),a("div",{staticClass:"ninja_block_section"},[a("h3",[t._v("Import From Other WP Table Plugin")]),t._v(" "),t._m(2),t._v(" "),a("table",{staticStyle:{"min-width":"400px"}},[a("tbody",t._l(t.otherPlugins,(function(e,n){return a("tr",[a("td",[t._v(t._s(e))]),t._v(" "),a("td",[a("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 "),a("i",{staticClass:"fooicon fooicon-spin fooicon-circle-o-notch"})]:[t._v("\n "+t._s(t.$t("Import"))+"\n ")]],2)])])})),0)])])]),t._v(" "),a("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?[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.otherPluginTables}},[a("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_already_imported?a("span",[t._v("( Already Imported )")]):t._e(),t._v(" "+t._s(e.row.post_title)+"\n ")]}}],null,!1,2469912787)}),t._v(" "),a("el-table-column",{attrs:{label:"Action",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.importThisTable(e.row,e.$index)}}},[t._v(t._s(t.$t("Import"))+"\n ")]),t._v(" "),e.row.ninja_table_id?a("router-link",{staticClass:"el-button el-button--danger el-button--mini ninja_btn",attrs:{to:{name:"data_items",params:{table_id:e.row.ninja_table_id}}}},[t._v(t._s(t.$t("View Imported Table"))+"\n ")]):t._e()]}}],null,!1,3480308331)})],1),t._v(" "),t.importing?[a("br"),a("br"),t._v(" "),a("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()]:a("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.$createElement,a=t._self._c||e;return a("p",[t._v("\n Select the intended format and click "),a("strong",[t._v("Import")]),t._v(" button, we will do\n the rest for you.\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"help"},[t._v("\n Check tutorial for importing data from CSV file "),a("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.$createElement,a=t._self._c||e;return a("p",[t._v("\n To import from other WordPress plugins click the respective "),a("strong",[t._v("Import")]),t._v("\n button.\n ")])}],!1,null,"0ccd418e",null).exports;const fe={name:"Privacy",data:function(){return{hasPro:!1,fetching:!1,roles:[],checkAll:!1,sql_permission:"no",capability:["administrator"],isIndeterminate:!1,upgrade:"https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade"}},methods:{get:function(){var t=this;this.fetching=!0,this.$get({action:"ninja_tables_ajax_actions",target_action:"get_access_roles"}).then((function(e){t.capability=e.capability,t.roles=e.roles,t.sql_permission=e.sql_permission,t.handleCheckedCapabilitiesChange(t.capability)})).fail((function(t){})).always((function(){t.fetching=!1}))},store:function(){var t=this,e={action:"ninja_tables_set_permission",capability:this.capability,sql_permission:this.sql_permission};this.$post(e).then((function(e){t.$message({showClose:!0,message:e.message,type:"success"})})).fail((function(e){t.$message({showClose:!0,message:e.responseJSON.data.message,type:"error"})}))},handleCheckAllChange:function(t){this.capability=t?this.roles.map((function(t){return t.key})):[],this.isIndeterminate=!1},handleCheckedCapabilitiesChange:function(t){var e=t.length;this.checkAll=e===this.roles.length,this.isIndeterminate=e>0&&e<this.roles.length}},mounted:function(){this.hasPro="1"===window.ninja_table_admin.hasPro,this.get()}};var ve=a(4077),be={insert:"head",singleton:!1};o()(ve.Z,be);ve.Z.locals;const ge=r(fe,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"privacy"},[a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Permission "),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.hasPro,expression:"!hasPro"}]},[t._v("(Pro Feature)")])])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(0),t._v(" "),a("hr"),t._v(" "),t.hasPro?[a("div",{staticClass:"form-group"},[a("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(" "),a("div",{staticClass:"form-group"},[a("el-checkbox-group",{on:{change:t.handleCheckedCapabilitiesChange},model:{value:t.capability,callback:function(e){t.capability=e},expression:"capability"}},t._l(t.roles,(function(e){return a("el-checkbox",{key:e.key,attrs:{label:e.key}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),t._v(" "),t.capability&&t.capability.length?a("div",{staticClass:"form-group"},[a("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(" "),a("div",{staticClass:"form-group"},[a("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 "),a("p",[a("a",{attrs:{target:"_blank",href:t.upgrade}},[t._v("Buy Ninja Tables Pro Add-On")])])]],2)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_block"},[a("p",[t._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 ye=a(5325),we=a.n(ye),xe=a(4486),ke=a.n(xe);const Ce=r({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=[];ke()(this.availableStyles,(function(t){e.push(t.key)})),this.default_settings.css_classes=we()(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.$createElement,a=t._self._c||e;return a("div",{staticClass:"privacy"},[t._m(0),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fetching,expression:"fetching"}],staticClass:"ninja_content"},[t._m(1),t._v(" "),a("hr"),t._v(" "),[a("div",{staticClass:"ninja_block"},[a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Styling Library")]),t._v(" "),a("el-radio-group",{attrs:{size:"mini"},model:{value:t.default_settings.css_lib,callback:function(e){t.$set(t.default_settings,"css_lib",e)},expression:"default_settings.css_lib"}},t._l(t.table_styles,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:n}},[t._v("\n "+t._s(e.title)+"\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)})),1)],1),t._v(" "),a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Table Styles")]),t._v(" "),t._l(t.availableStyles,(function(e){return a("label",{key:e.key,attrs:{for:"table_style_"+e.key}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.default_settings.css_classes,expression:"default_settings.css_classes"}],attrs:{type:"checkbox",name:"table_styles",id:"table_style_"+e.key},domProps:{value:e.key,checked:Array.isArray(t.default_settings.css_classes)?t._i(t.default_settings.css_classes,e.key)>-1:t.default_settings.css_classes},on:{change:function(a){var n=t.default_settings.css_classes,i=a.target,o=!!i.checked;if(Array.isArray(n)){var l=e.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(e.title)+"\n "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:e.description}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1)}))],2),t._v(" "),a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Features")]),t._v(" "),a("label",{attrs:{for:"show_title"}},[a("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 "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table title in frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",{attrs:{for:"show_description"}},[a("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 "),a("el-tooltip",{attrs:{placement:"top-end",effect:"light",content:"Enable this if you want to show table description in frontend"}},[a("i",{staticClass:"el-icon-info el-text-info"})])],1),t._v(" "),a("label",{attrs:{for:"enable_search"}},[a("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(" "),a("label",{attrs:{for:"column_sorting"}},[a("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(" "),a("label",[a("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(" "),a("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[a("h3",[t._v("Default Table Color")]),t._v(" "),a("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(e,n){return a("option",{key:n,domProps:{value:n}},[t._v("\n "+t._s(e)+"\n ")])})),0)]),t._v(" "),a("div",{staticClass:"form_group"},[a("h3",[t._v("Default Pagination Setting")]),t._v(" "),a("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(" "),a("div",{staticClass:"form_group",staticStyle:{"max-width":"400px"}},[a("label",{attrs:{for:"items_per_page"}},[t._v(t._s(t.$t("Pagination Items Per Page")))]),t._v(" "),a("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(" "),a("div",{staticClass:"font-setting"},[a("h3",[t._v("Default Font Setting")]),t._v(" "),a("div",{staticClass:"font form_group "},[a("label",[t._v(t._s(t.$t("Font Family")))]),t._v(" "),a("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,e){return a("option",{key:e,attrs:{label:"inherit"===t?"theme-font":t},domProps:{value:t}})})),0)]),t._v(" "),a("div",{staticClass:"font form_group",staticStyle:{"max-width":"400px"}},[a("label",[t._v(t._s(t.$t("Font Size")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group",staticStyle:{"margin-top":"30px"}},[a("el-button",{attrs:{loading:t.saving,type:"success",size:"small"},on:{click:t.store}},[t._v("Update")])],1)]],2)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Global Appearance Settings")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_block"},[a("p",[t._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 Se={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 je=a(5085),$e={insert:"head",singleton:!1};o()(je.Z,$e);je.Z.locals;const Te=r(Se,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"license"},[a("div",{staticClass:"ninja_header"},["valid"==t.is_valid?a("div",[a("h2",[t._v(t._s(t.$t("Your License is Active")))])]):"expired"==t.is_valid?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}]},[a("h2",[t._v(t._s(t.$t("Licensing has been expired")))])]):a("div",[a("h2",[t._v(t._s(t.$t("Licensing")))]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"ninja_content"},["valid"==t.is_valid?a("div",{staticClass:"license_success"},[a("h3",[t._v(t._s(t.$t("Your license is active! Enjoy Ninja Tables Pro Add On")))]),t._v(" "),a("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?a("p",{domProps:{innerHTML:t._s(t.renewHtml)}}):t._e()],1):"expired"==t.is_valid?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.checkingLicense,expression:"checkingLicense"}],staticClass:"license_form"},[a("div",{staticClass:"checking_license license_renew_box",staticStyle:{"text-align":"center"},domProps:{innerHTML:t._s(t.renewLicenseHtml)}}),t._v(" "),a("p",[t._v("If you already renewed your license then please "),a("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.get_license_info()}}},[t._v("click here to check again")])]),t._v(" "),a("p",[t._v("Have a new license key? Please "),a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.enter_new_license=!0}}},[t._v("click here")])]),t._v(" "),t.enter_new_license?a("div",{staticClass:"license_form"},[a("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),a("div",{staticClass:"form_input"},[a("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(" "),a("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(" "),a("div",{staticClass:"nt_messages"},[t.error_message?a("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1):t._e()]):a("div",{staticClass:"license_form"},[a("label",{attrs:{for:"license_form_input"}},[t._v("\n "+t._s(t.$t("Enter your license key"))+"\n ")]),t._v(" "),a("div",{staticClass:"form_input"},[a("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(" "),a("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(" "),a("div",{staticClass:"nt_messages"},[t.error_message?a("p",{staticClass:"error_message",domProps:{innerHTML:t._s(t.error_message)}}):t._e()])],1)])])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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 "),a("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. "),a("br"),t._v("Any questions or problems with your license? "),a("a",{attrs:{href:"https://wpmanageninja.com/contact/",target:"_blank"}},[t._v("Contact us!")])])}],!1,null,null,null).exports;const Ee=r({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.$createElement,a=t._self._c||e;return a("div",{staticClass:"privacy"},[t._m(0),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ninja_content"},[a("div",{staticClass:"ninja_block"},[a("h3",[t._v("Global Javascript Error Handling")]),t._v(" "),a("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"}},[a("el-radio",{attrs:{label:"log_silently"}},[t._v("Console Log JS Errors Silently")]),t._v(" "),a("el-radio",{attrs:{label:"yes"}},[t._v("Handle Error But don't Log")]),t._v(" "),a("el-radio",{attrs:{label:"no"}},[t._v("Don't Handle Global Javascript Errors (Default)")])],1)],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"success"},on:{click:function(e){return t.storeSettings()}}},[t._v("Update Global Settings")])],1),t._v(" "),a("div",{staticClass:"ninja_block ninja_heightlight_block"},[a("h3",[t._v("Clear Table Cache")]),t._v(" "),a("p",[t._v("If you want to clear all the Ninja table cache, please click on the following button")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(e){return t.clearCache()}}},[t._v("Clear Table Cache")])],1)])}),[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_header"},[a("h2",[t._v("Global Settings")])])}],!1,null,null,null).exports;const Ie={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 De=a(6770),Pe={insert:"head",singleton:!1};o()(De.Z,Pe);De.Z.locals;const Ae=r(Ie,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_intro_welcome"},[a("div",{staticClass:"ninja_charts_promo_banner"},[a("img",{attrs:{src:t.imageUrl("ninja-charts-promo.png"),alt:"Ninja Charts"}})]),t._v(" "),a("h2",[t._v("Welcome to Ninja Charts")]),t._v(" "),a("p",[t._v("Best WP Charts Plugin for WordPress")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"ninja_actions"},[a("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.$createElement,e=this._self._c||t;return e("div",{staticClass:"ninja_charts_promo"},[e("iframe",{attrs:{width:"600",height:"315",src:"https://www.youtube.com/embed/vIHR3_vNOFM",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})])}],!1,null,"6779a907",null).exports;const Ne=r({name:"add_table",components:{wp_editor:k},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.$createElement,a=t._self._c||e;return a("div",{staticClass:"ninja_table_edit"},[a("div",{staticClass:"ninja_modal-body"},[a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Title")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Caption")))]),t._v(" "),a("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(" "),a("div",{staticClass:"form-group"},[a("label",[t._v(t._s(t.$t("Table Description")))]),t._v(" "),a("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(" "),a("div",{staticClass:"modal-footer"},[a("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 Oe=a(4238),Me=a.n(Oe),Fe=a(2628),ze=a.n(Fe);function Be(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 Le(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const Re={name:"table_home",components:{edit_table:Ne},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=ze()(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:Me(),each:X(),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?Be(Object(a),!0).forEach((function(e){Le(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Be(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")}},He=Re;var We=a(542),qe={insert:"head",singleton:!1};o()(We.Z,qe);We.Z.locals;const Ve=r(He,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.doingAjax?a("span",{directives:[{name:"loading",rawName:"v-loading",value:t.doingAjax,expression:"doingAjax"}],staticClass:"doingAJaxLoading"}):t._e(),t._v(" "),a("div",{staticClass:"settings_header"},[a("div",{staticStyle:{display:"inline-block","margin-top":"8px"}},[a("el-button",{staticClass:"ninja_mini",attrs:{size:"mini"},on:{click:function(e){t.editTableModalShow=!t.editTableModalShow}}},[a("i",{staticClass:"el-icon-edit action",attrs:{title:"Edit"}},[t._v(t._s(t.$t("Edit")))])]),t._v(" "),a("span",{staticClass:"section_title"},[t._v(t._s(t.table.post_title))]),t._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"}},[a("code",{staticClass:"copy",attrs:{"data-clipboard-text":'[ninja_tables id="'+t.tableId+'"]'}},[a("i",{staticClass:"el-icon-document"}),t._v(' [ninja_tables id="'+t._s(t.tableId)+'"]\n ')])])],1),t._v(" "),a("span",{staticClass:"pull-right",staticStyle:{"margin-right":"20px"}},[a("router-link",{staticClass:"doc_link",attrs:{to:{name:"help"}}},[t._v(t._s(t.$t("Documentation")))]),t._v(" "),a("a",{attrs:{href:t.preview_url,target:"_blank"}},[a("el-button",{attrs:{size:"mini"}},[t._v(t._s(t.$t("Preview")))])],1),t._v(" "),t.has_pro?t._e():a("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"}},[a("el-button",{attrs:{type:"danger",size:"mini"}},[t._v(t._s(t.$t("Buy Pro")))])],1)],1)]),t._v(" "),a("fieldset",{class:[t.is_form_saving?"disabled":""],attrs:{disabled:t.is_form_saving}},[a("h2",{staticClass:"nav-tab-wrapper"},t._l(t.table_tabs,(function(e){return a("router-link",{key:e.route,class:["nav-tab"],attrs:{"active-class":"nav-tab-active",exact:"",to:{name:e.route,params:{table_id:t.tableId}}}},[t._v("\n "+t._s(e.title)+"\n ")])})),1),t._v(" "),t.config?a("router-view",{attrs:{config:t.config,getColumnSettings:t.getSettings}}):t._e()],1),t._v(" "),a("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.editTab