From 89e88e6b6541b509cdc543a2f9f972f2b1397bd8 Mon Sep 17 00:00:00 2001 From: mutendebrian Date: Tue, 11 Feb 2020 00:58:15 +0300 Subject: [PATCH] 1.2.3 release --- .distignore | 29 - .gitattributes | 18 + .github/workflows/assets.yml | 17 + .github/workflows/wordpress.yml | 17 + includes/admin/class-noptin-settings.php | 8 - includes/admin/welcome.php | 2 +- includes/assets/css/admin.css | 2139 +----------------- includes/assets/js/dist/admin.js | 281 +-- includes/assets/js/dist/blocks.js | 101 +- includes/assets/js/dist/frontend.js | 123 +- includes/assets/js/dist/newsletter-editor.js | 125 +- includes/assets/js/dist/optin-editor.js | 496 +--- includes/assets/js/dist/settings.js | 425 +--- includes/assets/js/dist/subscribers.js | 118 +- includes/class-noptin-ajax.php | 80 +- includes/class-noptin-mailer.php | 4 +- includes/class-noptin-new-post-notify.php | 36 +- phpcs.xml.dist | 1 + postcss.config.js | 2 +- readme.txt | 8 + templates/automation-campaign-form.php | 4 +- templates/debug-log.php | 2 +- templates/email-campaigns.php | 2 +- templates/email-templates/footer.php | 68 +- templates/email-templates/index.php | 1 + templates/email-templates/logo.php | 10 +- templates/email-templates/paste.php | 406 ++-- templates/fields-editor.php | 4 +- templates/newsletter-campaign-form.php | 4 +- templates/single-subscriber.php | 8 +- webpack.config.js | 2 +- 31 files changed, 469 insertions(+), 4072 deletions(-) delete mode 100644 .distignore create mode 100644 .gitattributes create mode 100644 .github/workflows/assets.yml create mode 100644 .github/workflows/wordpress.yml diff --git a/.distignore b/.distignore deleted file mode 100644 index 8132804c..00000000 --- a/.distignore +++ /dev/null @@ -1,29 +0,0 @@ -# A set of files you probably don't want in your WordPress.org distribution -.distignore -.editorconfig -.git -.gitignore -.gitlab-ci.yml -.travis.yml -.DS_Store -Thumbs.db -behat.yml -bin -circle.yml -composer.json -composer.lock -Gruntfile.js -package.json -phpunit.xml -phpunit.xml.dist -multisite.xml -multisite.xml.dist -phpcs.ruleset.xml -README.md -wp-cli.local.yml -tests -vendor -node_modules -*.sql -*.tar.gz -*.zip diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5bab3b63 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +/tests/ export-ignore +/.github/ export-ignore +/.wordpress-org/ export-ignore +/bin export-ignore +/node_modules export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.distignore export-ignore +.editorconfig export-ignore +.travis.yml export-ignore +CODE_OF_CONDUCT.md export-ignore +Gruntfile.js export-ignore +package-lock.json export-ignore +package.json export-ignore +phpcs.xml.dist export-ignore +phpunit.xml.dist export-ignore +postcss.config.js export-ignore +webpack.config.js export-ignore \ No newline at end of file diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml new file mode 100644 index 00000000..345586b4 --- /dev/null +++ b/.github/workflows/assets.yml @@ -0,0 +1,17 @@ +name: Plugin asset/readme update +on: + push: + branches: + - stable +jobs: + stable: + name: Push to stable + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: WordPress.org plugin asset/readme update + uses: 10up/action-wordpress-plugin-asset-update@master + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: newsletter-optin-box diff --git a/.github/workflows/wordpress.yml b/.github/workflows/wordpress.yml new file mode 100644 index 00000000..338243eb --- /dev/null +++ b/.github/workflows/wordpress.yml @@ -0,0 +1,17 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@master + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: newsletter-optin-box diff --git a/includes/admin/class-noptin-settings.php b/includes/admin/class-noptin-settings.php index ab644609..badcc84d 100644 --- a/includes/admin/class-noptin-settings.php +++ b/includes/admin/class-noptin-settings.php @@ -117,14 +117,6 @@ public static function get_settings() { 'description' => __( 'Notify the site admin every time a new subscriber signs up for the newsletter.', 'newsletter-optin-box' ), ), - 'double_optin' => array( - 'el' => 'input', - 'type' => 'checkbox_alt', - 'section' => 'general', - 'label' => __( 'Double Optin', 'newsletter-optin-box' ), - 'description' => __( 'Require new subscribers to confirm their email addresses.', 'newsletter-optin-box' ), - ), - 'comment_form' => array( 'el' => 'input', 'type' => 'checkbox_alt', diff --git a/includes/admin/welcome.php b/includes/admin/welcome.php index 6177eecc..72850962 100644 --- a/includes/admin/welcome.php +++ b/includes/admin/welcome.php @@ -1,6 +1,6 @@
-

Noptin v1.2.2

+

Noptin v1.2.3

diff --git a/includes/assets/css/admin.css b/includes/assets/css/admin.css index 2bbc2f7a..509481ba 100644 --- a/includes/assets/css/admin.css +++ b/includes/assets/css/admin.css @@ -1,2138 +1 @@ -.noptin-popup-designer .popper { - width: auto; - max-width: 80%; - background-color: #e0e0e0; - color: #263238; - text-align: center; - padding: 2px; - display: inline-block; - border-radius: 3px; - position: absolute; - font-size: 14px; - font-weight: normal; - border: 1px #ebebeb solid; - z-index: 200000; - box-shadow: rgb(58, 58, 58) 0 0 6px 0; - } - - .noptin-popup-designer .popper .popper__arrow { - width: 0; - height: 0; - border-style: solid; - position: absolute; - margin: 5px; - } - - .noptin-popup-designer .popper[x-placement^="top"] { - margin-bottom: 5px; - } - - .noptin-popup-designer .popper[x-placement^="top"] .popper__arrow { - border-width: 5px 5px 0 5px; - border-color: #fafafa transparent transparent transparent; - bottom: -5px; - left: calc(50% - 5px); - margin-top: 0; - margin-bottom: 0; - } - - .noptin-popup-designer .popper[x-placement^="bottom"] { - margin-top: 5px; - } - - .noptin-popup-designer .popper[x-placement^="bottom"] .popper__arrow { - border-width: 0 5px 5px 5px; - border-color: transparent transparent #fafafa transparent; - top: -5px; - left: calc(50% - 5px); - margin-top: 0; - margin-bottom: 0; - } - - .noptin-popup-designer .popper[x-placement^="right"] { - margin-left: 5px; - } - - .noptin-popup-designer .popper[x-placement^="right"] .popper__arrow { - border-width: 5px 5px 5px 0; - border-color: transparent #fafafa transparent transparent; - left: -5px; - top: calc(50% - 5px); - margin-left: 0; - margin-right: 0; - } - - .noptin-popup-designer .popper[x-placement^="left"] { - margin-right: 5px; - } - - .noptin-popup-designer .popper[x-placement^="left"] .popper__arrow { - border-width: 5px 0 5px 5px; - border-color: transparent transparent transparent #fafafa; - right: -5px; - top: calc(50% - 5px); - margin-left: 0; - margin-right: 0; - } -fieldset[disabled] .vue-swatches { - pointer-events: none -} -.vue-swatches { - outline: none -} -.vue-swatches__trigger { - display: inline-block; - cursor: pointer; - box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.16), 0 1px 4px 0 rgba(0, 0, 0, 0.12); -} -.vue-swatches__trigger.vue-swatches--is-empty { - border: 2px solid #ccc -} -.vue-swatches__trigger.vue-swatches--is-disabled { - cursor: not-allowed -} -.vue-swatches__container { - box-sizing: content-box; - padding: 5px; - margin-right: 10px; -} -.vue-swatches__container:not(.vue-swatches--inline) { - position: absolute; - display: block; - overflow: auto; - border-radius: 5px; - box-shadow: 0 2px 3px hsla(0, 0%, 4%, .2), 0 0 0 1px hsla(0, 0%, 4%, .2); - z-index: 50 -} -.vue-swatches__wrapper { - background-color: inherit -} -.vue-swatches__row { - font-size: 0 -} -.vue-swatches__fallback__wrapper { - display: table -} -.vue-swatches__fallback__input--wrapper { - display: table-cell; - padding-right: 10px; - width: 100%; - font-size: 14px -} -.vue-swatches__fallback__input { - width: 100%; - padding-top: 6px; - padding-bottom: 6px; - border-radius: 5px; - border: 1px solid #dcdcdc; - color: #35495e; - background: #fff -} -.vue-swatches__fallback__button { - display: table-cell; - padding: 6px 15px; - border: 0; - cursor: pointer; - font-weight: 700; - color: #fff; - background-color: #3571c8; - border-radius: 5px -} -.vue-swatches-show-hide-enter-active, -.vue-swatches-show-hide-leave-active { - transition: all .3s ease -} -.vue-swatches-show-hide-enter, -.vue-swatches-show-hide-leave-active { - opacity: 0 -} -.vue-swatches--has-children-centered { - display: flex; - align-items: center; - justify-content: center -} -.vue-swatches__diagonal--wrapper { - width: 100%; - height: 100% -} -.vue-swatches__diagonal { - width: 75%; - height: 75%; - background: linear-gradient(to top right, transparent 0, transparent calc(50% - 2.4px), #de080a 50%, transparent calc(50% + 2.4px), transparent) -} -.vue-swatches__swatch { - position: relative; - font-size: 0 -} -.vue-swatches__swatch:focus, -.vue-swatches__swatch:hover { - opacity: .9; - box-shadow: inset 0 0 2px rgba(0, 0, 0, .75); - outline: none -} -.vue-swatches__swatch.vue-swatches__swatch--border, -.vue-swatches__swatch.vue-swatches__swatch--selected { - box-shadow: inset 0 0 2px rgba(0, 0, 0, .75) -} -.vue-swatches__swatch .vue-swatches__diagonal--wrapper { - position: absolute -} -.vue-swatches__check__wrapper { - position: absolute; - width: 100%; - height: 100% -} -.vue-swatches__check__circle { - width: 21px; - height: 21px; - border-radius: 50%; - background-color: rgba(0, 0, 0, .15) -} -.vue-swatches__check__path { - fill: #fff -} -.noptin-popup-designer .gu-mirror { - position: fixed !important; - margin: 0 !important; - z-index: 9999 !important; - opacity: 0.8; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; - filter: alpha(opacity=80); - } -.noptin-popup-designer .gu-hide { - display: none !important; - } -.noptin-popup-designer .gu-unselectable { - -webkit-user-select: none !important; - -moz-user-select: none !important; - -ms-user-select: none !important; - user-select: none !important; - } -.noptin-popup-designer .gu-transit { - opacity: 0.2; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"; - filter: alpha(opacity=20); - } -@-webkit-keyframes medium-editor-image-loading { - 0% { - transform: scale(0); - } - - 100% { - transform: scale(1); - } -} -@keyframes medium-editor-image-loading { - 0% { - transform: scale(0); - } - - 100% { - transform: scale(1); - } -} -@-webkit-keyframes medium-editor-pop-upwards { - 0% { - opacity: 0; - transform: matrix(0.97, 0, 0, 1, 0, 12); - } - - 20% { - opacity: .7; - transform: matrix(0.99, 0, 0, 1, 0, 2); - } - - 40% { - opacity: 1; - transform: matrix(1, 0, 0, 1, 0, -1); - } - - 100% { - transform: matrix(1, 0, 0, 1, 0, 0); - } -} -@keyframes medium-editor-pop-upwards { - 0% { - opacity: 0; - transform: matrix(0.97, 0, 0, 1, 0, 12); - } - - 20% { - opacity: .7; - transform: matrix(0.99, 0, 0, 1, 0, 2); - } - - 40% { - opacity: 1; - transform: matrix(1, 0, 0, 1, 0, -1); - } - - 100% { - transform: matrix(1, 0, 0, 1, 0, 0); - } -} -.post-type-noptin-form .medium-editor-anchor-preview { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 16px; - left: 0; - line-height: 1.4; - max-width: 280px; - position: absolute; - text-align: center; - top: 0; - word-break: break-all; - word-wrap: break-word; - visibility: hidden; - z-index: 2000; - } -.post-type-noptin-form .medium-editor-anchor-preview a { - color: #fff; - display: inline-block; - margin: 5px 5px 10px; - } -.post-type-noptin-form .medium-editor-anchor-preview-active { - visibility: visible; - } -.post-type-noptin-form .medium-editor-dragover { - background: #ddd; - } -.post-type-noptin-form .medium-editor-image-loading { - -webkit-animation: medium-editor-image-loading 1s infinite ease-in-out; - animation: medium-editor-image-loading 1s infinite ease-in-out; - background-color: #333; - border-radius: 100%; - display: inline-block; - height: 40px; - width: 40px; - } -.post-type-noptin-form .medium-editor-placeholder { - position: relative; - } -.post-type-noptin-form .medium-editor-placeholder:after { - content: attr(data-placeholder) !important; - font-style: italic; - position: absolute; - left: 0; - top: 0; - white-space: pre; - padding: inherit; - margin: inherit; - } -.post-type-noptin-form .medium-editor-placeholder-relative { - position: relative; - } -.post-type-noptin-form .medium-editor-placeholder-relative:after { - content: attr(data-placeholder) !important; - font-style: italic; - position: relative; - white-space: pre; - padding: inherit; - margin: inherit; - } -.post-type-noptin-form .medium-toolbar-arrow-under:after, - .post-type-noptin-form .medium-toolbar-arrow-over:before { - border-style: solid; - content: ''; - display: block; - height: 0; - left: 50%; - margin-left: -8px; - position: absolute; - width: 0; - } -.post-type-noptin-form .medium-toolbar-arrow-under:after { - border-width: 8px 8px 0 8px; - } -.post-type-noptin-form .medium-toolbar-arrow-over:before { - border-width: 0 8px 8px 8px; - top: -8px; - } -.post-type-noptin-form .medium-editor-toolbar { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 16px; - left: 0; - position: absolute; - top: 0; - visibility: hidden; - z-index: 2000; - } -.post-type-noptin-form .medium-editor-toolbar ul { - margin: 0; - padding: 0; - } -.post-type-noptin-form .medium-editor-toolbar li { - float: left; - list-style: none; - margin: 0; - padding: 0; - } -.post-type-noptin-form .medium-editor-toolbar li button { - box-sizing: border-box; - cursor: pointer; - display: block; - font-size: 14px; - line-height: 1.33; - margin: 0; - padding: 15px; - text-decoration: none; - } -.post-type-noptin-form .medium-editor-toolbar li button:focus { - outline: none; - } -.post-type-noptin-form .medium-editor-toolbar li .medium-editor-action-underline { - text-decoration: underline; - } -.post-type-noptin-form .medium-editor-toolbar li .medium-editor-action-pre { - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; - font-weight: 100; - padding: 15px 0; - } -.post-type-noptin-form .medium-editor-toolbar-active { - visibility: visible; - } -.post-type-noptin-form .medium-editor-sticky-toolbar { - position: fixed; - top: 1px; - } -.post-type-noptin-form .medium-editor-relative-toolbar { - position: relative; - } -.post-type-noptin-form .medium-editor-toolbar-active.medium-editor-stalker-toolbar { - -webkit-animation: medium-editor-pop-upwards 160ms forwards linear; - animation: medium-editor-pop-upwards 160ms forwards linear; - } -.post-type-noptin-form .medium-editor-action-bold { - font-weight: bolder; - } -.post-type-noptin-form .medium-editor-action-italic { - font-style: italic; - } -.post-type-noptin-form .medium-editor-toolbar-form { - display: none; - } -.post-type-noptin-form .medium-editor-toolbar-form input, - .post-type-noptin-form .medium-editor-toolbar-form a { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - } -.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-form-row { - line-height: 14px; - margin-left: 5px; - padding-bottom: 5px; - } -.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-input, - .post-type-noptin-form .medium-editor-toolbar-form label { - border: none; - box-sizing: border-box; - font-size: 14px; - margin: 0; - padding: 6px; - width: 316px; - display: inline-block; - } -.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-input:focus, - .post-type-noptin-form .medium-editor-toolbar-form label:focus { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - border: none; - box-shadow: none; - outline: 0; - } -.post-type-noptin-form .medium-editor-toolbar-form a { - display: inline-block; - font-size: 24px; - font-weight: bolder; - margin: 0 10px; - text-decoration: none; - } -.post-type-noptin-form .medium-editor-toolbar-form-active { - display: block; - } -.post-type-noptin-form .medium-editor-toolbar-actions:after { - clear: both; - content: ""; - display: table; - } -.post-type-noptin-form .medium-editor-element { - word-wrap: break-word; - min-height: 30px; - } -.post-type-noptin-form .medium-editor-element img { - max-width: 100%; - } -.post-type-noptin-form .medium-editor-element sub { - vertical-align: sub; - } -.post-type-noptin-form .medium-editor-element sup { - vertical-align: super; - } -.post-type-noptin-form .medium-editor-hidden { - display: none; - } -.post-type-noptin-form .medium-toolbar-arrow-under:after { - border-color: #242424 transparent transparent transparent; - top: 50px; - } -.post-type-noptin-form .medium-toolbar-arrow-over:before { - border-color: transparent transparent #242424 transparent; - top: -8px; - } -.post-type-noptin-form .medium-editor-toolbar { - background-color: #242424; - background: linear-gradient(to bottom, #242424, rgba(36, 36, 36, 0.75)); - border: 1px solid #000; - border-radius: 5px; - box-shadow: 0 0 3px #000; - } -.post-type-noptin-form .medium-editor-toolbar li button { - background-color: #242424; - background: linear-gradient(to bottom, #242424, rgba(36, 36, 36, 0.89)); - border: 0; - border-right: 1px solid #000; - border-left: 1px solid #333; - border-left: 1px solid rgba(255, 255, 255, 0.1); - box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3); - color: #fff; - height: 50px; - min-width: 50px; - transition: background-color .2s ease-in; - } -.post-type-noptin-form .medium-editor-toolbar li button:hover { - background-color: #000; - color: yellow; - } -.post-type-noptin-form .medium-editor-toolbar li .medium-editor-button-first { - border-bottom-left-radius: 5px; - border-top-left-radius: 5px; - } -.post-type-noptin-form .medium-editor-toolbar li .medium-editor-button-last { - border-bottom-right-radius: 5px; - border-top-right-radius: 5px; - } -.post-type-noptin-form .medium-editor-toolbar li .medium-editor-button-active { - background-color: #000; - background: linear-gradient(to bottom, #242424, rgba(0, 0, 0, 0.89)); - color: #fff; - } -.post-type-noptin-form .medium-editor-toolbar-form { - background: #242424; - border-radius: 5px; - color: #999; - } -.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-input { - background: #242424; - box-sizing: border-box; - color: #ccc; - height: 50px; - } -.post-type-noptin-form .medium-editor-toolbar-form a { - color: #fff; - } -.post-type-noptin-form .medium-editor-toolbar-anchor-preview { - background: #242424; - border-radius: 5px; - color: #fff; - } -.post-type-noptin-form .medium-editor-placeholder:after { - color: #b3b3b1; - } -body.post-type-noptin-form.post-php { - overflow: hidden; -} -.noptin-form-designer-loader { - position: fixed; - background: #fff; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 2000; - display: flex; - align-items: center; - justify-content: center; -} -.noptin-subscribers-header { - display: flex; -} -.noptin-subscribers-header .noptin-col-2 { - margin-right: 2rem; - } -.noptin-download-section { - margin-top: 16px; - display: flex; - flex-direction: row-reverse; -} -.noptin-welcome { - max-width: 800px; -} -.noptin-welcome .noptin-main-header { - display: flex; - align-items: center; - } -.noptin-welcome .noptin-main-header h1 { - flex: 1; - } -.noptin-welcome .noptin-main-header a { - font-size: 16px; - color: #00695c !important; - } -.noptin-welcome .noptin-header { - padding: 13px; - border-bottom: none; - display: flex; - justify-content: space-between; - align-items: center; - } -.noptin-welcome .noptin-header a { - color: #222222 !important; - } -.noptin-welcome .noptin-header h2 { - margin: 0 16px 0 0; - padding: 3px 0; - font-size: 18px; - font-size: 1.125rem; - line-height: 2.2; - font-weight: 600; - } -.noptin-welcome .noptin-header hr { - align-self: center; - flex-grow: 1; - margin: 0 10px; - } -.noptin-welcome .noptin-body { - margin-left: 48px; - border-bottom: none; - margin-left: 20px; - } -.noptin-welcome .noptin-body p { - font-size: 16px; - } -.noptin-welcome .noptin-body a { - font-size: 16px; - color: #ff6f00 !important; - } -.noptin-welcome .noptin-cards-container { - margin-bottom: 24px; - } -.noptin-welcome .noptin-cards-container .noptin-card-footer-links { - padding: 16px; - } -.noptin-welcome .noptin-cards-container .noptin-cards-list { - background-color: #f8f9f9; - margin: 0; - display: flex; - border-width: 1px 0 0 1px; - border-style: solid; - border-color: #ccd0d4; - box-shadow: inset -1px -1px 0 #ccd0d4; - flex-wrap: wrap; - } -.noptin-welcome .noptin-cards-container .noptin-cards-list .noptin-card { - margin-bottom: 0; - background-color: #fff; - display: flex; - flex-direction: column; - height: 100%; - padding: 16px; - border-bottom: 1px solid #e2e4e7; - border-right: 1px solid #e2e4e7; - line-height: 1.4em; - text-decoration: none; - width: calc(30% - 7px); - } -.noptin-welcome .noptin-cards-container .noptin-cards-list .noptin-card span.noptin-card-label { - display: block; - margin-bottom: 16px; - font-size: 11px; - font-size: 0.6875rem; - text-transform: uppercase; - color: #6c7781; - } -.noptin-welcome .noptin-cards-container .noptin-cards-list .noptin-card span.noptin-card-value { - margin-bottom: 4px; - font-size: 18px; - font-size: 1.125rem; - font-weight: 500; - color: #191e23; - } -.noptin-big { - font-size: 1.5em; -} -.noptin-small { - font-size: .8em; - opacity: 0.6; - font-weight: 400; -} -.wrap.noptin-container { - display: flex; -} -.wrap.noptin-container .noptin-col-2 { - margin-right: 20px; - } -.wrap.noptin-container h1 { - font-size: 50px; -} -.noptin-color { - color: #38f094 !important; -} -.noptin-bg { - background-color: #38f094 !important; -} -.noptin-divider { - height: 1px; - overflow: hidden; - background-color: #e0e0e0; -} -.noptin-hero { - margin-bottom: 32px; - color: #009688; -} -.noptin-container { - margin: 0; - max-width: 1000px; - margin-top: 1rem; -} -.noptin-row { - margin-left: auto; - margin-right: auto; - margin-bottom: 20px -} -.noptin-row:after { - content: ""; - display: table; - clear: both -} -.noptin-col { - width: 100%; -} -.noptin-nag { - display: flex; - flex-flow: column; -} -@media only screen and (min-width: 601px) { - .noptin-nag { - flex-flow: row; - } - - .noptin-nag-item { - margin-right: 16px; - } -} -.noptin-popup-designer { - position: absolute; - top: 0; - right: 0; - background: #fff; - z-index: 100; -} -#noptin_form_editor .noptin-popup-designer { - position: fixed; - bottom: 0; - right: 0; - top: 32px; - left: 0; - padding-left: 20px; - overflow: auto -} -@media only screen and (max-width: 782px) { -#noptin_form_editor .noptin-popup-designer { - left: 0 !important; - padding: 20px -} - } -#noptin_form_editor .noptin-popup-editor-toolbar { - flex-grow: 1.5; - } -#noptin_form_editor .noptin-popup-editor-header { - min-height: 64px; - display: flex; - align-items: center - - } -@media only screen and (max-width: 784px) { - - #noptin_form_editor .noptin-popup-editor-header { - margin-top: 60px - - } - } -#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-header-button { - margin: 0 12px 0 3px; - padding: 0 12px 2px; - height: 33px; - line-height: 32px; - font-size: 13px - } -@media only screen and (max-width: 784px) { - - #noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-header-button { - display: block; - margin: auto; - margin-bottom: 10px - } - } -#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title { - flex-grow: 7.5; - font-size: 24px; - display: flex; - align-items: center - } -@media only screen and (max-width: 784px) { - - #noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title { - flex-direction: column-reverse; - width: 90% - } - } -#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title .noptin-popup-editor-main-preview-name-textarea { - overflow: hidden; - word-wrap: break-word; - resize: none; - display: block; - width: 100%; - margin: 12px 0; - background: transparent; - line-height: 1.4; - color: #191e23; - transition: border .1s ease-out, box-shadow .1s linear; - padding: 4px 14px; - word-break: keep-all; - border-color: #f5f5f5; - border-style: solid; - border-width: 1px; - outline: 1px solid transparent; - font-size: 24px; - font-weight: 600; - box-shadow: -3px 0 0 0 #e2e4e7 - } -#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title .noptin-popup-editor-main-preview-name-textarea:focus { - border-width: 1px 1px 1px 0; - border-color: rgba(66, 88, 99, .4); - box-shadow: inset 3px 0 0 0 #555d66; - } -#noptin_form_editor .noptin-popup-editor-header, - #noptin_form_editor .noptin-popup-editor-body { - display: flex - } -@media only screen and (max-width: 784px) { - - #noptin_form_editor .noptin-popup-editor-header, - #noptin_form_editor .noptin-popup-editor-body { - flex-direction: column-reverse - } - } -#noptin_form_editor .noptin-popup-editor-main { - overflow: auto; - margin-bottom: 16px; - margin-top: 16px - - } -@media only screen and (min-width: 605px) { - - #noptin_form_editor .noptin-popup-editor-main { - flex-grow: 7; - border-right: 1px solid #e2e4e7; - max-width: 70%; - display: flex; - justify-content: center; - padding: 40px - - } - } -#noptin_form_editor .noptin-popup-editor-sidebar { - flex-grow: 3; - width: 300px; - max-width: 300px; - overflow: auto; - color: #555d66 - } -@media only screen and (max-width: 784px) { - - #noptin_form_editor .noptin-popup-editor-sidebar { - width: 100%; - max-width: 100% - } - } -#noptin_form_editor .noptin-popup-editor-sidebar-header { - background: #f3f4f5; - justify-content: flex-start; - border-top: 0; - position: -webkit-sticky; - position: sticky; - z-index: 10; - top: 0; - display: flex; - align-items: center; - padding: 0 16px; - padding-left: 0; - padding-right: 4px; - height: 50px; - border-bottom: 1px solid #e2e4e7; - } -#noptin_form_editor .noptin-popup-editor-sidebar-header ul { - display: flex; - } -#noptin_form_editor .noptin-popup-editor-sidebar-header ul li { - margin: 0; - padding: 0; - } -#noptin_form_editor .noptin-popup-editor-sidebar-section-header { - background: transparent; - border: none; - border-radius: 0; - cursor: pointer; - height: 49px; - padding: 3px 12px; - margin-left: 0; - font-weight: 400; - color: #191e23; - outline-offset: -1px; - font-size: 13px; - } -#noptin_form_editor .noptin-popup-editor-sidebar-section-header.active, - #noptin_form_editor .noptin-popup-editor-sidebar-section-header:active { - outline: none; - box-shadow: inset 0 -3px #007cba; - font-weight: 500; - position: relative; - } -#noptin_form_editor .noptin-popup-editor-panel { - border-top: 1px solid #e2e4e7; - position: relative; - } -#noptin_form_editor .noptin-popup-editor-panel:first-child { - margin-top: -1px; - } -#noptin_form_editor .noptin-popup-editor-panel:last-child { - border-bottom: 1px solid #e2e4e7; - } -#noptin_form_editor .noptin-popup-editor-panel-header .noptin-popup-editor-panel-title { - display: block; - padding: 0; - font-size: inherit; - margin-top: 0; - margin-bottom: 0; - transition: background .1s ease-in-out; - color: #555d66; - margin: 0 - } -#noptin_form_editor .noptin-popup-editor-panel-header .noptin-popup-editor-panel-title:hover { - background: #f3f4f5; - } -#noptin_form_editor .noptin-popup-editor-panel-header .noptin-popup-editor-panel-title button { - position: relative; - padding: 15px; - outline: none; - width: 100%; - font-weight: 600; - text-align: left; - color: #191e23; - border: none; - box-shadow: none; - transition: background .1s ease-in-out; - display: inline-flex; - text-decoration: none; - font-size: 13px; - margin: 0; - cursor: pointer; - -webkit-appearance: none; - background: none; - } -#noptin_form_editor .noptin-popup-editor-panel-toggle { - position: absolute; - right: 10px; - } -#noptin_form_editor .noptin-popup-editor-panel-body { - overflow: hidden; - padding: 20px; - } -.noptin-padded { - padding: 10px; -} -.noptin-fields input[type="text"], -.noptin-fields input[type="email"] { - font-size: 13px; - padding: 6px 8px; - box-shadow: 0 0 0 transparent; - transition: box-shadow .1s linear; - border-radius: 4px; - border: 1px solid #8d96a0; - width: 100%; -} -.noptin-fields select { - width: 100%; -} -.noptin-select-wrapper { - margin-bottom: 32px; -} -.noptin-field-editor-body .noptin-select-wrapper { - margin-bottom: 16px; -} -.noptin-select-wrapper label { - display: block; - width: 100%; -} -.noptin-fields [type="checkbox"] { - border-radius: 4px; - border: 1px solid #8d96a0; - margin: 0 6px 0 0; -} -.noptin-checkbox-wrapper, -.noptin-switch-wrapper { - display: flex; - margin-bottom: 25px; - margin-top: 10px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - position: relative; - padding-left: 40px; -} -.noptin-checkmark { - position: absolute; - top: 0; - left: 0; - height: 20px; - width: 20px; - background-color: #eee; - border: 2px solid #6c7781; - border-radius: 2px; - transition: all 0.3s cubic-bezier(.25, .8, .25, 1); -} -.noptin-checkbox-wrapper:hover input~.noptin-checkmark, -.noptin-radio-wrapper:hover input~.noptin-checkmark { - background-color: #ddd; -} -.noptin-checkbox-wrapper input:checked~.noptin-checkmark, -.noptin-radio-wrapper input:checked~.noptin-checkmark { - background-color: #1ea9ea; - border: none; -} -.noptin-checkmark:after { - content: ""; - position: absolute; - display: none; - left: 7px; - top: 2px; - width: 5px; - height: 10px; - border: solid white; - border-width: 0 3px 3px 0; - transform: rotate(45deg); -} -.noptin-checkbox-wrapper input:checked~.noptin-checkmark:after, -.noptin-radio-wrapper input:checked~.noptin-checkmark:after { - display: block; -} -.noptin-text-wrapper { - margin-top: 16px; - margin-bottom: 32px; - display: block; -} -.noptin-field-editor-body .noptin-text-wrapper { - margin-bottom: 16px; - margin-top: 8px; -} -.noptin-label { - flex: 1 0 0; -} -.noptin-add-button, -.noptin-add-button:hover, -.noptin-add-button:active, -.noptin-add-button:visited { - background: #1ea9ea; - border: 1px solid #1ea9ea; - color: #fff; - border: 0; - border-radius: 4px; - cursor: pointer; - display: inline-block; - font-size: 17px; - padding: 10px 30px; - text-align: center; - text-decoration: none; - text-transform: uppercase; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} -.noptin-add-button .dashicons { - vertical-align: bottom; -} -.noptin-switch-slider { - position: relative; - display: flex; - width: 36px; - height: 18px; - cursor: pointer; - align-items: center; - justify-content: flex-start; - border-radius: 10px; - background-color: #eee; - transition: .4s; - margin-right: 10px; -} -input:checked+.noptin-switch-slider { - justify-content: flex-end; -} -.noptin-switch-slider span { - background-color: #9e9e9e; - transition: .4s; - width: 18px; - height: 12px; - border-radius: 5px; -} -input:checked+.noptin-switch-slider span { - background-color: #4CAF50; -} -input:focus+.noptin-switch-slider span { - background-color: #2196F3 -} -.noptin-textarea-wrapper label { - display: block; - margin-bottom: 6px; - margin-top: 20px; -} -.noptin-textarea-wrapper textarea { - width: 100%; - height: 80px; - margin-bottom: 32px; -} -.noptin-textarea-wrapper .CodeMirror { - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); - padding: 4px; - margin-top: 20px; -} -.noptin-image-wrapper { - margin-bottom: 10px; - margin-top: 10px; -} -.noptin-image-wrapper .image-uploader { - display: flex; -} -.noptin-fields .noptin-image-wrapper input[type="text"], -.noptin-fields .noptin-image-wrapper input[type="email"] { - padding: 4px 8px; -} -.noptin-fields .noptin-image-wrapper input[type="button"] { - margin-left: 4px; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); - border: none; -} -.noptin-radio-wrapper { - margin-bottom: 15px; - margin-top: 32px; - display: block; -} -.noptin-radio-wrapper .noptin-checkmark { - border-radius: 50%; -} -.noptin-radio-wrapper span:first-child { - font-weight: 500; -} -.noptin-radio-wrapper label { - display: block; - margin-bottom: 12px; - position: relative; - padding-left: 35px; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.noptin-color-wrapper { - display: flex; - margin-bottom: 12px; -} -.noptin-radio-button-wrapper .noptin-buttons { - display: flex; - padding-top: 16px; - flex-wrap: wrap; -} -.noptin-radio-button-wrapper label { - padding: 0; - margin: 0; - margin-bottom: 32px; -} -.noptin-radio-button-wrapper label span { - padding: .5em 1em; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); - margin-right: 3px; -} -.noptin-radio-button-wrapper label input:checked+span { - background-color: #1ea9ea; - color: #fff; -} -/* Quick Editor */ -.noptin-form-editor-step { - min-width: 400px; - max-width: 100%; -} -.noptin-form-editor-step .noptin-text-wrapper>span, -.noptin-optin_types-wrapper>label, -.noptin-templates-wrapper>label, -.noptin-templates-select>label:not(.noptin-checkbox-wrapper) { - display: block; - width: 100%; - display: block; - width: 100%; - font-size: 18px; - margin-bottom: 4px; - font-weight: 500; -} -.noptin-form-editor-step .noptin-text-wrapper input { - background: #e0e0e0; - background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); - border: 1px solid #9e9e9e; - border-radius: 2px; - color: #686868; - padding: 0.625em 0.4375em; - width: 100%; -} -.noptin-optin_types { - display: flex; -} -.noptin-templates { - display: flex; -} -.noptin-template { - width: 50%; -} -.noptin-title-editor, -.noptin-note-editor, -.noptin-description-editor { - margin-bottom: 48px; -} -.noptin-template .noptin-popup-form-wrapper { - transform: scale(0.8); -} -.noptin-optin_type { - margin-right: 16px; - margin-top: 16px; - cursor: pointer; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - min-width: 160px; - min-height: 160px; -} -.noptin-optin_type .noptin-optin_type-icon { - font-size: 32px; - margin-left: -8px; - margin-bottom: 16px; -} -.noptin-optin_type.noptin-popup, -.noptin-optin_type.noptin-popup h3 { - background-color: #F44336; - color: #fff; -} -.noptin-optin_type.noptin-inpost, -.noptin-optin_type.noptin-inpost h3 { - background-color: #388e3c; - color: #fff; -} -.noptin-optin_type.noptin-sidebar, -.noptin-optin_type.noptin-sidebar h3 { - background-color: #00bcd4; - color: #fff; -} -.noptin-optin_type:hover, -.noptin-optin_type:hover h3 { - background-color: #fff; - color: #333; -} -.noptin-form-editor-step .noptin-text-wrapper input:focus { - background-color: #fff; - border-color: #007acc; - color: #1a1a1a; - outline: 0; -} -.noptin-templates-select .dd-option-image, -.noptin-templates-select .dd-selected-image { - width: 32px; - height: 32px; -} -.noptin-templates-select .dd-selected-text { - line-height: 32px !important; - color: #333; -} -.noptin-templates-select { - margin-right: 16px; -} -.noptin-templates-select .noptin-add-button { - margin-top: 16px; -} -.noptin-preview-showing .noptin-optin-form-wrapper .noptin-form-close { - display: inline-block; - } -.noptin-preview-showing.noptin-popup-main-wrapper { - display: flex; - } -.noptin-popup-notice { - margin: 0 0 5px; - padding: 6px 12px; - min-height: 50px; - border-left: 4px solid #00a0d2; - display: flex; - align-items: center; -} -.noptin-popup-notice.noptin-is-error { - border-left-color: #d94f4f; - background-color: #f9e2e2; -} -.noptin-popup-notice.noptin-is-success { - border-left-color: #26a69a; - background-color: #e0f2f1; -} -.wp-core-ui .button-link.noptin-popup-editor-header-button { - text-decoration: none; -} -.noptin-templates-select .noptin-field-editor { - min-width: 260px; - } -.noptin-field-editor .noptin-field-editor-field { - position: relative; - overflow: hidden; - word-wrap: break-word; - } -.noptin-field-editor .noptin-field-editor-header { - cursor: move; - padding: 8px; - font-size: 13px; - font-weight: 600; - line-height: 1.6; - display: flex; - border: 1px solid #ddd - } -.noptin-field-editor .noptin-field-editor-header:hover { - border-color: #999; - } -.noptin-field-editor .noptin-field-editor-header .noptin-field-editor-title { - flex: 1; - } -.noptin-field-editor .noptin-field-editor-header .dashicons { - cursor: pointer; - color: #72777c - } -.noptin-field-editor .noptin-field-editor-header .dashicons:hover { - color: #444; - } -.noptin-field-editor .noptin-field-editor-body { - border: 1px solid #e5e5e5; - border-top: none; - padding: 12px; - } -.noptin-field-editor .noptin-field-editor-delete { - color: #F44336; - } -.noptin-settings .notice, -.noptin-settings div.error, -.noptin-settings div.updated { - display: none !important; -} -.settings-body.noptin-fields { - max-width: 800px; - margin-top: 32px; - -} -.settings-body.noptin-fields .field-wrapper { - display: flex; - margin-top: 16px; - margin-bottom: 32px - } -@media only screen and (max-width: 601px) { - - .settings-body.noptin-fields .field-wrapper { - display: block - } - } -.settings-body.noptin-fields .field-wrapper .noptin-label, - .settings-body.noptin-fields .field-wrapper .noptin-textarea-label, - .settings-body.noptin-fields .field-wrapper .noptin-select-label { - max-width: 200px; - flex: 1 0 200px; - font-weight: 600 - } -@media only screen and (max-width: 601px) { - - .settings-body.noptin-fields .field-wrapper .noptin-label, - .settings-body.noptin-fields .field-wrapper .noptin-textarea-label, - .settings-body.noptin-fields .field-wrapper .noptin-select-label { - margin-bottom: 12px - } - } -.settings-body.noptin-fields .field-wrapper .noptin-content { - flex: 1 0 0; - } -.settings-body.noptin-fields .field-wrapper .noptin-content .regular-text, - .settings-body.noptin-fields .field-wrapper .noptin-content input[type="text"], - .settings-body.noptin-fields .field-wrapper .noptin-content select, - .settings-body.noptin-fields .field-wrapper .noptin-content textarea { - max-width: 400px; - } -.settings-body.noptin-fields .field-wrapper.noptin-textarea-wrapper textarea { - margin-bottom: 0; - max-width: 400px; - } -.settings-body.noptin-fields .noptin-checkbox_alt-wrapper .description { - display: inline-block; - } -.noptin-newsletter-campaign-form.noptin-fields { - max-width: 1020px; - -} -.noptin-newsletter-campaign-form.noptin-fields .noptin-campaign-input, - .noptin-newsletter-campaign-form.noptin-fields select, - .noptin-newsletter-campaign-form.noptin-fields textarea { - max-width: 100%; - } -.create-new-campaign { - margin-top: 6px; -} -a.no-campaign-create-new-campaign { - display: block; - margin: 20px auto; - max-width: 400px; - font-size: 16px; -} -.noptin_page_noptin-email-campaigns .swal2-container { - z-index: 1000060; -} -.noptin-automation-setup-form.noptin-fields { - text-align: left; -} -#noptin-automations-popup { - position: relative; - -} -#noptin-automations-popup h2 { - margin-bottom: 24px; - font-size: 24px; - } -#noptin-automations-popup ul { - display: flex; - flex-wrap: wrap; - font-size: 14px; - text-align: left; - - } -#noptin-automations-popup ul li { - flex: 0 0 270px; - padding: 10px; - box-sizing: border-box; - margin-bottom: 0; - -webkit-animation-name: noptinAnimateIn; - animation-name: noptinAnimateIn; - -webkit-animation-duration: 250ms; - animation-duration: 250ms; - -webkit-animation-delay: 0; - animation-delay: 0; - -webkit-animation-delay: calc(var(--noptin-automation-select-order) * 100ms); - animation-delay: calc(var(--noptin-automation-select-order) * 100ms); - -webkit-animation-fill-mode: both; - animation-fill-mode: both; - -webkit-animation-timing-function: ease-in-out; - animation-timing-function: ease-in-out; - - - } -#noptin-automations-popup ul li .noptin-automation-type-select { - display: block; - padding: 10px; - border: 1px solid #f5f5f5; - color: #757575; - text-decoration: none; - min-height: 170px; - display: flex; - flex-direction: column; - } -#noptin-automations-popup ul li .noptin-automation-type-select:hover, - #noptin-automations-popup ul li .noptin-automation-type-selectctive, - #noptin-automations-popup ul li .noptin-automation-type-select:focus { - color: #757575; - border-color: #37474F; - } -#noptin-automations-popup ul li .noptin-automation-type-select.disabled { - background: #fcfcfc; - border-color: #bdbdbd !important - } -#noptin-automations-popup ul li .noptin-automation-type-select.disabled> :last-child { - color: #ff5722; - } -#noptin-automations-popup ul li .noptin-automation-type-select.disabled> :last-child a { - margin-left: 4px; - text-decoration: none; - } -.noptin-full-screen { - background: #fff; - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 100000; - overflow: auto; -} -.noptin-save-saved, -.noptin-save-error { - margin: 5px 0 15px; - background: #fff; - border-left: 4px solid #fff; - border-left-color: #46b450; - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1); - padding: 1px 12px; -} -.noptin-save-error { - border-left-color: #dc3232; -} -.noptin-form-usage-details p { - display: flex; -} -.noptin-form-usage-details p strong { - margin: 0 4px; - } -.noptin-form-usage-details p .noptin-copy-button { - transition: all 0.2s ease; - background-color: transparent; - color: #43A047; - text-transform: capitalize; - font-weight: 600; - border: none; - outline: none; - margin-left: 10px; - display: none; - } -.noptin-form-usage-details p .noptin-copy-button.copied { - display: inline-block; - -webkit-animation: noptin-vibrate 0.9s infinite both; - animation: noptin-vibrate 0.9s infinite both; - } -#noptin-subscribers-table .column-status:not(.manage-column) .status-inactive, #noptin-automation-campaigns-table .column-status:not(.manage-column) .status-inactive, #noptin-newsletter-campaigns-table .column-status:not(.manage-column) .status-inactive { - color: #d84315; - } -#noptin-subscribers-table .column-status:not(.manage-column) .status-active, #noptin-automation-campaigns-table .column-status:not(.manage-column) .status-active, #noptin-newsletter-campaigns-table .column-status:not(.manage-column) .status-active { - color: #2E7D32; - } -@media screen and (min-width:960px) { - #noptin-subscribers-table .manage-column.column-primary, #noptin-automation-campaigns-table .manage-column.column-primary, #noptin-newsletter-campaigns-table .manage-column.column-primary { - width: 50%; - } - } -.button.noptin-send-test-email .dashicons-before { - vertical-align: middle; - margin-right: 4px; - color: #ff6f00; -} -.noptin-sortable-ghost { - background-color: #f3f3f3; - color: #3c3b3b; -} -@-webkit-keyframes noptin-jello-horizontal { - 0% { - transform: scale3d(1, 1, 1); - } - - 30% { - transform: scale3d(1.25, 0.75, 1); - } - - 40% { - transform: scale3d(0.75, 1.25, 1); - } - - 50% { - transform: scale3d(1.15, 0.85, 1); - } - - 65% { - transform: scale3d(0.95, 1.05, 1); - } - - 75% { - transform: scale3d(1.05, 0.95, 1); - } - - 100% { - transform: scale3d(1, 1, 1); - } -} -@keyframes noptin-jello-horizontal { - 0% { - transform: scale3d(1, 1, 1); - } - - 30% { - transform: scale3d(1.25, 0.75, 1); - } - - 40% { - transform: scale3d(0.75, 1.25, 1); - } - - 50% { - transform: scale3d(1.15, 0.85, 1); - } - - 65% { - transform: scale3d(0.95, 1.05, 1); - } - - 75% { - transform: scale3d(1.05, 0.95, 1); - } - - 100% { - transform: scale3d(1, 1, 1); - } -} -@-webkit-keyframes noptin-vibrate { - 0% { - transform: translate(0); - } - - 20% { - transform: translate(-2px, 2px); - } - - 40% { - transform: translate(-2px, -2px); - } - - 60% { - transform: translate(2px, 2px); - } - - 80% { - transform: translate(2px, -2px); - } - - 100% { - transform: translate(0); - } -} -@keyframes noptin-vibrate { - 0% { - transform: translate(0); - } - - 20% { - transform: translate(-2px, 2px); - } - - 40% { - transform: translate(-2px, -2px); - } - - 60% { - transform: translate(2px, 2px); - } - - 80% { - transform: translate(2px, -2px); - } - - 100% { - transform: translate(0); - } -} -@-webkit-keyframes noptinAnimateIn { - 0% { - opacity: 0; - transform: scale(0.6) translateY(-8px); - } - - 100% { - opacity: 1; - } -} -@keyframes noptinAnimateIn { - 0% { - opacity: 0; - transform: scale(0.6) translateY(-8px); - } - - 100% { - opacity: 1; - } -} -.settings-body.noptin-fields .select2-container .select2-selection--single { - height: 32px; -} -/** Tools */ -.noptin-admin-table.noptin-admin-tools-table { - margin-bottom: 1em; -} -.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row th,.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row td { - padding: 1.5em; - border-bottom: solid 1px #eee; - } -.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row .name { - display: block; - margin-bottom: .5em; - } -.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row .noptin-run-tool { - text-align: right; - } -/** Error Logs*/ -#noptin-tools-page .noptin-tool-error th{ - color: #b01d1d; - } -#noptin-tools-page .noptin-tool-info th{ - color: #1266bf; - } -#noptin-tools-page .noptin-tool-notice th{ - color: #3c47e8; - } -#noptin-tools-page .noptin-tool-warning th{ - color: #b59209; - } -.noptin-spinner { - display: inline-block; - width: 64px; - height: 64px -} -.noptin-spinner:after { - content: " "; - display: block; - width: 46px; - height: 46px; - margin: 1px; - border-radius: 50%; - border: 5px solid #fff; - border-color: #ff5722 transparent #f44336 transparent; - -webkit-animation: noptin-spin 1.2s linear infinite; - animation: noptin-spin 1.2s linear infinite; - } -@-webkit-keyframes noptin-spin { - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -} -@keyframes noptin-spin { - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -} -.noptin-spin { - -webkit-animation: noptin-spin 1.2s linear infinite; - animation: noptin-spin 1.2s linear infinite; -} -.noptin-shadow { - box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); -} -.noptin-padded { - padding: 10px; -} -.noptin-big { - font-size: 20px; -} -.noptin-max-w-200 { - max-width: 200px !important; -} -.noptin-preview-showing { - overflow: auto; -} -.noptin-popup-main-wrapper { - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 100000; - align-items: center; - justify-content: center; - background: rgba(96, 125, 139, 0.6); - background-position: 50%; - background-size: cover; - overflow: auto; - display: none; -} -@media only screen and (max-width: 520px) { - - .noptin-popup-main-wrapper .noptin-optin-form-wrapper { - margin-top: 100px - } - } -.noptin-popup-main-wrapper.open { - display: flex; - } -/*Popups close button*/ -.noptin-form-close { - position: absolute; - top: 0; - right: 0; - width: 36px; - height: 36px; - cursor: pointer; - display: none -} -.noptin-form-close.outside { - top: -36px; - right: -36px; - } -.noptin-form-close.along { - top: -30px; - right: -30px; - } -.noptin-form-close.top-right { - top: 60px; - right: 60px; - position: fixed; - } -.noptin-form-close path { - fill: rgba(255, 255, 255, 0.9); - transition: 0.3s; - } -.noptin-form-close:hover path { - fill: rgba(255, 255, 255, 0.4); - } -.noptin-preview-showing .noptin-form-close, -.noptin-popup-main-wrapper.open .noptin-form-close { - display: inline-block; -} -.noptin-animate-from { - transform: scale(0) rotate(360deg); -} -.noptin-animate-after { - transform: scale(1) rotate(0deg); -} -.noptin-optin-form-wrapper { - border: 4px solid #ff6f00; - padding: 0; - display: flex; - background-color: #ff6f00; - transition: all 0.5s; - background-position: 50%; - background-size: cover; - position: relative; - box-sizing: border-box; - margin: auto; - max-width: 100%; - width: 100%; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; -} -.noptin-optin-form-wrapper * { - box-sizing: border-box; - } -.noptin-inpost-main-wrapper .noptin-optin-form-wrapper { - margin-bottom: 20px; - margin-top: 20px; - } -.noptin-popup-main-wrapper .noptin-optin-form-wrapper { - max-width: 90%; - width: 520px; - } -/*The main opt in form*/ -.noptin-optin-form-wrapper form, .noptin-optin-form-wrapper .noptin-optin-form { - width: 100%; - position: relative; - text-align: center; - display: flex; - flex-direction: column; - justify-content: center; - } -.noptin-optin-form-wrapper form .noptin-video-container, .noptin-optin-form-wrapper .noptin-optin-form .noptin-video-container { - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - width: 100%; - height: 100%; - overflow: hidden; - } -.noptin-optin-form-wrapper form .noptin-video-container video, .noptin-optin-form-wrapper .noptin-optin-form .noptin-video-container video { - min-width: 100%; - min-height: 100%; - width: auto; - height: auto; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - } -.noptin-optin-form-wrapper form a, - .noptin-optin-form-wrapper form a:visited, - .noptin-optin-form-wrapper form a:active, - .noptin-optin-form-wrapper form a:hover, - .noptin-optin-form-wrapper .noptin-optin-form a, - .noptin-optin-form-wrapper .noptin-optin-form a:visited, - .noptin-optin-form-wrapper .noptin-optin-form a:active, - .noptin-optin-form-wrapper .noptin-optin-form a:hover { - color: inherit !important; - text-decoration: none; - box-shadow: 0 1px 0 0 currentColor; - } -/*Appears at the top of fields and contains title, image and description*/ -.noptin-optin-form-wrapper form .noptin-form-header, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header { - display: flex; - padding: 20px; - align-items: center; - justify-content: center; - z-index: 100; - - /*image on left of heading*/ - } -.noptin-optin-form-wrapper form .noptin-form-header ul, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header ul { - text-align: left !important; - list-style-type: disc; - list-style-type: initial; - } -.noptin-optin-form-wrapper form .noptin-form-header.left, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.left { - flex-direction: row-reverse; - text-align: left; - } -.noptin-optin-form-wrapper form .noptin-form-header.left .noptin-form-header-text, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.left .noptin-form-header-text { - padding-left: 20px; - } -.noptin-optin-form-wrapper form .noptin-form-header.left .noptin-form-header-image, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.left .noptin-form-header-image { - max-width: 40%; - } -.noptin-optin-form-wrapper form .noptin-form-header, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header { - - /*image on right of heading*/ - } -.noptin-optin-form-wrapper form .noptin-form-header.right, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.right { - text-align: left; - } -.noptin-optin-form-wrapper form .noptin-form-header.right .noptin-form-header-text, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.right .noptin-form-header-text { - padding-right: 20px; - } -.noptin-optin-form-wrapper form .noptin-form-header.right .noptin-form-header-image, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.right .noptin-form-header-image { - max-width: 40%; - } -.noptin-optin-form-wrapper form .noptin-form-header, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header { - - /*image on top of heading*/ - } -.noptin-optin-form-wrapper form .noptin-form-header.top, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.top { - flex-direction: column-reverse; - } -.noptin-optin-form-wrapper form .noptin-form-header.top .noptin-form-header-text, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.top .noptin-form-header-text { - padding-top: 20px; - } -.noptin-optin-form-wrapper form .noptin-form-header, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header { - - /*image at bottom of heading*/ - } -.noptin-optin-form-wrapper form .noptin-form-header.bottom, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.bottom { - flex-direction: column; - } -.noptin-optin-form-wrapper form .noptin-form-header img, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header img { - max-width: 100%; - max-height: 150px; - } -.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-heading, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-heading { - font-size: 23px; - font-weight: 700; - line-height: 1.4125; - padding-top: 4px; - } -.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-heading p, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-heading p { - margin: 0; - font-size: 23px; - font-weight: 700; - } -.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-description, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-description { - font-size: 16px; - line-height: 1.3; - padding-top: 18px; - } -.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-description p, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-description p { - margin: 0; - font-size: 16px; - } -/* Contains the form fields and footer texts*/ -.noptin-optin-form-wrapper form .noptin-form-footer, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer { - padding: 20px; - z-index: 100; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-fields::after, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-fields::after { - content: ""; - clear: both; - display: table; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-optin-field-wrapper, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-optin-field-wrapper { - width: 100%; - display: block; - text-align: left; - margin-bottom: 10px; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-optin-field-wrapper .noptin-form-field, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-optin-field-wrapper .noptin-form-field { - padding: 11px 32px; - width: 100%; - font-size: 16px; - display: block; - color: #666; - -webkit-text-fill-color: #666; - background: rgba(255, 255, 255, 0.6); - background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); - border: 1px solid rgba(187, 187, 187, 0.6); - border-radius: 3px; - width: 100%; - outline: none !important; - line-height: 1.45714285714286; - margin: 0; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-submit, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-submit { - background-color: #524b4d; - display: block; - border: none; - color: #fafafa; - text-align: center; - font-weight: 500; - padding: 16px 32px; - flex: 1 0 0; - font-weight: 800; - box-shadow: none; - text-transform: none; - line-height: 1.45714285714286; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-button-block, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-button-block { - width: 100%; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-button-right, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-button-right { - float: right; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-note, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-note { - font-size: 14px; - } -.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-note p, .noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-note p { - font-size: 14px; - margin: 0; - } -.noptin-optin-form-wrapper form.noptin-form-new-line .noptin-form-field, .noptin-optin-form-wrapper .noptin-optin-form.noptin-form-new-line .noptin-form-field { - margin-bottom: 4px; - } -@media only screen and (min-width: 520px) { - .noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields, .noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields { - display: flex; - } - - .noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields .noptin-form-submit, .noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields .noptin-form-submit { - padding: 11px 32px; - } - - .noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields .noptin-optin-field-wrapper, .noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields .noptin-optin-field-wrapper { - margin-right: 4px; - margin-bottom: 0; - } - - .noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields .noptin-form-field, .noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields .noptin-form-field { - border-radius: 0; - } - } -.comment-form-noptin input, -.register-form-noptin input { - margin-right: 8px; -} -.wp-block-noptin-email-optin{ - min-height: 280px; - display: flex; - align-items: center; - justify-content: center; -} -.wp-block-noptin-email-optin form { - width: 100%; - } -.wp-block-noptin-email-optin form h2.noptin_form_title { - font-size: 23px; - font-weight: 700; - line-height: 1.4125; - padding-top: 4px; - margin-bottom: 10px; - margin-top: 16px; - } -.wp-block-noptin-email-optin form p.noptin_form_description { - font-size: 16px; - line-height: 1.3; - margin-bottom: 10px; - } -.wp-block-noptin-email-optin form input.noptin_form_input_email { - padding: 11px 32px; - width: 100%; - font-size: 16px; - display: block; - color: #666; - -webkit-text-fill-color: #666; - background: rgba(255, 255, 255, 0.6); - background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); - border: 1px solid rgba(187, 187, 187, 0.6); - border-radius: 3px; - width: 100%; - outline: none !important; - line-height: 1.45714285714286; - text-align: center; - } -.wp-block-noptin-email-optin form .noptin_form_submit { - background-color: #313131; - width: 100%; - display: block; - border: none; - margin-top: 1em; - text-align: center; - padding: 16px 32px; - flex: 1 0 0; - font-weight: 800; - box-shadow: none; - line-height: 1.45714285714286; - } -.noptin_widget .noptin-email-optin-widget { - box-sizing: border-box !important; - display: flex; - justify-content: center; - align-items: center; - min-height: 100px -} -.noptin_widget .noptin-email-optin-widget.noptin-email-optin-widget-has-bg { - min-height: 380px; - padding: 32px; - } -.noptin_widget .noptin-email-optin-widget form { - width: 100%; - } -.noptin_widget .noptin-email-optin-widget form .noptin-widget-email-input.noptin_form_input_email, - .noptin_widget .noptin-email-optin-widget form .noptin-widget-email-input.noptin_form_input_email:focus, - .noptin_widget .noptin-email-optin-widget form .noptin-widget-email-input.noptin_form_input_email:active { - width: 100%; - padding: 10px; - outline: none; - } -.noptin_widget .noptin-email-optin-widget form .noptin_feedback_error{ - border:1px solid #f44336; - display:none; - padding:10px; - margin-top:10px; - } -.noptin_widget .noptin-email-optin-widget form .noptin-widget-submit-input { - margin-top: 5px; - display: block; - width: 100%; - padding: 16px; - } -body.noptin.noptin-actions-page { - - background: #fff !important; - background-image: none !important; - color: #212121 !important; - padding: 0 !important; - margin: 0 !important; - display: flex !important; - align-items: center !important; - justify-content: center !important; - height: 100vh !important; - overflow: auto !important; - -} +.noptin-popup-designer .popper{width:auto;max-width:80%;background-color:#e0e0e0;color:#263238;text-align:center;padding:2px;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px solid #ebebeb;z-index:200000;box-shadow:0 0 6px 0 #3a3a3a}.noptin-popup-designer .popper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.noptin-popup-designer .popper[x-placement^=top]{margin-bottom:5px}.noptin-popup-designer .popper[x-placement^=top] .popper__arrow{border-width:5px 5px 0;border-color:#fafafa transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.noptin-popup-designer .popper[x-placement^=bottom]{margin-top:5px}.noptin-popup-designer .popper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px;border-color:transparent transparent #fafafa;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.noptin-popup-designer .popper[x-placement^=right]{margin-left:5px}.noptin-popup-designer .popper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #fafafa transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.noptin-popup-designer .popper[x-placement^=left]{margin-right:5px}.noptin-popup-designer .popper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #fafafa;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}fieldset[disabled] .vue-swatches{pointer-events:none}.vue-swatches{outline:none}.vue-swatches__trigger{display:inline-block;cursor:pointer;box-shadow:0 2px 1px 0 rgba(0,0,0,.16),0 1px 4px 0 rgba(0,0,0,.12)}.vue-swatches__trigger.vue-swatches--is-empty{border:2px solid #ccc}.vue-swatches__trigger.vue-swatches--is-disabled{cursor:not-allowed}.vue-swatches__container{box-sizing:content-box;padding:5px;margin-right:10px}.vue-swatches__container:not(.vue-swatches--inline){position:absolute;display:block;overflow:auto;border-radius:5px;box-shadow:0 2px 3px hsla(0,0%,4%,.2),0 0 0 1px hsla(0,0%,4%,.2);z-index:50}.vue-swatches__wrapper{background-color:inherit}.vue-swatches__row{font-size:0}.vue-swatches__fallback__wrapper{display:table}.vue-swatches__fallback__input--wrapper{display:table-cell;padding-right:10px;width:100%;font-size:14px}.vue-swatches__fallback__input{width:100%;padding-top:6px;padding-bottom:6px;border-radius:5px;border:1px solid #dcdcdc;color:#35495e;background:#fff}.vue-swatches__fallback__button{display:table-cell;padding:6px 15px;border:0;cursor:pointer;font-weight:700;color:#fff;background-color:#3571c8;border-radius:5px}.vue-swatches-show-hide-enter-active,.vue-swatches-show-hide-leave-active{transition:all .3s ease}.vue-swatches-show-hide-enter,.vue-swatches-show-hide-leave-active{opacity:0}.vue-swatches--has-children-centered{display:flex;align-items:center;justify-content:center}.vue-swatches__diagonal--wrapper{width:100%;height:100%}.vue-swatches__diagonal{width:75%;height:75%;background:linear-gradient(to top right,transparent 0,transparent calc(50% - 2.4px),#de080a 50%,transparent calc(50% + 2.4px),transparent)}.vue-swatches__swatch{position:relative;font-size:0}.vue-swatches__swatch:focus,.vue-swatches__swatch:hover{opacity:.9;box-shadow:inset 0 0 2px rgba(0,0,0,.75);outline:none}.vue-swatches__swatch.vue-swatches__swatch--border,.vue-swatches__swatch.vue-swatches__swatch--selected{box-shadow:inset 0 0 2px rgba(0,0,0,.75)}.vue-swatches__swatch .vue-swatches__diagonal--wrapper{position:absolute}.vue-swatches__check__wrapper{position:absolute;width:100%;height:100%}.vue-swatches__check__circle{width:21px;height:21px;border-radius:50%;background-color:rgba(0,0,0,.15)}.vue-swatches__check__path{fill:#fff}.noptin-popup-designer .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80)}.noptin-popup-designer .gu-hide{display:none!important}.noptin-popup-designer .gu-unselectable{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.noptin-popup-designer .gu-transit{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";filter:alpha(opacity=20)}@-webkit-keyframes medium-editor-image-loading{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes medium-editor-image-loading{0%{transform:scale(0)}to{transform:scale(1)}}@-webkit-keyframes medium-editor-pop-upwards{0%{opacity:0;transform:matrix(.97,0,0,1,0,12)}20%{opacity:.7;transform:matrix(.99,0,0,1,0,2)}40%{opacity:1;transform:matrix(1,0,0,1,0,-1)}to{transform:matrix(1,0,0,1,0,0)}}@keyframes medium-editor-pop-upwards{0%{opacity:0;transform:matrix(.97,0,0,1,0,12)}20%{opacity:.7;transform:matrix(.99,0,0,1,0,2)}40%{opacity:1;transform:matrix(1,0,0,1,0,-1)}to{transform:matrix(1,0,0,1,0,0)}}.post-type-noptin-form .medium-editor-anchor-preview{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;left:0;line-height:1.4;max-width:280px;position:absolute;text-align:center;top:0;word-break:break-all;word-wrap:break-word;visibility:hidden;z-index:2000}.post-type-noptin-form .medium-editor-anchor-preview a{color:#fff;display:inline-block;margin:5px 5px 10px}.post-type-noptin-form .medium-editor-anchor-preview-active{visibility:visible}.post-type-noptin-form .medium-editor-dragover{background:#ddd}.post-type-noptin-form .medium-editor-image-loading{-webkit-animation:medium-editor-image-loading 1s ease-in-out infinite;animation:medium-editor-image-loading 1s ease-in-out infinite;background-color:#333;border-radius:100%;display:inline-block;height:40px;width:40px}.post-type-noptin-form .medium-editor-placeholder{position:relative}.post-type-noptin-form .medium-editor-placeholder:after{content:attr(data-placeholder)!important;font-style:italic;position:absolute;left:0;top:0;white-space:pre;padding:inherit;margin:inherit}.post-type-noptin-form .medium-editor-placeholder-relative{position:relative}.post-type-noptin-form .medium-editor-placeholder-relative:after{content:attr(data-placeholder)!important;font-style:italic;position:relative;white-space:pre;padding:inherit;margin:inherit}.post-type-noptin-form .medium-toolbar-arrow-over:before,.post-type-noptin-form .medium-toolbar-arrow-under:after{border-style:solid;content:"";display:block;height:0;left:50%;margin-left:-8px;position:absolute;width:0}.post-type-noptin-form .medium-toolbar-arrow-under:after{border-width:8px 8px 0}.post-type-noptin-form .medium-toolbar-arrow-over:before{border-width:0 8px 8px}.post-type-noptin-form .medium-editor-toolbar{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;left:0;position:absolute;top:0;visibility:hidden;z-index:2000}.post-type-noptin-form .medium-editor-toolbar ul{margin:0;padding:0}.post-type-noptin-form .medium-editor-toolbar li{float:left;list-style:none;margin:0;padding:0}.post-type-noptin-form .medium-editor-toolbar li button{box-sizing:border-box;cursor:pointer;display:block;font-size:14px;line-height:1.33;margin:0;padding:15px;text-decoration:none}.post-type-noptin-form .medium-editor-toolbar li button:focus{outline:none}.post-type-noptin-form .medium-editor-toolbar li .medium-editor-action-underline{text-decoration:underline}.post-type-noptin-form .medium-editor-toolbar li .medium-editor-action-pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:12px;font-weight:100;padding:15px 0}.post-type-noptin-form .medium-editor-toolbar-active{visibility:visible}.post-type-noptin-form .medium-editor-sticky-toolbar{position:fixed;top:1px}.post-type-noptin-form .medium-editor-relative-toolbar{position:relative}.post-type-noptin-form .medium-editor-toolbar-active.medium-editor-stalker-toolbar{-webkit-animation:medium-editor-pop-upwards .16s linear forwards;animation:medium-editor-pop-upwards .16s linear forwards}.post-type-noptin-form .medium-editor-action-bold{font-weight:bolder}.post-type-noptin-form .medium-editor-action-italic{font-style:italic}.post-type-noptin-form .medium-editor-toolbar-form{display:none}.post-type-noptin-form .medium-editor-toolbar-form a,.post-type-noptin-form .medium-editor-toolbar-form input{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-form-row{line-height:14px;margin-left:5px;padding-bottom:5px}.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-input,.post-type-noptin-form .medium-editor-toolbar-form label{border:none;box-sizing:border-box;font-size:14px;margin:0;padding:6px;width:316px;display:inline-block}.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-input:focus,.post-type-noptin-form .medium-editor-toolbar-form label:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;outline:0}.post-type-noptin-form .medium-editor-toolbar-form a{display:inline-block;font-size:24px;font-weight:bolder;margin:0 10px;text-decoration:none}.post-type-noptin-form .medium-editor-toolbar-form-active{display:block}.post-type-noptin-form .medium-editor-toolbar-actions:after{clear:both;content:"";display:table}.post-type-noptin-form .medium-editor-element{word-wrap:break-word;min-height:30px}.post-type-noptin-form .medium-editor-element img{max-width:100%}.post-type-noptin-form .medium-editor-element sub{vertical-align:sub}.post-type-noptin-form .medium-editor-element sup{vertical-align:super}.post-type-noptin-form .medium-editor-hidden{display:none}.post-type-noptin-form .medium-toolbar-arrow-under:after{border-color:#242424 transparent transparent;top:50px}.post-type-noptin-form .medium-toolbar-arrow-over:before{border-color:transparent transparent #242424;top:-8px}.post-type-noptin-form .medium-editor-toolbar{background-color:#242424;background:linear-gradient(180deg,#242424,rgba(36,36,36,.75));border:1px solid #000;border-radius:5px;box-shadow:0 0 3px #000}.post-type-noptin-form .medium-editor-toolbar li button{background-color:#242424;background:linear-gradient(180deg,#242424,rgba(36,36,36,.89));border:0;border-right:1px solid #000;border-left:1px solid #333;border-left:1px solid hsla(0,0%,100%,.1);box-shadow:0 2px 2px rgba(0,0,0,.3);color:#fff;height:50px;min-width:50px;transition:background-color .2s ease-in}.post-type-noptin-form .medium-editor-toolbar li button:hover{background-color:#000;color:#ff0}.post-type-noptin-form .medium-editor-toolbar li .medium-editor-button-first{border-bottom-left-radius:5px;border-top-left-radius:5px}.post-type-noptin-form .medium-editor-toolbar li .medium-editor-button-last{border-bottom-right-radius:5px;border-top-right-radius:5px}.post-type-noptin-form .medium-editor-toolbar li .medium-editor-button-active{background-color:#000;background:linear-gradient(180deg,#242424,rgba(0,0,0,.89));color:#fff}.post-type-noptin-form .medium-editor-toolbar-form{background:#242424;border-radius:5px;color:#999}.post-type-noptin-form .medium-editor-toolbar-form .medium-editor-toolbar-input{background:#242424;box-sizing:border-box;color:#ccc;height:50px}.post-type-noptin-form .medium-editor-toolbar-form a{color:#fff}.post-type-noptin-form .medium-editor-toolbar-anchor-preview{background:#242424;border-radius:5px;color:#fff}.post-type-noptin-form .medium-editor-placeholder:after{color:#b3b3b1}body.post-type-noptin-form.post-php{overflow:hidden}.noptin-form-designer-loader{position:fixed;background:#fff;top:0;bottom:0;left:0;right:0;z-index:2000;display:flex;align-items:center;justify-content:center}.noptin-subscribers-header{display:flex}.noptin-subscribers-header .noptin-col-2{margin-right:2rem}.noptin-download-section{margin-top:16px;display:flex;flex-direction:row-reverse}.noptin-welcome{max-width:800px}.noptin-welcome .noptin-main-header{display:flex;align-items:center}.noptin-welcome .noptin-main-header h1{flex:1}.noptin-welcome .noptin-main-header a{font-size:16px;color:#00695c!important}.noptin-welcome .noptin-header{padding:13px;border-bottom:none;display:flex;justify-content:space-between;align-items:center}.noptin-welcome .noptin-header a{color:#222!important}.noptin-welcome .noptin-header h2{margin:0 16px 0 0;padding:3px 0;font-size:18px;font-size:1.125rem;line-height:2.2;font-weight:600}.noptin-welcome .noptin-header hr{align-self:center;flex-grow:1;margin:0 10px}.noptin-welcome .noptin-body{border-bottom:none;margin-left:20px}.noptin-welcome .noptin-body p{font-size:16px}.noptin-welcome .noptin-body a{font-size:16px;color:#ff6f00!important}.noptin-welcome .noptin-cards-container{margin-bottom:24px}.noptin-welcome .noptin-cards-container .noptin-card-footer-links{padding:16px}.noptin-welcome .noptin-cards-container .noptin-cards-list{background-color:#f8f9f9;margin:0;display:flex;border-color:#ccd0d4;border-style:solid;border-width:1px 0 0 1px;box-shadow:inset -1px -1px 0 #ccd0d4;flex-wrap:wrap}.noptin-welcome .noptin-cards-container .noptin-cards-list .noptin-card{margin-bottom:0;background-color:#fff;display:flex;flex-direction:column;height:100%;padding:16px;border-bottom:1px solid #e2e4e7;border-right:1px solid #e2e4e7;line-height:1.4em;text-decoration:none;width:calc(30% - 7px)}.noptin-welcome .noptin-cards-container .noptin-cards-list .noptin-card span.noptin-card-label{display:block;margin-bottom:16px;font-size:11px;font-size:.6875rem;text-transform:uppercase;color:#6c7781}.noptin-welcome .noptin-cards-container .noptin-cards-list .noptin-card span.noptin-card-value{margin-bottom:4px;font-size:18px;font-size:1.125rem;font-weight:500;color:#191e23}.noptin-big{font-size:1.5em}.noptin-small{font-size:.8em;opacity:.6;font-weight:400}.wrap.noptin-container{display:flex}.wrap.noptin-container .noptin-col-2{margin-right:20px}.wrap.noptin-container h1{font-size:50px}.noptin-color{color:#38f094!important}.noptin-bg{background-color:#38f094!important}.noptin-divider{height:1px;overflow:hidden;background-color:#e0e0e0}.noptin-hero{margin-bottom:32px;color:#009688}.noptin-container{max-width:1000px;margin:1rem 0 0}.noptin-row{margin-left:auto;margin-right:auto;margin-bottom:20px}.noptin-row:after{content:"";display:table;clear:both}.noptin-col{width:100%}.noptin-nag{display:flex;flex-flow:column}@media only screen and (min-width:601px){.noptin-nag{flex-flow:row}.noptin-nag-item{margin-right:16px}}.noptin-popup-designer{position:absolute;top:0;right:0;background:#fff;z-index:100}#noptin_form_editor .noptin-popup-designer{position:fixed;bottom:0;right:0;top:32px;left:0;padding-left:20px;overflow:auto}@media only screen and (max-width:782px){#noptin_form_editor .noptin-popup-designer{left:0!important;padding:20px}}#noptin_form_editor .noptin-popup-editor-toolbar{flex-grow:1.5}#noptin_form_editor .noptin-popup-editor-header{min-height:64px;display:flex;align-items:center}@media only screen and (max-width:784px){#noptin_form_editor .noptin-popup-editor-header{margin-top:60px}}#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-header-button{margin:0 12px 0 3px;padding:0 12px 2px;height:33px;line-height:32px;font-size:13px}@media only screen and (max-width:784px){#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-header-button{display:block;margin:auto auto 10px}}#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title{flex-grow:7.5;font-size:24px;display:flex;align-items:center}@media only screen and (max-width:784px){#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title{flex-direction:column-reverse;width:90%}}#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title .noptin-popup-editor-main-preview-name-textarea{overflow:hidden;word-wrap:break-word;resize:none;display:block;width:100%;margin:12px 0;background:transparent;line-height:1.4;color:#191e23;transition:border .1s ease-out,box-shadow .1s linear;padding:4px 14px;word-break:keep-all;border:1px solid #f5f5f5;outline:1px solid transparent;font-size:24px;font-weight:600;box-shadow:-3px 0 0 0 #e2e4e7}#noptin_form_editor .noptin-popup-editor-header .noptin-popup-editor-title .noptin-popup-editor-main-preview-name-textarea:focus{border-width:1px 1px 1px 0;border-color:rgba(66,88,99,.4);box-shadow:inset 3px 0 0 0 #555d66}#noptin_form_editor .noptin-popup-editor-body,#noptin_form_editor .noptin-popup-editor-header{display:flex}@media only screen and (max-width:784px){#noptin_form_editor .noptin-popup-editor-body,#noptin_form_editor .noptin-popup-editor-header{flex-direction:column-reverse}}#noptin_form_editor .noptin-popup-editor-main{overflow:auto;margin-bottom:16px;margin-top:16px}@media only screen and (min-width:605px){#noptin_form_editor .noptin-popup-editor-main{flex-grow:7;border-right:1px solid #e2e4e7;max-width:70%;display:flex;justify-content:center;padding:40px}}#noptin_form_editor .noptin-popup-editor-sidebar{flex-grow:3;width:300px;max-width:300px;overflow:auto;color:#555d66}@media only screen and (max-width:784px){#noptin_form_editor .noptin-popup-editor-sidebar{width:100%;max-width:100%}}#noptin_form_editor .noptin-popup-editor-sidebar-header{background:#f3f4f5;justify-content:flex-start;border-top:0;position:-webkit-sticky;position:sticky;z-index:10;top:0;display:flex;align-items:center;padding:0 4px 0 0;height:50px;border-bottom:1px solid #e2e4e7}#noptin_form_editor .noptin-popup-editor-sidebar-header ul{display:flex}#noptin_form_editor .noptin-popup-editor-sidebar-header ul li{margin:0;padding:0}#noptin_form_editor .noptin-popup-editor-sidebar-section-header{background:transparent;border:none;border-radius:0;cursor:pointer;height:49px;padding:3px 12px;margin-left:0;font-weight:400;color:#191e23;outline-offset:-1px;font-size:13px}#noptin_form_editor .noptin-popup-editor-sidebar-section-header.active,#noptin_form_editor .noptin-popup-editor-sidebar-section-header:active{outline:none;box-shadow:inset 0 -3px #007cba;font-weight:500;position:relative}#noptin_form_editor .noptin-popup-editor-panel{border-top:1px solid #e2e4e7;position:relative}#noptin_form_editor .noptin-popup-editor-panel:first-child{margin-top:-1px}#noptin_form_editor .noptin-popup-editor-panel:last-child{border-bottom:1px solid #e2e4e7}#noptin_form_editor .noptin-popup-editor-panel-header .noptin-popup-editor-panel-title{display:block;padding:0;font-size:inherit;transition:background .1s ease-in-out;color:#555d66;margin:0}#noptin_form_editor .noptin-popup-editor-panel-header .noptin-popup-editor-panel-title:hover{background:#f3f4f5}#noptin_form_editor .noptin-popup-editor-panel-header .noptin-popup-editor-panel-title button{position:relative;padding:15px;outline:none;width:100%;font-weight:600;text-align:left;color:#191e23;border:none;box-shadow:none;transition:background .1s ease-in-out;display:inline-flex;text-decoration:none;font-size:13px;margin:0;cursor:pointer;-webkit-appearance:none;background:none}#noptin_form_editor .noptin-popup-editor-panel-toggle{position:absolute;right:10px}#noptin_form_editor .noptin-popup-editor-panel-body{overflow:hidden;padding:20px}.noptin-fields input[type=email],.noptin-fields input[type=text]{font-size:13px;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0;width:100%}.noptin-fields select{width:100%}.noptin-select-wrapper{margin-bottom:32px}.noptin-field-editor-body .noptin-select-wrapper{margin-bottom:16px}.noptin-select-wrapper label{display:block;width:100%}.noptin-fields [type=checkbox]{border-radius:4px;border:1px solid #8d96a0;margin:0 6px 0 0}.noptin-checkbox-wrapper,.noptin-switch-wrapper{display:flex;margin-bottom:25px;margin-top:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;padding-left:40px}.noptin-checkmark{position:absolute;top:0;left:0;height:20px;width:20px;background-color:#eee;border:2px solid #6c7781;border-radius:2px;transition:all .3s cubic-bezier(.25,.8,.25,1)}.noptin-checkbox-wrapper:hover input~.noptin-checkmark,.noptin-radio-wrapper:hover input~.noptin-checkmark{background-color:#ddd}.noptin-checkbox-wrapper input:checked~.noptin-checkmark,.noptin-radio-wrapper input:checked~.noptin-checkmark{background-color:#1ea9ea;border:none}.noptin-checkmark:after{content:"";position:absolute;display:none;left:7px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}.noptin-checkbox-wrapper input:checked~.noptin-checkmark:after,.noptin-radio-wrapper input:checked~.noptin-checkmark:after{display:block}.noptin-text-wrapper{margin-top:16px;margin-bottom:32px;display:block}.noptin-field-editor-body .noptin-text-wrapper{margin-bottom:16px;margin-top:8px}.noptin-label{flex:1 0 0}.noptin-add-button,.noptin-add-button:active,.noptin-add-button:hover,.noptin-add-button:visited{background:#1ea9ea;color:#fff;border:0;border-radius:4px;cursor:pointer;display:inline-block;font-size:17px;padding:10px 30px;text-align:center;text-decoration:none;text-transform:uppercase;-webkit-appearance:none;-moz-appearance:none;appearance:none}.noptin-add-button .dashicons{vertical-align:bottom}.noptin-switch-slider{position:relative;display:flex;width:36px;height:18px;cursor:pointer;align-items:center;justify-content:flex-start;border-radius:10px;background-color:#eee;transition:.4s;margin-right:10px}input:checked+.noptin-switch-slider{justify-content:flex-end}.noptin-switch-slider span{background-color:#9e9e9e;transition:.4s;width:18px;height:12px;border-radius:5px}input:checked+.noptin-switch-slider span{background-color:#4caf50}input:focus+.noptin-switch-slider span{background-color:#2196f3}.noptin-textarea-wrapper label{display:block;margin-bottom:6px;margin-top:20px}.noptin-textarea-wrapper textarea{width:100%;height:80px;margin-bottom:32px}.noptin-textarea-wrapper .CodeMirror{box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);padding:4px;margin-top:20px}.noptin-image-wrapper{margin-bottom:10px;margin-top:10px}.noptin-image-wrapper .image-uploader{display:flex}.noptin-fields .noptin-image-wrapper input[type=email],.noptin-fields .noptin-image-wrapper input[type=text]{padding:4px 8px}.noptin-fields .noptin-image-wrapper input[type=button]{margin-left:4px;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);border:none}.noptin-radio-wrapper{margin-bottom:15px;margin-top:32px;display:block}.noptin-radio-wrapper .noptin-checkmark{border-radius:50%}.noptin-radio-wrapper span:first-child{font-weight:500}.noptin-radio-wrapper label{display:block;margin-bottom:12px;position:relative;padding-left:35px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.noptin-color-wrapper{display:flex;margin-bottom:12px}.noptin-radio-button-wrapper .noptin-buttons{display:flex;padding-top:16px;flex-wrap:wrap}.noptin-radio-button-wrapper label{padding:0;margin:0 0 32px}.noptin-radio-button-wrapper label span{padding:.5em 1em;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);margin-right:3px}.noptin-radio-button-wrapper label input:checked+span{background-color:#1ea9ea;color:#fff}.noptin-form-editor-step{min-width:400px;max-width:100%}.noptin-form-editor-step .noptin-text-wrapper>span,.noptin-optin_types-wrapper>label,.noptin-templates-select>label:not(.noptin-checkbox-wrapper),.noptin-templates-wrapper>label{display:block;width:100%;font-size:18px;margin-bottom:4px;font-weight:500}.noptin-form-editor-step .noptin-text-wrapper input{background:#e0e0e0;background-image:-webkit-linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0));border:1px solid #9e9e9e;border-radius:2px;color:#686868;padding:.625em .4375em;width:100%}.noptin-optin_types,.noptin-templates{display:flex}.noptin-template{width:50%}.noptin-description-editor,.noptin-note-editor,.noptin-title-editor{margin-bottom:48px}.noptin-template .noptin-popup-form-wrapper{transform:scale(.8)}.noptin-optin_type{margin-right:16px;margin-top:16px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:160px;min-height:160px}.noptin-optin_type .noptin-optin_type-icon{font-size:32px;margin-left:-8px;margin-bottom:16px}.noptin-optin_type.noptin-popup,.noptin-optin_type.noptin-popup h3{background-color:#f44336;color:#fff}.noptin-optin_type.noptin-inpost,.noptin-optin_type.noptin-inpost h3{background-color:#388e3c;color:#fff}.noptin-optin_type.noptin-sidebar,.noptin-optin_type.noptin-sidebar h3{background-color:#00bcd4;color:#fff}.noptin-optin_type:hover,.noptin-optin_type:hover h3{background-color:#fff;color:#333}.noptin-form-editor-step .noptin-text-wrapper input:focus{background-color:#fff;border-color:#007acc;color:#1a1a1a;outline:0}.noptin-templates-select .dd-option-image,.noptin-templates-select .dd-selected-image{width:32px;height:32px}.noptin-templates-select .dd-selected-text{line-height:32px!important;color:#333}.noptin-templates-select{margin-right:16px}.noptin-templates-select .noptin-add-button{margin-top:16px}.noptin-preview-showing .noptin-optin-form-wrapper .noptin-form-close{display:inline-block}.noptin-preview-showing.noptin-popup-main-wrapper{display:flex}.noptin-popup-notice{margin:0 0 5px;padding:6px 12px;min-height:50px;border-left:4px solid #00a0d2;display:flex;align-items:center}.noptin-popup-notice.noptin-is-error{border-left-color:#d94f4f;background-color:#f9e2e2}.noptin-popup-notice.noptin-is-success{border-left-color:#26a69a;background-color:#e0f2f1}.wp-core-ui .button-link.noptin-popup-editor-header-button{text-decoration:none}.noptin-templates-select .noptin-field-editor{min-width:260px}.noptin-field-editor .noptin-field-editor-field{position:relative;overflow:hidden;word-wrap:break-word}.noptin-field-editor .noptin-field-editor-header{cursor:move;padding:8px;font-size:13px;font-weight:600;line-height:1.6;display:flex;border:1px solid #ddd}.noptin-field-editor .noptin-field-editor-header:hover{border-color:#999}.noptin-field-editor .noptin-field-editor-header .noptin-field-editor-title{flex:1}.noptin-field-editor .noptin-field-editor-header .dashicons{cursor:pointer;color:#72777c}.noptin-field-editor .noptin-field-editor-header .dashicons:hover{color:#444}.noptin-field-editor .noptin-field-editor-body{border:1px solid #e5e5e5;border-top:none;padding:12px}.noptin-field-editor .noptin-field-editor-delete{color:#f44336}.noptin-settings .notice,.noptin-settings div.error,.noptin-settings div.updated{display:none!important}.settings-body.noptin-fields{max-width:800px;margin-top:32px}.settings-body.noptin-fields .field-wrapper{display:flex;margin-top:16px;margin-bottom:32px}@media only screen and (max-width:601px){.settings-body.noptin-fields .field-wrapper{display:block}}.settings-body.noptin-fields .field-wrapper .noptin-label,.settings-body.noptin-fields .field-wrapper .noptin-select-label,.settings-body.noptin-fields .field-wrapper .noptin-textarea-label{max-width:200px;flex:1 0 200px;font-weight:600}@media only screen and (max-width:601px){.settings-body.noptin-fields .field-wrapper .noptin-label,.settings-body.noptin-fields .field-wrapper .noptin-select-label,.settings-body.noptin-fields .field-wrapper .noptin-textarea-label{margin-bottom:12px}}.settings-body.noptin-fields .field-wrapper .noptin-content{flex:1 0 0}.settings-body.noptin-fields .field-wrapper .noptin-content .regular-text,.settings-body.noptin-fields .field-wrapper .noptin-content input[type=text],.settings-body.noptin-fields .field-wrapper .noptin-content select,.settings-body.noptin-fields .field-wrapper .noptin-content textarea{max-width:400px}.settings-body.noptin-fields .field-wrapper.noptin-textarea-wrapper textarea{margin-bottom:0;max-width:400px}.settings-body.noptin-fields .noptin-checkbox_alt-wrapper .description{display:inline-block}.noptin-newsletter-campaign-form.noptin-fields{max-width:1020px}.noptin-newsletter-campaign-form.noptin-fields .noptin-campaign-input,.noptin-newsletter-campaign-form.noptin-fields select,.noptin-newsletter-campaign-form.noptin-fields textarea{max-width:100%}.create-new-campaign{margin-top:6px}a.no-campaign-create-new-campaign{display:block;margin:20px auto;max-width:400px;font-size:16px}.noptin_page_noptin-email-campaigns .swal2-container{z-index:1000060}.noptin-automation-setup-form.noptin-fields{text-align:left}#noptin-automations-popup{position:relative}#noptin-automations-popup h2{margin-bottom:24px;font-size:24px}#noptin-automations-popup ul{display:flex;flex-wrap:wrap;font-size:14px;text-align:left}#noptin-automations-popup ul li{flex:0 0 270px;padding:10px;box-sizing:border-box;margin-bottom:0;-webkit-animation-name:noptinAnimateIn;animation-name:noptinAnimateIn;-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-delay:0;animation-delay:0;-webkit-animation-delay:calc(var(--noptin-automation-select-order)*100ms);animation-delay:calc(var(--noptin-automation-select-order)*100ms);-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}#noptin-automations-popup ul li .noptin-automation-type-select{display:block;padding:10px;border:1px solid #f5f5f5;color:#757575;text-decoration:none;min-height:170px;display:flex;flex-direction:column}#noptin-automations-popup ul li .noptin-automation-type-select:focus,#noptin-automations-popup ul li .noptin-automation-type-select:hover,#noptin-automations-popup ul li .noptin-automation-type-selectctive{color:#757575;border-color:#37474f}#noptin-automations-popup ul li .noptin-automation-type-select.disabled{background:#fcfcfc;border-color:#bdbdbd!important}#noptin-automations-popup ul li .noptin-automation-type-select.disabled>:last-child{color:#ff5722}#noptin-automations-popup ul li .noptin-automation-type-select.disabled>:last-child a{margin-left:4px;text-decoration:none}.noptin-full-screen{background:#fff;position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;overflow:auto}.noptin-save-error,.noptin-save-saved{margin:5px 0 15px;background:#fff;border-left:4px solid #46b450;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1px 12px}.noptin-save-error{border-left-color:#dc3232}.noptin-form-usage-details p{display:flex}.noptin-form-usage-details p strong{margin:0 4px}.noptin-form-usage-details p .noptin-copy-button{transition:all .2s ease;background-color:transparent;color:#43a047;text-transform:capitalize;font-weight:600;border:none;outline:none;margin-left:10px;display:none}.noptin-form-usage-details p .noptin-copy-button.copied{display:inline-block;-webkit-animation:noptin-vibrate .9s infinite both;animation:noptin-vibrate .9s infinite both}#noptin-automation-campaigns-table .column-status:not(.manage-column) .status-inactive,#noptin-newsletter-campaigns-table .column-status:not(.manage-column) .status-inactive,#noptin-subscribers-table .column-status:not(.manage-column) .status-inactive{color:#d84315}#noptin-automation-campaigns-table .column-status:not(.manage-column) .status-active,#noptin-newsletter-campaigns-table .column-status:not(.manage-column) .status-active,#noptin-subscribers-table .column-status:not(.manage-column) .status-active{color:#2e7d32}@media screen and (min-width:960px){#noptin-automation-campaigns-table .manage-column.column-primary,#noptin-newsletter-campaigns-table .manage-column.column-primary,#noptin-subscribers-table .manage-column.column-primary{width:50%}}.button.noptin-send-test-email .dashicons-before{vertical-align:middle;margin-right:4px;color:#ff6f00}.noptin-sortable-ghost{background-color:#f3f3f3;color:#3c3b3b}@-webkit-keyframes noptin-jello-horizontal{0%{transform:scaleX(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleX(1)}}@keyframes noptin-jello-horizontal{0%{transform:scaleX(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleX(1)}}@-webkit-keyframes noptin-vibrate{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}@keyframes noptin-vibrate{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}@-webkit-keyframes noptinAnimateIn{0%{opacity:0;transform:scale(.6) translateY(-8px)}to{opacity:1}}@keyframes noptinAnimateIn{0%{opacity:0;transform:scale(.6) translateY(-8px)}to{opacity:1}}.settings-body.noptin-fields .select2-container .select2-selection--single{height:32px}.noptin-admin-table.noptin-admin-tools-table{margin-bottom:1em}.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row td,.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row th{padding:1.5em;border-bottom:1px solid #eee}.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row .name{display:block;margin-bottom:.5em}.noptin-admin-table.noptin-admin-tools-table .noptin-tool-row .noptin-run-tool{text-align:right}#noptin-tools-page .noptin-tool-error th{color:#b01d1d}#noptin-tools-page .noptin-tool-info th{color:#1266bf}#noptin-tools-page .noptin-tool-notice th{color:#3c47e8}#noptin-tools-page .noptin-tool-warning th{color:#b59209}.noptin-spinner{display:inline-block;width:64px;height:64px}.noptin-spinner:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border-color:#ff5722 transparent #f44336;border-style:solid;border-width:5px;-webkit-animation:noptin-spin 1.2s linear infinite;animation:noptin-spin 1.2s linear infinite}@-webkit-keyframes noptin-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes noptin-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.noptin-spin{-webkit-animation:noptin-spin 1.2s linear infinite;animation:noptin-spin 1.2s linear infinite}.noptin-shadow{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}.noptin-padded{padding:10px}.noptin-big{font-size:20px}.noptin-max-w-200{max-width:200px!important}.noptin-preview-showing{overflow:auto}.noptin-popup-main-wrapper{position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;align-items:center;justify-content:center;background:rgba(96,125,139,.6);background-position:50%;background-size:cover;overflow:auto;display:none}@media only screen and (max-width:520px){.noptin-popup-main-wrapper .noptin-optin-form-wrapper{margin-top:100px}}.noptin-popup-main-wrapper.open{display:flex}.noptin-form-close{position:absolute;top:0;right:0;width:36px;height:36px;cursor:pointer;display:none}.noptin-form-close.outside{top:-36px;right:-36px}.noptin-form-close.along{top:-30px;right:-30px}.noptin-form-close.top-right{top:60px;right:60px;position:fixed}.noptin-form-close path{fill:hsla(0,0%,100%,.9);transition:.3s}.noptin-form-close:hover path{fill:hsla(0,0%,100%,.4)}.noptin-popup-main-wrapper.open .noptin-form-close,.noptin-preview-showing .noptin-form-close{display:inline-block}.noptin-animate-from{transform:scale(0) rotate(1turn)}.noptin-animate-after{transform:scale(1) rotate(0deg)}.noptin-optin-form-wrapper{border:4px solid #ff6f00;padding:0;display:flex;background-color:#ff6f00;transition:all .5s;background-position:50%;background-size:cover;position:relative;box-sizing:border-box;margin:auto;max-width:100%;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.noptin-optin-form-wrapper *{box-sizing:border-box}.noptin-inpost-main-wrapper .noptin-optin-form-wrapper{margin-bottom:20px;margin-top:20px}.noptin-popup-main-wrapper .noptin-optin-form-wrapper{max-width:90%;width:520px}.noptin-optin-form-wrapper .noptin-optin-form,.noptin-optin-form-wrapper form{width:100%;position:relative;text-align:center;display:flex;flex-direction:column;justify-content:center}.noptin-optin-form-wrapper .noptin-optin-form .noptin-video-container,.noptin-optin-form-wrapper form .noptin-video-container{position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;overflow:hidden}.noptin-optin-form-wrapper .noptin-optin-form .noptin-video-container video,.noptin-optin-form-wrapper form .noptin-video-container video{min-width:100%;min-height:100%;width:auto;height:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.noptin-optin-form-wrapper .noptin-optin-form a,.noptin-optin-form-wrapper .noptin-optin-form a:active,.noptin-optin-form-wrapper .noptin-optin-form a:hover,.noptin-optin-form-wrapper .noptin-optin-form a:visited,.noptin-optin-form-wrapper form a,.noptin-optin-form-wrapper form a:active,.noptin-optin-form-wrapper form a:hover,.noptin-optin-form-wrapper form a:visited{color:inherit!important;text-decoration:none;box-shadow:0 1px 0 0 currentColor}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header,.noptin-optin-form-wrapper form .noptin-form-header{display:flex;padding:20px;align-items:center;justify-content:center;z-index:100}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header ul,.noptin-optin-form-wrapper form .noptin-form-header ul{text-align:left!important;list-style-type:disc}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.left,.noptin-optin-form-wrapper form .noptin-form-header.left{flex-direction:row-reverse;text-align:left}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.left .noptin-form-header-text,.noptin-optin-form-wrapper form .noptin-form-header.left .noptin-form-header-text{padding-left:20px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.left .noptin-form-header-image,.noptin-optin-form-wrapper form .noptin-form-header.left .noptin-form-header-image{max-width:40%}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.right,.noptin-optin-form-wrapper form .noptin-form-header.right{text-align:left}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.right .noptin-form-header-text,.noptin-optin-form-wrapper form .noptin-form-header.right .noptin-form-header-text{padding-right:20px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.right .noptin-form-header-image,.noptin-optin-form-wrapper form .noptin-form-header.right .noptin-form-header-image{max-width:40%}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.top,.noptin-optin-form-wrapper form .noptin-form-header.top{flex-direction:column-reverse}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.top .noptin-form-header-text,.noptin-optin-form-wrapper form .noptin-form-header.top .noptin-form-header-text{padding-top:20px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header.bottom,.noptin-optin-form-wrapper form .noptin-form-header.bottom{flex-direction:column}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header img,.noptin-optin-form-wrapper form .noptin-form-header img{max-width:100%;max-height:150px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-heading,.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-heading{font-size:23px;font-weight:700;line-height:1.4125;padding-top:4px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-heading p,.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-heading p{margin:0;font-size:23px;font-weight:700}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-description,.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-description{font-size:16px;line-height:1.3;padding-top:18px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-header .noptin-form-description p,.noptin-optin-form-wrapper form .noptin-form-header .noptin-form-description p{margin:0;font-size:16px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer,.noptin-optin-form-wrapper form .noptin-form-footer{padding:20px;z-index:100}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-fields:after,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-fields:after{content:"";clear:both;display:table}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-optin-field-wrapper,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-optin-field-wrapper{width:100%;display:block;text-align:left;margin-bottom:10px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-optin-field-wrapper .noptin-form-field,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-optin-field-wrapper .noptin-form-field{padding:11px 32px;font-size:16px;display:block;color:#666;-webkit-text-fill-color:#666;background:hsla(0,0%,100%,.6);background-image:-webkit-linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0));border:1px solid hsla(0,0%,73.3%,.6);border-radius:3px;width:100%;outline:none!important;line-height:1.45714285714286;margin:0}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-submit,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-submit{background-color:#524b4d;display:block;border:none;color:#fafafa;text-align:center;font-weight:500;padding:16px 32px;flex:1 0 0;font-weight:800;box-shadow:none;text-transform:none;line-height:1.45714285714286}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-button-block,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-button-block{width:100%}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-button-right,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-button-right{float:right}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-note,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-note{font-size:14px}.noptin-optin-form-wrapper .noptin-optin-form .noptin-form-footer .noptin-form-note p,.noptin-optin-form-wrapper form .noptin-form-footer .noptin-form-note p{font-size:14px;margin:0}.noptin-optin-form-wrapper .noptin-optin-form.noptin-form-new-line .noptin-form-field,.noptin-optin-form-wrapper form.noptin-form-new-line .noptin-form-field{margin-bottom:4px}@media only screen and (min-width:520px){.noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields,.noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields{display:flex}.noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields .noptin-form-submit,.noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields .noptin-form-submit{padding:11px 32px}.noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields .noptin-optin-field-wrapper,.noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields .noptin-optin-field-wrapper{margin-right:4px;margin-bottom:0}.noptin-optin-form-wrapper .noptin-optin-form.noptin-form-single-line .noptin-form-fields .noptin-form-field,.noptin-optin-form-wrapper form.noptin-form-single-line .noptin-form-fields .noptin-form-field{border-radius:0}}.comment-form-noptin input,.register-form-noptin input{margin-right:8px}.wp-block-noptin-email-optin{min-height:280px;display:flex;align-items:center;justify-content:center}.wp-block-noptin-email-optin form{width:100%}.wp-block-noptin-email-optin form h2.noptin_form_title{font-size:23px;font-weight:700;line-height:1.4125;padding-top:4px;margin-bottom:10px;margin-top:16px}.wp-block-noptin-email-optin form p.noptin_form_description{font-size:16px;line-height:1.3;margin-bottom:10px}.wp-block-noptin-email-optin form input.noptin_form_input_email{padding:11px 32px;font-size:16px;display:block;color:#666;-webkit-text-fill-color:#666;background:hsla(0,0%,100%,.6);background-image:-webkit-linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,0));border:1px solid hsla(0,0%,73.3%,.6);border-radius:3px;width:100%;outline:none!important;line-height:1.45714285714286;text-align:center}.wp-block-noptin-email-optin form .noptin_form_submit{background-color:#313131;width:100%;display:block;border:none;margin-top:1em;text-align:center;padding:16px 32px;flex:1 0 0;font-weight:800;box-shadow:none;line-height:1.45714285714286}.noptin_widget .noptin-email-optin-widget{box-sizing:border-box!important;display:flex;justify-content:center;align-items:center;min-height:100px}.noptin_widget .noptin-email-optin-widget.noptin-email-optin-widget-has-bg{min-height:380px;padding:32px}.noptin_widget .noptin-email-optin-widget form{width:100%}.noptin_widget .noptin-email-optin-widget form .noptin-widget-email-input.noptin_form_input_email,.noptin_widget .noptin-email-optin-widget form .noptin-widget-email-input.noptin_form_input_email:active,.noptin_widget .noptin-email-optin-widget form .noptin-widget-email-input.noptin_form_input_email:focus{width:100%;padding:10px;outline:none}.noptin_widget .noptin-email-optin-widget form .noptin_feedback_error{border:1px solid #f44336;display:none;padding:10px;margin-top:10px}.noptin_widget .noptin-email-optin-widget form .noptin-widget-submit-input{margin-top:5px;display:block;width:100%;padding:16px}body.noptin.noptin-actions-page{background:#fff!important;background-image:none!important;color:#212121!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;height:100vh!important;overflow:auto!important} \ No newline at end of file diff --git a/includes/assets/js/dist/admin.js b/includes/assets/js/dist/admin.js index 496894e0..90856a73 100644 --- a/includes/assets/js/dist/admin.js +++ b/includes/assets/js/dist/admin.js @@ -1,280 +1 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./includes/assets/js/src/admin.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./includes/assets/js/src/admin.js": -/*!*****************************************!*\ - !*** ./includes/assets/js/src/admin.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -eval("(function ($) {\n if ('undefined' == typeof noptinEditor) {\n window.noptinEditor = {};\n } //Settings app\n\n\n if ('undefined' == typeof noptinSettings) {\n window.noptinSettings = {};\n } // Global noptin object\n\n\n window.noptin = {}; // Hook management\n\n noptin.hooks = __webpack_require__(/*! @wordpress/hooks */ \"./node_modules/@wordpress/hooks/build-module/index.js\"); // Attach the tooltips\n\n $(document).ready(function () {\n $('.noptin-tip').tooltipster();\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./includes/assets/js/src/admin.js?"); - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***! - \**********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _arrayWithoutHoles; });\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js?"); - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js": -/*!********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! - \********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _iterableToArray; });\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArray.js?"); - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***! - \**********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _nonIterableSpread; });\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js?"); - -/***/ }), - -/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***! - \**********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _toConsumableArray; });\n/* harmony import */ var _arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles */ \"./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\");\n/* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray */ \"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js\");\n/* harmony import */ var _nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableSpread */ \"./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\");\n\n\n\nfunction _toConsumableArray(arr) {\n return Object(_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(arr) || Object(_nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__[\"default\"])();\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createAddHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createAddHook.js ***! - \*********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ \"./node_modules/@wordpress/hooks/build-module/validateNamespace.js\");\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ */ \"./node_modules/@wordpress/hooks/build-module/index.js\");\n/**\n * Internal dependencies\n */\n\n\n\n/**\n * Returns a function which, when invoked, will add a hook.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n *\n * @return {Function} Function that adds a new hook.\n */\n\nfunction createAddHook(hooks) {\n /**\n * Adds the hook to the appropriate hooks container.\n *\n * @param {string} hookName Name of hook to add\n * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.\n * @param {Function} callback Function to call when the hook is run\n * @param {?number} priority Priority of this hook (default=10)\n */\n return function addHook(hookName, namespace, callback) {\n var priority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;\n\n if (!Object(_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(hookName)) {\n return;\n }\n\n if (!Object(_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(namespace)) {\n return;\n }\n\n if ('function' !== typeof callback) {\n // eslint-disable-next-line no-console\n console.error('The hook callback must be a function.');\n return;\n } // Validate numeric priority\n\n\n if ('number' !== typeof priority) {\n // eslint-disable-next-line no-console\n console.error('If specified, the hook priority must be a number.');\n return;\n }\n\n var handler = {\n callback: callback,\n priority: priority,\n namespace: namespace\n };\n\n if (hooks[hookName]) {\n // Find the correct insert index of the new hook.\n var handlers = hooks[hookName].handlers;\n var i;\n\n for (i = handlers.length; i > 0; i--) {\n if (priority >= handlers[i - 1].priority) {\n break;\n }\n }\n\n if (i === handlers.length) {\n // If append, operate via direct assignment.\n handlers[i] = handler;\n } else {\n // Otherwise, insert before index via splice.\n handlers.splice(i, 0, handler);\n } // We may also be currently executing this hook. If the callback\n // we're adding would come after the current callback, there's no\n // problem; otherwise we need to increase the execution index of\n // any other runs by 1 to account for the added element.\n\n\n (hooks.__current || []).forEach(function (hookInfo) {\n if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {\n hookInfo.currentIndex++;\n }\n });\n } else {\n // This is the first hook of its type.\n hooks[hookName] = {\n handlers: [handler],\n runs: 0\n };\n }\n\n if (hookName !== 'hookAdded') {\n Object(___WEBPACK_IMPORTED_MODULE_2__[\"doAction\"])('hookAdded', hookName, namespace, callback, priority);\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createAddHook);\n//# sourceMappingURL=createAddHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createAddHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createCurrentHook.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js ***! - \*************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns a function which, when invoked, will return the name of the\n * currently running hook, or `null` if no hook of the given type is currently\n * running.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n *\n * @return {Function} Function that returns the current hook.\n */\nfunction createCurrentHook(hooks) {\n /**\n * Returns the name of the currently running hook, or `null` if no hook of\n * the given type is currently running.\n *\n * @return {?string} The name of the currently running hook, or\n * `null` if no hook is currently running.\n */\n return function currentHook() {\n if (!hooks.__current || !hooks.__current.length) {\n return null;\n }\n\n return hooks.__current[hooks.__current.length - 1].name;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createCurrentHook);\n//# sourceMappingURL=createCurrentHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createCurrentHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createDidHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createDidHook.js ***! - \*********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/**\n * Internal dependencies\n */\n\n/**\n * Returns a function which, when invoked, will return the number of times a\n * hook has been called.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n *\n * @return {Function} Function that returns a hook's call count.\n */\n\nfunction createDidHook(hooks) {\n /**\n * Returns the number of times an action has been fired.\n *\n * @param {string} hookName The hook name to check.\n *\n * @return {number} The number of times the hook has run.\n */\n return function didHook(hookName) {\n if (!Object(_validateHookName_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(hookName)) {\n return;\n }\n\n return hooks[hookName] && hooks[hookName].runs ? hooks[hookName].runs : 0;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createDidHook);\n//# sourceMappingURL=createDidHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createDidHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createDoingHook.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createDoingHook.js ***! - \***********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns a function which, when invoked, will return whether a hook is\n * currently being executed.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n *\n * @return {Function} Function that returns whether a hook is currently\n * being executed.\n */\nfunction createDoingHook(hooks) {\n /**\n * Returns whether a hook is currently being executed.\n *\n * @param {?string} hookName The name of the hook to check for. If\n * omitted, will check for any hook being executed.\n *\n * @return {boolean} Whether the hook is being executed.\n */\n return function doingHook(hookName) {\n // If the hookName was not passed, check for any current hook.\n if ('undefined' === typeof hookName) {\n return 'undefined' !== typeof hooks.__current[0];\n } // Return the __current hook.\n\n\n return hooks.__current[0] ? hookName === hooks.__current[0].name : false;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createDoingHook);\n//# sourceMappingURL=createDoingHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createDoingHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createHasHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createHasHook.js ***! - \*********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Returns a function which, when invoked, will return whether any handlers are\n * attached to a particular hook.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n *\n * @return {Function} Function that returns whether any handlers are\n * attached to a particular hook and optional namespace.\n */\nfunction createHasHook(hooks) {\n /**\n * Returns whether any handlers are attached for the given hookName and optional namespace.\n *\n * @param {string} hookName The name of the hook to check for.\n * @param {?string} namespace Optional. The unique namespace identifying the callback\n * in the form `vendor/plugin/function`.\n *\n * @return {boolean} Whether there are handlers that are attached to the given hook.\n */\n return function hasHook(hookName, namespace) {\n // Use the namespace if provided.\n if ('undefined' !== typeof namespace) {\n return hookName in hooks && hooks[hookName].handlers.some(function (hook) {\n return hook.namespace === namespace;\n });\n }\n\n return hookName in hooks;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createHasHook);\n//# sourceMappingURL=createHasHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createHasHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createHooks.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createHooks.js ***! - \*******************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _createAddHook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAddHook */ \"./node_modules/@wordpress/hooks/build-module/createAddHook.js\");\n/* harmony import */ var _createRemoveHook__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createRemoveHook */ \"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js\");\n/* harmony import */ var _createHasHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createHasHook */ \"./node_modules/@wordpress/hooks/build-module/createHasHook.js\");\n/* harmony import */ var _createRunHook__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createRunHook */ \"./node_modules/@wordpress/hooks/build-module/createRunHook.js\");\n/* harmony import */ var _createCurrentHook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createCurrentHook */ \"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js\");\n/* harmony import */ var _createDoingHook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createDoingHook */ \"./node_modules/@wordpress/hooks/build-module/createDoingHook.js\");\n/* harmony import */ var _createDidHook__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createDidHook */ \"./node_modules/@wordpress/hooks/build-module/createDidHook.js\");\n/**\n * Internal dependencies\n */\n\n\n\n\n\n\n\n/**\n * Returns an instance of the hooks object.\n *\n * @return {Object} Object that contains all hooks.\n */\n\nfunction createHooks() {\n var actions = Object.create(null);\n var filters = Object.create(null);\n actions.__current = [];\n filters.__current = [];\n return {\n addAction: Object(_createAddHook__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(actions),\n addFilter: Object(_createAddHook__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(filters),\n removeAction: Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(actions),\n removeFilter: Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(filters),\n hasAction: Object(_createHasHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(actions),\n hasFilter: Object(_createHasHook__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(filters),\n removeAllActions: Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(actions, true),\n removeAllFilters: Object(_createRemoveHook__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(filters, true),\n doAction: Object(_createRunHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(actions),\n applyFilters: Object(_createRunHook__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(filters, true),\n currentAction: Object(_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(actions),\n currentFilter: Object(_createCurrentHook__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(filters),\n doingAction: Object(_createDoingHook__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(actions),\n doingFilter: Object(_createDoingHook__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(filters),\n didAction: Object(_createDidHook__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(actions),\n didFilter: Object(_createDidHook__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(filters),\n actions: actions,\n filters: filters\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createHooks);\n//# sourceMappingURL=createHooks.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createHooks.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createRemoveHook.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createRemoveHook.js ***! - \************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validateNamespace.js */ \"./node_modules/@wordpress/hooks/build-module/validateNamespace.js\");\n/* harmony import */ var _validateHookName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validateHookName.js */ \"./node_modules/@wordpress/hooks/build-module/validateHookName.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ */ \"./node_modules/@wordpress/hooks/build-module/index.js\");\n/**\n * Internal dependencies\n */\n\n\n\n/**\n * Returns a function which, when invoked, will remove a specified hook or all\n * hooks by the given name.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n * @param {boolean} removeAll Whether to remove all callbacks for a hookName, without regard to namespace. Used to create `removeAll*` functions.\n *\n * @return {Function} Function that removes hooks.\n */\n\nfunction createRemoveHook(hooks, removeAll) {\n /**\n * Removes the specified callback (or all callbacks) from the hook with a\n * given hookName and namespace.\n *\n * @param {string} hookName The name of the hook to modify.\n * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.\n *\n * @return {number} The number of callbacks removed.\n */\n return function removeHook(hookName, namespace) {\n if (!Object(_validateHookName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(hookName)) {\n return;\n }\n\n if (!removeAll && !Object(_validateNamespace_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(namespace)) {\n return;\n } // Bail if no hooks exist by this name\n\n\n if (!hooks[hookName]) {\n return 0;\n }\n\n var handlersRemoved = 0;\n\n if (removeAll) {\n handlersRemoved = hooks[hookName].handlers.length;\n hooks[hookName] = {\n runs: hooks[hookName].runs,\n handlers: []\n };\n } else {\n // Try to find the specified callback to remove.\n var handlers = hooks[hookName].handlers;\n\n var _loop = function _loop(i) {\n if (handlers[i].namespace === namespace) {\n handlers.splice(i, 1);\n handlersRemoved++; // This callback may also be part of a hook that is\n // currently executing. If the callback we're removing\n // comes after the current callback, there's no problem;\n // otherwise we need to decrease the execution index of any\n // other runs by 1 to account for the removed element.\n\n (hooks.__current || []).forEach(function (hookInfo) {\n if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {\n hookInfo.currentIndex--;\n }\n });\n }\n };\n\n for (var i = handlers.length - 1; i >= 0; i--) {\n _loop(i);\n }\n }\n\n if (hookName !== 'hookRemoved') {\n Object(___WEBPACK_IMPORTED_MODULE_2__[\"doAction\"])('hookRemoved', hookName, namespace);\n }\n\n return handlersRemoved;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createRemoveHook);\n//# sourceMappingURL=createRemoveHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createRemoveHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/createRunHook.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/createRunHook.js ***! - \*********************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n\n\n/**\n * Returns a function which, when invoked, will execute all callbacks\n * registered to a hook of the specified type, optionally returning the final\n * value of the call chain.\n *\n * @param {Object} hooks Stored hooks, keyed by hook name.\n * @param {?boolean} returnFirstArg Whether each hook callback is expected to\n * return its first argument.\n *\n * @return {Function} Function that runs hook callbacks.\n */\nfunction createRunHook(hooks, returnFirstArg) {\n /**\n * Runs all callbacks for the specified hook.\n *\n * @param {string} hookName The name of the hook to run.\n * @param {...*} args Arguments to pass to the hook callbacks.\n *\n * @return {*} Return value of runner, if applicable.\n */\n return function runHooks(hookName) {\n if (!hooks[hookName]) {\n hooks[hookName] = {\n handlers: [],\n runs: 0\n };\n }\n\n hooks[hookName].runs++;\n var handlers = hooks[hookName].handlers; // The following code is stripped from production builds.\n\n if (true) {\n // Handle any 'all' hooks registered.\n if ('hookAdded' !== hookName && hooks.all) {\n handlers.push.apply(handlers, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(hooks.all.handlers));\n }\n }\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (!handlers || !handlers.length) {\n return returnFirstArg ? args[0] : undefined;\n }\n\n var hookInfo = {\n name: hookName,\n currentIndex: 0\n };\n\n hooks.__current.push(hookInfo);\n\n while (hookInfo.currentIndex < handlers.length) {\n var handler = handlers[hookInfo.currentIndex];\n var result = handler.callback.apply(null, args);\n\n if (returnFirstArg) {\n args[0] = result;\n }\n\n hookInfo.currentIndex++;\n }\n\n hooks.__current.pop();\n\n if (returnFirstArg) {\n return args[0];\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createRunHook);\n//# sourceMappingURL=createRunHook.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/createRunHook.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/index.js": -/*!*************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/index.js ***! - \*************************************************************/ -/*! exports provided: createHooks, addAction, addFilter, removeAction, removeFilter, hasAction, hasFilter, removeAllActions, removeAllFilters, doAction, applyFilters, currentAction, currentFilter, doingAction, doingFilter, didAction, didFilter, actions, filters */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addAction\", function() { return addAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addFilter\", function() { return addFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeAction\", function() { return removeAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeFilter\", function() { return removeFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasAction\", function() { return hasAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hasFilter\", function() { return hasFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeAllActions\", function() { return removeAllActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeAllFilters\", function() { return removeAllFilters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"doAction\", function() { return doAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyFilters\", function() { return applyFilters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"currentAction\", function() { return currentAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"currentFilter\", function() { return currentFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"doingAction\", function() { return doingAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"doingFilter\", function() { return doingFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"didAction\", function() { return didAction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"didFilter\", function() { return didFilter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"actions\", function() { return actions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"filters\", function() { return filters; });\n/* harmony import */ var _createHooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createHooks */ \"./node_modules/@wordpress/hooks/build-module/createHooks.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createHooks\", function() { return _createHooks__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/**\n * Internal dependencies\n */\n\n\nvar _createHooks = Object(_createHooks__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(),\n addAction = _createHooks.addAction,\n addFilter = _createHooks.addFilter,\n removeAction = _createHooks.removeAction,\n removeFilter = _createHooks.removeFilter,\n hasAction = _createHooks.hasAction,\n hasFilter = _createHooks.hasFilter,\n removeAllActions = _createHooks.removeAllActions,\n removeAllFilters = _createHooks.removeAllFilters,\n doAction = _createHooks.doAction,\n applyFilters = _createHooks.applyFilters,\n currentAction = _createHooks.currentAction,\n currentFilter = _createHooks.currentFilter,\n doingAction = _createHooks.doingAction,\n doingFilter = _createHooks.doingFilter,\n didAction = _createHooks.didAction,\n didFilter = _createHooks.didFilter,\n actions = _createHooks.actions,\n filters = _createHooks.filters;\n\n\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/index.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/validateHookName.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/validateHookName.js ***! - \************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Validate a hookName string.\n *\n * @param {string} hookName The hook name to validate. Should be a non empty string containing\n * only numbers, letters, dashes, periods and underscores. Also,\n * the hook name cannot begin with `__`.\n *\n * @return {boolean} Whether the hook name is valid.\n */\nfunction validateHookName(hookName) {\n if ('string' !== typeof hookName || '' === hookName) {\n // eslint-disable-next-line no-console\n console.error('The hook name must be a non-empty string.');\n return false;\n }\n\n if (/^__/.test(hookName)) {\n // eslint-disable-next-line no-console\n console.error('The hook name cannot begin with `__`.');\n return false;\n }\n\n if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) {\n // eslint-disable-next-line no-console\n console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.');\n return false;\n }\n\n return true;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (validateHookName);\n//# sourceMappingURL=validateHookName.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/validateHookName.js?"); - -/***/ }), - -/***/ "./node_modules/@wordpress/hooks/build-module/validateNamespace.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/hooks/build-module/validateNamespace.js ***! - \*************************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Validate a namespace string.\n *\n * @param {string} namespace The namespace to validate - should take the form\n * `vendor/plugin/function`.\n *\n * @return {boolean} Whether the namespace is valid.\n */\nfunction validateNamespace(namespace) {\n if ('string' !== typeof namespace || '' === namespace) {\n // eslint-disable-next-line no-console\n console.error('The namespace must be a non-empty string.');\n return false;\n }\n\n if (!/^[a-zA-Z][a-zA-Z0-9_.\\-\\/]*$/.test(namespace)) {\n // eslint-disable-next-line no-console\n console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.');\n return false;\n }\n\n return true;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (validateNamespace);\n//# sourceMappingURL=validateNamespace.js.map\n\n//# sourceURL=webpack:///./node_modules/@wordpress/hooks/build-module/validateNamespace.js?"); - -/***/ }) - -/******/ }); \ No newline at end of file +!function(n){var r={};function e(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=n,e.c=r,e.d=function(n,r,t){e.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:t})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,r){if(1&r&&(n=e(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(e.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var o in n)e.d(t,o,function(r){return n[r]}.bind(null,o));return t},e.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(r,"a",r),r},e.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},e.p="",e(e.s=26)}({26:function(n,r,e){var t;t=jQuery,"undefined"==typeof noptinEditor&&(window.noptinEditor={}),"undefined"==typeof noptinSettings&&(window.noptinSettings={}),window.noptin={},noptin.hooks=e(37),t(document).ready((function(){t(".noptin-tip").tooltipster()}))},37:function(n,r,e){"use strict";e.r(r);var t=function(n){return"string"!=typeof n||""===n?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(n)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(n){return"string"!=typeof n||""===n?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(n)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(n)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(n){return function(r,e,i){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var d,l=n[r].handlers;for(d=l.length;d>0&&!(u>=l[d-1].priority);d--);d===l.length?l[d]=c:l.splice(d,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=d&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,d=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)d(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};var d=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u sensitivity) {\n return;\n }\n\n _delayTimer = setTimeout(function () {\n //Display the popup\n displayPopup(_this); //Remove watchers\n\n $(document).off('mouseleave.' + key);\n $(document).off('mouseenter.' + key);\n }, delay);\n }); //...unless they decide to come back\n\n $(document).on('mouseenter.' + key, function (e) {\n if (_delayTimer) {\n clearTimeout(_delayTimer);\n _delayTimer = null;\n }\n });\n },\n //After the user starts scrolling\n on_scroll: function on_scroll() {\n var popup = this,\n key = randomString(),\n showPercent = parseInt($(this).data('on-scroll'));\n\n var watchScroll = function watchScroll() {\n var scrolled = $(window).scrollTop(),\n Dheight = $(document).height(),\n Wheight = $(window).height();\n var scrollPercent = scrolled / (Dheight - Wheight) * 100;\n\n if (scrollPercent > showPercent) {\n displayPopup(popup);\n $(window).off('scroll.' + key);\n }\n };\n\n $(window).on('scroll.' + key, throttle(watchScroll, 500));\n },\n //after_delay\n after_delay: function after_delay() {\n var _this2 = this;\n\n var delay = parseInt($(this).data('after-delay')) * 1000;\n setTimeout(function () {\n displayPopup(_this2);\n }, delay);\n },\n //after_comment\n after_comment: function after_comment() {\n $('#commentform').on('submit', function (e) {//TODO\n });\n },\n //after_click\n after_click: function after_click() {\n var el = $(this).data('after-click'),\n popup = this;\n $(el).on('click', function (e) {\n e.preventDefault();\n displayPopup(popup, true);\n });\n }\n }; //Loop through all popups and attach triggers\n\n $('.noptin-popup-main-wrapper .noptin-optin-form-wrapper').each(function () {\n var trigger = $(this).data('trigger'); //Some forms are only set to be displayed once per session\n\n if (typeof $(this).data('once-per-session') !== 'undefined' && 'after_click' != trigger) {\n var id = $(this).find('input[name=noptin_form_id]').val();\n\n if (id && sessionStorage.getItem(\"noptinFormDisplayed\" + id)) {\n return true;\n }\n } //Take it to its initial state\n\n\n $(this).addClass('noptin-animate-from');\n\n if (noptinDisplayPopup[trigger]) {\n var cb = noptinDisplayPopup[trigger];\n cb.call(this);\n }\n }); //Submits forms via ajax\n\n function subscribe_user(form) {\n $(form) //https://stackoverflow.com/questions/15319942/preventing-bot-form-submission\n .prepend(''); //select the form\n\n $(form) //what for submit events\n .on('submit', function (e) {\n var _this3 = this;\n\n //Prevent the form from submitting\n e.preventDefault(); //Modify form state\n\n $(this).fadeTo(600, 0.5).find('.noptin_feedback_success, .noptin_feedback_error').empty().hide(); //Prep all form data\n\n var data = {},\n fields = $(this).serializeArray();\n jQuery.each(fields, function (i, field) {\n data[field.name] = field.value;\n }); //Add nonce and action\n\n data.action = \"noptin_new_subscriber\";\n data._wpnonce = noptin.nonce;\n data.ipAddress = ipAddress; //Post it to the server\n\n $.post(noptin.ajaxurl, data) //Update the user of success\n .done(function (data, status, xhr) {\n if ('string' == typeof data) {\n $(_this3).find('.noptin_feedback_error').text(data).show();\n return;\n } // Google Analytics\n\n\n try {\n if (typeof ga === 'function') {\n ga('send', 'event', 'Noptin Form', 'Subscribe', 'Noptin');\n } else if (typeof gtag === 'function') {\n gtag('event', 'subscribe', {\n 'method': 'Noptin Form'\n });\n }\n } catch (err) {\n console.error(err.message);\n }\n\n subscribed = true;\n\n if (data.action == 'redirect') {\n window.location = data.redirect;\n return;\n } //Gutenberg\n\n\n var url = $(_this3).find('.noptin_form_redirect').val();\n\n if (url) {\n window.location = url;\n return;\n }\n\n if (data.action == 'msg') {\n $(_this3).html('
' + data.msg + '
');\n $(_this3).css({\n display: 'flex',\n justifyContent: 'center'\n });\n }\n }).fail(function () {\n var msg = 'Could not establish a connection to the server.';\n $(_this3).find('.noptin_feedback_error').text(msg).show();\n }).always(function () {\n $(_this3).fadeTo(600, 1);\n });\n });\n } //Normal forms\n\n\n subscribe_user('.noptin-optin-form-wrapper form'); //Gutenberg forms\n\n $('.wp-block-noptin-email-optin form, .noptin-email-optin-widget form').find('input[type=email]').attr('name', 'email');\n subscribe_user('.wp-block-noptin-email-optin form, .noptin-email-optin-widget form');\n})(jQuery);\n\n//# sourceURL=webpack:///./includes/assets/js/src/frontend.js?"); - -/***/ }), - -/***/ "./node_modules/lodash.throttle/index.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash.throttle/index.js ***! - \***********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/lodash.throttle/index.js?"); - -/***/ }), - -/***/ "./node_modules/webpack/buildin/global.js": -/*!***********************************!*\ - !*** (webpack)/buildin/global.js ***! - \***********************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?"); - -/***/ }) - -/******/ }); \ No newline at end of file +!function(n){var t={};function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=n,e.c=t,e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:o})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(o,i,function(t){return n[t]}.bind(null,i));return o},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=32)}({32:function(n,t,e){!function(n){"use strict";var t=e(33),o=function(){return"key"+Math.random().toString(36).replace(/[^a-z]+/g,"")},i="";n.getJSON("https://api.ipify.org?format=jsonp&callback=?",(function(n){n.ip&&(i=n.ip)}));var r=!1,a=!1,c=function(t){r=!1;var e=n(t).closest(".noptin-popup-main-wrapper"),o=n(e).find(".noptin-optin-form-wrapper");n(o).removeClass("noptin-animate-after");var i=parseFloat(n(o).css("transition-duration"));i?i*=1e3:i=500,setTimeout((function(){n("body").css("overflow","auto"),n(e).removeClass("open")}),i)},f=function(t,e){if(void 0===e&&(e=!1),e||!r&&!a){r=!0,n.post(noptin.ajaxurl,{action:"noptin_log_form_impression",_wpnonce:noptin.nonce,form_id:n(t).find("input[name=noptin_form_id]").val()});var o=n(t).closest(".noptin-popup-main-wrapper").addClass("open").on("click",(function(e){n(t).is(e.target)||0!==n(t).has(e.target).length||c(t)})).find(".noptin-form-close").on("click",(function(){c(t)}));if(n(o).hasClass("top-right")){var i=n(o).closest(".noptin-popup-main-wrapper");n(o).appendTo(i)}if(setTimeout((function(){n("body").css("overflow","hidden"),n(t).addClass("noptin-animate-after")}),100),void 0!==n(t).data("once-per-session")){var f=n(t).find("input[name=noptin_form_id]").val();sessionStorage.setItem("noptinFormDisplayed"+f,"1")}}},u={immeadiate:function(){f(this)},before_leave:function(){var t=this,e=o(),i=null;n(document).on("mouseleave."+e,(function(o){o.clientY>0||(i=setTimeout((function(){f(t),n(document).off("mouseleave."+e),n(document).off("mouseenter."+e)}),200))})),n(document).on("mouseenter."+e,(function(n){i&&(clearTimeout(i),i=null)}))},on_scroll:function(){var e=this,i=o(),r=parseInt(n(this).data("on-scroll"));n(window).on("scroll."+i,t((function(){n(window).scrollTop()/(n(document).height()-n(window).height())*100>r&&(f(e),n(window).off("scroll."+i))}),500))},after_delay:function(){var t=this,e=1e3*parseInt(n(this).data("after-delay"));setTimeout((function(){f(t)}),e)},after_comment:function(){n("#commentform").on("submit",(function(n){}))},after_click:function(){var t=n(this).data("after-click"),e=this;n(t).on("click",(function(n){n.preventDefault(),f(e,!0)}))}};function s(t){n(t).prepend(''),n(t).on("submit",(function(t){var e=this;t.preventDefault(),n(this).fadeTo(600,.5).find(".noptin_feedback_success, .noptin_feedback_error").empty().hide();var o={},r=n(this).serializeArray();jQuery.each(r,(function(n,t){o[t.name]=t.value})),o.action="noptin_new_subscriber",o._wpnonce=noptin.nonce,o.ipAddress=i,n.post(noptin.ajaxurl,o).done((function(t,o,i){if("string"!=typeof t){try{"function"==typeof ga?ga("send","event","Noptin Form","Subscribe","Noptin"):"function"==typeof gtag&>ag("event","subscribe",{method:"Noptin Form"})}catch(n){console.error(n.message)}if(a=!0,"redirect"!=t.action){var r=n(e).find(".noptin_form_redirect").val();r?window.location=r:"msg"==t.action&&(n(e).html('
'+t.msg+"
"),n(e).css({display:"flex",justifyContent:"center"}))}else window.location=t.redirect}else n(e).find(".noptin_feedback_error").text(t).show()})).fail((function(){n(e).find(".noptin_feedback_error").text("Could not establish a connection to the server.").show()})).always((function(){n(e).fadeTo(600,1)}))}))}n(".noptin-popup-main-wrapper .noptin-optin-form-wrapper").each((function(){var t=n(this).data("trigger");if(void 0!==n(this).data("once-per-session")&&"after_click"!=t){var e=n(this).find("input[name=noptin_form_id]").val();if(e&&sessionStorage.getItem("noptinFormDisplayed"+e))return!0}(n(this).addClass("noptin-animate-from"),u[t])&&u[t].call(this)})),s(".noptin-optin-form-wrapper form"),n(".wp-block-noptin-email-optin form, .noptin-email-optin-widget form").find("input[type=email]").attr("name","email"),s(".wp-block-noptin-email-optin form, .noptin-email-optin-widget form")}(jQuery)},33:function(n,t,e){(function(t){var e=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,u=c||f||Function("return this")(),s=Object.prototype.toString,p=Math.max,l=Math.min,d=function(){return u.Date.now()};function m(n,t,e){var o,i,r,a,c,f,u=0,s=!1,m=!1,b=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function h(t){var e=o,r=i;return o=i=void 0,u=t,a=n.apply(r,e)}function g(n){return u=n,c=setTimeout(_,t),s?h(n):a}function w(n){var e=n-f;return void 0===f||e>=t||e<0||m&&n-u>=r}function _(){var n=d();if(w(n))return j(n);c=setTimeout(_,function(n){var e=t-(n-f);return m?l(e,r-(n-u)):e}(n))}function j(n){return c=void 0,b&&o?h(n):(o=i=void 0,a)}function x(){var n=d(),e=w(n);if(o=arguments,i=this,f=n,e){if(void 0===c)return g(f);if(m)return c=setTimeout(_,t),h(f)}return void 0===c&&(c=setTimeout(_,t)),a}return t=y(t)||0,v(e)&&(s=!!e.leading,r=(m="maxWait"in e)?p(y(e.maxWait)||0,t):r,b="trailing"in e?!!e.trailing:b),x.cancel=function(){void 0!==c&&clearTimeout(c),u=0,o=f=i=c=void 0},x.flush=function(){return void 0===c?a:j(d())},x}function v(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function y(n){if("number"==typeof n)return n;if(function(n){return"symbol"==typeof n||function(n){return!!n&&"object"==typeof n}(n)&&"[object Symbol]"==s.call(n)}(n))return NaN;if(v(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=v(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(e,"");var c=i.test(n);return c||r.test(n)?a(n.slice(2),c?2:8):o.test(n)?NaN:+n}n.exports=function(n,t,e){var o=!0,i=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return v(e)&&(o="leading"in e?!!e.leading:o,i="trailing"in e?!!e.trailing:i),m(n,t,{leading:o,maxWait:t,trailing:i})}}).call(this,e(7))},7:function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e}}); \ No newline at end of file diff --git a/includes/assets/js/dist/newsletter-editor.js b/includes/assets/js/dist/newsletter-editor.js index 878bf8df..4062b036 100644 --- a/includes/assets/js/dist/newsletter-editor.js +++ b/includes/assets/js/dist/newsletter-editor.js @@ -1,124 +1 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./includes/assets/js/src/newsletter-editor.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./includes/assets/js/src/newsletter-editor.js": -/*!*****************************************************!*\ - !*** ./includes/assets/js/src/newsletter-editor.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -eval("(function ($) {\n //The newsletter editor\n window.noptinNewsletterEditor = __webpack_require__(/*! ./partials/newsletter-editor.js */ \"./includes/assets/js/src/partials/newsletter-editor.js\")[\"default\"]; //Init the newsletter editor\n\n $(document).ready(function () {\n //Init the newsletter editor\n noptinNewsletterEditor.init();\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./includes/assets/js/src/newsletter-editor.js?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/newsletter-editor.js": -/*!**************************************************************!*\ - !*** ./includes/assets/js/src/partials/newsletter-editor.js ***! - \**************************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _noptin_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./noptin.js */ \"./includes/assets/js/src/partials/noptin.js\");\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n initial_form: null,\n init: function init() {\n var $ = jQuery; //Create a new automation\n\n $('.noptin-create-new-automation-campaign').on('click', this.create_automation);\n $(document).on('click', '.noptin-automation-type-select.enabled', this.select_automation); //Send test email\n\n $('#wp-noptinemailbody-media-buttons').append(' Send a test email'); //Are we sending a test email?\n\n $('.noptin-send-test-email').on('click', this.send_test_email); //Upsells\n\n $('.noptin-filter-recipients').on('click', this.filter_recipients);\n $('.noptin-filter-post-notifications-post-types').on('click', this.new_post_notifications_filter_post_types);\n $('.noptin-filter-post-notifications-taxonomies').on('click', this.new_post_notifications_filter_taxonomies); //Delete campaign\n\n $('.noptin-delete-campaign').on('click', this.delete_campaign);\n },\n //Creates a new automation\n create_automation: function create_automation(e) {\n e.preventDefault(); //Init sweetalert\n\n Swal.fire({\n html: jQuery('#noptin-create-automation').html(),\n showConfirmButton: false,\n showCloseButton: true,\n width: 600\n });\n },\n //Select an automation\n select_automation: function select_automation(e) {\n var _Swal$fire;\n\n e.preventDefault();\n var parent = jQuery(this).find('.noptin-automation-type-setup-form').clone().find('form').attr('id', 'noptinCurrentForm').parent();\n var form = parent.html();\n parent.remove(); //Init sweetalert\n\n Swal.fire((_Swal$fire = {\n html: form,\n showCloseButton: true,\n width: 800,\n showCancelButton: true,\n confirmButtonText: 'Continue',\n showLoaderOnConfirm: true\n }, _defineProperty(_Swal$fire, \"showCloseButton\", true), _defineProperty(_Swal$fire, \"focusConfirm\", false), _defineProperty(_Swal$fire, \"allowOutsideClick\", function allowOutsideClick() {\n return !Swal.isLoading();\n }), _defineProperty(_Swal$fire, \"preConfirm\", function preConfirm() {\n var data = _noptin_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getFormData(jQuery('#noptinCurrentForm'));\n data.action = \"noptin_setup_automation\";\n jQuery.post(noptin_params.ajaxurl, data).done(function (url) {\n window.location = url;\n }).fail(function (jqXHR) {\n Swal.fire({\n type: 'error',\n title: 'Error',\n text: 'There was an error creating your automation',\n showCloseButton: true,\n confirmButtonText: 'Close',\n confirmButtonColor: '#9e9e9e',\n footer: \"Status: \".concat(jqXHR.status, \"   Status text: \").concat(jqXHR.statusText, \"\")\n });\n }); //Return a promise that never resolves\n\n return jQuery.Deferred();\n }), _Swal$fire));\n },\n //Deletes a campagin\n delete_campaign: function delete_campaign(e) {\n e.preventDefault();\n var row = jQuery(this).closest('tr');\n var data = {\n id: jQuery(this).data('id'),\n _wpnonce: noptin_params.nonce,\n action: 'noptin_delete_campaign'\n }; //Init sweetalert\n\n Swal.fire({\n titleText: \"Are you sure?\",\n text: \"You are about to permanently delete this campaign.\",\n type: 'warning',\n showCancelButton: true,\n confirmButtonColor: '#d33',\n cancelButtonColor: '#9e9e9e',\n confirmButtonText: 'Yes, delete it!',\n showLoaderOnConfirm: true,\n showCloseButton: true,\n focusConfirm: false,\n allowOutsideClick: function allowOutsideClick() {\n return !Swal.isLoading();\n },\n //Fired when the user clicks on the confirm button\n preConfirm: function preConfirm() {\n jQuery.get(noptin_params.ajaxurl, data).done(function () {\n jQuery(row).remove();\n Swal.fire('Success', 'Your campaign was deleted', 'success');\n }).fail(function () {\n Swal.fire('Error', 'Unable to delete your campaign. Try again.', 'error');\n }); //Return a promise that never resolves\n\n return jQuery.Deferred();\n }\n });\n },\n //Sends an ajax request to the server requesting it to send a test email\n send_test_email: function send_test_email(e) {\n e.preventDefault(); //Save tinymce\n\n tinyMCE.triggerSave(); //Form data\n\n var data = _noptin_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getFormData(jQuery(this).closest('form')); //Init sweetalert\n\n Swal.fire({\n titleText: \"Send a test email to:\",\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Send',\n showLoaderOnConfirm: true,\n showCloseButton: true,\n input: 'email',\n inputValue: noptin_params.admin_email,\n inputPlaceholder: noptin_params.admin_email,\n allowOutsideClick: function allowOutsideClick() {\n return !Swal.isLoading();\n },\n //Fired when the user clicks on the confirm button\n preConfirm: function preConfirm(email) {\n //Add the test email\n data.email = email; //Add action\n\n data.action = \"noptin_send_test_email\";\n jQuery.post(noptin_params.ajaxurl, data).done(function (data) {\n if (data.success) {\n Swal.fire('Success', data.data, 'success');\n } else {\n Swal.fire({\n type: 'error',\n title: 'Error!',\n text: data.data,\n showCloseButton: true,\n confirmButtonText: 'Close',\n confirmButtonColor: '#9e9e9e',\n footer: \"How to troubleshoot this error.\"\n });\n }\n }).fail(function (jqXHR) {\n Swal.fire({\n type: 'error',\n title: 'Unable to connect',\n text: 'This might be a problem with your server or your internet connection',\n showCloseButton: true,\n confirmButtonText: 'Close',\n confirmButtonColor: '#9e9e9e',\n footer: \"Status: \".concat(jqXHR.status, \"   Status text: \").concat(jqXHR.statusText, \"\")\n });\n }); //Return a promise that never resolves\n\n return jQuery.Deferred();\n }\n });\n },\n //Filters email recipients\n filter_recipients: function filter_recipients(e) {\n e.preventDefault();\n\n if (!jQuery('#noptin_recipients_filter_div').length) {\n Swal.fire({\n titleText: \"Addon Needed!\",\n html: \"Install the Ultimate Addons Pack to filter recipients by their sign up method/form, tags or the time in which they signed up.\",\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Install Addon',\n showCloseButton: true\n }).then(function (result) {\n if (result.value) {\n window.location.href = 'https://noptin.com/product/ultimate-addons-pack';\n }\n });\n }\n },\n new_post_notifications_filter_post_types: function new_post_notifications_filter_post_types(e) {\n e.preventDefault();\n Swal.fire({\n titleText: \"Addon Needed!\",\n html: \"Install the Ultimate Addons Pack to send new post notifications to other post types.\",\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Install Addon',\n showCloseButton: true\n }).then(function (result) {\n if (result.value) {\n window.location.href = 'https://noptin.com/product/ultimate-addons-pack';\n }\n });\n },\n new_post_notifications_filter_taxonomies: function new_post_notifications_filter_taxonomies(e) {\n e.preventDefault();\n Swal.fire({\n titleText: \"Addon Needed!\",\n html: \"Install the Ultimate Addons Pack to limit new post notifications to specific categories, tags or other taxonomies.\",\n showCancelButton: true,\n confirmButtonColor: '#3085d6',\n cancelButtonColor: '#d33',\n confirmButtonText: 'Install Addon',\n showCloseButton: true\n }).then(function (result) {\n if (result.value) {\n window.location.href = 'https://noptin.com/product/ultimate-addons-pack';\n }\n });\n }\n});\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/newsletter-editor.js?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin.js": -/*!***************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin.js ***! - \***************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n templateData: function templateData(key) {\n var data = {};\n\n if (noptinEditor && noptinEditor.templates[key]) {\n var template = noptinEditor.templates[key]['data'];\n Object.keys(template).forEach(function (key) {\n data[key] = template[key];\n });\n }\n\n return data;\n },\n applyTemplate: function applyTemplate(template, instance) {\n Object.keys(template).forEach(function (key) {\n instance[key] = template[key];\n });\n this.updateFormSizes(instance);\n },\n updateFormSizes: function updateFormSizes(instance) {\n if (instance.optinType == 'sidebar') {\n instance.formHeight = '400px';\n instance.formWidth = '300px';\n instance.singleLine = false;\n return;\n }\n\n if (instance.optinType == 'popup') {\n instance.formWidth = '620px';\n instance.formHeight = '280px';\n return;\n }\n\n instance.formHeight = '280px';\n instance.formWidth = '620px';\n },\n updateCustomCss: function updateCustomCss(css) {\n jQuery('#formCustomCSS').text(css);\n },\n getColorThemeOptions: function getColorThemeOptions() {\n var themes = [];\n Object.keys(noptinEditor.color_themes).forEach(function (key) {\n var theme = {\n text: key,\n value: noptinEditor.color_themes[key],\n imageSrc: noptin_params.icon //description: \"Description with Facebook\",\n\n };\n themes.push(theme);\n });\n return themes;\n },\n getColorTheme: function getColorTheme(instance) {\n return instance.colorTheme.split(\" \");\n },\n changeColorTheme: function changeColorTheme(instance) {\n var colors = this.getColorTheme(instance);\n\n if (colors.length) {\n instance.noptinFormBg = colors[0];\n instance.noptinFormBorderColor = colors[2];\n instance.noptinButtonColor = colors[0];\n instance.noptinButtonBg = colors[1];\n instance.titleColor = colors[1];\n instance.descriptionColor = colors[1];\n instance.noteColor = colors[1];\n }\n },\n getFormData: function getFormData(form) {\n var data = {},\n fields = jQuery(form).serializeArray();\n jQuery.each(fields, function (i, field) {\n data[field.name] = field.value;\n });\n return data;\n }\n});\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin.js?"); - -/***/ }) - -/******/ }); \ No newline at end of file +!function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=29)}({0:function(t,e,o){"use strict";e.a={templateData:function(t){var e={};if(noptinEditor&&noptinEditor.templates[t]){var o=noptinEditor.templates[t].data;Object.keys(o).forEach((function(t){e[t]=o[t]}))}return e},applyTemplate:function(t,e){Object.keys(t).forEach((function(o){e[o]=t[o]})),this.updateFormSizes(e)},updateFormSizes:function(t){return"sidebar"==t.optinType?(t.formHeight="400px",t.formWidth="300px",void(t.singleLine=!1)):"popup"==t.optinType?(t.formWidth="620px",void(t.formHeight="280px")):(t.formHeight="280px",void(t.formWidth="620px"))},updateCustomCss:function(t){jQuery("#formCustomCSS").text(t)},getColorThemeOptions:function(){var t=[];return Object.keys(noptinEditor.color_themes).forEach((function(e){var o={text:e,value:noptinEditor.color_themes[e],imageSrc:noptin_params.icon};t.push(o)})),t},getColorTheme:function(t){return t.colorTheme.split(" ")},changeColorTheme:function(t){var e=this.getColorTheme(t);e.length&&(t.noptinFormBg=e[0],t.noptinFormBorderColor=e[2],t.noptinButtonColor=e[0],t.noptinButtonBg=e[1],t.titleColor=e[1],t.descriptionColor=e[1],t.noteColor=e[1])},getFormData:function(t){var e={},o=jQuery(t).serializeArray();return jQuery.each(o,(function(t,o){e[o.name]=o.value})),e}}},29:function(t,e,o){var n;n=jQuery,window.noptinNewsletterEditor=o(30).default,n(document).ready((function(){noptinNewsletterEditor.init()}))},30:function(t,e,o){"use strict";o.r(e);var n=o(0);function i(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}e.default={initial_form:null,init:function(){var t=jQuery;t(".noptin-create-new-automation-campaign").on("click",this.create_automation),t(document).on("click",".noptin-automation-type-select.enabled",this.select_automation),t("#wp-noptinemailbody-media-buttons").append(' Send a test email'),t(".noptin-send-test-email").on("click",this.send_test_email),t(".noptin-filter-recipients").on("click",this.filter_recipients),t(".noptin-filter-post-notifications-post-types").on("click",this.new_post_notifications_filter_post_types),t(".noptin-filter-post-notifications-taxonomies").on("click",this.new_post_notifications_filter_taxonomies),t(".noptin-delete-campaign").on("click",this.delete_campaign)},create_automation:function(t){t.preventDefault(),Swal.fire({html:jQuery("#noptin-create-automation").html(),showConfirmButton:!1,showCloseButton:!0,width:600})},select_automation:function(t){var e;t.preventDefault();var o=jQuery(this).find(".noptin-automation-type-setup-form").clone().find("form").attr("id","noptinCurrentForm").parent(),r=o.html();o.remove(),Swal.fire((i(e={html:r,showCloseButton:!0,width:800,showCancelButton:!0,confirmButtonText:"Continue",showLoaderOnConfirm:!0},"showCloseButton",!0),i(e,"focusConfirm",!1),i(e,"allowOutsideClick",(function(){return!Swal.isLoading()})),i(e,"preConfirm",(function(){var t=n.a.getFormData(jQuery("#noptinCurrentForm"));return t.action="noptin_setup_automation",jQuery.post(noptin_params.ajaxurl,t).done((function(t){window.location=t})).fail((function(t){Swal.fire({type:"error",title:"Error",text:"There was an error creating your automation",showCloseButton:!0,confirmButtonText:"Close",confirmButtonColor:"#9e9e9e",footer:"Status: ".concat(t.status,"   Status text: ").concat(t.statusText,"")})})),jQuery.Deferred()})),e))},delete_campaign:function(t){t.preventDefault();var e=jQuery(this).closest("tr"),o={id:jQuery(this).data("id"),_wpnonce:noptin_params.nonce,action:"noptin_delete_campaign"};Swal.fire({titleText:"Are you sure?",text:"You are about to permanently delete this campaign.",type:"warning",showCancelButton:!0,confirmButtonColor:"#d33",cancelButtonColor:"#9e9e9e",confirmButtonText:"Yes, delete it!",showLoaderOnConfirm:!0,showCloseButton:!0,focusConfirm:!1,allowOutsideClick:function(){return!Swal.isLoading()},preConfirm:function(){return jQuery.get(noptin_params.ajaxurl,o).done((function(){jQuery(e).remove(),Swal.fire("Success","Your campaign was deleted","success")})).fail((function(){Swal.fire("Error","Unable to delete your campaign. Try again.","error")})),jQuery.Deferred()}})},send_test_email:function(t){t.preventDefault(),tinyMCE.triggerSave();var e=n.a.getFormData(jQuery(this).closest("form"));Swal.fire({titleText:"Send a test email to:",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Send",showLoaderOnConfirm:!0,showCloseButton:!0,input:"email",inputValue:noptin_params.admin_email,inputPlaceholder:noptin_params.admin_email,allowOutsideClick:function(){return!Swal.isLoading()},preConfirm:function(t){return e.email=t,e.action="noptin_send_test_email",jQuery.post(noptin_params.ajaxurl,e).done((function(t){t.success?Swal.fire("Success",t.data,"success"):Swal.fire({type:"error",title:"Error!",text:t.data,showCloseButton:!0,confirmButtonText:"Close",confirmButtonColor:"#9e9e9e",footer:'How to troubleshoot this error.'})})).fail((function(t){Swal.fire({type:"error",title:"Unable to connect",text:"This might be a problem with your server or your internet connection",showCloseButton:!0,confirmButtonText:"Close",confirmButtonColor:"#9e9e9e",footer:"Status: ".concat(t.status,"   Status text: ").concat(t.statusText,"")})})),jQuery.Deferred()}})},filter_recipients:function(t){t.preventDefault(),jQuery("#noptin_recipients_filter_div").length||Swal.fire({titleText:"Addon Needed!",html:"Install the Ultimate Addons Pack to filter recipients by their sign up method/form, tags or the time in which they signed up.",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Install Addon",showCloseButton:!0}).then((function(t){t.value&&(window.location.href="https://noptin.com/product/ultimate-addons-pack")}))},new_post_notifications_filter_post_types:function(t){t.preventDefault(),Swal.fire({titleText:"Addon Needed!",html:"Install the Ultimate Addons Pack to send new post notifications to other post types.",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Install Addon",showCloseButton:!0}).then((function(t){t.value&&(window.location.href="https://noptin.com/product/ultimate-addons-pack")}))},new_post_notifications_filter_taxonomies:function(t){t.preventDefault(),Swal.fire({titleText:"Addon Needed!",html:"Install the Ultimate Addons Pack to limit new post notifications to specific categories, tags or other taxonomies.",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Install Addon",showCloseButton:!0}).then((function(t){t.value&&(window.location.href="https://noptin.com/product/ultimate-addons-pack")}))}}}}); \ No newline at end of file diff --git a/includes/assets/js/dist/optin-editor.js b/includes/assets/js/dist/optin-editor.js index 7c02c4d7..66a43c67 100644 --- a/includes/assets/js/dist/optin-editor.js +++ b/includes/assets/js/dist/optin-editor.js @@ -1,461 +1,35 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./includes/assets/js/src/optin-editor.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./includes/assets/js/src/optin-editor.js": -/*!************************************************!*\ - !*** ./includes/assets/js/src/optin-editor.js ***! - \************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -eval("(function ($) {\n if ('undefined' == typeof noptinEditor) {\n window.noptinEditor = {};\n } //optin forms editor app\n\n\n window.noptinOptinEditor = __webpack_require__(/*! ./partials/optin-editor.js */ \"./includes/assets/js/src/partials/optin-editor.js\")[\"default\"];\n})(jQuery);\n\n//# sourceURL=webpack:///./includes/assets/js/src/optin-editor.js?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/css-editor.vue": -/*!********************************************************!*\ - !*** ./includes/assets/js/src/partials/css-editor.vue ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _css_editor_vue_vue_type_template_id_6ee52079___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-editor.vue?vue&type=template&id=6ee52079& */ \"./includes/assets/js/src/partials/css-editor.vue?vue&type=template&id=6ee52079&\");\n/* harmony import */ var _css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css-editor.vue?vue&type=script&lang=js& */ \"./includes/assets/js/src/partials/css-editor.vue?vue&type=script&lang=js&\");\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _css_editor_vue_vue_type_template_id_6ee52079___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _css_editor_vue_vue_type_template_id_6ee52079___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"includes/assets/js/src/partials/css-editor.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/css-editor.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/css-editor.vue?vue&type=script&lang=js&": -/*!*********************************************************************************!*\ - !*** ./includes/assets/js/src/partials/css-editor.vue?vue&type=script&lang=js& ***! - \*********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--1!../../../../../node_modules/vue-loader/lib??vue-loader-options!./css-editor.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./includes/assets/js/src/partials/css-editor.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); \n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/css-editor.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/css-editor.vue?vue&type=template&id=6ee52079&": -/*!***************************************************************************************!*\ - !*** ./includes/assets/js/src/partials/css-editor.vue?vue&type=template&id=6ee52079& ***! - \***************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_template_id_6ee52079___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./css-editor.vue?vue&type=template&id=6ee52079& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./includes/assets/js/src/partials/css-editor.vue?vue&type=template&id=6ee52079&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_template_id_6ee52079___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_css_editor_vue_vue_type_template_id_6ee52079___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/css-editor.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/field-editor.js": -/*!*********************************************************!*\ - !*** ./includes/assets/js/src/partials/field-editor.js ***! - \*********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash.find */ \"./node_modules/lodash.find/index.js\");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _noptin_select_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noptin-select.vue */ \"./includes/assets/js/src/partials/noptin-select.vue\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: noptinEditor.field_props,\n template: '#noptinFieldEditorTemplate',\n components: {\n //Select2\n 'noptin-select': _noptin_select_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n data: function data() {\n return {};\n },\n methods: {\n addField: function addField() {\n var total = this.fields.length;\n var rand = Math.random() + total;\n var key = 'key-' + rand.toString(36).replace(/[^a-z]+/g, '');\n this.fields.push({\n type: {\n label: 'Text',\n name: 'text',\n type: 'text'\n },\n require: false,\n key: key\n });\n this.collapseAll();\n this.expandField(key);\n },\n removeField: function removeField(item) {\n var key = this.fields.indexOf(item);\n\n if (key > -1) {\n this.fields.splice(key, 1);\n }\n },\n shallowCopy: function shallowCopy(obj) {\n return jQuery.extend({}, obj);\n },\n getDefaultLabel: function getDefaultLabel(fieldType) {\n var data = lodash_find__WEBPACK_IMPORTED_MODULE_0___default()(this.fieldTypes, function (obj) {\n return obj.type === fieldType;\n });\n\n if (data) {\n return data['label'];\n }\n\n return fieldType;\n },\n expandField: function expandField(id) {\n var el = jQuery('#' + id); //toggle arrows\n\n jQuery(el).find('.dashicons-arrow-up-alt2').show();\n jQuery(el).find('.dashicons-arrow-down-alt2').hide(); //slide down the body\n\n jQuery(el).find('.noptin-field-editor-body').slideDown();\n },\n collapseField: function collapseField(id) {\n var el = jQuery('#' + id); //toggle arrows\n\n jQuery(el).find('.dashicons-arrow-up-alt2').hide();\n jQuery(el).find('.dashicons-arrow-down-alt2').show(); //slide up the body\n\n jQuery(el).find('.noptin-field-editor-body').slideUp();\n },\n collapseAll: function collapseAll(id) {\n var that = this;\n jQuery.each(this.fields, function (index, value) {\n that.collapseField(value.key);\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/field-editor.js?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-form.js": -/*!********************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-form.js ***! - \********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: noptinEditor.design_props,\n template: '#noptinFormTemplate',\n data: function data() {\n return {};\n }\n});\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-form.js?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-select.vue": -/*!***********************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-select.vue ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _noptin_select_vue_vue_type_template_id_9c8262a6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./noptin-select.vue?vue&type=template&id=9c8262a6& */ \"./includes/assets/js/src/partials/noptin-select.vue?vue&type=template&id=9c8262a6&\");\n/* harmony import */ var _noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noptin-select.vue?vue&type=script&lang=js& */ \"./includes/assets/js/src/partials/noptin-select.vue?vue&type=script&lang=js&\");\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _noptin_select_vue_vue_type_template_id_9c8262a6___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _noptin_select_vue_vue_type_template_id_9c8262a6___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"includes/assets/js/src/partials/noptin-select.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-select.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-select.vue?vue&type=script&lang=js&": -/*!************************************************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-select.vue?vue&type=script&lang=js& ***! - \************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--1!../../../../../node_modules/vue-loader/lib??vue-loader-options!./noptin-select.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./includes/assets/js/src/partials/noptin-select.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); \n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-select.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-select.vue?vue&type=template&id=9c8262a6&": -/*!******************************************************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-select.vue?vue&type=template&id=9c8262a6& ***! - \******************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_template_id_9c8262a6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./noptin-select.vue?vue&type=template&id=9c8262a6& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./includes/assets/js/src/partials/noptin-select.vue?vue&type=template&id=9c8262a6&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_template_id_9c8262a6___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_select_vue_vue_type_template_id_9c8262a6___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-select.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-temp-form.vue": -/*!**************************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-temp-form.vue ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _noptin_temp_form_vue_vue_type_template_id_3f42f908___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./noptin-temp-form.vue?vue&type=template&id=3f42f908& */ \"./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=template&id=3f42f908&\");\n/* harmony import */ var _noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noptin-temp-form.vue?vue&type=script&lang=js& */ \"./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=script&lang=js&\");\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _noptin_temp_form_vue_vue_type_template_id_3f42f908___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _noptin_temp_form_vue_vue_type_template_id_3f42f908___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"includes/assets/js/src/partials/noptin-temp-form.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-temp-form.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=script&lang=js&": -/*!***************************************************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=script&lang=js& ***! - \***************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--1!../../../../../node_modules/vue-loader/lib??vue-loader-options!./noptin-temp-form.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_1_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); \n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-temp-form.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=template&id=3f42f908&": -/*!*********************************************************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=template&id=3f42f908& ***! - \*********************************************************************************************/ -/*! exports provided: render, staticRenderFns */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_template_id_3f42f908___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./noptin-temp-form.vue?vue&type=template&id=3f42f908& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./includes/assets/js/src/partials/noptin-temp-form.vue?vue&type=template&id=3f42f908&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_template_id_3f42f908___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_noptin_temp_form_vue_vue_type_template_id_3f42f908___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin-temp-form.vue?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/noptin.js": -/*!***************************************************!*\ - !*** ./includes/assets/js/src/partials/noptin.js ***! - \***************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n templateData: function templateData(key) {\n var data = {};\n\n if (noptinEditor && noptinEditor.templates[key]) {\n var template = noptinEditor.templates[key]['data'];\n Object.keys(template).forEach(function (key) {\n data[key] = template[key];\n });\n }\n\n return data;\n },\n applyTemplate: function applyTemplate(template, instance) {\n Object.keys(template).forEach(function (key) {\n instance[key] = template[key];\n });\n this.updateFormSizes(instance);\n },\n updateFormSizes: function updateFormSizes(instance) {\n if (instance.optinType == 'sidebar') {\n instance.formHeight = '400px';\n instance.formWidth = '300px';\n instance.singleLine = false;\n return;\n }\n\n if (instance.optinType == 'popup') {\n instance.formWidth = '620px';\n instance.formHeight = '280px';\n return;\n }\n\n instance.formHeight = '280px';\n instance.formWidth = '620px';\n },\n updateCustomCss: function updateCustomCss(css) {\n jQuery('#formCustomCSS').text(css);\n },\n getColorThemeOptions: function getColorThemeOptions() {\n var themes = [];\n Object.keys(noptinEditor.color_themes).forEach(function (key) {\n var theme = {\n text: key,\n value: noptinEditor.color_themes[key],\n imageSrc: noptin_params.icon //description: \"Description with Facebook\",\n\n };\n themes.push(theme);\n });\n return themes;\n },\n getColorTheme: function getColorTheme(instance) {\n return instance.colorTheme.split(\" \");\n },\n changeColorTheme: function changeColorTheme(instance) {\n var colors = this.getColorTheme(instance);\n\n if (colors.length) {\n instance.noptinFormBg = colors[0];\n instance.noptinFormBorderColor = colors[2];\n instance.noptinButtonColor = colors[0];\n instance.noptinButtonBg = colors[1];\n instance.titleColor = colors[1];\n instance.descriptionColor = colors[1];\n instance.noteColor = colors[1];\n }\n },\n getFormData: function getFormData(form) {\n var data = {},\n fields = jQuery(form).serializeArray();\n jQuery.each(fields, function (i, field) {\n data[field.name] = field.value;\n });\n return data;\n }\n});\n\n//# sourceURL=webpack:///./includes/assets/js/src/partials/noptin.js?"); - -/***/ }), - -/***/ "./includes/assets/js/src/partials/optin-editor.js": -/*!*********************************************************!*\ - !*** ./includes/assets/js/src/partials/optin-editor.js ***! - \*********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _noptin_select_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./noptin-select.vue */ \"./includes/assets/js/src/partials/noptin-select.vue\");\n/* harmony import */ var vue_swatches__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-swatches */ \"./node_modules/vue-swatches/dist/vue-swatches.min.js\");\n/* harmony import */ var vue_swatches__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_swatches__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-popperjs */ \"./node_modules/vue-popperjs/dist/vue-popper.min.js\");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_popperjs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _rich_text_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rich-text.js */ \"./includes/assets/js/src/partials/rich-text.js\");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuedraggable */ \"./node_modules/vuedraggable/dist/vuedraggable.common.js\");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _field_editor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./field-editor.js */ \"./includes/assets/js/src/partials/field-editor.js\");\n/* harmony import */ var _noptin_form_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./noptin-form.js */ \"./includes/assets/js/src/partials/noptin-form.js\");\n/* harmony import */ var _noptin_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./noptin.js */ \"./includes/assets/js/src/partials/noptin.js\");\n/* harmony import */ var _css_editor_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./css-editor.vue */ \"./includes/assets/js/src/partials/css-editor.vue\");\n/* harmony import */ var _noptin_temp_form_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./noptin-temp-form.vue */ \"./includes/assets/js/src/partials/noptin-temp-form.vue\");\n\n\n\n\n\n\n\n\n\n\nvar editor = jQuery('#noptin_form_editor').clone().removeClass('postbox');\njQuery('.post-type-noptin-form #post').replaceWith(editor);\nvar vm = new Vue({\n components: {\n //Select2\n 'noptin-select': _noptin_select_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n 'noptin-temp-form': _noptin_temp_form_vue__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //Drag drop\n draggable: vuedraggable__WEBPACK_IMPORTED_MODULE_4___default.a,\n //Color swatches\n 'noptin-swatch': vue_swatches__WEBPACK_IMPORTED_MODULE_1___default.a,\n //Tooltips\n 'noptin-tooltip': vue_popperjs__WEBPACK_IMPORTED_MODULE_2___default.a,\n //Optin fields editor\n 'field-editor': _field_editor_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //Renders the optin forms\n 'noptinform': _noptin_form_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n //Custom CSS Editor\n 'noptineditor': _css_editor_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //WYIWYG\n 'noptin-rich-text': _rich_text_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n el: '#noptin-form-editor',\n data: jQuery.extend(true, {}, noptinEditor.data),\n computed: {\n _onlyShowOn: function _onlyShowOn() {\n return this.onlyShowOn && this.onlyShowOn.length > 0;\n }\n },\n methods: {\n togglePanel: function togglePanel(id) {\n var $ = jQuery;\n var el = $('#' + id);\n var isOpen = $(el).hasClass('open'); //toggle arrows\n\n $(el).find('> .noptin-popup-editor-panel-header .dashicons-arrow-up-alt2').slideToggle();\n $(el).find('> .noptin-popup-editor-panel-header .dashicons-arrow-down-alt2').slideToggle(); //toggle the body with a sliding motion\n\n $(el).find('> .noptin-popup-editor-panel-body').slideToggle(); //Toggle the open class\n\n $(el).toggleClass('open');\n },\n previewPopup: function previewPopup() {\n var _this = this;\n\n this.isPreviewShowing = true;\n var el = jQuery('.noptin-popup-wrapper').clone();\n var whitelist = [\"class\", \"style\"];\n el.find('.medium-editor-element').each(function () {\n var attributes = this.attributes;\n var i = attributes.length;\n\n while (i--) {\n var attr = attributes[i];\n if (jQuery.inArray(attr.name, whitelist) == -1) this.removeAttributeNode(attr);\n }\n });\n jQuery(\"#noptin-popup-preview\").html(el.html()).addClass('noptin-preview-showing').find('.noptin-popup-close').show(); //Hide popup when user clicks outside\n\n jQuery(\"#noptin-popup-preview\").off('noptin-popup').on('click', function (e) {\n var container = jQuery(_this).find(\".noptin-popup-form-wrapper\"); // if the target of the click isn't the container nor a descendant of the container\n\n if (!container.is(e.target) && container.has(e.target).length === 0) {\n vm.closePopup();\n }\n });\n },\n closePopup: function closePopup() {\n this.isPreviewShowing = false;\n jQuery(\"#noptin-popup-preview\").removeClass('noptin-preview-showing').html('');\n },\n saveAsTemplate: function saveAsTemplate() {\n var saveText = this.saveAsTemplateText;\n this.saveAsTemplateText = this.savingTemplateText;\n var that = this;\n jQuery.post(noptinEditor.ajaxurl, {\n _ajax_nonce: noptinEditor.nonce,\n action: \"noptin_save_optin_form_as_template\",\n state: vm.$data\n }).done(function () {\n that.showSuccess(that.savingTemplateSuccess);\n that.saveAsTemplateText = saveText;\n }).fail(function () {\n that.showError(that.savingTemplateError);\n that.saveAsTemplateText = saveText;\n });\n },\n upload_image: function upload_image(key, size) {\n if ('undefined' == typeof size) {\n size = 'thumbnail';\n }\n\n var image = wp.media({\n title: 'Upload Image',\n multiple: false\n }).open().on('select', function (e) {\n var uploaded_image = image.state().get('selection').first();\n vm[key] = uploaded_image.toJSON().sizes[size].url;\n });\n },\n showSuccess: function showSuccess(msg) {\n this.hasSuccess = true;\n this.Success = msg;\n setTimeout(function () {\n vm.hasSuccess = false;\n vm.Success = '';\n }, 5000);\n },\n showError: function showError(msg) {\n this.hasError = true;\n this.Error = msg;\n setTimeout(function () {\n vm.hasError = false;\n vm.Error = '';\n }, 5000);\n },\n publish: function publish() {\n this.optinStatus = true;\n },\n unpublish: function unpublish() {\n this.optinStatus = false;\n },\n copyShortcode: function copyShortcode(e) {\n var text = \"[noptin-form id=\" + this.id + \"]\";\n this.copy(text, e);\n },\n copy: function copy(text, e) {\n var textarea = jQuery('