Starter Templates by Kadence WP - Version 1.2.14

Version Description

  • Add: Filtering options.
  • Fix: Issue with internal links breaking images on import.
  • Fix: Modal title style issue.
  • Fix: Preview iframe issue.
Download this release

Release Info

Developer britner
Plugin Icon 128x128 Starter Templates by Kadence WP
Version 1.2.14
Comparing to
See all releases

Code changes from version 1.2.13 to 1.2.14

assets/css/starter-templates.css CHANGED
@@ -1 +1 @@
1
- .kb-pro-template{padding:4px 10px;position:absolute;z-index:10000;bottom:10px;right:10px;background:#c53030;border-radius:10px;line-height:20px;color:#fff;text-transform:uppercase;font-weight:bold;font-size:11px;text-align:center}.bundle-install-required .plugin-status{color:#c53030}a.components-external-link.kst-upgrade.button-hero.button.button-primary{width:80%;min-height:36px;line-height:2.5;font-size:14px;text-align:center}.kt-upgrade-notice{display:flex;flex-direction:column;justify-content:center;align-items:center;height:70px}.kt-popover-pro-notice{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;opacity:0;z-index:10;text-align:center;background:rgba(255,255,255,.9);transition:opacity .3s ease-in-out}.kt-popover-pro-notice .components-external-link{background:#007cba;padding:10px 10px;color:#fff;border-radius:4px;text-decoration:none}.kt-popover-pro-notice:hover{opacity:1}.appearance_page_kadence-starter-templates #wpcontent{padding:0}.kadence_theme_dash_back{height:100%}.kst-choose-builder-wrap.adjust-to-three-column{max-width:600px}.kst-choose-builder-wrap.adjust-to-three-column .kst-choose-builder-inner{grid-template-columns:1fr 1fr 1fr}.kadence_theme_dash_head .components-menu-items__item-icon.custom-image-icon-src{margin-right:10px}.kst-choose-builder-inner img.custom-image-icon-src{width:100px;max-height:100px;height:auto}.custom-image-icon-src,.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button img{max-width:100%;width:24px;max-height:24px;height:auto}.kadence_theme_dash_reload .components-button.kt-reload-templates.has-icon{border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:100%;width:40px;color:#4a5568;border-radius:0;justify-content:center}.kadence_theme_dash_reload .components-button.kt-reload-templates.has-icon svg{margin:0;width:18px;height:18px}.kadence_theme_dash_reload{height:100%}.appearance_page_kadence-starter-templates .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:70px}.kadence_theme_dash_back .components-button.kt-import-back{border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:100%;width:40px;color:#4a5568;border-radius:0}.kst-import-options-title{line-height:20px;padding-top:5px;font-size:12px;text-transform:uppercase;text-align:center;margin:0;color:#4a5568}.appearance_page_kadence-starter-templates .expanded .wp-full-overlay-footer{height:70px}.kadence_theme_dash_back .components-button.kt-import-back:hover{border-left:1px solid #cbd5e0;border-right:1px solid #cbd5e0;background:#f6f9fd}.kadence_theme_dash_back .components-button.kt-import-back svg{width:30px;height:30px;margin:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-button svg.kst-chev{width:16px}.components-modal__frame.kst-import-modal{min-width:460px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12),.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11){padding-top:20px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg:before,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg:before{content:"dark";color:#111}.kst-import-selection-options{padding-bottom:90px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg{position:absolute;left:2px;top:-1px;right:2px;display:block;bottom:auto;opacity:.2;height:1px;border-radius:0}.components-modal__frame.kst-import-modal .components-button.is-primary{padding-left:0px;padding-top:16px;padding-right:0px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto;display:block;width:100%;text-align:center}.kst-import-modal .components-panel__body h3{font-size:14px;line-height:20px;margin:10px 0;color:#4a5568}.kst-selected-font-pair{display:flex;align-items:center;margin-bottom:20px}.kst-selected-font-pair img{max-width:50px}h3.kst-selected-font-pair-title{margin-bottom:0}.kadence-starter-templates-preview .install-theme-info p.desc-small,.kadence-starter-templates-preview .kadence-starter-required-plugins p.desc-small{color:#4a5568;font-style:italic}.kadence-starter-templates-preview .install-theme-info .theme-screenshot{width:60px;margin:15px 15px 15px 0}.kadence-starter-templates-preview .theme-info-wrap{display:flex;align-items:center}.kadence-starter-templates-preview .install-theme-info{padding-bottom:0}.kst-choose-builder-wrap{min-height:calc(100vh - 180px);max-width:400px;margin:0 auto;display:flex;align-items:center}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button{box-shadow:none !important}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button.active-item{border:1px solid #a0aec0}.kst-choose-builder-center{width:100%;background:#fff;padding:30px;border-radius:4px;box-shadow:0px 25px 35px -10px rgba(0,0,0,.05);position:relative}.kst-choose-builder-center .kst-overlay-saving{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);border-radius:4px}.kst-choose-builder-inner{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px}.kst-choose-builder-center h2.kst-choose-builder-title{margin-top:0;text-align:center;text-transform:uppercase;font-weight:300;margin-bottom:30px;font-size:20px;color:#718096}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type{font-size:20px;text-align:center;height:auto;padding:20px;display:flex;border:1px solid #cbd5e0;border-radius:4px;flex-direction:column;font-weight:500;text-transform:uppercase;color:#4a5568}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type svg{width:100px;height:100px;margin-bottom:10px;margin-right:0}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type:hover{color:#2d3748;border-color:#007cba}.components-button-group.kst-font-group{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1em}.components-button-group.kst-font-group .components-button.kst-font-btn{display:block;height:auto;padding:5px 5px 0;border:1px solid #eee;border-radius:0;background:#fff;outline:0;box-shadow:none}.components-button-group.kst-font-group .components-button.kst-font-btn img.font-pairing{max-width:100%}.font-title-wrap,.palette-title-wrap{display:flex;align-items:center;justify-content:space-between}.font-title-wrap h2,.palette-title-wrap h2{font-size:16px;font-weight:600;color:#4a5568}.kadence-starter-required-plugins{padding:10px 20px 10px}.font-title-wrap,.kadence-starter-required-plugins{border-top:1px solid #e2e8f0;padding-top:6px;margin-top:18px}.kadence-starter-required-plugins h2.kst-required-title{font-size:16px;font-weight:600;color:#4a5568}.components-button-group.kst-font-group .components-button.kst-font-btn.active{border-color:#333}.components-button-group.kst-font-group .components-button.kst-font-btn:hover{border-color:#999}.kadence_theme_starter_dash_inner{margin:90px 20px 0}.kadence_theme_dash_head .st2{fill:#191717}.install-theme-info .components-button.has-icon .dashicons-image-rotate{width:10px;height:10px;font-size:10px}.kadence_theme_dash_head{background:#fff;padding:0px 20px;height:60px;border-bottom:1px solid #ebebeb;box-shadow:0 0 6px -2px rgba(0,0,0,.1);position:fixed;top:32px;left:160px;z-index:100;right:0}.kadence_theme_dash_head h1{color:#2d3748;line-height:50px;padding:0;height:50px;margin:0;display:flex;align-items:center}.kadence_theme_dash_head .subtext{font-size:16px;color:#718096;display:inline-block;padding-left:10px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;display:flex;height:100%;align-items:center}.kadence_theme_dash_head .kadence_theme_dash_logo{width:50px;height:50px;padding-right:10px}.kadence_theme_dash_head .kadence_theme_dash_logo img{width:50px}.kadence_theme_dash_head .kadence_starter_builder_type{flex-grow:1;text-align:right}.kadence_theme_dash_head .kadence_theme_dash_version span{padding:5px;background:#4a5568;color:#fff}.folded .kadence_theme_dash_head{left:36px}@media only screen and (max-width: 960px){.auto-fold .kadence_theme_dash_head{left:36px}}@media screen and (max-width: 782px){.auto-fold .kadence_theme_dash_head{left:0px}}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar{border-color:#888}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button{padding:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button svg{width:40px;height:40px}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar .components-dropdown__content button.components-button svg{width:24px;height:24px;margin-left:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown__content{text-align:left}.wrap.kadence_theme_starter_dash{margin:0}.kadence_theme_dashboard{margin:0 auto}.templates-grid{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);grid-gap:2em}.kst-template-item .components-button.kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;overflow:hidden;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-template-item .components-button.kst-import-btn img{max-width:100%;height:auto}.kst-grid-single-item{max-width:800px}.kst-grid-single-item .kst-template-item{overflow:hidden}.kst-grid-single-item .kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-grid-single-item .kst-import-btn img{max-width:100%;height:auto}.components-modal__frame.kst-import-modal{max-width:600px}.components-modal__frame.kst-import-modal .components-button.is-primary{margin-top:20px}.kadence_starter_templates_notice{background:transparent;margin-bottom:20px;border:1px solid #cbd5e0;padding:10px;color:#4a5568;font-weight:normal}.kst-import-modal ul.kadence-required-wrap{margin-bottom:20px}.components-modal__frame.kst-import-modal{-webkit-animation:none !important;animation:none !important}.kst-import-modal h3{font-size:16px}.kadence_starter_templates_response{background:#fffaf0;margin-bottom:20px;border:1px solid #ed8936;padding:20px;color:#c05621;font-weight:bold;margin-top:30px}.kst-import-selection-title .components-button.kt-import-back{border:1px solid;margin-right:10px}.kst-import-selection-title{display:flex;align-items:center;margin-bottom:10px}.kst-grid-single-item-single-page .kst-template-item{padding-bottom:90%}.kadence_starter_templates_response h2{margin-bottom:10px;margin-top:0}.kst-template-item{position:relative;height:0;box-shadow:0 1px 2px rgba(0,0,0,.15);padding-bottom:65%}.kst-template-item::after{content:"";position:absolute;z-index:-1;width:100%;height:100%;opacity:0;border-radius:5px;box-shadow:0 15px 15px -10px rgba(0,0,0,.1);transition:opacity .3s ease-in-out}.kst-template-item:hover::after{opacity:1}.sidebar-section .components-panel__body.is-opened{padding:20px}.sidebar-section h2:first-child,.tab-section h2:first-child{margin-top:0}.side-panel .components-panel+.components-panel{margin-top:1rem}.tab-section .components-panel__body.is-opened{padding:25px}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button{border:1px solid transparent;background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:hover{box-shadow:none !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:not(.active-tab):hover{color:#007cba !important;background:transparent !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button.active-tab{background:#fff;border:1px solid #e2e4e7;border-bottom-color:transparent}.kadence-dashboard-tab-panel .components-tab-panel__tabs{margin-bottom:-1px}.two-col-grid{display:grid;grid-gap:1rem;grid-template-columns:1fr 1fr 1fr}h3.section-sub-head{background:#edf2f7;padding:10px;color:#4a5568;font-size:14px;text-transform:uppercase;margin-bottom:1rem;margin-top:2rem}.link-item{border:1px solid #e2e8f0;padding:20px;border-radius:4px;display:flex;flex-flow:column nowrap}.link-item h4{margin:0}.dashboard-pro-settings{margin-top:2rem}.link-item .link-item-foot{margin-top:auto;display:flex;align-items:center}.link-item .link-item-foot .components-spinner{margin-top:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field{margin-bottom:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field .components-form-toggle{margin-right:0}.link-item .link-item-foot>*:first-child{flex-grow:2}.link-item a{display:block;background:transparent;color:#4a5568}.link-item a:hover{color:#007cba}span.kt-license-status{padding:4px;margin-left:10px;font-size:14px;text-transform:uppercase}span.kt-license-status.k-inactive{color:#c05621 !important;background:#fffaf0 !important}span.kt-license-status.k-active{color:#2b6cb0 !important;background:#ebf8ff !important}.license-section h2{display:flex;margin-top:0;align-items:center;justify-content:space-between}.license-section table.form-table{display:block}.license-section table.form-table tbody{display:block}.license-section table.form-table td,.license-section table.form-table tr{display:block;padding:0;width:100%}.license-section .form-table th{padding:0;width:100%;margin-bottom:4px;display:block;color:#4a5568}.license-section p.submit{padding:0;margin-top:10px}.license-section table.form-table input[type=text]{width:100%}.kadence-starter-templates-preview .install-theme-info .theme-name{font-size:20px}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button{width:100%;line-height:1;min-height:35px;padding:0}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{padding:5px}.kadence-starter-templates-preview button.components-button.kst-palette-btn{border-radius:4px !important;padding:5px 5px 5px 7px;height:auto;display:inline-flex;align-items:flex-end;justify-content:center;border:1px solid transparent;position:relative;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn .kst-palette-bg{display:none}.kst-template-item .components-button.kst-import-btn:hover,.kst-template-item .components-button.kst-import-btn:focus{box-shadow:0 7px 15px 0 rgba(0,0,0,.15) !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn:focus{border:1px solid #999;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:focus{background:#fff;border:1px solid #333;box-shadow:none}.demo-title{height:30px;margin:0;padding:10px 0;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);background:#fff;position:absolute;bottom:0;left:0;width:100%}.demo-title h4{margin:0;font-size:14px;text-align:left;line-height:30px;padding:0 20px;color:#1e1e1e}.kadence-starter-templates-preview .components-button-group.kst-palette-group{display:grid;grid-template-columns:1fr 1fr;grid-gap:5px}@media(max-width: 1860px){.kadence-starter-templates-preview .kadence-swatche-item-wrap{width:22px !important;height:22px !important}h2.palette-title{font-size:15px}}@media(max-width: 1059px){.templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}.install-third-party-notice{margin-top:10px;max-width:540px;background:#fffaf0;padding:1em;color:#c05621;border:1px solid #c05621;font-weight:600}.install-third-party-notice>p{margin-top:0}.components-modal__frame.kst-import-modal .components-button.is-primary.import-partial-btn{background:#6b7280}.install-third-party-notice .plugin-status{color:#92400e}.plugin-install-required{display:block;font-style:oblique;font-weight:400;color:#c05621}.kadence-required-wrap{font-weight:bold;list-style:disc;padding-left:1.4em}span.plugin-status{text-transform:uppercase;color:#718096}.kst-palette-btn.kst-selected-color-palette{display:flex;margin-bottom:20px}.finshed-notice-success .button-primary.button.kadence-starter-templates-finish-button{padding:10px 16px;font-size:18px}.kst-grid-single-site{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-gap:4em}.kst-import-selection{height:100%;max-height:calc(100vh - 140px);overflow-y:scroll}.kst-import-grid-title h2{font-size:14px;line-height:20px;margin:10px 0;color:#4a5568}.kst-import-selection-title h2{font-size:16px;line-height:26px;margin:0 0 10px 0;color:#2d3748}.kst-import-single-selection-options-wrap{background:#fff;padding:35px 35px 35px;max-width:700px;width:100%;box-sizing:border-box}.appearance_page_kadence-starter-templates #wpbody-content{padding-bottom:25px}.desc-small.note-about-colors{font-size:14px;color:#718096;margin:1.5em 0}.kst-import-selection-options .kst-template-item{padding-bottom:126%}.kst-import-selection img{max-width:100%}.kst-import-selection-title h2 span{font-weight:bold;color:#000}.appearance_page_kadence-starter-templates .update-nag.notice,.appearance_page_kadence-starter-templates #wpfooter{display:none}.kadence_theme_starter_dashboard>.notice{display:none}.demo-title h4 span{position:absolute;bottom:100%;right:0;padding:5px 15px;background:rgba(0,0,0,.7);color:#fff;font-size:14px;font-weight:400;opacity:0}.kst-import-btn:hover .demo-title h4 span{opacity:1}.kst-import-selection-options .kst-template-item .components-button.kst-import-btn .LazyLoad{overflow-y:hidden;position:absolute;top:0;left:0;right:0;bottom:40px}.kst-import-single-selection-options-wrap .components-button.is-primary{padding-top:16px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto;margin-top:20px;padding-left:0;padding-right:0;text-align:center;display:block;width:100%}.kst-import-selection-footer{position:fixed;padding:10px 20px;bottom:0;background:#fff;right:0;left:0;margin-left:160px;z-index:100;display:flex;justify-content:space-between;align-items:center}button.components-button.kt-import-fullsite.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto}.folded .kst-import-selection-footer{margin-left:36px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 2360px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}.kst-import-single-selection-options-wrap .components-base-control.components-toggle-control{margin-bottom:15px;border-top:1px solid #e2e8f0;padding-top:15px}.components-modal__frame.ksp-confirm-modal{max-width:500px}.ksp-override-model-buttons{text-align:right}.ksp-override-model-buttons .components-button{margin-left:10px}.main-panel{margin:0 auto;max-width:1260px}.main-panel .kst-grid-single-site{grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);grid-gap:3em}.kst-import-selection-bottom{text-align:center;margin-top:40px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;max-width:1260px}.kst-template-item{padding-bottom:126%}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{display:flex}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button:not(.button-primary){margin-right:10px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}.kst-import-modal button.components-button.kb-skip-start.is-primary,.kst-import-selection-options button.components-button.kb-skip-start.is-primary{display:block;width:100%;text-align:center;background:transparent;color:#3c434a;font-size:13px;font-weight:400}.kst-import-modal .components-panel__body-toggle.components-button{padding:10px 48px 10px 16px}.components-base-control.kt-subscribe-email-input .components-base-control__field{display:flex;align-items:center;margin-bottom:20px}.components-base-control.kt-subscribe-email-input .components-base-control__field .components-base-control__label{margin:0 10px 0 0;font-weight:bold}.kt-subscribe-form-box{padding:20px;margin:30px 0px 0;border:1px solid #e0e0e0}.kt-subscribe-form-box h2{margin-top:0}.kb-subscribe-form-error{padding:10px;display:block;margin-bottom:10px;color:#d8000c;background-color:#ffbaba}
1
+ .kadence-site-header-left{display:flex;align-items:center}.kadence-site-grid-wrap .kadence-site-header{display:flex;justify-content:space-between;align-items:center}.kadence-site-header-left .filter-title{margin-right:10px;font-weight:bold}.kadence-site-grid-header-right{text-align:right}.kadence-site-header .page-source-notice{color:#718096;font-size:85%}.kadence-site-header .page-source-notice a{color:#06c;font-weight:500;text-decoration:none}.kb-pro-template{padding:4px 10px;position:absolute;z-index:10;bottom:10px;right:10px;background:#c53030;border-radius:10px;line-height:20px;color:#fff;text-transform:uppercase;font-weight:bold;font-size:11px;text-align:center}.bundle-install-required .plugin-status{color:#c53030}a.components-external-link.kst-upgrade.button-hero.button.button-primary{width:80%;min-height:36px;line-height:2.5;font-size:14px;text-align:center}.kt-upgrade-notice{display:flex;flex-direction:column;justify-content:center;align-items:center;height:70px}.kt-popover-pro-notice{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;opacity:0;z-index:10;text-align:center;background:rgba(255,255,255,.9);transition:opacity .3s ease-in-out}.kt-popover-pro-notice .components-external-link{background:#007cba;padding:10px 10px;color:#fff;border-radius:4px;text-decoration:none}.kt-popover-pro-notice:hover{opacity:1}.appearance_page_kadence-starter-templates #wpcontent{padding:0}.kadence_theme_dash_back{height:100%}.kst-choose-builder-wrap.adjust-to-three-column{max-width:600px}.kst-choose-builder-wrap.adjust-to-three-column .kst-choose-builder-inner{grid-template-columns:1fr 1fr 1fr}.kadence_theme_dash_head .components-menu-items__item-icon.custom-image-icon-src{margin-right:10px}.kst-choose-builder-inner img.custom-image-icon-src{width:100px;max-height:100px;height:auto}.custom-image-icon-src,.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button img{max-width:100%;width:24px;max-height:24px;height:auto}.kadence_theme_dash_reload .components-button.kt-reload-templates.has-icon{border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:100%;width:40px;color:#4a5568;border-radius:0;justify-content:center}.kadence_theme_dash_reload .components-button.kt-reload-templates.has-icon svg{margin:0;width:18px;height:18px}.kadence_theme_dash_reload{height:100%}.appearance_page_kadence-starter-templates .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:70px}.kadence_theme_dash_back .components-button.kt-import-back{border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:100%;width:40px;color:#4a5568;border-radius:0}.kst-import-options-title{line-height:20px;padding-top:5px;font-size:12px;text-transform:uppercase;text-align:center;margin:0;color:#4a5568}.appearance_page_kadence-starter-templates .expanded .wp-full-overlay-footer{height:70px}.kadence_theme_dash_back .components-button.kt-import-back:hover{border-left:1px solid #cbd5e0;border-right:1px solid #cbd5e0;background:#f6f9fd}.kadence_theme_dash_back .components-button.kt-import-back svg{width:30px;height:30px;margin:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-button svg.kst-chev{width:16px}.components-modal__frame.kst-import-modal{min-width:460px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12),.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11){padding-top:20px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg:before,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg:before{content:"dark";color:#111}.kst-import-selection-options{padding-bottom:90px}.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(12) .kst-palette-bg,.kadence-starter-templates-preview button.components-button.kst-palette-btn:nth-child(11) .kst-palette-bg{position:absolute;left:2px;top:-1px;right:2px;display:block;bottom:auto;opacity:.2;height:1px;border-radius:0}.components-modal__frame.kst-import-modal .components-button.is-primary{padding-left:0px;padding-top:16px;padding-right:0px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto;display:block;width:100%;text-align:center}.kst-import-modal .components-panel__body h3{font-size:14px;line-height:20px;margin:10px 0;color:#4a5568}.kst-selected-font-pair{display:flex;align-items:center;margin-bottom:20px}.kst-selected-font-pair img{max-width:50px}h3.kst-selected-font-pair-title{margin-bottom:0}.kadence-starter-templates-preview .install-theme-info p.desc-small,.kadence-starter-templates-preview .kadence-starter-required-plugins p.desc-small{color:#4a5568;font-style:italic}.kadence-starter-templates-preview .install-theme-info .theme-screenshot{width:60px;margin:15px 15px 15px 0}.kadence-starter-templates-preview .theme-info-wrap{display:flex;align-items:center}.kadence-starter-templates-preview .install-theme-info{padding-bottom:0}.kst-choose-builder-wrap{min-height:calc(100vh - 180px);max-width:400px;margin:0 auto;display:flex;align-items:center}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button{box-shadow:none !important}.kadence_starter_builder_type .components-dropdown__content .components-button.components-menu-item__button.active-item{border:1px solid #a0aec0}.kst-choose-builder-center{width:100%;background:#fff;padding:30px;border-radius:4px;box-shadow:0px 25px 35px -10px rgba(0,0,0,.05);position:relative}.kst-choose-builder-center .kst-overlay-saving{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);border-radius:4px}.kst-choose-builder-inner{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px}.kst-choose-builder-center h2.kst-choose-builder-title{margin-top:0;text-align:center;text-transform:uppercase;font-weight:300;margin-bottom:30px;font-size:20px;color:#718096}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type{font-size:20px;text-align:center;height:auto;padding:20px;display:flex;border:1px solid #cbd5e0;border-radius:4px;flex-direction:column;font-weight:500;text-transform:uppercase;color:#4a5568}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type svg{width:100px;height:100px;margin-bottom:10px;margin-right:0}.kst-choose-builder-center .kst-choose-builder-inner .components-button.kt-import-select-type:hover{color:#2d3748;border-color:#007cba}.components-button-group.kst-font-group{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1em}.components-button-group.kst-font-group .components-button.kst-font-btn{display:block;height:auto;padding:5px 5px 0;border:1px solid #eee;border-radius:0;background:#fff;outline:0;box-shadow:none}.components-button-group.kst-font-group .components-button.kst-font-btn img.font-pairing{max-width:100%}.font-title-wrap,.palette-title-wrap{display:flex;align-items:center;justify-content:space-between}.font-title-wrap h2,.palette-title-wrap h2{font-size:16px;font-weight:600;color:#4a5568}.kadence-starter-required-plugins{padding:10px 20px 10px}.font-title-wrap,.kadence-starter-required-plugins{border-top:1px solid #e2e8f0;padding-top:6px;margin-top:18px}.kadence-starter-required-plugins h2.kst-required-title{font-size:16px;font-weight:600;color:#4a5568}.components-button-group.kst-font-group .components-button.kst-font-btn.active{border-color:#333}.components-button-group.kst-font-group .components-button.kst-font-btn:hover{border-color:#999}.kadence_theme_starter_dash_inner{margin:90px 20px 0}.kadence_theme_dash_head .st2{fill:#191717}.install-theme-info .components-button.has-icon .dashicons-image-rotate{width:10px;height:10px;font-size:10px}.kadence_theme_dash_head{background:#fff;padding:0px 20px;height:60px;border-bottom:1px solid #ebebeb;box-shadow:0 0 6px -2px rgba(0,0,0,.1);position:fixed;top:32px;left:160px;z-index:100;right:0}.kadence_theme_dash_head h1{color:#2d3748;line-height:50px;padding:0;height:50px;margin:0;display:flex;align-items:center}.kadence_theme_dash_head .subtext{font-size:16px;color:#718096;display:inline-block;padding-left:10px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;display:flex;height:100%;align-items:center}.kadence_theme_dash_head .kadence_theme_dash_logo{width:50px;height:50px;padding-right:10px}.kadence_theme_dash_head .kadence_theme_dash_logo img{width:50px}.kadence_theme_dash_head .kadence_starter_builder_type{flex-grow:1;text-align:right}.kadence_theme_dash_head .kadence_theme_dash_version span{padding:5px;background:#4a5568;color:#fff}.folded .kadence_theme_dash_head{left:36px}@media only screen and (max-width: 960px){.auto-fold .kadence_theme_dash_head{left:36px}}@media screen and (max-width: 782px){.auto-fold .kadence_theme_dash_head{left:0px}}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar{border-color:#888}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button{padding:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar button.components-button svg{width:40px;height:40px}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown.components-dropdown-menu.components-toolbar .components-dropdown__content button.components-button svg{width:24px;height:24px;margin-left:0}.kadence_theme_dash_head .kadence_starter_builder_type .components-dropdown__content{text-align:left}.wrap.kadence_theme_starter_dash{margin:0}.kadence_theme_dashboard{margin:0 auto}.templates-grid{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);grid-gap:2em}.kst-template-item .components-button.kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;overflow:hidden;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-template-item .components-button.kst-import-btn img{max-width:100%;height:auto}.kst-grid-single-item{max-width:800px}.kst-grid-single-item .kst-template-item{overflow:hidden}.kst-grid-single-item .kst-import-btn{height:100%;width:100%;padding:0;display:block;border:0;background:transparent;position:absolute;box-shadow:0 0px 0px 0 rgba(0,0,0,0)}.kst-grid-single-item .kst-import-btn img{max-width:100%;height:auto}.components-modal__frame.kst-import-modal{max-width:600px;position:relative;max-height:90%}.components-modal__frame.kst-import-modal .components-button.is-primary{margin-top:20px}.kadence_starter_templates_notice{background:transparent;margin-bottom:20px;border:1px solid #cbd5e0;padding:10px;color:#4a5568;font-weight:normal}.kadence-site-grid-header-popover .components-dropdown__content .components-button.components-menu-item__button.active-item{border:1px solid #a0aec0;background:#edf2f7;font-weight:bold}.kadence-site-grid-wrap .kadence-site-header{margin-top:-10px;padding-bottom:10px}.kst-import-modal ul.kadence-required-wrap{margin-bottom:20px}.components-modal__frame.kst-import-modal{-webkit-animation:none !important;animation:none !important}.kst-import-modal h3{font-size:16px}.kadence_starter_templates_response{background:#fffaf0;margin-bottom:20px;border:1px solid #ed8936;padding:20px;color:#c05621;font-weight:bold;margin-top:30px;display:flex;align-items:center}.kadence_starter_templates_response svg.components-spinner{margin-top:0}.components-modal__content .kadence_starter_templates_response{background:#edfaff;border:1px solid #1eb1ff;color:#0d549b}.kst-import-selection-title .components-button.kt-import-back{border:1px solid;margin-right:10px}.kst-import-selection-title{display:flex;align-items:center;margin-bottom:10px}.kst-grid-single-item-single-page .kst-template-item{padding-bottom:90%}.kadence_starter_templates_response h2{margin-bottom:10px;margin-top:0}.kst-template-item{position:relative;height:0;box-shadow:0 1px 2px rgba(0,0,0,.15);padding-bottom:65%}.kst-template-item::after{content:"";position:absolute;z-index:-1;width:100%;height:100%;opacity:0;border-radius:5px;box-shadow:0 15px 15px -10px rgba(0,0,0,.1);transition:opacity .3s ease-in-out}.kst-template-item:hover::after{opacity:1}.sidebar-section .components-panel__body.is-opened{padding:20px}.sidebar-section h2:first-child,.tab-section h2:first-child{margin-top:0}.side-panel .components-panel+.components-panel{margin-top:1rem}.tab-section .components-panel__body.is-opened{padding:25px}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button{border:1px solid transparent;background:transparent;border:none;box-shadow:none;border-radius:0;cursor:pointer;height:48px;padding:3px 16px;margin-left:0;font-weight:500}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:hover{box-shadow:none !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button:not(.active-tab):hover{color:#007cba !important;background:transparent !important}.kadence-dashboard-tab-panel .components-tab-panel__tabs .components-button.active-tab{background:#fff;border:1px solid #e2e4e7;border-bottom-color:transparent}.kadence-dashboard-tab-panel .components-tab-panel__tabs{margin-bottom:-1px}.two-col-grid{display:grid;grid-gap:1rem;grid-template-columns:1fr 1fr 1fr}h3.section-sub-head{background:#edf2f7;padding:10px;color:#4a5568;font-size:14px;text-transform:uppercase;margin-bottom:1rem;margin-top:2rem}.link-item{border:1px solid #e2e8f0;padding:20px;border-radius:4px;display:flex;flex-flow:column nowrap}.link-item h4{margin:0}.dashboard-pro-settings{margin-top:2rem}.link-item .link-item-foot{margin-top:auto;display:flex;align-items:center}.link-item .link-item-foot .components-spinner{margin-top:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field{margin-bottom:0}.link-item .link-item-foot .components-toggle-control .components-base-control__field .components-form-toggle{margin-right:0}.link-item .link-item-foot>*:first-child{flex-grow:2}.link-item a{display:block;background:transparent;color:#4a5568}.link-item a:hover{color:#007cba}span.kt-license-status{padding:4px;margin-left:10px;font-size:14px;text-transform:uppercase}span.kt-license-status.k-inactive{color:#c05621 !important;background:#fffaf0 !important}span.kt-license-status.k-active{color:#2b6cb0 !important;background:#ebf8ff !important}.license-section h2{display:flex;margin-top:0;align-items:center;justify-content:space-between}.license-section table.form-table{display:block}.license-section table.form-table tbody{display:block}.license-section table.form-table td,.license-section table.form-table tr{display:block;padding:0;width:100%}.license-section .form-table th{padding:0;width:100%;margin-bottom:4px;display:block;color:#4a5568}.license-section p.submit{padding:0;margin-top:10px}.license-section table.form-table input[type=text]{width:100%}.kadence-starter-templates-preview .install-theme-info .theme-name{font-size:20px}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button{width:100%;line-height:1;min-height:35px;padding:0}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{padding:5px}.kadence-starter-templates-preview button.components-button.kst-palette-btn{border-radius:4px !important;padding:5px 5px 5px 7px;height:auto;display:inline-flex;align-items:flex-end;justify-content:center;border:1px solid transparent;position:relative;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn .kst-palette-bg{display:none}.kst-template-item .components-button.kst-import-btn:hover,.kst-template-item .components-button.kst-import-btn:focus{box-shadow:0 7px 15px 0 rgba(0,0,0,.15) !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn:focus{border:1px solid #999;box-shadow:none !important}.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:hover,.kadence-starter-templates-preview button.components-button.kst-palette-btn.is-primary:focus{background:#fff;border:1px solid #333;box-shadow:none}.demo-title{height:30px;margin:0;padding:10px 0;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);background:#fff;position:absolute;bottom:0;left:0;width:100%}.demo-title h4{margin:0;font-size:14px;text-align:left;line-height:30px;padding:0 20px;color:#1e1e1e}.kadence-starter-templates-preview .components-button-group.kst-palette-group{display:grid;grid-template-columns:1fr 1fr;grid-gap:5px}@media(max-width: 1860px){.kadence-starter-templates-preview .kadence-swatche-item-wrap{width:22px !important;height:22px !important}h2.palette-title{font-size:15px}}@media(max-width: 1059px){.templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}.install-third-party-notice{margin-top:10px;max-width:540px;background:#fffaf0;padding:1em;color:#c05621;border:1px solid #c05621;font-weight:600}.install-third-party-notice>p{margin-top:0}.components-modal__frame.kst-import-modal .components-button.is-primary.import-partial-btn{background:#6b7280}.install-third-party-notice .plugin-status{color:#92400e}.plugin-install-required{display:block;font-style:oblique;font-weight:400;color:#c05621}.kadence-required-wrap{font-weight:bold;list-style:disc;padding-left:1.4em}span.plugin-status{text-transform:uppercase;color:#718096}.kst-palette-btn.kst-selected-color-palette{display:flex;margin-bottom:20px}.finshed-notice-success .button-primary.button.kadence-starter-templates-finish-button{padding:10px 16px;font-size:18px}.kst-grid-single-site{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-gap:4em}.kst-import-selection{height:100%;max-height:calc(100vh - 140px);overflow-y:scroll}.kst-import-grid-title h2{font-size:14px;line-height:20px;margin:10px 0;color:#4a5568}.kst-import-selection-title h2{font-size:16px;line-height:26px;margin:0 0 10px 0;color:#2d3748}.kst-import-single-selection-options-wrap{background:#fff;padding:35px 35px 35px;max-width:700px;width:100%;box-sizing:border-box}.appearance_page_kadence-starter-templates #wpbody-content{padding-bottom:25px}.desc-small.note-about-colors{font-size:14px;color:#718096;margin:1.5em 0}.kst-import-selection-options .kst-template-item{padding-bottom:126%}.kst-import-selection img{max-width:100%}.kst-import-selection-title h2 span{font-weight:bold;color:#000}.appearance_page_kadence-starter-templates .update-nag.notice,.appearance_page_kadence-starter-templates #wpfooter{display:none}.kadence_theme_starter_dashboard>.notice{display:none}.demo-title h4 span{position:absolute;bottom:100%;right:0;padding:5px 15px;background:rgba(0,0,0,.7);color:#fff;font-size:14px;font-weight:400;opacity:0}.kst-import-btn:hover .demo-title h4 span{opacity:1}.kst-import-selection-options .kst-template-item .components-button.kst-import-btn .LazyLoad{overflow-y:hidden;position:absolute;top:0;left:0;right:0;bottom:40px}.kst-import-single-selection-options-wrap .components-button.is-primary{padding-top:16px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto;margin-top:20px;padding-left:0;padding-right:0;text-align:center;display:block;width:100%}.kst-import-selection-footer{position:fixed;padding:10px 20px;bottom:0;background:#fff;right:0;left:0;margin-left:160px;z-index:100;display:flex;justify-content:space-between;align-items:center}button.components-button.kt-import-fullsite.is-primary{padding-left:30px;padding-top:16px;padding-right:30px;font-weight:700;padding-bottom:16px;font-size:16px;height:auto}.folded .kst-import-selection-footer{margin-left:36px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 2360px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}.kst-import-single-selection-options-wrap .components-base-control.components-toggle-control{margin-bottom:15px;border-top:1px solid #e2e8f0;padding-top:15px}.components-modal__frame.ksp-confirm-modal{max-width:500px}.ksp-override-model-buttons{text-align:right}.ksp-override-model-buttons .components-button{margin-left:10px}.main-panel{margin:0 auto;max-width:1260px}.main-panel .kst-grid-single-site{grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);grid-gap:3em}.kst-import-selection-bottom{text-align:center;margin-top:40px}.kadence_theme_dash_head .kadence_theme_dash_head_container{margin:0 auto;max-width:1260px}.kst-template-item{padding-bottom:126%}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions{display:flex}.appearance_page_kadence-starter-templates .kadence-starter-templates-preview-actions .button:not(.button-primary){margin-right:10px}@media(max-width: 1059px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1060px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}@media(min-width: 1660px){.kst-import-selection-options .templates-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)}}.kst-import-modal button.components-button.kb-skip-start.is-primary,.kst-import-selection-options button.components-button.kb-skip-start.is-primary{display:block;width:100%;text-align:center;background:transparent;color:#3c434a;font-size:13px;font-weight:400}.kst-import-modal .components-panel__body-toggle.components-button{padding:10px 48px 10px 16px}.components-base-control.kt-subscribe-email-input .components-base-control__field{display:flex;align-items:center;margin-bottom:20px}.components-base-control.kt-subscribe-email-input .components-base-control__field .components-base-control__label{margin:0 10px 0 0;font-weight:bold}.kt-subscribe-form-box{padding:20px;margin:30px 0px 0;border:1px solid #e0e0e0}.kt-subscribe-form-box h2{margin-top:0}.kb-subscribe-form-error{padding:10px;display:block;margin-bottom:10px;color:#d8000c;background-color:#ffdddf}.theme-install-overlay #kadence-starter-preview{width:100%}
assets/js/starter-templates.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => 'b71743576df239ecc7eae6838188a496');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => '0d31bbaa8f5a7f3e0deed5c2ec2cecc8');
assets/js/starter-templates.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=146)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){var r=a(31),n=a(50),s=a(129),c=a(4);e.exports=function(e,t){return(c(e)?r:s)(e,n(t,3))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,a){var r=a(35),n="object"==typeof self&&self&&self.Object===Object&&self,s=r||n||Function("return this")();e.exports=s},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,a){var r=a(63),n=a(68);e.exports=function(e,t){var a=n(e,t);return r(a)?a:void 0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}},function(e,t,a){var r=a(49);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,a){var r=a(20),n=a(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},function(e,t,a){var r=a(16),n=a(64),s=a(65),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?n(e):s(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,a){var r=a(53),n=a(54),s=a(55),c=a(56),o=a(57);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(33);e.exports=function(e,t){for(var a=e.length;a--;)if(r(e[a][0],t))return a;return-1}},function(e,t,a){var r=a(3).Symbol;e.exports=r},function(e,t,a){var r=a(7)(Object,"create");e.exports=r},function(e,t,a){var r=a(77);e.exports=function(e,t){var a=e.__data__;return r(t)?a["string"==typeof t?"string":"hash"]:a.map}},function(e,t,a){var r=a(30);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=a=function(e){return typeof e}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(135),s=d(n),c=d(a(136)),o=a(139),i=a(140),l=d(a(141)),u=d(a(142)),p=d(a(143)),m=d(a(144));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.lazyLoadHandler=a.lazyLoadHandler.bind(a),e.throttle>0&&(e.debounce?a.lazyLoadHandler=(0,l.default)(a.lazyLoadHandler,e.throttle):a.lazyLoadHandler=(0,u.default)(a.lazyLoadHandler,e.throttle)),a.state={visible:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this._mounted=!0;var e=this.getEventNode();this.lazyLoadHandler(),this.lazyLoadHandler.flush&&this.lazyLoadHandler.flush(),(0,i.add)(window,"resize",this.lazyLoadHandler),(0,i.add)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.add)(window,"scroll",this.lazyLoadHandler)}},{key:"componentWillReceiveProps",value:function(){this.state.visible||this.lazyLoadHandler()}},{key:"shouldComponentUpdate",value:function(e,t){return t.visible}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lazyLoadHandler.cancel&&this.lazyLoadHandler.cancel(),this.detachListeners()}},{key:"getEventNode",value:function(){return(0,p.default)((0,o.findDOMNode)(this))}},{key:"getOffset",value:function(){var e=this.props,t=e.offset,a=e.offsetVertical,r=e.offsetHorizontal,n=e.offsetTop,s=e.offsetBottom,c=e.offsetLeft,o=e.offsetRight,i=e.threshold||t,l=a||i,u=r||i;return{top:n||l,bottom:s||l,left:c||u,right:o||u}}},{key:"lazyLoadHandler",value:function(){if(this._mounted){var e=this.getOffset(),t=(0,o.findDOMNode)(this),a=this.getEventNode();if((0,m.default)(t,a,e)){var r=this.props.onContentVisible;this.setState({visible:!0},(function(){r&&r()})),this.detachListeners()}}}},{key:"detachListeners",value:function(){var e=this.getEventNode();(0,i.remove)(window,"resize",this.lazyLoadHandler),(0,i.remove)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.remove)(window,"scroll",this.lazyLoadHandler)}},{key:"render",value:function(){var e=this.props,t=e.children,a=e.className,r=e.height,c=e.width,o=this.state.visible,i={height:r,width:c},l="LazyLoad"+(o?" is-visible":"")+(a?" "+a:"");return s.default.createElement(this.props.elementType,{className:l,style:i},o&&n.Children.only(t))}}]),t}(n.Component);t.default=f,f.propTypes={children:c.default.node.isRequired,className:c.default.string,debounce:c.default.bool,elementType:c.default.string,height:c.default.oneOfType([c.default.string,c.default.number]),offset:c.default.number,offsetBottom:c.default.number,offsetHorizontal:c.default.number,offsetLeft:c.default.number,offsetRight:c.default.number,offsetTop:c.default.number,offsetVertical:c.default.number,threshold:c.default.number,throttle:c.default.number,width:c.default.oneOfType([c.default.string,c.default.number]),onContentVisible:c.default.func},f.defaultProps={elementType:"div",debounce:!0,offset:0,offsetBottom:0,offsetHorizontal:0,offsetLeft:0,offsetRight:0,offsetTop:0,offsetVertical:0,throttle:250}},function(e,t,a){var r=a(7)(a(3),"Map");e.exports=r},function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,a){var r=a(69),n=a(76),s=a(78),c=a(79),o=a(80);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(98),n=a(105),s=a(28);e.exports=function(e){return s(e)?r(e):n(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,a){var r=a(34),n=a(27);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},function(e,t,a){var r=a(4),n=a(30),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!n(e))||(c.test(e)||!s.test(e)||null!=t&&e in Object(t))}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}},function(e,t,a){var r=a(14),n=a(58),s=a(59),c=a(60),o=a(61),i=a(62);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=s,l.prototype.get=c,l.prototype.has=o,l.prototype.set=i,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,a){var r=a(12),n=a(24);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(this,a(23))},function(e,t){var a=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,a){var r=a(81),n=a(13);e.exports=function e(t,a,s,c,o){return t===a||(null==t||null==a||!n(t)&&!n(a)?t!=t&&a!=a:r(t,a,s,c,e,o))}},function(e,t,a){var r=a(82),n=a(85),s=a(86);e.exports=function(e,t,a,c,o,i){var l=1&a,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=i.get(e);if(m&&i.get(t))return m==t;var d=-1,f=!0,b=2&a?new r:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var v=e[d],h=t[d];if(c)var g=l?c(h,v,d,t,e,i):c(v,h,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(b){if(!n(t,(function(e,t){if(!s(b,t)&&(v===e||o(v,e,a,c,i)))return b.push(t)}))){f=!1;break}}else if(v!==h&&!o(v,h,a,c,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t,a){var r=a(100),n=a(13),s=Object.prototype,c=s.hasOwnProperty,o=s.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(e){return n(e)&&c.call(e,"callee")&&!o.call(e,"callee")};e.exports=i},function(e,t,a){(function(e){var r=a(3),n=a(101),s=t&&!t.nodeType&&t,c=s&&"object"==typeof e&&e&&!e.nodeType&&e,o=c&&c.exports===s?r.Buffer:void 0,i=(o?o.isBuffer:void 0)||n;e.exports=i}).call(this,a(41)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var a=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&a.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,a){var r=a(102),n=a(103),s=a(104),c=s&&s.isTypedArray,o=c?n(c):r;e.exports=o},function(e,t,a){var r=a(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(a){return null!=a&&(a[e]===t&&(void 0!==t||e in Object(a)))}}},function(e,t,a){var r=a(47),n=a(19);e.exports=function(e,t){for(var a=0,s=(t=r(t,e)).length;null!=e&&a<s;)e=e[n(t[a++])];return a&&a==s?e:void 0}},function(e,t,a){var r=a(4),n=a(29),s=a(117),c=a(120);e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:s(c(e))}},,function(e,t){function a(t,r){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,r)}e.exports=a},function(e,t,a){var r=a(51),n=a(115),s=a(125),c=a(4),o=a(126);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?c(e)?n(e[0],e[1]):r(e):o(e)}},function(e,t,a){var r=a(52),n=a(114),s=a(45);e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(a){return a===e||r(a,e,t)}}},function(e,t,a){var r=a(32),n=a(37);e.exports=function(e,t,a,s){var c=a.length,o=c,i=!s;if(null==e)return!o;for(e=Object(e);c--;){var l=a[c];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++c<o;){var u=(l=a[c])[0],p=e[u],m=l[1];if(i&&l[2]){if(void 0===p&&!(u in e))return!1}else{var d=new r;if(s)var f=s(p,m,u,e,t,d);if(!(void 0===f?n(m,p,3,s,d):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,a){var r=a(15),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,a=r(t,e);return!(a<0)&&(a==t.length-1?t.pop():n.call(t,a,1),--this.size,!0)}},function(e,t,a){var r=a(15);e.exports=function(e){var t=this.__data__,a=r(t,e);return a<0?void 0:t[a][1]}},function(e,t,a){var r=a(15);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,a){var r=a(15);e.exports=function(e,t){var a=this.__data__,n=r(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this}},function(e,t,a){var r=a(14);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,a){var r=a(14),n=a(22),s=a(25);e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var c=a.__data__;if(!n||c.length<199)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new s(c)}return a.set(e,t),this.size=a.size,this}},function(e,t,a){var r=a(34),n=a(66),s=a(24),c=a(36),o=/^\[object .+?Constructor\]$/,i=Function.prototype,l=Object.prototype,u=i.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(r(e)?m:o).test(c(e))}},function(e,t,a){var r=a(16),n=Object.prototype,s=n.hasOwnProperty,c=n.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),a=e[o];try{e[o]=void 0;var r=!0}catch(e){}var n=c.call(e);return r&&(t?e[o]=a:delete e[o]),n}},function(e,t){var a=Object.prototype.toString;e.exports=function(e){return a.call(e)}},function(e,t,a){var r,n=a(67),s=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},function(e,t,a){var r=a(3)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,a){var r=a(70),n=a(14),s=a(22);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||n),string:new r}}},function(e,t,a){var r=a(71),n=a(72),s=a(73),c=a(74),o=a(75);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(17);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return n.call(t,e)?t[e]:void 0}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},function(e,t,a){var r=a(17);e.exports=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,a){var r=a(18);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(18);e.exports=function(e,t){var a=r(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this}},function(e,t,a){var r=a(32),n=a(38),s=a(87),c=a(91),o=a(109),i=a(4),l=a(40),u=a(43),p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,d,f,b){var v=i(e),h=i(t),g=v?"[object Array]":o(e),j=h?"[object Array]":o(t),k=(g="[object Arguments]"==g?p:g)==p,y=(j="[object Arguments]"==j?p:j)==p,O=g==j;if(O&&l(e)){if(!l(t))return!1;v=!0,k=!1}if(O&&!k)return b||(b=new r),v||u(e)?n(e,t,a,d,f,b):s(e,t,g,a,d,f,b);if(!(1&a)){var P=k&&m.call(e,"__wrapped__"),S=y&&m.call(t,"__wrapped__");if(P||S){var E=P?e.value():e,_=S?t.value():t;return b||(b=new r),f(E,_,a,d,b)}}return!!O&&(b||(b=new r),c(e,t,a,d,f,b))}},function(e,t,a){var r=a(25),n=a(83),s=a(84);function c(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new r;++t<a;)this.add(e[t])}c.prototype.add=c.prototype.push=n,c.prototype.has=s,e.exports=c},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,a){var r=a(16),n=a(88),s=a(33),c=a(38),o=a(89),i=a(90),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,a,r,l,p,m){switch(a){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=o;case"[object Set]":var f=1&r;if(d||(d=i),e.size!=t.size&&!f)return!1;var b=m.get(e);if(b)return b==t;r|=2,m.set(e,t);var v=c(d(e),d(t),r,l,p,m);return m.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,a){var r=a(3).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e,r){a[++t]=[r,e]})),a}},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}},function(e,t,a){var r=a(92),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,s,c,o){var i=1&a,l=r(e),u=l.length;if(u!=r(t).length&&!i)return!1;for(var p=u;p--;){var m=l[p];if(!(i?m in t:n.call(t,m)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var b=i;++p<u;){var v=e[m=l[p]],h=t[m];if(s)var g=i?s(h,v,m,t,e,o):s(v,h,m,e,t,o);if(!(void 0===g?v===h||c(v,h,a,s,o):g)){f=!1;break}b||(b="constructor"==m)}if(f&&!b){var j=e.constructor,k=t.constructor;j==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof j&&j instanceof j&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(e),o.delete(t),f}},function(e,t,a){var r=a(93),n=a(95),s=a(26);e.exports=function(e){return r(e,s,n)}},function(e,t,a){var r=a(94),n=a(4);e.exports=function(e,t,a){var s=t(e);return n(e)?s:r(s,a(e))}},function(e,t){e.exports=function(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}},function(e,t,a){var r=a(96),n=a(97),s=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,o=c?function(e){return null==e?[]:(e=Object(e),r(c(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=0,s=[];++a<r;){var c=e[a];t(c,a,e)&&(s[n++]=c)}return s}},function(e,t){e.exports=function(){return[]}},function(e,t,a){var r=a(99),n=a(39),s=a(4),c=a(40),o=a(42),i=a(43),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var a=s(e),u=!a&&n(e),p=!a&&!u&&c(e),m=!a&&!u&&!p&&i(e),d=a||u||p||m,f=d?r(e.length,String):[],b=f.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||m&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||f.push(v);return f}},function(e,t){e.exports=function(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,a){var r=a(12),n=a(27),s=a(13),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&n(e.length)&&!!c[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,a){(function(e){var r=a(35),n=t&&!t.nodeType&&t,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,c=s&&s.exports===n&&r.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=o}).call(this,a(41)(e))},function(e,t,a){var r=a(106),n=a(107),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var a in Object(e))s.call(e,a)&&"constructor"!=a&&t.push(a);return t}},function(e,t){var a=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a)}},function(e,t,a){var r=a(108)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(a){return e(t(a))}}},function(e,t,a){var r=a(110),n=a(22),s=a(111),c=a(112),o=a(113),i=a(12),l=a(36),u=l(r),p=l(n),m=l(s),d=l(c),f=l(o),b=i;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=b(new n)||s&&"[object Promise]"!=b(s.resolve())||c&&"[object Set]"!=b(new c)||o&&"[object WeakMap]"!=b(new o))&&(b=function(e){var t=i(e),a="[object Object]"==t?e.constructor:void 0,r=a?l(a):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case m:return"[object Promise]";case d:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=b},function(e,t,a){var r=a(7)(a(3),"DataView");e.exports=r},function(e,t,a){var r=a(7)(a(3),"Promise");e.exports=r},function(e,t,a){var r=a(7)(a(3),"Set");e.exports=r},function(e,t,a){var r=a(7)(a(3),"WeakMap");e.exports=r},function(e,t,a){var r=a(44),n=a(26);e.exports=function(e){for(var t=n(e),a=t.length;a--;){var s=t[a],c=e[s];t[a]=[s,c,r(c)]}return t}},function(e,t,a){var r=a(37),n=a(116),s=a(122),c=a(29),o=a(44),i=a(45),l=a(19);e.exports=function(e,t){return c(e)&&o(t)?i(l(e),t):function(a){var c=n(a,e);return void 0===c&&c===t?s(a,e):r(t,c,3)}}},function(e,t,a){var r=a(46);e.exports=function(e,t,a){var n=null==e?void 0:r(e,t);return void 0===n?a:n}},function(e,t,a){var r=a(118),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,c=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,(function(e,a,r,n){t.push(r?n.replace(s,"$1"):a||e)})),t}));e.exports=c},function(e,t,a){var r=a(119);e.exports=function(e){var t=r(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}},function(e,t,a){var r=a(25);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],s=a.cache;if(s.has(n))return s.get(n);var c=e.apply(this,r);return a.cache=s.set(n,c)||s,c};return a.cache=new(n.Cache||r),a}n.Cache=r,e.exports=n},function(e,t,a){var r=a(121);e.exports=function(e){return null==e?"":r(e)}},function(e,t,a){var r=a(16),n=a(31),s=a(4),c=a(30),o=r?r.prototype:void 0,i=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(c(t))return i?i.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}},function(e,t,a){var r=a(123),n=a(124);e.exports=function(e,t){return null!=e&&n(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,a){var r=a(47),n=a(39),s=a(4),c=a(42),o=a(27),i=a(19);e.exports=function(e,t,a){for(var l=-1,u=(t=r(t,e)).length,p=!1;++l<u;){var m=i(t[l]);if(!(p=null!=e&&a(e,m)))break;e=e[m]}return p||++l!=u?p:!!(u=null==e?0:e.length)&&o(u)&&c(m,u)&&(s(e)||n(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,a){var r=a(127),n=a(128),s=a(29),c=a(19);e.exports=function(e){return s(e)?r(c(e)):n(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,a){var r=a(46);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,a){var r=a(130),n=a(28);e.exports=function(e,t){var a=-1,s=n(e)?Array(e.length):[];return r(e,(function(e,r,n){s[++a]=t(e,r,n)})),s}},function(e,t,a){var r=a(131),n=a(134)(r);e.exports=n},function(e,t,a){var r=a(132),n=a(26);e.exports=function(e,t){return e&&r(e,t,n)}},function(e,t,a){var r=a(133)();e.exports=r},function(e,t){e.exports=function(e){return function(t,a,r){for(var n=-1,s=Object(t),c=r(t),o=c.length;o--;){var i=c[e?o:++n];if(!1===a(s[i],i,s))break}return t}}},function(e,t,a){var r=a(28);e.exports=function(e,t){return function(a,n){if(null==a)return a;if(!r(a))return e(a,n);for(var s=a.length,c=t?s:-1,o=Object(a);(t?c--:++c<s)&&!1!==n(o[c],c,o););return a}}},function(e,t){!function(){e.exports=this.React}()},function(e,t,a){e.exports=a(137)()},function(e,t,a){"use strict";var r=a(138);function n(){}function s(){}s.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,s,c){if(c!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:n};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,a){var r,n;void 0===(n="function"==typeof(r=function(){function e(e,t){return function(a,r,n,s){a[e]?a[e](r,n,s):a[t]&&a[t]("on"+r,n)}}return{add:e("addEventListener","attachEvent"),remove:e("removeEventListener","detachEvent")}})?r.call(t,a,t,e):r)||(e.exports=n)},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r,n,s,c,o,i,l=0,u=!1,v=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function j(e){return l=e,o=setTimeout(y,t),u?g(e):c}function k(e){var a=e-i;return void 0===i||a>=t||a<0||v&&e-l>=s}function y(){var e=d();if(k(e))return O(e);o=setTimeout(y,function(e){var a=t-(e-i);return v?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function P(){var e=d(),a=k(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(v)return o=setTimeout(y,t),g(i)}return void 0===o&&(o=setTimeout(y,t)),c}return t=b(t)||0,f(a)&&(u=!!a.leading,s=(v="maxWait"in a)?p(b(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),P.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},P.flush=function(){return void 0===o?c:O(d())},P}}).call(this,a(23))},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e,t,a){var r,n,s,c,o,i,l=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function j(e){return l=e,o=setTimeout(y,t),u?g(e):c}function k(e){var a=e-i;return void 0===i||a>=t||a<0||f&&e-l>=s}function y(){var e=d();if(k(e))return O(e);o=setTimeout(y,function(e){var a=t-(e-i);return f?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function P(){var e=d(),a=k(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(f)return o=setTimeout(y,t),g(i)}return void 0===o&&(o=setTimeout(y,t)),c}return t=v(t)||0,b(a)&&(u=!!a.leading,s=(f="maxWait"in a)?p(v(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),P.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},P.flush=function(){return void 0===o?c:O(d())},P}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return b(a)&&(r="leading"in a?!!a.leading:r,n="trailing"in a?!!a.trailing:n),f(e,t,{leading:r,maxWait:t,trailing:n})}}).call(this,a(23))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},n=function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")};t.default=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(n(t)))return t;t=t.parentNode}return window}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a,r){if(function(e){return null===e.offsetParent}(t))return!1;var n=void 0,c=void 0,o=void 0,i=void 0;if(void 0===a||a===window)n=window.pageYOffset,o=window.pageXOffset,c=n+window.innerHeight,i=o+window.innerWidth;else{if(!e(a,window,r))return!1;var l=(0,s.default)(a);n=l.top,o=l.left,c=n+a.offsetHeight,i=o+a.offsetWidth}var u=(0,s.default)(t);return n<=u.top+t.offsetHeight+r.top&&c>=u.top-r.bottom&&o<=u.left+t.offsetWidth+r.left&&i>=u.left-r.right};var r,n=a(145),s=(r=n)&&r.__esModule?r:{default:r}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}},function(e,t,a){"use strict";a.r(t);var r=a(8),n=a.n(r),s=a(9),c=a.n(s),o=a(2),i=a.n(o),l=a(10),u=a.n(l),p=a(11),m=a.n(p),d=a(5),f=a.n(d),b=a(20),v=a.n(b),h=a(0),g=a(1),j=a.n(g),k=a(21),y=a.n(k);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var P=wp.i18n,S=P.__,E=(P.sprintf,wp.element),_=E.Fragment,w=E.Component,x=(E.render,E.PureComponent,wp.components),T=(x.Modal,x.Spinner,x.ButtonGroup),N=(x.Dropdown,x.Button),C=x.ExternalLink,z=(x.ToolbarGroup,x.MenuItem,x.Tooltip),M=function(e){u()(a,e);var t=O(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={colorPalette:e.props.colorPalette?e.props.colorPalette:"",fontPair:e.props.fontPair?e.props.fontPair:"",palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[]},e}return c()(a,[{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"render",value:function(){var e=this,t=this.props.item,a=!0,r=!1,n=!1;return Object(h.createElement)("div",{className:"kadence-starter-templates-preview theme-install-overlay wp-full-overlay expanded",style:{display:"block"}},Object(h.createElement)("div",{className:"wp-full-overlay-sidebar"},Object(h.createElement)("div",{className:"wp-full-overlay-header"},Object(h.createElement)("button",{className:"kst-close-focus-btn close-full-overlay",onClick:function(){return e.props.onChange({activeTemplate:"",colorPalette:"",fontPair:"",focusMode:!1})}})),Object(h.createElement)("div",{className:"wp-full-overlay-sidebar-content"},Object(h.createElement)("div",{className:"install-theme-info"},Object(h.createElement)("div",{className:"theme-info-wrap"},Object(h.createElement)("img",{className:"theme-screenshot",src:t.image,alt:t.name}),Object(h.createElement)("div",{className:"theme-info-title-wrap"},Object(h.createElement)("h3",{className:"theme-name"},t.name),Object(h.createElement)("div",{className:"theme-by"},t.categories.map((function(t){return e.capitalizeFirstLetter(t)})).join(", ")))),Object(h.createElement)("div",{className:"palette-title-wrap"},Object(h.createElement)("h2",{className:"palette-title"},S("Optional: Change Color Scheme","kadence-starter-templates")),Object(h.createElement)(N,{label:S("clear"),className:"kst-clear-palette",disabled:!this.state.colorPalette,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({colorPalette:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:""},"*")}})),Object(h.createElement)(T,{className:"kst-palette-group","aria-label":S("Select a Palette","kadence-starter-templates")},j()(this.state.palettes,(function(t){var a=t.palette,r=t.colors;return Object(h.createElement)(N,{className:"kst-palette-btn",isPrimary:a===e.state.colorPalette,"aria-pressed":a===e.state.colorPalette,onClick:function(){document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:a},"*"),e.setState({colorPalette:a})}},Object(h.createElement)("span",{className:"kst-palette-bg",style:{background:r[4]?r[4]:void 0}}),j()(r,(function(e,t){if(4!==t)return Object(h.createElement)("div",{key:t,style:{width:30,height:30,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(h.createElement)("p",{className:"desc-small"},S("*You can change this after import.","kadence-starter-templates")),Object(h.createElement)("div",{className:"font-title-wrap"},Object(h.createElement)("h2",{className:"font-title"},S("Optional: Change Font Family","kadence-starter-templates")),Object(h.createElement)(N,{label:S("clear"),className:"kst-clear-font",disabled:!this.state.fontPair,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({fontPair:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:""},"*")}})),Object(h.createElement)(T,{className:"kst-font-group","aria-label":S("Select a Font","kadence-starter-templates")},j()(this.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;return Object(h.createElement)(z,{text:n},Object(h.createElement)(N,{className:"kst-font-btn".concat(a===e.state.fontPair?" active":""),"aria-pressed":a===e.state.fontPair,onClick:function(){e.setState({fontPair:a}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:a},"*")}},Object(h.createElement)("img",{src:r,className:"font-pairing"})))}))),Object(h.createElement)("p",{className:"desc-small"},S("*You can change this after import.","kadence-starter-templates"))),Object(h.createElement)("div",{className:"kadence-starter-required-plugins"},Object(h.createElement)("h2",{className:"kst-required-title"},S("Required Plugins","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){if(kadenceStarterParams.plugins[e])return"active"!==kadenceStarterParams.plugins[e].state&&(a=!1,"thirdparty"===kadenceStarterParams.plugins[e].src&&(r=!0),"bundle"===kadenceStarterParams.plugins[e].src&&(n=!0)),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?S("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state))}))),!a&&Object(h.createElement)(_,null,(r||n)&&Object(h.createElement)("p",{className:"desc-small"},S("*Install Missing/Inactive Premium plugins to import.","kadence-starter-templates")),!r&&!n&&Object(h.createElement)("p",{className:"desc-small"},S("*Missing/Inactive plugins will be installed on import.","kadence-starter-templates"))),void 0!==t.pro&&t.pro&&!t.member&&Object(h.createElement)("div",{className:"notice inline notice-alt notice-warning kadence-pro-notice"},Object(h.createElement)("p",null,Object(h.createElement)("strong",null,"Kadence Pro Starter Site")),Object(h.createElement)("p",null,"To import this starter template you need to install Kadence Pro and Kadence Blocks Pro and activate your license using a ",Object(h.createElement)("strong",null,"Essential or Full Bundle license"),".")))),Object(h.createElement)("div",{class:"wp-full-overlay-footer"},void 0!==t.pro&&t.pro&&!t.member?Object(h.createElement)("div",{className:"kt-upgrade-notice"},Object(h.createElement)("h2",{className:"kst-import-options-title"},S("Kadence Bundle is required","kadence-starter-sites")," "),Object(h.createElement)(C,{className:"kst-upgrade button-hero button button-primary",href:"https://www.kadencewp.com/pricing/"},S("Get Pro Starter Site","kadence-starter-sites"))):Object(h.createElement)(_,null,Object(h.createElement)("h2",{className:"kst-import-options-title"},S("Import Options","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence-starter-templates-preview-actions"},Object(h.createElement)("button",{className:"kst-import-btn button-hero button",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isSelected:!1,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},S("Single Page","kadence-starter-templates")),Object(h.createElement)("button",{className:"kst-import-btn button-hero button button-primary",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isImporting:!0,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},S("Full Site","kadence-starter-templates")))))),Object(h.createElement)("div",{class:"wp-full-overlay-main"},Object(h.createElement)("iframe",{id:"kadence-starter-preview",src:t.url+"?cache=bust"})))}}]),a}(w);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var I=wp.i18n,D=I.__,A=(I.sprintf,wp.element),L=A.Fragment,H=A.Component,R=(A.render,A.PureComponent,wp.components),B=(R.Modal,R.Spinner,R.ButtonGroup,R.Dropdown,R.Icon,R.Button),q=R.ExternalLink,V=(R.ToolbarGroup,R.CheckboxControl),W=R.TextControl,G=(R.ToggleControl,R.MenuItem,R.Tooltip,R.PanelBody,function(e){u()(a,e);var t=F(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={email:kadenceStarterParams.user_email,privacy:!1,privacyError:!1},e}return c()(a,[{key:"render",value:function(){var e=this;return Object(h.createElement)("div",{className:"kt-subscribe-form-box"},Object(h.createElement)("h2",null,D("Subscribe and Import","kadence-starter-templates")),Object(h.createElement)("p",null,D("Subscribe to learn about new starter templates and features for Kadence.","kadence-blocks")),Object(h.createElement)(W,{type:"text",className:"kt-subscribe-email-input",label:D("Email:","kadence-starter-templates"),value:this.state.email,placeholder:D("example@example.com","kadence-starter-templates"),onChange:function(t){return e.setState({email:t})}}),this.props.emailError&&Object(h.createElement)("span",{className:"kb-subscribe-form-error"},D("Invalid Email, Please enter a valid email.","kadence-starter-templates")),Object(h.createElement)(V,{label:Object(h.createElement)(L,null,D("Accept","kadence-starter-templates")," ",Object(h.createElement)(q,{href:"https://www.kadencewp.com/privacy-policy/"},D("Privacy Policy","kadence-starter-templates"))),help:D("We do not spam, unsubscribe anytime.","kadence-starter-templates"),checked:this.state.privacy,onChange:function(t){return e.setState({privacy:t})}}),this.state.privacyError&&Object(h.createElement)("span",{className:"kb-subscribe-form-error"},D("Please Accept Privacy Policy","kadence-blocks")),Object(h.createElement)(B,{className:"kt-defaults-save",isPrimary:!0,onClick:function(){e.state.privacy?(e.setState({privacyError:!1}),e.props.onRun(e.state.email)):e.setState({privacyError:!0})}},D("Subscribe and Start Importing")))}}]),a}(H)),$=a(6),U=Object(h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(h.createElement)($.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),K=Object(h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(h.createElement)($.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),J=Object(h.createElement)($.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(h.createElement)($.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}function X(e){try{var t=JSON.parse(e);if(t&&"object"===v()(t))return t}catch(e){}return!1}var Q=wp.i18n,Z=Q.__,ee=(Q.sprintf,wp.element),te=ee.Fragment,ae=ee.Component,re=ee.render,ne=(ee.PureComponent,wp.components),se=ne.Modal,ce=ne.Spinner,oe=(ne.ButtonGroup,ne.Dropdown),ie=ne.Icon,le=ne.Button,ue=ne.ExternalLink,pe=(ne.ToolbarGroup,ne.CheckboxControl,ne.TextControl,ne.ToggleControl),me=ne.MenuItem,de=ne.Tooltip,fe=ne.PanelBody,be=Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(h.createElement)("path",{d:"M15.984 18v2.016H8.015V18h7.969zM11.016 7.969v8.016h1.969V7.969h3l-3.984-3.984-3.984 3.984h3z"})),ve=Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(h.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"url(#_Linear1)"}),Object(h.createElement)("path",{fill:"#fff",d:"M50 50H66.003V130H50z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 50H130.011V66H82z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 82H130.011V98H82z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 114.046H130.011V130.046H82z"}),Object(h.createElement)("defs",null,Object(h.createElement)("linearGradient",{id:"_Linear1",x1:"0",x2:"1",y1:"0",y2:"0",gradientTransform:"rotate(-52.456 186.056 40.829) scale(178.658)",gradientUnits:"userSpaceOnUse"},Object(h.createElement)("stop",{offset:"0",stopColor:"#372b73"}),Object(h.createElement)("stop",{offset:"1",stopColor:"#e9335e"})))),he=(Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(h.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"#93003c"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M50 50H66.003V130H50z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 50H130.011V66H82z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 82H130.011V98H82z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 114.046H130.011V130.046H82z"})),Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 720 864",viewBox:"0 0 720 864",className:"gblogo"},Object(h.createElement)("g",null,Object(h.createElement)("path",{d:"M432.4 415.6c-2.5-1.7-5.9-1-7.6 1.5-9.9 14.9-30.9 15.7-32 15.7h-.5c-25.9 0-35.8 22.1-36.2 23-1.2 2.8.1 6 2.8 7.2.7.3 1.5.5 2.2.5 2.1 0 4.1-1.2 5-3.3.1-.2 6.9-15.4 24.4-16.4v28.3c-.7 6.1-3.6 10.9-8.7 14.5-5.3 3.7-12.4 5.6-21.1 5.6-10.4 0-18.9-3.6-25.2-10.7-6.4-7.1-9.6-17.2-9.6-30.2l.1-31.2c.5-11.5 3.6-20.6 9.5-27.1 6.4-7.1 14.8-10.7 25.2-10.7 8.7 0 15.8 1.9 21.1 5.6 5.3 3.7 8.3 8.8 8.8 15.4v.7c0 3.8 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9v-.7c-1-9.9-5.5-17.7-13.6-23.6-8.1-5.9-18.2-8.8-30.4-8.8-14.5 0-26.2 4.8-35.1 14.3-8.4 8.9-12.8 20.6-13.3 35 0 1-.1 2-.1 3l.1 28.1h-.1c0 15.9 4.5 28.6 13.4 38.1s20.6 14.3 35.1 14.3c12.2 0 22.3-2.9 30.4-8.8 7.4-5.4 11.8-12.5 13.3-21.3l.3-31.4c9.1-2.2 21.5-7.2 29.3-19 2-2.5 1.3-5.9-1.3-7.6zM528.7 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2zM117.8 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.7 6.2 6.2 6.2z",className:"st2"}),Object(h.createElement)("circle",{cx:"609.3",cy:"150.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"359.8",cy:"130.6",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M244.8 150.2h.3c23.3 0 33.7-14.6 41.6-28.2 2.6-4.5 12.2-19.5 25.8-23.4 16.8-4.9 34.7 2.9 41.7 18.2 1 2.2 3.2 3.5 5.4 3.6h.7c2.2-.1 4.4-1.4 5.4-3.6 7-15.3 24.9-23.1 41.7-18.2 13.6 4 23.2 18.9 25.8 23.4 7.9 13.7 18.3 28.2 41.9 28.2 14.2 0 31-10.6 35.7-30.9 3.9-16.8-3.3-32-19-39.7-3.1-1.5-6.8-.3-8.3 2.8-1.5 3.1-.3 6.8 2.8 8.3 14.9 7.4 13.6 20.5 12.4 25.8-2.4 10.4-11.6 21.4-23.7 21.4-15.5 0-22.9-7.8-31.2-22.1-4.1-7-15.5-24-33-29.1-19.1-5.6-39.3 1.1-50.9 15.8-11.6-14.7-31.8-21.4-50.9-15.8-17.5 5.1-28.9 22.1-33 29.1-8.3 14.3-15.7 22.1-30.9 22.1h-.2c-13.2-.1-21.6-9.3-24-18.4-1.2-4.3-3.7-19 13.1-29 2.9-1.7 3.9-5.5 2.1-8.5-1.8-2.9-5.5-3.9-8.5-2.1-19.3 11.5-22.3 29.7-18.7 42.9 4.4 16.3 18.9 27.3 35.9 27.4z",className:"st2"}),Object(h.createElement)("path",{d:"M360 734L360.1 734 360.1 734 360 734z",className:"st2"}),Object(h.createElement)("circle",{cx:"108.1",cy:"150.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"90.7",cy:"88",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"631.3",cy:"88",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"664.5",cy:"485.3",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"639.6",cy:"627.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"599.8",cy:"644.8",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M231.9 111.2c0 9.2 7.5 16.7 16.7 16.7s16.7-7.5 16.7-16.7-7.5-16.7-16.7-16.7c-9.2-.1-16.7 7.4-16.7 16.7zm16.7-4.4c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM473.6 127.9c9.2 0 16.7-7.5 16.7-16.7s-7.5-16.7-16.7-16.7-16.7 7.5-16.7 16.7 7.5 16.7 16.7 16.7zm0-21.1c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM376.7 121.6c-3.2 1.2-4.8 4.7-3.6 7.9 1.2 3.2 4.7 4.8 7.9 3.7 1-.4 25-8.4 43.4 20.2 1.2 1.8 3.2 2.8 5.2 2.8 1.1 0 2.3-.3 3.3-1 2.9-1.8 3.7-5.7 1.9-8.5-19.2-29.7-46.4-29.4-58.1-25.1zM343.3 121.6c-.9-.3-9.1-3.2-20.3-1.5-10.4 1.5-25.3 7.4-37.7 26.7-1.8 2.9-1 6.7 1.9 8.5 1 .7 2.2 1 3.3 1 2 0 4-1 5.2-2.8 18.3-28.6 42.3-20.6 43.4-20.2 3.2 1.2 6.7-.5 7.9-3.7 1.2-3.2-.5-6.8-3.7-8zM627.8 138.5l30.1-34.2v49.3c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V88c0-2.6-1.6-4.9-4-5.8-2.4-.9-5.1-.2-6.8 1.7l-40.9 46.5c-2.3 2.6-2 6.5.6 8.7 2.4 2.3 6.3 2 8.6-.6zM56.8 159.9c3.4 0 6.2-2.8 6.2-6.2v-49.3l30.1 34.2c2.3 2.6 6.2 2.8 8.7.6 2.6-2.3 2.8-6.2.6-8.7L61.5 83.9c-1.7-1.9-4.4-2.6-6.8-1.7-2.4.9-4 3.2-4 5.8v65.7c0 3.4 2.7 6.2 6.1 6.2zM493.4 166c-2.9-.2-5.6 1.8-6.3 4.6-.7 2.9.7 5.9 3.3 7.1 9.8 4.6 18.7 6.4 26.7 6.4 15.3 0 27.5-6.7 36-13.7 13.6-11.2 20.6-25.3 20.9-25.9 1.4-2.9.4-6.4-2.4-8-6.3-3.7-17.2-6-33.8 4.1-8.3 5.1-14.7 11.2-15.8 12.3-15.2 13.4-27.9 13.1-28.6 13.1zm36.9-3.9l.3-.3c4.7-4.7 18-15.6 28.4-16.1-3 4.3-7.5 10.1-13.6 15.2-9 7.4-18.6 11-28.8 10.8 4.2-2.2 8.9-5.4 13.7-9.6zM151.4 136.5c-2.8 1.6-3.8 5.1-2.4 8 .3.6 7.3 14.7 20.9 25.9 8.5 7 20.6 13.7 36 13.7 8.1 0 17-1.8 26.7-6.4 2.7-1.3 4-4.2 3.3-7.1-.7-2.9-3.3-4.8-6.3-4.7-.5 0-13.3.4-28.5-13-1.1-1.1-7.5-7.2-15.8-12.3-16.6-10-27.6-7.7-33.9-4.1zm41.4 25.6c4.7 4.2 9.4 7.3 13.7 9.6-21.6.2-35.9-16.3-42.4-26 10.4.5 23.7 11.4 28.4 16.1l.3.3z",className:"st2"}),Object(h.createElement)("path",{d:"M671.8 664.6c-6.2-5.2-13-8.2-19.3-9.9 2.4-1.8 4.7-3.9 6.7-6.2 15.3-18 15.4-44.5.2-61.7-2.3-2.6-6.2-2.8-8.7-.5-2.6 2.3-2.8 6.2-.5 8.7 11.1 12.6 10.9 32.1-.4 45.5-9.2 10.8-26.7 13.4-31.9 14-15.7 1.7-33.3 5.3-42.8 26.8-1.5 3.3-2.4 7-2.6 11-2.2-.7-4.6-1.1-7-1.1-12.5 0-22.7 10.2-22.7 22.7 0 8.6 4.8 16.1 11.9 19.9-2.1 1.9-4.1 4-5.9 6.4-21-28.3-54.6-46.1-91.6-46.1-5.3 0-10.6.4-15.7 1.1 30.4-9.3 58.7-23.8 84.5-43 33.3-24.9 61-57.4 80-93.9 20-38.4 30.1-79.9 30.1-123.1v-.8-.2-.3c-.2-35.1-8-66.7-19.1-93.9 4.1.8 8 1.1 11.5 1.1 25.9 0 37.3-17.8 38.5-19.9 5.6-9.4 6.5-20.8 3.3-31.1.1-.3.1-.7.1-1.1V176.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2V271c-10.5-9.1-25.7-10.1-32-10.1-12.2.1-19.8-1.8-25.4-11.4-4.7-8.1-2-16.5 2.7-21.3 5.9-6 14.3-6.8 22.5-2.3 3 1.6 6.8.6 8.4-2.4 1.6-3 .6-6.8-2.4-8.4-13-7.2-27.6-5.4-37.3 4.4-9.6 9.8-11.4 24.3-4.6 36.1 8.9 15.3 22.4 17.5 35.7 17.5h.5c4 0 16.9.6 24.3 7.6 9.6 9.1 12.1 23.4 5.8 34 0 0-.1.1-.1.2-.5.9-12.4 21.1-45.6 10.5-10-21.2-21.6-39.2-32.4-53.6l-4.9 3.7 4.9-3.8-2-2.6c-21.3-35.7 3.3-73.7 16.1-89.8l7.2-8.2c2.2-2.6 2-6.5-.6-8.7-2.5-2.1-6.1-2-8.4.3-.2.2-1.3 1.3-3 3.2-11.1 11.3-54.5 51.3-96.6 30.4l-1.2-.8-.6-.4c-37.7-20.3-74.9-32-110.4-35-4.6-10.5-10.7-18.5-18.4-18.5-7.8 0-13.9 8.1-18.6 18.8-49.7 2.2-111.5 34.3-114.1 35.6-42.3 21.3-85.9-18.9-97-30.2-1.7-1.9-2.9-3-3-3.2-2.3-2.3-5.9-2.4-8.4-.3-2.6 2.2-2.8 6.1-.6 8.7l7.7 8.7c4.5 5.6 10.2 13.7 15 23.4 12 24.3 12.2 46.4.7 65.8-14.3 17.8-25.9 36.5-34.8 56.2-33.5 10.9-45.5-9.5-46-10.4 0-.1-.1-.1-.1-.2-6.3-10.6-3.8-24.9 5.8-34 7.4-7 20.3-7.6 24.3-7.6h.1c13.4 0 27.2-2.1 36.1-17.5 6.8-11.8 5-26.4-4.6-36.1-9.7-9.9-24.3-11.6-37.3-4.4-3 1.6-4.1 5.4-2.4 8.4 1.6 3 5.4 4.1 8.4 2.4 8.3-4.5 16.7-3.7 22.5 2.3 4.7 4.8 7.3 13.2 2.7 21.3-5.5 9.5-13 11.4-25 11.4h-.4c-5.5 0-18.3.8-28.5 7.4v-90.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v104c-6.8 12.2-7.2 27.1-.2 39.1.7 1.3 5 8.5 14.6 13.9 5.5 3.1 13.4 6 23.9 6 3.8 0 8-.4 12.5-1.3-10.8 29-16.2 60.2-16.4 94.2v1.1c0 61.4 21.6 121.7 60.8 169.8 34.7 42.6 81.9 74.2 134.2 90.3-5.5-.8-11.1-1.2-16.7-1.2-36.7 0-70 17.5-91 45.4-1.7-2.2-3.6-4.3-5.7-6.1 6.6-4 11.1-11.2 11.1-19.5 0-12.5-10.2-22.7-22.7-22.7-2.3 0-4.5.4-6.6 1-.3-3.9-1.2-7.6-2.6-10.9-9.6-21.5-27.1-25.1-42.8-26.8-5.2-.6-22.7-3.2-31.9-14-11.6-13.1-11.8-32.6-.7-45.2 2.3-2.6 2-6.5-.5-8.7-2.6-2.3-6.5-2-8.7.5-15.1 17.2-15 43.7.2 61.7 2 2.4 4.3 4.4 6.7 6.2-6.3 1.7-13.1 4.8-19.3 9.9-14.7 12.1-22.2 32.3-22.4 59.8-.5 2.5.6 5.1 2.8 6.5 1 .6 2.1.9 3.2.9.4 0 .9-.1 1.3-.2h.1c.2 0 .3-.1.5-.2.3-.1.7-.2 1-.4.1 0 .1-.1.2-.1 1-.6 1.9-1.4 2.5-2.4 2.4-3.1 12.3-7 20.5-8.7 32.1-7 38.8-28.7 37.8-39.1-.3-3.4-3.3-5.9-6.7-5.6-3.4.3-5.9 3.3-5.6 6.7 0 .1.1 1.9-.5 4.6-1.5 6.2-7 16.9-27.6 21.4h-.2c-2.4.5-9.6 2.2-16.3 5.3 1.8-17.8 7.5-30.8 17.2-38.9 14.9-12.4 34.6-8.9 34.8-8.8.7.1 1.3.1 1.9 0 3.3.7 6.1 1.1 8.2 1.3 16.5 1.8 26.6 5.4 32.9 19.5 4.9 11.1-1.4 23.9-9.9 30.3-4.3 3.3-15.8 9.8-28.7-.8-2.6-2.2-6.5-1.8-8.7.8-2.2 2.6-1.8 6.5.8 8.7 5.8 4.8 12.3 7.6 19 8.4-8.6 7-14.4 15.8-17 20.4-8.4 14.5-15.2 22.3-26.5 22.4V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v50.2c0 2.5 1.5 4.6 3.6 5.6 1.1.8 2.4 1.4 3.8 1.4h144c2.2 0 4-1.1 5.2-2.8.8-.8 1.5-1.8 1.8-3 5.7-22.1 25.6-37.5 48.4-37.5 20.4 0 38.5 12.4 46.2 30.9h-13.2c-5.4-13.3-18.4-22.2-33.1-22.2-16.1 0-30.3 10.9-34.6 26.4-.9 3.3 1.1 6.7 4.3 7.6 3.3.9 6.7-1.1 7.6-4.3 2.8-10.2 12.1-17.3 22.6-17.3 7.8 0 14.8 3.8 19.1 9.8h-3.6c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h12.5c.2 0 .5.1.7.1.3 0 .6 0 .8-.1h24.8c3.4 0 6.2-2.8 6.2-6.2 0-.3 0-.6-.1-.9.1-.8.1-1.7-.1-2.6-7.3-27.1-32.1-46-60.2-46-27.2 0-51.1 17.6-59.4 43.3h-32.3c2.6-8.3 6.1-16 10.5-23.2.3-.4.5-.8.8-1.2 18.3-28.7 50.3-47.1 85.8-47.1 21 0 41.2 6.4 58.3 18.4.5.3 1 .6 1.5.7 2.6 3.1 5.2 6.4 7.7 9.8.6.8 1.1 1.6 1.7 2.4-.6 12.7 6.3 26 20.6 39.6.5 1.5 1 2.8 1.3 3.8v1.3c0 3.4 2.8 6.2 6.2 6.2 2.9 0 5.2-1.9 5.9-4.6 0-.1.9-3.1 2.7-8.1 12.9-12.6 19.3-24.9 19.2-36.8.8-1.2 1.7-2.5 2.6-3.7 2.8-3.8 5.7-7.5 8.7-11 17-11.8 36.9-18 57.7-18 44.8 0 84 29.2 97 71.5h-32.3c-8.2-25.7-32.1-43.3-59.4-43.3-28.1 0-52.8 18.9-60.2 46-.3 1-.3 2 0 3v.5c0 3.4 2.8 6.2 6.2 6.2h54.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-19.7c4.3-6 11.3-9.8 19.1-9.8 10.7 0 20 7.2 22.7 17.6.7 2.8 3.2 4.6 6 4.6.5 0 1-.1 1.5-.2 3.3-.8 5.3-4.2 4.5-7.5-4.1-15.8-18.3-26.9-34.7-26.9-14.6 0-27.6 8.9-33.1 22.2h-12.5c7.6-18.5 25.8-30.9 46.2-30.9 22.8 0 42.7 15.4 48.4 37.5.1.5.4 1 .6 1.5.8 2.5 3.1 4.3 5.9 4.3H664c3.4 0 6.2-2.8 6.2-6.2v-.4-1.6c.1-.6.1-1.2.1-1.8 0-.1 0-.2-.1-.3V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v42c-10.4-.8-16.9-8.5-24.9-22.3-2.6-4.4-8-12.7-16-19.5 5.5-1.2 10.8-3.8 15.7-7.9 2.6-2.2 3-6.1.8-8.7-2.2-2.6-6.1-3-8.7-.8-12.8 10.6-24.3 4.1-28.7.8-8.5-6.4-14.8-19.3-9.9-30.3 6.3-14.1 16.4-17.8 32.9-19.5 2.1-.2 4.9-.6 8.2-1.3.6.1 1.3.1 2 0 .2 0 19.7-3.6 34.7 8.8 9.8 8.1 15.6 21.1 17.3 39-6.8-3.2-14.1-4.9-16.4-5.4h-.2c-20.5-4.5-26.1-15.1-27.6-21.3-.6-2.6-.6-4.4-.5-4.6.3-3.4-2.2-6.4-5.6-6.7-3.4-.3-6.4 2.2-6.7 5.6-1 10.5 5.7 32.1 37.9 39.1 8.3 1.8 18.8 5.9 20.7 9 0 0 0 .1.1.1.3.4.6.8.9 1.1.1.1.2.1.3.2.3.2.6.5.9.6.1.1.3.2.4.2.3.2.6.3.9.4.1 0 .3.1.4.1.4.1.9.2 1.4.2.4 0 .7 0 1.1-.1.1 0 .2 0 .3-.1.3-.1.6-.2 1-.3h.1c.3-.1.5-.3.8-.4l.1-.1c.2-.1.4-.3.5-.4.1-.1.3-.2.4-.4l.4-.4c.1-.2.3-.3.4-.5.1-.2.2-.3.3-.5.1-.2.2-.3.3-.5.1-.2.1-.4.2-.6.1-.2.1-.4.2-.6 0-.2.1-.4.1-.5 0-.2.1-.4.1-.7v-.1c-.1-28.3-7.7-48.8-22.6-61.1zM152.9 777.7H87.8c5.5-5.6 9.4-12.3 12.4-17.5 2.6-4.5 12.2-19.5 25.8-23.4 16-4.7 31 .8 38.4 13.5-4.9 8.5-8.8 17.7-11.5 27.4zm1.7-53.7c-5.7 0-10.3-4.6-10.3-10.3 0-5.7 4.6-10.3 10.3-10.3s10.3 4.6 10.3 10.3c0 5.7-4.7 10.3-10.3 10.3zm366.6-78.1l.9 1.1-.9-1.1zm.2-6.2c-58.4-6.8-100.6 18.3-125.8 40.5-10.9 9.6-19.5 19.5-26 27.9-1.2-.8-2.3-1.6-3.3-2.1v-17.6c47.3-47.5 94.3-61.7 125.5-65.2 20.7-2.3 37.4-.4 47.4 1.5-5.7 5.3-11.6 10.3-17.8 15zm73.3-87.2c-6 11.5-12.9 22.5-20.5 33.1-7.9-2.5-17.8-4.8-29.7-5.9 26.5-33.6 43.3-73.7 48.7-116 8.6-1 20.5-4.7 29.6-10.6-2.4 34.7-11.8 68.1-28.1 99.4zm-42.1-111.6l7.2-.3c2.4 10.7 10.5 19.3 21.1 22.2-5.6 42.8-23.4 83.2-51.8 116.2-13.7 0-29.6 1.6-47.6 5.5 42-34.2 69.4-85.7 71.1-143.6zm-117.5 158c-4 1.6-6.8 2.9-8.2 3.5-16.6 6.6-34.4 10.9-53 12.3l165.9-165.9c-5 66.8-46.6 123.4-104.7 150.1zm188.3-164.7c-.2 5.6-15.5 14.7-29 16.9-1.9.3-3.8.5-5.6.5-2.4 0-4.7-.5-6.8-1.4-6.3-2.7-10.7-8.9-10.7-16.1 0-7.2 4.4-13.4 10.7-16.1 2.1-.9 4.4-1.4 6.8-1.4 1.8 0 3.7.2 5.6.5 13.5 2.2 28.7 11.3 29 16.8v.3zM565.5 276l2.6 3.5c22.7 30.3 49.3 77.2 54.4 135.6-9-5.8-20.8-9.5-29.3-10.5-6.4-50.6-28.9-96.3-62.2-131.6 1.4-2.9 2.2-6.2 2.2-9.6 0-4.6-1.4-8.9-3.7-12.4l28.4-32.4c-5.4 20.6-2.8 40.1 7.6 57.4zm-82.9-70.1l1.3.9.7.4c9.9 5 20.5 7.5 31.5 7.5 11.6 0 23.7-2.8 35.9-8.4l-32 36.5c-2.9-1.4-6.1-2.1-9.6-2.1-4.5 0-8.6 1.3-12.1 3.5-31.5-23-68.8-38.3-109.4-43.3-1-7.3-3-17.7-6-27.9 32.1 3.6 65.6 14.6 99.7 32.9zm38.2 57.5c0 4.5-3 8.4-7.1 9.8-1 .3-2.1.5-3.2.5h-1c-4.6-.4-8.3-3.9-9.1-8.3-.1-.6-.2-1.3-.2-1.9 0-.7.1-1.3.2-2 .9-4.5 4.7-8 9.4-8.3H511.1c4.6.3 8.5 3.6 9.5 8 .1.6.2 1.1.2 1.7-.1.1 0 .3 0 .5zm-131.4-49.9c37.2 4.9 71.6 19.1 100.7 40.1-1.5 3-2.3 6.3-2.3 9.9 0 4.5 1.3 8.6 3.6 12.2l-49.8 56.8c-2.3 2.6-2 6.5.6 8.7 1.2 1 2.6 1.5 4.1 1.5 1.7 0 3.4-.7 4.7-2.1l49.7-56.7c3 1.5 6.3 2.3 9.9 2.3 4.6 0 8.8-1.4 12.3-3.7 31 33.2 51.9 75.8 58.1 123-10.7 3-19 11.8-21.2 22.8l-7.1.3c-1.5-45.7-19.2-89.3-50.1-123.2-2.3-2.5-6.2-2.7-8.7-.4-2.5 2.3-2.7 6.2-.4 8.7 27.2 29.8 43.4 67.6 46.5 107.6L473.5 355c-2.4-2.4-6.3-2.4-8.7 0-2.4 2.4-2.4 6.3 0 8.7l71.4 71.4-176 176-176-176 70.8-70.8c2.4-2.4 2.4-6.3 0-8.7-2.4-2.4-6.3-2.4-8.7 0l-65.7 65.7c3.5-45.5 23.9-86.4 55-116.2l31 35.4c1.2 1.4 2.9 2.1 4.7 2.1 1.4 0 2.9-.5 4.1-1.5 2.6-2.3 2.8-6.2.6-8.7l-31.1-35.5c28-23.4 63.1-38.5 101.6-41.4l-52.8 52.3c-2.4 2.4-2.4 6.3 0 8.7 1.2 1.2 2.8 1.8 4.4 1.8 1.6 0 3.1-.6 4.4-1.8l58-57.4 56.3 56.3c2.4 2.4 6.3 2.4 8.7 0 2.4-2.4 2.4-6.3 0-8.7l-51.2-51.2c31.7 2.4 61.9 13 88.2 31.1 2.8 1.9 6.7 1.2 8.6-1.6 1.9-2.8 1.2-6.7-1.6-8.6-30.4-20.9-65.8-32.5-102.8-33.6v-4.4c11.6-2.8 20.9-12.7 22.7-24.9zm-180.7 74.3c3.5 0 6.8-.8 9.7-2.2l8.9 10.2c-35.3 33.7-57.8 80.6-59.6 132.7l-5-.3c-2.4-11.7-11.5-20.9-23.2-23.3 6.1-46.3 26.5-88.1 56.5-120.9 3.7 2.4 8 3.8 12.7 3.8zm-10.3-22.6c0-.5 0-.9.1-1.4 0-.3.1-.5.1-.8.9-4.4 4.7-7.8 9.3-8.1h.7c4.7 0 8.7 3.2 9.9 7.6.2.9.4 1.8.4 2.7 0 .7-.1 1.4-.2 2.1-.9 4.4-4.7 7.8-9.3 8.1h-.8c-1.3 0-2.6-.3-3.7-.7-3.7-1.4-6.5-5.2-6.5-9.5zm-35.8 175.4l5.1.3c1.7 58 29.2 109.6 71.3 143.8-18.1-4-34-5.6-47.8-5.7-28.2-32.9-46.1-73.1-51.7-115.7 11.5-2.4 20.6-11.3 23.1-22.7zm17.9 8.2l165.9 165.9C258 608 187.2 537.2 180.5 448.8zm162.7-249c2.7-18.7 11.9-43.7 16.7-45.7 5.5 2.1 14 28 16.6 45.6.5 3.5.8 6.7.8 9.3 0 1.1-.1 2.1-.3 3.1-1.5 8.1-8.6 14.3-17.2 14.3s-15.7-6.2-17.2-14.3c-.2-1-.3-2.1-.3-3.1.1-2.7.4-5.8.9-9.2zm10.8 38.5v4.3c-44.6 1.4-85.4 18.1-117.4 44.9l-8.8-10.1c2.3-3.5 3.7-7.8 3.7-12.3 0-3.8-1-7.4-2.6-10.5 29.3-21.5 64-36 101.7-41.1 1.7 12.4 11.2 22.4 23.4 24.8zm-152.7-23.6c11 0 21.6-2.5 31.6-7.5.6-.3 57.7-30 103.9-34-3 10.1-5 20.6-6 27.8-41.1 5.1-79 21-110.7 44.6-3.4-2-7.2-3.1-11.4-3.1-3.5 0-6.8.8-9.7 2.2l-33.6-38.3c12.3 5.5 24.3 8.3 35.9 8.3zm-49.9 61.9l.5-.7c10.4-17.2 13-36.8 7.8-57.4l30 34.3c-2.3 3.5-3.7 7.8-3.7 12.3 0 3.3.7 6.4 2 9.3-32.7 35.2-54.7 80.4-61 130.4-8.9 1.4-20.7 5.2-29.6 10.9 3.5-52.8 21.2-98.5 54-139.1zM96.9 434c.2-5.8 16.3-13.8 29-16.4 2.8-.6 5.4-.9 7.6-.9 1.7 0 3.2.2 4.8.7 7.3 2.1 12.7 8.8 12.7 16.8s-5.4 14.7-12.7 16.8c-1.5.4-3.1.7-4.8.7-2.3 0-4.9-.3-7.6-.9-12.7-2.7-28.8-10.7-29-16.5v-.3zm.6 18.4c8.9 5.8 20.8 9.6 29.6 11 5.3 42.4 22.1 82.6 48.7 116.2-11.9 1.1-21.8 3.3-29.8 5.8-28.7-39.4-45.3-84.9-48.5-133zM154.9 597c-.3-.4-.6-.7-.9-1.1 30.1-8.3 63-3.9 86.1 1.6 27.9 6.7 48.3 16.4 48.5 16.5l.1-.2c22.1 8.8 46.2 13.7 71.4 13.7 25.1 0 49.1-4.8 71.1-13.6l.6-.3c2.6-1.1 5.3-2.2 7.8-3.4 8.5-3.5 22.8-8.7 40-12.8 23.3-5.6 56.3-10 86.4-1.6-5.2 6.4-10.6 12.5-16.4 18.4-8.4-2.3-29.8-6.7-58.7-3.6-31.4 3.4-77.6 16.8-124.8 60.4v-10.9c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v10.3c-46.9-43.1-92.9-56.4-124.1-59.8-29.6-3.2-51.3 1.6-59.2 3.8-5.2-5.4-10.5-11.3-15.5-17.4zm26.3 27.8c10-2 26.9-4 48-1.6 55.5 6.2 98.1 37.9 124.8 64.5v18.1c-.9.5-1.9 1.1-3 1.9-6.5-8.3-15-18-25.7-27.4-25.2-22.3-67.6-47.5-126.2-40.5v.1c-6.2-4.8-12.2-9.8-17.9-15.1zm155.3 98c-11.7-15-24.5-26.3-37.3-34.8l.1-.3c-.3-.1-.6-.2-.9-.2-21.3-13.9-42.7-20-59.9-22.5-8.1-4.2-16.1-8.9-23.8-14 37.7-1.1 71.9 11.7 102.1 38.2 10.4 9.1 18.6 18.5 24.8 26.6-1.9 2.1-3.6 4.4-5.1 7zm29.9 37.5c-1.5 1.8-3.1 3.6-4.9 5.4-.4.4-.9.9-1.4 1.3l-.1.1-.1.1v-.2c-.2-.2-.5-.4-.7-.7-2-1.9-3.7-3.8-5.3-5.7-7.3-8.7-10.5-16.8-9.4-24.2.1-.6.2-1.2.4-1.8.8-3.2 2.3-6 4.1-8.4 1.5-2 3.2-3.7 4.9-5.2 1.5-1.3 3-2.4 4.3-3.3.6-.4 1.1-.7 1.6-1 0 0 .1 0 .1-.1h.1c.7.4 1.4.9 2.3 1.5 1.2.8 2.6 1.9 4 3.1 1.8 1.6 3.6 3.5 5.1 5.6 1.8 2.6 3.3 5.5 3.9 8.8 0 .2.1.5.2.7 1.1 7.3-2 15.3-9.1 24zm24.4-45.1c-.2.2-.4.4-.5.6-2.3 2.6-4.4 5.2-6.3 7.7-1.5-2.6-3.2-5-5-7.1 6.2-8.1 14.6-17.8 25.2-27.1 30-26.4 64.1-39.2 101.5-38.3-7.8 5.1-15.8 9.9-24 14.1-42.8 6.5-72.1 28.7-90.9 50.1zm174.5-11.8c5.7 0 10.3 4.6 10.3 10.3 0 5.7-4.6 10.3-10.3 10.3s-10.3-4.6-10.3-10.3c0-5.6 4.6-10.3 10.3-10.3zm31.2 32.1c13.6 4 23.2 18.9 25.8 23.4 3.2 5.6 7.5 13 13.8 18.8H567c-2.6-9.4-6.3-18.3-11-26.5 7.6-13.6 24.6-20.4 40.5-15.7z",className:"st2"}),Object(h.createElement)("path",{d:"M69.6 301.1c0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4c0-10.1-8.2-18.4-18.4-18.4s-18.4 8.3-18.4 18.4zm24.4 0c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6 6 2.7 6 6zM648.7 301.1c0-10.1-8.2-18.4-18.4-18.4-10.1 0-18.4 8.2-18.4 18.4 0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4zm-24.4 0c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6c-3.3.1-6-2.6-6-6zM666.4 346.9c-2.3-.9-5-.4-6.8 1.4-8.1 8.3-21.4 8-21.6 8h-.2c-3.3 0-6 2.6-6.2 5.9-.1 3.4 2.5 6.3 5.9 6.4.6 0 10.4.3 20.4-4.3v100.9c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V352.6c-.1-2.5-1.6-4.8-3.9-5.7zM55.7 471.4c3.4 0 6.2-2.8 6.2-6.2V364.3c10 4.6 19.8 4.3 20.4 4.3 3.4-.1 6.1-3 5.9-6.4-.1-3.4-3-6.1-6.4-5.9-.1 0-13.5.3-21.6-8-1.8-1.8-4.4-2.3-6.8-1.4-2.3.9-3.8 3.2-3.8 5.7v112.7c-.1 3.4 2.7 6.1 6.1 6.1zM671.3 574.3c0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h40c3.4 0 6.2-2.7 6.2-6.2zM629.8 598c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-15.4c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.4zM644.8 609.4c0-3.4-2.8-6.2-6.2-6.2h-38.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.7 6.2-6.2zM620.6 627.1c0-3.4-2.8-6.2-6.2-6.2h-29.9c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2zM565.1 638.6c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-17zM665.1 532.8h-22.3c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h22.3c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 550.5H634c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h31.1c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 497.5h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM665.1 515.2h-15.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.2c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2z",className:"st2"}),Object(h.createElement)("circle",{cx:"55.5",cy:"485.6",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"80.5",cy:"627.3",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"120.3",cy:"645",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M54.9 580.7h40c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM105.6 585.9H90.2c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h15.4c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM119.6 603.5H81.4c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.8 6.2-6.2 0-3.5-2.8-6.2-6.2-6.2zM135.5 621.1h-29.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM131.7 645c0 3.4 2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-17c-3.4 0-6.2 2.8-6.2 6.2zM54.9 545.4h22.3c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 563.1H86c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 510.1h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 527.7h15.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM360 767.1c.1-.1 0-.1 0-.2v.2zM641.2 202.7c.1 0 .1 0 0 0 2.8 0 5.3-1.9 6-4.7 2.2-8.8 1.3-16.3-2.9-22.5-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.4 9 19 9.3 20.2 9.4zm-7-20.2c1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6-1.6-2-2.4-4.6-2.4-7.9 2 1 4.2 2.6 5.7 4.8zM601 113.3c-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.2 9 18.8 9.3 20.1 9.3 2.8 0 5.3-1.9 6-4.7 2.3-8.6 1.4-16.2-2.8-22.4zm-13.5 10.1c-1.6-2-2.4-4.6-2.4-7.9 2.1 1 4.3 2.6 5.7 4.8 1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6zM97.3 163.4c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.6-3.2-3.6-5.3-6.8-4.9zm-6.7 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.8 5.9-2.3 7.9zM139.7 101.2c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.7-3.2-3.6-5.3-6.8-4.9zm-6.8 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.7 5.9-2.3 7.9zM555.1 392c.4 3.2 3 5.5 6.1 5.5h.7c3.4-.4 5.8-3.5 5.4-6.9-6.2-54-43.1-92.2-44.7-93.8-2.4-2.4-6.3-2.5-8.7-.1-2.4 2.4-2.5 6.3-.1 8.7.4.4 35.6 36.9 41.3 86.6zM159.1 397.4h.7c3.1 0 5.8-2.3 6.1-5.5 5.7-49.7 40.9-86.2 41.2-86.5 2.4-2.4 2.3-6.4-.1-8.7-2.4-2.4-6.4-2.4-8.7.1-1.6 1.6-38.4 39.8-44.7 93.8-.3 3.4 2.1 6.4 5.5 6.8z",className:"st2"})))),ge=function(e){u()(a,e);var t=Y(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).runAjax=e.runAjax.bind(i()(e)),e.runPluginInstall=e.runPluginInstall.bind(i()(e)),e.runPluginInstallSingle=e.runPluginInstallSingle.bind(i()(e)),e.runSubscribe=e.runSubscribe.bind(i()(e)),e.runSubscribeSingle=e.runSubscribeSingle.bind(i()(e)),e.loadTemplateData=e.loadTemplateData.bind(i()(e)),e.reloadTemplateData=e.reloadTemplateData.bind(i()(e)),e.loadPluginData=e.loadPluginData.bind(i()(e)),e.focusMode=e.focusMode.bind(i()(e)),e.fullFocusMode=e.fullFocusMode.bind(i()(e)),e.jumpToImport=e.jumpToImport.bind(i()(e)),e.selectedMode=e.selectedMode.bind(i()(e)),e.selectedFullMode=e.selectedFullMode.bind(i()(e)),e.backToDash=e.backToDash.bind(i()(e)),e.saveConfig=e.saveConfig.bind(i()(e)),e.state={category:"all",activeTemplate:"",colorPalette:"",fontPair:"",search:null,isFetching:!1,isImporting:!1,isSelected:!1,response:"",isPageSelected:!1,starterSettings:kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{},selectedPage:"home",progress:"",focusMode:!1,finished:!1,overrideColors:!1,overrideFonts:!1,isOpenCheckColor:!1,isOpenCheckFont:!1,isOpenCheckPast:!1,removePast:!1,errorTemplates:!1,templates:kadenceStarterParams.templates?kadenceStarterParams.templates:[],etemplates:kadenceStarterParams.etemplates?kadenceStarterParams.etemplates:[],activeTemplates:!1,palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[],logo:kadenceStarterParams.logo?kadenceStarterParams.logo:"",hasContent:!!kadenceStarterParams.has_content&&kadenceStarterParams.has_content,hasPastContent:!!kadenceStarterParams.has_previous&&kadenceStarterParams.has_previous,isSaving:!1,isLoadingPlugins:!1,activePlugins:!1,showForm:!0,templatePlugins:"",isSubscribed:!!kadenceStarterParams.subscribed,email:kadenceStarterParams.user_email,privacy:!1,emailError:!1,privacyError:!1,settingOpen:!1,installContent:!0,installCustomizer:!0,installWidgets:!0},e}return c()(a,[{key:"componentDidMount",value:function(){var e=this;kadenceStarterParams.openBuilder||kadenceStarterParams.ctemplates||wp.api.loadPromise.then((function(){e.saveConfig("builderType","blocks")}))}},{key:"saveConfig",value:function(e,t){var a=this;this.setState({isSaving:!0});var r=kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{};(r[e]||(r[e]=""),r[e]=t,this.setState({starterSettings:r}),wp.api.models.Settings)&&new wp.api.models.Settings({kadence_starter_templates_config:JSON.stringify(r)}).save().then((function(e){a.setState({starterSettings:r,isSaving:!1}),kadenceStarterParams.starterSettings=JSON.stringify(r)}))}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"focusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!1,activePlugins:!1})}},{key:"fullFocusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!0,activePlugins:!1})}},{key:"jumpToImport",value:function(e){this.setState({isImporting:!0,activeTemplate:e,focusMode:!0,isSelected:!0,fontPair:"",colorPalette:"",activePlugins:!1})}},{key:"selectedFullMode",value:function(){this.setState({isSelected:!0})}},{key:"selectedMode",value:function(e){this.setState({selectedPage:e,isPageSelected:!0,isImporting:!0})}},{key:"backToDash",value:function(){this.setState({isFetching:!1,activeTemplate:"",activePlugins:!1,overrideColors:!1,overrideFonts:!1,colorPalette:"",fontPair:"",focusMode:!1,finished:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",selectedPage:"home"})}},{key:"reloadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_reload_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=X(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_get_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=X(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadPluginData",value:function(e,t){this.setState({isLoadingPlugins:!0});var a=new FormData;a.append("action","kadence_check_plugin_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){e&&(void 0!==e.success?r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}):"object"===v()(e)&&null!==e?r.setState({templatePlugins:e,activePlugins:!0,isLoadingPlugins:!1}):r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}))})).fail((function(e){console.log(e),r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1})}))}},{key:"runPluginInstallSingle",value:function(e,t,a){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var r=new FormData;r.append("action","kadence_import_install_plugins"),r.append("security",kadenceStarterParams.ajax_nonce),r.append("selected",e),r.append("builder",a),r.append("page_id",t),this.runPageAjax(r)}},{key:"runSubscribeSingle",value:function(e){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var t=new FormData;t.append("action","kadence_import_subscribe"),t.append("security",kadenceStarterParams.ajax_nonce),t.append("email",e),this.runPageAjax(t)}},{key:"runRemovePast",value:function(e,t){this.setState({progress:"remove",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_remove_past_import_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runPluginInstall",value:function(e,t){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_import_install_plugins"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runSubscribe",value:function(e){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var t=new FormData;t.append("action","kadence_import_subscribe"),t.append("security",kadenceStarterParams.ajax_nonce),t.append("email",e),this.runAjax(t)}},{key:"runPageAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runPageAjax(e);else if(void 0!==a.status&&"subscribeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),t.runPageAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){var s;t.setState({progress:"content"}),(s=new FormData).append("action","kadence_import_single_data"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),s.append("override_colors",t.state.overrideColors),s.append("override_fonts",t.state.overrideFonts),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair),t.runPageAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):"emailDomainPostError"===a||"emailDomainPreError"===a?t.setState({isFetching:!1,progress:"",showForm:!0,emailError:!0}):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})})).fail((function(e){t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"runAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runAjax(e);else if(void 0!==a.status&&"customizerAJAX"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"afterAllImportAJAX"===a.status){t.setState({progress:"widgets"}),(s=new FormData).append("action","kadence_after_import_data"),s.append("security",kadenceStarterParams.ajax_nonce),t.runAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installContent?(t.setState({progress:"content"}),s.append("action","kadence_import_demo_data"),s.append("builder",t.state.starterSettings.builderType),s.append("selected",t.state.activeTemplate),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair)):t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"removeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else if(void 0!==a.status&&"subscribeSuccess"===a.status){var s=new FormData;t.state.removePast?(this.setState({progress:"remove"}),s.append("action","kadence_remove_past_import_data")):(t.setState({progress:"plugins"}),s.append("action","kadence_import_install_plugins")),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):void 0===a.success||a.success?(console.log(a),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+Z("Failed Import. Something went wrong internally. Please try again.","kadence-starter-templates")+"</p></div>"})})).fail((function(e){console.log(e),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"render",value:function(){for(var e=this,t=["all"],a=0;a<this.state.templates.length;a++)for(var r=0;r<this.state.templates[a].categories.length;r++)t.includes(this.state.templates[a].categories[r])||t.push(this.state.templates[a].categories[r]);t.map((function(t){return{value:t,label:e.capitalizeFirstLetter(t)}}));var n=Z("Gutenberg","kadence-starter-templates"),s=he;"elementor"===this.state.starterSettings.builderType&&(n=Z("Elementor","kadence-starter-templates"),s=ve),"custom"===this.state.starterSettings.builderType&&(n=kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates"),s=kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"components-menu-items__item-icon custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be);var c=!(!this.state.isSaving&&!1!==this.state.activeTemplates&&!this.state.errorTemplates),o=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1;return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",Z("Selected Page:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(h.createElement)(fe,{title:Z("Advanced Settings","kadence-blocks"),initialOpen:e.state.settingOpen,onToggle:function(t){return e.state.settingOpen?e.setState({settingOpen:!1}):e.setState({settingOpen:!0})}},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Page Template Plugins","kadence-starter-templates"))),e.state.isLoadingPlugins&&Object(h.createElement)(ce,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(te,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(te,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(e.state.templatePlugins,(function(e){var t=e.state,r=e.src,n=e.title;return"active"!==t&&"bundle"===r&&(a=!0),"active"===t||"thirdparty"!==r&&"unknown"!==r||!0,Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===r?" bundle-install-required":"")},n," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===r?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(te,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},Z("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?Z("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},Z("Unknown","kadence-starter-templates")))}))))),Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("*Single Page templates will follow your website current global colors and typography settings, you can import without effecting your current site. Or you can optionally override your websites global colors and typography by enabling the settings below.","kadence-starter-templates")),Object(h.createElement)(pe,{label:Z("Override Your Sites Global Colors?","kadence-starter-templates"),checked:void 0!==e.state.overrideColors&&e.state.overrideColors,onChange:function(t){return e.state.overrideColors?e.setState({overrideColors:!1}):e.setState({isOpenCheckColor:!0})}}),e.state.isOpenCheckColor?Object(h.createElement)(se,{className:"ksp-confirm-modal",title:Z("Override Your Sites Colors on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckColor:!1})}},Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("This will override the customizer settings for global colors on your current site when you import this page template.","kadence-starter-templates")),Object(h.createElement)("div",{className:"ksp-override-model-buttons"},Object(h.createElement)(le,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!1})}},Z("Cancel","kadence-starter-templates")),Object(h.createElement)(le,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!0})}},Z("Override Colors","kadence-starter-templates")))):null,e.state.overrideColors&&e.state.colorPalette&&Object(h.createElement)(te,null,Object(h.createElement)("h3",null,Z("Selected Color Palette","kadence-starter-templates")),j()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(h.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},j()(r,(function(e,t){return Object(h.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(h.createElement)(pe,{label:Z("Override Your Sites Fonts?","kadence-starter-templates"),checked:void 0!==e.state.overrideFonts&&e.state.overrideFonts,onChange:function(t){return e.state.overrideFonts?e.setState({overrideFonts:!1}):e.setState({isOpenCheckFont:!0})}}),e.state.isOpenCheckFont?Object(h.createElement)(se,{className:"ksp-confirm-modal",title:Z("Override Your Sites Fonts on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckFont:!1})}},Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("This will override the customizer typography settings on your current site when you import this page template.","kadence-starter-templates")),Object(h.createElement)("div",{className:"ksp-override-model-buttons"},Object(h.createElement)(le,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!1})}},Z("Cancel","kadence-starter-templates")),Object(h.createElement)(le,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!0})}},Z("Override Fonts","kadence-starter-templates")))):null,e.state.fontPair&&e.state.overrideFonts&&Object(h.createElement)(te,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},Z("Selected Font Pair","kadence-starter-templates")),j()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(h.createElement)("div",{className:"kst-selected-font-pair"},Object(h.createElement)("img",{src:r,className:"font-pairing"}),Object(h.createElement)("h4",null,n))})))),"subscribe"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.subscribe_progress),"plugins"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_new_progress),e.state.isFetching&&Object(h.createElement)(ce,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("This Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://kadence-theme.com/"},Z("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,a&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!a&&Object(h.createElement)(te,null,e.state.showForm&&!e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(G,{emailError:e.state.emailError,onRun:function(t){return e.runSubscribeSingle(t)}}),Object(h.createElement)(le,{className:"kb-skip-start subscribe",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},Z("Skip, start importing page","kadence-starter-templates"))),e.state.showForm&&e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(le,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},Z("Start Importing Page","kadence-starter-templates"))))))))},i=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1,r=!1;return Object(h.createElement)(te,null,Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image,alt:t.name}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name)))))),Object(h.createElement)(se,{className:"kst-import-modal",title:Z("Import Starter Template"),onRequestClose:function(){return!e.state.isFetching&&e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",focusMode:!1,isImporting:!1,progress:""})}},!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("This Starter Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://kadence-theme.com/"},Z("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,e.state.hasContent&&Object(h.createElement)("div",{className:"kadence_starter_templates_notice"},e.state.hasPastContent?Object(h.createElement)(te,null,kadenceStarterParams.notice_previous):Object(h.createElement)(te,null,kadenceStarterParams.notice)),e.state.hasPastContent&&Object(h.createElement)(te,null,Object(h.createElement)(pe,{label:Z("Delete Previously Imported Posts and Images?","kadence-starter-templates"),checked:void 0!==e.state.removePast&&e.state.removePast,onChange:function(t){return e.state.removePast?e.setState({removePast:!1}):e.setState({removePast:!0})}})),Object(h.createElement)(fe,{title:Z("Import Details","kadence-blocks"),initialOpen:!1},Object(h.createElement)("div",{className:"required-plugins-list"},Object(h.createElement)("h3",{className:"required-plugins-list-header"},Z("Required Plugins","kadence-starter-templates")),e.state.isLoadingPlugins&&Object(h.createElement)(ce,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(te,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(te,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;return"active"!==t&&"bundle"===n&&(r=!0),"active"!==t&&"thirdparty"===n&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===n?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(te,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},Z("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(r=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?Z("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},Z("Unknown","kadence-starter-templates")))})))))),e.state.colorPalette&&Object(h.createElement)(te,null,Object(h.createElement)("h3",null,Z("Selected Color Palette","kadence-starter-templates")),j()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(h.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},j()(r,(function(e,t){return Object(h.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),e.state.fontPair&&Object(h.createElement)(te,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},Z("Selected Font Pair","kadence-starter-templates")),j()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(h.createElement)("div",{className:"kst-selected-font-pair"},Object(h.createElement)("img",{src:r,className:"font-pairing"}),Object(h.createElement)("h4",null,n))})))),Object(h.createElement)(fe,{title:Z("Advanced Settings","kadence-blocks"),initialOpen:!1},Object(h.createElement)(pe,{label:Z("Import Customizer Settings","kadence-starter-templates"),checked:void 0!==e.state.installCustomizer&&e.state.installCustomizer,onChange:function(t){return e.state.installCustomizer?e.setState({installCustomizer:!1}):e.setState({installCustomizer:!0})}}),Object(h.createElement)(pe,{label:Z("Import Content","kadence-starter-templates"),checked:void 0!==e.state.installContent&&e.state.installContent,onChange:function(t){return e.state.installContent?e.setState({installContent:!1}):e.setState({installContent:!0})}})),a&&Object(h.createElement)("div",{className:"install-third-party-notice"},Object(h.createElement)("p",{className:"desc-small"},Z("*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.","kadence-starter-templates")),j()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;if("active"!==t&&"repo"!==n)return"active"!==t&&"bundle"===n&&(r=!0),"active"!==t&&"thirdparty"===n&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t))}))),"subscribe"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.subscribe_progress),"remove"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.remove_progress),"plugins"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_new_progress),"customizer"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.customizer_progress),"widgets"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.widgets_progress),e.state.isFetching&&Object(h.createElement)(ce,null),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,a&&Object(h.createElement)(te,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!r&&Object(h.createElement)(le,{className:"kt-defaults-save import-partial-btn",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Skip and Import with Partial Content"))),!a&&Object(h.createElement)(te,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!r&&Object(h.createElement)(te,null,e.state.showForm&&!e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(G,{emailError:e.state.emailError,onRun:function(t){return e.runSubscribe(t)}}),Object(h.createElement)(le,{className:"kb-skip-start",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Skip, Start Importing"))),e.state.showForm&&e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(le,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Start Importing","kadence-starter-templates")))))))))},l=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)(te,null,Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Page Templates","kadence-starter-templates"))),Object(h.createElement)("div",{className:"templates-grid"},j()(t.pages,(function(t){var a=t.title,r=t.id,n=t.thumbnail;return Object(h.createElement)("div",{className:"kst-template-item"},Object(h.createElement)(le,{key:r,className:"kst-import-btn",isSmall:!0,onClick:function(){return e.selectedMode(r)}},Object(h.createElement)(y.a,{offsetBottom:200},Object(h.createElement)("img",{src:n,alt:a})),Object(h.createElement)("div",{className:"demo-title"},Object(h.createElement)("h4",null,a," ",Object(h.createElement)("span",null,Z("View Details","kadence-starter-templates"))))))}))),Object(h.createElement)("div",{className:"kst-import-selection-bottom"},Object(h.createElement)(le,{className:"kt-import-fullsite",isPrimary:!0,onClick:function(){return e.selectedFullMode()}},Z("Import Full Site","kadence-starter-templates")))))},u=function(){var t=e;return Object(h.createElement)("div",{className:"templates-grid"},Object.keys(e.state.activeTemplates).map((function(e,a){var r=t.state.activeTemplates[e].name,n=t.state.activeTemplates[e].slug,s=t.state.activeTemplates[e].image,c=t.state.activeTemplates[e].categories,o=t.state.activeTemplates[e].keywords,i=t.state.activeTemplates[e].pro,l=(t.state.activeTemplates[e].member,t.state.activeTemplates[e].pages);if(("all"===t.state.category||c.includes(t.state.category))&&(!t.state.search||o&&o.some((function(e){return e.toLowerCase().includes(t.state.search.toLowerCase())}))))return Object(h.createElement)("div",{className:"kst-template-item"},Object(h.createElement)(le,{key:e,className:"kst-import-btn",isSmall:!0,onClick:function(){return"custom"===t.state.starterSettings.builderType?t.jumpToImport(n):t.fullFocusMode(n)}},Object(h.createElement)(y.a,{offsetBottom:200},Object(h.createElement)("img",{src:l&&l.home&&l.home.thumbnail?l.home.thumbnail:s,alt:r})),Object(h.createElement)("div",{className:"demo-title"},Object(h.createElement)("h4",null,r))),void 0!==i&&i&&Object(h.createElement)(te,null,Object(h.createElement)("span",{className:"kb-pro-template"},Z("Pro","kadence-starter-sites"))))})))},p=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",Z("Selected Page:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))},m=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name))),Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))};return Object(h.createElement)(te,null,Object(h.createElement)("div",{class:"kadence_theme_dash_head"},Object(h.createElement)("div",{class:"kadence_theme_dash_head_container"},Object(h.createElement)("div",{class:"kadence_theme_dash_logo"},Object(h.createElement)("img",{src:this.state.logo})),this.state.focusMode&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},this.state.isPageSelected?Object(h.createElement)(de,{text:Z("Back to Individual Pages Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return!e.state.isFetching&&e.setState({colorPalette:"",finished:!1,selectedPage:"home",focusMode:!0,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:""})}})):Object(h.createElement)(de,{text:Z("Back to Starter Templates Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return e.backToDash()}}))),this.state.finished&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},Object(h.createElement)(de,{text:Z("Back to Starter Templates Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return e.backToDash()}}))),Object(h.createElement)("div",{class:"kadence_starter_builder_type"},this.state.starterSettings&&this.state.starterSettings.builderType&&Object(h.createElement)(oe,{className:"my-container-class-name",contentClassName:"kst-type-popover",position:"bottom left",renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(h.createElement)(le,{onClick:a,"aria-expanded":t,icon:s},n,Object(h.createElement)(ie,{className:"kst-chev",icon:J}))},renderContent:function(t){t.isOpen;var a=t.onToggle;return Object(h.createElement)("div",null,Object(h.createElement)(me,{icon:he,className:"blocks"===e.state.starterSettings.builderType?"active-item":"",isSelected:"blocks"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","blocks"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},Z("Gutenberg","kadence-starter-templates")),Object(h.createElement)(me,{icon:ve,className:"elementor"===e.state.starterSettings.builderType?"active-item":"",isSelected:"elementor"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","elementor"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},Z("Elementor","kadence-starter-templates")),kadenceStarterParams.ctemplates&&Object(h.createElement)(me,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be,className:"custom"===e.state.starterSettings.builderType?"active-item":"",isSelected:"custom"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","custom"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates")))}})),!1!==this.state.activeTemplates&&this.state.starterSettings.builderType&&Object(h.createElement)("div",{class:"kadence_theme_dash_reload"},Object(h.createElement)(de,{text:Z("Sync with Cloud")},Object(h.createElement)(le,{className:"kt-reload-templates",icon:U,onClick:function(){return e.reloadTemplateData()}}))))),Object(h.createElement)("div",{class:"kadence_theme_starter_dash_inner"},this.state.starterSettings&&this.state.starterSettings.builderType?Object(h.createElement)((function(){return Object(h.createElement)(te,null,c?Object(h.createElement)("div",{className:"main-panel"},Object(h.createElement)("div",{className:"kst-overlay-saving"},!e.state.errorTemplates&&Object(h.createElement)(ce,null),e.state.errorTemplates&&Object(h.createElement)(te,null,Object(h.createElement)("h2",{style:{textAlign:"center"}},Z("Error, Unable to access template database, please try re-downloading","kadence-starter-templates")),Object(h.createElement)("div",{style:{textAlign:"center"}},Object(h.createElement)(le,{className:"kt-reload-templates",icon:U,onClick:function(){return e.reloadTemplateData()}},Z(" Sync with Cloud","kadence-starter-templates")))),!1===e.state.activeTemplates&&Object(h.createElement)(te,null,e.loadTemplateData()))):Object(h.createElement)("div",{className:"main-panel"},e.state.focusMode&&Object(h.createElement)(te,null,e.state.isImporting&&Object(h.createElement)(te,null,e.state.isPageSelected?Object(h.createElement)(o,null):Object(h.createElement)(i,null)),!e.state.isImporting&&e.state.isSelected&&Object(h.createElement)(M,{item:e.state.activeTemplates[e.state.activeTemplate],colorPalette:e.state.colorPalette,fontPair:e.state.fontPair,onChange:function(t){e.setState(t)}}),!e.state.isImporting&&!e.state.isSelected&&Object(h.createElement)(l,null)),!e.state.focusMode&&!e.state.finished&&Object(h.createElement)(u,null),e.state.finished&&Object(h.createElement)(te,null,e.state.isPageSelected?Object(h.createElement)(p,null):Object(h.createElement)(m,null))))}),null):Object(h.createElement)((function(){return Object(h.createElement)("div",{className:"kst-choose-builder-wrap".concat(kadenceStarterParams.ctemplates?" adjust-to-three-column":"")},Object(h.createElement)("div",{className:"kst-choose-builder-center"},Object(h.createElement)("h2",{className:"kst-choose-builder-title"},Z("Choose a Builder","kadence-starter-templates")),Object(h.createElement)("div",{className:"kst-choose-builder-inner"},kadenceStarterParams.ctemplates&&Object(h.createElement)(le,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","custom")}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates")),Object(h.createElement)(le,{icon:he,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","blocks")}},Z("Gutenberg","kadence-starter-templates")),Object(h.createElement)(le,{icon:ve,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","elementor")}},Z("Elementor","kadence-starter-templates"))),e.state.isSaving&&Object(h.createElement)("div",{className:"kst-overlay-saving"},Object(h.createElement)(ce,null))))}),null)))}}]),a}(ae);wp.domReady((function(){re(Object(h.createElement)(ge,null),document.querySelector(".kadence_starter_dashboard_main"))}))}]);
1
+ !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=146)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){var r=a(31),n=a(50),s=a(129),c=a(5);e.exports=function(e,t){return(c(e)?r:s)(e,n(t,3))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,a){var r=a(35),n="object"==typeof self&&self&&self.Object===Object&&self,s=r||n||Function("return this")();e.exports=s},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t,a){var r=a(63),n=a(68);e.exports=function(e,t){var a=n(e,t);return r(a)?a:void 0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}},function(e,t,a){var r=a(49);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,a){var r=a(20),n=a(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},function(e,t,a){var r=a(16),n=a(64),s=a(65),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?n(e):s(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,a){var r=a(53),n=a(54),s=a(55),c=a(56),o=a(57);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(33);e.exports=function(e,t){for(var a=e.length;a--;)if(r(e[a][0],t))return a;return-1}},function(e,t,a){var r=a(4).Symbol;e.exports=r},function(e,t,a){var r=a(7)(Object,"create");e.exports=r},function(e,t,a){var r=a(77);e.exports=function(e,t){var a=e.__data__;return r(t)?a["string"==typeof t?"string":"hash"]:a.map}},function(e,t,a){var r=a(30);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=a=function(e){return typeof e}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(135),s=d(n),c=d(a(136)),o=a(139),i=a(140),l=d(a(141)),u=d(a(142)),p=d(a(143)),m=d(a(144));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.lazyLoadHandler=a.lazyLoadHandler.bind(a),e.throttle>0&&(e.debounce?a.lazyLoadHandler=(0,l.default)(a.lazyLoadHandler,e.throttle):a.lazyLoadHandler=(0,u.default)(a.lazyLoadHandler,e.throttle)),a.state={visible:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this._mounted=!0;var e=this.getEventNode();this.lazyLoadHandler(),this.lazyLoadHandler.flush&&this.lazyLoadHandler.flush(),(0,i.add)(window,"resize",this.lazyLoadHandler),(0,i.add)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.add)(window,"scroll",this.lazyLoadHandler)}},{key:"componentWillReceiveProps",value:function(){this.state.visible||this.lazyLoadHandler()}},{key:"shouldComponentUpdate",value:function(e,t){return t.visible}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lazyLoadHandler.cancel&&this.lazyLoadHandler.cancel(),this.detachListeners()}},{key:"getEventNode",value:function(){return(0,p.default)((0,o.findDOMNode)(this))}},{key:"getOffset",value:function(){var e=this.props,t=e.offset,a=e.offsetVertical,r=e.offsetHorizontal,n=e.offsetTop,s=e.offsetBottom,c=e.offsetLeft,o=e.offsetRight,i=e.threshold||t,l=a||i,u=r||i;return{top:n||l,bottom:s||l,left:c||u,right:o||u}}},{key:"lazyLoadHandler",value:function(){if(this._mounted){var e=this.getOffset(),t=(0,o.findDOMNode)(this),a=this.getEventNode();if((0,m.default)(t,a,e)){var r=this.props.onContentVisible;this.setState({visible:!0},(function(){r&&r()})),this.detachListeners()}}}},{key:"detachListeners",value:function(){var e=this.getEventNode();(0,i.remove)(window,"resize",this.lazyLoadHandler),(0,i.remove)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.remove)(window,"scroll",this.lazyLoadHandler)}},{key:"render",value:function(){var e=this.props,t=e.children,a=e.className,r=e.height,c=e.width,o=this.state.visible,i={height:r,width:c},l="LazyLoad"+(o?" is-visible":"")+(a?" "+a:"");return s.default.createElement(this.props.elementType,{className:l,style:i},o&&n.Children.only(t))}}]),t}(n.Component);t.default=f,f.propTypes={children:c.default.node.isRequired,className:c.default.string,debounce:c.default.bool,elementType:c.default.string,height:c.default.oneOfType([c.default.string,c.default.number]),offset:c.default.number,offsetBottom:c.default.number,offsetHorizontal:c.default.number,offsetLeft:c.default.number,offsetRight:c.default.number,offsetTop:c.default.number,offsetVertical:c.default.number,threshold:c.default.number,throttle:c.default.number,width:c.default.oneOfType([c.default.string,c.default.number]),onContentVisible:c.default.func},f.defaultProps={elementType:"div",debounce:!0,offset:0,offsetBottom:0,offsetHorizontal:0,offsetLeft:0,offsetRight:0,offsetTop:0,offsetVertical:0,throttle:250}},function(e,t,a){var r=a(7)(a(4),"Map");e.exports=r},function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,a){var r=a(69),n=a(76),s=a(78),c=a(79),o=a(80);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(98),n=a(105),s=a(28);e.exports=function(e){return s(e)?r(e):n(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,a){var r=a(34),n=a(27);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},function(e,t,a){var r=a(5),n=a(30),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!n(e))||(c.test(e)||!s.test(e)||null!=t&&e in Object(t))}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}},function(e,t,a){var r=a(14),n=a(58),s=a(59),c=a(60),o=a(61),i=a(62);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=s,l.prototype.get=c,l.prototype.has=o,l.prototype.set=i,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,a){var r=a(12),n=a(24);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(this,a(23))},function(e,t){var a=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,a){var r=a(81),n=a(13);e.exports=function e(t,a,s,c,o){return t===a||(null==t||null==a||!n(t)&&!n(a)?t!=t&&a!=a:r(t,a,s,c,e,o))}},function(e,t,a){var r=a(82),n=a(85),s=a(86);e.exports=function(e,t,a,c,o,i){var l=1&a,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=i.get(e);if(m&&i.get(t))return m==t;var d=-1,f=!0,b=2&a?new r:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var v=e[d],g=t[d];if(c)var h=l?c(g,v,d,t,e,i):c(v,g,d,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(b){if(!n(t,(function(e,t){if(!s(b,t)&&(v===e||o(v,e,a,c,i)))return b.push(t)}))){f=!1;break}}else if(v!==g&&!o(v,g,a,c,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t,a){var r=a(100),n=a(13),s=Object.prototype,c=s.hasOwnProperty,o=s.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(e){return n(e)&&c.call(e,"callee")&&!o.call(e,"callee")};e.exports=i},function(e,t,a){(function(e){var r=a(4),n=a(101),s=t&&!t.nodeType&&t,c=s&&"object"==typeof e&&e&&!e.nodeType&&e,o=c&&c.exports===s?r.Buffer:void 0,i=(o?o.isBuffer:void 0)||n;e.exports=i}).call(this,a(41)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var a=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&a.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,a){var r=a(102),n=a(103),s=a(104),c=s&&s.isTypedArray,o=c?n(c):r;e.exports=o},function(e,t,a){var r=a(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(a){return null!=a&&(a[e]===t&&(void 0!==t||e in Object(a)))}}},function(e,t,a){var r=a(47),n=a(19);e.exports=function(e,t){for(var a=0,s=(t=r(t,e)).length;null!=e&&a<s;)e=e[n(t[a++])];return a&&a==s?e:void 0}},function(e,t,a){var r=a(5),n=a(29),s=a(117),c=a(120);e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:s(c(e))}},,function(e,t){function a(t,r){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,r)}e.exports=a},function(e,t,a){var r=a(51),n=a(115),s=a(125),c=a(5),o=a(126);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?c(e)?n(e[0],e[1]):r(e):o(e)}},function(e,t,a){var r=a(52),n=a(114),s=a(45);e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(a){return a===e||r(a,e,t)}}},function(e,t,a){var r=a(32),n=a(37);e.exports=function(e,t,a,s){var c=a.length,o=c,i=!s;if(null==e)return!o;for(e=Object(e);c--;){var l=a[c];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++c<o;){var u=(l=a[c])[0],p=e[u],m=l[1];if(i&&l[2]){if(void 0===p&&!(u in e))return!1}else{var d=new r;if(s)var f=s(p,m,u,e,t,d);if(!(void 0===f?n(m,p,3,s,d):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,a){var r=a(15),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,a=r(t,e);return!(a<0)&&(a==t.length-1?t.pop():n.call(t,a,1),--this.size,!0)}},function(e,t,a){var r=a(15);e.exports=function(e){var t=this.__data__,a=r(t,e);return a<0?void 0:t[a][1]}},function(e,t,a){var r=a(15);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,a){var r=a(15);e.exports=function(e,t){var a=this.__data__,n=r(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this}},function(e,t,a){var r=a(14);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,a){var r=a(14),n=a(22),s=a(25);e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var c=a.__data__;if(!n||c.length<199)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new s(c)}return a.set(e,t),this.size=a.size,this}},function(e,t,a){var r=a(34),n=a(66),s=a(24),c=a(36),o=/^\[object .+?Constructor\]$/,i=Function.prototype,l=Object.prototype,u=i.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(r(e)?m:o).test(c(e))}},function(e,t,a){var r=a(16),n=Object.prototype,s=n.hasOwnProperty,c=n.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),a=e[o];try{e[o]=void 0;var r=!0}catch(e){}var n=c.call(e);return r&&(t?e[o]=a:delete e[o]),n}},function(e,t){var a=Object.prototype.toString;e.exports=function(e){return a.call(e)}},function(e,t,a){var r,n=a(67),s=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},function(e,t,a){var r=a(4)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,a){var r=a(70),n=a(14),s=a(22);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||n),string:new r}}},function(e,t,a){var r=a(71),n=a(72),s=a(73),c=a(74),o=a(75);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(17);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return n.call(t,e)?t[e]:void 0}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},function(e,t,a){var r=a(17);e.exports=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,a){var r=a(18);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(18);e.exports=function(e,t){var a=r(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this}},function(e,t,a){var r=a(32),n=a(38),s=a(87),c=a(91),o=a(109),i=a(5),l=a(40),u=a(43),p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,d,f,b){var v=i(e),g=i(t),h=v?"[object Array]":o(e),k=g?"[object Array]":o(t),j=(h="[object Arguments]"==h?p:h)==p,O=(k="[object Arguments]"==k?p:k)==p,y=h==k;if(y&&l(e)){if(!l(t))return!1;v=!0,j=!1}if(y&&!j)return b||(b=new r),v||u(e)?n(e,t,a,d,f,b):s(e,t,h,a,d,f,b);if(!(1&a)){var E=j&&m.call(e,"__wrapped__"),_=O&&m.call(t,"__wrapped__");if(E||_){var S=E?e.value():e,P=_?t.value():t;return b||(b=new r),f(S,P,a,d,b)}}return!!y&&(b||(b=new r),c(e,t,a,d,f,b))}},function(e,t,a){var r=a(25),n=a(83),s=a(84);function c(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new r;++t<a;)this.add(e[t])}c.prototype.add=c.prototype.push=n,c.prototype.has=s,e.exports=c},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,a){var r=a(16),n=a(88),s=a(33),c=a(38),o=a(89),i=a(90),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,a,r,l,p,m){switch(a){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=o;case"[object Set]":var f=1&r;if(d||(d=i),e.size!=t.size&&!f)return!1;var b=m.get(e);if(b)return b==t;r|=2,m.set(e,t);var v=c(d(e),d(t),r,l,p,m);return m.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,a){var r=a(4).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e,r){a[++t]=[r,e]})),a}},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}},function(e,t,a){var r=a(92),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,s,c,o){var i=1&a,l=r(e),u=l.length;if(u!=r(t).length&&!i)return!1;for(var p=u;p--;){var m=l[p];if(!(i?m in t:n.call(t,m)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var b=i;++p<u;){var v=e[m=l[p]],g=t[m];if(s)var h=i?s(g,v,m,t,e,o):s(v,g,m,e,t,o);if(!(void 0===h?v===g||c(v,g,a,s,o):h)){f=!1;break}b||(b="constructor"==m)}if(f&&!b){var k=e.constructor,j=t.constructor;k==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof j&&j instanceof j||(f=!1)}return o.delete(e),o.delete(t),f}},function(e,t,a){var r=a(93),n=a(95),s=a(26);e.exports=function(e){return r(e,s,n)}},function(e,t,a){var r=a(94),n=a(5);e.exports=function(e,t,a){var s=t(e);return n(e)?s:r(s,a(e))}},function(e,t){e.exports=function(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}},function(e,t,a){var r=a(96),n=a(97),s=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,o=c?function(e){return null==e?[]:(e=Object(e),r(c(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=0,s=[];++a<r;){var c=e[a];t(c,a,e)&&(s[n++]=c)}return s}},function(e,t){e.exports=function(){return[]}},function(e,t,a){var r=a(99),n=a(39),s=a(5),c=a(40),o=a(42),i=a(43),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var a=s(e),u=!a&&n(e),p=!a&&!u&&c(e),m=!a&&!u&&!p&&i(e),d=a||u||p||m,f=d?r(e.length,String):[],b=f.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||m&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||f.push(v);return f}},function(e,t){e.exports=function(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,a){var r=a(12),n=a(27),s=a(13),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&n(e.length)&&!!c[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,a){(function(e){var r=a(35),n=t&&!t.nodeType&&t,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,c=s&&s.exports===n&&r.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=o}).call(this,a(41)(e))},function(e,t,a){var r=a(106),n=a(107),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var a in Object(e))s.call(e,a)&&"constructor"!=a&&t.push(a);return t}},function(e,t){var a=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a)}},function(e,t,a){var r=a(108)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(a){return e(t(a))}}},function(e,t,a){var r=a(110),n=a(22),s=a(111),c=a(112),o=a(113),i=a(12),l=a(36),u=l(r),p=l(n),m=l(s),d=l(c),f=l(o),b=i;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=b(new n)||s&&"[object Promise]"!=b(s.resolve())||c&&"[object Set]"!=b(new c)||o&&"[object WeakMap]"!=b(new o))&&(b=function(e){var t=i(e),a="[object Object]"==t?e.constructor:void 0,r=a?l(a):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case m:return"[object Promise]";case d:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=b},function(e,t,a){var r=a(7)(a(4),"DataView");e.exports=r},function(e,t,a){var r=a(7)(a(4),"Promise");e.exports=r},function(e,t,a){var r=a(7)(a(4),"Set");e.exports=r},function(e,t,a){var r=a(7)(a(4),"WeakMap");e.exports=r},function(e,t,a){var r=a(44),n=a(26);e.exports=function(e){for(var t=n(e),a=t.length;a--;){var s=t[a],c=e[s];t[a]=[s,c,r(c)]}return t}},function(e,t,a){var r=a(37),n=a(116),s=a(122),c=a(29),o=a(44),i=a(45),l=a(19);e.exports=function(e,t){return c(e)&&o(t)?i(l(e),t):function(a){var c=n(a,e);return void 0===c&&c===t?s(a,e):r(t,c,3)}}},function(e,t,a){var r=a(46);e.exports=function(e,t,a){var n=null==e?void 0:r(e,t);return void 0===n?a:n}},function(e,t,a){var r=a(118),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,c=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,(function(e,a,r,n){t.push(r?n.replace(s,"$1"):a||e)})),t}));e.exports=c},function(e,t,a){var r=a(119);e.exports=function(e){var t=r(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}},function(e,t,a){var r=a(25);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],s=a.cache;if(s.has(n))return s.get(n);var c=e.apply(this,r);return a.cache=s.set(n,c)||s,c};return a.cache=new(n.Cache||r),a}n.Cache=r,e.exports=n},function(e,t,a){var r=a(121);e.exports=function(e){return null==e?"":r(e)}},function(e,t,a){var r=a(16),n=a(31),s=a(5),c=a(30),o=r?r.prototype:void 0,i=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(c(t))return i?i.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}},function(e,t,a){var r=a(123),n=a(124);e.exports=function(e,t){return null!=e&&n(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,a){var r=a(47),n=a(39),s=a(5),c=a(42),o=a(27),i=a(19);e.exports=function(e,t,a){for(var l=-1,u=(t=r(t,e)).length,p=!1;++l<u;){var m=i(t[l]);if(!(p=null!=e&&a(e,m)))break;e=e[m]}return p||++l!=u?p:!!(u=null==e?0:e.length)&&o(u)&&c(m,u)&&(s(e)||n(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,a){var r=a(127),n=a(128),s=a(29),c=a(19);e.exports=function(e){return s(e)?r(c(e)):n(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,a){var r=a(46);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,a){var r=a(130),n=a(28);e.exports=function(e,t){var a=-1,s=n(e)?Array(e.length):[];return r(e,(function(e,r,n){s[++a]=t(e,r,n)})),s}},function(e,t,a){var r=a(131),n=a(134)(r);e.exports=n},function(e,t,a){var r=a(132),n=a(26);e.exports=function(e,t){return e&&r(e,t,n)}},function(e,t,a){var r=a(133)();e.exports=r},function(e,t){e.exports=function(e){return function(t,a,r){for(var n=-1,s=Object(t),c=r(t),o=c.length;o--;){var i=c[e?o:++n];if(!1===a(s[i],i,s))break}return t}}},function(e,t,a){var r=a(28);e.exports=function(e,t){return function(a,n){if(null==a)return a;if(!r(a))return e(a,n);for(var s=a.length,c=t?s:-1,o=Object(a);(t?c--:++c<s)&&!1!==n(o[c],c,o););return a}}},function(e,t){!function(){e.exports=this.React}()},function(e,t,a){e.exports=a(137)()},function(e,t,a){"use strict";var r=a(138);function n(){}function s(){}s.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,s,c){if(c!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:n};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,a){var r,n;void 0===(n="function"==typeof(r=function(){function e(e,t){return function(a,r,n,s){a[e]?a[e](r,n,s):a[t]&&a[t]("on"+r,n)}}return{add:e("addEventListener","attachEvent"),remove:e("removeEventListener","detachEvent")}})?r.call(t,a,t,e):r)||(e.exports=n)},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r,n,s,c,o,i,l=0,u=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function k(e){return l=e,o=setTimeout(O,t),u?h(e):c}function j(e){var a=e-i;return void 0===i||a>=t||a<0||v&&e-l>=s}function O(){var e=d();if(j(e))return y(e);o=setTimeout(O,function(e){var a=t-(e-i);return v?m(a,s-(e-l)):a}(e))}function y(e){return o=void 0,g&&r?h(e):(r=n=void 0,c)}function E(){var e=d(),a=j(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return k(i);if(v)return o=setTimeout(O,t),h(i)}return void 0===o&&(o=setTimeout(O,t)),c}return t=b(t)||0,f(a)&&(u=!!a.leading,s=(v="maxWait"in a)?p(b(a.maxWait)||0,t):s,g="trailing"in a?!!a.trailing:g),E.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},E.flush=function(){return void 0===o?c:y(d())},E}}).call(this,a(23))},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e,t,a){var r,n,s,c,o,i,l=0,u=!1,f=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function k(e){return l=e,o=setTimeout(O,t),u?h(e):c}function j(e){var a=e-i;return void 0===i||a>=t||a<0||f&&e-l>=s}function O(){var e=d();if(j(e))return y(e);o=setTimeout(O,function(e){var a=t-(e-i);return f?m(a,s-(e-l)):a}(e))}function y(e){return o=void 0,g&&r?h(e):(r=n=void 0,c)}function E(){var e=d(),a=j(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return k(i);if(f)return o=setTimeout(O,t),h(i)}return void 0===o&&(o=setTimeout(O,t)),c}return t=v(t)||0,b(a)&&(u=!!a.leading,s=(f="maxWait"in a)?p(v(a.maxWait)||0,t):s,g="trailing"in a?!!a.trailing:g),E.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},E.flush=function(){return void 0===o?c:y(d())},E}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return b(a)&&(r="leading"in a?!!a.leading:r,n="trailing"in a?!!a.trailing:n),f(e,t,{leading:r,maxWait:t,trailing:n})}}).call(this,a(23))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},n=function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")};t.default=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(n(t)))return t;t=t.parentNode}return window}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a,r){if(function(e){return null===e.offsetParent}(t))return!1;var n=void 0,c=void 0,o=void 0,i=void 0;if(void 0===a||a===window)n=window.pageYOffset,o=window.pageXOffset,c=n+window.innerHeight,i=o+window.innerWidth;else{if(!e(a,window,r))return!1;var l=(0,s.default)(a);n=l.top,o=l.left,c=n+a.offsetHeight,i=o+a.offsetWidth}var u=(0,s.default)(t);return n<=u.top+t.offsetHeight+r.top&&c>=u.top-r.bottom&&o<=u.left+t.offsetWidth+r.left&&i>=u.left-r.right};var r,n=a(145),s=(r=n)&&r.__esModule?r:{default:r}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}},function(e,t,a){"use strict";a.r(t);var r=a(8),n=a.n(r),s=a(9),c=a.n(s),o=a(2),i=a.n(o),l=a(10),u=a.n(l),p=a(11),m=a.n(p),d=a(6),f=a.n(d),b=a(20),v=a.n(b),g=a(0),h=a(1),k=a.n(h),j=a(21),O=a.n(j);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var E=wp.i18n,_=E.__,S=(E.sprintf,wp.element),P=S.Fragment,w=S.Component,x=(S.render,S.PureComponent,wp.components),N=(x.Modal,x.Spinner,x.ButtonGroup),T=(x.Dropdown,x.Button),C=x.ExternalLink,z=(x.ToolbarGroup,x.MenuItem,x.Tooltip),M=function(e){u()(a,e);var t=y(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={colorPalette:e.props.colorPalette?e.props.colorPalette:"",fontPair:e.props.fontPair?e.props.fontPair:"",palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[]},e}return c()(a,[{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"render",value:function(){var e=this,t=this.props.item,a=!0,r=!1,n=!1;return Object(g.createElement)("div",{className:"kadence-starter-templates-preview theme-install-overlay wp-full-overlay expanded",style:{display:"block"}},Object(g.createElement)("div",{className:"wp-full-overlay-sidebar"},Object(g.createElement)("div",{className:"wp-full-overlay-header"},Object(g.createElement)("button",{className:"kst-close-focus-btn close-full-overlay",onClick:function(){return e.props.onChange({activeTemplate:"",colorPalette:"",fontPair:"",focusMode:!1})}})),Object(g.createElement)("div",{className:"wp-full-overlay-sidebar-content"},Object(g.createElement)("div",{className:"install-theme-info"},Object(g.createElement)("div",{className:"theme-info-wrap"},Object(g.createElement)("img",{className:"theme-screenshot",src:t.image,alt:t.name}),Object(g.createElement)("div",{className:"theme-info-title-wrap"},Object(g.createElement)("h3",{className:"theme-name"},t.name),Object(g.createElement)("div",{className:"theme-by"},t.categories.map((function(t){return e.capitalizeFirstLetter(t)})).join(", ")))),Object(g.createElement)("div",{className:"palette-title-wrap"},Object(g.createElement)("h2",{className:"palette-title"},_("Optional: Change Color Scheme","kadence-starter-templates")),Object(g.createElement)(T,{label:_("clear"),className:"kst-clear-palette",disabled:!this.state.colorPalette,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({colorPalette:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:""},"*")}})),Object(g.createElement)(N,{className:"kst-palette-group","aria-label":_("Select a Palette","kadence-starter-templates")},k()(this.state.palettes,(function(t){var a=t.palette,r=t.colors;return Object(g.createElement)(T,{className:"kst-palette-btn",isPrimary:a===e.state.colorPalette,"aria-pressed":a===e.state.colorPalette,onClick:function(){document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:a},"*"),e.setState({colorPalette:a})}},Object(g.createElement)("span",{className:"kst-palette-bg",style:{background:r[4]?r[4]:void 0}}),k()(r,(function(e,t){if(4!==t)return Object(g.createElement)("div",{key:t,style:{width:30,height:30,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(g.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(g.createElement)("p",{className:"desc-small"},_("*You can change this after import.","kadence-starter-templates")),Object(g.createElement)("div",{className:"font-title-wrap"},Object(g.createElement)("h2",{className:"font-title"},_("Optional: Change Font Family","kadence-starter-templates")),Object(g.createElement)(T,{label:_("clear"),className:"kst-clear-font",disabled:!this.state.fontPair,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({fontPair:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:""},"*")}})),Object(g.createElement)(N,{className:"kst-font-group","aria-label":_("Select a Font","kadence-starter-templates")},k()(this.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;return Object(g.createElement)(z,{text:n},Object(g.createElement)(T,{className:"kst-font-btn".concat(a===e.state.fontPair?" active":""),"aria-pressed":a===e.state.fontPair,onClick:function(){e.setState({fontPair:a}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:a},"*")}},Object(g.createElement)("img",{src:r,className:"font-pairing"})))}))),Object(g.createElement)("p",{className:"desc-small"},_("*You can change this after import.","kadence-starter-templates"))),Object(g.createElement)("div",{className:"kadence-starter-required-plugins"},Object(g.createElement)("h2",{className:"kst-required-title"},_("Required Plugins","kadence-starter-templates")),Object(g.createElement)("ul",{className:"kadence-required-wrap"},k()(t.plugins,(function(e){if(kadenceStarterParams.plugins[e])return"active"!==kadenceStarterParams.plugins[e].state&&(a=!1,"thirdparty"===kadenceStarterParams.plugins[e].src&&(r=!0),"bundle"===kadenceStarterParams.plugins[e].src&&(n=!0)),Object(g.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(g.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?_("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state))}))),!a&&Object(g.createElement)(P,null,(r||n)&&Object(g.createElement)("p",{className:"desc-small"},_("*Install Missing/Inactive Premium plugins to import.","kadence-starter-templates")),!r&&!n&&Object(g.createElement)("p",{className:"desc-small"},_("*Missing/Inactive plugins will be installed on import.","kadence-starter-templates"))),void 0!==t.pro&&t.pro&&!t.member&&Object(g.createElement)("div",{className:"notice inline notice-alt notice-warning kadence-pro-notice"},Object(g.createElement)("p",null,Object(g.createElement)("strong",null,"Kadence Pro Starter Site")),Object(g.createElement)("p",null,"To import this starter template you need to install Kadence Pro and Kadence Blocks Pro and activate your license using a ",Object(g.createElement)("strong",null,"Essential or Full Bundle license"),".")))),Object(g.createElement)("div",{class:"wp-full-overlay-footer"},void 0!==t.pro&&t.pro&&!t.member?Object(g.createElement)("div",{className:"kt-upgrade-notice"},Object(g.createElement)("h2",{className:"kst-import-options-title"},_("Kadence Bundle is required","kadence-starter-sites")," "),Object(g.createElement)(C,{className:"kst-upgrade button-hero button button-primary",href:"https://www.kadencewp.com/pricing/"},_("Get Pro Starter Site","kadence-starter-sites"))):Object(g.createElement)(P,null,Object(g.createElement)("h2",{className:"kst-import-options-title"},_("Import Options","kadence-starter-templates")),Object(g.createElement)("div",{class:"kadence-starter-templates-preview-actions"},Object(g.createElement)("button",{className:"kst-import-btn button-hero button",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isSelected:!1,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},_("Single Page","kadence-starter-templates")),Object(g.createElement)("button",{className:"kst-import-btn button-hero button button-primary",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isImporting:!0,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},_("Full Site","kadence-starter-templates")))))),Object(g.createElement)("div",{class:"wp-full-overlay-main"},Object(g.createElement)("iframe",{id:"kadence-starter-preview",src:t.url+"?cache=bust"})))}}]),a}(w);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var I=wp.i18n,D=I.__,L=(I.sprintf,wp.element),A=L.Fragment,H=L.Component,R=(L.render,L.PureComponent,wp.components),B=(R.Modal,R.Spinner,R.ButtonGroup,R.Dropdown,R.Icon,R.Button),q=R.ExternalLink,V=(R.ToolbarGroup,R.CheckboxControl),G=R.TextControl,W=(R.ToggleControl,R.MenuItem,R.Tooltip,R.PanelBody,function(e){u()(a,e);var t=F(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={email:kadenceStarterParams.user_email,privacy:!1,privacyError:!1},e}return c()(a,[{key:"render",value:function(){var e=this;return Object(g.createElement)("div",{className:"kt-subscribe-form-box"},Object(g.createElement)("h2",null,D("Subscribe and Import","kadence-starter-templates")),Object(g.createElement)("p",null,D("Subscribe to learn about new starter templates and features for Kadence.","kadence-blocks")),Object(g.createElement)(G,{type:"text",className:"kt-subscribe-email-input",label:D("Email:","kadence-starter-templates"),value:this.state.email,placeholder:D("example@example.com","kadence-starter-templates"),onChange:function(t){return e.setState({email:t})}}),this.props.emailError&&Object(g.createElement)("span",{className:"kb-subscribe-form-error"},D("Invalid Email, Please enter a valid email.","kadence-starter-templates")),Object(g.createElement)(V,{label:Object(g.createElement)(A,null,D("Accept","kadence-starter-templates")," ",Object(g.createElement)(q,{href:"https://www.kadencewp.com/privacy-policy/"},D("Privacy Policy","kadence-starter-templates"))),help:D("We do not spam, unsubscribe anytime.","kadence-starter-templates"),checked:this.state.privacy,onChange:function(t){return e.setState({privacy:t})}}),this.state.privacyError&&Object(g.createElement)("span",{className:"kb-subscribe-form-error"},D("Please Accept Privacy Policy","kadence-blocks")),Object(g.createElement)(B,{className:"kt-defaults-save",isPrimary:!0,onClick:function(){e.state.privacy?(e.setState({privacyError:!1}),e.props.onRun(e.state.email)):e.setState({privacyError:!0})}},D("Subscribe and Start Importing")))}}]),a}(H)),$=a(3),U=Object(g.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)($.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})),K=Object(g.createElement)($.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)($.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),J=Object(g.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)($.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Y=Object(g.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(g.createElement)($.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),X=Object(g.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)($.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}function Z(e){try{var t=JSON.parse(e);if(t&&"object"===v()(t))return t}catch(e){}return!1}var ee=wp.i18n,te=ee.__,ae=(ee.sprintf,wp.element),re=ae.Fragment,ne=ae.Component,se=ae.render,ce=(ae.PureComponent,wp.components),oe=ce.Modal,ie=ce.Spinner,le=(ce.ButtonGroup,ce.SelectControl,ce.DropdownMenu,ce.Dropdown),ue=ce.Icon,pe=ce.Button,me=ce.ExternalLink,de=(ce.ToolbarGroup,ce.CheckboxControl,ce.TextControl,ce.ToggleControl),fe=ce.MenuItem,be=ce.Tooltip,ve=ce.PanelBody,ge=Object(g.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(g.createElement)("path",{d:"M15.984 18v2.016H8.015V18h7.969zM11.016 7.969v8.016h1.969V7.969h3l-3.984-3.984-3.984 3.984h3z"})),he=Object(g.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(g.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"url(#_Linear1)"}),Object(g.createElement)("path",{fill:"#fff",d:"M50 50H66.003V130H50z"}),Object(g.createElement)("path",{fill:"#fff",d:"M82 50H130.011V66H82z"}),Object(g.createElement)("path",{fill:"#fff",d:"M82 82H130.011V98H82z"}),Object(g.createElement)("path",{fill:"#fff",d:"M82 114.046H130.011V130.046H82z"}),Object(g.createElement)("defs",null,Object(g.createElement)("linearGradient",{id:"_Linear1",x1:"0",x2:"1",y1:"0",y2:"0",gradientTransform:"rotate(-52.456 186.056 40.829) scale(178.658)",gradientUnits:"userSpaceOnUse"},Object(g.createElement)("stop",{offset:"0",stopColor:"#372b73"}),Object(g.createElement)("stop",{offset:"1",stopColor:"#e9335e"})))),ke=(Object(g.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(g.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"#93003c"}),Object(g.createElement)("path",{fill:"#ff5bd4",d:"M50 50H66.003V130H50z"}),Object(g.createElement)("path",{fill:"#ff5bd4",d:"M82 50H130.011V66H82z"}),Object(g.createElement)("path",{fill:"#ff5bd4",d:"M82 82H130.011V98H82z"}),Object(g.createElement)("path",{fill:"#ff5bd4",d:"M82 114.046H130.011V130.046H82z"})),Object(g.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 720 864",viewBox:"0 0 720 864",className:"gblogo"},Object(g.createElement)("g",null,Object(g.createElement)("path",{d:"M432.4 415.6c-2.5-1.7-5.9-1-7.6 1.5-9.9 14.9-30.9 15.7-32 15.7h-.5c-25.9 0-35.8 22.1-36.2 23-1.2 2.8.1 6 2.8 7.2.7.3 1.5.5 2.2.5 2.1 0 4.1-1.2 5-3.3.1-.2 6.9-15.4 24.4-16.4v28.3c-.7 6.1-3.6 10.9-8.7 14.5-5.3 3.7-12.4 5.6-21.1 5.6-10.4 0-18.9-3.6-25.2-10.7-6.4-7.1-9.6-17.2-9.6-30.2l.1-31.2c.5-11.5 3.6-20.6 9.5-27.1 6.4-7.1 14.8-10.7 25.2-10.7 8.7 0 15.8 1.9 21.1 5.6 5.3 3.7 8.3 8.8 8.8 15.4v.7c0 3.8 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9v-.7c-1-9.9-5.5-17.7-13.6-23.6-8.1-5.9-18.2-8.8-30.4-8.8-14.5 0-26.2 4.8-35.1 14.3-8.4 8.9-12.8 20.6-13.3 35 0 1-.1 2-.1 3l.1 28.1h-.1c0 15.9 4.5 28.6 13.4 38.1s20.6 14.3 35.1 14.3c12.2 0 22.3-2.9 30.4-8.8 7.4-5.4 11.8-12.5 13.3-21.3l.3-31.4c9.1-2.2 21.5-7.2 29.3-19 2-2.5 1.3-5.9-1.3-7.6zM528.7 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2zM117.8 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.7 6.2 6.2 6.2z",className:"st2"}),Object(g.createElement)("circle",{cx:"609.3",cy:"150.1",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"359.8",cy:"130.6",r:"6.2",className:"st2"}),Object(g.createElement)("path",{d:"M244.8 150.2h.3c23.3 0 33.7-14.6 41.6-28.2 2.6-4.5 12.2-19.5 25.8-23.4 16.8-4.9 34.7 2.9 41.7 18.2 1 2.2 3.2 3.5 5.4 3.6h.7c2.2-.1 4.4-1.4 5.4-3.6 7-15.3 24.9-23.1 41.7-18.2 13.6 4 23.2 18.9 25.8 23.4 7.9 13.7 18.3 28.2 41.9 28.2 14.2 0 31-10.6 35.7-30.9 3.9-16.8-3.3-32-19-39.7-3.1-1.5-6.8-.3-8.3 2.8-1.5 3.1-.3 6.8 2.8 8.3 14.9 7.4 13.6 20.5 12.4 25.8-2.4 10.4-11.6 21.4-23.7 21.4-15.5 0-22.9-7.8-31.2-22.1-4.1-7-15.5-24-33-29.1-19.1-5.6-39.3 1.1-50.9 15.8-11.6-14.7-31.8-21.4-50.9-15.8-17.5 5.1-28.9 22.1-33 29.1-8.3 14.3-15.7 22.1-30.9 22.1h-.2c-13.2-.1-21.6-9.3-24-18.4-1.2-4.3-3.7-19 13.1-29 2.9-1.7 3.9-5.5 2.1-8.5-1.8-2.9-5.5-3.9-8.5-2.1-19.3 11.5-22.3 29.7-18.7 42.9 4.4 16.3 18.9 27.3 35.9 27.4z",className:"st2"}),Object(g.createElement)("path",{d:"M360 734L360.1 734 360.1 734 360 734z",className:"st2"}),Object(g.createElement)("circle",{cx:"108.1",cy:"150.1",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"90.7",cy:"88",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"631.3",cy:"88",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"664.5",cy:"485.3",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"639.6",cy:"627.1",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"599.8",cy:"644.8",r:"6.2",className:"st2"}),Object(g.createElement)("path",{d:"M231.9 111.2c0 9.2 7.5 16.7 16.7 16.7s16.7-7.5 16.7-16.7-7.5-16.7-16.7-16.7c-9.2-.1-16.7 7.4-16.7 16.7zm16.7-4.4c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM473.6 127.9c9.2 0 16.7-7.5 16.7-16.7s-7.5-16.7-16.7-16.7-16.7 7.5-16.7 16.7 7.5 16.7 16.7 16.7zm0-21.1c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM376.7 121.6c-3.2 1.2-4.8 4.7-3.6 7.9 1.2 3.2 4.7 4.8 7.9 3.7 1-.4 25-8.4 43.4 20.2 1.2 1.8 3.2 2.8 5.2 2.8 1.1 0 2.3-.3 3.3-1 2.9-1.8 3.7-5.7 1.9-8.5-19.2-29.7-46.4-29.4-58.1-25.1zM343.3 121.6c-.9-.3-9.1-3.2-20.3-1.5-10.4 1.5-25.3 7.4-37.7 26.7-1.8 2.9-1 6.7 1.9 8.5 1 .7 2.2 1 3.3 1 2 0 4-1 5.2-2.8 18.3-28.6 42.3-20.6 43.4-20.2 3.2 1.2 6.7-.5 7.9-3.7 1.2-3.2-.5-6.8-3.7-8zM627.8 138.5l30.1-34.2v49.3c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V88c0-2.6-1.6-4.9-4-5.8-2.4-.9-5.1-.2-6.8 1.7l-40.9 46.5c-2.3 2.6-2 6.5.6 8.7 2.4 2.3 6.3 2 8.6-.6zM56.8 159.9c3.4 0 6.2-2.8 6.2-6.2v-49.3l30.1 34.2c2.3 2.6 6.2 2.8 8.7.6 2.6-2.3 2.8-6.2.6-8.7L61.5 83.9c-1.7-1.9-4.4-2.6-6.8-1.7-2.4.9-4 3.2-4 5.8v65.7c0 3.4 2.7 6.2 6.1 6.2zM493.4 166c-2.9-.2-5.6 1.8-6.3 4.6-.7 2.9.7 5.9 3.3 7.1 9.8 4.6 18.7 6.4 26.7 6.4 15.3 0 27.5-6.7 36-13.7 13.6-11.2 20.6-25.3 20.9-25.9 1.4-2.9.4-6.4-2.4-8-6.3-3.7-17.2-6-33.8 4.1-8.3 5.1-14.7 11.2-15.8 12.3-15.2 13.4-27.9 13.1-28.6 13.1zm36.9-3.9l.3-.3c4.7-4.7 18-15.6 28.4-16.1-3 4.3-7.5 10.1-13.6 15.2-9 7.4-18.6 11-28.8 10.8 4.2-2.2 8.9-5.4 13.7-9.6zM151.4 136.5c-2.8 1.6-3.8 5.1-2.4 8 .3.6 7.3 14.7 20.9 25.9 8.5 7 20.6 13.7 36 13.7 8.1 0 17-1.8 26.7-6.4 2.7-1.3 4-4.2 3.3-7.1-.7-2.9-3.3-4.8-6.3-4.7-.5 0-13.3.4-28.5-13-1.1-1.1-7.5-7.2-15.8-12.3-16.6-10-27.6-7.7-33.9-4.1zm41.4 25.6c4.7 4.2 9.4 7.3 13.7 9.6-21.6.2-35.9-16.3-42.4-26 10.4.5 23.7 11.4 28.4 16.1l.3.3z",className:"st2"}),Object(g.createElement)("path",{d:"M671.8 664.6c-6.2-5.2-13-8.2-19.3-9.9 2.4-1.8 4.7-3.9 6.7-6.2 15.3-18 15.4-44.5.2-61.7-2.3-2.6-6.2-2.8-8.7-.5-2.6 2.3-2.8 6.2-.5 8.7 11.1 12.6 10.9 32.1-.4 45.5-9.2 10.8-26.7 13.4-31.9 14-15.7 1.7-33.3 5.3-42.8 26.8-1.5 3.3-2.4 7-2.6 11-2.2-.7-4.6-1.1-7-1.1-12.5 0-22.7 10.2-22.7 22.7 0 8.6 4.8 16.1 11.9 19.9-2.1 1.9-4.1 4-5.9 6.4-21-28.3-54.6-46.1-91.6-46.1-5.3 0-10.6.4-15.7 1.1 30.4-9.3 58.7-23.8 84.5-43 33.3-24.9 61-57.4 80-93.9 20-38.4 30.1-79.9 30.1-123.1v-.8-.2-.3c-.2-35.1-8-66.7-19.1-93.9 4.1.8 8 1.1 11.5 1.1 25.9 0 37.3-17.8 38.5-19.9 5.6-9.4 6.5-20.8 3.3-31.1.1-.3.1-.7.1-1.1V176.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2V271c-10.5-9.1-25.7-10.1-32-10.1-12.2.1-19.8-1.8-25.4-11.4-4.7-8.1-2-16.5 2.7-21.3 5.9-6 14.3-6.8 22.5-2.3 3 1.6 6.8.6 8.4-2.4 1.6-3 .6-6.8-2.4-8.4-13-7.2-27.6-5.4-37.3 4.4-9.6 9.8-11.4 24.3-4.6 36.1 8.9 15.3 22.4 17.5 35.7 17.5h.5c4 0 16.9.6 24.3 7.6 9.6 9.1 12.1 23.4 5.8 34 0 0-.1.1-.1.2-.5.9-12.4 21.1-45.6 10.5-10-21.2-21.6-39.2-32.4-53.6l-4.9 3.7 4.9-3.8-2-2.6c-21.3-35.7 3.3-73.7 16.1-89.8l7.2-8.2c2.2-2.6 2-6.5-.6-8.7-2.5-2.1-6.1-2-8.4.3-.2.2-1.3 1.3-3 3.2-11.1 11.3-54.5 51.3-96.6 30.4l-1.2-.8-.6-.4c-37.7-20.3-74.9-32-110.4-35-4.6-10.5-10.7-18.5-18.4-18.5-7.8 0-13.9 8.1-18.6 18.8-49.7 2.2-111.5 34.3-114.1 35.6-42.3 21.3-85.9-18.9-97-30.2-1.7-1.9-2.9-3-3-3.2-2.3-2.3-5.9-2.4-8.4-.3-2.6 2.2-2.8 6.1-.6 8.7l7.7 8.7c4.5 5.6 10.2 13.7 15 23.4 12 24.3 12.2 46.4.7 65.8-14.3 17.8-25.9 36.5-34.8 56.2-33.5 10.9-45.5-9.5-46-10.4 0-.1-.1-.1-.1-.2-6.3-10.6-3.8-24.9 5.8-34 7.4-7 20.3-7.6 24.3-7.6h.1c13.4 0 27.2-2.1 36.1-17.5 6.8-11.8 5-26.4-4.6-36.1-9.7-9.9-24.3-11.6-37.3-4.4-3 1.6-4.1 5.4-2.4 8.4 1.6 3 5.4 4.1 8.4 2.4 8.3-4.5 16.7-3.7 22.5 2.3 4.7 4.8 7.3 13.2 2.7 21.3-5.5 9.5-13 11.4-25 11.4h-.4c-5.5 0-18.3.8-28.5 7.4v-90.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v104c-6.8 12.2-7.2 27.1-.2 39.1.7 1.3 5 8.5 14.6 13.9 5.5 3.1 13.4 6 23.9 6 3.8 0 8-.4 12.5-1.3-10.8 29-16.2 60.2-16.4 94.2v1.1c0 61.4 21.6 121.7 60.8 169.8 34.7 42.6 81.9 74.2 134.2 90.3-5.5-.8-11.1-1.2-16.7-1.2-36.7 0-70 17.5-91 45.4-1.7-2.2-3.6-4.3-5.7-6.1 6.6-4 11.1-11.2 11.1-19.5 0-12.5-10.2-22.7-22.7-22.7-2.3 0-4.5.4-6.6 1-.3-3.9-1.2-7.6-2.6-10.9-9.6-21.5-27.1-25.1-42.8-26.8-5.2-.6-22.7-3.2-31.9-14-11.6-13.1-11.8-32.6-.7-45.2 2.3-2.6 2-6.5-.5-8.7-2.6-2.3-6.5-2-8.7.5-15.1 17.2-15 43.7.2 61.7 2 2.4 4.3 4.4 6.7 6.2-6.3 1.7-13.1 4.8-19.3 9.9-14.7 12.1-22.2 32.3-22.4 59.8-.5 2.5.6 5.1 2.8 6.5 1 .6 2.1.9 3.2.9.4 0 .9-.1 1.3-.2h.1c.2 0 .3-.1.5-.2.3-.1.7-.2 1-.4.1 0 .1-.1.2-.1 1-.6 1.9-1.4 2.5-2.4 2.4-3.1 12.3-7 20.5-8.7 32.1-7 38.8-28.7 37.8-39.1-.3-3.4-3.3-5.9-6.7-5.6-3.4.3-5.9 3.3-5.6 6.7 0 .1.1 1.9-.5 4.6-1.5 6.2-7 16.9-27.6 21.4h-.2c-2.4.5-9.6 2.2-16.3 5.3 1.8-17.8 7.5-30.8 17.2-38.9 14.9-12.4 34.6-8.9 34.8-8.8.7.1 1.3.1 1.9 0 3.3.7 6.1 1.1 8.2 1.3 16.5 1.8 26.6 5.4 32.9 19.5 4.9 11.1-1.4 23.9-9.9 30.3-4.3 3.3-15.8 9.8-28.7-.8-2.6-2.2-6.5-1.8-8.7.8-2.2 2.6-1.8 6.5.8 8.7 5.8 4.8 12.3 7.6 19 8.4-8.6 7-14.4 15.8-17 20.4-8.4 14.5-15.2 22.3-26.5 22.4V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v50.2c0 2.5 1.5 4.6 3.6 5.6 1.1.8 2.4 1.4 3.8 1.4h144c2.2 0 4-1.1 5.2-2.8.8-.8 1.5-1.8 1.8-3 5.7-22.1 25.6-37.5 48.4-37.5 20.4 0 38.5 12.4 46.2 30.9h-13.2c-5.4-13.3-18.4-22.2-33.1-22.2-16.1 0-30.3 10.9-34.6 26.4-.9 3.3 1.1 6.7 4.3 7.6 3.3.9 6.7-1.1 7.6-4.3 2.8-10.2 12.1-17.3 22.6-17.3 7.8 0 14.8 3.8 19.1 9.8h-3.6c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h12.5c.2 0 .5.1.7.1.3 0 .6 0 .8-.1h24.8c3.4 0 6.2-2.8 6.2-6.2 0-.3 0-.6-.1-.9.1-.8.1-1.7-.1-2.6-7.3-27.1-32.1-46-60.2-46-27.2 0-51.1 17.6-59.4 43.3h-32.3c2.6-8.3 6.1-16 10.5-23.2.3-.4.5-.8.8-1.2 18.3-28.7 50.3-47.1 85.8-47.1 21 0 41.2 6.4 58.3 18.4.5.3 1 .6 1.5.7 2.6 3.1 5.2 6.4 7.7 9.8.6.8 1.1 1.6 1.7 2.4-.6 12.7 6.3 26 20.6 39.6.5 1.5 1 2.8 1.3 3.8v1.3c0 3.4 2.8 6.2 6.2 6.2 2.9 0 5.2-1.9 5.9-4.6 0-.1.9-3.1 2.7-8.1 12.9-12.6 19.3-24.9 19.2-36.8.8-1.2 1.7-2.5 2.6-3.7 2.8-3.8 5.7-7.5 8.7-11 17-11.8 36.9-18 57.7-18 44.8 0 84 29.2 97 71.5h-32.3c-8.2-25.7-32.1-43.3-59.4-43.3-28.1 0-52.8 18.9-60.2 46-.3 1-.3 2 0 3v.5c0 3.4 2.8 6.2 6.2 6.2h54.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-19.7c4.3-6 11.3-9.8 19.1-9.8 10.7 0 20 7.2 22.7 17.6.7 2.8 3.2 4.6 6 4.6.5 0 1-.1 1.5-.2 3.3-.8 5.3-4.2 4.5-7.5-4.1-15.8-18.3-26.9-34.7-26.9-14.6 0-27.6 8.9-33.1 22.2h-12.5c7.6-18.5 25.8-30.9 46.2-30.9 22.8 0 42.7 15.4 48.4 37.5.1.5.4 1 .6 1.5.8 2.5 3.1 4.3 5.9 4.3H664c3.4 0 6.2-2.8 6.2-6.2v-.4-1.6c.1-.6.1-1.2.1-1.8 0-.1 0-.2-.1-.3V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v42c-10.4-.8-16.9-8.5-24.9-22.3-2.6-4.4-8-12.7-16-19.5 5.5-1.2 10.8-3.8 15.7-7.9 2.6-2.2 3-6.1.8-8.7-2.2-2.6-6.1-3-8.7-.8-12.8 10.6-24.3 4.1-28.7.8-8.5-6.4-14.8-19.3-9.9-30.3 6.3-14.1 16.4-17.8 32.9-19.5 2.1-.2 4.9-.6 8.2-1.3.6.1 1.3.1 2 0 .2 0 19.7-3.6 34.7 8.8 9.8 8.1 15.6 21.1 17.3 39-6.8-3.2-14.1-4.9-16.4-5.4h-.2c-20.5-4.5-26.1-15.1-27.6-21.3-.6-2.6-.6-4.4-.5-4.6.3-3.4-2.2-6.4-5.6-6.7-3.4-.3-6.4 2.2-6.7 5.6-1 10.5 5.7 32.1 37.9 39.1 8.3 1.8 18.8 5.9 20.7 9 0 0 0 .1.1.1.3.4.6.8.9 1.1.1.1.2.1.3.2.3.2.6.5.9.6.1.1.3.2.4.2.3.2.6.3.9.4.1 0 .3.1.4.1.4.1.9.2 1.4.2.4 0 .7 0 1.1-.1.1 0 .2 0 .3-.1.3-.1.6-.2 1-.3h.1c.3-.1.5-.3.8-.4l.1-.1c.2-.1.4-.3.5-.4.1-.1.3-.2.4-.4l.4-.4c.1-.2.3-.3.4-.5.1-.2.2-.3.3-.5.1-.2.2-.3.3-.5.1-.2.1-.4.2-.6.1-.2.1-.4.2-.6 0-.2.1-.4.1-.5 0-.2.1-.4.1-.7v-.1c-.1-28.3-7.7-48.8-22.6-61.1zM152.9 777.7H87.8c5.5-5.6 9.4-12.3 12.4-17.5 2.6-4.5 12.2-19.5 25.8-23.4 16-4.7 31 .8 38.4 13.5-4.9 8.5-8.8 17.7-11.5 27.4zm1.7-53.7c-5.7 0-10.3-4.6-10.3-10.3 0-5.7 4.6-10.3 10.3-10.3s10.3 4.6 10.3 10.3c0 5.7-4.7 10.3-10.3 10.3zm366.6-78.1l.9 1.1-.9-1.1zm.2-6.2c-58.4-6.8-100.6 18.3-125.8 40.5-10.9 9.6-19.5 19.5-26 27.9-1.2-.8-2.3-1.6-3.3-2.1v-17.6c47.3-47.5 94.3-61.7 125.5-65.2 20.7-2.3 37.4-.4 47.4 1.5-5.7 5.3-11.6 10.3-17.8 15zm73.3-87.2c-6 11.5-12.9 22.5-20.5 33.1-7.9-2.5-17.8-4.8-29.7-5.9 26.5-33.6 43.3-73.7 48.7-116 8.6-1 20.5-4.7 29.6-10.6-2.4 34.7-11.8 68.1-28.1 99.4zm-42.1-111.6l7.2-.3c2.4 10.7 10.5 19.3 21.1 22.2-5.6 42.8-23.4 83.2-51.8 116.2-13.7 0-29.6 1.6-47.6 5.5 42-34.2 69.4-85.7 71.1-143.6zm-117.5 158c-4 1.6-6.8 2.9-8.2 3.5-16.6 6.6-34.4 10.9-53 12.3l165.9-165.9c-5 66.8-46.6 123.4-104.7 150.1zm188.3-164.7c-.2 5.6-15.5 14.7-29 16.9-1.9.3-3.8.5-5.6.5-2.4 0-4.7-.5-6.8-1.4-6.3-2.7-10.7-8.9-10.7-16.1 0-7.2 4.4-13.4 10.7-16.1 2.1-.9 4.4-1.4 6.8-1.4 1.8 0 3.7.2 5.6.5 13.5 2.2 28.7 11.3 29 16.8v.3zM565.5 276l2.6 3.5c22.7 30.3 49.3 77.2 54.4 135.6-9-5.8-20.8-9.5-29.3-10.5-6.4-50.6-28.9-96.3-62.2-131.6 1.4-2.9 2.2-6.2 2.2-9.6 0-4.6-1.4-8.9-3.7-12.4l28.4-32.4c-5.4 20.6-2.8 40.1 7.6 57.4zm-82.9-70.1l1.3.9.7.4c9.9 5 20.5 7.5 31.5 7.5 11.6 0 23.7-2.8 35.9-8.4l-32 36.5c-2.9-1.4-6.1-2.1-9.6-2.1-4.5 0-8.6 1.3-12.1 3.5-31.5-23-68.8-38.3-109.4-43.3-1-7.3-3-17.7-6-27.9 32.1 3.6 65.6 14.6 99.7 32.9zm38.2 57.5c0 4.5-3 8.4-7.1 9.8-1 .3-2.1.5-3.2.5h-1c-4.6-.4-8.3-3.9-9.1-8.3-.1-.6-.2-1.3-.2-1.9 0-.7.1-1.3.2-2 .9-4.5 4.7-8 9.4-8.3H511.1c4.6.3 8.5 3.6 9.5 8 .1.6.2 1.1.2 1.7-.1.1 0 .3 0 .5zm-131.4-49.9c37.2 4.9 71.6 19.1 100.7 40.1-1.5 3-2.3 6.3-2.3 9.9 0 4.5 1.3 8.6 3.6 12.2l-49.8 56.8c-2.3 2.6-2 6.5.6 8.7 1.2 1 2.6 1.5 4.1 1.5 1.7 0 3.4-.7 4.7-2.1l49.7-56.7c3 1.5 6.3 2.3 9.9 2.3 4.6 0 8.8-1.4 12.3-3.7 31 33.2 51.9 75.8 58.1 123-10.7 3-19 11.8-21.2 22.8l-7.1.3c-1.5-45.7-19.2-89.3-50.1-123.2-2.3-2.5-6.2-2.7-8.7-.4-2.5 2.3-2.7 6.2-.4 8.7 27.2 29.8 43.4 67.6 46.5 107.6L473.5 355c-2.4-2.4-6.3-2.4-8.7 0-2.4 2.4-2.4 6.3 0 8.7l71.4 71.4-176 176-176-176 70.8-70.8c2.4-2.4 2.4-6.3 0-8.7-2.4-2.4-6.3-2.4-8.7 0l-65.7 65.7c3.5-45.5 23.9-86.4 55-116.2l31 35.4c1.2 1.4 2.9 2.1 4.7 2.1 1.4 0 2.9-.5 4.1-1.5 2.6-2.3 2.8-6.2.6-8.7l-31.1-35.5c28-23.4 63.1-38.5 101.6-41.4l-52.8 52.3c-2.4 2.4-2.4 6.3 0 8.7 1.2 1.2 2.8 1.8 4.4 1.8 1.6 0 3.1-.6 4.4-1.8l58-57.4 56.3 56.3c2.4 2.4 6.3 2.4 8.7 0 2.4-2.4 2.4-6.3 0-8.7l-51.2-51.2c31.7 2.4 61.9 13 88.2 31.1 2.8 1.9 6.7 1.2 8.6-1.6 1.9-2.8 1.2-6.7-1.6-8.6-30.4-20.9-65.8-32.5-102.8-33.6v-4.4c11.6-2.8 20.9-12.7 22.7-24.9zm-180.7 74.3c3.5 0 6.8-.8 9.7-2.2l8.9 10.2c-35.3 33.7-57.8 80.6-59.6 132.7l-5-.3c-2.4-11.7-11.5-20.9-23.2-23.3 6.1-46.3 26.5-88.1 56.5-120.9 3.7 2.4 8 3.8 12.7 3.8zm-10.3-22.6c0-.5 0-.9.1-1.4 0-.3.1-.5.1-.8.9-4.4 4.7-7.8 9.3-8.1h.7c4.7 0 8.7 3.2 9.9 7.6.2.9.4 1.8.4 2.7 0 .7-.1 1.4-.2 2.1-.9 4.4-4.7 7.8-9.3 8.1h-.8c-1.3 0-2.6-.3-3.7-.7-3.7-1.4-6.5-5.2-6.5-9.5zm-35.8 175.4l5.1.3c1.7 58 29.2 109.6 71.3 143.8-18.1-4-34-5.6-47.8-5.7-28.2-32.9-46.1-73.1-51.7-115.7 11.5-2.4 20.6-11.3 23.1-22.7zm17.9 8.2l165.9 165.9C258 608 187.2 537.2 180.5 448.8zm162.7-249c2.7-18.7 11.9-43.7 16.7-45.7 5.5 2.1 14 28 16.6 45.6.5 3.5.8 6.7.8 9.3 0 1.1-.1 2.1-.3 3.1-1.5 8.1-8.6 14.3-17.2 14.3s-15.7-6.2-17.2-14.3c-.2-1-.3-2.1-.3-3.1.1-2.7.4-5.8.9-9.2zm10.8 38.5v4.3c-44.6 1.4-85.4 18.1-117.4 44.9l-8.8-10.1c2.3-3.5 3.7-7.8 3.7-12.3 0-3.8-1-7.4-2.6-10.5 29.3-21.5 64-36 101.7-41.1 1.7 12.4 11.2 22.4 23.4 24.8zm-152.7-23.6c11 0 21.6-2.5 31.6-7.5.6-.3 57.7-30 103.9-34-3 10.1-5 20.6-6 27.8-41.1 5.1-79 21-110.7 44.6-3.4-2-7.2-3.1-11.4-3.1-3.5 0-6.8.8-9.7 2.2l-33.6-38.3c12.3 5.5 24.3 8.3 35.9 8.3zm-49.9 61.9l.5-.7c10.4-17.2 13-36.8 7.8-57.4l30 34.3c-2.3 3.5-3.7 7.8-3.7 12.3 0 3.3.7 6.4 2 9.3-32.7 35.2-54.7 80.4-61 130.4-8.9 1.4-20.7 5.2-29.6 10.9 3.5-52.8 21.2-98.5 54-139.1zM96.9 434c.2-5.8 16.3-13.8 29-16.4 2.8-.6 5.4-.9 7.6-.9 1.7 0 3.2.2 4.8.7 7.3 2.1 12.7 8.8 12.7 16.8s-5.4 14.7-12.7 16.8c-1.5.4-3.1.7-4.8.7-2.3 0-4.9-.3-7.6-.9-12.7-2.7-28.8-10.7-29-16.5v-.3zm.6 18.4c8.9 5.8 20.8 9.6 29.6 11 5.3 42.4 22.1 82.6 48.7 116.2-11.9 1.1-21.8 3.3-29.8 5.8-28.7-39.4-45.3-84.9-48.5-133zM154.9 597c-.3-.4-.6-.7-.9-1.1 30.1-8.3 63-3.9 86.1 1.6 27.9 6.7 48.3 16.4 48.5 16.5l.1-.2c22.1 8.8 46.2 13.7 71.4 13.7 25.1 0 49.1-4.8 71.1-13.6l.6-.3c2.6-1.1 5.3-2.2 7.8-3.4 8.5-3.5 22.8-8.7 40-12.8 23.3-5.6 56.3-10 86.4-1.6-5.2 6.4-10.6 12.5-16.4 18.4-8.4-2.3-29.8-6.7-58.7-3.6-31.4 3.4-77.6 16.8-124.8 60.4v-10.9c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v10.3c-46.9-43.1-92.9-56.4-124.1-59.8-29.6-3.2-51.3 1.6-59.2 3.8-5.2-5.4-10.5-11.3-15.5-17.4zm26.3 27.8c10-2 26.9-4 48-1.6 55.5 6.2 98.1 37.9 124.8 64.5v18.1c-.9.5-1.9 1.1-3 1.9-6.5-8.3-15-18-25.7-27.4-25.2-22.3-67.6-47.5-126.2-40.5v.1c-6.2-4.8-12.2-9.8-17.9-15.1zm155.3 98c-11.7-15-24.5-26.3-37.3-34.8l.1-.3c-.3-.1-.6-.2-.9-.2-21.3-13.9-42.7-20-59.9-22.5-8.1-4.2-16.1-8.9-23.8-14 37.7-1.1 71.9 11.7 102.1 38.2 10.4 9.1 18.6 18.5 24.8 26.6-1.9 2.1-3.6 4.4-5.1 7zm29.9 37.5c-1.5 1.8-3.1 3.6-4.9 5.4-.4.4-.9.9-1.4 1.3l-.1.1-.1.1v-.2c-.2-.2-.5-.4-.7-.7-2-1.9-3.7-3.8-5.3-5.7-7.3-8.7-10.5-16.8-9.4-24.2.1-.6.2-1.2.4-1.8.8-3.2 2.3-6 4.1-8.4 1.5-2 3.2-3.7 4.9-5.2 1.5-1.3 3-2.4 4.3-3.3.6-.4 1.1-.7 1.6-1 0 0 .1 0 .1-.1h.1c.7.4 1.4.9 2.3 1.5 1.2.8 2.6 1.9 4 3.1 1.8 1.6 3.6 3.5 5.1 5.6 1.8 2.6 3.3 5.5 3.9 8.8 0 .2.1.5.2.7 1.1 7.3-2 15.3-9.1 24zm24.4-45.1c-.2.2-.4.4-.5.6-2.3 2.6-4.4 5.2-6.3 7.7-1.5-2.6-3.2-5-5-7.1 6.2-8.1 14.6-17.8 25.2-27.1 30-26.4 64.1-39.2 101.5-38.3-7.8 5.1-15.8 9.9-24 14.1-42.8 6.5-72.1 28.7-90.9 50.1zm174.5-11.8c5.7 0 10.3 4.6 10.3 10.3 0 5.7-4.6 10.3-10.3 10.3s-10.3-4.6-10.3-10.3c0-5.6 4.6-10.3 10.3-10.3zm31.2 32.1c13.6 4 23.2 18.9 25.8 23.4 3.2 5.6 7.5 13 13.8 18.8H567c-2.6-9.4-6.3-18.3-11-26.5 7.6-13.6 24.6-20.4 40.5-15.7z",className:"st2"}),Object(g.createElement)("path",{d:"M69.6 301.1c0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4c0-10.1-8.2-18.4-18.4-18.4s-18.4 8.3-18.4 18.4zm24.4 0c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6 6 2.7 6 6zM648.7 301.1c0-10.1-8.2-18.4-18.4-18.4-10.1 0-18.4 8.2-18.4 18.4 0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4zm-24.4 0c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6c-3.3.1-6-2.6-6-6zM666.4 346.9c-2.3-.9-5-.4-6.8 1.4-8.1 8.3-21.4 8-21.6 8h-.2c-3.3 0-6 2.6-6.2 5.9-.1 3.4 2.5 6.3 5.9 6.4.6 0 10.4.3 20.4-4.3v100.9c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V352.6c-.1-2.5-1.6-4.8-3.9-5.7zM55.7 471.4c3.4 0 6.2-2.8 6.2-6.2V364.3c10 4.6 19.8 4.3 20.4 4.3 3.4-.1 6.1-3 5.9-6.4-.1-3.4-3-6.1-6.4-5.9-.1 0-13.5.3-21.6-8-1.8-1.8-4.4-2.3-6.8-1.4-2.3.9-3.8 3.2-3.8 5.7v112.7c-.1 3.4 2.7 6.1 6.1 6.1zM671.3 574.3c0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h40c3.4 0 6.2-2.7 6.2-6.2zM629.8 598c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-15.4c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.4zM644.8 609.4c0-3.4-2.8-6.2-6.2-6.2h-38.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.7 6.2-6.2zM620.6 627.1c0-3.4-2.8-6.2-6.2-6.2h-29.9c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2zM565.1 638.6c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-17zM665.1 532.8h-22.3c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h22.3c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 550.5H634c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h31.1c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 497.5h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM665.1 515.2h-15.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.2c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2z",className:"st2"}),Object(g.createElement)("circle",{cx:"55.5",cy:"485.6",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"80.5",cy:"627.3",r:"6.2",className:"st2"}),Object(g.createElement)("circle",{cx:"120.3",cy:"645",r:"6.2",className:"st2"}),Object(g.createElement)("path",{d:"M54.9 580.7h40c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM105.6 585.9H90.2c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h15.4c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM119.6 603.5H81.4c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.8 6.2-6.2 0-3.5-2.8-6.2-6.2-6.2zM135.5 621.1h-29.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM131.7 645c0 3.4 2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-17c-3.4 0-6.2 2.8-6.2 6.2zM54.9 545.4h22.3c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 563.1H86c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 510.1h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 527.7h15.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM360 767.1c.1-.1 0-.1 0-.2v.2zM641.2 202.7c.1 0 .1 0 0 0 2.8 0 5.3-1.9 6-4.7 2.2-8.8 1.3-16.3-2.9-22.5-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.4 9 19 9.3 20.2 9.4zm-7-20.2c1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6-1.6-2-2.4-4.6-2.4-7.9 2 1 4.2 2.6 5.7 4.8zM601 113.3c-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.2 9 18.8 9.3 20.1 9.3 2.8 0 5.3-1.9 6-4.7 2.3-8.6 1.4-16.2-2.8-22.4zm-13.5 10.1c-1.6-2-2.4-4.6-2.4-7.9 2.1 1 4.3 2.6 5.7 4.8 1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6zM97.3 163.4c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.6-3.2-3.6-5.3-6.8-4.9zm-6.7 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.8 5.9-2.3 7.9zM139.7 101.2c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.7-3.2-3.6-5.3-6.8-4.9zm-6.8 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.7 5.9-2.3 7.9zM555.1 392c.4 3.2 3 5.5 6.1 5.5h.7c3.4-.4 5.8-3.5 5.4-6.9-6.2-54-43.1-92.2-44.7-93.8-2.4-2.4-6.3-2.5-8.7-.1-2.4 2.4-2.5 6.3-.1 8.7.4.4 35.6 36.9 41.3 86.6zM159.1 397.4h.7c3.1 0 5.8-2.3 6.1-5.5 5.7-49.7 40.9-86.2 41.2-86.5 2.4-2.4 2.3-6.4-.1-8.7-2.4-2.4-6.4-2.4-8.7.1-1.6 1.6-38.4 39.8-44.7 93.8-.3 3.4 2.1 6.4 5.5 6.8z",className:"st2"})))),je=function(e){u()(a,e);var t=Q(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).runAjax=e.runAjax.bind(i()(e)),e.runPluginInstall=e.runPluginInstall.bind(i()(e)),e.runPluginInstallSingle=e.runPluginInstallSingle.bind(i()(e)),e.runSubscribe=e.runSubscribe.bind(i()(e)),e.runSubscribeSingle=e.runSubscribeSingle.bind(i()(e)),e.loadTemplateData=e.loadTemplateData.bind(i()(e)),e.reloadTemplateData=e.reloadTemplateData.bind(i()(e)),e.loadPluginData=e.loadPluginData.bind(i()(e)),e.focusMode=e.focusMode.bind(i()(e)),e.fullFocusMode=e.fullFocusMode.bind(i()(e)),e.jumpToImport=e.jumpToImport.bind(i()(e)),e.selectedMode=e.selectedMode.bind(i()(e)),e.selectedFullMode=e.selectedFullMode.bind(i()(e)),e.backToDash=e.backToDash.bind(i()(e)),e.saveConfig=e.saveConfig.bind(i()(e)),e.state={category:"all",level:"all",activeTemplate:"",colorPalette:"",fontPair:"",search:null,isFetching:!1,isImporting:!1,isSelected:!1,response:"",isPageSelected:!1,starterSettings:kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{},selectedPage:"home",progress:"",focusMode:!1,finished:!1,overrideColors:!1,overrideFonts:!1,isOpenCheckColor:!1,isOpenCheckFont:!1,isOpenCheckPast:!1,removePast:!1,errorTemplates:!1,templates:kadenceStarterParams.templates?kadenceStarterParams.templates:[],etemplates:kadenceStarterParams.etemplates?kadenceStarterParams.etemplates:[],activeTemplates:!1,palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[],logo:kadenceStarterParams.logo?kadenceStarterParams.logo:"",hasContent:!!kadenceStarterParams.has_content&&kadenceStarterParams.has_content,hasPastContent:!!kadenceStarterParams.has_previous&&kadenceStarterParams.has_previous,isSaving:!1,isLoadingPlugins:!1,activePlugins:!1,showForm:!0,templatePlugins:"",isSubscribed:!!kadenceStarterParams.subscribed,email:kadenceStarterParams.user_email,privacy:!1,emailError:!1,privacyError:!1,settingOpen:!1,installContent:!0,installCustomizer:!0,installWidgets:!0},e}return c()(a,[{key:"componentDidMount",value:function(){var e=this;kadenceStarterParams.openBuilder||kadenceStarterParams.ctemplates||wp.api.loadPromise.then((function(){e.saveConfig("builderType","blocks")}))}},{key:"saveConfig",value:function(e,t){var a=this;this.setState({isSaving:!0});var r=kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{};(r[e]||(r[e]=""),r[e]=t,this.setState({starterSettings:r}),wp.api.models.Settings)&&new wp.api.models.Settings({kadence_starter_templates_config:JSON.stringify(r)}).save().then((function(e){a.setState({starterSettings:r,isSaving:!1}),kadenceStarterParams.starterSettings=JSON.stringify(r)}))}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"focusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!1,activePlugins:!1})}},{key:"fullFocusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!0,activePlugins:!1})}},{key:"jumpToImport",value:function(e){this.setState({isImporting:!0,activeTemplate:e,focusMode:!0,isSelected:!0,fontPair:"",colorPalette:"",activePlugins:!1})}},{key:"selectedFullMode",value:function(){this.setState({isSelected:!0})}},{key:"selectedMode",value:function(e){this.setState({selectedPage:e,isPageSelected:!0,isImporting:!0})}},{key:"backToDash",value:function(){this.setState({isFetching:!1,activeTemplate:"",activePlugins:!1,overrideColors:!1,overrideFonts:!1,colorPalette:"",fontPair:"",focusMode:!1,finished:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",selectedPage:"home"})}},{key:"reloadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_reload_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=Z(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_get_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=Z(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadPluginData",value:function(e,t){this.setState({isLoadingPlugins:!0});var a=new FormData;a.append("action","kadence_check_plugin_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){e&&(void 0!==e.success?r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}):"object"===v()(e)&&null!==e?r.setState({templatePlugins:e,activePlugins:!0,isLoadingPlugins:!1}):r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}))})).fail((function(e){console.log(e),r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1})}))}},{key:"runPluginInstallSingle",value:function(e,t,a){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var r=new FormData;r.append("action","kadence_import_install_plugins"),r.append("security",kadenceStarterParams.ajax_nonce),r.append("selected",e),r.append("builder",a),r.append("page_id",t),this.runPageAjax(r)}},{key:"runSubscribeSingle",value:function(e,t){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_import_subscribe"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("email",e),a.append("selected",t),this.runPageAjax(a)}},{key:"runRemovePast",value:function(e,t){this.setState({progress:"remove",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_remove_past_import_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runPluginInstall",value:function(e,t){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_import_install_plugins"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runSubscribe",value:function(e,t){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_import_subscribe"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("email",e),a.append("selected",t),this.runAjax(a)}},{key:"runPageAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runPageAjax(e);else if(void 0!==a.status&&"subscribeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),t.runPageAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){var s;t.setState({progress:"content"}),(s=new FormData).append("action","kadence_import_single_data"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),s.append("override_colors",t.state.overrideColors),s.append("override_fonts",t.state.overrideFonts),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair),t.runPageAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):"emailDomainPostError"===a||"emailDomainPreError"===a?t.setState({isFetching:!1,progress:"",showForm:!0,emailError:!0}):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})})).fail((function(e){t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"runAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)"contentNew"===t.state.progress?t.state.progress="contentNewer":"contentNewer"===t.state.progress?t.state.progress="contentNewest":t.state.progress="contentNew",t.runAjax(e);else if(void 0!==a.status&&"customizerAJAX"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"afterAllImportAJAX"===a.status){t.setState({progress:"widgets"}),(s=new FormData).append("action","kadence_after_import_data"),s.append("security",kadenceStarterParams.ajax_nonce),t.runAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installContent?(t.setState({progress:"content"}),s.append("action","kadence_import_demo_data"),s.append("builder",t.state.starterSettings.builderType),s.append("selected",t.state.activeTemplate),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair)):t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"removeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else if(void 0!==a.status&&"subscribeSuccess"===a.status){var s=new FormData;t.state.removePast?(this.setState({progress:"remove"}),s.append("action","kadence_remove_past_import_data")):(t.setState({progress:"plugins"}),s.append("action","kadence_import_install_plugins")),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):void 0===a.success||a.success?"emailDomainPostError"===a||"emailDomainPreError"===a?t.setState({isFetching:!1,progress:"",showForm:!0,emailError:!0}):(console.log(a),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+te("Failed Import. Something went wrong internally. Please try again.","kadence-starter-templates")+"</p></div>"})})).fail((function(e){console.log(e),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"render",value:function(){var e=this,t=te("Gutenberg","kadence-starter-templates"),a=ke;"elementor"===this.state.starterSettings.builderType&&(t=te("Elementor","kadence-starter-templates"),a=he),"custom"===this.state.starterSettings.builderType&&(t=kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:te("Pro Designs","kadence-starter-templates"),a=kadenceStarterParams.custom_icon?Object(g.createElement)("img",{className:"components-menu-items__item-icon custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ge);var r=!(!this.state.isSaving&&!1!==this.state.activeTemplates&&!this.state.errorTemplates),n=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1;return Object(g.createElement)("div",{className:"kst-grid-single-site"},Object(g.createElement)("div",{className:"kst-import-selection-item"},Object(g.createElement)("div",{className:"kst-import-selection"},Object(g.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(g.createElement)("div",{className:"kst-import-selection-options"},Object(g.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(g.createElement)("div",{className:"kst-import-selection-title"},Object(g.createElement)("h2",null,te("Template:","kadence-starter-templates")," ",Object(g.createElement)("span",null,t.name),Object(g.createElement)("br",null)," ",te("Selected Page:","kadence-starter-templates")," ",Object(g.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(g.createElement)(ve,{title:te("Advanced Settings","kadence-blocks"),initialOpen:e.state.settingOpen,onToggle:function(t){return e.state.settingOpen?e.setState({settingOpen:!1}):e.setState({settingOpen:!0})}},Object(g.createElement)("div",{className:"kst-import-grid-title"},Object(g.createElement)("h2",null,te("Page Template Plugins","kadence-starter-templates"))),e.state.isLoadingPlugins&&Object(g.createElement)(ie,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(g.createElement)(re,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(g.createElement)(re,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(g.createElement)("ul",{className:"kadence-required-wrap"},k()(e.state.templatePlugins,(function(e){var t=e.state,r=e.src,n=e.title;return"active"!==t&&"bundle"===r&&(a=!0),"active"===t||"thirdparty"!==r&&"unknown"!==r||!0,Object(g.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===r?" bundle-install-required":"")},n," - ",Object(g.createElement)("span",{class:"plugin-status"},"notactive"===t?te("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===r?Object(g.createElement)("span",{class:"plugin-install-required"},te("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(g.createElement)(re,null,Object(g.createElement)("p",{className:"desc-small install-third-party-notice"},te("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(g.createElement)("ul",{className:"kadence-required-wrap"},k()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(a=!0),Object(g.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(g.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?te("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(g.createElement)("span",{class:"plugin-install-required"},te("Please install and activate this third-party premium Plugin")):"")):Object(g.createElement)("li",{className:"plugin-required"},e," - ",Object(g.createElement)("span",{class:"plugin-status"},te("Unknown","kadence-starter-templates")))}))))),Object(g.createElement)("p",{className:"desc-small note-about-colors"},te("*Single Page templates will follow your website current global colors and typography settings, you can import without effecting your current site. Or you can optionally override your websites global colors and typography by enabling the settings below.","kadence-starter-templates")),Object(g.createElement)(de,{label:te("Override Your Sites Global Colors?","kadence-starter-templates"),checked:void 0!==e.state.overrideColors&&e.state.overrideColors,onChange:function(t){return e.state.overrideColors?e.setState({overrideColors:!1}):e.setState({isOpenCheckColor:!0})}}),e.state.isOpenCheckColor?Object(g.createElement)(oe,{className:"ksp-confirm-modal",title:te("Override Your Sites Colors on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckColor:!1})}},Object(g.createElement)("p",{className:"desc-small note-about-colors"},te("This will override the customizer settings for global colors on your current site when you import this page template.","kadence-starter-templates")),Object(g.createElement)("div",{className:"ksp-override-model-buttons"},Object(g.createElement)(pe,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!1})}},te("Cancel","kadence-starter-templates")),Object(g.createElement)(pe,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!0})}},te("Override Colors","kadence-starter-templates")))):null,e.state.overrideColors&&e.state.colorPalette&&Object(g.createElement)(re,null,Object(g.createElement)("h3",null,te("Selected Color Palette","kadence-starter-templates")),k()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(g.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},k()(r,(function(e,t){return Object(g.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(g.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(g.createElement)(de,{label:te("Override Your Sites Fonts?","kadence-starter-templates"),checked:void 0!==e.state.overrideFonts&&e.state.overrideFonts,onChange:function(t){return e.state.overrideFonts?e.setState({overrideFonts:!1}):e.setState({isOpenCheckFont:!0})}}),e.state.isOpenCheckFont?Object(g.createElement)(oe,{className:"ksp-confirm-modal",title:te("Override Your Sites Fonts on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckFont:!1})}},Object(g.createElement)("p",{className:"desc-small note-about-colors"},te("This will override the customizer typography settings on your current site when you import this page template.","kadence-starter-templates")),Object(g.createElement)("div",{className:"ksp-override-model-buttons"},Object(g.createElement)(pe,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!1})}},te("Cancel","kadence-starter-templates")),Object(g.createElement)(pe,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!0})}},te("Override Fonts","kadence-starter-templates")))):null,e.state.fontPair&&e.state.overrideFonts&&Object(g.createElement)(re,null,Object(g.createElement)("h3",{className:"kst-selected-font-pair-title"},te("Selected Font Pair","kadence-starter-templates")),k()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(g.createElement)("div",{className:"kst-selected-font-pair"},Object(g.createElement)("img",{src:r,className:"font-pairing"}),Object(g.createElement)("h4",null,n))})))),"subscribe"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.subscribe_progress),"plugins"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_new_progress),"contentNewer"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_newer_progress),"contentNewest"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_newest_progress),!kadenceStarterParams.isKadence&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)("h2",null,te("This Template Requires the Kadence Theme","kadence-starter-templates")),Object(g.createElement)(me,{href:"https://www.kadencewp.com/kadence-theme/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard"},te("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(g.createElement)(re,null,a&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)("h2",null,te("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(g.createElement)(me,{href:"https://www.kadencewp.com/my-account/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard"},te("Pro Account","kadence-starter-templates"))),!a&&Object(g.createElement)(re,null,e.state.showForm&&!e.state.isSubscribed&&Object(g.createElement)(re,null,Object(g.createElement)(W,{emailError:e.state.emailError,onRun:function(a){return e.runSubscribeSingle(a,t.slug)}}),Object(g.createElement)(pe,{className:"kb-skip-start subscribe",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},te("Skip, start importing page","kadence-starter-templates"))),e.state.showForm&&e.state.isSubscribed&&Object(g.createElement)(re,null,Object(g.createElement)(pe,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},te("Start Importing Page","kadence-starter-templates"))))))))},s=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1,r=!1;return Object(g.createElement)(re,null,Object(g.createElement)("div",{className:"kst-grid-single-site"},Object(g.createElement)("div",{className:"kst-import-selection-item"},Object(g.createElement)("div",{className:"kst-import-selection"},Object(g.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image,alt:t.name}))),Object(g.createElement)("div",{className:"kst-import-selection-options"},Object(g.createElement)("div",{className:"kst-import-selection-title"},Object(g.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(g.createElement)("h2",null,te("Template:","kadence-starter-templates")," ",Object(g.createElement)("span",null,t.name)))))),Object(g.createElement)(oe,{className:"kst-import-modal",title:te("Import Starter Template"),onRequestClose:function(){return!e.state.isFetching&&e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",focusMode:!1,isImporting:!1,progress:""})}},!kadenceStarterParams.isKadence&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)("h2",null,te("This Starter Template Requires the Kadence Theme","kadence-starter-templates")),Object(g.createElement)(me,{href:"https://www.kadencewp.com/kadence-theme/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard"},te("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(g.createElement)(re,null,!e.state.isFetching&&Object(g.createElement)(re,null,e.state.hasContent&&Object(g.createElement)("div",{className:"kadence_starter_templates_notice"},e.state.hasPastContent?Object(g.createElement)(re,null,kadenceStarterParams.notice_previous):Object(g.createElement)(re,null,kadenceStarterParams.notice)),e.state.hasPastContent&&Object(g.createElement)(re,null,Object(g.createElement)(de,{label:te("Delete Previously Imported Posts and Images?","kadence-starter-templates"),checked:void 0!==e.state.removePast&&e.state.removePast,onChange:function(t){return e.state.removePast?e.setState({removePast:!1}):e.setState({removePast:!0})}}))),Object(g.createElement)(ve,{title:te("Import Details","kadence-blocks"),initialOpen:!1},Object(g.createElement)("div",{className:"required-plugins-list"},Object(g.createElement)("h3",{className:"required-plugins-list-header"},te("Required Plugins","kadence-starter-templates")),e.state.isLoadingPlugins&&Object(g.createElement)(ie,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(g.createElement)(re,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(g.createElement)(re,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(g.createElement)("ul",{className:"kadence-required-wrap"},k()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;return"active"!==t&&"bundle"===n&&(r=!0),"active"!==t&&"thirdparty"===n&&(a=!0),Object(g.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(g.createElement)("span",{class:"plugin-status"},"notactive"===t?te("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===n?Object(g.createElement)("span",{class:"plugin-install-required"},te("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(g.createElement)(re,null,Object(g.createElement)("p",{className:"desc-small install-third-party-notice"},te("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(g.createElement)("ul",{className:"kadence-required-wrap"},k()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(r=!0),Object(g.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(g.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?te("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(g.createElement)("span",{class:"plugin-install-required"},te("Please install and activate this third-party premium Plugin")):"")):Object(g.createElement)("li",{className:"plugin-required"},e," - ",Object(g.createElement)("span",{class:"plugin-status"},te("Unknown","kadence-starter-templates")))})))))),e.state.colorPalette&&Object(g.createElement)(re,null,Object(g.createElement)("h3",null,te("Selected Color Palette","kadence-starter-templates")),k()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(g.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},k()(r,(function(e,t){return Object(g.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(g.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),e.state.fontPair&&Object(g.createElement)(re,null,Object(g.createElement)("h3",{className:"kst-selected-font-pair-title"},te("Selected Font Pair","kadence-starter-templates")),k()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(g.createElement)("div",{className:"kst-selected-font-pair"},Object(g.createElement)("img",{src:r,className:"font-pairing"}),Object(g.createElement)("h4",null,n))})))),!e.state.isFetching&&Object(g.createElement)(ve,{title:te("Advanced Settings","kadence-blocks"),initialOpen:!1},Object(g.createElement)(de,{label:te("Import Customizer Settings","kadence-starter-templates"),checked:void 0!==e.state.installCustomizer&&e.state.installCustomizer,onChange:function(t){return e.state.installCustomizer?e.setState({installCustomizer:!1}):e.setState({installCustomizer:!0})}}),Object(g.createElement)(de,{label:te("Import Content","kadence-starter-templates"),checked:void 0!==e.state.installContent&&e.state.installContent,onChange:function(t){return e.state.installContent?e.setState({installContent:!1}):e.setState({installContent:!0})}})),a&&Object(g.createElement)("div",{className:"install-third-party-notice"},Object(g.createElement)("p",{className:"desc-small"},te("*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.","kadence-starter-templates")),k()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;if("active"!==t&&"repo"!==n)return"active"!==t&&"bundle"===n&&(r=!0),"active"!==t&&"thirdparty"===n&&(a=!0),Object(g.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(g.createElement)("span",{class:"plugin-status"},"notactive"===t?te("Not Installed","kadence-starter-templates"):t))}))),"subscribe"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.subscribe_progress),"remove"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.remove_progress),"plugins"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_new_progress),"contentNewer"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_newer_progress),"contentNewest"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.content_newest_progress),"customizer"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.customizer_progress),"widgets"===e.state.progress&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)(ie,null),kadenceStarterParams.widgets_progress),kadenceStarterParams.isKadence&&Object(g.createElement)(re,null,a&&Object(g.createElement)(re,null,r&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)("h2",null,te("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(g.createElement)(me,{href:"https://www.kadencewp.com/my-account/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard"},te("Pro Account","kadence-starter-templates"))),!r&&Object(g.createElement)(pe,{className:"kt-defaults-save import-partial-btn",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},te("Skip and Import with Partial Content"))),!a&&Object(g.createElement)(re,null,r&&Object(g.createElement)("div",{class:"kadence_starter_templates_response"},Object(g.createElement)("h2",null,te("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(g.createElement)(me,{href:"https://www.kadencewp.com/my-account/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard"},te("Pro Account","kadence-starter-templates"))),!r&&Object(g.createElement)(re,null,e.state.showForm&&!e.state.isSubscribed&&Object(g.createElement)(re,null,Object(g.createElement)(W,{emailError:e.state.emailError,onRun:function(a){return e.runSubscribe(a,t.slug)}}),Object(g.createElement)(pe,{className:"kb-skip-start",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},te("Skip, Start Importing"))),e.state.showForm&&e.state.isSubscribed&&Object(g.createElement)(re,null,Object(g.createElement)(pe,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},te("Start Importing","kadence-starter-templates")))))))))},c=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(g.createElement)(re,null,Object(g.createElement)("div",{className:"kst-import-selection-options"},Object(g.createElement)("div",{className:"kst-import-grid-title"},Object(g.createElement)("h2",null,te("Page Templates","kadence-starter-templates"))),Object(g.createElement)("div",{className:"templates-grid"},k()(t.pages,(function(t){var a=t.title,r=t.id,n=t.thumbnail;return Object(g.createElement)("div",{className:"kst-template-item"},Object(g.createElement)(pe,{key:r,className:"kst-import-btn",isSmall:!0,onClick:function(){return e.selectedMode(r)}},Object(g.createElement)(O.a,{offsetBottom:200},Object(g.createElement)("img",{src:n,alt:a})),Object(g.createElement)("div",{className:"demo-title"},Object(g.createElement)("h4",null,a," ",Object(g.createElement)("span",null,te("View Details","kadence-starter-templates"))))))}))),Object(g.createElement)("div",{className:"kst-import-selection-bottom"},Object(g.createElement)(pe,{className:"kt-import-fullsite",isPrimary:!0,onClick:function(){return e.selectedFullMode()}},te("Import Full Site","kadence-starter-templates")))))},o=function(){var t=e,a=["all"];e.state.activeTemplates&&Object.keys(e.state.activeTemplates).length>1&&Object.keys(e.state.activeTemplates).map((function(e,r){if(t.state.activeTemplates[e].categories)for(var n=0;n<t.state.activeTemplates[e].categories.length;n++)a.includes(t.state.activeTemplates[e].categories[n])||a.push(t.state.activeTemplates[e].categories[n])}));var r=a.map((function(a){return Object(g.createElement)(fe,{className:a===t.state.category?"active-item":"",isSelected:a===t.state.category,onClick:function(){return e.setState({category:a})}},t.capitalizeFirstLetter(a))}));return Object(g.createElement)("div",{className:"kadence-site-grid-wrap"},Object(g.createElement)("div",{className:"kadence-site-header"},Object(g.createElement)("div",{className:"kadence-site-header-left"},"blocks"===e.state.starterSettings.builderType&&a.length>1&&Object(g.createElement)(re,null,Object(g.createElement)("span",{className:"filter-title"},te("Filter:","kadence-starter-templates")),Object(g.createElement)(le,{className:"kadence-site-grid-header-popover",contentClassName:"kst-category-popover",position:"bottom center",label:te("Select a Category","kadence-blocks"),renderToggle:function(a){var r=a.isOpen,n=a.onToggle;return Object(g.createElement)(pe,{onClick:n,"aria-expanded":r,icon:U},e.capitalizeFirstLetter(t.state.category),Object(g.createElement)(ue,{className:"kst-chev",icon:K}))},renderContent:function(e){e.isOpen,e.onToggle;return Object(g.createElement)("div",null,r)}}),Object(g.createElement)(le,{className:"kadence-site-grid-header-popover",contentClassName:"kst-category-popover",position:"bottom center",label:te("Select Free or Pro","kadence-blocks"),renderToggle:function(e){var a=e.isOpen,r=e.onToggle;return Object(g.createElement)(pe,{onClick:r,"aria-expanded":a,icon:J},"free"===t.state.level&&te("Free Only","kadence-starter-templates"),"pro"===t.state.level&&te("Pro Only","kadence-starter-templates"),"all"===t.state.level&&te("Free & Pro","kadence-starter-templates"),Object(g.createElement)(ue,{className:"kst-chev",icon:K}))},renderContent:function(a){a.isOpen,a.onToggle;return Object(g.createElement)("div",null,Object(g.createElement)(fe,{className:"all"===t.state.level?"active-item":"",isSelected:"all"===t.state.level,onClick:function(){return e.setState({level:"all"})}},te("Free & Pro","kadence-starter-templates")),Object(g.createElement)(fe,{className:"pro"===t.state.level?"active-item":"",isSelected:"pro"===t.state.level,onClick:function(){return e.setState({level:"pro"})}},te("Pro Only","kadence-starter-templates")),Object(g.createElement)(fe,{className:"free"===t.state.level?"active-item":"",isSelected:"free"===t.state.level,onClick:function(){return e.setState({level:"free"})}},te("Free Only","kadence-starter-templates")))}}))),Object(g.createElement)("div",{className:"kadence-site-grid-header-right"},"blocks"===e.state.starterSettings.builderType&&a.length>1&&Object(g.createElement)("span",{className:"page-source-notice"},te("This page is loaded from","kadence-starter-templates")+" ",Object(g.createElement)(me,{href:"https://www.kadencewp.com/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard"},"kadencewp.com")))),Object(g.createElement)("div",{className:"templates-grid"},Object.keys(e.state.activeTemplates).map((function(e,a){var r=t.state.activeTemplates[e].name,n=t.state.activeTemplates[e].slug,s=t.state.activeTemplates[e].image,c=t.state.activeTemplates[e].categories,o=t.state.activeTemplates[e].keywords,i=t.state.activeTemplates[e].pro,l=(t.state.activeTemplates[e].member,t.state.activeTemplates[e].pages);if(("all"===t.state.category||c.includes(t.state.category))&&("all"===t.state.level||"pro"===t.state.level&&i||"free"===t.state.level&&!i)&&(!t.state.search||o&&o.some((function(e){return e.toLowerCase().includes(t.state.search.toLowerCase())}))))return Object(g.createElement)("div",{className:"kst-template-item"},Object(g.createElement)(pe,{key:e,className:"kst-import-btn",isSmall:!0,onClick:function(){return"custom"===t.state.starterSettings.builderType?t.jumpToImport(n):t.fullFocusMode(n)}},Object(g.createElement)(O.a,{offsetBottom:700},Object(g.createElement)("img",{src:l&&l.home&&l.home.thumbnail?l.home.thumbnail:s,alt:r})),Object(g.createElement)("div",{className:"demo-title"},Object(g.createElement)("h4",null,r))),void 0!==i&&i&&Object(g.createElement)(re,null,Object(g.createElement)("span",{className:"kb-pro-template"},te("Pro","kadence-starter-sites"))))}))))},i=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(g.createElement)("div",{className:"kst-grid-single-site"},Object(g.createElement)("div",{className:"kst-import-selection-item"},Object(g.createElement)("div",{className:"kst-import-selection"},Object(g.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(g.createElement)("div",{className:"kst-import-selection-options"},Object(g.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(g.createElement)("div",{className:"kst-import-selection-title"},Object(g.createElement)("h2",null,te("Template:","kadence-starter-templates")," ",Object(g.createElement)("span",null,t.name),Object(g.createElement)("br",null)," ",te("Selected Page:","kadence-starter-templates")," ",Object(g.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(g.createElement)("div",{className:"kst-import-grid-title"},Object(g.createElement)("h2",null,te("Import complete!","kadence-starter-templates")),Object(g.createElement)("div",{class:"kadence_starter_templates_finished"},Object(g.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))},l=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(g.createElement)("div",{className:"kst-grid-single-site"},Object(g.createElement)("div",{className:"kst-import-selection-item"},Object(g.createElement)("div",{className:"kst-import-selection"},Object(g.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image}))),Object(g.createElement)("div",{className:"kst-import-selection-options"},Object(g.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(g.createElement)("div",{className:"kst-import-selection-title"},Object(g.createElement)("h2",null,te("Template:","kadence-starter-templates")," ",Object(g.createElement)("span",null,t.name))),Object(g.createElement)("div",{className:"kst-import-grid-title"},Object(g.createElement)("h2",null,te("Import complete!","kadence-starter-templates")),Object(g.createElement)("div",{class:"kadence_starter_templates_finished"},Object(g.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))};return Object(g.createElement)(re,null,Object(g.createElement)("div",{class:"kadence_theme_dash_head"},Object(g.createElement)("div",{class:"kadence_theme_dash_head_container"},Object(g.createElement)("div",{class:"kadence_theme_dash_logo"},Object(g.createElement)("img",{src:this.state.logo})),this.state.focusMode&&Object(g.createElement)("div",{class:"kadence_theme_dash_back"},this.state.isPageSelected?Object(g.createElement)(be,{text:te("Back to Individual Pages Grid")},Object(g.createElement)(pe,{className:"kt-import-back",icon:X,onClick:function(){return!e.state.isFetching&&e.setState({colorPalette:"",finished:!1,selectedPage:"home",focusMode:!0,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:""})}})):Object(g.createElement)(be,{text:te("Back to Starter Templates Grid")},Object(g.createElement)(pe,{className:"kt-import-back",icon:X,onClick:function(){return e.backToDash()}}))),this.state.finished&&Object(g.createElement)("div",{class:"kadence_theme_dash_back"},Object(g.createElement)(be,{text:te("Back to Starter Templates Grid")},Object(g.createElement)(pe,{className:"kt-import-back",icon:X,onClick:function(){return e.backToDash()}}))),Object(g.createElement)("div",{class:"kadence_starter_builder_type"},this.state.starterSettings&&this.state.starterSettings.builderType&&Object(g.createElement)(le,{className:"my-container-class-name",contentClassName:"kst-type-popover",position:"bottom left",renderToggle:function(e){var r=e.isOpen,n=e.onToggle;return Object(g.createElement)(pe,{onClick:n,"aria-expanded":r,icon:a},t,Object(g.createElement)(ue,{className:"kst-chev",icon:K}))},renderContent:function(t){t.isOpen;var a=t.onToggle;return Object(g.createElement)("div",null,Object(g.createElement)(fe,{icon:ke,className:"blocks"===e.state.starterSettings.builderType?"active-item":"",isSelected:"blocks"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","blocks"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},te("Gutenberg","kadence-starter-templates")),Object(g.createElement)(fe,{icon:he,className:"elementor"===e.state.starterSettings.builderType?"active-item":"",isSelected:"elementor"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","elementor"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},te("Elementor","kadence-starter-templates")),kadenceStarterParams.ctemplates&&Object(g.createElement)(fe,{icon:kadenceStarterParams.custom_icon?Object(g.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ge,className:"custom"===e.state.starterSettings.builderType?"active-item":"",isSelected:"custom"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","custom"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:te("Pro Designs","kadence-starter-templates")))}})),!1!==this.state.activeTemplates&&this.state.starterSettings.builderType&&Object(g.createElement)("div",{class:"kadence_theme_dash_reload"},Object(g.createElement)(be,{text:te("Sync with Cloud")},Object(g.createElement)(pe,{className:"kt-reload-templates",icon:Y,onClick:function(){return e.reloadTemplateData()}}))))),Object(g.createElement)("div",{class:"kadence_theme_starter_dash_inner"},this.state.starterSettings&&this.state.starterSettings.builderType?Object(g.createElement)((function(){return Object(g.createElement)(re,null,r?Object(g.createElement)("div",{className:"main-panel"},Object(g.createElement)("div",{className:"kst-overlay-saving"},!e.state.errorTemplates&&Object(g.createElement)(ie,null),e.state.errorTemplates&&Object(g.createElement)(re,null,Object(g.createElement)("h2",{style:{textAlign:"center"}},te("Error, Unable to access template database, please try re-downloading","kadence-starter-templates")),Object(g.createElement)("div",{style:{textAlign:"center"}},Object(g.createElement)(pe,{className:"kt-reload-templates",icon:Y,onClick:function(){return e.reloadTemplateData()}},te(" Sync with Cloud","kadence-starter-templates")))),!1===e.state.activeTemplates&&Object(g.createElement)(re,null,e.loadTemplateData()))):Object(g.createElement)("div",{className:"main-panel"},e.state.focusMode&&Object(g.createElement)(re,null,e.state.isImporting&&Object(g.createElement)(re,null,e.state.isPageSelected?Object(g.createElement)(n,null):Object(g.createElement)(s,null)),!e.state.isImporting&&e.state.isSelected&&Object(g.createElement)(M,{item:e.state.activeTemplates[e.state.activeTemplate],colorPalette:e.state.colorPalette,fontPair:e.state.fontPair,onChange:function(t){e.setState(t)}}),!e.state.isImporting&&!e.state.isSelected&&Object(g.createElement)(c,null)),!e.state.focusMode&&!e.state.finished&&Object(g.createElement)(o,null),e.state.finished&&Object(g.createElement)(re,null,e.state.isPageSelected?Object(g.createElement)(i,null):Object(g.createElement)(l,null))))}),null):Object(g.createElement)((function(){return Object(g.createElement)("div",{className:"kst-choose-builder-wrap".concat(kadenceStarterParams.ctemplates?" adjust-to-three-column":"")},Object(g.createElement)("div",{className:"kst-choose-builder-center"},Object(g.createElement)("h2",{className:"kst-choose-builder-title"},te("Choose a Builder","kadence-starter-templates")),Object(g.createElement)("div",{className:"kst-choose-builder-inner"},kadenceStarterParams.ctemplates&&Object(g.createElement)(pe,{icon:kadenceStarterParams.custom_icon?Object(g.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ge,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","custom")}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:te("Pro Designs","kadence-starter-templates")),Object(g.createElement)(pe,{icon:ke,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","blocks")}},te("Gutenberg","kadence-starter-templates")),Object(g.createElement)(pe,{icon:he,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","elementor")}},te("Elementor","kadence-starter-templates"))),e.state.isSaving&&Object(g.createElement)("div",{className:"kst-overlay-saving"},Object(g.createElement)(ie,null))))}),null)))}}]),a}(ne);wp.domReady((function(){se(Object(g.createElement)(je,null),document.querySelector(".kadence_starter_dashboard_main"))}))}]);
class-kadence-starter-templates.php CHANGED
@@ -189,7 +189,7 @@ class Starter_Templates {
189
  define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
190
  }
191
  if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
192
- define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.13' );
193
  }
194
  }
195
 
@@ -961,7 +961,9 @@ class Starter_Templates {
961
  'subscribe_progress' => esc_html__( 'Getting Started', 'kadence-starter-templates' ),
962
  'plugin_progress' => esc_html__( 'Checking/Installing/Activating Required Plugins', 'kadence-starter-templates' ),
963
  'content_progress' => esc_html__( 'Importing Content...', 'kadence-starter-templates' ),
964
- 'content_new_progress' => esc_html__( 'Importing Content... Still Importing.', 'kadence-starter-templates' ),
 
 
965
  'widgets_progress' => esc_html__( 'Importing Widgets...', 'kadence-starter-templates' ),
966
  'customizer_progress' => esc_html__( 'Importing Customizer Settings...', 'kadence-starter-templates' ),
967
  'user_email' => $user_email,
@@ -1511,6 +1513,7 @@ class Starter_Templates {
1511
  public function subscribe_ajax_callback() {
1512
  Helpers::verify_ajax_call();
1513
  $email = empty( $_POST['email'] ) ? '' : sanitize_text_field( $_POST['email'] );
 
1514
  // Do you have the data?
1515
  if ( $email && is_email( $email ) && filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
1516
  list( $user, $domain ) = explode( '@', $email );
@@ -1524,9 +1527,10 @@ class Starter_Templates {
1524
  return wp_send_json( 'emailDomainPostError' );
1525
  }
1526
  $args = array(
1527
- 'email' => $email,
1528
- 'tag' => 'wire',
1529
- 'list' => '20',
 
1530
  );
1531
  // Get the response.
1532
  $api_url = add_query_arg( $args, 'https://www.kadencewp.com/kadence-blocks/wp-json/kadence-subscribe/v1/subscribe/' );
189
  define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
190
  }
191
  if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
192
+ define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.14' );
193
  }
194
  }
195
 
961
  'subscribe_progress' => esc_html__( 'Getting Started', 'kadence-starter-templates' ),
962
  'plugin_progress' => esc_html__( 'Checking/Installing/Activating Required Plugins', 'kadence-starter-templates' ),
963
  'content_progress' => esc_html__( 'Importing Content...', 'kadence-starter-templates' ),
964
+ 'content_new_progress' => esc_html__( 'Importing Content... Creating pages.', 'kadence-starter-templates' ),
965
+ 'content_newer_progress' => esc_html__( 'Importing Content... Downloading images.', 'kadence-starter-templates' ),
966
+ 'content_newest_progress' => esc_html__( 'Importing Content... Still Importing.', 'kadence-starter-templates' ),
967
  'widgets_progress' => esc_html__( 'Importing Widgets...', 'kadence-starter-templates' ),
968
  'customizer_progress' => esc_html__( 'Importing Customizer Settings...', 'kadence-starter-templates' ),
969
  'user_email' => $user_email,
1513
  public function subscribe_ajax_callback() {
1514
  Helpers::verify_ajax_call();
1515
  $email = empty( $_POST['email'] ) ? '' : sanitize_text_field( $_POST['email'] );
1516
+ $selected_index = empty( $_POST['selected'] ) ? '' : sanitize_text_field( $_POST['selected'] );
1517
  // Do you have the data?
1518
  if ( $email && is_email( $email ) && filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
1519
  list( $user, $domain ) = explode( '@', $email );
1527
  return wp_send_json( 'emailDomainPostError' );
1528
  }
1529
  $args = array(
1530
+ 'email' => $email,
1531
+ 'tag' => 'starter',
1532
+ 'list' => '20',
1533
+ 'starter' => $selected_index,
1534
  );
1535
  // Get the response.
1536
  $api_url = add_query_arg( $args, 'https://www.kadencewp.com/kadence-blocks/wp-json/kadence-subscribe/v1/subscribe/' );
inc/class-importer.php CHANGED
@@ -178,14 +178,14 @@ class Importer {
178
  } else {
179
  add_filter( 'wxr_importer.pre_process.post_meta', array( $this, 'process_elementor_images' ), 10, 2 );
180
  add_filter( 'wxr_importer.pre_process.post', array( $this, 'process_kadence_block_css' ), 10, 4 );
181
- //add_filter( 'wp_import_post_data_processed', array( $this, 'process_kadence_block_css_post' ), 10, 2 );
182
  add_filter( 'wxr_importer.pre_process.post', array( $this, 'process_internal_links' ), 11, 4 );
183
- //add_action( 'wxr_importer.processed.post', array( $this, 'process_internal_links' ), 10, 5 );
184
- // Check, if we need to send another AJAX request and set the importing author to the current user.
185
  add_filter( 'wxr_importer.pre_process.post', array( $this, 'new_ajax_request_maybe' ) );
186
- //add_action( 'wxr_importer.processed.post', array( $this, 'process_kadence_block_css_processed' ), 10, 5 );
187
- //add_filter( 'wxr_importer.pre_process.post', array( $this, 'process_kadence_block_css' ), 10, 5 );
188
- //add_action( 'wxr_importer.processed.post', array( $this, 'process_kadence_galleries' ), 10, 5 );
189
  }
190
 
191
  // Disables generation of multiple image sizes (thumbnails) in the content import step.
@@ -268,7 +268,9 @@ class Importer {
268
  }
269
  if ( ! empty( $link_mapping ) ) {
270
  foreach ( $link_mapping as $old_url => $new_url ) {
271
- $data['post_content'] = str_replace( $old_url, $new_url, $data['post_content'] );
 
 
272
 
273
  // Replace the slashed URLs if any exist.
274
  $old_url = str_replace( '/', '/\\', $old_url );
178
  } else {
179
  add_filter( 'wxr_importer.pre_process.post_meta', array( $this, 'process_elementor_images' ), 10, 2 );
180
  add_filter( 'wxr_importer.pre_process.post', array( $this, 'process_kadence_block_css' ), 10, 4 );
181
+ //add_filter( 'wp_import_post_data_processed', array( $this, 'process_kadence_block_css_post' ), 10, 2 );
182
  add_filter( 'wxr_importer.pre_process.post', array( $this, 'process_internal_links' ), 11, 4 );
183
+ //add_action( 'wxr_importer.processed.post', array( $this, 'process_internal_links' ), 10, 5 );
184
+ // Check, if we need to send another AJAX request and set the importing author to the current user.
185
  add_filter( 'wxr_importer.pre_process.post', array( $this, 'new_ajax_request_maybe' ) );
186
+ //add_action( 'wxr_importer.processed.post', array( $this, 'process_kadence_block_css_processed' ), 10, 5 );
187
+ //add_filter( 'wxr_importer.pre_process.post', array( $this, 'process_kadence_block_css' ), 10, 5 );
188
+ //add_action( 'wxr_importer.processed.post', array( $this, 'process_kadence_galleries' ), 10, 5 );
189
  }
190
 
191
  // Disables generation of multiple image sizes (thumbnails) in the content import step.
268
  }
269
  if ( ! empty( $link_mapping ) ) {
270
  foreach ( $link_mapping as $old_url => $new_url ) {
271
+ $old_url_full = '"' . $old_url . '"';
272
+ $new_url_full = '"' . $new_url . '"';
273
+ $data['post_content'] = str_replace( $old_url_full, $new_url_full, $data['post_content'] );
274
 
275
  // Replace the slashed URLs if any exist.
276
  $old_url = str_replace( '/', '/\\', $old_url );
inc/react/src/index.js CHANGED
@@ -33,11 +33,13 @@ import KadenceSubscribeForm from './subscribe-form'
33
  */
34
  const { __, sprintf } = wp.i18n;
35
  const { Fragment, Component, render, PureComponent } = wp.element;
36
- const { Modal, Spinner, ButtonGroup, Dropdown, Icon, Button, ExternalLink, ToolbarGroup, CheckboxControl, TextControl, ToggleControl, MenuItem, Tooltip, PanelBody } = wp.components;
37
  import {
38
  arrowLeft,
39
  download,
 
40
  update,
 
41
  chevronLeft,
42
  chevronDown,
43
  } from '@wordpress/icons';
@@ -159,6 +161,7 @@ class KadenceImporter extends Component {
159
  this.saveConfig = this.saveConfig.bind( this );
160
  this.state = {
161
  category: 'all',
 
162
  activeTemplate: '',
163
  colorPalette: '',
164
  fontPair: '',
@@ -370,12 +373,13 @@ class KadenceImporter extends Component {
370
  data.append( 'page_id', page_id );
371
  this.runPageAjax( data );
372
  }
373
- runSubscribeSingle( email ) {
374
  this.setState( { progress: 'subscribe', isFetching: true, showForm: false } );
375
  var data = new FormData();
376
  data.append( 'action', 'kadence_import_subscribe' );
377
  data.append( 'security', kadenceStarterParams.ajax_nonce );
378
  data.append( 'email', email );
 
379
  this.runPageAjax( data );
380
  }
381
  runRemovePast( selected, builder ) {
@@ -396,12 +400,13 @@ class KadenceImporter extends Component {
396
  data.append( 'builder', builder );
397
  this.runAjax( data );
398
  }
399
- runSubscribe( email ) {
400
  this.setState( { progress: 'subscribe', isFetching: true, showForm: false } );
401
  var data = new FormData();
402
  data.append( 'action', 'kadence_import_subscribe' );
403
  data.append( 'security', kadenceStarterParams.ajax_nonce );
404
  data.append( 'email', email );
 
405
  this.runAjax( data );
406
  }
407
  runPageAjax( data ) {
@@ -465,7 +470,13 @@ class KadenceImporter extends Component {
465
  })
466
  .done( function( response, status, stately ) {
467
  if ( 'undefined' !== typeof response.status && 'newAJAX' === response.status ) {
468
- control.state.progress = 'contentNew';
 
 
 
 
 
 
469
  control.runAjax( data );
470
  } else if ( 'undefined' !== typeof response.status && 'customizerAJAX' === response.status ) {
471
  var newData = new FormData();
@@ -531,6 +542,8 @@ class KadenceImporter extends Component {
531
  } else if ( 'undefined' !== typeof response.success && ! response.success ) {
532
  //jQuery( '.kadence_starter_templates_finished' ).append( '<p>' + response.message + '</p>' );
533
  control.setState( { finished: true, hasContent:true, hasPastContent:true, isFetching: false, colorPalette: '', fontPair: '', focusMode: false, isImporting: false, isSelected:false, isPageSelected:false, progress: '', showForm: true, response: '<div class="notice kadence_starter_templates_response notice-error"><p>' + __( 'Failed Import. Something went wrong internally. Please try again.', 'kadence-starter-templates' ) + '</p></div>' } );
 
 
534
  } else {
535
  console.log( response );
536
  //jQuery( '.kadence_starter_templates_error' ).append( '<div class="notice kadence_starter_templates_response notice-error"><p>' + response + '</p></div>' );
@@ -544,17 +557,6 @@ class KadenceImporter extends Component {
544
  });
545
  }
546
  render() {
547
- const cats = [ 'all' ];
548
- for ( let i = 0; i < this.state.templates.length; i++ ) {
549
- for ( let c = 0; c < this.state.templates[ i ].categories.length; c++ ) {
550
- if ( ! cats.includes( this.state.templates[ i ].categories[ c ] ) ) {
551
- cats.push( this.state.templates[ i ].categories[ c ] );
552
- }
553
- }
554
- }
555
- const catOptions = cats.map( ( item ) => {
556
- return { value: item, label: this.capitalizeFirstLetter( item ) }
557
- } );
558
  let builderTypeName = __( 'Gutenberg', 'kadence-starter-templates' );
559
  let builderTypeIcon = gbIcon;
560
  if ( this.state.starterSettings['builderType'] === 'elementor' ) {
@@ -756,24 +758,27 @@ class KadenceImporter extends Component {
756
  ) }
757
  </PanelBody>
758
  { this.state.progress === 'subscribe' && (
759
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.subscribe_progress }</div>
760
  ) }
761
  { this.state.progress === 'plugins' && (
762
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.plugin_progress }</div>
763
  ) }
764
  { this.state.progress === 'content' && (
765
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.content_progress }</div>
766
  ) }
767
  { this.state.progress === 'contentNew' && (
768
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.content_new_progress }</div>
769
  ) }
770
- { this.state.isFetching && (
771
- <Spinner />
 
 
 
772
  ) }
773
  { ! kadenceStarterParams.isKadence && (
774
  <div class="kadence_starter_templates_response">
775
  <h2>{ __( 'This Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
776
- <ExternalLink href={ 'https://kadence-theme.com/' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
777
  </div>
778
  ) }
779
  { kadenceStarterParams.isKadence && (
@@ -781,7 +786,7 @@ class KadenceImporter extends Component {
781
  { pluginsMember && (
782
  <div class="kadence_starter_templates_response">
783
  <h2>{ __( 'Install Missing/Inactive Highlighted Premium plugins to Import', 'kadence-starter-templates' ) }</h2>
784
- <ExternalLink href={ 'https://www.kadencewp.com/my-account/' }>{ __( 'Pro Account', 'kadence-starter-templates' ) }</ExternalLink>
785
  </div>
786
  ) }
787
  { ! pluginsMember && (
@@ -790,7 +795,7 @@ class KadenceImporter extends Component {
790
  <Fragment>
791
  <KadenceSubscribeForm
792
  emailError={ this.state.emailError }
793
- onRun={ email => this.runSubscribeSingle( email ) }
794
  />
795
  <Button className="kb-skip-start subscribe" isPrimary disabled={ this.state.isFetching } onClick={ () => {
796
  this.runPluginInstallSingle( item.slug, this.state.selectedPage, this.state.starterSettings['builderType'] );
@@ -844,27 +849,31 @@ class KadenceImporter extends Component {
844
  { ! kadenceStarterParams.isKadence && (
845
  <div class="kadence_starter_templates_response">
846
  <h2>{ __( 'This Starter Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
847
- <ExternalLink href={ 'https://kadence-theme.com/' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
848
  </div>
849
  ) }
850
  { kadenceStarterParams.isKadence && (
851
  <Fragment>
852
- { this.state.hasContent && (
853
- <div className="kadence_starter_templates_notice">
854
- { this.state.hasPastContent ? (
855
- <Fragment>{ kadenceStarterParams.notice_previous }</Fragment>
856
- ) : (
857
- <Fragment>{ kadenceStarterParams.notice }</Fragment>
858
- ) }
859
- </div>
860
- ) }
861
- { this.state.hasPastContent && (
862
  <Fragment>
863
- <ToggleControl
864
- label={ __( 'Delete Previously Imported Posts and Images?', 'kadence-starter-templates' ) }
865
- checked={ ( undefined !== this.state.removePast ? this.state.removePast : false ) }
866
- onChange={ value => ( this.state.removePast ? this.setState( { removePast: false } ) : this.setState( { removePast: true } ) ) }
867
- />
 
 
 
 
 
 
 
 
 
 
 
 
 
868
  </Fragment>
869
  ) }
870
  <PanelBody
@@ -984,21 +993,23 @@ class KadenceImporter extends Component {
984
  </Fragment>
985
  ) }
986
  </PanelBody>
987
- <PanelBody
988
- title={ __( 'Advanced Settings', 'kadence-blocks' ) }
989
- initialOpen={ false }
990
- >
991
- <ToggleControl
992
- label={ __( 'Import Customizer Settings', 'kadence-starter-templates' ) }
993
- checked={ ( undefined !== this.state.installCustomizer ? this.state.installCustomizer : false ) }
994
- onChange={ value => ( this.state.installCustomizer ? this.setState( { installCustomizer: false } ) : this.setState( { installCustomizer: true } ) ) }
995
- />
996
- <ToggleControl
997
- label={ __( 'Import Content', 'kadence-starter-templates' ) }
998
- checked={ ( undefined !== this.state.installContent ? this.state.installContent : false ) }
999
- onChange={ value => ( this.state.installContent ? this.setState( { installContent: false } ) : this.setState( { installContent: true } ) ) }
1000
- />
1001
- </PanelBody>
 
 
1002
  { pluginsPremium && (
1003
  <div className="install-third-party-notice">
1004
  <p className="desc-small">
@@ -1023,28 +1034,31 @@ class KadenceImporter extends Component {
1023
  </div>
1024
  ) }
1025
  { this.state.progress === 'subscribe' && (
1026
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.subscribe_progress }</div>
1027
  ) }
1028
  { this.state.progress === 'remove' && (
1029
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.remove_progress }</div>
1030
  ) }
1031
  { this.state.progress === 'plugins' && (
1032
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.plugin_progress }</div>
1033
  ) }
1034
  { this.state.progress === 'content' && (
1035
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.content_progress }</div>
1036
  ) }
1037
  { this.state.progress === 'contentNew' && (
1038
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.content_new_progress }</div>
 
 
 
 
 
 
1039
  ) }
1040
  { this.state.progress === 'customizer' && (
1041
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.customizer_progress }</div>
1042
  ) }
1043
  { this.state.progress === 'widgets' && (
1044
- <div class="kadence_starter_templates_response">{ kadenceStarterParams.widgets_progress }</div>
1045
- ) }
1046
- { this.state.isFetching && (
1047
- <Spinner />
1048
  ) }
1049
  { kadenceStarterParams.isKadence && (
1050
  <Fragment>
@@ -1053,7 +1067,7 @@ class KadenceImporter extends Component {
1053
  { pluginsMember && (
1054
  <div class="kadence_starter_templates_response">
1055
  <h2>{ __( 'Install Missing/Inactive Highlighted Premium plugins to Import', 'kadence-starter-templates' ) }</h2>
1056
- <ExternalLink href={ 'https://www.kadencewp.com/my-account/' }>{ __( 'Pro Account', 'kadence-starter-templates' ) }</ExternalLink>
1057
  </div>
1058
  ) }
1059
  { ! pluginsMember && (
@@ -1074,7 +1088,7 @@ class KadenceImporter extends Component {
1074
  { pluginsMember && (
1075
  <div class="kadence_starter_templates_response">
1076
  <h2>{ __( 'Install Missing/Inactive Highlighted Premium plugins to Import', 'kadence-starter-templates' ) }</h2>
1077
- <ExternalLink href={ 'https://www.kadencewp.com/my-account/' }>{ __( 'Pro Account', 'kadence-starter-templates' ) }</ExternalLink>
1078
  </div>
1079
  ) }
1080
  { ! pluginsMember && (
@@ -1083,7 +1097,7 @@ class KadenceImporter extends Component {
1083
  <Fragment>
1084
  <KadenceSubscribeForm
1085
  emailError={ this.state.emailError }
1086
- onRun={ email => this.runSubscribe( email ) }
1087
  />
1088
  <Button className="kb-skip-start" isPrimary disabled={ this.state.isFetching } onClick={ () => {
1089
  if ( this.state.removePast ) {
@@ -1182,44 +1196,146 @@ class KadenceImporter extends Component {
1182
  }
1183
  const KadenceSitesGrid = () => {
1184
  const control = this;
1185
- return (
1186
- <div className="templates-grid">
1187
- {/* { map( ( this.state.starterSettings['builderType'] === 'elementor' ? this.state.etemplates : this.state.templates ), ( { name, key, slug, image, content, categories, keywords, pro, pages } ) => { */}
1188
- { Object.keys( this.state.activeTemplates ).map( function( key, index ) {
1189
- const name = control.state.activeTemplates[key].name;
1190
- const slug = control.state.activeTemplates[key].slug;
1191
- const image = control.state.activeTemplates[key].image;
1192
- const categories = control.state.activeTemplates[key].categories;
1193
- const keywords = control.state.activeTemplates[key].keywords;
1194
- const pro = control.state.activeTemplates[key].pro;
1195
- const member = control.state.activeTemplates[key].member;
1196
- const pages = control.state.activeTemplates[key].pages;
1197
- if ( ( 'all' === control.state.category || categories.includes( control.state.category ) ) && ( ! control.state.search || ( keywords && keywords.some( x => x.toLowerCase().includes( control.state.search.toLowerCase() ) ) ) ) ) {
1198
- return (
1199
- <div className="kst-template-item">
1200
- <Button
1201
- key={ key }
1202
- className="kst-import-btn"
1203
- isSmall
1204
- onClick={ () => ( 'custom' === control.state.starterSettings[ 'builderType' ] ? control.jumpToImport( slug ) : control.fullFocusMode( slug ) ) }
1205
- //onClick={ () => control.fullFocusMode( slug ) }
1206
- >
1207
- <LazyLoad offsetBottom={200}>
1208
- <img src={ pages && pages.home && pages.home.thumbnail ? pages.home.thumbnail : image } alt={ name } />
1209
- </LazyLoad>
1210
- <div className="demo-title">
1211
- <h4>{ name }</h4>
1212
- </div>
1213
- </Button>
1214
- { undefined !== pro && pro && (
1215
- <Fragment>
1216
- <span className="kb-pro-template">{ __( 'Pro', 'kadence-starter-sites' ) }</span>
1217
- </Fragment>
1218
- ) }
1219
- </div>
1220
- );
1221
  }
1222
- } ) }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1223
  </div>
1224
  );
1225
  }
33
  */
34
  const { __, sprintf } = wp.i18n;
35
  const { Fragment, Component, render, PureComponent } = wp.element;
36
+ const { Modal, Spinner, ButtonGroup, SelectControl, DropdownMenu, Dropdown, Icon, Button, ExternalLink, ToolbarGroup, CheckboxControl, TextControl, ToggleControl, MenuItem, Tooltip, PanelBody } = wp.components;
37
  import {
38
  arrowLeft,
39
  download,
40
+ heading,
41
  update,
42
+ tag,
43
  chevronLeft,
44
  chevronDown,
45
  } from '@wordpress/icons';
161
  this.saveConfig = this.saveConfig.bind( this );
162
  this.state = {
163
  category: 'all',
164
+ level: 'all',
165
  activeTemplate: '',
166
  colorPalette: '',
167
  fontPair: '',
373
  data.append( 'page_id', page_id );
374
  this.runPageAjax( data );
375
  }
376
+ runSubscribeSingle( email, selected ) {
377
  this.setState( { progress: 'subscribe', isFetching: true, showForm: false } );
378
  var data = new FormData();
379
  data.append( 'action', 'kadence_import_subscribe' );
380
  data.append( 'security', kadenceStarterParams.ajax_nonce );
381
  data.append( 'email', email );
382
+ data.append( 'selected', selected );
383
  this.runPageAjax( data );
384
  }
385
  runRemovePast( selected, builder ) {
400
  data.append( 'builder', builder );
401
  this.runAjax( data );
402
  }
403
+ runSubscribe( email, selected ) {
404
  this.setState( { progress: 'subscribe', isFetching: true, showForm: false } );
405
  var data = new FormData();
406
  data.append( 'action', 'kadence_import_subscribe' );
407
  data.append( 'security', kadenceStarterParams.ajax_nonce );
408
  data.append( 'email', email );
409
+ data.append( 'selected', selected );
410
  this.runAjax( data );
411
  }
412
  runPageAjax( data ) {
470
  })
471
  .done( function( response, status, stately ) {
472
  if ( 'undefined' !== typeof response.status && 'newAJAX' === response.status ) {
473
+ if ( control.state.progress === 'contentNew' ) {
474
+ control.state.progress = 'contentNewer';
475
+ } else if ( control.state.progress === 'contentNewer' ) {
476
+ control.state.progress = 'contentNewest';
477
+ } else {
478
+ control.state.progress = 'contentNew';
479
+ }
480
  control.runAjax( data );
481
  } else if ( 'undefined' !== typeof response.status && 'customizerAJAX' === response.status ) {
482
  var newData = new FormData();
542
  } else if ( 'undefined' !== typeof response.success && ! response.success ) {
543
  //jQuery( '.kadence_starter_templates_finished' ).append( '<p>' + response.message + '</p>' );
544
  control.setState( { finished: true, hasContent:true, hasPastContent:true, isFetching: false, colorPalette: '', fontPair: '', focusMode: false, isImporting: false, isSelected:false, isPageSelected:false, progress: '', showForm: true, response: '<div class="notice kadence_starter_templates_response notice-error"><p>' + __( 'Failed Import. Something went wrong internally. Please try again.', 'kadence-starter-templates' ) + '</p></div>' } );
545
+ } else if ( response === 'emailDomainPostError' || response === 'emailDomainPreError' ) {
546
+ control.setState( { isFetching: false, progress: '', showForm: true, emailError: true } );
547
  } else {
548
  console.log( response );
549
  //jQuery( '.kadence_starter_templates_error' ).append( '<div class="notice kadence_starter_templates_response notice-error"><p>' + response + '</p></div>' );
557
  });
558
  }
559
  render() {
 
 
 
 
 
 
 
 
 
 
 
560
  let builderTypeName = __( 'Gutenberg', 'kadence-starter-templates' );
561
  let builderTypeIcon = gbIcon;
562
  if ( this.state.starterSettings['builderType'] === 'elementor' ) {
758
  ) }
759
  </PanelBody>
760
  { this.state.progress === 'subscribe' && (
761
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.subscribe_progress }</div>
762
  ) }
763
  { this.state.progress === 'plugins' && (
764
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.plugin_progress }</div>
765
  ) }
766
  { this.state.progress === 'content' && (
767
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_progress }</div>
768
  ) }
769
  { this.state.progress === 'contentNew' && (
770
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_new_progress }</div>
771
  ) }
772
+ { this.state.progress === 'contentNewer' && (
773
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_newer_progress }</div>
774
+ ) }
775
+ { this.state.progress === 'contentNewest' && (
776
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_newest_progress }</div>
777
  ) }
778
  { ! kadenceStarterParams.isKadence && (
779
  <div class="kadence_starter_templates_response">
780
  <h2>{ __( 'This Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
781
+ <ExternalLink href={ 'https://www.kadencewp.com/kadence-theme/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
782
  </div>
783
  ) }
784
  { kadenceStarterParams.isKadence && (
786
  { pluginsMember && (
787
  <div class="kadence_starter_templates_response">
788
  <h2>{ __( 'Install Missing/Inactive Highlighted Premium plugins to Import', 'kadence-starter-templates' ) }</h2>
789
+ <ExternalLink href={ 'https://www.kadencewp.com/my-account/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard' }>{ __( 'Pro Account', 'kadence-starter-templates' ) }</ExternalLink>
790
  </div>
791
  ) }
792
  { ! pluginsMember && (
795
  <Fragment>
796
  <KadenceSubscribeForm
797
  emailError={ this.state.emailError }
798
+ onRun={ email => this.runSubscribeSingle( email, item.slug ) }
799
  />
800
  <Button className="kb-skip-start subscribe" isPrimary disabled={ this.state.isFetching } onClick={ () => {
801
  this.runPluginInstallSingle( item.slug, this.state.selectedPage, this.state.starterSettings['builderType'] );
849
  { ! kadenceStarterParams.isKadence && (
850
  <div class="kadence_starter_templates_response">
851
  <h2>{ __( 'This Starter Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
852
+ <ExternalLink href={ 'https://www.kadencewp.com/kadence-theme/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
853
  </div>
854
  ) }
855
  { kadenceStarterParams.isKadence && (
856
  <Fragment>
857
+ { ! this.state.isFetching && (
 
 
 
 
 
 
 
 
 
858
  <Fragment>
859
+ { this.state.hasContent && (
860
+ <div className="kadence_starter_templates_notice">
861
+ { this.state.hasPastContent ? (
862
+ <Fragment>{ kadenceStarterParams.notice_previous }</Fragment>
863
+ ) : (
864
+ <Fragment>{ kadenceStarterParams.notice }</Fragment>
865
+ ) }
866
+ </div>
867
+ ) }
868
+ { this.state.hasPastContent && (
869
+ <Fragment>
870
+ <ToggleControl
871
+ label={ __( 'Delete Previously Imported Posts and Images?', 'kadence-starter-templates' ) }
872
+ checked={ ( undefined !== this.state.removePast ? this.state.removePast : false ) }
873
+ onChange={ value => ( this.state.removePast ? this.setState( { removePast: false } ) : this.setState( { removePast: true } ) ) }
874
+ />
875
+ </Fragment>
876
+ ) }
877
  </Fragment>
878
  ) }
879
  <PanelBody
993
  </Fragment>
994
  ) }
995
  </PanelBody>
996
+ { ! this.state.isFetching && (
997
+ <PanelBody
998
+ title={ __( 'Advanced Settings', 'kadence-blocks' ) }
999
+ initialOpen={ false }
1000
+ >
1001
+ <ToggleControl
1002
+ label={ __( 'Import Customizer Settings', 'kadence-starter-templates' ) }
1003
+ checked={ ( undefined !== this.state.installCustomizer ? this.state.installCustomizer : false ) }
1004
+ onChange={ value => ( this.state.installCustomizer ? this.setState( { installCustomizer: false } ) : this.setState( { installCustomizer: true } ) ) }
1005
+ />
1006
+ <ToggleControl
1007
+ label={ __( 'Import Content', 'kadence-starter-templates' ) }
1008
+ checked={ ( undefined !== this.state.installContent ? this.state.installContent : false ) }
1009
+ onChange={ value => ( this.state.installContent ? this.setState( { installContent: false } ) : this.setState( { installContent: true } ) ) }
1010
+ />
1011
+ </PanelBody>
1012
+ ) }
1013
  { pluginsPremium && (
1014
  <div className="install-third-party-notice">
1015
  <p className="desc-small">
1034
  </div>
1035
  ) }
1036
  { this.state.progress === 'subscribe' && (
1037
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.subscribe_progress }</div>
1038
  ) }
1039
  { this.state.progress === 'remove' && (
1040
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.remove_progress }</div>
1041
  ) }
1042
  { this.state.progress === 'plugins' && (
1043
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.plugin_progress }</div>
1044
  ) }
1045
  { this.state.progress === 'content' && (
1046
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_progress }</div>
1047
  ) }
1048
  { this.state.progress === 'contentNew' && (
1049
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_new_progress }</div>
1050
+ ) }
1051
+ { this.state.progress === 'contentNewer' && (
1052
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_newer_progress }</div>
1053
+ ) }
1054
+ { this.state.progress === 'contentNewest' && (
1055
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.content_newest_progress }</div>
1056
  ) }
1057
  { this.state.progress === 'customizer' && (
1058
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.customizer_progress }</div>
1059
  ) }
1060
  { this.state.progress === 'widgets' && (
1061
+ <div class="kadence_starter_templates_response"><Spinner />{ kadenceStarterParams.widgets_progress }</div>
 
 
 
1062
  ) }
1063
  { kadenceStarterParams.isKadence && (
1064
  <Fragment>
1067
  { pluginsMember && (
1068
  <div class="kadence_starter_templates_response">
1069
  <h2>{ __( 'Install Missing/Inactive Highlighted Premium plugins to Import', 'kadence-starter-templates' ) }</h2>
1070
+ <ExternalLink href={ 'https://www.kadencewp.com/my-account/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard' }>{ __( 'Pro Account', 'kadence-starter-templates' ) }</ExternalLink>
1071
  </div>
1072
  ) }
1073
  { ! pluginsMember && (
1088
  { pluginsMember && (
1089
  <div class="kadence_starter_templates_response">
1090
  <h2>{ __( 'Install Missing/Inactive Highlighted Premium plugins to Import', 'kadence-starter-templates' ) }</h2>
1091
+ <ExternalLink href={ 'https://www.kadencewp.com/my-account/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard' }>{ __( 'Pro Account', 'kadence-starter-templates' ) }</ExternalLink>
1092
  </div>
1093
  ) }
1094
  { ! pluginsMember && (
1097
  <Fragment>
1098
  <KadenceSubscribeForm
1099
  emailError={ this.state.emailError }
1100
+ onRun={ email => this.runSubscribe( email, item.slug ) }
1101
  />
1102
  <Button className="kb-skip-start" isPrimary disabled={ this.state.isFetching } onClick={ () => {
1103
  if ( this.state.removePast ) {
1196
  }
1197
  const KadenceSitesGrid = () => {
1198
  const control = this;
1199
+ const cats = [ 'all' ];
1200
+ if ( this.state.activeTemplates && Object.keys( this.state.activeTemplates ).length > 1 ) {
1201
+ { Object.keys( this.state.activeTemplates ).map( function( key, index ) {
1202
+ if ( control.state.activeTemplates[ key ].categories ) {
1203
+ for ( let c = 0; c < control.state.activeTemplates[ key ].categories.length; c++ ) {
1204
+ if ( ! cats.includes( control.state.activeTemplates[ key ].categories[ c ] ) ) {
1205
+ cats.push( control.state.activeTemplates[ key ].categories[ c ] );
1206
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1207
  }
1208
+ }
1209
+ } ) }
1210
+ }
1211
+ const catControlsRender = cats.map( ( item ) => {
1212
+ return (
1213
+ <MenuItem
1214
+ className={ ( item === control.state.category ? 'active-item' : '' ) }
1215
+ isSelected={ ( item === control.state.category ? true : false ) }
1216
+ onClick={ () => this.setState( { category: item } ) }
1217
+ >
1218
+ { control.capitalizeFirstLetter( item ) }
1219
+ </MenuItem>
1220
+ );
1221
+ } );
1222
+ return (
1223
+ <div className="kadence-site-grid-wrap">
1224
+ <div className="kadence-site-header">
1225
+ <div className="kadence-site-header-left">
1226
+ { this.state.starterSettings['builderType'] === 'blocks' && cats.length > 1 && (
1227
+ <Fragment>
1228
+ <span className="filter-title">{ __( 'Filter:', 'kadence-starter-templates' ) }</span>
1229
+ <Dropdown
1230
+ className="kadence-site-grid-header-popover"
1231
+ contentClassName="kst-category-popover"
1232
+ position="bottom center"
1233
+ label={ __( 'Select a Category', 'kadence-blocks' ) }
1234
+ renderToggle={ ( { isOpen, onToggle } ) => (
1235
+ <Button onClick={ onToggle } aria-expanded={ isOpen } icon={ tag } >
1236
+ { this.capitalizeFirstLetter( control.state.category ) }
1237
+ <Icon className="kst-chev" icon={ chevronDown } />
1238
+ </Button>
1239
+ ) }
1240
+ renderContent={ ( { isOpen, onToggle } ) => (
1241
+ <div>
1242
+ { catControlsRender }
1243
+ </div>
1244
+ ) }
1245
+ />
1246
+ <Dropdown
1247
+ className="kadence-site-grid-header-popover"
1248
+ contentClassName="kst-category-popover"
1249
+ position="bottom center"
1250
+ label={ __( 'Select Free or Pro', 'kadence-blocks' ) }
1251
+ renderToggle={ ( { isOpen, onToggle } ) => (
1252
+ <Button onClick={ onToggle } aria-expanded={ isOpen } icon={ heading } >
1253
+ { control.state.level === 'free' && (
1254
+ __( 'Free Only', 'kadence-starter-templates' )
1255
+ ) }
1256
+ { control.state.level === 'pro' && (
1257
+ __( 'Pro Only', 'kadence-starter-templates' )
1258
+ ) }
1259
+ { control.state.level === 'all' && (
1260
+ __( 'Free & Pro', 'kadence-starter-templates' )
1261
+ ) }
1262
+ <Icon className="kst-chev" icon={ chevronDown } />
1263
+ </Button>
1264
+ ) }
1265
+ renderContent={ ( { isOpen, onToggle } ) => (
1266
+ <div>
1267
+ <MenuItem
1268
+ className={ ( 'all' === control.state.level ? 'active-item' : '' ) }
1269
+ isSelected={ ( 'all' === control.state.level ? true : false ) }
1270
+ onClick={ () => this.setState( { level: 'all' } ) }
1271
+ >
1272
+ { __( 'Free & Pro', 'kadence-starter-templates' ) }
1273
+ </MenuItem>
1274
+ <MenuItem
1275
+ className={ ( 'pro' === control.state.level ? 'active-item' : '' ) }
1276
+ isSelected={ ( 'pro' === control.state.level ? true : false ) }
1277
+ onClick={ () => this.setState( { level: 'pro' } ) }
1278
+ >
1279
+ { __( 'Pro Only', 'kadence-starter-templates' ) }
1280
+ </MenuItem>
1281
+ <MenuItem
1282
+ className={ ( 'free' === control.state.level ? 'active-item' : '' ) }
1283
+ isSelected={ ( 'free' === control.state.level ? true : false ) }
1284
+ onClick={ () => this.setState( { level: 'free' } ) }
1285
+ >
1286
+ { __( 'Free Only', 'kadence-starter-templates' ) }
1287
+ </MenuItem>
1288
+ </div>
1289
+ ) }
1290
+ />
1291
+ </Fragment>
1292
+ ) }
1293
+ </div>
1294
+ <div className="kadence-site-grid-header-right">
1295
+ { this.state.starterSettings['builderType'] === 'blocks' && cats.length > 1 && (
1296
+ <span className="page-source-notice">{ __( 'This page is loaded from', 'kadence-starter-templates' ) + ' ' }<ExternalLink href={ 'https://www.kadencewp.com/?utm_source=in-app&utm_medium=kadence-starter-templates&utm_campaign=dashboard' }>kadencewp.com</ExternalLink></span>
1297
+ ) }
1298
+ </div>
1299
+ </div>
1300
+ <div className="templates-grid">
1301
+
1302
+ {/* { map( ( this.state.starterSettings['builderType'] === 'elementor' ? this.state.etemplates : this.state.templates ), ( { name, key, slug, image, content, categories, keywords, pro, pages } ) => { */}
1303
+ { Object.keys( this.state.activeTemplates ).map( function( key, index ) {
1304
+ const name = control.state.activeTemplates[key].name;
1305
+ const slug = control.state.activeTemplates[key].slug;
1306
+ const image = control.state.activeTemplates[key].image;
1307
+ const categories = control.state.activeTemplates[key].categories;
1308
+ const keywords = control.state.activeTemplates[key].keywords;
1309
+ const pro = control.state.activeTemplates[key].pro;
1310
+ const member = control.state.activeTemplates[key].member;
1311
+ const pages = control.state.activeTemplates[key].pages;
1312
+ if ( ( 'all' === control.state.category || categories.includes( control.state.category ) ) && ( 'all' === control.state.level || ( ( control.state.level === 'pro' && pro ) || ( control.state.level === 'free' && ! pro ) ) ) && ( ! control.state.search || ( keywords && keywords.some( x => x.toLowerCase().includes( control.state.search.toLowerCase() ) ) ) ) ) {
1313
+ return (
1314
+ <div className="kst-template-item">
1315
+ <Button
1316
+ key={ key }
1317
+ className="kst-import-btn"
1318
+ isSmall
1319
+ onClick={ () => ( 'custom' === control.state.starterSettings[ 'builderType' ] ? control.jumpToImport( slug ) : control.fullFocusMode( slug ) ) }
1320
+ //onClick={ () => control.fullFocusMode( slug ) }
1321
+ >
1322
+ <LazyLoad offsetBottom={700}>
1323
+ <img src={ pages && pages.home && pages.home.thumbnail ? pages.home.thumbnail : image } alt={ name } />
1324
+ </LazyLoad>
1325
+ <div className="demo-title">
1326
+ <h4>{ name }</h4>
1327
+ </div>
1328
+ </Button>
1329
+ { undefined !== pro && pro && (
1330
+ <Fragment>
1331
+ <span className="kb-pro-template">{ __( 'Pro', 'kadence-starter-sites' ) }</span>
1332
+ </Fragment>
1333
+ ) }
1334
+ </div>
1335
+ );
1336
+ }
1337
+ } ) }
1338
+ </div>
1339
  </div>
1340
  );
1341
  }
inc/react/src/single-template-import.js CHANGED
@@ -191,7 +191,7 @@ class KadenceSingleTemplateImport extends Component {
191
  { ! kadenceStarterParams.isKadence && (
192
  <div class="kadence_starter_templates_response">
193
  <h2>{ __( 'This Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
194
- <ExternalLink href={ 'https://kadence-theme.com/' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
195
  </div>
196
  ) }
197
  { kadenceStarterParams.isKadence && (
191
  { ! kadenceStarterParams.isKadence && (
192
  <div class="kadence_starter_templates_response">
193
  <h2>{ __( 'This Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
194
+ <ExternalLink href={ 'https://www.kadencewp.com/kadence-theme/' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
195
  </div>
196
  ) }
197
  { kadenceStarterParams.isKadence && (
inc/react/src/starter-templates.scss CHANGED
@@ -6,10 +6,25 @@ $color-gray-500: #A0AEC0;
6
  $color-gray-600: #718096;
7
  $color-gray-700: #4A5568;
8
  $color-gray-800: #2D3748;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  .kb-pro-template {
10
  padding: 4px 10px;
11
  position: absolute;
12
- z-index: 10000;
13
  bottom: 10px;
14
  right: 10px;
15
  background: #C53030;
@@ -475,6 +490,8 @@ h3.kst-selected-font-pair-title {
475
  }
476
  .components-modal__frame.kst-import-modal {
477
  max-width: 600px;
 
 
478
  }
479
  .components-modal__frame.kst-import-modal .components-button.is-primary {
480
  margin-top: 20px;
@@ -487,6 +504,12 @@ h3.kst-selected-font-pair-title {
487
  color: #4A5568;
488
  font-weight: normal;
489
  }
 
 
 
 
 
 
490
  .kst-import-modal ul.kadence-required-wrap {
491
  margin-bottom: 20px;
492
  }
@@ -504,6 +527,16 @@ h3.kst-selected-font-pair-title {
504
  color: #c05621;
505
  font-weight: bold;
506
  margin-top: 30px;
 
 
 
 
 
 
 
 
 
 
507
  }
508
  .kst-import-selection-title .components-button.kt-import-back {
509
  border: 1px solid;
@@ -1023,5 +1056,8 @@ button.components-button.kt-import-fullsite.is-primary {
1023
  display: block;
1024
  margin-bottom: 10px;
1025
  color: #d8000c;
1026
- background-color: #ffbaba;
1027
  }
 
 
 
6
  $color-gray-600: #718096;
7
  $color-gray-700: #4A5568;
8
  $color-gray-800: #2D3748;
9
+ .kadence-site-header-left {display: flex;align-items: center;}
10
+ .kadence-site-grid-wrap .kadence-site-header {display: flex;justify-content: space-between;align-items: center;}
11
+ .kadence-site-header-left .filter-title {margin-right: 10px;font-weight: bold;}
12
+ .kadence-site-grid-header-right {
13
+ text-align: right;
14
+ }
15
+ .kadence-site-header .page-source-notice {
16
+ color: $color-gray-600;
17
+ font-size: 85%;
18
+ a {
19
+ color: #0066CC;
20
+ font-weight: 500;
21
+ text-decoration: none;
22
+ }
23
+ }
24
  .kb-pro-template {
25
  padding: 4px 10px;
26
  position: absolute;
27
+ z-index: 10;
28
  bottom: 10px;
29
  right: 10px;
30
  background: #C53030;
490
  }
491
  .components-modal__frame.kst-import-modal {
492
  max-width: 600px;
493
+ position: relative;
494
+ max-height: 90%;
495
  }
496
  .components-modal__frame.kst-import-modal .components-button.is-primary {
497
  margin-top: 20px;
504
  color: #4A5568;
505
  font-weight: normal;
506
  }
507
+ .kadence-site-grid-header-popover .components-dropdown__content .components-button.components-menu-item__button.active-item {
508
+ border: 1px solid #a0aec0;
509
+ background: #EDF2F7;
510
+ font-weight: bold;
511
+ }
512
+ .kadence-site-grid-wrap .kadence-site-header {margin-top: -10px;padding-bottom: 10px;}
513
  .kst-import-modal ul.kadence-required-wrap {
514
  margin-bottom: 20px;
515
  }
527
  color: #c05621;
528
  font-weight: bold;
529
  margin-top: 30px;
530
+ display: flex;
531
+ align-items: center;
532
+ svg.components-spinner {
533
+ margin-top: 0;
534
+ }
535
+ }
536
+ .components-modal__content .kadence_starter_templates_response {
537
+ background: #edfaff;
538
+ border: 1px solid #1eb1ff;
539
+ color: #0d549b;
540
  }
541
  .kst-import-selection-title .components-button.kt-import-back {
542
  border: 1px solid;
1056
  display: block;
1057
  margin-bottom: 10px;
1058
  color: #d8000c;
1059
+ background-color: #ffdddf;
1060
  }
1061
+ .theme-install-overlay #kadence-starter-preview {
1062
+ width: 100%;
1063
+ }
kadence-starter-templates.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Kadence Starter Templates
4
  * Description: Choose the prebuilt website and click to import.
5
- * Version: 1.2.13
6
  * Author: Kadence WP
7
  * Author URI: https://kadencewp.com/
8
  * License: GPLv2 or later
2
  /**
3
  * Plugin Name: Kadence Starter Templates
4
  * Description: Choose the prebuilt website and click to import.
5
+ * Version: 1.2.14
6
  * Author: Kadence WP
7
  * Author URI: https://kadencewp.com/
8
  * License: GPLv2 or later
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Starter Templates by Kadence WP ===
2
  Contributors: britner
3
  Tags: templates, gutenberg
4
- Requires at least: 5.0
5
- Tested up to: 5.9
6
- Stable tag: 1.2.13
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -108,6 +108,12 @@ Absolutely not.
108
 
109
  == Changelog ==
110
 
 
 
 
 
 
 
111
  = 1.2.13 =
112
  * Update: Support for some third party plugins.
113
  * Update: Show 5.9 support.
1
  === Starter Templates by Kadence WP ===
2
  Contributors: britner
3
  Tags: templates, gutenberg
4
+ Requires at least: 5.2
5
+ Tested up to: 6.0
6
+ Stable tag: 1.2.14
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
108
 
109
  == Changelog ==
110
 
111
+ = 1.2.14 =
112
+ * Add: Filtering options.
113
+ * Fix: Issue with internal links breaking images on import.
114
+ * Fix: Modal title style issue.
115
+ * Fix: Preview iframe issue.
116
+
117
  = 1.2.13 =
118
  * Update: Support for some third party plugins.
119
  * Update: Show 5.9 support.
vendor/wxr-importer/Importer.php CHANGED
@@ -45,11 +45,6 @@ class Importer extends WXRImporter {
45
  * @return XMLReader|boolean Reader instance on success, false otherwise.
46
  */
47
  protected function get_reader( $file ) {
48
- // Avoid loading external entities for security
49
- $old_value = null;
50
- if ( function_exists( 'libxml_disable_entity_loader' ) ) {
51
- // $old_value = libxml_disable_entity_loader( true );
52
- }
53
 
54
  if ( ! class_exists( 'XMLReader' ) ) {
55
  $this->logger->critical( __( 'The XMLReader class is missing! Please install the XMLReader PHP extension on your server', 'wordpress-importer' ) );
@@ -60,10 +55,6 @@ class Importer extends WXRImporter {
60
  $reader = new XMLReader();
61
  $status = $reader->open( $file );
62
 
63
- if ( ! is_null( $old_value ) ) {
64
- // libxml_disable_entity_loader( $old_value );
65
- }
66
-
67
  if ( ! $status ) {
68
  $this->logger->error( __( 'Could not open the XML file for parsing!', 'wordpress-importer' ) );
69
 
45
  * @return XMLReader|boolean Reader instance on success, false otherwise.
46
  */
47
  protected function get_reader( $file ) {
 
 
 
 
 
48
 
49
  if ( ! class_exists( 'XMLReader' ) ) {
50
  $this->logger->critical( __( 'The XMLReader class is missing! Please install the XMLReader PHP extension on your server', 'wordpress-importer' ) );
55
  $reader = new XMLReader();
56
  $status = $reader->open( $file );
57
 
 
 
 
 
58
  if ( ! $status ) {
59
  $this->logger->error( __( 'Could not open the XML file for parsing!', 'wordpress-importer' ) );
60
 
vendor/wxr-importer/WXRImporter.php CHANGED
@@ -118,11 +118,6 @@ class WXRImporter extends \WP_Importer {
118
  * @return XMLReader|WP_Error Reader instance on success, error otherwise.
119
  */
120
  protected function get_reader( $file ) {
121
- // Avoid loading external entities for security
122
- $old_value = null;
123
- if ( function_exists( 'libxml_disable_entity_loader' ) ) {
124
- // $old_value = libxml_disable_entity_loader( true );
125
- }
126
  if ( ! class_exists( 'XMLReader' ) ) {
127
  $this->logger->critical( __( 'The XMLReader class is missing! Please install the XMLReader PHP extension on your server', 'wordpress-importer' ) );
128
 
@@ -131,10 +126,6 @@ class WXRImporter extends \WP_Importer {
131
  $reader = new XMLReader();
132
  $status = $reader->open( $file );
133
 
134
- if ( ! is_null( $old_value ) ) {
135
- // libxml_disable_entity_loader( $old_value );
136
- }
137
-
138
  if ( ! $status ) {
139
  return new WP_Error( 'wxr_importer.cannot_parse', __( 'Could not open the file for parsing', 'wordpress-importer' ) );
140
  }
118
  * @return XMLReader|WP_Error Reader instance on success, error otherwise.
119
  */
120
  protected function get_reader( $file ) {
 
 
 
 
 
121
  if ( ! class_exists( 'XMLReader' ) ) {
122
  $this->logger->critical( __( 'The XMLReader class is missing! Please install the XMLReader PHP extension on your server', 'wordpress-importer' ) );
123
 
126
  $reader = new XMLReader();
127
  $status = $reader->open( $file );
128
 
 
 
 
 
129
  if ( ! $status ) {
130
  return new WP_Error( 'wxr_importer.cannot_parse', __( 'Could not open the file for parsing', 'wordpress-importer' ) );
131
  }