!function(e){function t(t){for(var r,o,i=t[0],s=t[1],c=t[2],m=0,d=[];mdiv{font-size:1.1rem}\n",""])},361:function(e,t,n){var r=n(362);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},362:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".wp-full-overlay{margin-left:300px}@media screen and (min-width: 1667px){.wp-full-overlay{margin-left:18%}}button{box-sizing:border-box;pointer-events:all}.wp-full-overlay.hide{display:none}.theme-screenshot-wrap{overflow:hidden;position:relative;max-height:300px;margin:15px 0;border:1px solid #ccc}.install-theme-info{padding-bottom:0px}.install-theme-info h3 a{float:right;opacity:0.6}.install-theme-info h3 a:hover{opacity:1}.install-theme-info .theme-screenshot{width:100% !important;border:none !important;margin:0 !important;display:block}.expanded .wp-full-overlay-footer{height:111px !important;left:initial}.expanded .wp-full-overlay-footer .button-hero{text-align:center}.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:100px}.wp-full-overlay .wp-full-overlay-sidebar-content .redux-templates-dependencies-list{border-top:1px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0 0}.wp-full-overlay .wp-full-overlay-sidebar-content .redux-templates-dependencies-list h4{color:#23282d;font-size:1.1em;text-align:center}.wp-full-overlay .wp-full-overlay-sidebar-content .redux-templates-dependencies-list .redux-templates-dependency-blocks .redux-templates-dependency-name{color:#444;font-weight:600;margin-right:5px}.footer-import-button-wrap{padding:10px 20px;display:flex;justify-content:center}.wp-full-overlay-footer .view-site,.wp-full-overlay-footer .go-pro,.wp-full-overlay-footer .redux-templates-import{width:100%}.redux-templates-button-download{border:1px solid #3dbfe8;background:#3dbfe8;box-shadow:0 1px 0 #165cb4;color:#fff}.wp-full-overlay-main{left:0;right:0;top:0;bottom:0;height:100%;-webkit-transition:background-color 1000ms linear;-ms-transition:background-color 1000ms linear;transition:background-color 1000ms linear;background-color:unset}.wp-full-overlay-main.loaded::before{display:none !important}.wp-full-overlay-main.loaded iframe{background-color:#fff}.wp-full-overlay-main .components-spinner{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity 0.3s}.redux-templates-dependency-blocks{display:flex}.redux-templates-dependency-blocks .block-head{text-align:center;width:60px;margin-right:10px}.requirements-list{width:100%}.requirements-list ul{margin:0;padding:0;list-style:none}.requirements-list ul li{cursor:pointer;line-height:20px;padding-bottom:25px;clear:left;transition:300ms}.requirements-list ul li svg{margin-right:5px}.requirements-list ul li svg *{fill:#9a9a9a}.requirements-list ul li svg,.requirements-list ul li span,.requirements-list ul li div{float:left}.requirements-list ul li .redux-icon-wrapper{display:inline}.requirements-list ul li span.pluginURL{float:right}.requirements-list ul li i{font-size:1.1em}.requirements-list ul li .redux-icon-wrapper{padding-left:5px}.requirements-list ul li i.fa-exclamation-triangle{font-size:0.9em;line-height:1.5em;color:#b27823}.requirements-list ul li:hover svg *{fill:dimgray}.requirements-list ul li:hover i.fa-exclamation-triangle{color:#f5a623}.redux-block-pills ul{margin:0;padding:0}.redux-block-pills ul li{margin:0px 5px 10px 0;float:left}.redux-block-pills ul li span{--bg-opacity: 1 !important;background-color:#edf2f7 !important;background-color:rgba(237, 242, 247, var(--bg-opacity)) !important;border-radius:9999px !important;padding-top:0.25rem !important;padding-bottom:0.25rem !important;padding-left:0.75rem !important;padding-right:0.75rem !important;--text-opacity: 1 !important;color:#4a5568 !important;color:rgba(74, 85, 104, var(--text-opacity)) !important}.redux-templates-modal-preview-box{background:#f1f1f1}.redux-templates-modal-preview-box img{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);max-width:100%;max-height:100%}.theme-hash{text-align:center;font-size:14px;position:relative}.theme-hash i{cursor:pointer;margin-right:5px;margin-left:5px}.theme-hash .copied{color:#656a6f;position:absolute;line-height:75%;margin-left:10px;opacity:0.6}.theme-hash .the-copy{border-bottom-right-radius:0 !important;border-top-right-radius:0 !important}.theme-hash .the-hash{border-bottom-left-radius:0 !important;border-top-left-radius:0 !important;border-left:0 !important}.theme-hash .hideMe{-webkit-animation:cssAnimation 3s forwards;animation:cssAnimation 3s forwards}@keyframes cssAnimation{0%{opacity:1}90%{opacity:1}100%{opacity:0}}@-webkit-keyframes cssAnimation{0%{opacity:1}90%{opacity:1}100%{opacity:0}}\n",""])},4:function(e,t){e.exports=wp.components},40:function(e,t){e.exports=lodash},527:function(e,t,n){var r=n(528);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},528:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.redux-templates-collection-modal-sidebar{min-width:270px;background:#fff;color:#32373c;border-right:1px solid #e2e4e7;overflow-y:auto}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group{margin:10px 0;border-bottom:1px solid #e2e4e7;width:100%;display:inline-flex}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button{font-weight:500;flex-grow:1;min-width:30%;line-height:20px;padding:8px 0 10px 15px;align-items:center;text-align:left;background:none;position:relative;margin-bottom:-1px;border-width:0;z-index:1;cursor:pointer;outline:none;border-color:transparent;box-shadow:none;border-bottom:unset}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button::after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button:hover{color:#007cba;color:var(--wp-admin-theme-color)}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button.active{box-shadow:inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color)}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button.active::before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button.active:focus{box-shadow:inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button.disabled{opacity:0.4}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button img{display:inline-block;width:auto;height:14px;margin-right:4px}.redux-templates-collection-modal-sidebar .redux-templates-template-filter-button-group button:last-child img{margin-bottom:-2px}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content{padding:0 15px 15px}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content h3{margin:5px 12px 10px 0;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul{list-style:unset;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0 15px 15px 15px;padding:0}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li{display:block;font-size:13px;cursor:pointer;height:auto;-webkit-transition:height 0.5s linear;-moz-transition:height 0.5s linear;-ms-transition:height 0.5s linear;-o-transition:height 0.5s linear;transition:height 0.5s linear}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li .redux-icon-wrapper{margin-left:10px}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li:not(.disabled):hover{color:#007cba;color:var(--wp-admin-theme-color)}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li.active{color:#007cba;color:var(--wp-admin-theme-color);text-shadow:0 0 0.5px #007cba;text-shadow:0 0 0.5px var(--wp-admin-theme-color)}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li.disabled{display:none;height:0px;-webkit-transition:height 0.5s linear;-moz-transition:height 0.5s linear;-ms-transition:height 0.5s linear;-o-transition:height 0.5s linear;transition:height 0.5s linear}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li span{float:right}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li.missing-dependency i.fa-exclamation-triangle{color:#b27823}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li.missing-dependency:hover i.fa-exclamation-triangle{color:#f5a623}.redux-templates-collection-modal-sidebar .redux-templates-modal-sidebar-content ul li.missing-dependency.active i.fa-exclamation-triangle{color:#f5a623}.redux-templates-collection-modal-sidebar ul.redux-templates-sidebar-dependencies li .components-base-control{display:inline-block;margin-bottom:0 !important}.redux-templates-collection-modal-sidebar ul.redux-templates-sidebar-dependencies li .components-base-control .components-base-control__field{margin-bottom:3px}.redux-templates-collection-modal-sidebar ul.redux-templates-sidebar-dependencies li .components-base-control span{float:none}.redux-templates-collection-modal-sidebar .redux-templates-select-actions{margin:0 0 10px 15px;display:inline-flex}.redux-templates-collection-modal-sidebar .redux-templates-select-actions i.challenge-dot{margin-left:10px}.redux-templates-collection-modal-sidebar .redux-templates-select-actions.disabled a{pointer-events:none;cursor:default;text-decoration:none;opacity:0.6}.redux-templates-collection-modal-sidebar .redux-templates-sidebar-dependencies li a{display:inline-block;margin-left:10px}.redux-templates-collection-modal-sidebar #redux-templates-filter-dependencies h3{margin-top:0;padding-top:3px}\n',""])},529:function(e,t,n){var r=n(530);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},530:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-template-filters .is-active{background:#fff;color:#191e23;box-shadow:inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff}.redux-templates-template-filters .components-button:focus:not(:disabled):not(.is-active){background:transparent;box-shadow:none;color:#555d66}.refresh-library{margin-right:10px}.tour-icon{font-size:18px}.trial_notice *{vertical-align:middle}.trial_notice .components-notice__content{margin-right:0}\n",""])},531:function(e,t,n){var r=n(532);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},532:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".action-buttons span,.action-buttons a{display:inline-block;padding:0 12px 2px;margin:2px;height:33px;line-height:32px;font-size:13px;color:#353535;border:1px solid #f7f7f7;background:#f7f7f7;box-shadow:0 1px 2px #ddd;vertical-align:top;border-radius:3px;text-decoration:none;cursor:pointer;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.action-buttons span:hover,.action-buttons a:hover{box-shadow:0 1px 2px #ccc;background:#f1f1f1}.action-buttons span i,.action-buttons a i{font-size:10px;margin-right:4px}.action-buttons span{background:#0085ba;border-color:#006a95 #00648c #00648c;box-shadow:inset 0 -1px 0 #00648c;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #005d82, 1px 0 1px #005d82, 0 1px 1px #005d82, -1px 0 1px #005d82}.action-buttons a.redux-templates-button-download{border:1px solid #f5a623;background:#f5a623;box-shadow:0 1px 0 #165cb4;color:#fff}.action-buttons .redux-templates-button-download{margin-left:5px}.action-buttons i.challenge-dot{margin-top:10px;margin-left:5px}\n",""])},533:function(e,t,n){var r=n(534);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},534:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-button-display-dependencies{display:flex;justify-content:center;margin:10px}.redux-templates-button-display-dependencies span svg{margin-right:5px;cursor:pointer}.redux-templates-button-display-dependencies span svg *{fill:#f7f7f7}.redux-templates-button-display-dependencies span.missing-dependency svg *{fill:rgba(247,247,247,0.5)}\n",""])},535:function(e,t,n){var r=n(536);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},536:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-import-button-group{text-align:center}.redux-templates-import-button-group.disabled span a{cursor:default;opacity:0.8}.redux-templates-single-section-item{margin-bottom:15px}.redux-templates-single-section-item .redux-templates-import-button-group{margin-top:10%}\n",""])},537:function(e,t,n){var r=n(538);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},538:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-single-section-item .block-editor-block-preview__container{margin:0 auto;min-height:130px}\n",""])},539:function(e,t,n){var r=n(540);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},540:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-single-section-item{box-shadow:0px 2px 6px rgba(0,0,0,0.2);margin-bottom:30px;transition:all 0.05s ease-in-out}.redux-templates-single-section-item .redux-templates-tmpl-title{background:rgba(255,255,255,0.95);border-top:1px solid #f2f4f7;position:absolute;bottom:0;width:100%;margin:0;color:#23282d;padding:13px 15px;font-size:15px}.redux-templates-single-section-item .redux-templates-single-item-inner{position:relative;overflow:hidden;background:#999}.redux-templates-single-section-item .redux-templates-single-item-inner .warn_notice{color:#fbbc0e;font-weight:bold;margin-bottom:15px;font-size:14px;opacity:0;text-align:center}.redux-templates-single-section-item .redux-templates-single-item-inner .redux-templates-default-template-image{max-height:350px;min-height:100px;transition:300ms}#collections-sections-list.large>div{width:50%}#collections-sections-list.small>div{width:25%}\n",""])},541:function(e,t,n){var r=n(542);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},542:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-multiple-template-box{margin-bottom:25px;position:relative;transition:all 0.05s ease-in-out}.redux-templates-multiple-template-box img{transition:all 0.05s ease-in-out}.redux-templates-multiple-template-box .redux-templates-box-shadow{transition:all 0.05s ease-in-out;box-shadow:0px 2px 6px rgba(0,0,0,0.1)}.redux-templates-multiple-template-box .redux-templates-default-template-image .imageloader-loaded{overflow:hidden}.redux-templates-multiple-template-box .multiple-template-view{background:#fff;box-shadow:0 1px 1px rgba(0,0,0,0.05),0 10px 0 -5px #fff,0 10px 1px -4px rgba(0,0,0,0.08),0 20px 0 -10px #fff,0 20px 1px -9px rgba(0,0,0,0.08);cursor:pointer;min-height:100px}.redux-templates-multiple-template-box .redux-templates-import-button-group{margin-top:15%}.redux-templates-multiple-template-box .redux-templates-tmpl-info{padding:10px 12px;position:absolute;bottom:0;width:100%;background:rgba(255,255,255,0.95);border-top:1px solid #f2f4f7;transition:all 0.2s ease-in-out}.redux-templates-multiple-template-box .redux-templates-tmpl-info h5{margin:0;font-size:14px;color:#23282d;line-height:19px}.redux-templates-multiple-template-box .redux-templates-tmpl-info h5 span{font-size:13px;color:#cdcfd1;line-height:18px}.redux-templates-multiple-template-box .redux-templates-button-overlay{width:100%;height:100%;position:absolute;top:0;left:0;border-radius:0px;opacity:0;-webkit-transition:opacity 0.2s ease-in-out;transition:opacity 0.2s ease-in-out;box-sizing:border-box}.redux-templates-multiple-template-box::before{z-index:2}.redux-templates-multiple-template-box::after{z-index:1}.redux-templates-multiple-template-box .redux-templates-button-overlay{background:rgba(0,0,0,0.5);position:absolute;height:100%;width:100%;opacity:0}.redux-templates-multiple-template-box:hover .redux-templates-box-shadow{box-shadow:0px 2px 6px rgba(0,0,0,0.3)}.redux-templates-multiple-template-box:hover .multiple-template-view{border-color:transparent}.redux-templates-multiple-template-box:hover .redux-templates-tmpl-info{border-top-color:transparent;background:#fff}.redux-templates-multiple-template-box:hover .redux-templates-button-overlay{opacity:1}.redux-templates-multiple-template-box:hover img{filter:blur(2px)}\n",""])},543:function(e,t,n){var r=n(544);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},544:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".tablenav-pages{display:flex;justify-content:center;align-items:center;margin-bottom:20px}.tablenav-pages span.displaying-num{margin-right:20px}.tablenav-pages #table-paging{margin-left:10px;margin-right:10px}.tablenav-pages #table-paging span{line-height:30px}.tablenav-pages span.tablenav-pages-navspan.button{cursor:pointer;margin:0 2px}.tablenav-pages span.tablenav-pages-navspan.button.disabled{cursor:default}\n",""])},545:function(e,t,n){var r=n(546);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},546:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,"#collections-sections-list{width:100%;display:flex;flex-wrap:wrap;padding:10px 10px 0 10px}#collections-sections-list>div{width:33.3333%;padding:15px;position:relative}@media (max-width: 1199px){#collections-sections-list>div{width:50%}}#collections-sections-list>div.redux-templates-builder-template-found-empty{width:100%;text-align:center;opacity:0.5;border:none !important;padding-top:70px !important}#collections-sections-list.redux-templates-frontend-section-list{display:block;padding-bottom:10px;padding-top:0px}#collections-sections-list.redux-templates-frontend-section-list>div{width:100%;display:flex;flex-wrap:nowrap;border-bottom:1px solid #e2e4e7;font-weight:600;padding:12px 0 12px 15px;margin-bottom:0;align-items:center}#collections-sections-list.redux-templates-frontend-section-list>div.redux-templates-reusable-list-title{color:#adafb2}#collections-sections-list.redux-templates-frontend-section-list>div:first-child{border-top:1px solid #e2e4e7}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-content{flex-grow:1}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-info{flex-grow:1;max-width:165px;display:flex;flex-wrap:nowrap}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-button{margin-left:30px}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-button button{display:inline-block;padding:0;border:none;transition:300ms;cursor:pointer;background-color:transparent}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-button button:not(:last-child){margin-right:10px}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-button button i{font-size:16px;color:#cdcfd1}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-button button:hover i{color:#007cba}#collections-sections-list.redux-templates-frontend-section-list>div .redux-templates-reusable-list-button button:last-child:hover i{color:#f00}#collections-sections-list .redux-templates-pagelist-column.loading{height:100px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0,0,0,0.05)}\n",""])},547:function(e,t,n){var r=n(548);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},548:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.redux-templates-collection-details-view{padding:40px 22.5px 60px;width:100%;justify-content:center;position:relative;display:flex}.redux-templates-collection-details-view .redux-templates-collection-details-left{width:600px;margin:0 37px 0 17px}.redux-templates-collection-details-view .redux-templates-collection-details-left .details-back{height:32px;line-height:20px;color:#818a91;font-size:15px;font-weight:600;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;margin-bottom:20px;-webkit-transition:color 0.1s ease;transition:color 0.1s ease}.redux-templates-collection-details-view .redux-templates-collection-details-left .details-preview{background-position:center top;background-size:contain;width:100%;background-repeat:no-repeat;transition:background 1.5s ease;height:84.71%}.redux-templates-collection-details-view .redux-templates-collection-details-left .details-preview.has_full{transition:background-position 1.5s linear;background-position:center top;background-size:cover;width:100%;background-repeat:no-repeat;-webkit-box-shadow:0 1px 5px 0 rgba(0,0,0,0.1);box-shadow:0 1px 5px 0 rgba(0,0,0,0.1)}.redux-templates-collection-details-view .redux-templates-collection-details-left .details-preview.has_full:hover{background-position:center bottom;background-size:cover}.redux-templates-collection-details-view .redux-templates-collection-details-right{width:520px}.redux-templates-collection-details-view .redux-templates-collection-details-right .details-title{height:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:2px 25px 0 10px;margin-bottom:20px}.redux-templates-collection-details-view .redux-templates-collection-details-right .details-title h3{color:rgba(3,8,15,0.92);font-size:28px;font-weight:600;line-height:34px;margin:0}.redux-templates-collection-details-view .redux-templates-collection-details-right .details-title span{color:#818a91;font-size:13px;font-weight:600;line-height:16px}.redux-templates-collection-details-view .redux-templates-collection-details-right .details-list{height:84.71%}.redux-templates-collection-details-view .redux-templates-collection-details-right .details-list .details-inner{height:100%;overflow-y:auto}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select{width:150px;height:150px;overflow:hidden;margin:0 8px 15px;-webkit-box-shadow:0 1px 5px 0 rgba(0,0,0,0.1);box-shadow:0 1px 5px 0 rgba(0,0,0,0.1);position:relative;display:inline-block;cursor:pointer;-webkit-transition:all 0.1s ease-in-out;transition:all 0.1s ease-in-out}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select::before,.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select::after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;pointer-events:none;opacity:0;box-sizing:border-box}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select::before{opacity:0.7;z-index:2}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select::after{opacity:0.7;z-index:1}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select .detail-image{width:100%;height:150px;background-repeat:no-repeat;background-size:cover;border:1px solid #ececec;position:relative}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select .detail-image .pro,.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select .detail-image .install{position:absolute;background:#f00;padding:2px 3px;border-radius:3px;color:#fff;font-size:9px;right:5px;top:5px;text-transform:uppercase;line-height:1}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select .detail-image .pro{background:#f00}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select .detail-image .install{background:#f2a848}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select .detail-label{border-top:1px solid #f2f4f7;width:100%;height:30px;opacity:1;background-color:rgba(255,255,255,0.9);position:absolute;bottom:0;left:0;color:#23282d;font-family:pn, "Open Sans", Arial, sans-serif;font-size:13px;font-weight:600;line-height:30px;padding-left:10px}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select:hover{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2)}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select:hover::before,.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select:hover::after{opacity:1}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select.detail-select-active{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.3)}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select.detail-select-active::before,.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select.detail-select-active::after,.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select.detail-select-active .detail-label{opacity:1}.redux-templates-collection-details-view .redux-templates-collection-details-right .detail-select.detail-select-active::before{border:3px solid #24b0a6}.redux-templates-collection-details-view .redux-templates-collection-details-footer{width:100%;height:60px;background:#fff;position:absolute;bottom:0;left:0;z-index:2}.redux-templates-collection-details-view .redux-templates-collection-details-footer .footer-grid{width:100%;padding:0 10px;height:100%;margin:auto;display:flex;align-items:center;justify-content:flex-end}.redux-templates-collection-details-view .redux-templates-collection-details-footer .import-button{margin-left:11.5px;background-color:#3dbfe8;color:#fff;font-family:pn, "Open Sans", Arial, sans-serif;font-size:15px;font-weight:600;line-height:18px;padding:9px 32px;border-radius:3px;cursor:pointer;-webkit-transition:background-color 150ms linear;transition:background-color 150ms linear}.redux-templates-collection-details-view .redux-templates-collection-details-footer .import-button:hover{background:rgba(61,191,232,0.8)}\n',""])},549:function(e,t,n){var r=n(550);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},550:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.redux-templates-two-sections{position:absolute;width:85.9375%;height:89.537037%;max-width:1650px;max-height:967px;top:0;right:0;bottom:0;left:0;margin:auto;border-radius:5px;overflow:hidden;-webkit-box-shadow:0 45px 10px rgba(3,8,15,0.2);box-shadow:0 0 45px 10px rgba(3,8,15,0.2)}.redux-templates-two-sections__grid{width:100%;height:100%;padding:40px 22.5px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.redux-templates-two-sections__grid__column{width:100%}.redux-templates-two-sections__grid-clear{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%}.redux-templates-two-sections__grid-clear-text{opacity:0.9;color:#818a91;font-family:pn, "Open Sans", Arial, sans-serif;font-size:14px;font-weight:600;line-height:17px;margin:0 0 20px}.redux-templates-two-sections__grid-clear-image-saved{width:322px;height:145px;margin-top:-21px;pointer-events:none}.redux-templates-two-sections__grid-clear-image-global{width:524px;height:207px;margin-top:-28px;pointer-events:none}.redux-templates-two-section{position:relative;margin:0 17.5px 35px;cursor:pointer;outline:3px solid transparent;-webkit-transition:outline 0.3s ease-in-out;transition:outline 0.3s ease-in-out;-webkit-box-shadow:0 1px 5px 0 rgba(0,0,0,0.1);box-shadow:0 1px 5px 0 rgba(0,0,0,0.1);border-radius:3px}.redux-templates-two-section:last-child{margin-bottom:0}.redux-templates-two-section .redux-templates-two-section-remove{position:absolute;z-index:4;top:-7px;right:-7px;opacity:0;-webkit-transform:scale(0.7);transform:scale(0.7);-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, opacity 0.3s ease-in-out;transition:transform 0.3s ease-in-out, opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;width:28px;height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:12px;border-radius:28px;background-color:#fff;color:#03080f;-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,0.25);box-shadow:0 0 2px 0 rgba(0,0,0,0.25);cursor:pointer}.redux-templates-two-section:hover .redux-templates-two-section-remove{opacity:1;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, opacity 0.3s ease-in-out;transition:transform 0.3s ease-in-out, opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out}.redux-templates-two-section:hover .redux-templates-two-section-remove:hover{color:#f00}.redux-templates-two-section:hover .redux-templates-two-section-item::before{border-color:#3dbfe8}.redux-templates-two-section:hover .redux-templates-two-section-item::after{border-color:#ececec}.redux-templates-two-section .preview-image-wrapper{transition:all 0.05s ease-in-out;width:100%;min-height:130px;max-height:300px;overflow:hidden}.redux-templates-two-section .preview-image-wrapper img{animation-name:fadeIn;animation-fill-mode:both;animation-delay:200ms;animation-duration:200ms;width:100%;height:auto}.redux-templates-two-section .saved-section-title{border-top:1px solid #f2f4f7;background:rgba(255,255,255,0.9);position:absolute;bottom:0;width:100%;margin:0;color:#23282d;padding:13px 15px;font-size:15px;text-align:center;display:flex;justify-content:center;align-items:center}.no-section{display:flex;width:100%;align-items:center;justify-content:center;font-size:16px}.preview-image-wrapper .block-editor-block-preview__container{transition:all 0.05s ease-in-out;background:#fff;margin:0 auto;min-height:130px}\n',""])},553:function(e,t,n){var r=n(554);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},554:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".components-snackbar-list{z-index:99999}\n",""])},555:function(e,t,n){var r=n(556);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},556:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.redux-templates-error-notice .components-notice{display:flex;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;font-size:13px;background-color:#e5f5fa;border-left:4px solid #00a0d2;margin:5px 15px 2px;padding:8px 12px;align-items:center;position:absolute;height:50px;z-index:9999;width:50%;right:0;top:70px;transition:opacity 2s linear}.redux-templates-error-notice .components-notice.is-dismissible{padding-right:0}.redux-templates-error-notice .components-notice.is-success{border-left-color:#4ab866;background-color:rgba(74,184,102,0.95)}.redux-templates-error-notice .components-notice.is-warning{border-left-color:#f0b849;background-color:rgba(254,248,238,0.95)}.redux-templates-error-notice .components-notice.is-error{border-left-color:#d94f4f;background-color:rgba(249,226,226,0.95)}\n',""])},557:function(e,t,n){var r=n(558);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},558:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.challenge-popup-wrapper{height:500px;border-radius:10px}.challenge-popup-header{width:100%;height:212px;border-top-left-radius:8px;border-top-right-radius:8px}.challenge-popup-header-congrats{background-position:center;background-size:cover}.challenge-popup-header-contact{background-position:center;background-size:auto 75%;background-color:#eee;background-repeat:no-repeat}.challenge-popup-content{padding:30px 40px;-webkit-font-smoothing:antialiased}.challenge-popup-content h3{color:#24b0a6;margin:0 0 20px;font-size:24px;font-family:"Helvetica Neue";font-weight:500}.challenge-popup-content p{font-size:16px;margin:0 0 22px}.challenge-popup-content b{font-weight:500}.challenge-popup-content .challenge-contact-message{box-shadow:none;resize:none;margin-bottom:21px;width:100%;min-height:175px}.challenge-popup-content label{font-size:13.8px;display:block;margin-bottom:23px}.challenge-popup-content input[type="checkbox"]{margin-right:8px}.challenge-popup-content .rating-stars{color:#fdb72c;font-size:18px;font-weight:bold}.challenge-popup-close .fa-times{font-size:20px;color:#777;float:right;margin:15px;border-radius:50%;cursor:pointer}.challenge-popup-btn{display:inline-block;border-radius:2px;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none;font-size:15px;font-weight:600;padding:14px 25px;border:1px solid #00a7e5;background-color:#24b0a6;color:#fff}.challenge-popup-btn:hover{border:1px solid #19837c;background-color:#19837c;color:#fff}.challenge-popup-btn .dashicons-external{margin-left:6px}.challenge-popup-content.challenge-contact p{font-size:14px}.challenge-popup-content.challenge-contact textarea{margin-bottom:10px}.challenge-popup-content.challenge-contact label{font-size:13px;margin-bottom:15px}\n',""])},559:function(e,t,n){var r=n(560);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},560:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".rtf{box-sizing:border-box;margin:25px;position:fixed;white-space:nowrap;z-index:9998;padding-left:0;list-style:none}.rtf.open .rtf--mb>*{transform-origin:center center;transform:none;transition:ease-in-out transform 0.2s}.rtf.open .rtf--mb>ul{list-style:none;margin:0;padding:0}.rtf.open .rtf--ab__c:hover>span{transition:ease-in-out opacity 0.2s;opacity:0.9}.rtf.open .rtf--ab__c>span.always-show{transition:ease-in-out opacity 0.2s;opacity:0.9}.rtf.open .rtf--ab__c:nth-child(1){transform:translateY(-60px) scale(1);transition-delay:0.03s}.rtf.open .rtf--ab__c:nth-child(1).top{transform:translateY(60px) scale(1)}.rtf.open .rtf--ab__c:nth-child(2){transform:translateY(-120px) scale(1);transition-delay:0.09s}.rtf.open .rtf--ab__c:nth-child(2).top{transform:translateY(120px) scale(1)}.rtf.open .rtf--ab__c:nth-child(3){transform:translateY(-180px) scale(1);transition-delay:0.12s}.rtf.open .rtf--ab__c:nth-child(3).top{transform:translateY(180px) scale(1)}.rtf.open .rtf--ab__c:nth-child(4){transform:translateY(-240px) scale(1);transition-delay:0.15s}.rtf.open .rtf--ab__c:nth-child(4).top{transform:translateY(240px) scale(1)}.rtf.open .rtf--ab__c:nth-child(5){transform:translateY(-300px) scale(1);transition-delay:0.18s}.rtf.open .rtf--ab__c:nth-child(5).top{transform:translateY(300px) scale(1)}.rtf.open .rtf--ab__c:nth-child(6){transform:translateY(-360px) scale(1);transition-delay:0.21s}.rtf.open .rtf--ab__c:nth-child(6).top{transform:translateY(360px) scale(1)}.rtf--mb__c{padding:25px;margin:-25px}.rtf--mb__c *:last-child{margin-bottom:0}.rtf--mb__c:hover>span{transition:ease-in-out opacity 0.2s;opacity:0.9}.rtf--mb__c>span.always-show{transition:ease-in-out opacity 0.2s;opacity:0.9}.rtf--mb__c>span{opacity:0;transition:ease-in-out opacity 0.2s;position:absolute;top:50%;transform:translateY(-50%);margin-right:6px;margin-left:4px;background:rgba(0,0,0,0.75);padding:2px 4px;border-radius:2px;color:#fff;font-size:13px;box-shadow:0 0 4px rgba(0,0,0,0.14),0 4px 8px rgba(0,0,0,0.28)}.rtf--mb__c>span.right{right:100%}.rtf--mb{height:56px;width:56px;z-index:9999;background-color:#666;display:inline-flex;justify-content:center;align-items:center;position:relative;border:none;border-radius:50%;box-shadow:0 0 4px rgba(0,0,0,0.14),0 4px 8px rgba(0,0,0,0.28);cursor:pointer;outline:none;padding:0;-webkit-user-drag:none;font-weight:bold;color:#f1f1f1;font-size:18px}.rtf--mb>*{transition:ease-in-out transform 0.2s}.rtf--ab__c{display:block;position:absolute;top:0;right:1px;padding:10px 0;margin:-10px 0;transition:ease-in-out transform 0.2s}.rtf--ab__c>span{opacity:0;transition:ease-in-out opacity 0.2s;position:absolute;top:50%;transform:translateY(-50%);margin-right:6px;background:rgba(0,0,0,0.75);padding:2px 4px;border-radius:2px;color:#fff;font-size:13px;box-shadow:0 0 4px rgba(0,0,0,0.14),0 4px 8px rgba(0,0,0,0.28)}.rtf--ab__c>span.right{right:100%}.rtf--ab__c:nth-child(1){transform:translateY(-60px) scale(0);transition-delay:0.21s}.rtf--ab__c:nth-child(1).top{transform:translateY(60px) scale(0)}.rtf--ab__c:nth-child(2){transform:translateY(-120px) scale(0);transition-delay:0.18s}.rtf--ab__c:nth-child(2).top{transform:translateY(120px) scale(0)}.rtf--ab__c:nth-child(3){transform:translateY(-180px) scale(0);transition-delay:0.15s}.rtf--ab__c:nth-child(3).top{transform:translateY(180px) scale(0)}.rtf--ab__c:nth-child(4){transform:translateY(-240px) scale(0);transition-delay:0.12s}.rtf--ab__c:nth-child(4).top{transform:translateY(240px) scale(0)}.rtf--ab__c:nth-child(5){transform:translateY(-300px) scale(0);transition-delay:0.09s}.rtf--ab__c:nth-child(5).top{transform:translateY(300px) scale(0)}.rtf--ab__c:nth-child(6){transform:translateY(-360px) scale(0);transition-delay:0.03s}.rtf--ab__c:nth-child(6).top{transform:translateY(360px) scale(0)}.rtf--ab{height:48px;width:48px;background-color:#aaa;display:inline-flex;justify-content:center;align-items:center;position:relative;border:none;border-radius:50%;box-shadow:0 0 4px rgba(0,0,0,0.14),0 4px 8px rgba(0,0,0,0.28);cursor:pointer;outline:none;padding:0;-webkit-user-drag:none;font-weight:bold;color:#f1f1f1;margin-right:4px;font-size:16px;z-index:10000}\n",""])},561:function(e,t,n){var r=n(562);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},562:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.redux-templates-collections-modal-body{display:flex;flex:1;overflow-y:auto}.redux-templates-builder-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;align-items:center;justify-content:center;pointer-events:none}.redux-templates-builder-modal.hidden{display:none}.redux-templates-builder-modal .wp-full-overlay-sidebar .wp-core-ui .button-group.button-hero .button,.redux-templates-builder-modal .wp-full-overlay-sidebar .wp-core-ui .button.button-hero{text-align:center !important}.redux-templates-builder-modal *{box-sizing:border-box;pointer-events:all}.redux-templates-builder-modal .redux-templates-pagelist-modal-overlay{position:absolute;width:100%;height:100%;background:#f00;left:0;top:0;z-index:-1;background:rgba(3,8,15,0.75)}.redux-templates-builder-modal .components-base-control__field{display:flex}.redux-templates-builder-modal textarea{width:100%;height:80px}.redux-templates-builder-modal .redux-icon-wrapper{display:inline-block}.redux-templates-builder-modal button.components-button{z-index:unset}.redux-templates-builder-modal-header{display:flex;border-bottom:1px solid #e2e4e7;background:#fff}.redux-templates-builder-modal-header .template-search-box{position:relative;width:270px}.redux-templates-builder-modal-header .template-search-box>div{padding:10px}.redux-templates-builder-modal-header .template-search-box i{font-size:13px;color:#757575;position:absolute;top:50%;right:30px;transform:translateY(-50%)}.redux-templates-builder-modal-header .template-search-box i.challenge-dot{right:20px;left:auto}.redux-templates-builder-modal-header .template-search-box i.clear-search{right:20px;left:auto;color:#fff;font-size:12px;display:none;cursor:pointer;padding:5px}.redux-templates-builder-modal-header .template-search-box input{display:block;width:100%;box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:2px;line-height:normal;display:block;padding:16px 48px 16px 16px;background:#f3f4f5;border:none;width:100%;height:40px;font-size:13px}.redux-templates-builder-modal-header .template-search-box input::-webkit-input-placeholder{color:#606a73;font-style:italic;opacity:1}.redux-templates-builder-modal-header .template-search-box input:-moz-placeholder{color:#606a73;font-style:italic;opacity:1}.redux-templates-builder-modal-header .template-search-box input::-moz-placeholder{color:#606a73;font-style:italic;opacity:1}.redux-templates-builder-modal-header .template-search-box input:-ms-input-placeholder{color:#606a73;font-style:italic;opacity:1}.redux-templates-builder-modal-header .template-search-box input:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);background:#fff;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.redux-templates-builder-modal-header .template-search-box:hover .clear-search{display:block}.redux-templates-pagelist-modal-inner{position:relative;display:flex;flex-direction:column;overflow:hidden;background:#f1f1f1;width:85.9375%;height:89.537037%;max-width:1650px;max-height:967px;box-shadow:0 0 45px 10px rgba(3,8,15,0.2);animation:components-modal__appear-animation 0.1s ease-out;animation-fill-mode:forwards}.redux-templates-pagelist-modal-inner .redux-templates-collection-modal-content-area{flex-grow:1;max-height:100%;overflow-y:auto;position:relative}.redux-templates-template-list-header{text-align:center;position:relative;flex-grow:1;padding-right:50px}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal){flex-grow:1;line-height:28px;margin-top:6px;padding:14px 15px 13px 15px;text-align:left;font-weight:600;width:150px;align-items:center;background:none;position:relative;margin-bottom:-1px;border-width:0;z-index:1;cursor:pointer;outline:none;border-color:transparent;box-shadow:none;border-bottom:unset}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal)::after{content:attr(data-label);display:block;height:0;overflow:hidden;speak:none;visibility:hidden}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal):hover{color:#007cba;color:var(--wp-admin-theme-color)}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal):focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal).active{box-shadow:inset 0 0 0 1.5px transparent, inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color)}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal).active::before{content:"";position:absolute;top:0;bottom:1px;right:0;left:0;border-bottom:4px solid transparent}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal).active:focus{box-shadow:inset 0 0 0 1.5px #007cba, inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.redux-templates-template-list-header button:not(.redux-templates-builder-close-modal).disabled{opacity:0.5}.redux-templates-template-list-header .redux-templates-builder-close-modal{position:absolute;top:0;right:0;width:60px;height:60px;margin:0;padding:0;border:1px solid transparent;background:none;font-size:15px;cursor:pointer;outline:none;transition:color 0.1s ease-in-out, background 0.1s ease-in-out}.redux-templates-template-list-header .redux-templates-builder-close-modal i{-webkit-text-stroke:1.2px #fff}.redux-templates-template-list-header .redux-templates-builder-close-modal svg{margin-top:4px}.redux-templates-template-list-header .redux-templates-builder-close-modal:hover,.redux-templates-template-list-header .redux-templates-builder-close-modal:active{color:#00a0d2}.redux-templates-template-list-header .redux-templates-builder-close-modal:focus{color:#00a0d2;border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,0.8);outline:2px solid transparent}.redux-templates-template-list-sub-header{display:flex;justify-content:space-between;align-items:center;padding:23px 25px 0}.redux-templates-template-list-sub-header h4{font-size:21px;color:#0e2244;font-weight:500;margin:0}.redux-templates-template-list-sub-header h4 i.challenge-dot{margin-left:10px}.redux-templates-template-list-sub-header .redux-templates-template-filters{display:flex;justify-content:space-between;align-items:center}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group{background:#f8fafb;display:inline-flex;border:1px solid #d8d8d8;border-radius:4px;margin-left:10px}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button{display:inline-flex;line-height:28px;padding:5px 18px;align-items:center;background:none;border:none;color:#587e97;position:relative;z-index:1;cursor:pointer}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button:focus{outline:none;box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color);outline:1px solid transparent}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button:last-child{color:#f5a623}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button.active{background:#f5a623;color:#fff}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button.disabled{opacity:0.5}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button img{display:inline-block;width:auto;height:14px;margin-right:4px}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button:not(:last-child)::after{content:"";height:13px;background-color:#c4cbcf;width:1px;right:0px;top:50%;position:absolute;transform:translateY(-50%)}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button.active::after{display:none}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button::before{content:"";position:absolute;background:#f5a623;height:calc(100% + 4px);width:calc(100% + 4px);left:-2px;top:-2px;z-index:-1;border-radius:4px;box-shadow:0 0 4px rgba(33,32,249,0.3);opacity:0}.redux-templates-template-list-sub-header .redux-templates-template-filter-button-group button.active::before{opacity:1}.redux-templates-modal-loader{display:inline-block;position:absolute;width:80px;height:80px;line-height:80px;text-align:center;left:50%;margin-left:-50px;top:50%;margin-top:-50px;font-size:24px;color:#1e7ed8}.redux-templates-modal-loader img{height:80px;width:80px}.redux-templates-builder-template-found-empty{text-align:center;border-color:transparent !important}.redux-templates-builder-template-found-empty .redux-templates-builder-empty-title{display:block;width:100%}.redux-templates-pro-badge{position:absolute;background:rgba(255,0,0,0.75);cursor:pointer;padding:5px 6px;border-radius:3px;color:#fff;font-size:10px;right:20px;top:20px;line-height:1;transition:background 0.1s linear}.redux-templates-missing-badge{position:absolute;cursor:pointer;background:rgba(242,168,72,0.75);border-radius:3px;color:#fff;font-size:10px;right:20px;top:20px;line-height:1;transition:background 0.1s linear}.redux-templates-missing-badge i{margin:5px}.redux-templates-button-overlay .redux-templates-pro-badge{background:rgba(255,0,0,0.85)}.redux-templates-button-overlay .redux-templates-missing-badge{background:rgba(242,168,72,0.85)}.redux-templates-default-template-image{background:#888;transition:300ms}.redux-templates-default-template-image .imageloader-loaded{max-height:285px}.redux-templates-default-template-image img{width:100%;display:block}.redux-templates-item-wrapper{position:relative}.redux-templates-item-wrapper .redux-templates-button-overlay{position:absolute;width:100%;opacity:0;background:rgba(0,0,0,0.5);height:100%;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:300ms}.redux-templates-item-wrapper .redux-templates-button-overlay .redux-templates-tmpl-title{margin:0 0 15px;color:#fff;font-size:19px;font-weight:400}.redux-templates-item-wrapper.focused .redux-templates-button-overlay,.redux-templates-item-wrapper:hover .redux-templates-button-overlay{opacity:1}.redux-templates-item-wrapper.focused .redux-templates-default-template-image,.redux-templates-item-wrapper:hover .redux-templates-default-template-image{filter:blur(3px)}.redux-templates-item-wrapper.missing_requirements .warn_notice{opacity:1}.redux-templates-item-wrapper.missing_requirements .redux-templates-button-download{background-color:#fdbb05;background-image:none;border-color:#ffc107}.redux-templates-template-option-header{padding:20px 20px 0}.redux-templates-template-option-header .redux-templates-template-back{cursor:pointer}.redux-templates-template-option-header .redux-templates-template-back .dashicons{vertical-align:text-bottom}#wpwrap .edit-post-visual-editor .import-collection-btn-container{text-align:center;margin-top:20px}#wpwrap .edit-post-visual-editor .import-collection-btn-container #importCollectionBtn{color:#fff;font-size:13px}.redux-templates-template-back{cursor:pointer}.redux-templates-template-back .dashicons{vertical-align:text-bottom}.spinner-wrapper{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,0.5)}\n',""])},563:function(e,t){e.exports=wp.hooks},564:function(e,t,n){var r=n(565);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},565:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-template-library-block .components-placeholder__label svg{margin-right:8px}.redux-template-library-block button.components-button{height:auto;font-weight:600;text-transform:uppercase;font-size:13px;padding:11px 20px;background:#fff}.components-button.has-icon.redux-templates-insert-library-button{height:100%}.redux-templates-insert-library-button{margin-left:10px;margin-right:10px}.redux-templates-insert-library-button svg{width:20px;height:20px}.redux-insert-library-button{margin-left:10px;margin-right:10px}\n",""])},566:function(e,t,n){var r=n(567);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},567:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-templates-challenge{display:block;position:fixed;right:1em;bottom:55px;max-width:277px;z-index:9999}.redux-templates-challenge p{font-size:14px;line-height:1.4;margin-top:0;color:#23282c}.redux-templates-challenge b{font-weight:500}.redux-templates-challenge.challenge-start{display:initial}@media all and (max-height: 900px){#challenge-contact-popup{margin:50px 0 20px}}.challenge-tooltip.tooltipster-sidetip{z-index:100100 !important}.challenge-tooltip.tooltipster-sidetip.tooltipster-top .tooltipster-box{margin-bottom:18px}.challenge-tooltip.tooltipster-sidetip.tooltipster-top .tooltipster-arrow{bottom:8px}.challenge-tooltip.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background{top:0}.challenge-tooltip.tooltipster-sidetip.tooltipster-right .tooltipster-box{margin-right:18px}.challenge-tooltip.tooltipster-sidetip.tooltipster-right .tooltipster-arrow{left:8px}.challenge-tooltip.tooltipster-sidetip .tooltipster-box{background:#fff;border:none;border-radius:4px;box-shadow:0 10px 35px 0 rgba(0,0,0,0.25);-webkit-box-shadow:0 10px 35px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 10px 35px 0 rgba(0,0,0,0.25)}.challenge-tooltip.tooltipster-sidetip .tooltipster-box .tooltipster-content{color:#444;padding:16px 20px 18px}.challenge-tooltip.tooltipster-sidetip .tooltipster-box .tooltipster-content h3{font-size:15px;margin:0}.challenge-tooltip.tooltipster-sidetip .tooltipster-box .tooltipster-content p{margin:10px 0 0}.challenge-tooltip.tooltipster-sidetip .tooltipster-box .challenge-done-btn{border-radius:3px;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;box-shadow:none;font-size:13px;font-weight:600;padding:7px 18px;border:1px solid #00a7e5;background-color:#24b0a6;color:#fff;display:block;margin:15px auto 0;outline:none}.challenge-tooltip.tooltipster-sidetip .tooltipster-box .challenge-done-btn:hover{border:1px solid #19837c;background-color:#19837c}.challenge-tooltip.tooltipster-sidetip .tooltipster-arrow-border{border:none}.challenge-tooltip.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background{border-bottom-color:#fff}.challenge-tooltip.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background{border-right-color:#fff}.challenge-tooltip.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background{border-top-color:#fff}.challenge-tooltip.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background{border-left-color:#fff}.block-editor-page .edit-post-layout .components-notice-list>div{padding-left:50px}.block-editor-page span.wpforms-challenge-dot-step5{margin:22px 18px;z-index:9999}.block-editor-page .wpforms-challenge-tooltip.wpforms-challenge-tooltip-step5{max-width:233px;z-index:99980 !important}.challenge-wrapper{position:fixed;top:0;left:0;z-index:600000}.challenge-tooltip-holder{position:fixed;top:0;left:0;z-index:600000}.challenge-tooltip-holder .tooltipster-box{position:absolute;box-shadow:0 -10px 35px 0 rgba(0,0,0,0.25);z-index:10000;background:#fff;padding:15px 20px}.challenge-dot{display:inline-block;width:16px;height:16px;background:#24b0a6;box-shadow:0 0 0 4px rgba(25,131,124,0.15);border-radius:50%;border:0;padding:0}.tooltipster-sidetip .tooltipster-arrow{position:absolute;width:20px;height:10px;z-index:10000}.tooltipster-sidetip .tooltipster-arrow-uncropped{position:relative}.tooltipster-sidetip .tooltipster-arrow-border{left:0;top:0;border:none;width:0;height:0;position:absolute}.challenge-tooltip.tooltipster-sidetip .tooltipster-arrow-background{top:0;left:0;width:0;height:0;position:absolute;border:10px solid transparent}.challenge-tooltip.tooltipster-sidetip.tooltipster-top{border-top-color:#fff}.challenge-tooltip.tooltipster-sidetip.tooltipster-bottom{border-bottom-color:#fff}.block-timer .caret-icon .fa{-webkit-transition:400ms;-o-transition:400ms;transition:400ms;line-height:23px}\n",""])},568:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".challenge-list-block{padding:15px 20px 20px;margin-bottom:15px;background-color:#fff;overflow:hidden;border-radius:4px;box-shadow:0 0 40px 0 rgba(0,0,0,0.2);-webkit-box-shadow:0 0 40px 0 rgba(0,0,0,0.2);-moz-box-shadow:0 0 40px 0 rgba(0,0,0,0.2)}.challenge-bar{border-radius:20px;background-color:#eee}.challenge-bar div{width:0;height:20px;border-radius:20px;background-color:#2576a4}.challenge-list{list-style:none;margin:17px 0 20px;font-size:13px}.challenge-list li{margin-bottom:17px}.challenge-list li i{display:inline-block;font-size:18px;color:#d6d6d6;margin-right:8px;line-height:15px;vertical-align:bottom;border-radius:50%}.challenge-list li.challenge-item-current{font-weight:bold}.challenge-list li.challenge-item-current i{color:#df7739;font-size:17.5px;line-height:1;text-indent:0.5px}.challenge-list li.challenge-item-completed{font-weight:initial;text-decoration:line-through}.challenge-list li.challenge-item-completed i{color:#6ab255;font-size:18px;background-color:#fff}.challenge-list li .dashicons-yes{display:none;vertical-align:middle}button.btn-challenge-start{font-size:12px;padding:6px 15px;border:1px solid #00a7e5;background-color:#24b0a6;border-radius:3px;color:#fff;cursor:pointer}button.btn-challenge-start:hover{background-color:#19837c}.btn-challenge-cancel,.btn-challenge-skip{margin:6px 0;border:0;text-decoration:underline}.btn-challenge-cancel,.btn-challenge-skip{align-self:flex-end;color:#909090;font-size:12px;font-weight:normal;background:none}.wpforms-btn-md{min-height:initial}.challenge-button-row{display:flex;justify-content:space-between}.challenge-button-row button{cursor:pointer}.started.challenge-button-row{align-content:space-between;flex-direction:column}\n",""])},569:function(e,t,n){var r=n(570);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},570:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".block-timer{padding:5px;background-color:#2d2d2d;border-radius:500px;width:277px;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-shadow:0 0 40px 0 rgba(0,0,0,0.2);-webkit-box-shadow:0 0 40px 0 rgba(0,0,0,0.2);-moz-box-shadow:0 0 40px 0 rgba(0,0,0,0.2);padding-left:50px}.block-timer img{width:50px;height:50px;border-radius:50%}.block-timer h3{font-size:14px;font-weight:500;color:#fff;margin:0}.block-timer p{font-size:14px;font-weight:100;color:#ababab;margin:0}.block-timer .caret-icon{border:2px solid;border-radius:50%;color:#6c6c6c;margin:0 15px;width:23px;height:23px;font-size:20px;cursor:pointer}.block-timer .caret-icon .fa{width:100%;text-align:center;-webkit-transition:400ms;-o-transition:400ms;transition:400ms}.block-timer .caret-icon.closed .fa{-webkit-transform:rotate(180deg) translateY(1px);-ms-transform:rotate(180deg) translateY(1px);transform:rotate(180deg) translateY(1px)}\n",""])},571:function(e,t,n){var r=n(572);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},572:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,'.redux-edit-post-welcome-guide{width:412px}.redux-edit-post-welcome-guide__image{background:#00a0d2;width:412px;border-bottom:1px solid #ddd}.redux-edit-post-welcome-guide__image__prm-r{display:none}@media (prefers-reduced-motion: reduce){.redux-edit-post-welcome-guide__image__prm-r{display:block}.redux-edit-post-welcome-guide__image__prm-np{display:none}}.redux-edit-post-welcome-guide__heading{font-family:"Noto Serif", serif;font-size:24px;line-height:1.4;margin:0 0 16px 0;padding:0 32px}.redux-edit-post-welcome-guide__text{font-size:16px;line-height:1.4;margin:0 0 24px 0;padding:0 32px;font-weight:normal}.redux-edit-post-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}\n',""])},573:function(e,t,n){var r=n(574);"string"==typeof r&&(r=[[e.i,r,""]]);var l={hmr:!0,transform:void 0,insertInto:void 0};n(15)(r,l);r.locals&&(e.exports=r.locals)},574:function(e,t,n){(e.exports=n(14)(!1)).push([e.i,".redux-css-editor{border:1px solid #e2e4e7;margin-bottom:20px}.redux-css-editor-help{background:#f7f7f7;padding:20px}\n",""])},575:function(e,t){wp.i18n.__;const n=wp.blocks.parse,r=wp.data,l=r.select,a=r.subscribe;let o="";const i=(e,t)=>{e.forEach(e=>{if(e.attributes.hasCustomCSS&&e.attributes.customCSS&&null!==e.attributes.customCSS&&(o+=e.attributes.customCSS+"\n"),"core/block"===e.name&&null!==t){let r=t.find(t=>e.attributes.ref===t.id);r&&(r=n(r.content.raw),i(r,t))}void 0!==e.innerBlocks&&0{o="";const e=(0,(l("core/block-editor")||l("core/editor")).getBlocks)(),t=l("core").getEntityRecords("postType","wp_block");i(e,t),(e=>{let t=document.getElementById("redux-css-editor-styles");null===t&&(t=document.createElement("style"),t.setAttribute("type","text/css"),t.setAttribute("id","redux-css-editor-styles"),document.getElementsByTagName("head")[0].appendChild(t)),t.textContent===e||(t.textContent=e)})(o)})},576:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"redux",(function(){return Cn})),n.d(r,"acfblocks",(function(){return jn})),n.d(r,"atomicblocks",(function(){return Nn})),n.d(r,"advancedcustomfields",(function(){return In})),n.d(r,"advancedgutenbergblocks",(function(){return Pn})),n.d(r,"blockoptions",(function(){return Tn})),n.d(r,"blockslider",(function(){return zn})),n.d(r,"coblocks",(function(){return An})),n.d(r,"creativeblocks",(function(){return Dn})),n.d(r,"editorplus",(function(){return Mn})),n.d(r,"elegantblocks",(function(){return Ln})),n.d(r,"enhancedblocks",(function(){return Rn})),n.d(r,"essentialblocks",(function(){return Bn})),n.d(r,"formsgutenberg",(function(){return Fn})),n.d(r,"getwid",(function(){return Hn})),n.d(r,"ghostkit",(function(){return Vn})),n.d(r,"guteblock",(function(){return Un})),n.d(r,"gutenbergblock",(function(){return Gn})),n.d(r,"gutentor",(function(){return Yn})),n.d(r,"kadenceblocks",(function(){return qn})),n.d(r,"kiokenblocks",(function(){return Wn})),n.d(r,"otterblocks",(function(){return $n})),n.d(r,"qodeblock",(function(){return Jn})),n.d(r,"qubely",(function(){return Xn})),n.d(r,"snowmonkeyblocks",(function(){return Kn})),n.d(r,"stackableultimategutenbergblocks",(function(){return Zn})),n.d(r,"ultimateaddonsforgutenberg",(function(){return Qn})),n.d(r,"ultimateblocks",(function(){return er})),n.d(r,"ultimatepost",(function(){return tr})),n.d(r,"wordpress",(function(){return nr})),n.d(r,"colorizeIcon",(function(){return rr})),n.d(r,"thirdPartyIcon",(function(){return lr})),n.d(r,"ReduxTemplatesIcon",(function(){return ar})),n.d(r,"ReduxTemplatesIconColor",(function(){return or})),n.d(r,"ReduxTemplatesIconColorize",(function(){return ir})),n.d(r,"core",(function(){return sr}));var l=n(61),a=n(9),o=(n(273),n(2)),i=n(40);const s=wp.data,c=s.dispatch,p=s.select,m=c("core/editor").editPost;var d=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise(n=>{t.onload=function(){n(t.result)},t.readAsText(e)})}(e);let n;try{n=JSON.parse(JSON.parse(JSON.stringify(t)))}catch(e){throw new Error("Invalid JSON file")}if("redux_template"===n.__file)return m({template:"redux-templates_full_width"}),n.content;if(!("wp_block"===n.__file&&n.title&&n.content&&Object(i.isString)(n.title)&&Object(i.isString)(n.content)))return""===p("core/editor").getEditedPostAttribute("template")&&m({template:"redux-templates_contained"}),function(e){if("core_block"!==e.__file||!e.content||!Object(i.isString)(e.content))throw new Error("Invalid JSON file");return e.content}(n);const r=await wp.apiFetch({path:"/wp/v2/types/wp_block"}),l=await wp.apiFetch({path:"/wp/v2/"+r.rest_base,data:{title:n.title,content:n.content,status:"publish"},method:"POST"});if(l.id)return'\x3c!-- wp:block {"ref":'+l.id+"} /--\x3e";throw new Error("Invalid Reusable Block JSON file contents")};const u=wp.data,g=u.select,f=u.dispatch,h=wp.blocks,b=h.parse,x=h.createBlock;const w=wp.i18n.__,y=wp.compose.withInstanceId,v=wp.element,_=v.Fragment,E=v.Component,k=wp.blockEditor.MediaUploadCheck,O=wp.components,S=O.DropZone,C=O.FormFileUpload,j=O.Placeholder,N=O.Notice,I=["json"];var P=y(class extends E{constructor(){super(...arguments),this.state={isLoading:!1,error:null},this.isStillMounted=!0,this.addFile=this.addFile.bind(this)}componentDidMount(){const e=this.props.attributes.file;e&&(this.setState({isLoading:!0}),this.addFile(e))}componentWillUnmount(){this.isStillMounted=!1}addFile(e){let t=e[0];e.target&&(t=event.target.files[0]),t&&(this.setState({isLoading:!0}),d(t).then(e=>{this.isStillMounted&&(this.setState({isLoading:!1}),function(e,t,n){t=b(t);const r=[],l=g("core/block-editor").getBlockInsertionPoint();if(t.length>0){for(const e in t){const n=x(t[e].name,t[e].attributes,t[e].innerBlocks);f("core/block-editor").insertBlocks(n,parseInt(l.index)+parseInt(e)),void 0!==n&&r.push(n.clientId)}f("core/block-editor").removeBlock(e),r.length>0&&f("core/block-editor").multiSelect(r[0],r.reverse()[0])}n()}(this.props.clientId,e,this.props.onClose))}).catch(e=>{if(!this.isStillMounted)return;let t;switch(e.message){case"Invalid JSON file":t=w("Invalid JSON file",redux_templates.i18n);break;case"Invalid Reusable Block JSON file":t=w("Invalid Reusable Block JSON file",redux_templates.i18n);break;default:t=w("Unknown error",redux_templates.i18n)}this.setState({isLoading:!1,error:t})}))}render(){const e=this.state,t=e.isLoading,n=e.error;return wp.element.createElement(j,{icon:"download",label:w("Import a Template from JSON - Redux",redux_templates.i18n),instructions:w("Drag a file or upload a new one from your device.",redux_templates.i18n),className:"editor-media-placeholder",notices:n&&wp.element.createElement(N,{status:"error"},n)},wp.element.createElement(_,null,wp.element.createElement(k,null,wp.element.createElement(S,{onFilesDrop:this.addFile,label:w("Import from JSON",redux_templates.i18n)}),wp.element.createElement(C,{isLarge:!0,className:"editor-media-placeholder__button button button-primary",onChange:this.addFile,accept:I,isBusy:t,disabled:t,multiple:!1},w("Upload",redux_templates.i18n)))))}});const T=wp.components.SVG;wp.element.createElement(T,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));const z=wp.blocks.createBlock;var A={from:[{type:"files",isMatch:e=>"application/json"===e[0].type,priority:13,transform:e=>{const t=[];return t.push(z("redux/import",{file:e})),t}}]},D=n(0),M=n.n(D);function L(){return(L=Object.assign||function(e){for(var t=1;twp.element.createElement(B,{width:"20",height:"20"}),jn=()=>wp.element.createElement(q,{width:"20",height:"20"}),Nn=()=>wp.element.createElement(K,{width:"20",height:"20"}),In=()=>wp.element.createElement(ee,{width:"20",height:"20"}),Pn=()=>wp.element.createElement(re,{width:"20",height:"20"}),Tn=()=>wp.element.createElement(oe,{width:"20",height:"20"}),zn=()=>wp.element.createElement(me,{width:"20",height:"20"}),An=()=>wp.element.createElement(ge,{width:"20",height:"20"}),Dn=()=>wp.element.createElement(be,{width:"20",height:"20"}),Mn=()=>wp.element.createElement(ye,{width:"20",height:"20"}),Ln=()=>wp.element.createElement(Ee,{width:"20",height:"20"}),Rn=()=>wp.element.createElement(Ce,{width:"20",height:"20"}),Bn=()=>wp.element.createElement(Pe,{width:"20",height:"20"}),Fn=()=>wp.element.createElement(et,{width:"20",height:"20"}),Hn=()=>wp.element.createElement(St,{width:"20",height:"20"}),Vn=()=>wp.element.createElement(Nt,{width:"20",height:"20"}),Un=()=>wp.element.createElement(zt,{width:"20",height:"20"}),Gn=()=>wp.element.createElement(SVGGutenbergBlock,{width:"20",height:"20"}),Yn=()=>wp.element.createElement(Lt,{width:"20",height:"20"}),qn=()=>wp.element.createElement(Ht,{width:"20",height:"20"}),Wn=()=>wp.element.createElement(Gt,{width:"20",height:"20"}),$n=()=>wp.element.createElement(Xt,{width:"20",height:"20"}),Jn=()=>wp.element.createElement(Qt,{width:"20",height:"20"}),Xn=()=>wp.element.createElement(nn,{width:"20",height:"20"}),Kn=()=>wp.element.createElement(an,{width:"20",height:"20"}),Zn=()=>wp.element.createElement(cn,{width:"20",height:"20"}),Qn=()=>wp.element.createElement(dn,{width:"20",height:"20"}),er=()=>wp.element.createElement(fn,{width:"20",height:"20"}),tr=()=>wp.element.createElement(xn,{width:"20",height:"20"}),nr=()=>wp.element.createElement(vn,{width:"20",height:"20"}),rr=e=>Object(a.cloneElement)(e,{fill:"url(#redux-gradient)",className:"redux-icon-gradient"}),lr=e=>{if(e)return wp.element.createElement("icon",{width:"20",height:"20"})};void 0!==window.wp.blocks&&void 0!==window.wp.blocks.updateCategory&&Object(Sn.updateCategory)(redux_templates.i18n,{icon:rr(wp.element.createElement(B,{className:"components-panel__icon",width:"20",height:"20"}))}),Object(l.a)(()=>{const e=document.createElement("DIV");document.querySelector("body").appendChild(e),Object(a.render)(wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"redux-gradient",height:"0",width:"0",style:{opacity:0}},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"redux-gradient"},wp.element.createElement("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))),e)});const ar=()=>wp.element.createElement(B,{width:"20",height:"20"}),or=()=>wp.element.createElement(On,{width:"20",height:"20"}),ir=()=>rr(wp.element.createElement(B,{width:"20",height:"20"})),sr=()=>wp.element.createElement(vn,{width:"20",height:"20"}),cr=wp.i18n.__,pr=cr("Template Import",redux_templates.i18n),mr=[cr("import",redux_templates.i18n),cr("download",redux_templates.i18n),cr("migrate",redux_templates.i18n)],dr={title:pr,description:cr("Import blocks exported using Redux plugin.",redux_templates.i18n),category:"common",keywords:mr,attributes:{file:{type:"object"}},supports:{align:!0,alignWide:!1,alignFull:!1,customClassName:!1,className:!1,html:!1},transforms:A,edit:P,save:()=>null};var ur,gr,fr,hr=null;class br extends a.Component{constructor(e){super(e),this.state={afterOpen:!1,beforeClose:!1}}close(){this.props.onRequestClose&&!this.props.onRequestClose()||(fr?xr.closeCustomizer():xr.close())}componentDidMount(){const e=this.props,t=e.openTimeoutMS,n=e.closeTimeoutMS;setTimeout(()=>this.setState({afterOpen:!0}),t||150),ur=e=>{this.setState({beforeClose:!0},()=>{this.closeTimer=setTimeout(e,n||150)})}}componentWillUnmount(){ur=null,clearTimeout(this.closeTimer)}render(){return wp.element.createElement(a.Fragment,null,wp.element.createElement("span",{onClick:e=>{this.close()},className:"redux-templates-pagelist-modal-overlay"}," "),wp.element.createElement("div",{className:this.props.compactMode?"redux-templates-modal-inner":"redux-templates-pagelist-modal-inner",onClick:e=>e.stopPropagation()},this.props.children))}}const xr={open(e){ur&&this.close(),gr||((gr=document.createElement("div")).className="redux-templates-builder-modal",document.body.appendChild(gr)),wp.element.render(e,gr),document.body.classList.add("redux-templates-builder-modal-open")},close(){ur&&ur(()=>{wp.element.unmountComponentAtNode(gr),document.body.classList.remove("redux-templates-builder-modal-open")})},openCustomizer(e){fr||(fr=document.createElement("div"),document.body.appendChild(fr)),wp.element.render(e,fr)},closeCustomizer(){fr&&(wp.element.unmountComponentAtNode(fr),fr=!1)},openFeedback(e){!(hr=document.getElementsByClassName("feedback-wrapper"))||hr.length<1?((hr=document.createElement("div")).className="feedback-wrapper",document.body.appendChild(hr)):hr=hr[0],wp.element.render(e,hr)},closeFeedback(){hr&&(wp.element.unmountComponentAtNode(hr),hr=!1)},isCustomizerOpened:()=>!!fr,hide(){document.body.classList.remove("redux-templates-builder-modal-open"),gr.classList.add("hidden")},show(){document.body.classList.add("redux-templates-builder-modal-open"),gr&&gr.classList.remove("hidden")}};var wr=n(249),yr=n.n(wr),vr=n(28),_r=n.n(vr),Er=n(170),kr=n.n(Er),Or=n(88),Sr=n.n(Or),Cr=n(35),jr=n.n(Cr),Nr=n(30),Ir=n.n(Nr),Pr=n(53),Tr=n.n(Pr);const zr=wp.i18n.__;var Ar=function(e){const t=e.onCloseCustomizer,n=e.onNextBlock,r=e.onPrevBlock,l=e.onImport,a=e.pro;return wp.element.createElement("div",{className:"wp-full-overlay-header"},wp.element.createElement("button",{className:"close-full-overlay",onClick:t},wp.element.createElement("span",{className:"screen-reader-text"},zr("Close",redux_templates.i18n))),wp.element.createElement("button",{className:"previous-theme",onClick:r},wp.element.createElement("span",{className:"screen-reader-text"},zr("Previous",redux_templates.i18n))),wp.element.createElement("button",{className:"next-theme",onClick:n},wp.element.createElement("span",{className:"screen-reader-text"},zr("Next",redux_templates.i18n))),!1===a&&wp.element.createElement("a",{className:"button hide-if-no-customize button-primary redux-templates-section-import",onClick:l,"data-import":"disabled"},zr("Import",redux_templates.i18n)))},Dr=n(4),Mr=n(581),Lr=n(250),Rr=n.n(Lr),Br=n(251),Fr=n.n(Br);const Hr=wp.components.Spinner,Vr=redux_templates.plugin+"assets/img/reduxtemplates-medium.jpg",Ur={height:120,display:"flex",alignItems:"top",paddingTop:"40px",justifyContent:"center",background:"#fff"};function Gr({url:e,alt:t,className:n}){return wp.element.createElement(Fr.a,{src:e},wp.element.createElement("img",{alt:t,className:n}),wp.element.createElement("img",{src:Vr,alt:t,className:n}),wp.element.createElement("div",{style:Ur},wp.element.createElement(Hr,null)))}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qr(e){for(var t=1;te in redux_templates.supported_plugins&&redux_templates.supported_plugins[e],Jr=e=>{let t=Xr(e);return t||{name:null,slug:null,url:null}},Xr=e=>{let t=qr({},$r(e));if(!t)return t;if("free_slug"in t&&t.free_slug in redux_templates.supported_plugins){let e=qr({},$r(t.free_slug));e.free_slug=t.free_slug,e.name=t.name,"is_pro"in e||delete e.version,t=e}return t.slug=t.slug?t.slug:e,t},Kr=e=>!!(e&&e.proDependenciesMissing&&e.proDependenciesMissing.length>0)&&(!tl()||e.proDependenciesMissing.filter(e=>!1===Qr(e)).length>0),Zr=e=>!!(e&&e.installDependenciesMissing&&e.installDependenciesMissing.length>0)||!(!tl()||!e.proDependenciesMissing)&&e.proDependenciesMissing.filter(e=>Qr(e)).length>0,Qr=e=>{const t=$r(e);return!1!==t&&!0===t.redux_pro},el=(e,t)=>e&&void 0!==e.proDependencies&&e.proDependencies.length>0?e.proDependencies.reduce((e,n)=>void 0!==t[n]&&(e||t[n].value),!1):e&&void 0!==e.proDependenciesMissing&&e.proDependenciesMissing.length>0,tl=()=>{const e=redux_templates.supported_plugins["redux-framework"];return 1==!!redux_templates.mokama||e&&e.hasOwnProperty("is_pro")};function nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rl(e,t)}(e,t)||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 rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{u(!1)},[t]),"redux"===p){redux_templates.supported_plugins["redux-framework"]}else{redux_templates.supported_plugins[p]}return wp.element.createElement("div",{className:"wp-full-overlay-sidebar-content"},wp.element.createElement("div",{className:"install-theme-info"},wp.element.createElement("h3",{className:"theme-name"},a," ",c&&wp.element.createElement(Dr.Tooltip,{position:"top right",text:il("Full Preview",redux_templates.i18n)},wp.element.createElement("a",{href:c,target:"_blank"},wp.element.createElement("i",{className:"fas fa-external-link-alt"})))),wp.element.createElement("div",{className:"theme-screenshot-wrap"},wp.element.createElement(Gr,{url:o,className:"theme-screenshot"}),n?wp.element.createElement("span",{className:"redux-templates-pro-badge"},il("Premium",redux_templates.i18n)):""),wp.element.createElement("h5",{className:"theme-hash"},wp.element.createElement(Dr.Tooltip,{position:"top center",text:il("Copy the template identifier",redux_templates.i18n)},wp.element.createElement("div",{className:"button-container",onClick:()=>{Rr()(l.substring(0,7)),u(!0),setTimeout((function(){u(!1)}),3500)}},wp.element.createElement("span",{className:"button button-secondary the-copy"},wp.element.createElement("i",{className:"fa fa-copy","aria-hidden":"true"})),wp.element.createElement("span",{className:"button button-secondary the-hash"},l.substring(0,7)),d&&wp.element.createElement("span",{className:"copied hideMe"},wp.element.createElement("br",null),il("copied",redux_templates.i18n)))))),s&&s.length>0&&wp.element.createElement(Dr.PanelBody,{title:il("Required Plugins",redux_templates.i18n),icon:Mr.a,initialOpen:!0},wp.element.createElement(Dr.PanelRow,{className:"requirements-list-div"},wp.element.createElement("div",{className:"requirements-list"},wp.element.createElement("ul",null,s.map(e=>{const n=redux_templates.supported_plugins[e];if(!n)return console.log("Missing plugin details for "+e),null;const l=e.replace("-pro","").replace("-premium","").replace(/\W/g,"").toLowerCase();if("redux"===l)return;const a=r[l];return wp.element.createElement("li",{key:e},a&&wp.element.createElement(a,null),wp.element.createElement("span",{className:"redux-templates-dependency-name"},n.name),Zr(t)&&wp.element.createElement(Dr.Tooltip,{position:"bottom center",text:il("Not Installed",redux_templates.i18n)},wp.element.createElement("div",{className:"redux-icon-wrapper"},wp.element.createElement("i",{className:"fa fa-exclamation-triangle"}))),n.url?wp.element.createElement(Dr.Tooltip,{position:"top right",text:il("Visit Plugin Website",redux_templates.i18n)},wp.element.createElement("span",{className:"pluginURL"},wp.element.createElement("a",{href:n.url,target:"_blank"},wp.element.createElement("i",{className:"fas fa-external-link-alt"})))):null)}))))),i&&i.length>0&&wp.element.createElement(Dr.PanelBody,{title:il("Blocks Used",redux_templates.i18n),icon:Mr.a,initialOpen:!0},wp.element.createElement(Dr.PanelRow,{className:"redux-block-pills"},wp.element.createElement("ul",null,i.map((e,t)=>wp.element.createElement("li",{key:t},wp.element.createElement("span",null,e)))))),"redux"!==p&&wp.element.createElement(Dr.PanelBody,{title:il("Template Details",redux_templates.i18n),icon:Mr.a,initialOpen:!1},wp.element.createElement(Dr.PanelRow,{className:"redux-block-pills"},wp.element.createElement("ul",null,"redux"!==p&&wp.element.createElement("li",null,wp.element.createElement("strong",null,"Author"),": ",p.slice(0,1).toUpperCase()+p.slice(1,p.length))))))}const cl=wp.i18n.__;var pl=function(e){const t=e.previewClass,n=e.expandedClass,r=e.pro,l=e.onChangePreviewClass,a=e.onToggleExpanded,o=e.onImport;return wp.element.createElement("div",{className:"wp-full-overlay-footer"},wp.element.createElement("div",{className:"footer-import-button-wrap redux-templates-import-button-group"},r?wp.element.createElement("div",{className:"action-buttons"},wp.element.createElement("a",{className:"redux-templates-button-download",target:"_blank",href:"http://redux-templates.io/"},wp.element.createElement("i",{className:"fas fa-upload"})," ",cl("Upgrade to Pro",redux_templates.i18n))):wp.element.createElement("a",{className:"button button-hero hide-if-no-customize button-primary redux-templates-import",onClick:o},wp.element.createElement("i",{className:"fas fa-download"})," ",cl("Import",redux_templates.i18n))),wp.element.createElement("button",{type:"button",className:"collapse-sidebar button",onClick:()=>{a("collapsed"===n?"expanded":"collapsed")},"aria-expanded":"true","aria-label":"Collapse Sidebar"},wp.element.createElement("span",{className:"collapse-sidebar-arrow"}),wp.element.createElement("span",{className:"collapse-sidebar-label"},cl("Collapse",redux_templates.i18n))),wp.element.createElement("div",{className:"devices-wrapper"},wp.element.createElement("div",{className:"devices"},[{className:"preview-desktop",screenReaderText:"Enter desktop preview mode"},{className:"preview-tablet",screenReaderText:"Enter tablet preview mode"},{className:"preview-mobile",screenReaderText:"Enter mobile preview mode"}].map((e,n)=>wp.element.createElement("button",{type:"button",className:t===e.className?e.className+" active":e.className,"aria-pressed":"true",key:n,onClick:()=>l(e.className)},wp.element.createElement("span",{className:"screen-reader-text"},e.screenReaderText))))))};var ml=function(e){const t=e.itemData,n=e.previewClass,r=e.expandedClass,l=e.onImport,a=e.onCloseCustomizer,o=e.onChangePreviewClass,i=e.onToggleExpanded,s=e.onNextBlock,c=e.onPrevBlock,p=So(t.pro,t.source);return wp.element.createElement("div",{className:"wp-full-overlay-sidebar"},wp.element.createElement(Ar,{onCloseCustomizer:a,onNextBlock:s,onPrevBlock:c,pro:p,onImport:l}),wp.element.createElement(sl,{itemData:t,pro:p}),wp.element.createElement(pl,{previewClass:n,expandedClass:r,pro:p,onChangePreviewClass:o,onToggleExpanded:i,onImport:l}))};function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setInstalledDependencies:e("redux-templates/sectionslist").setInstalledDependencies}))])((function(e){const t=e.missingPlugins,n=e.toNextStep,r=e.onCloseWizard,l=e.setInstalledDependencies,a=fl(_l(null),2),o=a[0],i=a[1],s=fl(_l([]),2),c=s[0],p=s[1],m=fl(_l([]),2),d=m[0],u=m[1],g=fl(_l(t),2),f=g[0],h=g[1],b=async()=>{p([]),u([]),h(t),i(null),l(!1);let e=[],n=[],r=[...f];for(let a of t){const t=redux_templates.supported_plugins[a];if(r=r.filter(e=>e!==a),h(r),!a||!t){i(null);break}i(ul(ul({},t),{},{pluginKey:a}));const o=t.redux_pro?"&redux_pro=1":"";await bl({path:"redux/v1/templates/plugin-install?slug="+a+o}).then(t=>{t.success?(l(!0),e=[...e,a],p(e),0===r.length&&i(null)):(n=[...n,a],u(n),0===r.length&&i(null))}).catch(e=>{n=[...n,a],u(n),0===r.length&&i(null)})}};return 0===f.length&&0===d.length&&null===o&&n(),wp.element.createElement(vl,null,wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("h5",null,El("Install Required Plugins",redux_templates.i18n)),wp.element.createElement("p",null,El("Plugins needed to import this template are missing. Required plugins will be installed and activated automatically.",redux_templates.i18n)),null===o&&d.length>0&&wp.element.createElement("p",{className:"error installError"},El("The following plugin(s) failed to install properly. Please manually install them yourself before attempting another import.",redux_templates.i18n)),wp.element.createElement("ul",{className:"redux-templates-import-progress"},t&&t.map(e=>{let t=Jr(e);return o&&o.pluginKey===e?wp.element.createElement("li",{className:"installing",key:o.pluginKey},o.name,wp.element.createElement("i",{className:"fas fa-spinner fa-pulse"})):d.includes(e)?wp.element.createElement("li",{className:"failure",key:e},t.name," ",wp.element.createElement("a",{href:t.url,target:"_blank"},wp.element.createElement("i",{className:"fas fa-external-link-alt"}))):f.includes(e)?wp.element.createElement("li",{className:"todo",key:e},t.name," ",t.url&&wp.element.createElement("a",{href:t.url,target:"_blank"},wp.element.createElement("i",{className:"fas fa-external-link-alt"}))):c.includes(e)?wp.element.createElement("li",{className:"success",key:e},t.name," ",wp.element.createElement("i",{className:"fas fa-check-square"})):void 0}))),wp.element.createElement("div",{className:"redux-templates-modal-footer"},0!==f.length&&wp.element.createElement("button",{className:"button button-primary",disabled:null!==o,onClick:()=>b()},null!==o&&wp.element.createElement("i",{className:"fas fa-spinner fa-pulse"}),wp.element.createElement("span",null,El("Install",redux_templates.i18n))),wp.element.createElement("button",{className:"button button-secondary",disabled:null!==o,onClick:r},El("Cancel",redux_templates.i18n))))}));const Ol=wp.i18n.__;function Sl(e){const t=e.toProActivateStep;return wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("div",{className:"section-box premium-box"},wp.element.createElement("h3",null,Ol("Upgrade to Redux Pro",redux_templates.i18n)),wp.element.createElement("p",null,Ol("Thanks for giving our library a try! Upgrade to Redux Pro to unlock even more designs and to continue using our library.",redux_templates.i18n)),wp.element.createElement("p",null,wp.element.createElement("a",{href:redux_templates.u+"import_wizard",className:"redux-templates-upgrade-button",title:"{__('Redux Pro', redux_templates.i18n)}",target:"_blank"},Ol("Upgrade Now Just $49",redux_templates.i18n)),wp.element.createElement("small",null,wp.element.createElement("em",null,"Limited time only"))),wp.element.createElement("p",{className:"subscription_key_button"},wp.element.createElement("button",{type:"button",className:"components-button","aria-label":"I have a subscription key",onClick:()=>{t()}},"I have a subscription key"))))}const Cl=wp.element.Fragment,jl=wp.i18n.__;function Nl(e){const t=e.missingPros,n=e.onCloseWizard;return t.indexOf("redux-pro")>=0?wp.element.createElement(Sl,null):wp.element.createElement(Cl,null,wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("h5",null,jl("Additional Plugins Required",redux_templates.i18n)),wp.element.createElement("p",null,jl("The following premium plugin(s) are required to import this template:",redux_templates.i18n)),wp.element.createElement("ul",{className:"redux-templates-import-progress"},t.map(e=>{let t=Jr(e);return wp.element.createElement("li",{className:"installing",key:e},t.name," ",t.url&&wp.element.createElement("a",{href:t.url,target:"_blank"},wp.element.createElement("i",{className:"fas fa-external-link-alt"})))}))),wp.element.createElement("div",{className:"redux-templates-modal-footer"},wp.element.createElement("a",{className:"button button-secondary",onClick:n},jl("Close",redux_templates.i18n))))}wp.apiFetch;const Il=wp.compose.compose,Pl=wp.data.withDispatch,Tl=wp.element,zl=Tl.Fragment,Al=(Tl.useState,wp.i18n.__);var Dl=Il([Pl(e=>({setImportToAppend:e("redux-templates/sectionslist").setImportToAppend}))])((function(e){const t=e.setImportToAppend,n=e.toNextStep,r=e.onCloseWizard,l=e=>{t(e),n()};return wp.element.createElement(zl,null,wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("h5",null,Al("Append or Replace",redux_templates.i18n)),wp.element.createElement("p",null,Al("You have existing content on this page. How would you like to handle the import of this page template?",redux_templates.i18n)),wp.element.createElement("div",{style:{textAlign:"center",marginTop:"30px"}},wp.element.createElement("button",{className:"button button-primary",onClick:()=>l(!0),style:{marginRight:"10px"}},Al("Append to Content",redux_templates.i18n)),wp.element.createElement("button",{className:"button button-primary",onClick:()=>l(!1)},Al("Replace all Content",redux_templates.i18n)))),wp.element.createElement("div",{className:"redux-templates-modal-footer"},wp.element.createElement("button",{className:"button button-secondary",onClick:r},Al("Cancel",redux_templates.i18n))))})),Ml=n(171),Ll=n.n(Ml);function Rl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bl(e,t)}(e,t)||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 Bl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{n.current=e},[e]),Vl(()=>{if(null!==t){let e=setInterval((function(){n.current()}),t);return()=>clearInterval(e)}},[t])}(()=>{n!==ql.length&&(r(e=>e+1),o([ql[n+1]]))},4e3),wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("div",{className:"redux-templates-import-wizard-spinner-wrapper"},wp.element.createElement(Ll.a,{text:a,springConfig:Ml.presets.gentle}),wp.element.createElement(Gl,null)))}function $l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jl(e,t)}(e,t)||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 Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{redux_templates.supported_plugins["redux-pro"].version?(redux_templates.mokama=!0,delete redux_templates.left,d()):(o(Kl("Installing Redux Pro.",redux_templates.i18n)),await ea({path:"redux/v1/templates/plugin-install?slug=redux-pro&redux_pro=1"}).then(e=>{e.success?(o(Kl("Redux Pro successfully installed!",redux_templates.i18n)),redux_templates.mokama=!0,delete redux_templates.left,d()):o(Kl("Install of Redux Pro failed, please try again.",redux_templates.i18n))}).catch(e=>{o(Kl("There seems to be an API issue. Please contact Redux support or try again.",redux_templates.i18n)),r(null)}))},g=async()=>{r(!0),o(Kl("Validating license key.",redux_templates.i18n)),await ea({path:"redux/v1/templates/license?key="+p}).then(e=>{e.success?(o(Kl("API key activated, installing Redux Pro.",redux_templates.i18n)),(async()=>{redux_templates.supported_plugins["redux-framework"].plugin?u():(o(Kl("Installing the redux-framework plugin.",redux_templates.i18n)),await ea({path:"redux/v1/templates/plugin-install?slug=redux-framework"}).then(e=>{e.success?u():(o(Kl("Install of Redux Pro failed, please try again.",redux_templates.i18n)),r(null))}).catch(e=>{o(Kl("There seems to be an API issue. Please contact Redux support or try again.",redux_templates.i18n)),r(null)}))})()):(e.msg?o(e.msg):o(Kl("License key failed to activate. Please try again.",redux_templates.i18n)),r(null))}).catch(e=>{o(Kl("There seems to be an API issue. Please contact Redux support or try again.",redux_templates.i18n)),r(null)})};return wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("div",{className:"section-box premium-box"},wp.element.createElement("h3",null,Kl("Activate Redux Pro",redux_templates.i18n)),wp.element.createElement("div",{className:s},a),wp.element.createElement("p",null,wp.element.createElement("input",{type:"text",placeholder:Kl("Enter your subscription key",redux_templates.i18n),value:p,onChange:e=>{m(e.target.value)},disabled:null!==n})),wp.element.createElement("p",{className:"subscription_key"},wp.element.createElement("button",{className:"redux-pro-activate-button","aria-label":"Activate my key",disabled:null!==n,onClick:()=>g()},null!==n&&wp.element.createElement("i",{className:"fas fa-spinner fa-pulse"}),wp.element.createElement("span",null,Kl("Activate & Install Pro",redux_templates.i18n)))),wp.element.createElement("p",{style:{fontSize:"1.1em",paddingTop:"10px"}},wp.element.createElement("small",null,wp.element.createElement("em",{dangerouslySetInnerHTML:{__html:redux_templates.tos.replace(Kl("Register",redux_templates.i18n),Kl("Activate",redux_templates.i18n))}})," ",wp.element.createElement("br",null),wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:Zl(Kl('Visit the account dashboard to recover your subscription key.',redux_templates.i18n),"https://redux.io/account/?utm_source=plugin-installation&utm_campaign=import_wizard&utm_medium=appsero&utm_content=activate_pro")}})))))}const na=wp.i18n.__;function ra({onActivateRedux:e,activating:t}){return wp.element.createElement("div",{className:"redux-templates-modal-body"},wp.element.createElement("div",{className:"section-box premium-box"},wp.element.createElement("h3",null,na("Registration Required to Import Templates",redux_templates.i18n)),wp.element.createElement("p",null,na(" Register now to import templates from the Redux template library in a single click.",redux_templates.i18n)),wp.element.createElement("ul",null,wp.element.createElement("li",null,wp.element.createElement("strong",null,na("Unlimited",redux_templates.i18n))," ",na("use of our free templates.",redux_templates.i18n)),wp.element.createElement("li",null,wp.element.createElement("strong",null,na("Updates",redux_templates.i18n))," ",na("to the library.",redux_templates.i18n)),wp.element.createElement("li",null,wp.element.createElement("strong",null,na("Google Fonts",redux_templates.i18n))," ",na("manual updates.",redux_templates.i18n))),wp.element.createElement("p",null,wp.element.createElement("button",{className:"button button-primary",disabled:t,onClick:()=>e()},t&&wp.element.createElement("i",{className:"fas fa-spinner fa-pulse",style:{marginRight:"5px"}}),wp.element.createElement("span",null,na("Register for Free",redux_templates.i18n)))),wp.element.createElement("p",{style:{fontSize:"1.1em"}},wp.element.createElement("small",null,wp.element.createElement("em",{dangerouslySetInnerHTML:{__html:redux_templates.tos}})))))}n(200),n(359);function la(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aa(e,t)}(e,t)||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 aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("redux-templates/sectionslist");return{setImportingTemplate:t.setImportingTemplate,setActivateDialogDisplay:t.setActivateDialogDisplay,appendErrorMessage:t.appendErrorMessage}}),pa((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getChallengeOpen,l=n.getImportingTemplate,a=n.getActivateDialogDisplay,o=n.getInstalledDependencies,i=e("core/editor").isEditedPostEmpty;return{isChallengeOpen:r(),importingTemplate:l(),activateDialogDisplay:a(),isPostEmpty:i(),isInstalledDependencies:o()}})])((function(e){const t=e.startImportTemplate,n=e.setImportingTemplate,r=e.setActivateDialogDisplay,l=e.appendErrorMessage,a=e.isChallengeOpen,o=e.importingTemplate,i=e.activateDialogDisplay,s=e.isPostEmpty,c=e.isInstalledDependencies,p=la(da(0),2),m=p[0],d=p[1],u=la(da(!1),2),g=u[0],f=u[1],h=la(da(!1),2),b=h[0],x=h[1],w=la(da([]),2),y=w[0],v=w[1];ua(()=>{if(o){o.proDependenciesMissing||(o.proDependenciesMissing=[]),o.installDependenciesMissing||(o.installDependenciesMissing=[]);const e=!1===isNaN(redux_templates.left)?parseInt(redux_templates.left):0;if(!1==!!redux_templates.mokama&&e<1&&-9!==m&&999!==m)return void d(-10);if((e=>{if(!e)return!1;return[].concat(e.installDependenciesMissing,e.proDependenciesMissing).reduce((e,t)=>!1===tl()&&"redux-pro"===t||(e||Qr(t)&&!1===tl()),!1)})(o))return void(-9!==m&&d(-10));if(o&&0===m&&!1===Kr(o)&&(d(1),tl()?v([].concat(o.proDependenciesMissing,o.installDependenciesMissing).filter(e=>e)):v(o.installDependenciesMissing.filter(e=>e))),o&&1===m&&!1===Zr(o)&&d(!1===s?2:3),o&&2===m&&!0===s&&d(3),o&&3===m&&!1===g){f(!0);try{t()}catch(e){console.log("importing exception",e),f(!1),d(1),n(null)}}}},[o,m,i]),ua(()=>{!0===i&&(d(999),r(!1))},[i]),ua(()=>{r(!1)},[]);const _=()=>{a||d(m+1)},E=()=>{a||g||(d(1),n(null))};return a&&1!==m&&d(1),o?wp.element.createElement("div",{className:"redux-templates-modal-overlay"},wp.element.createElement("div",{className:"redux-templates-modal-wrapper","data-tut":"tour__import_wizard"},wp.element.createElement("div",{className:"redux-templates-modal-header"},wp.element.createElement("h3",null,oa("Import Wizard",redux_templates.i18n)),wp.element.createElement("button",{className:"redux-templates-modal-close",onClick:E},wp.element.createElement("i",{className:"fas fa-times"}))),wp.element.createElement("div",{className:"redux-templates-importmodal-content"},0===m&&Kr(o)&&wp.element.createElement(Nl,{missingPros:o.proDependenciesMissing,onCloseWizard:E}),1===m&&wp.element.createElement(kl,{missingPlugins:a?fa:y,toNextStep:_,onCloseWizard:E}),2===m&&wp.element.createElement(Dl,{toNextStep:_,onCloseWizard:E}),3===m&&wp.element.createElement(Wl,null),999===m&&wp.element.createElement(ra,{onActivateRedux:()=>{x(!0),ga({path:"redux/v1/templates/activate"}).then(e=>{e.success&&(redux_templates.left=e.data.left),d(0),x(!1)}).catch(e=>{l(e.code+" : "+e.message),d(0),x(!1)})},activating:b}),-9===m&&wp.element.createElement(ta,{toPluginStep:()=>{d(0)}}),-10===m&&wp.element.createElement(Sl,{toProActivateStep:()=>{d(-9)}}),c&&wp.element.createElement("iframe",{src:"./",width:"0",height:"0"})))):null}));n(361);function ba(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xa(e,t)}(e,t)||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 xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{let n,r;switch(t.type){case"INDEX":n=e.currentPageData;break;case"DATA":n=t.currentPageData}const l=n[t.currentIndex];return r=l.image_full?l.image_full:l.image,{currentPageData:n,currentIndex:t.currentIndex,imageURL:r,itemData:l}};var Ia=wa([va(e=>{const t=e("redux-templates/sectionslist");return{setImportingTemplate:t.setImportingTemplate,setCustomizerOpened:t.setCustomizerOpened}}),_a((e,t)=>({importingTemplate:(0,e("redux-templates/sectionslist").getImportingTemplate)()}))])((function(e){const t=e.startIndex,n=e.currentPageData,r=e.setImportingTemplate,l=e.importingTemplate,a=ba(Sa(Na,ja),2),o=a[0],i=a[1],s=ba(ka("preview-desktop"),2),c=s[0],p=s[1],m=ba(ka("expanded"),2),d=m[0],u=m[1],g=ba(ka(null),2),f=g[0],h=g[1],b=ba(ka(1),2),x=b[0],w=b[1],y=ba(ka("wp-full-overlay sites-preview theme-install-overlay "),2),v=y[0],_=y[1];Oa(()=>{const e=({keyCode:e})=>{h(e)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]),Oa(()=>{null!==f&&(37===f&&k(),39===f&&E(),h(null))},[f]),Oa(()=>{!1===isNaN(t)&&n&&i({type:"DATA",currentIndex:t,currentPageData:n})},[t,n]),Oa(()=>{_(["wp-full-overlay sites-preview theme-install-overlay ",c,d].join(" "))},[c,d]);const E=()=>{o.currentIndex{o.currentIndex>0&&(w(),i({type:"INDEX",currentIndex:o.currentIndex-1}))},O=()=>{w(0),setTimeout(()=>{w(1)},100)};return o&&o.itemData?wp.element.createElement(D.Fragment,null,wp.element.createElement("div",{className:v,style:{display:"block"}},wp.element.createElement(ml,{itemData:o.itemData,previewClass:c,expandedClass:d,onNextBlock:E,onPrevBlock:k,onCloseCustomizer:()=>{xr.closeCustomizer()},onToggleExpanded:e=>u(e),onImport:()=>{r(o.itemData),xr.closeCustomizer()},onChangePreviewClass:e=>p(e)}),wp.element.createElement("div",{className:"wp-full-overlay-main loaded"},x<2&&wp.element.createElement(Ca,null),o.itemData.url&&wp.element.createElement("iframe",{src:0===x?"":o.itemData.url+"?preview=1",target:"Preview",onLoad:()=>{w(2)}}),!o.itemData.url&&wp.element.createElement("div",{className:"redux-templates-modal-preview-box"},wp.element.createElement(Gr,{url:o.imageURL})))),l&&wp.element.createElement(ha,{startImportTemplate:()=>{l&&so()}})):null})),Pa=n(272),Ta=n(65);function za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{u?u():xr.closeFeedback()},_=m?{width:m}:null,E=m?"redux-templates-modal-wrapper feedback-popup-wrapper less-margin":"redux-templates-modal-wrapper feedback-popup-wrapper";return wp.element.createElement("div",{className:"redux-templates-modal-overlay"},wp.element.createElement("div",{className:E,style:_},wp.element.createElement("div",{className:"feedback-popup-header feedback-popup-header-contact"},a,i,wp.element.createElement("a",{className:"feedback-popup-close",onClick:v},wp.element.createElement("i",{className:"fas fa-times"}))),wp.element.createElement("div",{className:"feedback-popup-content"},wp.element.createElement("h3",null,t),w&&wp.element.createElement("p",{className:"error-message"},w),wp.element.createElement("p",null,n),wp.element.createElement("div",{className:"col-wrapper"},wp.element.createElement(Pa.a,{schema:r,uiSchema:l,onSubmit:({formData:e})=>{const t="redux/v1/templates/"+(p||"feedback");h||(b(!0),Ba({path:t,method:"POST",data:c?e:Aa(Aa({},s),e)}).then(e=>{b(!1),e.success?(y(null),g?g(e):v()):(console.log("There was an error: ",e),y(Object(o.__)("An unexpected error occured, please try again later.",redux_templates.i18n)))}).catch(e=>{b(!1),console.log("There was an error: ",e),y(Object(o.__)("An unexpected error occured, please try again later.",redux_templates.i18n))}))}},wp.element.createElement("button",{className:"feedback-popup-btn feedback-popup-rate-btn",type:"submit"},h&&wp.element.createElement("i",{className:"fas fa-spinner fa-pulse"}),d)),s&&s.editor_blocks&&wp.element.createElement("div",{className:"preview-panel"},wp.element.createElement("div",{className:"redux-templates-block-preview-hover"}),wp.element.createElement(Ta.BlockPreview,{blocks:s.editor_blocks}))))," "))};const Ha=wp.blocks,Va=Ha.parse,Ua=Ha.createBlock,Ga=wp.apiFetch,Ya=wp.data,qa=Ya.dispatch,Wa=Ya.select,$a=Wa("core/block-editor").getBlockOrder,Ja=Wa("core/blocks").getBlockTypes,Xa=qa("core/editor"),Ka=Xa.savePost,Za=Xa.editPost,Qa=qa("core/block-editor"),eo=Qa.insertBlocks,to=Qa.removeBlocks,no=Qa.multiSelect,ro=qa("core/notices"),lo=ro.createSuccessNotice,ao=ro.createErrorNotice,oo=ro.createNotice,io=(ro.removeNotice,(e,t)=>{let n=null;if("template"in e)n=Va(e.template);else if("attributes"in e){if("innerBlocks"in e||(e.innerBlocks=[]),"name"in e||go("Template malformed, `name` for block not specified."),!0===t)return window.redux_templates_tempdata=[...window.redux_templates_tempdata,e],null;n=Ua(e.name,e.attributes,e.innerBlocks)}else go("Template error. Please try again.");return n}),so=()=>{const e=qa("redux-templates/sectionslist"),t=e.setImportingTemplate,n=e.discardAllErrorMessages,r=(e.clearSearch,"section"===Wa("redux-templates/sectionslist").getActiveItemType()?"sections":"pages"),l=Wa("redux-templates/sectionslist").getImportingTemplate(),a=Wa("redux-templates/sectionslist").getInstalledDependencies(),o=Wa("redux-templates/sectionslist").getImportToAppend();"pages"===r?Za({template:"redux-templates_full_width"}):""===Wa("core/editor").getEditedPostAttribute("template")&&Za({template:"redux-templates_contained"}),n();let i="redux/v1/templates/template?type="+r+"&id="+l.id+"&uid="+window.userSettings.uid;"source"in l&&(i+="&source="+l.source);const s={method:"GET",path:i,headers:{"Content-Type":"application/json","Registered-Blocks":uo()}};if(qa("core/edit-post")&&"text"===Wa("core/edit-post").getEditorMode()){(0,qa("core/edit-post").switchEditorMode)()}window.redux_templates_tempdata=[],Ga(s).then(e=>{if(co(e.data,{type:"snackbar"}),!1===o){const e=$a();no(e[0],e[e.length-1]),to(e)}if(e.success&&e.data){let n=e.data;"1"!==redux_templates.mokama&&!1===isNaN(n.left)&&(redux_templates.left=n.left);let r=[];r=n.hasOwnProperty("template")||n.hasOwnProperty("attributes")?io(n,a):Object.keys(n).filter(e=>"cache"!==e).map(e=>io(n[e],a)),localStorage.setItem("importing_data",JSON.stringify(l)),localStorage.setItem("block_data",JSON.stringify(redux_templates_tempdata)),localStorage.setItem("is_appending",o),eo(r),lo("Template inserted",{type:"snackbar"}),!0===a?Ka().then(()=>window.location.reload()).catch(()=>ao("Error while saving the post",{type:"snackbar"})):(xr.close(),xr.closeCustomizer(),t(null)),po(l,r)}else!1===e.success?go(e.data.message):go(e.data.error)}).catch(e=>{go(e.code+" : "+e.message)})},co=(e,t)=>{if(e&&e.message){const n=e.messageType||"info";oo(n,e.message,t)}},po=(e,t)=>{const n=(e=>!0===Array.isArray(e)?e.filter(e=>!1===e.isValid):e&&!1===e.isValid?[e]:null)(t);let r="";n&&n.length<1&&(r=n.map(e=>e.validationIssues&&Array.isArray(e.validationIssues)?e.validationIssues.map(e=>sprintf(...e.args)).join("\n"):null).join("\n"));const l={type:"object",properties:{theme_plugins:{type:"boolean",title:Object(o.__)("Send theme and plugins",redux_templates.i18n),default:!0},send_page_content:{type:"boolean",title:Object(o.__)("Send page content",redux_templates.i18n),default:!0},template_id:{type:"string",default:e.hash,title:Object(o.__)("Template ID",redux_templates.i18n)},description:{type:"string",default:r,title:Object(o.__)("Description",redux_templates.i18n)}}},a={description:{"ui:widget":"textarea"},template_id:{"ui:disabled":!0,classNames:"fixed-control"}},i={content:t};n&&n.length>0&&oo("error","Please let us know if there was an issue importing this Redux template.",{isDismissible:!0,id:"redux-templatesimportfeedback",actions:[{onClick:()=>xr.openFeedback(wp.element.createElement(Fa,{title:Object(o.__)("Thank you for reporting an issue.",redux_templates.i18n),description:Object(o.__)("We want to make Redux perfect. Please send whatever you are comfortable sending, and we will do our best to resolve the problem.",redux_templates.i18n),schema:l,uiSchema:a,data:i,ignoreData:!0,headerImage:wp.element.createElement("img",{className:"header-background",src:redux_templates.plugin+"assets/img/popup-contact.png"}),buttonLabel:Object(o.__)("Submit Feedback",redux_templates.i18n)})),label:"Report an Issue",isPrimary:!0}]})},mo=()=>{const e=qa("redux-templates/sectionslist"),t=e.setLoading,n=e.setLibrary;t(!0),Ga({path:"redux/v1/templates/library?no_cache=1",method:"POST",data:{registered_blocks:uo()}}).then(e=>{t(!1),n(e.data)}).catch(e=>{go(e)})},uo=()=>{let e=Ja(),t=Object.keys(e).map(t=>{if(!e[t].name.includes("core"))return e[t].name.split("/")[0]});return[...new Set(t)].filter((function(e){return e}))},go=e=>{const t=qa("redux-templates/sectionslist"),n=t.appendErrorMessage,r=t.setImportingTemplate,l=t.setActivateDialogDisplay;"Please activate Redux"===e?(l(!0),redux_templates.left=0):(n(e),r(null))};function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;te[e.activeItemType],ko=e=>e?Object.keys(e).map(t=>ho(ho({},e[t]),{},{ID:t})):[],Oo=e=>{let t=[],n={};return e.forEach(e=>{e.categories&&e.categories.map(r=>{let l=yr()(r);l in n||(n[l]=[]),n[l].push(e);let a=-1;t.forEach((n,r)=>{l==n.slug&&(a=r,t[r].ids.push(e.id))}),-1===a&&t.push({name:r,slug:l,ids:[e.id]})})}),{categories:t,data:n}},So=(e,t)=>t&&redux_templates.supported_plugins.hasOwnProperty(t)?e&&!redux_templates.supported_plugins[t].is_pro:e&&"1"!==redux_templates.mokama,Co=(e,t,n)=>{const r="redux_"+e,l={value:t,expiry:(new Date).getTime()+n};localStorage.setItem(r,JSON.stringify(l))},jo=(e,t=null)=>{const n="redux_"+e,r=localStorage.getItem(n);if(!r)return t;const l=JSON.parse(r);return(new Date).getTime()>l.expiry?(localStorage.removeItem(n),t):l.value},No={large:2,medium:3,small:4},Io={large:20,medium:30,small:40},Po=e=>{Object.keys(redux_templates.supported_plugins).filter(e=>!1===zo(e));return e.reduce((e,t)=>{let n=!0;return To(t)&&"redux-pro"!==t&&!1===Qr(t)&&(n=!1),ho(ho({},e),{},{[t]:{value:n,disabled:!1}})},{[_o]:{value:!0,disabled:!1},"redux-pro":{value:!0,disabled:!1}})},To=e=>{const t=$r(e);return t&&t.hasOwnProperty("free_slug")},zo=e=>{const t=$r(e),n=$r(t.free_slug);return n.hasOwnProperty("version")&&n.hasOwnProperty("is_pro")&&!1!==n.is_pro},Ao=()=>{var e=localStorage.getItem("reduxChallengeStep");return null===e?-1:e=parseInt(e,10)},Do=e=>{const t=$r(e);return t.free_slug&&!t.redux_pro&&!t.version};function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t({type:"SET_LIBRARY",library:e}),fetchLibraryFromAPI:e=>({type:"FETCH_LIBRARY_FROM_API",path:e}),setActiveItemType:e=>({type:"SET_ACTIVE_ITEM_TYPE",activeItemType:e}),setActiveCategory:e=>({type:"SET_ACTIVE_CATEGORY",activeCategory:e}),setActiveCollection:e=>({type:"SET_ACTIVE_COLLECTION",activeCollection:e}),setActivePriceFilter:e=>({type:"SET_ACTIVE_PRICE_FILTER",activePriceFilter:e}),setSearchContext:e=>({type:"SET_SEARCH_CONTEXT",searchContext:e}),setDependencyFilters:e=>({type:"SET_DEPENDENCY_FILTERS",dependencyFilters:e}),setCurrentPage:e=>({type:"SET_CURRENT_PAGE",currentPage:e}),setLoading:e=>({type:"SET_LOADING",loading:e}),setColumns:e=>({type:"SET_COLUMNS",columns:e}),setSortBy:e=>({type:"SET_SORT_BY",sortBy:e}),appendErrorMessage:e=>({type:"APPEND_ERROR_MESSAGE",errorMessage:e||"Unknown Error"}),discardAllErrorMessages:()=>({type:"DISCARD_ALL_ERROR_MESSAGES"}),setInstalledDependencies:e=>({type:"SET_INSTALLED_DEPENDENCIES",installedDependencies:e}),setTourOpen:e=>({type:"SET_TOUR_OPEN",isTourOpen:e}),setTourActiveButtonGroup:e=>({type:"SET_TOUR_ACTIVE_BUTTON_GROUP",data:e}),setTourPreviewVisible:e=>({type:"SET_PREVIEW_VISIBLE",isVisible:e}),setImportingTemplate:e=>({type:"SET_IMPORTING_TEMPLATE",importingTemplate:e}),setChallengeStep:e=>({type:"SET_CHALLENGE_STEP",data:e}),setChallengeOpen:e=>({type:"SET_CHALLENGE_OPEN",data:e}),setChallengeTooltipRect:e=>({type:"SET_CHALLENGE_TOOLTIP_RECT",data:e}),setChallengeFinalStatus:e=>({type:"SET_CHALLENGE_FINAL_STATUS",data:e}),setChallengePassed:e=>({type:"SET_CHALLENGE_PASSED",data:e}),setChallengeListExpanded:e=>({type:"SET_CHALLENGE_LIST_EXPANDED",data:e}),setActivateDialogDisplay:e=>({type:"SET_ACTIVATE_DIALOG_DISPLAY",data:e}),setImportToAppend:e=>({type:"SET_IMPORT_TO_APPEND",data:e}),setDependencyFilterRule:e=>({type:"SET_DEPENDENCY_FILTER_RULE",data:e}),selectDependencies:e=>({type:"SELECT_DEPENDENCIES",data:e}),clearSearch:()=>({type:"CLEAR_SEARCH"}),clearState:()=>({type:"CLEAR_STATE"})};var Ho=n(169),Vo=n.n(Ho),Uo=n(268),Go=n.n(Uo),Yo=n(269),qo=n.n(Yo);const Wo=(e,t)=>{let n=[],r=[];if(t&&e[t]&&Array.isArray(e[t])&&e[t].length>0)e[t].map(e=>{r.indexOf(e.ID)>-1||(n.push(e),r.push(e.ID))});else for(let t in e)Array.isArray(e[t])&&e[t].map(e=>{r.indexOf(e.ID)>-1&&(!e.parentID||r.indexOf(e.ID)>-1)||(n.push(e),r.push(e.ID))});return n},$o=(e,t)=>{let n=t.toLowerCase();if(Array.isArray(e))return e.filter(e=>-1!==e.name.toLowerCase().indexOf(n));{let t={};return Object.keys(e).forEach(r=>{t[r]=e[r].filter(e=>-1!=e.name.toLowerCase().indexOf(n))}),t}},Jo=(e,t,n)=>{if(""!==t){if(Array.isArray(e))return e.filter(e=>"free"===t?!1===el(e,n):"pro"===t?el(e,n):void 0);{let r={};return Object.keys(e).forEach(l=>{r[l]=e[l].filter(e=>"free"===t?!1===el(e,n):"pro"===t?el(e,n):void 0)}),r}}return e},Xo=(e,t,n)=>{const r=Qo(t);if(Array.isArray(e))return e.filter(e=>Ko(e,r,n));{let t={};return Object.keys(e).forEach(l=>{t[l]=e[l].filter(e=>Ko(e,r,n))}),t}},Ko=(e,t,n)=>{if(!e.dependencies||0===Object.keys(e.dependencies).length)return t.includes(_o);const r=e.dependencies.filter(e=>t.includes(e));return n?e.dependencies.length===r.length:r.length>0},Zo=e=>null!=e&&e.hasOwnProperty("value")?!0===e.value:!0===e,Qo=e=>Object.keys(e).filter(t=>!0===e[t].value);function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t"collection"===e.activeItemType&&null!==e.collection.activeCollection?((e,t)=>{let n=e.collections[t],r=n.pages.filter(e=>e!==n.homepage).map(t=>ho(ho({},e.pages[t]),{},{ID:t}));return r=jr()(r,"name"),n.homepage&&e.pages[n.homepage]&&r.unshift(e.pages[n.homepage]),r})(e.library,e.collection.activeCollection):Eo(e).data,oi=e=>Eo(e).priceFilter,ii=e=>"saved"!==e.activeItemType?Eo(e).searchContext:null,si=e=>e[e.activeItemType].activeCategory,ci=e=>ti(ti({},pi(e)),Eo(e).dependencyFilters),pi=e=>{const t=e[e.activeItemType||"section"];return[...t.wholePlugins,...t.thirdPartyPlugins].reduce((e,t)=>ti(ti({},e),{},{[t]:{value:!1}}),void 0)},mi=e=>e[e.activeItemType].dependencyFilterRule;li("redux-templates/sectionslist",{reducer:(e=Bo,t)=>{switch(t.type){case"SET_LIBRARY":if(!t.library.dependencies)return e;redux_templates.supported_plugins=t.library.plugins;const r=Po(Object.keys(t.library.dependencies)),l=(e=>{const t=ko(e),n=_r()(Tr()(Ir()(t,"dependencies"))),r=n.filter(e=>!Do(e)),l=n.filter(e=>Do(e)),a=Oo(t),o=a.categories.map(e=>({label:e.name,value:e.slug}));return Co("section_categories_list",o,432e6),ho(ho({},a),{},{wholePlugins:r,thirdPartyPlugins:l})})(t.library.sections),a=(e=>{const t=ko(e),n=_r()(Tr()(Ir()(t,"dependencies"))),r=n.filter(e=>!Do(e)),l=n.filter(e=>Do(e)),a=Oo(t),o=a.categories.map(e=>({label:e.name,value:e.slug}));return Co("page_categories_list",o,432e6),ho(ho({},a),{},{wholePlugins:r,thirdPartyPlugins:l})})(t.library.pages),o=(e=>{let t=ko(e.collections);t=t.filter(e=>e.pages&&e.pages.length>0),t=t.map(t=>(t.homepage&&e.pages[t.homepage]?t.homepageData=e.pages[t.homepage]:t.homepageData=e.pages[t.pages[0]],t.pages&&(t.installDependenciesMissing=_r()(kr()(Sr()(t.pages.map(t=>e.pages[t].installDependenciesMissing||[])))),t.proDependenciesMissing=_r()(kr()(Sr()(t.pages.map(t=>e.pages[t].proDependenciesMissing||[]))))),t));const n=_r()(Tr()(Ir()(t,"dependencies"))),r=n.filter(e=>!Do(e)),l=n.filter(e=>Do(e));return ho(ho({},Oo(t)),{},{dependencyFilters:ho({[_o]:!0},e.dependencies),wholePlugins:r,thirdPartyPlugins:l})})(t.library);return redux_templates.stats={dependencies:Object.keys(t.library.dependencies).length,pages:Object.keys(t.library.pages).length,sections:Object.keys(t.library.sections).length,collections:Object.keys(t.library.collections).length},Lo(Lo({},e),{},{loading:!1,library:t.library,section:Lo(Lo(Lo({},e.section),l),{},{dependencyFilters:jo("section_plugin")?jo("section_plugin"):r}),page:Lo(Lo(Lo({},e.page),a),{},{dependencyFilters:jo("page_plugin")?jo("page_plugin"):r}),collection:Lo(Lo(Lo({},e.collection),o),{},{dependencyFilters:jo("collection_plugin")?jo("collection_plugin"):r})});case"SET_ACTIVE_CATEGORY":return Co(e.activeItemType+"_category",t.activeCategory,432e6),Co(e.activeItemType+"_page",0,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{currentPage:0,activeCategory:t.activeCategory})});case"SET_SEARCH_CONTEXT":return Co(e.activeItemType+"_search",t.searchContext,432e6),Co(e.activeItemType+"_page",0,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{currentPage:0,searchContext:t.searchContext})});case"SET_ACTIVE_PRICE_FILTER":return Co(e.activeItemType+"_price",t.activePriceFilter,432e6),Co(e.activeItemType+"_page",0,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{currentPage:0,priceFilter:t.activePriceFilter})});case"SET_ACTIVE_ITEM_TYPE":return Co("itemType",t.activeItemType,432e6),Lo(Lo({},e),{},{activeItemType:t.activeItemType});case"SET_DEPENDENCY_FILTERS":return Co(e.activeItemType+"_plugin",t.dependencyFilters,432e6),Co(e.activeItemType+"_page",0,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{currentPage:0,dependencyFilters:t.dependencyFilters})});case"SET_SORT_BY":return Co(e.activeItemType+"_sort",t.sortBy,432e6),Co(e.activeItemType+"_page",0,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{currentPage:0,sortBy:t.sortBy})});case"SET_CURRENT_PAGE":return Co(e.activeItemType+"_page",t.currentPage,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{currentPage:t.currentPage})});case"SET_ACTIVE_COLLECTION":return Lo(Lo({},e),{},{collection:Lo(Lo({},e.collection),{},{activeCollection:t.activeCollection})});case"SET_LOADING":return Lo(Lo({},e),{},{loading:t.loading});case"SET_COLUMNS":return Co("column",t.columns,432e6),Lo(Lo({},e),{},{columns:t.columns});case"APPEND_ERROR_MESSAGE":return Lo(Lo({},e),{},{errorMessages:e.errorMessages.concat([t.errorMessage])});case"DISCARD_ALL_ERROR_MESSAGES":return Lo(Lo({},e),{},{errorMessages:[]});case"SET_INSTALLED_DEPENDENCIES":return Lo(Lo({},e),{},{installedDependencies:t.installedDependencies});case"SET_TOUR_OPEN":return Lo(Lo({},e),{},{tour:Lo(Lo({},e.tour),{},{isOpen:t.isTourOpen})});case"SET_TOUR_ACTIVE_BUTTON_GROUP":return Lo(Lo({},e),{},{tour:Lo(Lo({},e.tour),{},{activeButtonGroup:t.data})});case"SET_PREVIEW_VISIBLE":return Lo(Lo({},e),{},{tour:Lo(Lo({},e.tour),{},{isPreviewVisible:t.isVisible})});case"SET_IMPORTING_TEMPLATE":return Lo(Lo({},e),{},{importingTemplate:t.importingTemplate});case"SET_CHALLENGE_STEP":return n=t.data,localStorage.setItem("reduxChallengeStep",n),Lo(Lo({},e),{},{challenge:Lo(Lo({},e.challenge),{},{currentStep:t.data})});case"SET_CHALLENGE_OPEN":return Lo(Lo({},e),{},{challenge:Lo(Lo({},e.challenge),{},{isOpen:t.data})});case"SET_CHALLENGE_TOOLTIP_RECT":return Lo(Lo({},e),{},{challenge:Lo(Lo({},e.challenge),{},{tooltipRect:t.data})});case"SET_CHALLENGE_FINAL_STATUS":return Lo(Lo({},e),{},{challenge:Lo(Lo({},e.challenge),{},{finalStatus:t.data})});case"SET_CHALLENGE_PASSED":return Co("reduxChallengePassed",t.data,432e6),Lo(Lo({},e),{},{challenge:Lo(Lo({},e.challenge),{},{passed:t.data})});case"SET_CHALLENGE_LIST_EXPANDED":return Lo(Lo({},e),{},{challenge:Lo(Lo({},e.challenge),{},{listExpanded:t.data})});case"SET_ACTIVATE_DIALOG_DISPLAY":return Lo(Lo({},e),{},{activateDialog:t.data});case"SET_IMPORT_TO_APPEND":return Lo(Lo({},e),{},{isImportToAppend:t.data});case"SET_DEPENDENCY_FILTER_RULE":return Co(e.activeItemType+"_filterRule",t.data,432e6),Lo(Lo({},e),{},{[e.activeItemType]:Lo(Lo({},e[e.activeItemType]),{},{dependencyFilterRule:t.data})});case"SELECT_DEPENDENCIES":const i=["section","page","collection"];let s;switch(t.data){case"all":case"none":const e="all"===t.data;s=t=>t.filter(e=>!1===[_o,"gutenberghub.com","shareablock.com"].includes(e)).reduce((t,n)=>Lo(Lo({},t),{},{[n]:{value:e,disabled:!1}}),{[_o]:{value:!0,disabled:!1},"gutenberghub.com":{value:!0,disabled:!1},"shareablock.com":{value:!0,disabled:!1}});break;case"installed":s=e=>(e=>{const t=Object.keys(redux_templates.supported_plugins).filter(e=>!1===zo(e));return e.filter(e=>e!==_o).reduce((e,n)=>{let r=!0;const l=$r(n);return l?(To(n)&&-1!==t.indexOf(n)&&(r=!1),!1===To(n)&&!1===l.hasOwnProperty("version")&&(r=!1),"redux-pro"===n&&(r=!1)):r=!1,ho(ho({},e),{},{[n]:{value:r,disabled:!1}})},{[_o]:{value:!0,disabled:!1}})})(e);break;default:s=e=>Po(e)}const c=i.reduce((t,n)=>(Co(n+"_plugin",Lo(Lo({},e[n].dependencyFilters),s(e[n].wholePlugins)),432e6),Lo(Lo({},t),{},{[n]:Lo(Lo({},e[n]),{},{searchContext:"",dependencyFilterRule:"collection"!==n,dependencyFilters:Lo(Lo({},e[n].dependencyFilters),s(e[n].wholePlugins))})})),{});return Lo(Lo({},e),c);case"CLEAR_SEARCH":return Lo(Lo({},e),{},{section:Lo(Lo({},e.section),{},{searchContext:""}),page:Lo(Lo({},e.page),{},{searchContext:""}),collection:Lo(Lo({},e.collection),{},{searchContext:""})});case"CLEAR_STATE":return Lo(Lo({},e),{},{section:Lo(Lo({},e.section),{},{priceFilter:"",activeCategory:"",searchContext:""}),page:Lo(Lo({},e.page),{},{priceFilter:"",activeCategory:"",searchContext:""}),collection:Lo(Lo({},e.collection),{},{priceFilter:"",activeCategory:"",searchContext:""})})}var n;return e},actions:Fo,selectors:{fetchLibraryFromAPI:e=>e.library,receive:e=>e.sections,getActivePriceFilter:oi,getSearchContext:ii,getDependencyFilters:ci,getDependencyFiltersStatistics:e=>{const t=(e=>{const t=[];if(!1===Array.isArray(e)){for(let n in e)Array.isArray(e[n])&&e[n].map(e=>{t.push(e)});return t}return e})(ai(e)),n=_r()(Tr()(Ir()(t,"dependencies")));let r=ci(e);return Object.keys(r).forEach(e=>{r[e]=ti(ti({},r[e]),{},{disabled:-1===n.indexOf(e)})}),r[_o]={value:Zo(r[_o]),disabled:!1},r},getActiveItemType:e=>e.activeItemType,getCurrentPage:e=>e[e.activeItemType].currentPage,getActiveCategory:si,getDependencyFilterRule:mi,getWholePlugins:e=>"saved"!==e.activeItemType?Eo(e).wholePlugins:null,getThirdPartyPlugins:e=>"saved"!==e.activeItemType?Eo(e).thirdPartyPlugins:null,getCategoryData(e){let t=[],n=ai(e);return n&&Object.keys(n).length>0&&(n=$o(n,ii(e)),n=Xo(n,ci(e),mi(e)),n=Jo(n,oi(e),ci(e))),null!==e.collection.activeCollection&&"collection"===e.activeItemType||(t=Vo()(Eo(e).categories),t=t.map(e=>{const t=Ir()(n[e.slug],"id");return ti(ti({},e),{},{filteredData:t})})),t=jr()(t,"name"),t},getPageData:(e,t=!0)=>{let n=ai(e);const r=ii(e);let l=[];return"collection"!==e.activeItemType&&r.length>5&&(l=((e,t)=>{let n=t.toLowerCase();if(Array.isArray(e))return e.filter(e=>e.hash&&-1!==e.hash.toLowerCase().indexOf(n));{let t=[];return Object.keys(e).forEach(r=>{let l=e[r].filter(e=>e.hash&&-1!==e.hash.toLowerCase().indexOf(n));t=[...t,...l]}),t}})(n,r)),n&&Object.keys(n).length>0?(n=$o(n,r),t&&(n=Xo(n,ci(e),mi(e))),n=Jo(n,oi(e),ci(e)),null!==e.collection.activeCollection&&"collection"===e.activeItemType||(n=Wo(n,si(e)),n=jr()(n,Eo(e).sortBy)),qo()([...n,...l],"ID")):null},getStatistics(e){let t=ai(e),n={true:0,false:0};return t&&Object.keys(t).length>0&&(t=$o(t,ii(e)),t=Xo(t,ci(e),mi(e)),null!==e.collection.activeCollection&&"collection"===e.activeItemType||(t=Wo(t,si(e))),n=Go()(t,t=>!0===el(t,ci(e)))),n},getLoading:e=>e.loading,getColumns:e=>e.columns,getSortBy:e=>Eo(e).sortBy,getActiveCollection:e=>e.collection.activeCollection,getActiveCollectionData:e=>e.library&&e.library.collections&&e.collection?e.library.collections[e.collection.activeCollection]:null,getSaved:e=>e.saved,getErrorMessages:e=>e.errorMessages,getInstalledDependencies:e=>e.installedDependencies,getTourOpen:e=>e.tour.isOpen,getTourActiveButtonGroup:e=>e.tour.activeButtonGroup,getTourPreviewVisible:e=>e.tour.isPreviewVisible,getImportingTemplate:e=>e.importingTemplate,getChallengeStep:e=>Ao(),getChallengeOpen:e=>e.challenge.isOpen,getChallengeTooltipRect:e=>e.challenge.tooltipRect,getChallengeFinalStatus:e=>e.challenge.finalStatus,getChallengePassed:e=>e.challenge.passed,getChallengeListExpanded:e=>e.challenge.listExpanded,getActivateDialogDisplay:e=>e.activateDialog,getImportToAppend:e=>e.isImportToAppend},controls:{FETCH_LIBRARY_FROM_API:e=>ri({path:e.path,method:"POST",data:{registered_blocks:uo()}}),FETCH_SAVED_FROM_API:e=>ri({path:e.path,method:"POST",data:{registered_blocks:uo()}})},resolvers:{*fetchLibraryFromAPI(e){try{const e=yield Fo.fetchLibraryFromAPI("redux/v1/templates/library");return Fo.setLibrary(e.data)}catch(e){return Fo.appendErrorMessage(e.code+" "+e.message)}}},initialState:Bo});var di=n(25),ui=n(12),gi=n(120);const fi=Object(ui.dispatch)("redux-templates/sectionslist"),hi=fi.setTourActiveButtonGroup,bi=fi.setImportingTemplate,xi=Object(ui.select)("redux-templates/sectionslist").getPageData;var wi={initialSecondsLeft:300,beginningStep:-1,totalStep:7,list:[{selector:'[data-tut="tour__navigation"]',caption:Object(o.__)("Template Type Tabs",redux_templates.i18n),offset:{x:0,y:50,arrowX:0,arrowY:-20},box:{width:250},direction:"top",content:()=>wp.element.createElement("div",null,Object(o.__)("These are the different types of templates we have.",redux_templates.i18n),wp.element.createElement("ul",null,wp.element.createElement("li",null,wp.element.createElement("strong",null,Object(o.__)("Sections",redux_templates.i18n)),Object(o.__)(' are the building blocks of a page. Each "row" of content on a page we consider a section.',redux_templates.i18n)),wp.element.createElement("li",null,wp.element.createElement("strong",null,Object(o.__)("Pages",redux_templates.i18n)),Object(o.__)(" are, you guessed it, a group of multiple sections making up a page.",redux_templates.i18n)),wp.element.createElement("li",null,wp.element.createElement("strong",null,Object(o.__)("Template Kits",redux_templates.i18n)),Object(o.__)(" are groups of pages that all follow a style or theme.",redux_templates.i18n)),wp.element.createElement("li",null,wp.element.createElement("strong",null,Object(o.__)("Saved",redux_templates.i18n)),Object(o.__)(" are reusable blocks that you may have previously saved for later.",redux_templates.i18n))))},{selector:'[data-tut="tour__filtering"]',caption:Object(o.__)("Sidebar",redux_templates.i18n),content:Object(o.__)("This area is where you can search and filter to find the right kind of templates you want.",redux_templates.i18n),direction:"left",offset:{x:40,y:10,arrowX:-20,arrowY:0},box:{width:250,height:130},action:()=>{gi.animateScroll.scrollToTop({containerId:"redux-templates-collection-modal-sidebar",duration:0})}},{selector:'[data-tut="tour__filtering"]',caption:Object(o.__)("Plugins Filter",redux_templates.i18n),offset:{x:40,y:10,arrowX:-20,arrowY:0},box:{width:290,height:185},content:()=>wp.element.createElement("div",null,Object(o.__)("Some templates require certain plugins. You can filter or select those templates. Hint, if the text is a ",redux_templates.i18n),wp.element.createElement("a",{href:"#",className:"missing-dependency"},Object(o.__)("little orange",redux_templates.i18n)),Object(o.__)(", you don`t have that plugin installed yet, but don`t worry. Redux will help you with that too.",redux_templates.i18n)),action:()=>{gi.animateScroll.scrollToBottom({containerId:"redux-templates-collection-modal-sidebar",duration:0})},direction:"left"},{selector:'[data-tut="tour__main_body"]',caption:Object(o.__)("Templates List",redux_templates.i18n),content:Object(o.__)("This area is where the templates will show up that match the filters you've selected. You can click on many of them to preview or import them.",redux_templates.i18n),direction:"left",offset:{x:40,y:10,arrowX:-20,arrowY:0},box:{width:250,height:150},action:()=>{gi.animateScroll.scrollToTop({containerId:"redux-templates-collection-modal-sidebar",duration:0}),hi(null)}},{selector:"#modalContainer .redux-templates-single-item-inner:first-child",caption:Object(o.__)("Template Hover",redux_templates.i18n),content:Object(o.__)("When you hover over a template you can see via icons what plugins are required for this template. You can then choose to Preview or Import a design.",redux_templates.i18n),action:()=>{xr.closeCustomizer();const e=xi();e&&e.length>0&&hi(e[0])},direction:"left",offset:{x:40,y:10,arrowX:-20,arrowY:0},box:{width:240,height:169}},{selector:".wp-full-overlay-sidebar",caption:Object(o.__)("Preview Dialog",redux_templates.i18n),content:Object(o.__)("This is the preview dialog. It gives more details about the template and helps you to see what you could expect the templates to look like.",redux_templates.i18n),action:()=>{hi(null),bi(null);const e=xi();e&&e.length>0&&xr.openCustomizer(wp.element.createElement(Ia,{startIndex:0,currentPageData:e}))},position:"center"},{selector:".redux-templates-import-wizard-wrapper",caption:Object(o.__)("Import Wizard",redux_templates.i18n),content:Object(o.__)("When you click to import a template, sometimes you will be missing one of the required plugins. Redux will do its best to help you install what's missing. If some of them are premium plugins, you will be provided details on where you can get them.",redux_templates.i18n),direction:"right",offset:{x:0,y:85,arrowX:40,arrowY:25},box:{width:250,height:169},action:()=>{document.getElementsByClassName("tooltipster-box")&&(document.getElementsByClassName("tooltipster-box")[0].style.display="none"),xr.show(),xr.closeCustomizer();const e=xi();e&&e.length>0&&bi(e[0]),setTimeout(()=>{const e=document.getElementsByClassName("redux-templates-modal-wrapper");if(e&&e.length>0){let t=e[0].getBoundingClientRect(),n={top:t.top+90,left:t.left-320};Object(ui.dispatch)("redux-templates/sectionslist").setChallengeTooltipRect(n)}document.getElementsByClassName("tooltipster-box")&&(document.getElementsByClassName("tooltipster-box")[0].style.display="block")},0)}}]};const yi=wp.element,vi=yi.findDOMNode,_i=yi.useRef,Ei=yi.useEffect;var ki=Object(di.compose)([Object(ui.withDispatch)(e=>({setChallengeTooltipRect:e("redux-templates/sectionslist").setChallengeTooltipRect})),Object(ui.withSelect)((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getChallengeOpen,l=n.getChallengeStep;return{isOpen:r(),challengeStep:l()}})])((function(e){const t=e.step,n=e.challengeStep,r=e.isOpen,l=e.setChallengeTooltipRect,a=_i(null);Ei(()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),Ei(()=>{if(!1===r)return;const e=wi.list[n];e&&e.action&&"function"==typeof e.action?(e.action(),o(),setTimeout(o,0)):o()},[n,r]);const o=()=>{const e=i();e&&l(e)},i=()=>{if(a&&a.current){const e=vi(a.current).getBoundingClientRect();return{left:e.left,top:e.top,width:e.width,height:e.height}}return null};return n>=0&&n{const t=e("redux-templates/sectionslist");return{setActiveItemType:t.setActiveItemType,setSearchContext:t.setSearchContext,clearSearch:t.clearSearch}}),Object(ui.withSelect)((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getActiveItemType,l=n.getSearchContext,a=n.getActiveCollection,o=n.getChallengeOpen;return{activeItemType:r(),searchContext:l(),activeCollection:a(),isChallengeOpen:o()}})])((function(e){const t=e.activeItemType,n=e.searchContext,r=e.activeCollection,l=e.isChallengeOpen,a=e.setActiveItemType,i=e.setSearchContext,s=(e.setChallengeOpen,e.clearSearch,e=>t===e?"active":""),c=e=>{document.getElementById("modalContent")&&(document.getElementById("modalContent").scrollTop=0),a(e)};return wp.element.createElement("div",{className:"redux-templates-builder-modal-header"},wp.element.createElement("div",{className:"template-search-box"},("collection"!==t||null===r)&&"saved"!==t&&wp.element.createElement("div",null,wp.element.createElement("input",{type:"text",placeholder:Object(o.__)("Search for a template",redux_templates.i18n),className:"form-control",value:n,onChange:e=>{"saved"!==t&&i(e.target.value)}}),wp.element.createElement(ki,{step:1}),wp.element.createElement("i",{className:"fas fa-search"}))),wp.element.createElement("div",{className:"redux-templates-template-list-header","data-tut":"tour__navigation"},wp.element.createElement("button",{className:s("section"),onClick:e=>c("section")}," ",Object(o.__)("Sections",redux_templates.i18n)," "),wp.element.createElement("button",{className:s("page"),onClick:e=>c("page")}," ",Object(o.__)("Templates",redux_templates.i18n)," "),wp.element.createElement("button",{className:s("collection"),onClick:e=>c("collection")}," ",Object(o.__)("Template Kits",redux_templates.i18n)," "),wp.element.createElement("button",{className:s("saved"),onClick:e=>c("saved")}," ",Object(o.__)("Saved",redux_templates.i18n)," "),wp.element.createElement(ki,{step:0}),wp.element.createElement("button",{className:"redux-templates-builder-close-modal",onClick:()=>{!1===l&&xr.close()}},wp.element.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("path",{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})))))}));n(527);const Si=wp.compose.compose,Ci=wp.data,ji=Ci.withDispatch,Ni=Ci.withSelect,Ii=wp.i18n.__;var Pi=Si([ji(e=>({setActivePriceFilter:e("redux-templates/sectionslist").setActivePriceFilter})),Ni((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getStatistics;return{activePriceFilter:(0,n.getActivePriceFilter)(),statistics:r()}})])((function(e){const t=e.setActivePriceFilter,n=e.activePriceFilter,r=e.statistics,l=e=>{let t=[];return t.push(e===n?"active":""),t.push(a(e)?"disabled":""),t.join(" ")},a=e=>""!==e&&("free"===e?!r.false||r.false<1:!r.true||r.true<1);return wp.element.createElement("div",{className:"redux-templates-template-filter-button-group"},wp.element.createElement("button",{onClick:()=>t(""),className:l("")},Ii("All",redux_templates.i18n)),wp.element.createElement("button",{onClick:()=>t("free"),className:l("free"),disabled:a("free")},Ii("Free",redux_templates.i18n)),wp.element.createElement("button",{onClick:()=>t("pro"),className:l("pro"),disabled:a("pro")},wp.element.createElement("img",{src:redux_templates.plugin+"assets/img/icon-premium.svg",alt:""}),Ii("Premium",redux_templates.i18n)))}));const Ti=wp.compose.compose,zi=wp.data,Ai=zi.withDispatch,Di=zi.withSelect,Mi=wp.i18n.__;var Li=Ti([Ai(e=>({setActiveCategory:e("redux-templates/sectionslist").setActiveCategory})),Di((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getCategoryData,l=n.getActiveCategory,a=n.getActiveItemType,o=n.getLoading;return{categoryData:r(),activeCategory:l(),itemType:a(),loading:o()}})])((function(e){const t=e.categoryData,n=e.activeCategory,r=e.activePriceFilter,l=e.loading,a=e.itemType,o=e.setActiveCategory,i=e=>e&&(e.hasOwnProperty("filteredData")&&0===e.filteredData.length||0===e.ids.length),s=e=>{const t=e?e.slug:"";return i(e)?"disabled":n===t?"active":""};return wp.element.createElement("div",null,wp.element.createElement("h3",null,Mi("Categories",redux_templates.i18n)),!l&&wp.element.createElement("ul",{className:"redux-templates-sidebar-categories"},t.length>0&&wp.element.createElement("li",{className:s(null),onClick:()=>o("")},Mi("All",redux_templates.i18n)," ","section"===a?Mi("Section",redux_templates.i18n):"page"===a?Mi("Template",redux_templates.i18n):"collection"===a?Mi("Template Kit",redux_templates.i18n):void 0,"s ",wp.element.createElement("span",null,(()=>{let e=[],n=[];return t.forEach(t=>{t.hasOwnProperty("filteredData")&&(n=[...n,...t.filteredData]),e=[...e,...t.ids]}),""!==r?_r()(n).length+"/"+_r()(e).length:_r()(e).length})())),t&&t.map((e,t)=>wp.element.createElement("li",{className:s(e),onClick:()=>(e=>{i(e)||o(e.slug)})(e),key:t},e.name,wp.element.createElement("span",null," ",e.hasOwnProperty("filteredData")&&""!==r?e.filteredData.length:e.ids.length," ")))))}));function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setDependencyFilters:e("redux-templates/sectionslist").setDependencyFilters})),Ji(e=>{const t=e("redux-templates/sectionslist"),n=t.getDependencyFiltersStatistics,r=t.getLoading,l=t.getActiveCategory;return{loading:r(),dependencyFilters:n(),activeCategory:l()}})])((function(e){const t=e.pluginKey,n=e.dependencyFilters,r=e.setDependencyFilters,l=Hi(Gi(!1),2),a=l[0],o=l[1],i=Hi(Gi(!1),2),s=i[0],c=i[1],p=Hi(Gi(""),2),m=p[0],d=p[1],u=Hi(Gi(""),2),g=u[0],f=u[1],h=Hi(Gi(""),2),b=h[0],x=h[1];return Yi(()=>{const e=Jr(t);t&&t!==_o&&e&&null!=e.name?(d(e.url),f(e.name),o(!0)):o(!1)},[t]),Yi(()=>{const e=Jr(t);if(!n)return;n.hasOwnProperty(t)?n[t].disabled?c(!1):c(n[t].hasOwnProperty("value")?n[t].value:n[t]):c(!1);let r=[];r.push(e.version||"no_plugin"in e?"":"missing-dependency"),r.push(!n[t]||n[t].disabled?"disabled":""),x(r.join(" "))},[JSON.stringify(n)]),!1===a?null:wp.element.createElement("li",{className:b},wp.element.createElement(Dr.CheckboxControl,{label:g,checked:s,onChange:()=>{if(null===n[t]||void 0===n[t]||n[t].disabled)return;let e=Bi(Bi({},n),{},{[t]:{value:!1===n[t].value,disabled:!0===n[t].disabled}});Ki.includes(t)&&Ki.forEach(r=>{e=Bi(Bi({},e),{},{[r]:{value:!1===n[t].value,disabled:!0===n[r].disabled}})}),r(Bi({},e))}}),m?wp.element.createElement(Dr.Tooltip,{position:"top center",text:Xi("Visit Plugin Website",redux_templates.i18n)},wp.element.createElement("span",null,wp.element.createElement("a",{href:m,target:"_blank"},wp.element.createElement("i",{className:"fas fa-external-link-alt"})))):null,b.includes("missing-dependency")&&wp.element.createElement(Dr.Tooltip,{position:"top center",text:Xi("Not Installed",redux_templates.i18n)},wp.element.createElement("span",{className:"redux-icon-wrapper"},wp.element.createElement("i",{className:"fa fa-exclamation-triangle"}))))}));function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t{const t=e("redux-templates/sectionslist");return{setDependencyFilters:t.setDependencyFilters,selectDependencies:t.selectDependencies,setDependencyFilterRule:t.setDependencyFilterRule}}),os(e=>{const t=e("redux-templates/sectionslist"),n=t.getDependencyFiltersStatistics,r=t.getLoading,l=t.getActiveItemType,a=t.getWholePlugins,o=t.getThirdPartyPlugins,i=t.getDependencyFilterRule;return{loading:r(),dependencyFilters:n(),wholePlugins:a(),thirdPartyPlugins:o(),dependencyFilterRule:i(),activeItemType:l()}})])((function(e){const t=e.dependencyFilters,n=e.activeItemType,r=e.loading,l=e.wholePlugins,a=e.thirdPartyPlugins,o=e.dependencyFilterRule,i=e.setDependencyFilters,s=e.selectDependencies,c=e.setDependencyFilterRule;return wp.element.createElement(ns,null,!r&&l&&wp.element.createElement("div",{id:"redux-templates-filter-dependencies","data-tut":"tour__filter_dependencies"},wp.element.createElement(React.Fragment,null,wp.element.createElement(Dr.ButtonGroup,{style:{float:"right"}},wp.element.createElement(Dr.Tooltip,{text:is("Templates which contain blocks from any of the selected plugins.",redux_templates.i18n),position:"top center"},wp.element.createElement(Dr.Button,{isSmall:!0,isPrimary:!1===o,isSecondary:o,onClick:()=>c(!1),disabled:"collection"===n},is("Any",redux_templates.i18n))),wp.element.createElement(Dr.Tooltip,{text:is("Templates that only contain blocks from the selected plugins.",redux_templates.i18n),position:"top center"},wp.element.createElement(Dr.Button,{isSmall:!0,isSecondary:!1===o,isPrimary:o,onClick:()=>c(!0),disabled:"collection"===n},is("Only",redux_templates.i18n)))),wp.element.createElement("h3",null,is("Required Plugins",redux_templates.i18n)," ")),wp.element.createElement("div",{className:"redux-templates-select-actions"},wp.element.createElement(Dr.Tooltip,{text:is("Select All",redux_templates.i18n),position:"top center"},wp.element.createElement("a",{href:"#",onClick:()=>s("all")},is("All",redux_templates.i18n))),wp.element.createElement("span",null,"  /  "),wp.element.createElement(Dr.Tooltip,{text:is("Installed Dependencies",redux_templates.i18n),position:"top center"},wp.element.createElement("a",{href:"#",onClick:()=>s("installed")},is("Installed",redux_templates.i18n))),wp.element.createElement("span",null,"  /  "),wp.element.createElement(Dr.Tooltip,{text:is("Native Blocks Only",redux_templates.i18n),position:"top center"},wp.element.createElement("a",{href:"#",onClick:()=>s("none")},is("None",redux_templates.i18n))),wp.element.createElement(ki,{step:2})),wp.element.createElement("ul",{className:"redux-templates-sidebar-dependencies"},!1===r&&wp.element.createElement("li",{style:{display:"collection"===n?"none":""}},wp.element.createElement(Dr.CheckboxControl,{label:is("Native",redux_templates.i18n),checked:!!t.hasOwnProperty(_o)&&(t[_o].hasOwnProperty("value")?t[_o].value:t[_o]),onChange:()=>{i(es(es({},t),{},{[_o]:{value:!1===t[_o].value,disabled:!0===t[_o].disabled}}))}}),wp.element.createElement(Dr.Tooltip,{text:is("Only default WordPress blocks used.",redux_templates.i18n),position:"top center"},wp.element.createElement("span",{style:{float:"right",marginRight:"2px"}},wp.element.createElement("i",{className:"fa fa-info-circle"})))),Object.keys(t).filter(e=>-1!==l.indexOf(e)||"redux-pro"===e).sort((e,t)=>{const n=Jr(e),r=Jr(t);return!r.name||n.namer.name?1:0}).map(e=>wp.element.createElement(Zi,{key:e,pluginKey:e}))),wp.element.createElement("div",{role:"group",className:"components-button-group",style:{float:"right"}},wp.element.createElement(Dr.Tooltip,{text:is("Third-party premium plugins required.",redux_templates.i18n),position:"top center"},wp.element.createElement("span",{style:{float:"right",marginRight:"15px",cursor:"pointer"}},wp.element.createElement("i",{className:"fa fa-info-circle"})))),wp.element.createElement("h3",null,"Third-Party Premium"),wp.element.createElement("ul",{className:"redux-templates-sidebar-dependencies"},a.sort((e,t)=>{const n=Jr(e),r=Jr(t);return!r.name||n.namer.name?1:0}).map(e=>wp.element.createElement(Zi,{key:e,pluginKey:e})))))}));var cs=(0,wp.data.withSelect)(e=>{const t=e("redux-templates/sectionslist"),n=t.getActiveItemType,r=t.getActiveCollection;return{itemType:n(),layer:r()}})((function(e){const t=e.itemType,n=e.layer;return e.loading,wp.element.createElement("div",null,("collection"!==t||null===n)&&wp.element.createElement(React.Fragment,null,wp.element.createElement(Pi,null),wp.element.createElement("div",{className:"redux-templates-modal-sidebar-content"},wp.element.createElement(Li,null),wp.element.createElement(ss,null))))}));function ps(){return(ps=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("redux-templates/sectionslist");return{setLibrary:t.setLibrary,setActivePriceFilter:t.setActivePriceFilter,setActiveCollection:t.setActiveCollection,setSortBy:t.setSortBy,setColumns:t.setColumns,setChallengeOpen:t.setChallengeOpen,setChallengeListExpanded:t.setChallengeListExpanded}}),Cs((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.fetchLibraryFromAPI,l=n.getActiveItemType,a=n.getColumns,o=n.getPageData,i=n.getActiveCollection,s=n.getStatistics,c=n.getSortBy,p=n.getLoading,m=n.getChallengePassed;return{fetchLibraryFromAPI:r,itemType:l(),pageData:o(),columns:a(),statistics:s(),sortBy:c(),activeCollection:i(),loading:p(),challengePassed:m()}})])((function(e){const t=e.itemType,n=e.sortBy,r=e.activeCollection,l=e.challengePassed,a=e.pageData,o=e.columns,i=e.loading,s=e.setSortBy,c=e.setColumns,p=e.setChallengeOpen,m=e.setChallengeListExpanded,d=ws(Ns("far fa-question-circle tour-icon"),2),u=d[0],g=d[1];Is(()=>{g(l?"fas fa-trophy tour-icon":"fas fa-map-signs tour-icon")},[l]);const f=a?a.length:"";let h="";return!1===i&&f&&0!==f&&(h=wp.element.createElement("span",null,f," ","section"===t?_s("Sections",redux_templates.i18n):"page"===t?_s("Templates",redux_templates.i18n):"collection"===t&&null===r?_s("Template Kits",redux_templates.i18n):"collection"===t&&null!==r?_s("Sections",redux_templates.i18n):void 0)),wp.element.createElement("div",{className:"redux-templates-template-list-sub-header"},wp.element.createElement("h4",null,h,wp.element.createElement(ki,{step:3})),wp.element.createElement("div",{className:"redux-templates-template-filters"},wp.element.createElement("div",{className:"trial_notice"},!redux_templates.mokama&&wp.element.createElement("div",{style:{verticalAlign:"middle"}},wp.element.createElement(Dr.Notice,{status:"info",isDismissible:!1},wp.element.createElement("strong",{style:{display:"inline-block",marginRight:"10px",verticalAlign:"middle"}},redux_templates.left<=0&&wp.element.createElement(React.Fragment,null,Es(_s("Trial Ended: %d/%d Imported",redux_templates.i18n),5-redux_templates.left,5)),redux_templates.left>0&&wp.element.createElement(React.Fragment,null,Es(_s("Trial: %d/%d Imports Remaining",redux_templates.i18n),redux_templates.left,5))),wp.element.createElement(Dr.Button,{isPrimary:!0,isSmall:!0,icon:Cn,label:_s("Upgrade to Redux Pro",redux_templates.i18n),onClick:()=>window.open(redux_templates.u+"subheader","_blank")},"Get Pro")))),wp.element.createElement(Dr.Button,{icon:wp.element.createElement("i",{className:u}),label:_s("Take the Redux Challenge",redux_templates.i18n),onClick:()=>{p(!0),m(!0)}}),wp.element.createElement(Dr.Button,{icon:"image-rotate",label:_s("Refresh Library",redux_templates.i18n),className:"refresh-library",onClick:mo}),wp.element.createElement(Dr.Button,{icon:wp.element.createElement(ds,{width:"18",height:"18"}),className:"large"===o?"is-active":"",label:_s("Large preview",redux_templates.i18n),onClick:()=>c("large")}),wp.element.createElement(Dr.Button,{icon:wp.element.createElement(xs,{width:"18",height:"18"}),className:""===o?"is-active":"",label:_s("Medium preview",redux_templates.i18n),onClick:e=>c("")}),wp.element.createElement(Dr.Button,{icon:wp.element.createElement(fs,{width:"18",height:"18"}),className:"small"===o?"is-active":"",label:_s("Small preview",redux_templates.i18n),onClick:e=>c("small")}),wp.element.createElement("div",{className:""},wp.element.createElement("select",{name:"sortBy",id:"sortBy",value:n,onChange:e=>s(e.target.value)},wp.element.createElement("option",{value:"name"},_s("Name",redux_templates.i18n)),wp.element.createElement("option",{value:"updated"},_s("Updated",redux_templates.i18n))))))}));n(531);const Ts=wp.compose.compose,zs=wp.data,As=zs.withDispatch,Ds=zs.withSelect;var Ms=Ts([As(e=>({setImportingTemplate:e("redux-templates/sectionslist").setImportingTemplate})),Ds((e,t)=>({tourActiveButtonGroup:(0,e("redux-templates/sectionslist").getTourActiveButtonGroup)()}))])((function(e){const t=e.data,n=e.index,r=e.pageData,l=e.setImportingTemplate,a=e.tourActiveButtonGroup;let i=null;return wp.element.createElement("div",{className:"action-buttons"},r[n]&&"wp_block_patterns"!==r[n].source&&wp.element.createElement("a",{className:"redux-templates-button preview-button",target:"_blank",onClick:()=>((e,t)=>{xr.openCustomizer(wp.element.createElement(Ia,{startIndex:e,currentPageData:t}))})(n,r)},wp.element.createElement("i",{className:"fa fa-share"})," ",Object(o.__)("Preview",redux_templates.i18n)),wp.element.createElement("a",{className:"redux-templates-button download-button",onClick:()=>(e=>{null===i&&(i=e.ID,l(e))})(t)},wp.element.createElement("i",{className:"fas fa-download"}),Object(o.__)("Import",redux_templates.i18n)),a&&a.ID===r[n].ID&&wp.element.createElement(ki,{step:4}))}));n(533);const Ls=wp.i18n.__;function Rs(e){const t=e.data,n=e.showDependencyBlock,l=t.id,a=e=>t.proDependenciesMissing&&t.proDependenciesMissing.indexOf(e)>=0||t.installDependenciesMissing&&t.installDependenciesMissing.indexOf(e)>=0;if(n){let e=t.dependencies.indexOf("core");return e>-1&&(t.dependencies.splice(e,1),t.dependencies.push("core")),wp.element.createElement("div",{className:"redux-templates-button-display-dependencies"},t.dependencies&&t.dependencies.map(e=>{let n=null;const o=e.replace("-pro","").replace("-premium","").replace(/\W/g,"").toLowerCase();if(n="core"==e?{name:"WordPress Native"}:redux_templates.supported_plugins[e],n||(n=redux_templates.supported_plugins[e.replace("-pro","").replace("-premium","")]),!e.includes("-pro")&&!e.includes("-premium")&&(t.dependencies.includes(e+"-pro")||t.dependencies.includes(e+"-premium")))return;if(!n)return console.log("Missing plugin details for "+e+" - "+e.replace("-pro","").replace("-premium","")),void console.log(redux_templates.supported_plugins);if("redux"===o)return;const i=r[o];if(i&&n)return wp.element.createElement(Dr.Tooltip,{text:a(e)&&"core"!==e?n.name+" ( "+Ls("Not Installed",redux_templates.i18n)+" )":n.name,position:"bottom center",key:l+e},wp.element.createElement("span",{className:a(e)&&"core"!==e?"missing-dependency":""},wp.element.createElement(i,null)));"shareablockcom"!==o&&"gutenberghubcom"!==o&&console.log("Need icon for "+o)}),t.dependencies.core&&wp.element.createElement(Dr.Tooltip,{text:Ls("WordPress Core",redux_templates.i18n),position:"bottom center",key:l+"core"},wp.element.createElement("span",null,wp.element.createElement(IconComponent,null))))}return null}n(535);function Bs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fs(e,t)}(e,t)||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 Fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n({importingTemplate:(0,e("redux-templates/sectionslist").getImportingTemplate)()}))])((function(e){const t=e.importingTemplate,n=e.showDependencyBlock,r=e.index,l=e.data,o=e.pageData,i=Bs(Object(a.useState)("redux-templates-import-button-group"),2),s=i[0],c=i[1];return Object(a.useEffect)(()=>{null===t&&"redux-templates-import-button-group"!==s&&c("redux-templates-import-button-group"),null!==t&&"redux-templates-import-button-group"===s&&c("redux-templates-import-button-group disabled")},[t]),wp.element.createElement("div",{className:s},wp.element.createElement(Ms,{index:r,data:l,pageData:o}),wp.element.createElement(Rs,{showDependencyBlock:n,data:l}))}));n(537);function Vs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Us(e,t)}(e,t)||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 Us(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n({appendErrorMessage:e("redux-templates/sectionslist").appendErrorMessage})),Js(e=>({activeItemType:(0,e("redux-templates/sectionslist").getActiveItemType)()}))])((function(e){const t=e.data,n=e.appendErrorMessage,r=e.activeItemType,l=Vs(Ys(!1),2),a=l[0],o=l[1],i=Vs(Ys(null),2),s=i[0],c=i[1];if(t&&!1===a){let e="redux/v1/templates/template?type="+("section"===r?"sections":"pages")+"&id="+t.id+"&uid="+window.userSettings.uid;"source"in t&&(e+="&source="+t.source);const l={method:"GET",path:e,headers:{"Content-Type":"application/json","Registered-Blocks":uo()}};Gs(l).then(e=>{e.success?c(e.data):n(e.data.error),o(!0)}).catch(e=>{n(e.code+" : "+e.message),o(!0)})}if(!0===a){let e=Xs(s.template);return wp.element.createElement("div",null,wp.element.createElement(Ta.BlockPreview,{blocks:e}))}return null}));n(539);function Zs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qs(e,t)}(e,t)||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 Qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const n=e("redux-templates/sectionslist"),r=n.getTourActiveButtonGroup;return{pageData:(0,n.getPageData)(),tourActiveButtonGroup:r()}})((function(e){const t=e.pageData,n=e.tourActiveButtonGroup,r=e.index,l=Zs(rc(null),2),a=l[0],o=l[1],i=Zs(rc("redux-templates-single-item-inner redux-templates-item-wrapper "),2),s=i[0],c=i[1];return lc(()=>{t&&o(t[r])},[r,t]),lc(()=>{c(t&&t[r]&&n&&n.ID===t[r].ID?"redux-templates-single-item-inner redux-templates-item-wrapper focused":"redux-templates-single-item-inner redux-templates-item-wrapper")},[n,t,r]),a?wp.element.createElement("div",{className:"redux-templates-single-section-item"},wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:"redux-templates-default-template-image"},"wp_block_patterns"!==a.source&&wp.element.createElement(Gr,{url:a.image}),"wp_block_patterns"===a.source&&wp.element.createElement(Ks,{data:a}),Kr(a)&&wp.element.createElement("span",{className:"redux-templates-pro-badge"},ec("Premium",redux_templates.i18n)),!Kr(a)&&Zr(a)&&wp.element.createElement("span",{className:"redux-templates-missing-badge"},wp.element.createElement("i",{className:"fas fa-exclamation-triangle"})),wp.element.createElement("div",{className:"redux-templates-tmpl-title"},a.name)),wp.element.createElement("div",{className:"redux-templates-button-overlay"},Kr(a)&&wp.element.createElement(Dr.Tooltip,{text:ec("Premium Requirements",redux_templates.i18n),position:"bottom",key:a.source+a.source_id},wp.element.createElement("div",{className:"redux-templates-pro-badge"},ec("Premium",redux_templates.i18n))),!Kr(a)&&Zr(a)&&wp.element.createElement(Dr.Tooltip,{text:ec("Not Installed",redux_templates.i18n),position:"bottom",key:a.source+a.source_id},wp.element.createElement("div",{className:"redux-templates-missing-badge"},wp.element.createElement("i",{className:"fas fa-exclamation-triangle"}))),wp.element.createElement(Hs,{index:r,showDependencyBlock:!0,data:a,pageData:t})))):null}));n(541);const oc=wp.i18n.__;var ic=e=>{const t=e.data,n=e.onSelectCollection,r=t.pages,l=t.homepageData,a=t.ID,o=t.name,i=(l||{}).image;return wp.element.createElement("div",{className:"redux-templates-multiple-template-box"},wp.element.createElement("div",{className:"multiple-template-view",onClick:()=>n(a)},wp.element.createElement("div",{className:"redux-templates-box-shadow"},wp.element.createElement("div",{className:"redux-templates-default-template-image"},wp.element.createElement(Gr,{url:i,alt:oc("Default Template",redux_templates.i18n)}),Kr(t)&&wp.element.createElement("span",{className:"redux-templates-pro-badge"},oc("Premium",redux_templates.i18n)),!Kr(t)&&Zr(t)&&wp.element.createElement("div",{className:"redux-templates-missing-badge"},wp.element.createElement("i",{className:"fas fa-exclamation-triangle"}))),wp.element.createElement("div",{className:"redux-templates-button-overlay"},Kr(t)&&wp.element.createElement(Dr.Tooltip,{text:oc("Premium Requirements",redux_templates.i18n),position:"bottom",key:t.source+t.source_id},wp.element.createElement("span",{className:"redux-templates-pro-badge"},oc("Premium",redux_templates.i18n))),!Kr(t)&&Zr(t)&&wp.element.createElement(Dr.Tooltip,{text:oc("Not Installed",redux_templates.i18n),position:"bottom",key:t.source+t.source_id},wp.element.createElement("div",{className:"redux-templates-missing-badge"},wp.element.createElement("i",{className:"fas fa-exclamation-triangle"}))),wp.element.createElement("div",{className:"redux-templates-import-button-group"},wp.element.createElement("div",{className:"action-buttons"},wp.element.createElement("a",{className:"redux-templates-button download-button"},oc("View Templates",redux_templates.i18n)))))),wp.element.createElement("div",{className:"redux-templates-tmpl-info"},wp.element.createElement("h5",{className:"redux-templates-tmpl-title",dangerouslySetInnerHTML:{__html:o}}),wp.element.createElement("span",{className:"redux-templates-temp-count"},r?r.length:0," ",oc("Templates",redux_templates.i18n)))))};n(543);function sc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cc(e,t)}(e,t)||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 cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setCurrentPage:e("redux-templates/sectionslist").setCurrentPage})),bc(e=>{const t=e("redux-templates/sectionslist"),n=t.getCurrentPage,r=t.getPageData,l=t.getColumns;return{currentPage:n(),pageData:r(),columns:l()}})])((function(e){const t=e.currentPage,n=e.pageData,r=e.columns,l=e.setCurrentPage,a=sc(mc(1),2),o=a[0],i=a[1],s=sc(mc("tablenav-pages-navspan button"),2),c=s[0],p=s[1],m=sc(mc("tablenav-pages-navspan button"),2),d=m[0],u=m[1],g=sc(mc("tablenav-pages-navspan button"),2),f=g[0],h=g[1],b=sc(mc("tablenav-pages-navspan button"),2),x=b[0],w=b[1];dc(()=>{const e="tablenav-pages-navspan button ",n="tablenav-pages-navspan button disabled";p(0===t?n:e),u(0===t?n:e),h(t===o-1?n:e),w(t===o-1?n:e)},[t,o]),dc(()=>{let e=""===r?"medium":r;i(Math.ceil(n.length/Io[e]))},[n]);const y=(e,t)=>{t.indexOf("disabled")>0||(document.getElementById("modalContent").scrollTop=0,l(e))};return wp.element.createElement(uc,null,o>0&&wp.element.createElement("div",{className:"tablenav-pages"},wp.element.createElement("span",{className:"displaying-num"},n.length," items"),wp.element.createElement("span",{className:"pagination-links"},wp.element.createElement("span",{className:c,"aria-hidden":"true",onClick:()=>y(0,c)},"«"),wp.element.createElement("span",{className:d,"aria-hidden":"true",onClick:()=>y(t-1,d)},"‹"),wp.element.createElement("span",{className:"screen-reader-text"},xc("Current Page",redux_templates.i18n)),wp.element.createElement("span",{id:"table-paging",className:"paging-input"},wp.element.createElement("span",{className:"tablenav-paging-text"},t+1," of ",wp.element.createElement("span",{className:"total-pages"},o))),wp.element.createElement("span",{className:f,"aria-hidden":"true",onClick:()=>y(t+1,f)},"›"),wp.element.createElement("span",{className:x,"aria-hidden":"true",onClick:()=>y(o-1,x)},"»"))))}));n(545);function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setActiveCollection:e("redux-templates/sectionslist").setActiveCollection})),Pc((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getPageData,l=n.getLoading,a=n.getColumns,o=n.getActiveItemType,i=n.getActiveCollection,s=n.getCurrentPage;return{pageData:r(),loading:l(),activeItemType:o(),columns:a(),activeCollection:i(),currentPage:s()}})])((function(e){const t=e.pageData,n=e.loading,r=e.activeItemType,l=e.activeCollection,a=e.columns,o=e.currentPage,i=e.setActiveCollection,s=Ec(Sc([]),2),c=s[0],p=s[1],m=Ec(Sc(!1),2),d=m[0],u=m[1],g=e=>{i(e)};return Cc(()=>{let e=[],n=0,l=""===a?"medium":a;const i=No[l],s=Io[l];for(let t=0;twp.element.createElement("div",{className:"redux-templates-pagelist-column",key:t},e&&e.map((e,t)=>"collection"!==r||null!==l?wp.element.createElement(ac,{key:t,index:e.index}):wp.element.createElement(ic,{key:t,data:e,index:e.index,itemType:r,spinner:!1,onSelectCollection:g}))))),d&&wp.element.createElement(wc,null)))}));const Ac=wp.element.Fragment;function Dc(e){return wp.element.createElement(Ac,null,wp.element.createElement("div",{id:"redux-templates-collection-modal-sidebar",className:"redux-templates-collection-modal-sidebar"},wp.element.createElement(cs,null)),wp.element.createElement("div",{className:"redux-templates-collection-modal-content-area","data-tut":"tour__main_body",id:"modalContent"},wp.element.createElement(Ps,null),wp.element.createElement(zc,null)))}n(547);function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setActiveCollection:e("redux-templates/sectionslist").setActiveCollection})),Wc((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getPageData,l=n.getLoading,a=n.getActiveCollectionData,o=n.getActiveItemType;return{pageData:r(),loading:l(),activeItemType:o(),activeCollectionData:a()}})])((function(e){const t=e.pageData,n=e.activeCollectionData,r=e.setActiveCollection,l=Bc(Vc(null),2),a=l[0],o=l[1],i=Bc(Vc(0),2),s=i[0],c=i[1],p=Bc(Vc("1.5s"),2),m=p[0],d=p[1],u=t.length;return Uc(()=>{if(t&&t[s]){const e=t[s],n=new Image;e.image_full?(o(Lc(Lc({},e),{},{backgroundImage:e.image_full,previewImageClassname:"details-preview has_full"})),n.src=e.image_full):(o(Lc(Lc({},e),{},{backgroundImage:e.image,previewImageClassname:"details-preview has_full"})),n.src=e.image),n.onload=function(){d((n.height-515)/500+"s")}}},[t,s]),a?wp.element.createElement("div",{className:"redux-templates-collection-details-view"},wp.element.createElement("div",{className:"redux-templates-collection-details-left"},wp.element.createElement("div",{className:"details-back",onClick:()=>r(null)},wp.element.createElement("span",{className:"dashicons dashicons-arrow-left-alt"})," ",$c("Back to Template Kits",redux_templates.i18n)),wp.element.createElement("div",{className:a.previewImageClassname,style:{backgroundImage:`url('${a.backgroundImage}')`,transitionDuration:m}})),wp.element.createElement("div",{className:"redux-templates-collection-details-right"},wp.element.createElement("div",{className:"details-title"},wp.element.createElement("h3",null,n.name),wp.element.createElement("span",null,u," ",$c("pages",redux_templates.i18n))),wp.element.createElement("div",{className:"details-list"},wp.element.createElement("div",{className:"details-inner"},t.map((e,t)=>{let n=a.ID===e.ID?"detail-select detail-select-active":"detail-select",r={backgroundImage:"url("+e.image+")"};return wp.element.createElement("div",{className:n,onClick:()=>c(t),key:t},wp.element.createElement("div",{className:"detail-image",style:r},Kr(e)&&wp.element.createElement("span",{className:"pro"},$c("Premium",redux_templates.i18n)),!Kr(e)&&Zr(e)&&wp.element.createElement("span",{className:"install"},wp.element.createElement("i",{className:"fas fa-exclamation-triangle"})),wp.element.createElement("div",{className:"detail-label"},e.name)))})))),wp.element.createElement("div",{className:"redux-templates-collection-details-footer"},wp.element.createElement("div",{className:"footer-grid"},wp.element.createElement(Hs,{index:s,showDependencyBlock:!1,data:a,pageData:t})))):null})),Xc=(n(549),n(270)),Kc=n.n(Xc);function Zc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qc(e,t)}(e,t)||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 Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("core/block-editor").insertBlocks,n=e("redux-templates/sectionslist");return{insertBlocks:t,appendErrorMessage:n.appendErrorMessage,discardAllErrorMessages:n.discardAllErrorMessages}})])((function(e){const t=e.insertBlocks,n=e.discardAllErrorMessages,r=e.appendErrorMessage,l=(e.clearSearch,Zc(tp([]),2)),a=l[0],o=l[1],i=Zc(tp(!1),2),s=i[0],c=i[1];return!1===s&&ep({path:"redux/v1/templates/get_saved_blocks"}).then(e=>{e.success?o(e.data):r(e.data.error),c(!0)}).catch(e=>{r(e.code+" : "+e.message),c(!0)}),!0===s?wp.element.createElement("div",{className:"redux-templates-two-sections__grid"},a&&a.length>0?((e,t=4,n=!0)=>{let r,l=[];for(r=0;r{l[n%t].push(e)}),l})(a).map((e,l)=>{let i=e.map((e,l)=>{let i=ap(e.post_content);return wp.element.createElement("div",{className:"redux-templates-two-section",key:l,onClick:()=>(e=>{let n=ap(e);t(n),xr.close()})(e.post_content)},wp.element.createElement("div",{className:"preview-image-wrapper"},wp.element.createElement(Ta.BlockPreview,{blocks:i})),wp.element.createElement("div",{className:"saved-section-title"},e.post_title),wp.element.createElement("div",{className:"redux-templates-two-section-remove",onClick:t=>((e,t)=>{e.stopPropagation(),n();ep({method:"POST",path:"redux/v1/templates/delete_saved_block/?block_id="+t}).then(e=>{e.success?o(Kc()(a,{ID:t})):r(e.data.error)}).catch(e=>{r(e.code+" : "+e.message)})})(t,e.ID)},wp.element.createElement("i",{className:"fas fa-trash"})))});return wp.element.createElement("div",{className:"redux-templates-two-sections__grid__column",key:l,style:{width:"25%",flexBasis:"25%"}},i)}):wp.element.createElement("div",{className:"no-section"},"Nothing here yet, make a reusuable block first.")):wp.element.createElement("div",null,wp.element.createElement("div",{style:{height:"600px"}},wp.element.createElement("div",{className:"redux-templates-modal-loader"},wp.element.createElement(lp,null))))}));n(553);function ip(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}(e,t)||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 sp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.success&&gp(cp("Thanks for your feedback, your input is very much valued."),{type:"snackbar"}),delete redux_templates.nps},i=()=>{pp({path:"redux/v1/templates/nps",method:"POST",data:{nps:"no-thanks"}}).then(o).catch(o),t()};return wp.element.createElement("div",{className:"redux-templates-modal-overlay"},wp.element.createElement("div",{className:"redux-templates-modal-wrapper"},wp.element.createElement("div",{className:"redux-templates-modal-header"},wp.element.createElement("h3",null,cp("Can we ask you a question?",redux_templates.i18n)),wp.element.createElement("button",{className:"redux-templates-modal-close",onClick:i},wp.element.createElement("i",{className:"fas fa-times"}))),wp.element.createElement("div",{className:"redux-templates-psmodal-content"},wp.element.createElement("h3",null,redux_templates.nps),wp.element.createElement(Dr.ButtonGroup,null,[...Array(10).keys()].map(e=>wp.element.createElement(Dr.Button,{key:e,isPrimary:r===e,onClick:()=>l(e)},e+1))),-1!==r&&r<5&&wp.element.createElement(Dr.TextareaControl,{help:"Could you give us more details?",value:a})),wp.element.createElement("div",{className:"redux-templates-modal-footer nps-footer"},wp.element.createElement("button",{className:"button button-primary",disabled:-1===r,onClick:()=>(pp({path:"redux/v1/templates/nps",method:"POST",data:{nps:r+1}}).then(o).catch(o),void t())},cp("Submit",redux_templates.i18n)),wp.element.createElement("a",{href:"#",onClick:i},cp("Close",redux_templates.i18n)))))}n(555);var hp=Object(di.compose)([Object(ui.withDispatch)(e=>({discardAllErrorMessages:e("redux-templates/sectionslist").discardAllErrorMessages}))])((function(e){const t=e.discardAllErrorMessages,n=e.errorMessages;return wp.element.createElement("div",{className:"redux-templates-error-notice"},wp.element.createElement(Dr.Notice,{status:"error",onRemove:t},wp.element.createElement("p",null,n.join(", "))))})),bp={getSecondsLeft:function(){var e=localStorage.getItem("reduxChallengeSecondsLeft");return e=isNaN(e)||null==e?wi.initialSecondsLeft:parseInt(e,10)},saveSecondsLeft:function(e){localStorage.setItem("reduxChallengeSecondsLeft",e)},getMinutesFormatted:function(e){return Math.floor(e/60)},getSecondsFormatted:function(e){return e%60},getFormatted:function(e){if(e<0)return"0:00";var t=this.getMinutesFormatted(e),n=this.getSecondsFormatted(e);return t+(9{const t=e("redux-templates/sectionslist");return{setChallengeStep:t.setChallengeStep,setChallengeFinalStatus:t.setChallengeFinalStatus,setChallengeOpen:t.setChallengeOpen}})])((function(e){const t=e.setChallengeStep,n=e.setChallengeFinalStatus,r=e.setChallengeOpen;return wp.element.createElement("div",{className:"redux-templates-modal-overlay"},wp.element.createElement("div",{className:"redux-templates-modal-wrapper challenge-popup-wrapper"},wp.element.createElement("div",{className:"challenge-popup-header challenge-popup-header-congrats",style:{backgroundImage:`url(${redux_templates.plugin+"assets/img/popup-congrats.png"})`}},wp.element.createElement("a",{className:"challenge-popup-close",onClick:()=>{t(wi.beginningStep),n(""),r(!1)}},wp.element.createElement("i",{className:"fas fa-times"}))),wp.element.createElement("div",{className:"challenge-popup-content"},wp.element.createElement("h3",null,Object(o.__)("Congrats, you did it!",redux_templates.i18n)),wp.element.createElement("p",null,Object(o.__)("You completed the Redux Challenge in ",redux_templates.i18n),wp.element.createElement("b",null,bp.getLocalizedDuration()),".",Object(o.__)("Share your success story with other Redux users and help us spread the word",redux_templates.i18n),wp.element.createElement("b",null,Object(o.__)("by giving Redux a 5-star rating (",redux_templates.i18n)," ",_p,Object(o.__)(") on WordPress.org",redux_templates.i18n)),".",Object(o.__)("Thanks for your support and we look forward to bringing more awesome features.",redux_templates.i18n)),wp.element.createElement("a",{href:"https://wordpress.org/support/plugin/redux-framework/reviews/?filter=5#new-post",className:"challenge-popup-btn challenge-popup-rate-btn",target:"_blank",rel:"noopener"},Object(o.__)("Rate Redux on Wordpress.org",redux_templates.i18n),wp.element.createElement("span",{className:"dashicons dashicons-external"})))))}));function kp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Op(e,t)}(e,t)||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 Op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("redux-templates/sectionslist");return{setChallengeStep:t.setChallengeStep,setChallengeFinalStatus:t.setChallengeFinalStatus,setChallengeOpen:t.setChallengeOpen}})])((function(e){const t=e.setChallengeStep,n=e.setChallengeFinalStatus,r=e.setChallengeOpen,l=kp(Cp(""),2),a=l[0],i=l[1],s=kp(Cp(!1),2),c=s[0],p=s[1],m=()=>{t(wi.beginningStep),n(""),r(!1)};return wp.element.createElement("div",{className:"redux-templates-modal-overlay"},wp.element.createElement("div",{className:"redux-templates-modal-wrapper challenge-popup-wrapper"},wp.element.createElement("div",{className:"challenge-popup-header challenge-popup-header-contact",style:{backgroundImage:`url(${redux_templates.plugin+"assets/img/popup-contact.png"})`}},wp.element.createElement("a",{className:"challenge-popup-close",onClick:m},wp.element.createElement("i",{className:"fas fa-times"}))),wp.element.createElement("div",{className:"challenge-popup-content challenge-contact"},wp.element.createElement("h3",null,Object(o.__)("Help us improve Redux",redux_templates.i18n)),wp.element.createElement("p",null,Object(o.__)("We're sorry that it took longer than 5 minutes to try our challenge. We aim to ensure our Block Template library is as beginner friendly as possible. Please take a moment to let us know how we can improve our challenge.",redux_templates.i18n)),wp.element.createElement("textarea",{value:a,onChange:e=>{i(e.target.value)}}),wp.element.createElement(Dr.CheckboxControl,{label:Object(o.__)("Yes, I give Redux permission to contact me for any follow up questions.",redux_templates.i18n),checked:c,onChange:()=>p(!c)}),wp.element.createElement("button",{className:"challenge-popup-btn challenge-popup-rate-btn",onClick:()=>{console.log("contact information",a,c),m()}},Object(o.__)("Submit Feedback",redux_templates.i18n)))))})),n(557);function Ip({finalStatus:e}){return wp.element.createElement(Ep,null)}var Pp=n(67),Tp={bottom:0,right:0},zp="click",Ap={backgroundColor:"#24B0A6",fill:"#ffffff",transform:"none",transition:"none",transformOrigin:"none"},Dp={backgroundColor:"#19837C"};n(559);Object(o.__)("Yes, I give Redux permission to contact me for any follow up questions.",redux_templates.i18n);function Mp(){const e=Ap,t=Dp,n=Tp,r=zp;return wp.element.createElement(Pp.b,{mainButtonStyles:e,position:n,icon:ar(),event:r,text:Object(o.__)("See Quick Links",redux_templates.i18n)},wp.element.createElement(Pp.a,{style:t,text:Object(o.__)("Get Support",redux_templates.i18n),onClick:e=>{window.open("https://wordpress.org/support/plugin/redux-framework/#new-topic-0","_blank")}},wp.element.createElement("i",{className:"far fa-question-circle "})),wp.element.createElement(Pp.a,{style:t,text:Object(o.__)("Join our Community",redux_templates.i18n),onClick:e=>{window.open("https://www.facebook.com/groups/reduxframework","_blank")}},wp.element.createElement("i",{className:"fa fa-comments"})),"1"===redux_templates.mokama&&wp.element.createElement(Pp.a,{style:t,text:Object(o.__)("Visit our Website",redux_templates.i18n),onClick:e=>{window.open(redux_templates.u+"tinyfab","_blank")}},wp.element.createElement("i",{className:"fas fa-external-link-alt"})),"1"!==redux_templates.mokama&&wp.element.createElement(Pp.a,{style:{backgroundColor:"#00a7e5"},text:Object(o.__)("Upgrade to Redux Pro",redux_templates.i18n),onClick:e=>{window.open(redux_templates.u+"help_bubble","_blank")}},wp.element.createElement("i",{className:"fa fa-star"})))}n(561);function Lp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rp(e,t)}(e,t)||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 Rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("redux-templates/sectionslist");return{setLoading:t.setLoading,setLibrary:t.setLibrary,setImportingTemplate:t.setImportingTemplate,clearSearch:t.clearSearch,clearState:t.clearState}}),Vp(e=>{const t=e("redux-templates/sectionslist"),n=t.fetchLibraryFromAPI,r=t.getActiveCollection,l=t.getActiveItemType,a=t.getErrorMessages,o=t.getImportingTemplate,i=t.getChallengeOpen,s=t.getChallengeFinalStatus;return{fetchLibraryFromAPI:n,activeCollection:r(),activeItemType:l(),errorMessages:a(),importingTemplate:o(),challengeFinalStatus:s(),isChallengeOpen:i()}})])((function(e){const t=e.fetchLibraryFromAPI,n=e.activeCollection,r=e.activeItemType,l=e.errorMessages,a=e.importingTemplate,o=e.challengeFinalStatus,i=e.isChallengeOpen,s=e.setLoading,c=e.setImportingTemplate,p=(e.clearSearch,e.clearState),m=Lp(Gp(!1),2),d=m[0],u=m[1],g=Lp(Gp(!1),2),f=g[0],h=g[1],b=Lp(Gp(!1),2),x=b[0],w=b[1];let y=null;Yp(()=>{p(),y=t(),null===y&&!1===d&&(s(!0),u(!0)),w(!!redux_templates.nps);const e=({keyCode:e})=>{27===e&&h(!0)};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},[]),Yp(()=>{f&&(h(!1),xr.isCustomizerOpened()?xr.closeCustomizer():a?c(null):xr.close())},[f]);const v=()=>("collection"!==r||null===n)&&"saved"!==r;return wp.element.createElement(br,{className:"redux-templates-builder-modal-pages-list",customClass:"redux-templates-builder-modal-template-list",openTimeoutMS:0,closeTimeoutMS:0},wp.element.createElement(Oi,null),l&&l.length>0&&wp.element.createElement(hp,{errorMessages:l}),wp.element.createElement("div",{className:"redux-templates-collections-modal-body"},v()&&wp.element.createElement(Dc,null),!1===v()&&"collection"===r&&wp.element.createElement(Jc,null),!1===v()&&"collection"!==r&&wp.element.createElement(op,null)),a&&wp.element.createElement(ha,{startImportTemplate:()=>{a&&so()}}),x&&wp.element.createElement(fp,{propOnClose:()=>w(!1)}),""!==o&&wp.element.createElement(Ip,{finalStatus:o}),!i&&wp.element.createElement(Mp,null))}));n(563);var Wp=Object(di.compose)([Object(ui.withDispatch)((e,{clientId:t})=>{const n=e("core/block-editor").removeBlocks;return{removeLibraryBlock:e=>{n(t)}}})])(({removeLibraryBlock:e,preview:t})=>(t&&alert("here i am"),wp.element.createElement("div",{className:"redux-template-library-block"},wp.element.createElement(Dr.Placeholder,{icon:wp.element.createElement(ar,null),label:Object(o.__)("Redux Template Library",redux_templates.i18n),instructions:Object(o.__)("Open the Design Library and select a pre-designed block or layout.",redux_templates.i18n)},wp.element.createElement(Dr.Button,{isSecondary:!0,isLarge:!0,hasIcon:!0,className:"redux-template-library-block__button",onClick:()=>{xr.open(wp.element.createElement(qp,null)),e()}},Object(o.__)("Open Design Library",redux_templates.i18n))))));n(564);var $p=()=>wp.element.createElement(Dr.Tooltip,{text:Object(o.__)("Redux Templates Library",redux_templates.i18n),position:"bottom"},wp.element.createElement(Dr.Button,{"data-tut":"tour__library_button",onClick:()=>{xr.open(wp.element.createElement(qp,null))},className:"redux-templates-insert-library-button",label:Object(o.__)("Open Library",redux_templates.i18n),icon:wp.element.createElement(ar,null)},Object(o.__)("Templates",redux_templates.i18n)));wp.blocks.registerBlockType;const Jp=Object(o.__)("Template Library",redux_templates.i18n),Xp=Object(o.__)("Choose a section, template, or template kit from the Redux Template Library.",redux_templates.i18n),Kp=[Object(o.__)("Template Library",redux_templates.i18n),Object(o.__)("Design Library",redux_templates.i18n),Object(o.__)("Element Layouts",redux_templates.i18n),Object(o.__)("Redux",redux_templates.i18n)],Zp={title:Jp,description:Xp,icon:or,category:"layout",keywords:Kp,attributes:{},supports:{customClassName:!1},example:{attributes:{}},edit:Wp,save:()=>null},Qp=function(e){const t=document.createElement("div");e.appendChild(t),Object(a.render)(wp.element.createElement($p,null),t)};function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tm(e){for(var t=1;t{let e=document.querySelector(".edit-post-header__toolbar");e||(e=document.querySelector(".edit-post-header__toolbar")),e?Qp(e):setTimeout((function(){let e=document.querySelector(".edit-post-header__toolbar");e&&Qp(e)}),500)});const rm=wp.blocks.registerBlockType;rm("redux/library",tm({},Zp)),rm("redux/import",tm({},dr));wp.i18n.__;const lm=wp.compose.compose,am=wp.data,om=am.withSelect,im=(am.select,wp.element.Fragment,wp.components.PanelBody,jr()(jo("section_categories_list"),"label"));Ir()(im,"value"),Ir()(im,"label");var sm=lm([om(e=>({getEditorBlocks:e("core/editor").getEditorBlocks}))])((function(e){return wp.editPost,null}));if(wp.plugins){(0,wp.plugins.registerPlugin)("redux-templates-share",{icon:ar,render:sm})}var cm=n(271);const pm=jr()(jo("page_categories_list"),"label"),mm={type:"object",properties:{title:{type:"string",title:"Block Title"},category:{type:"string",title:"Category",enum:Ir()(pm,"value"),enumNames:Ir()(pm,"label")},description:{type:"string",title:"Description"}}},dm={title:{classNames:"fixed-control"},category:{classNames:"fixed-control"},description:{"ui:widget":"textarea"}};var um=Object(di.compose)([Object(ui.withDispatch)((e,{clientIds:t,onToggle:n=i.noop,blocksSelection:r=[]})=>{e("core/block-editor").replaceBlocks;return{onExportBlock(){if(!r.length)return;console.log(r);wp.data.select("core/block-editor").getBlocks();const e=Object(ui.select)("core/block-editor").getSelectedBlockName(),t=Object(ui.select)("core/block-editor").getSelectedBlockClientId(),l=JSON.stringify({__file:"wp_block",title:e,content:t},null,2);console.log(l),n()}}})])((function({clientIds:e}){return e?wp.element.createElement(a.Fragment,null,wp.element.createElement(cm.PluginBlockSettingsMenuItem,{icon:ar,label:Object(o.__)("Share Block",redux_templates.i18n),onClick:()=>{const t={postID:Object(ui.select)("core/editor").getCurrentPostId(),editor_blocks:Object(ui.select)("core/block-editor").getBlocksByClientId(e),type:"block"};xr.openFeedback(wp.element.createElement(Fa,{title:Object(o.__)("Redux Shares",redux_templates.i18n),width:700,description:Object(o.__)("Share this design",redux_templates.i18n),schema:mm,uiSchema:dm,data:t,headerImage:wp.element.createElement("i",{className:"fas fa-share header-icon"}),endpoint:"share",onSuccess:e=>window.open(e.data.url,"_blank"),buttonLabel:Object(o.__)("Submit Template",redux_templates.i18n)}))}})):null}));if(wp.plugins){wp.plugins.registerPlugin,Object(ui.withSelect)(e=>{const t=e("core/block-editor").getSelectedBlockClientIds;return t?{clientIds:t()}:{}})(um)}function gm(e,t,n){const r=new window.Blob([t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,e);else{const t=document.createElement("a");t.href=URL.createObjectURL(r),t.download=e,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}}var fm=async function(e){const t=await wp.apiFetch({path:"/wp/v2/types/wp_block"}),n=await wp.apiFetch({path:"/wp/v2/"+t.rest_base+"/"+e+"?context=edit"}),r=n.title.raw,l=n.content.raw,a=JSON.stringify({__file:"wp_block",title:r,content:l},null,2);gm(Object(i.kebabCase)(r)+".json",a,"application/json")};const hm=wp.i18n.__,bm=wp.data,xm=bm.withSelect,wm=bm.select,ym=wp.compose.compose,vm=wp.element.Fragment,_m=wp.components.withSpokenMessages,Em=wp.blocks.serialize;var km=ym([xm(()=>{const e=wm("core/block-editor"),t=e.getSelectedBlockCount,n=e.getSelectedBlock,r=e.getMultiSelectedBlocks,l=wm("core/block-editor").getBlock;return{selectedBlockCount:t(),selectedBlock:n(),selectedBlocks:r(),getBlock:l}}),_m])((function(e){const t=e.selectedBlockCount,n=e.selectedBlock,r=e.selectedBlocks;if(!wp.editPost)return null;const l=wp.editPost.PluginBlockSettingsMenuItem;return wp.element.createElement(vm,null,wp.element.createElement(l,{icon:rr(wp.element.createElement(Dr.Dashicon,{icon:"migrate"})),label:hm("Export Block",redux_templates.i18n),onClick:()=>{if(t<1)return;let e,l="redux_templates/export";if(1===t){if("core/block"===n.name)return void fm(n.attributes.ref);e=Em(n),l=n.name}t>1&&(e=Em(r));const a=JSON.stringify({__file:"core_block",content:e},null,2);gm("block-template-"+Object(i.kebabCase)(l)+".json",a,"application/json")}}))}));if(wp.plugins){(0,wp.plugins.registerPlugin)("redux-templates-export",{render:km})}const Om=wp.element.Fragment;const Sm=Object(di.compose)(Object(ui.withSelect)(e=>({editedPostContent:e("core/editor").getEditedPostAttribute("content")})),Object(ui.withDispatch)(e=>({createNotice:e("core/notices").createNotice})),Object(di.ifCondition)(({editedPostContent:e})=>e.length>0))((function({createNotice:e,editedPostContent:t}){if(!wp.plugins)return null;const n=wp.editPost.PluginMoreMenuItem;return wp.element.createElement(Om,null,wp.element.createElement(n,{icon:rr(wp.element.createElement(Dr.Dashicon,{icon:"migrate"})),role:"menuitemcheckbox",onClick:()=>{gm("page-template-export.json",JSON.stringify({__file:"core_block",content:t},null,2),"application/json")}},Object(o.__)("Export Page",redux_templates.i18n)))}));if(wp.plugins){(0,wp.plugins.registerPlugin)("redux-templates-export-page",{render:Sm})}const Cm=wp.element.Fragment;const jm=Object(di.compose)(Object(ui.withSelect)(e=>({})),Object(ui.withDispatch)(e=>{}))((function(){if(!wp.plugins)return null;const e=wp.editPost.PluginMoreMenuItem;return wp.element.createElement(Cm,null,wp.element.createElement(e,{icon:or(),role:"menuitemcheckbox",onClick:()=>{xr.open(wp.element.createElement(qp,null))}},Object(o.__)("Template Library",redux_templates.i18n)))}));if(wp.plugins){(0,wp.plugins.registerPlugin)("redux-open-library-context",{render:jm})}function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Im(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("redux-templates/sectionslist");return{setChallengeStep:t.setChallengeStep,setChallengeFinalStatus:t.setChallengeFinalStatus,setChallengePassed:t.setChallengePassed,setChallengeListExpanded:t.setChallengeListExpanded,setImportingTemplate:t.setImportingTemplate}}),Lm((e,t)=>{const n=e("redux-templates/sectionslist"),r=n.getChallengeTooltipRect,l=n.getChallengeOpen,a=n.getChallengeStep,o=n.getChallengeFinalStatus;return{tooltipRect:r(),isOpen:l(),challengeStep:a(),finalStatus:o()}})])((function(e){const t=e.challengeStep,n=e.tooltipRect,r=e.isOpen,l=e.setChallengeStep,a=e.setChallengeFinalStatus,i=e.setChallengePassed,s=e.setChallengeListExpanded,c=e.setImportingTemplate,p=Tm(Bm({}),2),m=p[0],d=p[1],u=Tm(Bm({}),2),g=u[0],f=u[1],h=Tm(Bm(""),2),b=h[0],x=h[1],w=Tm(Bm(""),2),y=w[0],v=w[1];return Fm(()=>{if((t>=0||t>wi.totalStep)&&r&&n){const e=wi.list[t];if(e){const r=Tm((()=>{const e=wi.list[t],r=e.box&&e.box.width?e.box.width:250,l=e.box&&e.box.height?e.box.height:300,a=e.offset?e.offset.x:0,o=e.offset?e.offset.y:20;switch(e.direction){case"right":case"left":return[n.left+a,n.top+o-l/2];case"top":return[n.left+a-r/2,n.top+o];case"bottom":return[n.left+a-r/2,n.top-l+o];default:return[n.left+a,n.top+o]}})(),2),l=r[0],a=r[1],o=Tm((()=>{const e=wi.list[t],n=e.box&&e.box.width?e.box.width:250,r=e.box&&e.box.height?e.box.height:300,l=e.offset&&!1===isNaN(e.offset.arrowX)?e.offset.arrowX:20,a=e.offset&&!1===isNaN(e.offset.arrowY)?e.offset.arrowY:20;switch(e.direction){case"top":case"bottom":return[n/2+l,a];case"left":return[l,a+r/2-15];case"right":return[n+l,a+r/2-15];default:return[l,a]}})(),2),i=o[0],s=o[1];d(Im(Im({},m),{},{display:"block",width:e.box?e.box.width:250,left:l,top:a})),x(e.content),f(Im(Im({},g),{},{display:"block",left:l+i,top:a+s}))}}else d(Im(Im({},m),{},{display:"none"})),f(Im(Im({},g),{},{display:"none"}))},[JSON.stringify(n),t,r]),Fm(()=>{const e=wi.list[t];if(e)switch(e.direction){case"top":v("challenge-tooltip tooltipster-sidetip tooltipster-top");break;case"bottom":v("challenge-tooltip tooltipster-sidetip tooltipster-bottom");break;case"left":v("challenge-tooltip tooltipster-sidetip tooltipster-left");break;case"right":v("challenge-tooltip tooltipster-sidetip tooltipster-right");break;default:v("challenge-tooltip tooltipster-sidetip tooltipster-left")}},[t]),wp.element.createElement("div",{className:y},wp.element.createElement("div",{className:"tooltipster-box",style:m},b,wp.element.createElement("div",{className:"btn-row"},wp.element.createElement("button",{className:"challenge-done-btn",onClick:()=>{t===wi.totalStep-1?(xr.show(),a(bp.getSecondsLeft()>0?"success":"contact"),l(wi.beginningStep),i(!0),s(!0),c(null)):l(t+1)}},Object(o.__)("Next",redux_templates.i18n)))),wp.element.createElement("div",{className:"tooltipster-arrow",style:g},wp.element.createElement("div",{className:"tooltipster-arrow-uncropped"},wp.element.createElement("div",{className:"tooltipster-arrow-border"}),wp.element.createElement("div",{className:"tooltipster-arrow-background"}))))}));n(566),n(248);function Vm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Um(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Um(e,t)}(e,t)||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 Um(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{tn||l)&&(p("challenge-item challenge-item-completed"),i("fas fa-check-circle"))},[n,t,l]),wp.element.createElement("li",{className:c},wp.element.createElement("i",{className:o}),r)}function Jm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xm(e,t)}(e,t)||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 Xm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{r(e<=0?0:e/wi.totalStep*100)},[e]),wp.element.createElement("div",{className:"challenge-bar"},wp.element.createElement("div",{style:{width:n+"%"}}))}));function td(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nd(e,t)}(e,t)||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 nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=e("redux-templates/sectionslist");return{setChallengeOpen:t.setChallengeOpen,setChallengeStep:t.setChallengeStep}}),od(e=>{const t=e("redux-templates/sectionslist"),n=t.getChallengeStep,r=t.getChallengeFinalStatus;return{challengeStep:n(),finalStatus:r()}})])((function(e){e.started;const t=e.onStarted,n=e.challengeStep,r=e.finalStatus,l=e.setChallengeOpen,a=e.setChallengeStep,i=td(sd("challenge-button-row"),2),s=i[0],c=i[1];cd(()=>{c(n!==wi.beginningStep?"challenge-button-row started":"challenge-button-row")},[n]);const p=()=>{l(!1),a(-1)};return wp.element.createElement("div",{className:"challenge-list-block"},wp.element.createElement("p",null,Object(o.__)("Complete the challenge and get up and running within 5 minutes",redux_templates.i18n)),wp.element.createElement(ed,{currentStep:"success"===r?wi.totalStep:n}),wp.element.createElement("ul",{className:"challenge-list"},wi.list.map((e,t)=>wp.element.createElement($m,{key:t,step:t,currentStep:n,finalStatus:r,caption:e.caption}))),""===r&&wp.element.createElement("div",{className:s},n===wi.beginningStep&&wp.element.createElement("button",{className:"btn-challenge-start",onClick:t},Object(o.__)("Start Challenge",redux_templates.i18n)),n===wi.beginningStep&&wp.element.createElement("button",{className:"btn-challenge-skip",onClick:p},Object(o.__)("Skip Challenge",redux_templates.i18n)),n!==wi.beginningStep&&wp.element.createElement("button",{className:"btn-challenge-cancel",onClick:p},Object(o.__)("Cancel Challenge",redux_templates.i18n))))})),md=(n(569),n(116)),dd=n.n(md);function ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gd(e,t)}(e,t)||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 gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setChallengeListExpanded:e("redux-templates/sectionslist").setChallengeListExpanded})),bd(e=>{const t=e("redux-templates/sectionslist"),n=t.getChallengeOpen,r=t.getChallengeFinalStatus,l=t.getChallengeListExpanded;return{isChallengeOpen:n(),finalStatus:r(),expanded:l()}})])((function(e){const t=e.started,n=e.expanded,r=e.setChallengeListExpanded,l=e.isChallengeOpen,a=e.finalStatus,i=ud(yd(bp.getSecondsLeft()),2),s=i[0],c=i[1],p=ud(yd(!1),2),m=p[0],d=p[1];vd(()=>(window.addEventListener("focus",g),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",u)})),vd(()=>{c(bp.getSecondsLeft()),-1===bp.loadStep()&&c(wi.initialSecondsLeft)},[l]),function(e,t){const n=_d();vd(()=>{n.current=e},[e]),vd(()=>{if(null!==t){let e=setInterval((function(){n.current()}),t);return()=>clearInterval(e)}},[t])}(()=>{c(s<0?0:s-1),bp.saveSecondsLeft(s<0?0:s-1)},t&&!1===m&&s>=0&&""===a?1e3:null);const u=()=>{d(!0)},g=()=>{d(!1)};return wp.element.createElement("div",{className:"block-timer"},wp.element.createElement("div",null,wp.element.createElement("h3",null,Object(o.__)("Redux Challenge",redux_templates.i18n)),wp.element.createElement("p",null,wp.element.createElement("span",null,bp.getFormatted(s)),Object(o.__)(" remaining",redux_templates.i18n))),wp.element.createElement("div",{className:dd()("caret-icon",{closed:n}),onClick:()=>r(!n)},wp.element.createElement("i",{className:"fa fa-caret-down"})))}));function kd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Od(e,t)}(e,t)||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 Od(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n({setChallengeStep:e("redux-templates/sectionslist").setChallengeStep})),Nd(e=>{const t=e("redux-templates/sectionslist"),n=t.getChallengeStep,r=t.getChallengeOpen,l=t.getChallengeListExpanded;return{challengeStep:n(),isOpen:r(),listExpanded:l()}})])((function(e){e.autoChallengeStart;const t=e.isOpen,n=e.challengeStep,r=e.setChallengeStep,l=e.listExpanded,a=kd(Pd("redux-templates-challenge"),2),o=a[0],i=a[1],s=kd(Pd(!1),2),c=s[0],p=s[1];return Td(()=>{n!==wi.beginningStep&&t&&(i("redux-templates-challenge started"),p(!0))},[n,t]),wp.element.createElement("div",{className:o,style:{display:t?"block":"none"}},l&&wp.element.createElement(pd,{onStarted:()=>{r(0),p(!0)}}),wp.element.createElement(Ed,{started:c}))}));function Ad(){return(Ad=Object.assign||function(e){for(var t=1;twp.element.createElement(React.Fragment,null,wp.element.createElement("img",Ad({className:"redux-edit-post-welcome-guide__image redux-edit-post-welcome-guide__image__prm-np",alt:"",src:redux_templates.plugin+"assets/img/welcome-guide-1.png"},e))),Md=e=>wp.element.createElement(React.Fragment,null,wp.element.createElement("img",Ad({className:"redux-edit-post-welcome-guide__image redux-edit-post-welcome-guide__image__prm-np",alt:"",src:redux_templates.plugin+"assets/img/welcome-guide-2.gif"},e))),Ld=e=>wp.element.createElement(React.Fragment,null,wp.element.createElement("img",Ad({className:"redux-edit-post-welcome-guide__image redux-edit-post-welcome-guide__image__prm-np",alt:"",src:redux_templates.plugin+"assets/img/welcome-guide-3.png"},e)));n(571);function Rd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,l=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){l=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(l)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bd(e,t)}(e,t)||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 Bd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne("core/edit-post").isFeatureActive("welcomeGuide"),[])?(delete redux_templates.welcome,null):t&&void 0!==redux_templates.welcome?wp.element.createElement(Dr.Guide,{className:"redux-edit-post-welcome-guide",contentLabel:Object(o.__)("Say hello to the Redux template library",redux_templates.i18n),onFinish:()=>{n(!1);const e={method:"POST",path:"redux/v1/templates/welcome/?uid="+window.userSettings.uid};Hd(e).then(e=>{}).catch(e=>{})},pages:[{image:wp.element.createElement(Dd,null),content:wp.element.createElement(React.Fragment,null,wp.element.createElement("h1",{className:"redux-edit-post-welcome-guide__heading"},Object(o.__)("Try the Redux Template Library",redux_templates.i18n)),wp.element.createElement("h3",{className:"redux-edit-post-welcome-guide__text"},Object(o.__)("Redux brings you over 1,000 importable templates and blocks that allow you to build Gutenberg powered pages and websites in minutes not days.",redux_templates.i18n)))},{image:wp.element.createElement(Md,null),content:wp.element.createElement(React.Fragment,null,wp.element.createElement("h1",{className:"redux-edit-post-welcome-guide__heading"},Object(o.__)("Using the Template Library",redux_templates.i18n)),wp.element.createElement("h3",{className:"redux-edit-post-welcome-guide__text"},Object(o.__)("To use the template library click on the library button then pick your favourite template and import! Redux allows you to import beautiful Gutenberg pages in seconds.",redux_templates.i18n)))},{image:wp.element.createElement(Ld,null),content:wp.element.createElement(React.Fragment,null,wp.element.createElement("h1",{className:"redux-edit-post-welcome-guide__heading"},Object(o.__)("Import 5 templates for free or go Pro!",redux_templates.i18n)),wp.element.createElement("h3",{className:"redux-edit-post-welcome-guide__text"},Object(o.__)("Redux allows you 5 free imports or you can go Pro now and import unlimited templates for just $49/year (limited time only).",redux_templates.i18n),wp.element.createElement("br",null),wp.element.createElement("br",null),wp.element.createElement("center",null,wp.element.createElement(Dr.ExternalLink,{href:redux_templates.u+"welcome-guide"},Object(o.__)("Learn more at Redux.io",redux_templates.i18n)))))}]}):null}var Ud=(0,wp.compose.compose)([(0,wp.data.withSelect)(e=>({template:(0,e("core/editor").getEditedPostAttribute)("template")}))])((function(e){const t=e.template;return Object(a.useEffect)(()=>{t.includes("redux-templates_")?document.body.className+=" redux-template":document.querySelector("body").classList.remove("redux-template")},[t]),wp.element.createElement("div",null)}));n(573);const Gd=wp.i18n.__,Yd=wp.element,qd=Yd.Fragment,Wd=Yd.useEffect,$d=Yd.useRef;var Jd=({attributes:e,setAttributes:t,clientId:n})=>{Wd(()=>{r();if(e.customCSS){const t=e.customCSS.replace(/.ticss-[a-zA-Z0-9_-]*/g,"selector");a.current=t}else a.current="selector {\n}\n";l.current=wp.CodeMirror(document.getElementById("redux-css-editor"),{value:a.current,autoCloseBrackets:!0,continueComments:!0,lineNumbers:!0,lineWrapping:!0,matchBrackets:!0,lint:!0,gutters:["CodeMirror-lint-markers"],styleActiveLine:!0,styleActiveSelected:!0,extraKeys:{"Ctrl-Space":"autocomplete","Alt-F":"findPersistent","Cmd-F":"findPersistent"}}),l.current.on("change",()=>{const e=new RegExp("selector","g"),n=l.current.getValue().replace(e,"."+o.current);if(a.current=n,"selector {\n}\n".replace(/\s+/g,"")===a.current.replace(/\s+/g,""))return t({customCSS:null});t({customCSS:a.current})})},[]),Wd(()=>{let e=r();t({hasCustomCSS:!0,className:e})},[e]);const r=()=>{let t;const r=n.substr(0,8);return null!==a.current&&"selector {\n}\n".replace(/\s+/g,"")===a.current.replace(/\s+/g,"")?e.className:(e.className?(t=e.className,t.includes("ticss-")||(t=t.split(" "),t.push("ticss-"+r),t=t.join(" ")),o.current=t.split(" "),o.current=o.current.find(e=>e.includes("ticss"))):(t="ticss-"+r,o.current=t),t)},l=$d(null),a=$d(null),o=$d(null);return wp.element.createElement(qd,null,wp.element.createElement("p",null,Gd("Add your custom CSS.")),wp.element.createElement("div",{id:"redux-css-editor",className:"redux-css-editor"}),wp.element.createElement("p",null,Gd("Use")," ",wp.element.createElement("code",null,"selector")," ",Gd("to target block wrapper.")),wp.element.createElement("p",null,Gd("")),wp.element.createElement("p",null,Gd("Example:")),wp.element.createElement("pre",{className:"redux-css-editor-help"},"selector {\n background: #000;\n}\n\nselector img {\n border-radius: 100%;\n}"),wp.element.createElement("p",null,Gd("You can also use other CSS syntax here, such as media queries.")))};n(575);const Xd=lodash.assign,Kd=wp.i18n.__,Zd=wp.blocks.hasBlockSupport,Qd=wp.components.PanelBody,eu=wp.compose.createHigherOrderComponent,tu=(wp.blockEditor||wp.editor).InspectorControls,nu=wp.element.Fragment,ru=wp.hooks,lu=ru.addFilter,au=ru.removeFilter,ou=eu(e=>t=>Zd(t.name,"customClassName",!0)&&t.isSelected?wp.element.createElement(nu,null,wp.element.createElement(e,t),wp.element.createElement(tu,null,wp.element.createElement(Qd,{title:Kd("Custom CSS"),icon:wp.element.createElement("i",{className:"fa fa"}),initialOpen:!1},wp.element.createElement(Jd,{clientId:t.clientId,setAttributes:t.setAttributes,attributes:t.attributes})))):wp.element.createElement(e,t),"withInspectorControl");au("blocks.registerBlockType","themeisle-custom-css/attribute"),au("editor.BlockEdit","themeisle-custom-css/with-inspector-controls"),lu("blocks.registerBlockType","redux-custom-css/attribute",e=>(Zd(e,"customClassName",!0)&&(e.attributes=Xd(e.attributes,{hasCustomCSS:{type:"boolean",default:!1},customCSS:{type:"string",default:null}})),e)),lu("editor.BlockEdit","redux-custom-css/with-inspector-controls",ou),Object(l.a)(()=>{setTimeout(()=>{const e=document.createElement("div");e.className="challenge-tooltip-holder",document.body.appendChild(e);const t=document.createElement("div");t.className="challenge-wrapper",document.body.appendChild(t),"#redux_challenge=1"==window.location.hash&&(window.location.hash="",xr.open(wp.element.createElement(qp,null))),"#redux_templates=1"==window.location.hash&&(window.location.hash="",xr.open(wp.element.createElement(qp,null))),!1===document.body.classList.contains("wp-admin")&&xr.open(wp.element.createElement(qp,null)),Object(a.render)(wp.element.createElement(zd,null),t),Object(a.render)(wp.element.createElement(Hm,null),e),Object(a.render)(wp.element.createElement(Vd,null),e),Object(a.render)(wp.element.createElement(Ud,null),e),(()=>{try{let e=localStorage.getItem("block_data");if(!e||null==e)return;if(e=JSON.parse(e),!e||null==e||e.length<1)return;e=e.filter(e=>e.name&&e.attributes&&e.innerBlocks).map(e=>{if(e.name&&e.attributes&&e.innerBlocks)return xo(e.name,e.attributes,e.innerBlocks)}),e.length>0&&(vo(e),yo("Template inserted",{type:"snackbar"}));let t=localStorage.getItem("importing_data");if(!t||null==t)return;t=JSON.parse(t),po(t,e),localStorage.setItem("block_data",null),localStorage.setItem("importing_data",null)}catch(e){alert(e.code+" : "+e.message)}})()},500)})},65:function(e,t){e.exports=wp.blockEditor},9:function(e,t){e.exports=wp.element}});