From 885fed3e08b00c479cc8bf3d4941789a1a2d4d3f Mon Sep 17 00:00:00 2001 From: Darren Cooney Date: Thu, 30 May 2024 09:11:02 -0400 Subject: [PATCH] 7.1.2 release prep --- README.txt | 7 +- ajax-load-more.php | 11 +- build/admin/index.asset.php | 2 +- build/admin/index.css | 5168 +------ build/admin/index.js | 2940 +++- build/blocks/core/index.asset.php | 2 +- build/blocks/core/index.css | 46 +- build/blocks/core/index.js | 680 +- build/blocks/filters/index.asset.php | 2 +- build/blocks/filters/index.css | 10 +- build/blocks/filters/index.js | 709 +- build/frontend/ajax-load-more.asset.php | 2 +- build/frontend/ajax-load-more.css | 519 +- build/frontend/ajax-load-more.js | 14050 ++++++++++++++++-- build/frontend/ajax-load-more.min.asset.php | 2 +- build/frontend/ajax-load-more.min.css | 519 +- build/frontend/ajax-load-more.min.js | 1357 +- lang/ajax-load-more.pot | 14 +- 18 files changed, 16933 insertions(+), 9107 deletions(-) diff --git a/README.txt b/README.txt index 36a0dba..12fa0d8 100755 --- a/README.txt +++ b/README.txt @@ -5,7 +5,7 @@ Tags: infinite scroll, load more, lazy load, endless scroll, ajax load more Requires at least: 5.0 Requires PHP: 5.6 Tested up to: 6.5 -Stable tag: 7.1.1 +Stable tag: 7.1.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -260,6 +260,11 @@ How to install Ajax Load More. == Changelog == += 7.1.2 - May 30, 2024 = +* FIX: Fixed issue with full article loading in Next Page add-on. +* UPDATE: Various security fixes. + + = 7.1.1 - May 10, 2024 = * UPDATE: Added required functionality and support to allow for Next Page add-on to be used with Single Posts for full article loading with split pages. * UPDATE: Various UI/UX improvements for the plugin admin. diff --git a/ajax-load-more.php b/ajax-load-more.php index 38f793b..8a39a08 100755 --- a/ajax-load-more.php +++ b/ajax-load-more.php @@ -7,20 +7,15 @@ * Author: Darren Cooney * Twitter: @KaptonKaos * Author URI: https://connekthq.com - * Version: 7.1.1 + * Version: 7.1.2 * License: GPL * Copyright: Darren Cooney & Connekt Media * * @package AjaxLoadMore */ -/* -* FIX: Fixed issue with full article loading in Next Page add-on. -* FIX: Fixed a variety of potential security XSS issues. -*/ - -define( 'ALM_VERSION', '7.1.1' ); -define( 'ALM_RELEASE', 'May 10, 2024' ); +define( 'ALM_VERSION', '7.1.2' ); +define( 'ALM_RELEASE', 'May 30, 2024' ); define( 'ALM_STORE_URL', 'https://connekthq.com' ); // Plugin installation helpers. diff --git a/build/admin/index.asset.php b/build/admin/index.asset.php index 6f9994d..bdcf669 100644 --- a/build/admin/index.asset.php +++ b/build/admin/index.asset.php @@ -1 +1 @@ - array(), 'version' => '75cac55ac755f24371be'); + array(), 'version' => 'edc6f70738b049572515'); diff --git a/build/admin/index.css b/build/admin/index.css index c1c43c5..9f8ffdc 100644 --- a/build/admin/index.css +++ b/build/admin/index.css @@ -1,5167 +1 @@ -/*!************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss ***! - \************************************************************************************************************************************************/ -@import url(//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); -/*!****************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss (1) ***! - \****************************************************************************************************************************************************/ -@charset "UTF-8"; -/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */ -.tooltipster-default { - border-radius: 3px; - border: 2px solid #222; - border: none; - background: #0073aa; - background: rgba(33, 149, 204, 0.95); - color: #e7f3f8; -} - -/* Use this next selector to style things like font-size and line-height: */ -.tooltipster-default .tooltipster-content { - font-size: 12px; - line-height: 20px; - padding: 12px 16px; - overflow: hidden; - text-align: center; -} - -/* If you're using the icon option, use this next selector to style them */ -.tooltipster-icon { - cursor: help; - margin-left: 4px; -} - -/* This is the base styling required to make all Tooltipsters work */ -.tooltipster-base { - padding: 0; - font-size: 0; - line-height: 0; - position: absolute; - left: 0; - top: 0; - z-index: 9999999; - pointer-events: none; - width: auto; - overflow: visible; -} - -.tooltipster-base .tooltipster-content { - overflow: hidden; -} - -/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */ -.tooltipster-arrow { - display: block; - text-align: center; - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - z-index: -1; -} - -.tooltipster-arrow span, .tooltipster-arrow-border { - display: block; - width: 0; - height: 0; - position: absolute; -} - -.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span { - border-left: 8px solid transparent !important; - border-right: 8px solid transparent !important; - border-top: 8px solid; - bottom: -7px; -} - -.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border { - border-left: 9px solid transparent !important; - border-right: 9px solid transparent !important; - border-top: 9px solid; - bottom: -7px; -} - -.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span { - border-left: 8px solid transparent !important; - border-right: 8px solid transparent !important; - border-bottom: 8px solid; - top: -7px; -} - -.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { - border-left: 9px solid transparent !important; - border-right: 9px solid transparent !important; - border-bottom: 9px solid; - top: -7px; -} - -.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border { - left: 0; - right: 0; - margin: 0 auto; -} - -.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span { - left: 6px; -} - -.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { - left: 5px; -} - -.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span { - right: 6px; -} - -.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border { - right: 5px; -} - -.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border { - border-top: 8px solid transparent !important; - border-bottom: 8px solid transparent !important; - border-left: 8px solid; - top: 50%; - margin-top: -7px; - right: -7px; -} - -.tooltipster-arrow-left .tooltipster-arrow-border { - border-top: 9px solid transparent !important; - border-bottom: 9px solid transparent !important; - border-left: 9px solid; - margin-top: -8px; -} - -.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border { - border-top: 8px solid transparent !important; - border-bottom: 8px solid transparent !important; - border-right: 8px solid; - top: 50%; - margin-top: -7px; - left: -7px; -} - -.tooltipster-arrow-right .tooltipster-arrow-border { - border-top: 9px solid transparent !important; - border-bottom: 9px solid transparent !important; - border-right: 9px solid; - margin-top: -8px; -} - -/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */ -.tooltipster-fade { - opacity: 0; - -webkit-transition-property: opacity; - -moz-transition-property: opacity; - -o-transition-property: opacity; - -ms-transition-property: opacity; - transition-property: opacity; -} - -.tooltipster-fade-show { - opacity: 1; -} - -.tooltipster-grow { - transform: scale(0, 0); - transition-property: transform; - backface-visibility: hidden; -} - -.tooltipster-grow-show { - transform: scale(1, 1); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); -} - -.tooltipster-swing { - opacity: 0; - transform: rotateZ(4deg); - transition-property: transform; -} - -.tooltipster-swing-show { - opacity: 1; - transform: rotateZ(0deg); - transition-timing-function: cubic-bezier(0.23, 0.635, 0.495, 2.4); -} - -.tooltipster-fall { - top: 0; - -webkit-transition-property: top; - -moz-transition-property: top; - -o-transition-property: top; - -ms-transition-property: top; - transition-property: top; - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); -} - -.tooltipster-fall.tooltipster-dying { - -webkit-transition-property: all; - -moz-transition-property: all; - -o-transition-property: all; - -ms-transition-property: all; - transition-property: all; - top: 0px !important; - opacity: 0; -} - -.tooltipster-slide { - left: -40px; - -webkit-transition-property: left; - -moz-transition-property: left; - -o-transition-property: left; - -ms-transition-property: left; - transition-property: left; - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); -} - -.tooltipster-slide.tooltipster-dying { - -webkit-transition-property: all; - -moz-transition-property: all; - -o-transition-property: all; - -ms-transition-property: all; - transition-property: all; - left: 0px !important; - opacity: 0; -} - -/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */ -.tooltipster-content-changing { - opacity: 0.5; - -webkit-transform: scale(1.1, 1.1); - -moz-transform: scale(1.1, 1.1); - -o-transform: scale(1.1, 1.1); - -ms-transform: scale(1.1, 1.1); - transform: scale(1.1, 1.1); -} - -/* -* Select2 - form replacement - http://ivaynberg.github.io/select2/ -* -* @since 1.0 -*/ -.select2-container { - position: relative; - display: inline-block; - zoom: 1; - *display: inline; - vertical-align: middle; - min-width: 60%; -} - -.inner.half .select2-container { - min-width: 90%; - width: 90%; -} - -#alm-builder .select2-container li { - padding-right: 0; -} - -.select2-container a.select2-choice { - display: block; - height: 38px; - line-height: 37px; - padding: 0 0 0 10px; - overflow: hidden; - position: relative; - border: 1px solid #e7e7e7; - white-space: nowrap; - color: #393d41; - text-decoration: none; - background: #fff; - border-radius: 3px; - -webkit-background-clip: padding-box; - -moz-background-clip: padding; - background-clip: padding-box; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 13px; -} - -.select2-dropdown-open.select2-container-active .select2-choice { - -webkit-border-radius: 4px 4px 0 0; - -moz-border-radius: 4px 4px 0 0; - border-radius: 4px 4px 0 0; -} - -.select2-container.select2-drop-above .select2-choice { - background: #fff; - -webkit-border-radius: 0 0 4px 4px; - -moz-border-radius: 0px 0px 4px 4px; - border-radius: 0 0 4px 4px; -} - -.select2-container .select2-choice span { - padding-right: 40px; - margin: 0; - width: 100%; - display: block; - overflow: hidden; - white-space: nowrap; - color: #666; - text-overflow: ellipsis; -} - -.select2-container .select2-choice abbr:hover { - background-position: right -11px; - cursor: pointer; -} - -.select2-drop-mask { - position: absolute; - left: 0; - top: 0; - z-index: 8; - background-color: #fff; - opacity: 0; -} - -.select2-drop { - overflow: hidden; - width: 100%; - position: absolute; - z-index: 9; - top: 100%; - background: #fff; - color: #393d41; - border: 1px solid #e7e7e7; - border-radius: 3px; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); - font-size: 13px; - overflow: hidden; - margin-top: 2px; - margin-left: -1px; -} -.select2-drop.select2-drop-above { - margin-top: -2px; -} - -.select2-container .select2-choice div { - display: block; - width: 30px; - height: 100%; - position: absolute; - right: 0; - top: 0; -} - -.select2-container .select2-choice div b { - display: block; - width: 100%; - height: 100%; - background: #fff url(../admin/img/ui/bkg-select.png) no-repeat center center; -} - -.select2-dropdown-open.select2-container-active div b { - display: block; - width: 100%; - height: 100%; - background-color: #fff; -} - -/* Search */ -.select2-search { - padding: 5px; - display: block; - background-color: #fff; - border-bottom: 1px solid #f7f7f7; -} -.select2-search .select2-input { - width: 99%; - height: 35px !important; - line-height: 35px !important; - box-shadow: none !important; - background: #fff url(../admin/img/ui/icon-search.png) no-repeat right 7px center; - background-size: 16px 16px; -} - -/* Multi select box */ -#alm-builder .select2-choices li { - margin: 0 0 2px; -} - -#alm-builder .select2-container-multi { - width: 60%; -} - -#alm-builder .select2-results li { - width: 100%; -} - -#alm-builder .select2-container-multi .select2-input { - cursor: pointer; - margin: 0 !important; -} - -#alm-builder ul.select2-choices { - width: 100%; - overflow: hidden; -} - -#alm-builder ul.select2-choices li.select2-search-field, -#alm-builder ul.select2-choices li.select2-search-field input { - width: 100% !important; - display: block; -} - -/* Selected Choice */ -#alm-builder ul.select2-choices li.select2-search-choice { - display: inline-block; - font-size: 12px; - line-height: 13px; - margin: 0 5px 5px 0; - padding: 5px 10px 5px 27px; - border-radius: 3px; - background: #fff; - border: 1px solid #e7e7e7; - width: auto; - position: relative; -} - -#alm-builder ul.select2-choices .select2-input { - background: #fff url(../admin/img/ui/bkg-select.png) no-repeat right center; -} -#alm-builder ul.select2-choices .select2-input.select2-focused { - background: #fff url(../admin/img/ui/icon-search.png) no-repeat right 7px center; - background-size: 16px 16px; -} - -#alm-builder ul.select2-choices li.select2-search-choice a { - position: absolute; - left: 3px; - top: 3px; - width: 17px; - height: 17px; - background: #393d41 url(../admin/img/ui/ico-close.png) no-repeat center center; - display: block; - border-radius: 3px; -} -#alm-builder ul.select2-choices li.select2-search-choice a:hover, #alm-builder ul.select2-choices li.select2-search-choice a:focus { - background-color: #d63638; -} - -/* results UL */ -.select2-results { - max-height: 311px; - padding: 0 0 0 0; - margin: 0 0 0 0; - position: relative; - overflow-x: hidden; - overflow-y: auto; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -.select2-result-sub { - margin: 0; - padding: 0; -} - -.select2-results li { - list-style: none; - display: block; - background-image: none; - padding: 0; - margin: 0 !important; - border-top: 1px solid #f7f7f7; - color: #393d41; - width: auto; - font-size: 13px; -} -.select2-results li:first-of-type { - border: none; -} - -.select2-results li.select2-result-with-children > .select2-result-label { - font-weight: 700; - font-size: 13px; - cursor: default; - border-bottom: 1px solid #f7f7f7; -} - -.select2-results .select2-result-label { - margin: 0; - cursor: pointer; - min-height: 1em; - padding: 10px; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.select2-results .select2-highlighted .select2-result-label { - /* Hover */ - background: #f7f7f7; - color: #3d8ed0; -} - -.select2-results .select2-highlighted:active { - background: #fff; -} - -.select2-results li em { - background: #feffde; - font-style: normal; -} - -.select2-results .select2-highlighted em { - background: transparent; -} - -.select2-results .select2-highlighted ul { - background: white; - color: #000; -} - -.select2-results .select2-no-results, -.select2-results .select2-searching, -.select2-results .select2-selection-limit { - background: #f4f4f4; - display: list-item; -} - -.select2-results .select2-no-results { - min-height: 1em; - padding: 10px 7px; - font-size: 13px; -} - -/* -disabled look for disabled choices in the results dropdown -*/ -.select2-results .select2-disabled.select2-highlighted { - color: #666; - background: #f4f4f4; - display: list-item; - cursor: default; -} - -.select2-results .select2-disabled { - background: #f4f4f4; - display: list-item; - cursor: default; -} - -.select2-results .select2-selected { - display: none; -} - -.select2-more-results { - background: #f4f4f4; - display: list-item; -} - -/* disabled styles */ -.select2-container.select2-container-disabled .select2-choice { - background-color: #f4f4f4; - background-image: none; - border: 1px solid #ddd; - cursor: default; -} - -.select2-container.select2-container-disabled .select2-choice div { - background-color: #f4f4f4; - background-image: none; - border-left: 0; -} - -.select2-container.select2-container-disabled .select2-choice abbr { - display: none; -} - -.select2-offscreen { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; - left: 0; -} - -.alm-settings-feedback { - position: fixed; - top: 50px; - right: 10px; - width: auto; - height: auto; - background: #fff; - border-left: 5px solid #5cc583; - color: #444; - padding: 25px 30px 25px 25px; - line-height: 1; - z-index: 99999; - border-radius: 2px; - opacity: 0; - visibility: hidden; - transition: all 0.25s ease-in-out; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); - font-size: 13px; -} -.alm-settings-feedback.--saving { - border-color: #e0bd5e; - opacity: 1; - visibility: visible; - top: 50px; - right: 25px; -} -.alm-settings-feedback.--saved { - opacity: 1; - visibility: visible; - top: 50px; - right: 25px; -} -.alm-settings-feedback.--saved i { - opacity: 1; - color: #5cc583; -} -.alm-settings-feedback.--error { - border-color: #e03e3e; - opacity: 1; - visibility: visible; - top: 25px; - right: 25px; -} -.alm-settings-feedback i { - opacity: 0.6; - margin: 0 3px 0 0; -} - -#alm_OptionsForm { - position: relative; -} -#alm_OptionsForm .save-in-progress { - width: 100%; - height: 100%; - position: absolute; - left: 0; - top: 0; - z-index: 10; - background: rgba(255, 255, 255, 0.65); - transition: all 0.2s ease; - opacity: 0; - visibility: hidden; -} -#alm_OptionsForm.--saving .save-in-progress { - opacity: 1; - visibility: visible; - cursor: wait !important; -} - -.ajax-load-more .alm-tabbed-wrapper { - width: 100%; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper { - display: flex; - flex-wrap: nowrap; - } -} -.ajax-load-more .alm-tabbed-wrapper h2 { - padding: 20px 0 0; - margin: 0 0 15px; - display: block; - color: #393d41; - font-weight: 600; -} -.ajax-load-more .alm-tabbed-wrapper--nav { - border: 1px solid #efefef; - margin-bottom: 20px; - padding: 10px; - background: #fff; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav { - width: 165px; - background-color: #f7f7f7; - padding: 0; - border: 1px solid #efefef; - border-right: none; - border-radius: 8px 8px 0 8px; - position: relative; - z-index: 1; - margin: 0; - } -} -.ajax-load-more .alm-tabbed-wrapper--nav ul { - margin: 0; - padding: 0 0 35px; -} -@media screen and (max-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul { - padding: 0; - border: 1px solid #efefef; - } -} -.ajax-load-more .alm-tabbed-wrapper--nav ul li { - width: 100% !important; - margin: 0; - padding: 0; - list-style: none; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type { - position: relative; - top: -1px; - } - .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type button { - border-top: 1px solid #efefef; - border-radius: 8px 0 0 0; - } -} -@media screen and (max-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul li:last-of-type button { - border: none; - } -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul.attached { - position: fixed; - width: auto; - top: 70px; - } - .ajax-load-more .alm-tabbed-wrapper--nav ul.attached li:first-of-type button { - border-radius: 0; - } -} -.ajax-load-more .alm-tabbed-wrapper--nav button { - display: block; - width: 100%; - border: none; - background: none; - line-height: 1.4; - padding: 12px 10px; - text-align: left; - font-weight: 400; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - background: #f7f7f7; - border-bottom: 1px solid #e7e7e7; - cursor: pointer; - color: #393d41; -} -.ajax-load-more .alm-tabbed-wrapper--nav button:hover, .ajax-load-more .alm-tabbed-wrapper--nav button:focus { - background-color: #efefef; -} -.ajax-load-more .alm-tabbed-wrapper--nav button i { - opacity: 0.65; - width: 18px; -} -.ajax-load-more .alm-tabbed-wrapper--nav button i.fa-handshake-o { - position: relative; - left: -2px; -} -.ajax-load-more .alm-tabbed-wrapper--nav button.active { - font-weight: 600; - background-color: #fff; - color: #d63638; - cursor: default; -} -.ajax-load-more .alm-tabbed-wrapper--nav button.active i { - color: #393d41; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav button.active { - width: calc(100% + 1px); - } -} -.ajax-load-more .alm-tabbed-wrapper--sections { - flex: 1; - padding: 0 20px 20px; - display: block; - background: #fff; - border: 1px solid #efefef; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--sections { - border-radius: 0 8px 8px 0; - } -} -.ajax-load-more .alm-tabbed-wrapper--section { - display: none; -} -.ajax-load-more .alm-tabbed-wrapper--section.active { - display: block; -} - -.ajax-load-more .builder-option-toggle { - display: flex; - flex-wrap: nowrap; -} -.ajax-load-more .builder-option-toggle input { - border-radius: 3px 0 0 3px; - margin: 0; - width: auto; - flex: 1; -} -.ajax-load-more .builder-option-toggle--buttons { - border-radius: 0 3px 3px 0; - padding: 3px; - width: auto; - border: 1px solid #e7e7e7; - background-color: #fcfcfc; - border-left: none; - display: flex; -} -.ajax-load-more .builder-option-toggle--buttons button { - height: 100%; - border: 1px solid #e7e7e7; - border-left-width: 0; - margin: 0; - font-weight: 600; - font-size: 11px; - text-transform: uppercase; - cursor: pointer; - padding: 0; - margin: 0; - border-radius: 0; - width: 34px; - text-align: center; - display: inline-block; - color: #393d41; - background-color: transparent; -} -.ajax-load-more .builder-option-toggle--buttons button:hover, .ajax-load-more .builder-option-toggle--buttons button:focus { - color: #222; - border-color: #ccc; -} -.ajax-load-more .builder-option-toggle--buttons button:first-child { - border-radius: 3px 0 0 3px; - border-left-width: 1px; -} -.ajax-load-more .builder-option-toggle--buttons button:last-child { - border-radius: 0 3px 3px 0; -} -.ajax-load-more .builder-option-toggle--buttons button.active { - border-color: #838d99; - background-color: #838d99; - color: #fff; - cursor: default; -} - -.alm-cache { - /* Live Search */ - /* Directory Listing */ -} -.alm-cache .group .row { - overflow: visible; -} -.alm-cache .row:first-of-type { - margin-top: 0 !important; -} -.alm-cache h3.heading { - padding-right: 90px !important; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.alm-cache .alm-cache-search-wrap { - position: relative; - display: block; - margin: 0 0 15px; -} -.alm-cache .alm-cache-search-wrap input { - width: 100% !important; - margin: 0 !important; - padding: 13px 20px; - display: block; - font-size: 15px; - border-radius: 3px; - background-color: #f7f7f7; -} -.alm-cache .alm-cache-search-wrap i { - position: absolute; - right: 15px; - top: 50%; - transform: translateY(-50%); - color: #ccc; - font-size: 16px; - z-index: 1; -} -.alm-cache .alm-cache-listing { - position: relative; -} -.alm-cache .alm-cache-listing .toggle-all { - right: 0; - top: -45px; -} -.alm-cache hr { - margin: 32px 0 25px; - border-top-color: #efefef; - border-bottom: none; -} -.alm-cache .alm-dir-listing { - border: 1px solid #e7e7e7; - border-radius: 3px; - overflow: hidden; - padding: 0; - margin: 10px 0 0; -} -.alm-cache .alm-dir-listing--nested { - padding: 0 15px 15px; -} -.alm-cache .alm-dir-listing--nested .alm-dir-listing { - margin: 0; -} -.alm-cache .alm-dir-listing.deleting { - opacity: 0.5; - background: #fff url(../admin/img/ui/loader-unlimited.gif) no-repeat center center; -} -.alm-cache .alm-dir-listing .dir-title { - margin: 0 0 5px; - position: relative; -} -.alm-cache .alm-dir-listing h3.heading { - padding-left: 40px !important; -} -.alm-cache .alm-dir-listing h3.heading::after { - content: "\f07c"; -} -.alm-cache .alm-dir-listing h3.heading.open:after { - content: "\f07b"; -} -.alm-cache .alm-dir-listing .dir-title .delete { - position: absolute; - right: 10px; - top: 10px; - font-weight: 400; - font-size: 13px; - text-decoration: none; - padding: 5px 12px; - border: 1px solid #e7e7e7; - color: #ccc; - border-radius: 3px; -} -.alm-cache .alm-dir-listing:hover .dir-title .delete { - border-color: #e7e7e7; - background-color: #fff; - color: #666; -} -.alm-cache .alm-dir-listing:hover .dir-title .delete:hover, .alm-cache .alm-dir-listing:hover .dir-title .delete:focus { - background-color: #c94141; - border-color: #c94141; - color: #fff; -} -.alm-cache .cache-page-title { - font-size: 12px; - display: block; - width: 100%; - padding: 0 7px 10px; - font-weight: 700; - text-transform: uppercase; -} -.alm-cache .cache-page-wrap { - padding: 5px 12px 20px; -} -ß .alm-cache .cache-page-wrap ul { - max-height: 300px; - overflow-y: auto; - scroll-behavior: smooth; -} -.alm-cache .cache-full-path { - display: none; -} -.alm-cache .cache-full-path-button { - border: 1px solid #efefef; - border-radius: 3px; - background: #fff; - cursor: pointer; - margin: 0 2px 0 0; - text-align: left; - color: #878787; - font-size: 13px; - padding: 2px 4px; -} -.alm-cache .cache-full-path-button:hover, .alm-cache .cache-full-path-button:focus { - border-color: #e7e7e7; -} -.alm-cache .alm-dir-listing ul.cache-details { - display: block; - padding: 20px 15px 0; - margin: 0; - border: none; -} -.alm-cache .alm-dir-listing ul.cache-details li { - position: relative; - display: block; - width: 100%; - background: none !important; - padding: 0 10px 0 28px; - margin: 0 0 10px; -} -.alm-cache .alm-dir-listing ul.cache-details li i { - color: #999; - font-size: 16px; - position: absolute; - top: 1px; - left: 5px; -} -.alm-cache .alm-dir-listing ul.cache-details li a { - word-break: break-word; -} -.alm-cache p.cache-stats { - min-height: 38px; - line-height: 37px; - display: block; - padding: 0; - margin: 0; -} -.alm-cache p.cache-stats span { - display: inline-block; - width: 38px; - height: 38px; - line-height: 36px; - text-align: center; - margin: 0 9px 0 0; - font-weight: 700; - font-size: 15px; - border-radius: 2px; - background: #a4a5e2; - background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a4a5e2", endColorstr="#a4a5e2", GradientType=0); - border: 1px solid #8586be; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); - color: #fff; - text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); -} - -.ajax-load-more .CodeMirror { - height: auto; - border-radius: 3px; - padding: 0; - background: #f7f7f7; - border: 1px solid #e7e7e7; - color: #999; - line-height: 1.5; - font-size: 13px; -} -.ajax-load-more .CodeMirror.CodeMirror-focused { - border-color: #3d8ed0; - box-shadow: 0 0 4px 1px rgba(61, 142, 208, 0.15); -} -.ajax-load-more .CodeMirror pre { - padding: 0 10px; -} - -.ajax-load-more .cm-readonly .CodeMirror { - opacity: 0.75; -} -.ajax-load-more .cm-readonly .CodeMirror pre { - cursor: default !important; -} - -.CodeMirror-lines { - padding: 10px !important; -} - -.CodeMirror-linenumber { - padding: 0 10px !important; - line-height: 1.25 !important; - color: #ccc !important; -} - -.CodeMirror-linenumber.CodeMirror-gutter-elt { - padding: 0 20px 0 0 !important; -} - -.ajax-load-more .sm-margin .CodeMirror { - margin: 0 0 10px; -} - -.ajax-load-more .cm-readonly p.warning-callout { - margin: -10px 0 10px; -} - -.ajax-load-more .CodeMirror.loading { - background: #f7f7f7 url(../admin/img/ui/loader-unlimited.gif) no-repeat center center; - opacity: 0.6; -} - -.ajax-load-more .cm-s-pastel-on-dark.CodeMirror { - /* Bkg color */ - background: #333; -} - -.ajax-load-more .CodeMirror-gutters { - /* Line Number color */ - background: #fff; - border-right: 1px solid #e7e7e7; - border-radius: 2px; -} - -.ajax-load-more .CodeMirror-scroll { - overflow-y: hidden; - overflow-x: auto; -} - -.ajax-load-more .cm-tag { - /*
  • html elements */ - color: #0a4b83 !important; -} - -.ajax-load-more .cm-string { - /* Elements in " " */ - color: #c75050 !important; -} - -.ajax-load-more .cm-attribute { - /* class names */ - color: #008080 !important; -} - -.ajax-load-more .cm-keyword { - /* if, array, echo */ - color: #ae5fb3 !important; -} - -.ajax-load-more span.CodeMirror-matchingbracket { - color: #ff0000 !important; -} - -.ajax-load-more .CodeMirror span.cm-meta { - /* div, .shortcode-builder--fields .flex-grid--three > div { - width: 48%; -} -.shortcode-builder--fields .flex-grid--three > div { - width: 31.333%; -} -.shortcode-builder--fields ul { - display: flex; - width: 100%; - flex-wrap: wrap; -} -.shortcode-builder--fields ul li { - width: 50%; - padding-right: 10px; -} -.shortcode-builder--fields ul li label { - margin-bottom: 0 !important; -} -@media screen and (max-width: 1000px) { - .shortcode-builder section { - flex-wrap: wrap; - } - .shortcode-builder--label, .shortcode-builder--fields { - width: 100%; - } - .shortcode-builder--label { - border-right: none; - border-bottom: 1px solid #efefef; - } -} -.shortcode-builder .flex-input { - display: flex; - width: 100%; - flex-wrap: nowrap; -} -.shortcode-builder .flex-input input { - margin: 0; - flex: 1; - border-radius: 3px 0 0 3px; -} -.shortcode-builder .flex-input span { - border: 1px solid #e1e1e1; - border-left: none; - margin: 0; - font-weight: 600; - font-size: 11px; - text-transform: uppercase; - padding: 0 15px; - display: flex; - align-items: center; - border-radius: 0 3px 3px 0; -} -.shortcode-builder .nested-component { - padding: 0; - position: relative; -} -.shortcode-builder .nested-component::after, .shortcode-builder .nested-component::before { - top: 0; - left: 35px; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - z-index: 2; -} -.shortcode-builder .nested-component::after { - border-color: rgba(255, 255, 255, 0); - border-top-color: #fcfcfc; - border-width: 10px; - margin-left: -10px; -} -.shortcode-builder .nested-component::before { - border-color: rgba(239, 239, 239, 0); - border-top-color: #e7e7e7; - border-width: 11px; - margin-left: -11px; - z-index: 1; -} -.shortcode-builder .nested-component--inner { - padding: 0; - position: relative; -} -.shortcode-builder .nested-component--inner::after { - clear: both; - display: table; - content: ""; -} -.shortcode-builder .nested-component .nested-component .shortcode-builder--label { - border-left: 6px solid #efefef; -} -.shortcode-builder .section-intro { - margin: 0 0 10px; -} -.shortcode-builder .section-anchor-nav { - display: flex; - flex-wrap: wrap; - width: 100%; - margin: 0; - padding: 0 0 15px; - border-bottom: 1px solid #e7e7e7; -} -.shortcode-builder .section-anchor-nav li { - margin: 0 10px 5px 0; - padding: 0; - font-size: 12px; -} -.shortcode-builder .section-anchor-nav a { - display: block; -} -.shortcode-builder .section-anchor-nav a:focus, .shortcode-builder .section-anchor-nav a:hover { - text-decoration: none; -} - -.ajax-load-more .cnkt-sidebar { - width: 100%; - height: 100%; - padding: 0 0 20px; -} -@media screen and (min-width: 900px) { - .ajax-load-more .cnkt-sidebar { - width: calc(30% - 20px); - } - .ajax-load-more .cnkt-sidebar[data-sticky] { - position: sticky; - top: 135px; - } -} -.ajax-load-more .cnkt-sidebar .major-publishing-actions { - padding: 15px; - clear: both; - border-top: 1px solid #e7e7e7; - box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025); - background: #f7f7f7; - border-radius: 0 0 8px 8px; - display: flex; - flex-wrap: wrap; - gap: 10px; - width: 100%; -} -.ajax-load-more .cnkt-sidebar .major-publishing-actions i { - opacity: 0.4; - margin: 0 2px 0 0; -} - -/* Template Tags */ -.ajax-load-more .template-tags { - overflow: hidden; - border-left: 5px solid #dfd8c2; - padding: 15px; - background: #fff9ea; - margin: 20px 0 0; - border-radius: 3px; -} -.ajax-load-more .template-tags h4, -.ajax-load-more .template-tags li { - margin: 0 0 8px; - padding: 0; - font-size: 13px; - text-decoration: none !important; -} -.ajax-load-more .template-tags li { - margin: 5px 0 !important; - width: 100% !important; - padding: 0 !important; - border-radius: 3px; - line-height: 1.25; -} -.ajax-load-more .template-tags ul { - margin: 0; - padding: 0; -} -.ajax-load-more .template-tags pre { - display: inline-block; - min-width: 120px; - padding: 0; - margin: 0; - color: #888; -} - -.ajax-load-more .alm-toggle-switch { - display: flex; - clear: both; - margin: 0; - padding: 2px 15px 0; - overflow: hidden; - position: relative; - top: 1px; - z-index: 9; - width: 100%; -} -.ajax-load-more .alm-toggle-switch li { - margin: 0 5px 0 0; - padding: 0; - background: none; - list-style: none; -} -.ajax-load-more .alm-toggle-switch li a { - display: flex; - align-items: center; - padding: 15px 20px; - line-height: 1; - text-decoration: none; - border: 1px solid #e7e7e7; - border-radius: 4px 4px 0 0; - background: #f7f7f7; - color: #393d41; -} -.ajax-load-more .alm-toggle-switch li a:hover, .ajax-load-more .alm-toggle-switch li a:focus { - color: #393d41; - background-color: #fff; -} -.ajax-load-more .alm-toggle-switch li a.active { - background: #fff; - font-weight: 600; - border-bottom-color: #fff; - color: #393d41; -} - -.woocommerce-help--item { - width: 100%; - display: flex; - flex-wrap: nowrap; - align-items: center; - padding-top: 20px; - margin-top: 20px; - border-top: 1px solid #efefef; -} -.woocommerce-help--item div { - flex: 1; - padding: 20px 20px 20px 30px; -} -@media screen and (max-width: 600px) { - .woocommerce-help--item div { - padding: 20px 0; - } -} -.woocommerce-help--item .img { - padding: 0; - flex: none; - width: 30%; -} -@media screen and (max-width: 600px) { - .woocommerce-help--item .img { - display: none; - } -} -.woocommerce-help--item .img img { - border: 1px solid #efefef; - padding: 2px; - border-radius: 4px; -} - -body.toplevel_page_ajax-load-more, -body.ajax-load-more_page_ajax-load-more-repeaters, -body.ajax-load-more_page_ajax-load-more-shortcode-builder, -body.ajax-load-more_page_ajax-load-more-add-ons, -body.ajax-load-more_page_ajax-load-more-extensions, -body.ajax-load-more_page_ajax-load-more-help, -body.ajax-load-more_page_ajax-load-more-licenses, -body.ajax-load-more_page_ajax-load-more-cache, -body.ajax-load-more_page_ajax-load-more-filters, -body.ajax-load-more_page_ajax-load-more-pro, -body.ajax-load-more_page_ajax-load-more-go-pro, -body.ajax-load-more_page_ajax-load-more-woocommerce { - height: auto !important; -} -body.toplevel_page_ajax-load-more #wpcontent, -body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent, -body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent, -body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent, -body.ajax-load-more_page_ajax-load-more-extensions #wpcontent, -body.ajax-load-more_page_ajax-load-more-help #wpcontent, -body.ajax-load-more_page_ajax-load-more-licenses #wpcontent, -body.ajax-load-more_page_ajax-load-more-cache #wpcontent, -body.ajax-load-more_page_ajax-load-more-filters #wpcontent, -body.ajax-load-more_page_ajax-load-more-pro #wpcontent, -body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent, -body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent { - padding-left: 0; - padding-bottom: 20px; -} -body.toplevel_page_ajax-load-more #wpbody-content, -body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content, -body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content, -body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content, -body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content, -body.ajax-load-more_page_ajax-load-more-help #wpbody-content, -body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content, -body.ajax-load-more_page_ajax-load-more-cache #wpbody-content, -body.ajax-load-more_page_ajax-load-more-filters #wpbody-content, -body.ajax-load-more_page_ajax-load-more-pro #wpbody-content, -body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content, -body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content { - padding-bottom: 0; -} -body.toplevel_page_ajax-load-more #wpfooter, -body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter, -body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter, -body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter, -body.ajax-load-more_page_ajax-load-more-extensions #wpfooter, -body.ajax-load-more_page_ajax-load-more-help #wpfooter, -body.ajax-load-more_page_ajax-load-more-licenses #wpfooter, -body.ajax-load-more_page_ajax-load-more-cache #wpfooter, -body.ajax-load-more_page_ajax-load-more-filters #wpfooter, -body.ajax-load-more_page_ajax-load-more-pro #wpfooter, -body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter, -body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter { - padding-top: 0; - padding-bottom: 0; - line-height: 42px; - background: #f8f9fb; - border-top: 1px solid #e7e7e7; - position: fixed; - bottom: 0; - z-index: 1100; -} -body.toplevel_page_ajax-load-more #wpfooter p, -body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p, -body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p, -body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p, -body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p, -body.ajax-load-more_page_ajax-load-more-help #wpfooter p, -body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p, -body.ajax-load-more_page_ajax-load-more-cache #wpfooter p, -body.ajax-load-more_page_ajax-load-more-filters #wpfooter p, -body.ajax-load-more_page_ajax-load-more-pro #wpfooter p, -body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p, -body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter p { - line-height: 42px; -} - -.ajax-load-more { - color: #393d41; - position: relative; - max-width: 100%; -} -.ajax-load-more * { - box-sizing: border-box; -} -.ajax-load-more a { - color: #3d8ed0; - text-decoration: underline; -} -.ajax-load-more a:hover, .ajax-load-more a:focus { - color: #1465a8; - text-decoration: none; -} -.ajax-load-more .offscreen { - position: absolute; - left: -9999px; -} -.ajax-load-more img { - max-width: 100%; -} -.ajax-load-more .text-left { - text-align: left; -} -.ajax-load-more .text-center { - text-align: center; -} -.ajax-load-more .text-right { - text-align: right; -} - -.main-cnkt-wrap { - padding: 0 !important; - margin: 0 !important; -} - -.ajax-load-more-inner-wrapper { - display: block; - padding: 10px 20px 20px; - max-width: 1600px; - position: relative; - width: 100%; -} -@media screen and (min-width: 900px) { - .ajax-load-more-inner-wrapper { - display: flex; - justify-content: space-between; - } -} -.ajax-load-more-inner-wrapper.no-flex { - display: block; -} - -.ajax-load-more .notice, -.ajax-load-more div.updated, -.ajax-load-more div.error, -.ajax-load-more div.notice-success, -.ajax-load-more div.notice-updated, -.ajax-load-more div.notice-error { - margin: 5px 0; - border-radius: 3px; - overflow: hidden; - padding: 5px 10px; -} -.ajax-load-more .notice p, -.ajax-load-more div.updated p, -.ajax-load-more div.error p, -.ajax-load-more div.notice-success p, -.ajax-load-more div.notice-updated p, -.ajax-load-more div.notice-error p { - margin: 0.5em 0; -} -.ajax-load-more .notice .notice-dismiss, -.ajax-load-more div.updated .notice-dismiss, -.ajax-load-more div.error .notice-dismiss, -.ajax-load-more div.notice-success .notice-dismiss, -.ajax-load-more div.notice-updated .notice-dismiss, -.ajax-load-more div.notice-error .notice-dismiss { - top: 2px; -} - -.ajax-load-more .alm-transient p { - margin: 0.5em 0; -} -.ajax-load-more .alm-transient p a { - font-weight: 600; -} -.ajax-load-more .alm-transient a.button { - position: static; - vertical-align: inherit !important; -} -.ajax-load-more .alm-transient button { - transform: translateY(-50%); - top: 50%; -} - -#alm-settings .admin-select { - width: 100%; - display: block; - padding: 0 0 25px; - margin: -10px 0 0; -} -#alm-settings .admin-select .select2-container { - width: 40%; - min-width: 40%; - display: inline-block; - vertical-align: top; -} - -.ajax-load-more .file-location { - border: 1px solid #e7e7e7; - background: #fff; - margin: 0; - padding: 0; - line-height: 1; - display: flex; - flex-wrap: nowrap; - font-family: Consolas, monaco, monospace; - border-radius: 3px; -} -.ajax-load-more .file-location p, -.ajax-load-more .file-location code { - padding: 12px 16px; - line-height: 18px; - font-size: 12px; -} -.ajax-load-more .file-location p { - background: #f7f7f7; - color: #555; - font-weight: 600; - margin: 0; - width: auto; - display: inline; - border-right: 1px solid #e7e7e7; -} -.ajax-load-more .file-location code { - color: #999; - background: transparent; - cursor: help; -} - -.ajax-load-more code { - background: #fcf3d0; -} -.ajax-load-more p { - display: block; - width: 100%; - clear: both; - text-transform: none; - padding: 0; - margin: 0 0 15px; - color: #6a7178; -} -.ajax-load-more table code { - background: #f7f7f7; - color: #6a7178; -} - -.ajax-load-more p.lg, -.ajax-load-more li.lg, -.ajax-load-more input.lg, -.ajax-load-more textarea.lg, -.ajax-load-more label.lg { - font-size: 16px; - color: #999; -} - -.ajax-load-more textarea#_alm_layouts_css { - height: 240px; -} - -.ajax-load-more a.layout-hover { - width: 20px !important; - height: 20px !important; - background: #ccc; - display: inline-block; - position: relative; -} -.ajax-load-more a.layout-hover img { - position: absolute; - left: 100%; - top: 0; - z-index: 999; - opacity: 0; - filter: alpha(opacity=0); -} -.ajax-load-more a.layout-hover:hover img { - position: absolute; - left: 100%; - top: 0; - z-index: 999; - opacity: 1; - filter: alpha(opacity=100); -} - -.ajax-load-more p.highlight { - background-color: #fffbd4; - color: #333; - padding: 5px 10px; - border-radius: 3px; - margin: -5px 0 10px; -} - -.ajax-load-more h3, -.ajax-load-more h4 { - color: #393d41; - margin-top: 0; -} - -.ajax-load-more h4 + p { - margin-top: -6px; -} - -.ajax-load-more p.small { - font-size: 12px; - margin-top: -10px; - opacity: 0.7; -} - -.ajax-load-more.shortcode-builder .major-publishing-actions { - position: relative; -} - -.ajax-load-more p.small.reset-shortcode-builder { - position: absolute; - right: 15px; - top: 50%; - transform: translateY(-45%); - text-align: right; - margin: 0; - padding: 0; - display: none; - width: auto; - opacity: 1; - font-size: 12px; -} - -.ajax-load-more p.small.reset-shortcode-builder a { - text-decoration: none; -} - -/* Expand Collapse Headings */ -.ajax-load-more h3.heading { - font-weight: 600; - padding: 15px 10px 15px 36px !important; - line-height: normal !important; - margin: 0 !important; - color: #393d41; - cursor: pointer; - width: 100%; - position: relative; - font-size: 16px; - background: #f7f7f7; - border-bottom: 1px solid #e7e7e7; -} -.ajax-load-more h3.heading:hover:after, .ajax-load-more h3.heading:focus:after { - color: #ccc; -} -.ajax-load-more h3.heading:hover, .ajax-load-more h3.heading:focus { - color: #222; - outline: none; - text-decoration: underline; -} -.ajax-load-more h3.heading::after { - font-family: "FontAwesome"; - content: "\f056"; - color: #e7e7e7; - position: absolute; - left: 13px; - top: 16px; - height: 20px; - width: 20px; -} -.ajax-load-more h3.heading.open:after { - content: "\f055"; -} -.ajax-load-more h3.heading.open { - border-bottom-color: transparent; -} - -/* Expand/Collapse all rows */ -.ajax-load-more .toggle-all { - position: static; - top: -21px; - right: 20px; - width: auto; - display: inline-block; - font-size: 11px; - text-transform: uppercase; - border-radius: 3px; - padding: 0 12px; - height: 35px; - line-height: 34px; - background: #fff; - border: 1px solid #e7e7e7; - color: #393d41; - cursor: pointer; - z-index: 20; - margin-bottom: 10px; - overflow: hidden; -} -@media screen and (min-width: 768px) { - .ajax-load-more .toggle-all { - position: absolute; - } -} -.ajax-load-more .toggle-all:hover, .ajax-load-more .toggle-all:focus { - color: #393d41; - border-color: #ccc; -} -.ajax-load-more .toggle-all .inner-wrap { - position: relative; - padding-left: 16px; - line-height: 24px; -} -.ajax-load-more .toggle-all .expand { - display: none; -} -.ajax-load-more .toggle-all .collapse { - display: inline-block; -} -.ajax-load-more .toggle-all em { - font-style: normal; -} -.ajax-load-more .toggle-all.closed .expand { - display: inline-block; -} -.ajax-load-more .toggle-all.closed .collapse { - display: none; -} -.ajax-load-more .toggle-all .inner-wrap:before { - font-family: "FontAwesome"; - content: "\f068"; - font-size: 10px; - position: absolute; - left: 0; - top: -5px; -} -.ajax-load-more .toggle-all.closed .inner-wrap:before { - content: "\f067"; -} - -a.button-small { - text-decoration: none; - font-size: 12px; - padding: 6px 10px; - display: inline-block; - background-color: #eaf6fb; - border: 1px solid #b9d2de; - color: #393d41; - line-height: 1.1; - border-radius: 3px; -} -a.button-small:hover { - color: #fff; - background-color: #3d8ed0; - text-decoration: none; - border-color: #3d8ed0; -} -a.button-small:focus { - color: #fff; - background-color: #1465a8; - text-decoration: none; - border-color: #1465a8; -} - -.ajax-load-more ul { - padding: 0; - margin: 0; - list-style: none; -} - -.shortcode-builder--items li { - padding: 0 5% 0 0; - margin: 0 0 5px; - width: 48.666%; - clear: both; - display: inline-block; - vertical-align: top; - overflow: visible; - position: relative; -} - -.ajax-load-more label.full { - display: block; - clear: both; - width: 100%; - color: #393d41; - font-weight: 500; - padding: 0 0 10px; - cursor: default; - font-size: 13px; -} - -.ajax-load-more .border-top { - display: block; - border-top: 1px solid #efefef; - width: 100%; - clear: both; - padding: 15px 0 0 !important; - overflow: visible; - position: relative; -} - -.ajax-load-more .border-top.highlighted { - background-color: #feffe3; - padding: 15px !important; - border: 1px solid #eeefd4; - border-radius: 3px; -} - -.ajax-load-more .alm-settings-nav { - margin: 0 0 5px; - padding: 0; - overflow: hidden; - position: relative; - width: calc(100% + 40px); - top: -20px; - left: -20px; - border-bottom: 1px solid #ebebeb; - background: #f7f7f7; - border-radius: 3px 3px 0 0; -} - -.alm-settings-nav li { - float: left; - margin: 0; - padding: 0; - font-weight: 600; - background: none; - font-size: 13px; -} - -.alm-settings-nav a { - text-decoration: none; - padding: 8px 16px 8px 16px; - border-left: 1px solid #ebebeb; - display: block; -} - -.alm-settings-nav a:hover { - color: #fff; - background-color: #d63638; -} - -.alm-settings-nav li:first-of-type a { - border: none; - border-radius: 3px 0 0 0; -} - -#alm-meta-key .meta-query-wrap, -.taxonomy-wrap { - padding: 15px; - border: 1px solid #efefef; - margin: 15px 0 0; - position: relative; - border-radius: 3px; -} - -#alm-meta-key .meta-query-wrap { - padding-bottom: 0; -} - -.meta-query-wrap.removing, -.taxonomy-wrap.removing { - background-color: #f5d0d0; -} - -#alm-meta-key .meta-query-wrap-first .meta-query-wrap { - border: none; - background-color: transparent; - padding: 0; - margin: 0; -} -#alm-meta-key .meta-query-wrap-first .meta-query-wrap .padding-top { - margin-bottom: 0; -} - -.section-control { - padding-top: 15px; -} - -.row .controls { - display: block; - clear: both; - padding: 20px 0 10px; - overflow: hidden; -} - -.row.taxonomy .controls { - padding-bottom: 20px; -} - -.row.taxonomy .highlighted { - margin-bottom: 0 !important; -} - -#tax-query-relation { - padding-top: 15px; -} - -.meta-query-wrap .remove-meta-query, -.taxonomy-wrap .remove-tax-query { - position: absolute; - right: 5px; - top: 5px; - width: 23px; - height: 23px; - line-height: 22px; - text-align: center; - font-weight: 500; - font-size: 18px; - background-color: #393d41; - color: #fff; - text-decoration: none; - border-radius: 3px; - padding-left: 1px; -} -.meta-query-wrap .remove-meta-query:hover, .meta-query-wrap .remove-meta-query:hover, -.taxonomy-wrap .remove-tax-query:hover, -.taxonomy-wrap .remove-tax-query:hover { - background-color: #d63638; - color: #fff; -} - -.ajax-load-more .meta-query-wrap { - display: flex; - flex-wrap: wrap; - justify-content: space-between; - width: 100%; -} -.ajax-load-more .meta-query-wrap > div { - width: 48%; - margin: 0 0 15px; -} - -.meta-query-extended .meta-query-wrap { - margin-bottom: 15px; -} - -#meta-query-relation { - margin: 15px 0; -} - -.ajax-load-more .meta-query-wrap .border-top:first-of-type { - padding: 0 0 0 !important; - border: none; -} - -.ajax-load-more #taxonomy-extended, -.ajax-load-more #nav-controls, -.ajax-load-more #seo-extended, -.ajax-load-more #meta-query-relation, -.ajax-load-more #tax-query-relation, -.ajax-load-more .comments_extras, -.ajax-load-more #users-extended, -.ajax-load-more .taxonomy-extended, -.ajax-load-more #paging-controls-nav { - display: none; - overflow: hidden; -} - -.ajax-load-more .taxonomy-extended { - padding-top: 15px; -} - -.ajax-load-more .taxonomy-wrap { - display: none; - position: relative; -} - -.ajax-load-more .row .wrap .inner .ajax-load-more p.warning { - color: #d24646; - font-size: 13px; - border-left: 3px solid #d24646; - margin: 0; - padding: 0 0 0 10px; -} - -.ajax-load-more .row .wrap .inner.taxonomy { - padding-bottom: 0; -} - -.ajax-load-more label, -.ajax-load-more input, -.ajax-load-more select, -.ajax-load-more textarea { - font-size: 14px; - padding: 5px 8px; - width: auto; - margin-top: 0; - display: inline-block; - clear: both; - border-radius: 3px; - color: #393d41; - box-shadow: none; -} - -.ajax-load-more input[type=checkbox], -.ajax-load-more input[type=radio] { - width: 1rem; -} - -.controls button.disabled { - opacity: 0.5; -} - -.ajax-load-more textarea._alm_repeater { - font-family: Consolas, monaco, monospace; - font-size: 13px; - line-height: 19px; - padding: 10px; -} - -.ajax-load-more textarea._alm_repeater:focus { - color: #222; -} - -.ajax-load-more label { - padding: 5px 0; - border-radius: 0; -} - -.checkboxes input, -.radio input { - margin-top: 2px; -} - -.checkboxes input, -.checkboxes label, -.radio input, -.radio label { - float: left; - width: auto; - margin-right: 10px; - padding: 0; - clear: none; -} - -.radio input { - margin-left: 3px; -} - -.ajax-load-more textarea, -.ajax-load-more input[type=text], -.ajax-load-more input[type=email], -.ajax-load-more input[type=search], -.ajax-load-more input[type=number] { - padding: 10px 12px; - line-height: 1.3; - border: 1px solid #e7e7e7; - width: 60%; -} - -.ajax-load-more input[type=text].full { - width: 100%; -} - -.ajax-load-more .wrap-30 { - width: 32.333%; - padding-right: 3%; - display: inline-block; - vertical-align: top; -} - -.ajax-load-more .wrap-30.wrap-50 { - width: 48.6666%; -} - -.ajax-load-more .wrap-30.wrap-50.padding-top { - padding-top: 15px; -} - -.ajax-load-more .wrap-30 input[type=text].sm, -.ajax-load-more .wrap-30 .select2-container { - width: 100%; - margin: 0; -} - -.ajax-load-more input[type=number].sm { - width: 100px; -} - -.ajax-load-more ::-webkit-input-placeholder { - color: #999; - font-style: italic; -} - -.ajax-load-more :-moz-placeholder { - /* Firefox 18- */ - color: #999; - font-style: italic; -} - -.ajax-load-more ::-moz-placeholder { - /* Firefox 19+ */ - color: #999; - font-style: italic; -} - -.ajax-load-more :-ms-input-placeholder { - color: #999; - font-style: italic; -} - -.ajax-load-more .repeaters input[type=text] { - padding: 9px 10px; -} - -.ajax-load-more input[type=number] { - height: auto; -} - -.ajax-load-more .form-table textarea { - clear: both; - display: inline-block; - float: none; - width: 100%; -} - -.ajax-load-more textarea.disabled, -.ajax-load-more input.disabled-input { - opacity: 0.5; - filter: alpha(opacity=50); - cursor: not-allowed; - border-color: #ccc !important; - box-shadow: none !important; -} - -.ajax-load-more input[type=text]:focus, -.ajax-load-more input[type=number]:focus, -.ajax-load-more input[type=email]:focus, -.ajax-load-more textarea:focus { - border-color: #3d8ed0; - box-shadow: 0 0 4px 1px rgba(61, 142, 208, 0.15); -} - -.checkboxes label { - margin-right: 5px; -} - -.ajax-load-more .one_half { - display: inline-block; - width: 48%; - margin: 0 -2px 1% 2%; - vertical-align: top; -} - -.ajax-load-more .one_half:first-of-type { - margin: 0 2% 1% 0; -} - -.ajax-load-more .alm-row { - display: grid; - grid-template-columns: repeat(12, 1fr); - align-items: start; - gap: 15px; - padding: 20px; - width: 100%; -} -@media screen and (min-width: 900px) { - .ajax-load-more .alm-row { - gap: 20px; - } -} -.ajax-load-more .alm-row + .alm-row { - padding-top: 0; -} -.ajax-load-more .alm-row.no-padding-btm { - padding-bottom: 0; -} -.ajax-load-more .alm-row .column { - grid-column: span 12/span 12; -} -@media screen and (min-width: 900px) { - .ajax-load-more .alm-row .column.column-3 { - grid-column: span 3/span 3; - } - .ajax-load-more .alm-row .column.column-6 { - grid-column: span 6/span 6; - } - .ajax-load-more .alm-row .column.column-9 { - grid-column: span 9/span 9; - } -} - -.alm-template-actions { - display: flex; - gap: 10px; - width: 100%; - justify-content: end; - padding: 0 0 10px; -} - -.ajax-load-more .row { - padding: 0 !important; - margin: 10px 0 0; - height: auto; - width: 100%; - display: block; - overflow: hidden; - clear: both; - border: 1px solid #e7e7e7; - border-radius: 3px; -} -.ajax-load-more .row.no-brd { - border: none !important; - padding: 0 !important; -} - -.ajax-load-more#alm-repeaters .row { - overflow: visible; -} - -.ajax-load-more .row { - border-color: #e7e7e7; -} - -.ajax-load-more .repeaters .row:hover, -.ajax-load-more.shortcode-builder .row:hover { - border-color: #d9d9d9; - box-shadow: 0 0 0 3px #f7f7f7; -} - -.ajax-load-more .row:first-of-type { - margin-top: 20px; - padding-top: 0; -} - -.ajax-load-more .intro { - height: auto; - width: 100%; - display: block; - overflow: hidden; -} - -/* Jump Menu */ -.pop-up-jump { - display: block; - width: 100%; -} -.pop-up-jump .jump-menu-wrap { - position: relative; - float: right; - width: 30%; -} -.pop-up-jump .jump-menu-wrap .select2-container { - width: 100% !important; - margin-bottom: 15px; - position: relative; - top: -5px; -} -.pop-up-jump .intro-wrap { - position: relative; - float: left; - width: 65%; - padding-right: 5%; -} - -.ajax-load-more .jump-menu { - display: none; -} - -/* Table of Contents */ -#cnkt-sticky.attached { - position: fixed; - width: auto; - top: 70px; -} - -.table-of-contents .select2-container { - width: 100%; -} - -.table-of-contents ul { - margin: 0 !important; -} - -.table-of-contents li { - width: auto !important; - display: inline-block; - vertical-align: top; - padding: 0; - margin: 5px 5px 5px 0; -} - -.ajax-load-more .expand-wrap { - display: block; -} - -#alm-examples.ajax-load-more .expand-wrap { - padding: 10px 10px 0; -} - -.ajax-load-more .expand-wrap hr { - border: 0; - height: 0; - border-top: 1px solid #efefef; - border-bottom: 1px solid rgba(255, 255, 255, 0.3); -} - -hr.indented { - width: calc(100% - 40px); - margin-left: 20px; -} - -.ajax-load-more .section-title { - float: left; - padding: 20px 0 25px 20px; - width: 35%; -} -.ajax-load-more .section-title.full { - width: 100%; - float: none; - padding-right: 25px; -} -.ajax-load-more .section-title p:last-of-type { - margin-bottom: 0; -} -.ajax-load-more .section-title small { - font-size: 12px; - padding-top: 10px; - display: block; -} -.ajax-load-more .section-title h4 { - font-size: 14px; - font-weight: 600; - margin-bottom: 15px; -} -.ajax-load-more .section-title p, -.ajax-load-more .section-title .wrap p.descriptor { - font-size: 13px; - line-height: 20px; - color: #999; -} - -.ajax-load-more .wrap p.descriptor { - margin: 0; - font-style: italic; -} - -.ajax-load-more .section-title p .fa.tooltip:hover, -.form-table label .fa.tooltip:hover { - opacity: 1; -} - -.ajax-load-more .fa.tooltip { - display: inline-block; - margin: 0 2px; - text-decoration: none; - cursor: help; - position: relative; - top: -1px; - background: #fff; - border-radius: 100%; - width: 16px; - height: 16px; - text-align: center; - line-height: 16px; - box-shadow: 0 1px 1px #ccc; -} - -.cta h3 .fa.tooltip { - top: 1px; -} - -.ajax-load-more .section-title p span, -.ajax-load-more.settings .form-table p.notify span { - display: inline-block; - padding: 0 4px; - border-radius: 2px; - background: #f7f7f7; - border: 1px solid #efefef; - color: #666; -} - -.ajax-load-more .section-title h4 { - margin: 0 0 10px; -} - -.ajax-load-more .repeaters .section-title, -.ajax-load-more .repeaters .row .wrap { - width: 100%; - float: none; - padding: 0; -} - -.ajax-load-more .repeaters .section-title p { - padding-left: 0 !important; -} - -.ajax-load-more label input._alm_repeater_alias { - height: auto; - line-height: normal !important; -} - -.preload_amount, -.cache_id, -.alternate_template_wrap, -.cta_template_wrap, -.restapi_options, -.filters_options, -.next-page-content, -.acf-options, -.masonry-options, -.progress-bar-options, -.hide-section { - display: none; -} - -.ajax-load-more .row .wrap { - padding: 20px 20px 0 5%; - margin: 0; - border: none; - width: 65%; - float: left; - position: relative; -} - -.ajax-load-more .row .wrap.full { - float: none; - width: 100%; - padding: 0 15px 15px 36px; -} - -.ajax-load-more .output-wrap { - margin: 20px 0 0; - background: #838d99; - width: 100%; - display: block; - border-radius: 3px; -} -.ajax-load-more .output-wrap textarea { - background-color: transparent !important; - resize: none !important; - height: auto !important; - min-height: 100px; - border: none !important; - width: 100% !important; - display: block; - border-radius: 3px; - font-family: monospace; - font-size: 12px; - line-height: 18px; - color: #fff; - cursor: pointer; -} - -.ajax-load-more .row .wrap.output { - display: block !important; -} - -.ajax-load-more .row .wrap .inner { - padding: 0 0 20px; -} - -.ajax-load-more .row .wrap .inner.half { - padding: 0 0 20px; - width: 49.333%; - display: inline-block; -} - -#insert.insert_alm { - background: #fff !important; - color: #ca5252 !important; - border: none; - font-size: 14px !important; - font-weight: 600; - padding: 8px 13px; - display: inline-block; - text-align: center; - margin: 15px 0; - line-height: normal !important; - height: auto !important; - box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 1px 0px #ca5252; - text-shadow: none !important; - max-width: 20%; - border-radius: 2px; -} -#insert.insert_alm #insert.insert_alm { - display: none; -} -#insert.insert_alm:hover { - box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px rgb(255, 255, 255); -} -#insert.insert_alm:active { - background: #d0413f !important; - box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1); - color: #fff !important; -} - -.ajax-load-more .clear { - clear: both; - height: auto; - overflow: hidden; - width: 100%; - padding: 0; - margin: 0; -} - -.form-table label { - display: block; - clear: both; - float: none; - padding: 0 0 8px; - max-width: 90%; - cursor: pointer !important; - line-height: 1.5; -} - -.form-table input[type=radio], -.form-table input[type=checkbox] { - vertical-align: top; - margin-top: 0 !important; - max-width: 8%; -} - -.form-table label + textarea { - margin-top: 10px; -} - -.form-table label span, -#alm-shortcode-builder-form label span.description { - font-size: 13px; - color: #6a7178; - padding-top: 10px; -} - -#alm-shortcode-builder-form label span.description { - display: block; - padding-top: 1px; - padding-bottom: 5px; -} - -.ajax-load-more textarea.disabled, -.ajax-load-more input.disabled { - opacity: 0.9; - filter: alpha(opacity=90); - cursor: default; - border: 1px solid #ccc; - background: #efefef; - color: #666; - text-shadow: 1px 1px 0 #fff; - resize: none; -} - -.ajax-load-more .form-table input[type=radio], -.ajax-load-more .form-table input[type=checkbox] { - margin-right: 10px; - margin-top: 0 !important; -} - -.ajax-load-more.settings input[type=text], -.ajax-load-more.settings input[type=number], -.ajax-load-more.settings input[type=email], -.ajax-load-more.settings .select2-container { - margin-top: 10px; -} - -.ajax-load-more .ajax-load-more-wrap { - position: relative; - top: 10px; - padding: 20px; - border: 1px solid #e7e7e7; - box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.025), 0 0 5px rgba(0, 0, 0, 0.1); - border-radius: 3px; - margin-top: 10px; - margin-bottom: 10px; -} -.ajax-load-more .ajax-load-more-wrap.preview-pane.none { - display: none; -} -.ajax-load-more .ajax-load-more-wrap .alm-btn-wrap { - text-align: left; - padding: 0; - margin: 0; -} -.ajax-load-more .ajax-load-more-wrap button { - margin: 0 !important; - opacity: 1 !important; - visibility: visible !important; -} -.ajax-load-more .ajax-load-more-wrap span { - display: block; - font-size: 10px; - line-height: 1; - border-bottom: 1px solid #e7e7e7; - padding: 0 0 10px; - margin: 0 0 20px; - text-transform: uppercase; -} -.ajax-load-more .ajax-load-more-wrap ul.alm-paging li span { - padding: 0; - margin: 0; -} - -.ajax-load-more.settings { - /* Table Overrides */ -} -.ajax-load-more.settings .ajax-load-more-wrap.pages li { - font-size: 14px; -} -.ajax-load-more.settings .ajax-load-more-wrap.pages li a { - text-decoration: none; -} -.ajax-load-more.settings .ajax-load-more-wrap.pages li span { - margin: 0; - font-size: 14px; - border-bottom: none; -} -.ajax-load-more.settings .form-table td, -.ajax-load-more.settings .form-table th { - padding: 25px; - line-height: 1.5; -} -.ajax-load-more.settings .form-table td:last-of-type, -.ajax-load-more.settings .form-table th:last-of-type { - margin: 0; -} -.ajax-load-more.settings .form-table th { - font-weight: 600; - background-color: #f7f7f7; - border-right: 1px solid #efefef; - width: 25%; -} -.ajax-load-more.settings .form-table p { - margin-top: 0; -} -.ajax-load-more.settings .form-table p.notify { - padding: 10px 0 0; - margin: 5px 0 20px; - overflow: hidden; - color: #999; -} -.ajax-load-more.settings .nextpage-option { - display: block; - padding: 10px; - background-color: #f7f7f7; - border: 1px solid #e7e7e7; - margin: 10px 0; - border-radius: 3px; -} -.ajax-load-more.settings .nextpage-option > div label { - margin: 0; - width: 100%; -} -.ajax-load-more.settings .nextpage-option--type input:checked + label { - font-weight: 600; -} -.ajax-load-more.settings .nextpage-option--shortcode { - display: none; - padding: 10px 5px 5px 30px; -} -.ajax-load-more.settings .nextpage-option--shortcode.active { - display: block; -} -.ajax-load-more.settings .nextpage-option--shortcode label { - padding: 10px 1px 0; - margin: 0 0 10px; - font-size: 13px; - border-top: 1px solid #e7e7e7; - display: block; - width: 100%; - max-width: 100%; -} -.ajax-load-more.settings .nextpage-option--shortcode textarea { - border-radius: 3px; - font-size: 12px; - line-height: 1.55; - font-family: Consolas, monaco, monospace; - width: 100%; - display: block; -} - -.ajax-load-more h2.addon-title { - font-size: 18px !important; - line-height: 22px; - font-weight: 600 !important; - color: #393d41 !important; - padding: 0; -} -.ajax-load-more h3.add-on-title { - padding: 0 0 10px; - margin: 0 0 20px; - border-bottom: 1px solid #efefef; -} -.ajax-load-more h3.add-on-title, -.ajax-load-more .cnkt-sidebar h3 { - padding: 0 0 10px; - margin: 0 0 20px; - border-bottom: 1px solid #efefef; -} -.ajax-load-more .desc, -.ajax-load-more p.writeable-title { - padding: 0 0 2px 28px; -} -.ajax-load-more p.writeable-title { - position: relative; -} -.ajax-load-more p.writeable-title i { - position: absolute !important; - left: 0 !important; - top: 1px !important; -} -.ajax-load-more .saved-response, -.ajax-load-more p.loading { - font-size: 12px; - padding: 0; - color: #999; - background: none; - transition: padding 0.2s ease; - display: inline-block; - width: auto; - position: relative; - top: 5px; - left: 15px; -} -.ajax-load-more .saved-error { - color: #e03e3e; -} -.ajax-load-more .saved-response em { - color: #333; - display: block; - padding: 5px 0; -} -.ajax-load-more .saved { - color: #90be59; - font-weight: 700; -} -.ajax-load-more p.loading { - position: static; -} -.ajax-load-more .saved-response.loading, -.ajax-load-more p.loading { - background: transparent url(../admin/img/ui/loader.gif) no-repeat left center; - padding-left: 24px; -} -.ajax-load-more .restore-default { - float: right; - margin: 19px 20px 0 0; - font-size: 12px; -} -.ajax-load-more .restore-default a { - text-decoration: none; -} -.ajax-load-more table.highlight { - background: #fff !important; -} - -/* Columns */ -.ajax-load-more .cnkt-main { - width: 100%; - background: #fff; - padding: 20px; - border: 1px solid #e7e7e7; - border-radius: 8px; - margin-bottom: 30px; -} -@media screen and (min-width: 900px) { - .ajax-load-more .cnkt-main { - width: 70%; - } -} -.ajax-load-more .cnkt-main.stylefree { - padding: 0; - background-color: transparent; - border: none; -} - -.ajax-load-more .cnkt-main .group { - background: #fff; - padding: 20px; - margin: 0 0 20px; - position: relative; - display: block; - clear: both; -} - -.ajax-load-more .cnkt-main .group, -.ajax-load-more .cnkt-sidebar .cta { - border: 1px solid #e7e7e7; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); -} -.ajax-load-more .cnkt-main .group.no-shadow, -.ajax-load-more .cnkt-sidebar .cta.no-shadow { - box-shadow: none; -} - -.ajax-load-more .cnkt-main .alm-content-wrap { - border: 1px solid #e7e7e7; - background-color: #fff; - border-radius: 8px; - padding: 20px; - position: relative; -} -.ajax-load-more .cnkt-main .alm-content-wrap .toggle-all { - right: -1px; - top: -45px; -} -.ajax-load-more .cnkt-main .alm-content-wrap .flexbox-wrap { - margin: 0; -} - -.ajax-load-more .cnkt-main.full { - width: 100%; - float: none; -} - -.ajax-load-more .cnkt-main h1, -.ajax-load-more .cnkt-main h2, -.ajax-load-more .cnkt-main h3, -.ajax-load-more .cnkt-main h4 { - margin-top: 0; - margin-bottom: 10px; -} - -.form-table tr { - border-top: 1px solid #efefef; -} - -.form-table { - border: 1px solid #efefef; - margin: 0 0 20px; -} -.form-table br { - height: 1px; - display: block; - overflow: hidden; - line-height: 1px; - margin: 0; - content: ""; -} - -#alm_OptionsForm .form-table:last-of-type { - margin-bottom: 0; -} - -/* Repeaters */ -.repeaters .repeater-wrap label { - font-weight: 500; - padding: 0; - margin: 0 0 10px; -} -.repeaters .repeater-wrap label span { - display: block; - font-weight: 400; - color: #6a7178; - font-size: 12px; - padding-top: 3px; - opacity: 0.75; -} -.repeaters input.save-repeater { - display: inline-block; - margin: 0; - clear: none; - max-width: 25%; -} -.repeaters .repeater-wrap textarea, -.repeaters .repeater-wrap input[type=text] { - width: 100%; -} -.repeaters input.save-repeater.saving { - cursor: default !important; - opacity: 0.3 !important; -} -.repeaters .saved-response { - max-width: 72%; - opacity: 0; -} -.repeaters .one_half { - padding-bottom: 10px; -} -.repeaters .alm-delete { - display: inline-block; - margin: 0; - width: auto; - opacity: 0; - transition: all 0.15s ease; - position: absolute; - right: 20px; - bottom: 20px; - border: none; - border-radius: 3px; - background: none; - color: #c94141; - font-size: 14px; - line-height: 30px; - height: 30px; - text-decoration: none; - display: block; - padding: 0 10px; - cursor: pointer; -} -.repeaters .alm-delete:hover, .repeaters .alm-delete:focus { - background-color: #c94141; - color: #fff; -} -.repeaters .alm-delete:active { - background-color: #b93636; -} -.repeaters .row:hover .alm-delete, -.repeaters .row:focus-within .alm-delete { - opacity: 1; -} - -/* Add-ons & Extensions */ -.flexbox-wrap { - display: grid; - grid-template-columns: repeat(1, 1fr); - gap: 1px; - margin-bottom: 20px; - background-color: #f7f7f7; - box-shadow: inset 0 0 0 10px #fff; - border-radius: 8px; - padding: 10px; -} -@media screen and (min-width: 640px) { - .flexbox-wrap { - grid-template-columns: repeat(2, 1fr); - } -} -@media screen and (min-width: 1100px) { - .flexbox-wrap { - grid-template-columns: repeat(3, 1fr); - } -} -.flexbox-wrap--single { - grid-template-columns: repeat(1, 1fr); - padding: 0; - border-radius: 3px; - border: 1px solid #efefef; -} - -#alm-add-ons .group { - overflow: hidden; - width: 100%; - display: flex; - vertical-align: top; - text-align: center; - margin: 0 !important; - padding: 0; - border: none; -} -#alm-add-ons .group.highlighted, #alm-add-ons .group.extend, #alm-add-ons .group.alm-pro-hero { - width: 100%; - background: none; - border: none; - box-shadow: none; -} -#alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a, #alm-add-ons .group.alm-pro-hero a { - background: #f7f7f7; - border-radius: 8px; - box-shadow: inset 0 0 0 10px #fff; -} -#alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img, #alm-add-ons .group.alm-pro-hero img { - padding: 10px; -} -@media screen and (min-width: 768px) { - #alm-add-ons .group.highlighted, #alm-add-ons .group.extend, #alm-add-ons .group.alm-pro-hero { - text-align: left; - } - #alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a, #alm-add-ons .group.alm-pro-hero a { - padding: 20px; - overflow: hidden; - display: flex; - flex-wrap: nowrap; - align-items: center; - } - #alm-add-ons .group.highlighted .pro-img, - #alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-img, - #alm-add-ons .group.extend .pro-details, #alm-add-ons .group.alm-pro-hero .pro-img, - #alm-add-ons .group.alm-pro-hero .pro-details { - flex: 1; - } - #alm-add-ons .group.highlighted .pro-img, #alm-add-ons .group.extend .pro-img, #alm-add-ons .group.alm-pro-hero .pro-img { - max-width: 355px; - } - #alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-details, #alm-add-ons .group.alm-pro-hero .pro-details { - padding: 0 15px 0 35px; - } - #alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img, #alm-add-ons .group.alm-pro-hero img { - position: static; - } - #alm-add-ons .group.highlighted span.cnkt-button, #alm-add-ons .group.extend span.cnkt-button, #alm-add-ons .group.alm-pro-hero span.cnkt-button { - position: static; - width: auto; - display: inline-block; - padding: 13px 30px; - text-align: center; - margin-top: 15px; - font-size: 14px; - } -} -@media screen and (min-width: 769px) and (max-width: 1270px) { - #alm-add-ons .group.highlighted .pro-desc, #alm-add-ons .group.extend .pro-desc, #alm-add-ons .group.alm-pro-hero .pro-desc { - display: none; - } -} -#alm-add-ons .group.extend a { - background-color: #fff; - border-color: #fcfcfc; -} -#alm-add-ons .group.installed { - filter: grayscale(1); -} -#alm-add-ons .group.installed p:before { - display: none !important; -} - -#alm-add-ons .group span.cnkt-button { - position: absolute; - left: 20px; - bottom: 20px; - width: 100%; - width: calc(100% - 40px); - display: block; - font-size: 14px; - padding: 11px 14px; - transition: all 0.15s ease; - border-bottom: none; - border-left: none; - border-right: none; -} -#alm-add-ons .group img { - padding: 0 15px 15px; -} -#alm-add-ons .group a { - text-decoration: none; - display: block; - padding: 25px 25px 70px; - position: relative; -} -#alm-add-ons .group--pro a { - padding-bottom: 17px; -} -#alm-add-ons .group a:hover h2, -#alm-add-ons .group a:focus h2 { - color: #d63638 !important; - text-decoration: none; -} -#alm-add-ons .group.installed a:hover h2, -#alm-add-ons .group.installed a:focus h2 { - color: #444 !important; -} - -.ajax-load-more .cnkt-plugin-installer { - display: grid; - gap: 10px; - grid-template-columns: repeat(1, 1fr); - width: 100%; - position: static; -} -@media screen and (min-width: 640px) { - .ajax-load-more .cnkt-plugin-installer { - grid-template-columns: repeat(2, 1fr); - } -} -@media screen and (min-width: 1600px) { - .ajax-load-more .cnkt-plugin-installer { - grid-template-columns: repeat(3, 1fr); - } -} -.ajax-load-more .cnkt-plugin-installer::after { - display: none; -} -.ajax-load-more .cnkt-plugin-installer .plugin { - width: 100% !important; - margin: 0 !important; - border-radius: 3px; -} - -.ajax-load-more p.warning-callout { - background-color: #eaf6fb; - border-left: 6px solid #3d8ed0; - color: #333; - font-size: 12px; - margin: 0; - display: block; - padding: 18px 100px 18px 18px; - border-radius: 3px; - margin: 10px; - width: auto; - line-height: 1.55; - position: relative; -} -.ajax-load-more p.warning-callout a { - color: #0071ac; -} -.ajax-load-more p.warning-callout a.button-small { - position: absolute; - right: 14px; - top: 14px; - font-size: 12px; - display: inline-block; - background-color: rgba(255, 255, 255, 0.75); - margin: 0 0 0 10px; -} -.ajax-load-more p.warning-callout a.button-small:hover, .ajax-load-more p.warning-callout a.button-small:focus { - background-color: #fff; -} -.ajax-load-more p.warning-callout strong { - display: inline-block; - font-weight: normal; - font-family: Consolas, monaco, monospace; - background-color: #fff; - padding: 1px 6px 0; - border-radius: 2px; -} -.ajax-load-more p.warning-callout.notify { - background-color: #da5858; - border-color: #b94848; - color: #fff; -} -.ajax-load-more p.warning-callout.notify strong { - background-color: #9a4343; - color: #fff; -} - -.ajax-load-more .call-out { - background: #bb8dd2; - padding: 15px; - border-radius: 8px; - display: flex; - align-items: center; - width: 100%; - position: relative; - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); -} -.ajax-load-more .call-out p { - margin: 5px; - color: #fff; - line-height: 1.45; - text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); - display: flex; - align-items: center; - width: 100%; -} -.ajax-load-more .call-out p i { - font-size: 15px; - margin-right: 5px; - position: relative; - left: -4px; - display: block; - font-size: 22px; - opacity: 0.5; -} -@media screen and (max-width: 640px) { - .ajax-load-more .call-out p i { - display: none; - } -} -.ajax-load-more .call-out--centered { - flex-direction: column; -} -.ajax-load-more .call-out--centered p { - display: block; - text-align: center; - margin: 0 10px 0; -} -.ajax-load-more .call-out--centered p i { - position: static; - margin: 0 0 10px; -} -.ajax-load-more .call-out--centered p + div { - margin-top: 10px; -} -.ajax-load-more .call-out.text-left { - text-align: left; -} -.ajax-load-more .call-out.radius-normal { - border-radius: 3px; -} -.ajax-load-more .call-out.margin-bottom { - margin-bottom: 20px; -} -.ajax-load-more .call-out.margin-top { - margin-top: 20px; -} -.ajax-load-more .call-out.margin-top-half { - margin-top: 10px; -} -.ajax-load-more .call-out--shortcode-builder { - padding: 0; - border-top: 1px solid #e7e7e7; -} -.ajax-load-more .call-out--shortcode-builder .call-out { - border-radius: 0 0 3px 3px; -} -.ajax-load-more .call-out--shortcode-builder .call-out p { - font-size: 13px; -} -.ajax-load-more .call-out.blue { - background-color: #eaf6fb; - border-left: 6px solid #4e99bf; - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); -} -.ajax-load-more .call-out.blue p { - color: #393d41; - text-shadow: none; -} -.ajax-load-more .call-out.blue .cnkt-button { - background: #3d8ed0; - color: #fff; -} -.ajax-load-more .call-out.blue .cnkt-button:hover, .ajax-load-more .call-out.blue .cnkt-button:focus { - background: #1465a8; -} -.ajax-load-more .call-out.light { - background: #fff8d7; -} -.ajax-load-more .call-out.light p { - color: #59574e; - text-shadow: none; -} -.ajax-load-more .call-out.light p a { - color: #d63638 !important; -} -.ajax-load-more .call-out.light p a:hover { - text-decoration: underline; -} -.ajax-load-more .call-out.light .cnkt-button { - background: #fff; - color: #59574e; -} -.ajax-load-more .call-out.light .cnkt-button:hover, .ajax-load-more .call-out.light .cnkt-button:focus { - color: #3e3d3a; - background: rgba(255, 255, 255, 0.9); -} -.ajax-load-more .call-out a:not(.cnkt-button):not(.button) { - color: #fff; - text-decoration: underline; - font-weight: 600; -} -.ajax-load-more .call-out a:not(.cnkt-button):not(.button):hover, .ajax-load-more .call-out a:not(.cnkt-button):not(.button):focus { - text-decoration: none; -} -.ajax-load-more .call-out .button, -.ajax-load-more .call-out .cnkt-button { - margin-left: auto; -} -.ajax-load-more .call-out .cnkt-button { - font-weight: 500; - font-size: 13px; - display: block; - flex: 1; - padding: 7px 14px; - background: #77498e; - color: #fff; - border: none; -} -.ajax-load-more .call-out .cnkt-button:hover, .ajax-load-more .call-out .cnkt-button:focus { - background: #5a366c; - color: #fff; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); -} - -a.cnkt-button, -span.cnkt-button { - padding: 6px 10px; - display: inline-flex; - align-items: center; - background: #bb8dd2; - border: none; - border-radius: 3px; - position: static; - text-decoration: none; - color: #fff; - font-size: 14px; - font-weight: 500; - transition: all 0.15s ease; - white-space: nowrap; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -} -a.cnkt-button i, -span.cnkt-button i { - margin-right: 2px; -} - -a.cnkt-button:hover, -.group:hover span.cnkt-button { - background-color: #a272bc; - color: #fff; -} - -a.cnkt-button:focus, -.group:focus span.cnkt-button { - background-color: #83519d; - color: #fff; - outline: none; -} - -a.cnkt-button.installed, -span.cnkt-button.installed, -.group span.cnkt-button.installed { - background: #f7f7f7 !important; - color: #888 !important; - box-shadow: none !important; -} - -.ajax-load-more .cnkt-sidebar .cta { - background: #fff; - padding: 0; - margin: 20px 0 0; - overflow: visible; - position: relative; - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.035); - border: 1px solid #e7e7e7; - border-radius: 8px; -} -.ajax-load-more .cnkt-sidebar .cta:first-of-type { - margin-top: 0; -} -.ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) { - padding-top: 15px; - margin-top: 15px; - border-top: 1px solid #efefef; -} -.ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) input { - font-size: 11px; - font-family: Consolas, monaco, monospace; - width: 100%; -} - -.ajax-load-more .cnkt-sidebar .cta-inner { - padding: 15px; - display: block; -} -.ajax-load-more .cnkt-sidebar .cta-inner .cta-inner { - background-color: #f7f7f7; - border-radius: 3px; - border: 1px solid #e7e7e7; -} - -.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom { - padding-bottom: 80px; -} - -.ajax-load-more .cnkt-sidebar .cta.padding-bottom { - padding-bottom: 50px; -} - -.ajax-load-more .cnkt-sidebar h3, -.ajax-load-more .cnkt-sidebar h4 { - margin-top: 0; -} - -.ajax-load-more .cnkt-sidebar h3 { - padding: 15px 0; - margin: 0; - display: block; - font-size: 15px; - text-transform: none; - border-bottom: 1px solid #efefef; - margin: 0 15px; - font-weight: 500; -} - -.ajax-load-more .cnkt-sidebar .item { - overflow: hidden; -} - -.ajax-load-more .cnkt-sidebar .item h4 { - margin: 0 0 5px; - font-size: 0.9em; - text-transform: uppercase; - opacity: 0.5; -} - -.ajax-load-more .cnkt-sidebar h4 { - margin-bottom: 5px; -} - -.ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner { - overflow: hidden; - display: flex; - gap: 10px; -} -@media screen and (min-width: 900px) and (max-width: 1300px) { - .ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner { - display: block; - } - .ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner .img, - .ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner .text { - width: 100%; - margin: 5px 0; - } -} -.ajax-load-more .cnkt-sidebar .cta.dyk .img { - width: 40%; -} -.ajax-load-more .cnkt-sidebar .cta.dyk .text { - width: 60%; -} -.ajax-load-more .cnkt-sidebar .cta.dyk p { - margin: 0 0 15px; - clear: none; -} -.ajax-load-more .cnkt-sidebar .cta.dyk p:last-child { - margin: 0; -} - -.ajax-load-more .cnkt-sidebar ul { - padding: 5px 0 0; - margin: 0; - overflow: hidden; -} - -.ajax-load-more .cnkt-sidebar li { - margin: 0 0 10px; - line-height: 1.5; -} - -.ajax-load-more .cnkt-sidebar .cta.resources li { - display: block; - width: 100%; - line-height: 1; - margin: 1px 0; -} - -.ajax-load-more .cnkt-sidebar .cta.resources li a { - text-decoration: none; - padding: 10px 0; - display: block; - border-top: 1px solid #efefef; -} - -.ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a { - border: none; - padding-top: 0; -} - -.ajax-load-more .cnkt-sidebar .cta.resources li i { - display: inline-block; - width: 24px; - text-align: center; - color: #ccc; - text-decoration: none; - font-size: 14px; -} - -.ajax-load-more .cnkt-sidebar a.visit { - background: #ed7070; - padding: 17px 20px 18px 44px; - position: absolute; - bottom: 0; - left: 0; - width: 100%; - display: block; - color: #fff !important; - z-index: 2; - text-decoration: none; - line-height: 1; - border-radius: 0 0 2px 2px; -} - -.ajax-load-more .cnkt-sidebar a.visit i { - font-size: 21px; - opacity: 0.6; - margin: 0 5px 0 0; - position: absolute; - top: 13px; - left: 18px; - display: inline-block; -} - -.ajax-load-more .cnkt-sidebar a.visit:hover, -.ajax-load-more .cnkt-sidebar a.visit:focus { - background: #f06060; -} - -.ajax-load-more .cnkt-sidebar a.visit:hover i { - opacity: 1; -} - -.ajax-load-more .cnkt-sidebar .project-listing { - padding: 0; -} -.ajax-load-more .cnkt-sidebar .project-listing li { - margin: 15px 0 0; - padding: 0; - position: relative; - clear: both; -} -.ajax-load-more .cnkt-sidebar .project-listing li:first-of-type { - margin-top: 0; -} -.ajax-load-more .cnkt-sidebar .project-listing li a { - display: flex; - width: 100%; - gap: 10px; - position: static; - text-decoration: none; -} -.ajax-load-more .cnkt-sidebar .project-listing li a:hover h4, .ajax-load-more .cnkt-sidebar .project-listing li a:focus h4 { - text-decoration: underline; -} -.ajax-load-more .cnkt-sidebar .project-listing li h4 { - display: block; - margin: -3px 0 8px; - font-size: 14px; -} -.ajax-load-more .cnkt-sidebar .project-listing li img { - height: 48px; - width: 48px; -} - -.alm-status { - display: flex; - margin: 0 0 15px; - cursor: default; -} -.alm-status span { - background-color: #f7f7f7; - padding: 0 10px 0 0; - line-height: 1; - border-radius: 3px; - overflow: hidden; - display: flex; - align-items: center; - font-weight: 500; - text-transform: uppercase; - font-size: 11px; -} -.alm-status span i { - padding: 10px 12px; - margin: 0 10px 0 0; - text-align: center; -} -.alm-status.success span i { - background-color: #8ed074; - color: #fff; -} -.alm-status.failed span i { - background-color: #d63638; - color: #fff; -} - -.shortcode-builder hr { - margin: 0; -} - -#unlmited-container { - margin: 0; - display: block; - overflow: visible; -} - -.ajax-load-more .row.template.unlimited:first-of-type { - margin-top: 10px; -} - -.repeaters .row, -.shortcode-builder .row { - transition: background-color 0.3s ease; -} - -.repeaters .row.no-brd:hover, -.shortcode-builder .row.no-brd:hover { - box-shadow: none; - border-color: transparent; -} - -.unlimited-wrap { - display: none; -} - -.ajax-load-more .row.unlimited.deleting { - /* Deleting Row */ - background: #fff url(../admin/img/ui/loader-unlimited.gif) no-repeat center center; - border-color: #fff; - opacity: 0.4; -} - -.ajax-load-more .row.unlimited.deleting.deleted { - /* Deleting Row */ - background-image: none !important; -} - -.ajax-load-more .row.unlimited.new { - /* New Row */ - background: url(../admin/img/ui/loader-unlimited.gif) no-repeat center center; - border-color: #efefef !important; - min-height: 60px; - display: none; -} - -.ajax-load-more .row.unlimited.new.done { - background-image: none !important; -} - -.ajax-load-more .row.unlimited.loaded { - /* Loading complete */ - background-color: #64e49d; - border-color: #64e49d; -} - -.ajax-load-more .row.unlimited.deleting .expand-wrap, -.row.unlimited.deleting h3.heading { - opacity: 0.6; -} - -.row.unlimited.deleting .alm-delete { - display: none; -} - -.row.unlimited.deleting .save-repeater { - opacity: 0; - cursor: default; -} - -.ajax-load-more .row.unlimited input[type=text] { - width: 100%; -} - -.ajax-load-more .alm-add-template { - text-align: center; - margin: 20px 0 5px !important; - display: block; - font-size: 14px; - font-weight: 500; - text-transform: none !important; - text-align: center; -} -.ajax-load-more .alm-add-template a { - background: #f7f7f7; - border: 1px solid #e7e7e7; - color: #393d41; - display: inline-block; - padding: 15px; - line-height: 1; - border-radius: 3px; - text-decoration: none; - transition: all 0.15s ease; -} -.ajax-load-more .alm-add-template a i { - color: #d63638; - margin: 0 4px 0 0; - position: relative; - left: -1px; - font-size: 16px; -} -.ajax-load-more .alm-add-template a:hover, .ajax-load-more .alm-add-template a:focus { - background: #d63638; - border-color: #d63638; - color: #fff; - text-shadow: none; - color: #fff; -} -.ajax-load-more .alm-add-template a:hover i, .ajax-load-more .alm-add-template a:focus i { - color: #fff; - opacity: 0.65; -} -.ajax-load-more .alm-add-template a.active { - opacity: 0.5; - cursor: default; - color: #333 !important; - background: #efefef !important; - border-color: #efefef !important; -} -.ajax-load-more .alm-add-template a.active i { - color: #393d41; -} - -.spacer { - height: 10px; - clear: both; - display: block; -} -.spacer.lg { - height: 20px; -} - -.alm-text-center { - text-align: center; -} - -.ajax-load-more p.generate-id { - margin: 10px 0 0 !important; - padding: 0 0 0 5px; - font-size: 12px !important; -} -.ajax-load-more p.generate-id i { - margin: 0 2px 0 0; - color: #999; -} -.ajax-load-more p.generate-id a { - text-decoration: none; -} - -.ajax-load-more .alm-dir-listing ul { - padding: 0; - margin: 0; - display: flex; - width: 100%; - flex-wrap: wrap; -} -.ajax-load-more .alm-dir-listing ul li { - margin: 0; - padding: 10px 5px 5px 55px; - background: transparent url(../admin/img/ui/directory-list.gif) no-repeat left 46%; - position: relative; - display: block; - width: 50%; -} -.ajax-load-more .alm-dir-listing ul li.full { - width: 100%; -} -.ajax-load-more .alm-dir-listing ul li:last-child, .ajax-load-more .alm-dir-listing ul li:nth-last-child(2) { - background-image: url(../admin/img/ui/directory-list-btm.gif); -} -.ajax-load-more .alm-dir-listing ul li a { - text-decoration: none; - display: block; - word-break: break-all; -} -.ajax-load-more .alm-dir-listing ul li i { - width: 15px; - color: #999; - position: absolute; - left: 35px; - top: 12px; -} -.ajax-load-more .alm-dir-listing p.theme-title { - font-weight: 600; - margin: 0 0 20px !important; - padding: 0; -} -.ajax-load-more .alm-dir-listing.theme-repeaters ul li { - display: block; - width: 100%; - padding-top: 10px; - padding: 0 0 0 36px; - background-position: left 54%; -} -.ajax-load-more .alm-dir-listing.theme-repeaters ul li label { - display: block; - width: 100%; -} -.ajax-load-more .alm-dir-listing.theme-repeaters ul li label i { - display: none; -} -.ajax-load-more .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) { - background: transparent url(../admin/img/ui/directory-list.gif) no-repeat left center; -} - -.alm-error { - position: absolute; - z-index: 9999; - background: #fff; - padding: 10px; -} - -.ajax-load-more .alm-styled-input { - display: flex; - width: 100%; - flex-wrap: nowrap; - align-items: center; - border-radius: 3px; - border: 1px solid #e7e7e7; -} -.ajax-load-more .alm-styled-input label { - padding: 10px; - font-size: 12px; - font-weight: 700; - border-right: 1px solid #e7e7e7; -} -.ajax-load-more .alm-styled-input input { - border: none; - border-radius: 0 2px 2px 0; - margin: 0; - width: 100%; -} - -.shortcode-builder input[type=checkbox], -.shortcode-builder input[type=radio], -.ajax-load-more .form-table input[type=checkbox], -.ajax-load-more .form-table input[type=radio] { - width: 0; - height: 0; - opacity: 0; - position: absolute; -} - -.shortcode-builder input[type=checkbox] + label, -.ajax-load-more .form-table input[type=checkbox] + label, -.shortcode-builder input[type=radio] + label, -.ajax-load-more .form-table input[type=radio] + label { - background: transparent url(../admin/img/ui/bkg-chkbox_off.png) no-repeat left 2px; - height: auto; - min-height: 23px; - width: 100%; - display: inline-block; - padding: 0.1em 0 0 30px; - margin: 0 0 5px; - font-size: 14px; - line-height: 1.5; - cursor: pointer !important; -} -.shortcode-builder input[type=checkbox] + label span, -.ajax-load-more .form-table input[type=checkbox] + label span, -.shortcode-builder input[type=radio] + label span, -.ajax-load-more .form-table input[type=radio] + label span { - display: inline-block; - color: #6a7178; - line-height: 1.65; -} - -.shortcode-builder input[type=radio] + label, -.ajax-load-more .form-table input[type=radio] + label { - background: transparent url(../admin/img/ui/bkg-radio_off.png) no-repeat left 2px; -} - -.shortcode-builder input[type=checkbox]:hover + label, -.ajax-load-more .form-table input[type=checkbox]:hover + label, -.shortcode-builder input[type=checkbox]:focus + label, -.ajax-load-more .form-table input[type=checkbox]:focus + label { - /* hover/focus */ - background-image: url(../admin/img/ui/bkg-chkbox_on.png); -} - -.shortcode-builder input[type=radio]:hover + label, -.ajax-load-more .form-table input[type=radio]:hover + label, -.shortcode-builder input[type=radio]:focus + label, -.ajax-load-more .form-table input[type=radio]:focus + label { - /* hover/focus */ - background-image: url(../admin/img/ui/bkg-radio_on.png); -} - -.shortcode-builder input[type=checkbox]:checked + label, -.ajax-load-more .form-table input[type=checkbox]:checked + label { - /* selected */ - background-image: url(../admin/img/ui/bkg-chkbox_selected.png); -} - -.shortcode-builder input[type=radio]:checked + label, -.ajax-load-more .form-table input[type=radio]:checked + label { - /* selected */ - background-image: url(../admin/img/ui/bkg-radio_selected.png); -} - -.shortcode-builder input[type=checkbox] + label:hover, -.ajax-load-more .form-table input[type=checkbox] + label:hover, -.shortcode-builder input[type=radio] + label:hover, -.ajax-load-more .form-table input[type=radio] + label:hover { - color: #000; -} - -/* -* Shortcode Builder -* -* @since 2.13.0 -*/ -#alm-shortcode-builder-form { - position: relative; -} - -.progress_bar_color_indicator { - position: absolute; - left: 11px; - top: 9px; - width: 0; - height: 0; - padding: 11px; - border-radius: 2px; - z-index: 1; - display: block; - background-color: #ed7070; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); -} - -/* - * Repeater Template options dropdown - * @since 2.4.1 - */ -.ajax-load-more .row.template { - position: relative; -} -.ajax-load-more .row.template:first-of-type { - margin-top: 0; -} - -.ajax-load-more .row.template:hover .alm-repeater-options { - opacity: 1; -} - -.alm-drop-btn.alm-repeater-options { - position: absolute; - top: -42px; - right: 7px; - z-index: 8; -} -.alm-drop-btn.alm-repeater-options a.target { - padding: 5px 9px; - box-shadow: none; - border: none; -} -.alm-drop-btn.alm-repeater-options a.target > i { - font-size: 24px; - position: static; - transform: none; - margin: 0; -} - -.alm-drop-btn.active a.target { - background-color: #fff; -} -.alm-drop-btn.active a.target > i { - color: #393d41; -} -.alm-drop-btn a.target { - position: relative; - color: #393d41; - text-decoration: none !important; - padding: 9px 12px; - border: 1px solid #e7e7e7; - border-radius: 3px; - background-color: #f7f7f7; - line-height: 1; - display: flex; - align-items: center; - box-shadow: 0 0 0 1px #fff; -} -.alm-drop-btn a.target > i { - color: #6a7178; - font-size: 16px; - margin-right: 8px; - opacity: 0.5; -} -.alm-drop-btn a.target:hover, .alm-drop-btn a.target:focus { - border-color: #ccc; -} -.alm-drop-btn a.target:hover > i, .alm-drop-btn a.target:focus > i { - color: #393d41; -} - -/* Active / Hover state */ -.alm-repeater-options a.target:active, -.alm-repeater-options.active a.target, -.alm-repeater-options a.target:hover, -.alm-repeater-options a.target:focus { - background-color: transparent; - color: #393d41; - border-color: transparent; - box-shadow: none; - opacity: 1; -} - -.alm-repeater-options.active a.target, -.alm-repeater-options.active a.target i.fa-cog { - color: #393d41; -} - -/* Layout Dropdown */ -.ajax-load-more .alm-drop-btn.alm-layout-selection { - float: left; - margin: -15px 0 15px; -} -@media screen and (min-width: 900px) { - .ajax-load-more .alm-drop-btn.alm-layout-selection { - float: right; - margin: 0; - } -} -@media screen and (max-width: 480px) { - .ajax-load-more .alm-drop-btn.alm-layout-selection .alm-dropdown { - right: auto; - left: 0; - float: none; - } - .ajax-load-more .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner { - width: 240px; - } -} -.ajax-load-more .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner { - width: 280px; -} -.ajax-load-more .alm-drop-btn .alm-dropdown:hover { - visibility: visible; - opacity: 1; -} - -@media screen and (max-width: 480px) { - .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after, - .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before { - right: auto; - left: 36px; - } - .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after { - margin-left: 0; - } - .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before { - right: auto; - left: 35px; - } -} -.alm-drop-btn { - position: relative; - width: auto; -} -.alm-drop-btn .alm-dropdown { - visibility: hidden; - opacity: 0; - position: absolute; - top: 109%; - right: -15px; - z-index: 9; - transition: all 0.15s ease; -} -.alm-drop-btn .alm-dropdown .alm-drop-inner { - display: block; - position: relative; - background: #fff; - border-radius: 3px; - border: 1px solid #e7e7e7; - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05); - padding: 10px; - width: 240px; -} -.alm-drop-btn .alm-dropdown .alm-drop-inner::after, .alm-drop-btn .alm-dropdown .alm-drop-inner::before { - bottom: 100%; - right: 26px; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; -} -.alm-drop-btn .alm-dropdown .alm-drop-inner::after { - border-color: rgba(247, 247, 247, 0); - border-bottom-color: #fff; - border-width: 7px; - margin-left: -7px; -} -.alm-drop-btn .alm-dropdown .alm-drop-inner::before { - border-color: rgba(204, 204, 204, 0); - border-bottom-color: #ccc; - border-width: 8px; - right: 25px; -} -.alm-drop-btn .alm-dropdown.active { - opacity: 1; - visibility: visible; - transition: none; -} -.alm-drop-btn .alm-dropdown ul { - padding: 5px 10px; - margin: 0; - overflow: hidden; - border: 1px solid #e7e7e7; - background-color: #f7f7f7; - border-radius: 3px; - overflow: hidden; -} -.alm-drop-btn .alm-dropdown li { - margin: 0; - padding: 0; - list-style: none; - clear: both; - line-height: 1.2; - font-weight: 400; - border-bottom: 1px solid #e7e7e7; -} -.alm-drop-btn .alm-dropdown li:last-of-type { - border: none; -} -.alm-drop-btn .alm-dropdown li button { - background-color: transparent; - border: none; - color: #393d41; - display: flex; - align-items: center; - width: 100%; - padding: 10px 10px 10px 3px; - line-height: 1; - cursor: pointer; -} -.alm-drop-btn .alm-dropdown li button > i { - margin-right: 8px; - opacity: 0.65; - font-size: 14px; - color: #6a7178; -} -.alm-drop-btn .alm-dropdown li button:hover, .alm-drop-btn .alm-dropdown li button:focus { - color: #252627; -} -.alm-drop-btn .alm-dropdown li button:hover i, .alm-drop-btn .alm-dropdown li button:focus i { - opacity: 1; - color: #6a7178; -} -.alm-drop-btn .alm-dropdown li button.updating { - background: transparent url(../admin/img/ui/loader.gif) no-repeat left center; - cursor: wait; -} -.alm-drop-btn .alm-dropdown li button.updating i { - opacity: 0; -} -.alm-drop-btn .alm-dropdown li button.updating span { - color: rgba(106, 113, 120, 0.75); -} -.alm-drop-btn .alm-dropdown .drop-cta { - padding: 10px 0 0; -} - -.select-theme-repeater { - display: flex; - width: 100%; - flex-wrap: nowrap; - position: relative; -} -.select-theme-repeater .or { - position: absolute; - left: 70px; - top: -20px; - background: #fff; - color: #333; - width: 34px; - height: 34px; - line-height: 34px; - text-align: center; - z-index: 1; - font-weight: 700; - border-radius: 100%; - text-transform: uppercase; - border: 1px solid #e7e7e7; - font-size: 11px; -} - -.alm-template-section-nav { - display: block; - margin: 0 0; - padding: 0; -} - -.alm-template-section-nav li { - display: inline-block; - vertical-align: top; -} - -.alm-template-section-nav li a { - padding: 5px; - display: block; -} - -.alm-template-section-nav li.active a { - background: #ff0000; -} - -@media screen and (max-width: 1270px) { - .ajax-load-more input[type=text], - .ajax-load-more input[type=number], - .select2-container, - .shortcode-builder--items .select2-container-multi, - .ajax-load-more textarea { - width: 95%; - } - .shortcode-builder--items .select2-container-multi { - width: 95% !important; - } -} -@media screen and (max-width: 900px) { - .table-of-contents { - position: static !important; - width: 100% !important; - } - .ajax-load-more.settings .form-table td { - padding: 24px 20px 20px; - } - .repeaters input.save-repeater { - max-width: 50%; - } -} -@media screen and (max-width: 782px) { - .ajax-load-more.settings .form-table th { - border: none; - border-bottom: 1px solid #efefef; - width: 100%; - } - .share-alm .sharing { - padding-right: 0; - width: 100%; - margin-right: 0 !important; - } - .share-alm .mailing { - width: 100%; - margin-left: 0 !important; - padding-left: 0; - padding-top: 40px; - border-left: none; - } -} -@media screen and (max-width: 480px) { - .ajax-load-more .section-title, - .ajax-load-more .row .wrap { - clear: both; - width: 100%; - display: block; - float: none; - padding: 10px; - } - .ajax-load-more .section-title { - padding: 20px 20px 10px; - } - .ajax-load-more .row .wrap { - padding: 10px 20px; - } - .ajax-load-more textarea, - .ajax-load-more input[type=text], - .ajax-load-more input[type=number], - .select2-container, - .shortcode-builder--items .select2-container-multi { - width: 100% !important; - } - .ajax-load-more .row .wrap .inner.half { - display: block; - padding: 0 0 20px; - width: 100%; - } - .ajax-load-more .section-title p { - color: #999; - padding: 0 !important; - } - #alm-add-ons .row .wrap { - padding-bottom: 60px; - width: 100%; - } - #alm-add-ons .section-title { - width: 100%; - } - .alm-repeater-options { - display: none !important; - } - .ajax-load-more .wrap-30 { - width: 100%; - display: block; - padding: 0 0 10px; - } - .ajax-load-more .row .wrap.full { - padding: 10px; - } - #alm-add-ons .group { - width: 100%; - display: block; - margin: 0 0 2% 0; - } - .ajax-load-more .one_half { - width: 100%; - margin: 0 0 2%; - display: block; - } - .add-layout-cta { - padding: 10px; - } - span.dismiss { - position: static; - padding-top: 20px; - display: block; - font-size: 12px; - } -} +@import url(//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);.tooltipster-default{background:#0073aa;background:rgba(33,149,204,.95);border:none;border-radius:3px;color:#e7f3f8}.tooltipster-default .tooltipster-content{font-size:12px;line-height:20px;overflow:hidden;padding:12px 16px;text-align:center}.tooltipster-icon{cursor:help;margin-left:4px}.tooltipster-base{font-size:0;left:0;line-height:0;overflow:visible;padding:0;pointer-events:none;position:absolute;top:0;width:auto;z-index:9999999}.tooltipster-base .tooltipster-content{overflow:hidden}.tooltipster-arrow{display:block;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:-1}.tooltipster-arrow span,.tooltipster-arrow-border{display:block;height:0;position:absolute;width:0}.tooltipster-arrow-top span,.tooltipster-arrow-top-left span,.tooltipster-arrow-top-right span{border-left:8px solid rgba(0,0,0,0)!important;border-right:8px solid rgba(0,0,0,0)!important;border-top:8px solid;bottom:-7px}.tooltipster-arrow-top .tooltipster-arrow-border,.tooltipster-arrow-top-left .tooltipster-arrow-border,.tooltipster-arrow-top-right .tooltipster-arrow-border{border-left:9px solid rgba(0,0,0,0)!important;border-right:9px solid rgba(0,0,0,0)!important;border-top:9px solid;bottom:-7px}.tooltipster-arrow-bottom span,.tooltipster-arrow-bottom-left span,.tooltipster-arrow-bottom-right span{border-bottom:8px solid;border-left:8px solid rgba(0,0,0,0)!important;border-right:8px solid rgba(0,0,0,0)!important;top:-7px}.tooltipster-arrow-bottom .tooltipster-arrow-border,.tooltipster-arrow-bottom-left .tooltipster-arrow-border,.tooltipster-arrow-bottom-right .tooltipster-arrow-border{border-bottom:9px solid;border-left:9px solid rgba(0,0,0,0)!important;border-right:9px solid rgba(0,0,0,0)!important;top:-7px}.tooltipster-arrow-bottom .tooltipster-arrow-border,.tooltipster-arrow-bottom span,.tooltipster-arrow-top .tooltipster-arrow-border,.tooltipster-arrow-top span{left:0;margin:0 auto;right:0}.tooltipster-arrow-bottom-left span,.tooltipster-arrow-top-left span{left:6px}.tooltipster-arrow-bottom-left .tooltipster-arrow-border,.tooltipster-arrow-top-left .tooltipster-arrow-border{left:5px}.tooltipster-arrow-bottom-right span,.tooltipster-arrow-top-right span{right:6px}.tooltipster-arrow-bottom-right .tooltipster-arrow-border,.tooltipster-arrow-top-right .tooltipster-arrow-border{right:5px}.tooltipster-arrow-left .tooltipster-arrow-border,.tooltipster-arrow-left span{border-bottom:8px solid rgba(0,0,0,0)!important;border-left:8px solid;border-top:8px solid rgba(0,0,0,0)!important;margin-top:-7px;right:-7px;top:50%}.tooltipster-arrow-left .tooltipster-arrow-border{border-bottom:9px solid rgba(0,0,0,0)!important;border-left:9px solid;border-top:9px solid rgba(0,0,0,0)!important;margin-top:-8px}.tooltipster-arrow-right .tooltipster-arrow-border,.tooltipster-arrow-right span{border-bottom:8px solid rgba(0,0,0,0)!important;border-right:8px solid;border-top:8px solid rgba(0,0,0,0)!important;left:-7px;margin-top:-7px;top:50%}.tooltipster-arrow-right .tooltipster-arrow-border{border-bottom:9px solid rgba(0,0,0,0)!important;border-right:9px solid;border-top:9px solid rgba(0,0,0,0)!important;margin-top:-8px}.tooltipster-fade{opacity:0;-webkit-transition-property:opacity;-moz-transition-property:opacity;-o-transition-property:opacity;-ms-transition-property:opacity;transition-property:opacity}.tooltipster-fade-show{opacity:1}.tooltipster-grow{backface-visibility:hidden;transform:scale(0);transition-property:transform}.tooltipster-grow-show{transform:scale(1);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-swing{opacity:0;transform:rotate(4deg);transition-property:transform}.tooltipster-swing-show{opacity:1;transform:rotate(0deg);transition-timing-function:cubic-bezier(.23,.635,.495,2.4)}.tooltipster-fall{top:0;-webkit-transition-property:top;-moz-transition-property:top;-o-transition-property:top;-ms-transition-property:top;transition-property:top;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-fall.tooltipster-dying{opacity:0;top:0!important;-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all}.tooltipster-slide{left:-40px;-webkit-transition-property:left;-moz-transition-property:left;-o-transition-property:left;-ms-transition-property:left;transition-property:left;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-slide.tooltipster-dying{left:0!important;opacity:0;-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all}.tooltipster-content-changing{opacity:.5;-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-o-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}.select2-container{zoom:1;display:inline-block;*display:inline;min-width:60%;position:relative;vertical-align:middle}.inner.half .select2-container{min-width:90%;width:90%}#alm-builder .select2-container li{padding-right:0}.select2-container a.select2-choice{-webkit-touch-callout:none;background:#fff;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;border:1px solid #e7e7e7;border-radius:3px;color:#393d41;display:block;font-size:13px;height:38px;line-height:37px;overflow:hidden;padding:0 0 0 10px;position:relative;text-decoration:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.select2-dropdown-open.select2-container-active .select2-choice{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.select2-container.select2-drop-above .select2-choice{background:#fff;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.select2-container .select2-choice span{color:#666;display:block;margin:0;overflow:hidden;padding-right:40px;text-overflow:ellipsis;white-space:nowrap;width:100%}.select2-container .select2-choice abbr:hover{background-position:right -11px;cursor:pointer}.select2-drop-mask{background-color:#fff;left:0;opacity:0;position:absolute;top:0;z-index:8}.select2-drop{background:#fff;border:1px solid #e7e7e7;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.1);color:#393d41;font-size:13px;margin-left:-1px;margin-top:2px;overflow:hidden;position:absolute;top:100%;width:100%;z-index:9}.select2-drop.select2-drop-above{margin-top:-2px}.select2-container .select2-choice div{display:block;height:100%;position:absolute;right:0;top:0;width:30px}.select2-container .select2-choice div b{background:#fff url(../admin/img/ui/bkg-select.png) no-repeat 50%;display:block;height:100%;width:100%}.select2-dropdown-open.select2-container-active div b{background-color:#fff;display:block;height:100%;width:100%}.select2-search{background-color:#fff;border-bottom:1px solid #f7f7f7;display:block;padding:5px}.select2-search .select2-input{background:#fff url(../admin/img/ui/icon-search.png) no-repeat right 7px center;background-size:16px 16px;box-shadow:none!important;height:35px!important;line-height:35px!important;width:99%}#alm-builder .select2-choices li{margin:0 0 2px}#alm-builder .select2-container-multi{width:60%}#alm-builder .select2-results li{width:100%}#alm-builder .select2-container-multi .select2-input{cursor:pointer;margin:0!important}#alm-builder ul.select2-choices{overflow:hidden;width:100%}#alm-builder ul.select2-choices li.select2-search-field,#alm-builder ul.select2-choices li.select2-search-field input{display:block;width:100%!important}#alm-builder ul.select2-choices li.select2-search-choice{background:#fff;border:1px solid #e7e7e7;border-radius:3px;display:inline-block;font-size:12px;line-height:13px;margin:0 5px 5px 0;padding:5px 10px 5px 27px;position:relative;width:auto}#alm-builder ul.select2-choices .select2-input{background:#fff url(../admin/img/ui/bkg-select.png) no-repeat 100%}#alm-builder ul.select2-choices .select2-input.select2-focused{background:#fff url(../admin/img/ui/icon-search.png) no-repeat right 7px center;background-size:16px 16px}#alm-builder ul.select2-choices li.select2-search-choice a{background:#393d41 url(../admin/img/ui/ico-close.png) no-repeat 50%;border-radius:3px;display:block;height:17px;left:3px;position:absolute;top:3px;width:17px}#alm-builder ul.select2-choices li.select2-search-choice a:focus,#alm-builder ul.select2-choices li.select2-search-choice a:hover{background-color:#d63638}.select2-results{-webkit-tap-highlight-color:rgba(0,0,0,0);max-height:311px;overflow-x:hidden;overflow-y:auto;position:relative}.select2-result-sub,.select2-results{margin:0;padding:0}.select2-results li{background-image:none;border-top:1px solid #f7f7f7;color:#393d41;display:block;font-size:13px;list-style:none;margin:0!important;padding:0;width:auto}.select2-results li:first-of-type{border:none}.select2-results li.select2-result-with-children>.select2-result-label{border-bottom:1px solid #f7f7f7;cursor:default;font-size:13px;font-weight:700}.select2-results .select2-result-label{-webkit-touch-callout:none;cursor:pointer;margin:0;min-height:1em;padding:10px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select2-results .select2-highlighted .select2-result-label{background:#f7f7f7;color:#3d8ed0}.select2-results .select2-highlighted:active{background:#fff}.select2-results li em{background:#feffde;font-style:normal}.select2-results .select2-highlighted em{background:rgba(0,0,0,0)}.select2-results .select2-highlighted ul{background:#fff;color:#000}.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit{background:#f4f4f4;display:list-item}.select2-results .select2-no-results{font-size:13px;min-height:1em;padding:10px 7px}.select2-results .select2-disabled.select2-highlighted{background:#f4f4f4;color:#666;cursor:default;display:list-item}.select2-results .select2-disabled{background:#f4f4f4;cursor:default;display:list-item}.select2-results .select2-selected{display:none}.select2-more-results{background:#f4f4f4;display:list-item}.select2-container.select2-container-disabled .select2-choice{background-color:#f4f4f4;background-image:none;border:1px solid #ddd;cursor:default}.select2-container.select2-container-disabled .select2-choice div{background-color:#f4f4f4;background-image:none;border-left:0}.select2-container.select2-container-disabled .select2-choice abbr{display:none}.select2-offscreen{clip:rect(0 0 0 0);border:0;height:1px;left:0;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.alm-settings-feedback{background:#fff;border-left:5px solid #5cc583;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.15);color:#444;font-size:13px;height:auto;line-height:1;opacity:0;padding:25px 30px 25px 25px;position:fixed;right:10px;top:50px;transition:all .25s ease-in-out;visibility:hidden;width:auto;z-index:99999}.alm-settings-feedback.--saving{border-color:#e0bd5e}.alm-settings-feedback.--saved,.alm-settings-feedback.--saving{opacity:1;right:25px;top:50px;visibility:visible}.alm-settings-feedback.--saved i{color:#5cc583;opacity:1}.alm-settings-feedback.--error{border-color:#e03e3e;opacity:1;right:25px;top:25px;visibility:visible}.alm-settings-feedback i{margin:0 3px 0 0;opacity:.6}#alm_OptionsForm{position:relative}#alm_OptionsForm .save-in-progress{background:hsla(0,0%,100%,.65);height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .2s ease;visibility:hidden;width:100%;z-index:10}#alm_OptionsForm.--saving .save-in-progress{cursor:wait!important;opacity:1;visibility:visible}.ajax-load-more .alm-tabbed-wrapper{width:100%}@media screen and (min-width:640px){.ajax-load-more .alm-tabbed-wrapper{display:flex;flex-wrap:nowrap}}.ajax-load-more .alm-tabbed-wrapper h2{color:#393d41;display:block;font-weight:600;margin:0 0 15px;padding:20px 0 0}.ajax-load-more .alm-tabbed-wrapper--nav{background:#fff;border:1px solid #efefef;margin-bottom:20px;padding:10px}@media screen and (min-width:640px){.ajax-load-more .alm-tabbed-wrapper--nav{background-color:#f7f7f7;border:1px solid #efefef;border-radius:8px 8px 0 8px;border-right:none;margin:0;padding:0;position:relative;width:165px;z-index:1}}.ajax-load-more .alm-tabbed-wrapper--nav ul{margin:0;padding:0 0 35px}@media screen and (max-width:640px){.ajax-load-more .alm-tabbed-wrapper--nav ul{border:1px solid #efefef;padding:0}}.ajax-load-more .alm-tabbed-wrapper--nav ul li{list-style:none;margin:0;padding:0;width:100%!important}@media screen and (min-width:640px){.ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type{position:relative;top:-1px}.ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type button{border-radius:8px 0 0 0;border-top:1px solid #efefef}}@media screen and (max-width:640px){.ajax-load-more .alm-tabbed-wrapper--nav ul li:last-of-type button{border:none}}@media screen and (min-width:640px){.ajax-load-more .alm-tabbed-wrapper--nav ul.attached{position:fixed;top:70px;width:auto}.ajax-load-more .alm-tabbed-wrapper--nav ul.attached li:first-of-type button{border-radius:0}}.ajax-load-more .alm-tabbed-wrapper--nav button{background:none;background:#f7f7f7;border:none;border-bottom:1px solid #e7e7e7;color:#393d41;cursor:pointer;display:block;font-weight:400;line-height:1.4;overflow:hidden;padding:12px 10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.ajax-load-more .alm-tabbed-wrapper--nav button:focus,.ajax-load-more .alm-tabbed-wrapper--nav button:hover{background-color:#efefef}.ajax-load-more .alm-tabbed-wrapper--nav button i{opacity:.65;width:18px}.ajax-load-more .alm-tabbed-wrapper--nav button i.fa-handshake-o{left:-2px;position:relative}.ajax-load-more .alm-tabbed-wrapper--nav button.active{background-color:#fff;color:#d63638;cursor:default;font-weight:600}.ajax-load-more .alm-tabbed-wrapper--nav button.active i{color:#393d41}@media screen and (min-width:640px){.ajax-load-more .alm-tabbed-wrapper--nav button.active{width:calc(100% + 1px)}}.ajax-load-more .alm-tabbed-wrapper--sections{background:#fff;border:1px solid #efefef;display:block;flex:1;padding:0 20px 20px}@media screen and (min-width:640px){.ajax-load-more .alm-tabbed-wrapper--sections{border-radius:0 8px 8px 0}}.ajax-load-more .alm-tabbed-wrapper--section{display:none}.ajax-load-more .alm-tabbed-wrapper--section.active{display:block}.ajax-load-more .builder-option-toggle{display:flex;flex-wrap:nowrap}.ajax-load-more .builder-option-toggle input{border-radius:3px 0 0 3px;flex:1;margin:0;width:auto}.ajax-load-more .builder-option-toggle--buttons{background-color:#fcfcfc;border:1px solid #e7e7e7;border-left:none;border-radius:0 3px 3px 0;display:flex;padding:3px;width:auto}.ajax-load-more .builder-option-toggle--buttons button{background-color:rgba(0,0,0,0);border:1px solid #e7e7e7;border-left-width:0;border-radius:0;color:#393d41;cursor:pointer;display:inline-block;font-size:11px;font-weight:600;height:100%;margin:0;padding:0;text-align:center;text-transform:uppercase;width:34px}.ajax-load-more .builder-option-toggle--buttons button:focus,.ajax-load-more .builder-option-toggle--buttons button:hover{border-color:#ccc;color:#222}.ajax-load-more .builder-option-toggle--buttons button:first-child{border-left-width:1px;border-radius:3px 0 0 3px}.ajax-load-more .builder-option-toggle--buttons button:last-child{border-radius:0 3px 3px 0}.ajax-load-more .builder-option-toggle--buttons button.active{background-color:#838d99;border-color:#838d99;color:#fff;cursor:default}.alm-cache .group .row{overflow:visible}.alm-cache .row:first-of-type{margin-top:0!important}.alm-cache h3.heading{overflow:hidden;padding-right:90px!important;text-overflow:ellipsis;white-space:nowrap}.alm-cache .alm-cache-search-wrap{display:block;margin:0 0 15px;position:relative}.alm-cache .alm-cache-search-wrap input{background-color:#f7f7f7;border-radius:3px;display:block;font-size:15px;margin:0!important;padding:13px 20px;width:100%!important}.alm-cache .alm-cache-search-wrap i{color:#ccc;font-size:16px;position:absolute;right:15px;top:50%;transform:translateY(-50%);z-index:1}.alm-cache .alm-cache-listing{position:relative}.alm-cache .alm-cache-listing .toggle-all{right:0;top:-45px}.alm-cache hr{border-bottom:none;border-top-color:#efefef;margin:32px 0 25px}.alm-cache .alm-dir-listing{border:1px solid #e7e7e7;border-radius:3px;margin:10px 0 0;overflow:hidden;padding:0}.alm-cache .alm-dir-listing--nested{padding:0 15px 15px}.alm-cache .alm-dir-listing--nested .alm-dir-listing{margin:0}.alm-cache .alm-dir-listing.deleting{background:#fff url(../admin/img/ui/loader-unlimited.gif) no-repeat 50%;opacity:.5}.alm-cache .alm-dir-listing .dir-title{margin:0 0 5px;position:relative}.alm-cache .alm-dir-listing h3.heading{padding-left:40px!important}.alm-cache .alm-dir-listing h3.heading:after{content:""}.alm-cache .alm-dir-listing h3.heading.open:after{content:""}.alm-cache .alm-dir-listing .dir-title .delete{border:1px solid #e7e7e7;border-radius:3px;color:#ccc;font-size:13px;font-weight:400;padding:5px 12px;position:absolute;right:10px;text-decoration:none;top:10px}.alm-cache .alm-dir-listing:hover .dir-title .delete{background-color:#fff;border-color:#e7e7e7;color:#666}.alm-cache .alm-dir-listing:hover .dir-title .delete:focus,.alm-cache .alm-dir-listing:hover .dir-title .delete:hover{background-color:#c94141;border-color:#c94141;color:#fff}.alm-cache .cache-page-title{display:block;font-size:12px;font-weight:700;padding:0 7px 10px;text-transform:uppercase;width:100%}.alm-cache .cache-page-wrap{padding:5px 12px 20px}ß .alm-cache .cache-page-wrap ul{max-height:300px;overflow-y:auto;scroll-behavior:smooth}.alm-cache .cache-full-path{display:none}.alm-cache .cache-full-path-button{background:#fff;border:1px solid #efefef;border-radius:3px;color:#878787;cursor:pointer;font-size:13px;margin:0 2px 0 0;padding:2px 4px;text-align:left}.alm-cache .cache-full-path-button:focus,.alm-cache .cache-full-path-button:hover{border-color:#e7e7e7}.alm-cache .alm-dir-listing ul.cache-details{border:none;display:block;margin:0;padding:20px 15px 0}.alm-cache .alm-dir-listing ul.cache-details li{background:none!important;display:block;margin:0 0 10px;padding:0 10px 0 28px;position:relative;width:100%}.alm-cache .alm-dir-listing ul.cache-details li i{color:#999;font-size:16px;left:5px;position:absolute;top:1px}.alm-cache .alm-dir-listing ul.cache-details li a{word-break:break-word}.alm-cache p.cache-stats{display:block;line-height:37px;margin:0;min-height:38px;padding:0}.alm-cache p.cache-stats span{background:#a4a5e2;background:linear-gradient(180deg,#a4a5e2 0,#9ea0d9 50%,#8d8fce 51%,#a4a5e2);border:1px solid #8586be;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.15);color:#fff;display:inline-block;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#a4a5e2",endColorstr="#a4a5e2",GradientType=0);font-size:15px;font-weight:700;height:38px;line-height:36px;margin:0 9px 0 0;text-align:center;text-shadow:-1px -1px 0 rgba(0,0,0,.1);width:38px}.ajax-load-more .CodeMirror{background:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px;color:#999;font-size:13px;height:auto;line-height:1.5;padding:0}.ajax-load-more .CodeMirror.CodeMirror-focused{border-color:#3d8ed0;box-shadow:0 0 4px 1px rgba(61,142,208,.15)}.ajax-load-more .CodeMirror pre{padding:0 10px}.ajax-load-more .cm-readonly .CodeMirror{opacity:.75}.ajax-load-more .cm-readonly .CodeMirror pre{cursor:default!important}.CodeMirror-lines{padding:10px!important}.CodeMirror-linenumber{color:#ccc!important;line-height:1.25!important;padding:0 10px!important}.CodeMirror-linenumber.CodeMirror-gutter-elt{padding:0 20px 0 0!important}.ajax-load-more .sm-margin .CodeMirror{margin:0 0 10px}.ajax-load-more .cm-readonly p.warning-callout{margin:-10px 0 10px}.ajax-load-more .CodeMirror.loading{background:#f7f7f7 url(../admin/img/ui/loader-unlimited.gif) no-repeat 50%;opacity:.6}.ajax-load-more .cm-s-pastel-on-dark.CodeMirror{background:#333}.ajax-load-more .CodeMirror-gutters{background:#fff;border-radius:2px;border-right:1px solid #e7e7e7}.ajax-load-more .CodeMirror-scroll{overflow-x:auto;overflow-y:hidden}.ajax-load-more .cm-tag{color:#0a4b83!important}.ajax-load-more .cm-string{color:#c75050!important}.ajax-load-more .cm-attribute{color:teal!important}.ajax-load-more .cm-keyword{color:#ae5fb3!important}.ajax-load-more span.CodeMirror-matchingbracket{color:red!important}.ajax-load-more .CodeMirror span.cm-meta{color:#999}.ajax-load-more .CodeMirror span.cm-variable{color:#111;font-weight:500;padding:0 1px}.ajax-load-more .CodeMirror span.cm-number{color:#099!important}.ajax-load-more .alm-cta-upgrade{background-color:#fff;border:1px solid #e7e7e7;border-radius:8px;padding:5px}.ajax-load-more .alm-cta-upgrade a{border-radius:3px;overflow:hidden;text-align:center;text-decoration:none;width:100%}@media screen and (min-width:640px){.ajax-load-more .alm-cta-upgrade a{align-items:center;background:#f7f7f7;background:linear-gradient(90deg,hsla(0,0%,100%,.495) 50%,#f7f7f7);display:flex;flex-wrap:wrap;padding:20px;text-align:left}}.ajax-load-more .alm-cta-upgrade a:focus h2,.ajax-load-more .alm-cta-upgrade a:hover h2{text-decoration:underline}.ajax-load-more .alm-cta-upgrade a:focus .cnkt-button,.ajax-load-more .alm-cta-upgrade a:hover .cnkt-button{background-color:#a272bc}.ajax-load-more .alm-cta-upgrade a .img{display:flex;justify-content:center;width:100%}.ajax-load-more .alm-cta-upgrade a .img img{padding:15px}@media screen and (min-width:640px){.ajax-load-more .alm-cta-upgrade a .img{width:50%}.ajax-load-more .alm-cta-upgrade a .img img{padding:15px 0}}@media screen and (min-width:1270px){.ajax-load-more .alm-cta-upgrade a .img{width:45%}}.ajax-load-more .alm-cta-upgrade a .details{background-color:#f7f7f7;padding:20px 30px;width:100%}@media screen and (min-width:640px){.ajax-load-more .alm-cta-upgrade a .details{background-color:rgba(0,0,0,0);width:50%}}@media screen and (min-width:1270px){.ajax-load-more .alm-cta-upgrade a .details{width:55%}}@media screen and (min-width:640px)and (max-width:1270px){.ajax-load-more .alm-cta-upgrade a .details p.lg{display:none}}.ajax-load-more .alm-cta-upgrade a .details h2{font-size:20px}.ajax-load-more .alm-cta-upgrade a .cnkt-button{font-size:14px;margin-top:10px;padding:12px 24px;text-align:center}.ajax-load-more .alm-admin-toolbar{align-items:center;background-color:#c24243;display:flex;justify-content:space-between;padding:20px;width:100%}.ajax-load-more .alm-admin-toolbar--logo{align-items:center;color:#fff;display:flex;font-size:22px;font-weight:700;line-height:1;text-decoration:none}.ajax-load-more .alm-admin-toolbar--logo:focus,.ajax-load-more .alm-admin-toolbar--logo:hover{color:#fff;text-decoration:none}@media screen and (min-width:768px){.ajax-load-more .alm-admin-toolbar--logo{font-size:26px}}.ajax-load-more .alm-admin-toolbar--logo svg{height:42px;margin-right:10px;width:42px}.ajax-load-more .alm-admin-toolbar a.plugin-link{align-items:center;background-color:rgba(0,0,0,.2);border-radius:3px;color:hsla(0,0%,100%,.7);display:flex;font-size:13px;font-weight:400;margin:0 0 0 10px;padding:7px 9px 7px 8px;text-decoration:none;transition:all .15s ease;vertical-align:top}.ajax-load-more .alm-admin-toolbar a.plugin-link span{line-height:1}.ajax-load-more .alm-admin-toolbar a.plugin-link span.dashicons{font-size:16px;height:16px;margin-right:5px;width:16px}.ajax-load-more .alm-admin-toolbar a.plugin-link:focus,.ajax-load-more .alm-admin-toolbar a.plugin-link:hover{background-color:rgba(0,0,0,.4);color:hsla(0,0%,100%,.9)}.ajax-load-more .alm-admin-nav{background-color:#fff;border-bottom:1px solid #e7e7e7;box-shadow:0 1px 6px rgba(0,0,0,.025);margin-bottom:15px}@media screen and (min-width:782px){.ajax-load-more .alm-admin-nav{position:sticky;top:32px;z-index:9999}}.ajax-load-more .alm-admin-nav nav{align-items:center;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:8px 20px;width:100%}.ajax-load-more .alm-admin-nav nav a{border-radius:3px;color:#393d41;display:block;margin-right:5px;padding:9px 15px;position:relative;text-decoration:none;transition:all .15s ease;white-space:nowrap}.ajax-load-more .alm-admin-nav nav a.current,.ajax-load-more .alm-admin-nav nav a:focus,.ajax-load-more .alm-admin-nav nav a:hover{background-color:#f7f7f7;color:#2f2e2e}.ajax-load-more .alm-admin-nav nav a.current{font-weight:600}.ajax-load-more .alm-admin-h1-wrap{padding:0 20px}.ajax-load-more .alm-admin-h1-wrap h1{display:block!important;font-size:22px;font-weight:500;line-height:1.25;margin:5px 0;padding:0}.ajax-load-more .license{display:block;margin:0;overflow:hidden;padding:10px 0 0;position:relative}.ajax-load-more .license:first-of-type{padding:10px 0 0}.ajax-load-more .license .license-title{align-items:center;background-color:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px 3px 0 0;display:flex;padding:15px;position:relative;width:100%}.ajax-load-more .license .license-title .status{background:#d63638;border-radius:100%;box-shadow:0 0 6px rgba(0,0,0,.1);height:10px;margin-right:8px;width:10px}.ajax-load-more .license .license-title .status.valid{background-color:#8ed074}.ajax-load-more .license .license-title h3{font-size:15px;font-weight:600;line-height:1;margin:0;padding:0}.ajax-load-more .license .license-title .fa.tooltip{margin-left:auto;top:0}.ajax-load-more .license label{font-size:400;font-size:14px}.ajax-load-more .license .cnkt-button{padding:5px 7px!important;position:absolute;right:15px;top:9px}.ajax-load-more .license a.cnkt-button.installed{background-color:none!important;border-color:rgba(0,0,0,0)!important;box-shadow:none!important}.ajax-load-more .license .no-license{background-color:#ffffe5;border:1px solid #e7e7c6;border-radius:3px;display:block;margin:0 0 15px;padding:12px}.ajax-load-more .license .no-license h4{margin:0 0 3px}.ajax-load-more .license .no-license p{margin:5px 0 0;padding:0}.ajax-load-more .license .loading{background:hsla(0,0%,100%,.6) url(../admin/img/ui/loader.gif) no-repeat 50%;display:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:9}.ajax-load-more .license .license-btn.hide,.ajax-load-more .license .renew-btn.hide{display:none}.ajax-load-more .license .license-btn-wrap{align-items:center;display:flex;gap:6px;width:100%}.ajax-load-more .license .license-btn-wrap .msg{display:block;font-size:14px;line-height:24px;padding:15px 0 0;position:relative;top:4px}.ajax-load-more .license .license-btn-wrap .msg strong{display:block}.ajax-load-more .license .license-btn-wrap .msg em{font-style:normal;opacity:.7}.ajax-load-more .license .license-no-addons,.ajax-load-more .license .license-wrap{background-color:#fff;border:1px solid #e7e7e7;border-radius:0 0 3px 3px;border-top:none;display:block;overflow:hidden;padding:18px 15px}.ajax-load-more .license .license-wrap label{font-weight:600;top:-3px}.ajax-load-more .license .license-wrap input[type=password],.ajax-load-more .license .license-wrap input[type=text]{border-color:#e7e7e7;line-height:1;margin:0;min-height:0;padding:15px;width:100%!important}.ajax-load-more .license .license-wrap input[type=password][disabled],.ajax-load-more .license .license-wrap input[type=text][disabled]{color:#ccc;cursor:not-allowed}.ajax-load-more .license .license-wrap input[type=password]:focus,.ajax-load-more .license .license-wrap input[type=text]:focus{border-color:#ccc}.ajax-load-more .license .license-wrap .button-primary{margin-right:10px}.ajax-load-more .license .license-key-field{display:block;margin:0 0 15px;position:relative}.ajax-load-more .license .license-key-field .status{border-radius:3px;color:#fff;cursor:default;display:inline-block;font-size:12px;font-weight:400;line-height:1;padding:5px 8px;position:absolute;right:15px;top:50%;transform:translateY(-50%)}.ajax-load-more .license .license-key-field .status.active{background-color:#8ed074}.ajax-load-more .license .license-key-field .status.inactive{background-color:#d63638}.ajax-load-more .license .ajax-load-more .alm-nav{font-size:600;font-size:14px;margin:0!important;padding:5px 0}.ajax-load-more .license .ajax-load-more .alm-nav a{display:inline-block}.ajax-load-more .license .license-no-addons{background-color:#e0f5ff;border:1px solid #bad0da;border-radius:3px}.ajax-load-more .license .license-no-addons p{margin:0;padding:0}.alm-pro-listing{border-top:none;display:grid;gap:5px;grid-template-columns:repeat(1,1fr);padding:0;position:relative}@media screen and (min-width:640px){.alm-pro-listing{grid-template-columns:repeat(2,1fr)}}@media screen and (min-width:1300px){.alm-pro-listing{grid-template-columns:repeat(3,1fr)}}.alm-pro-listing.loading{pointer-events:none}.alm-pro-listing--header{color:#393d41;margin-bottom:20px;position:relative}@media screen and (min-width:900px){.alm-pro-listing--header{align-items:center;display:flex;gap:15px;justify-content:space-between}}.alm-pro-listing--header h2{margin:0 0 10px}@media screen and (min-width:900px){.alm-pro-listing--header p{margin:0!important}}.alm-pro-listing--header div.totals{font-size:13px;font-weight:400;opacity:.7;text-transform:none}.alm-pro-listing--header div.totals span{font-weight:600}.alm-pro-listing .item{display:flex;margin:0;width:100%}.alm-pro-listing .item.loading .loader{opacity:1;visibility:visible}.alm-pro-listing .item .state,.alm-pro-listing .item h2,.alm-pro-listing .item img,.alm-pro-listing .item p{transition:all .15s ease}.alm-pro-listing .item a{border:1px solid #e1e1e1;border-radius:2px;display:flex;padding:0 45px 0 0;position:relative;text-decoration:none!important;transition:all .15s ease}@media screen and (max-width:1100px){.alm-pro-listing .item a{padding:0 10px 20px}}.alm-pro-listing .item a:focus,.alm-pro-listing .item a:hover{border-color:#bbb}.alm-pro-listing .item a:focus h2,.alm-pro-listing .item a:hover h2{text-decoration:none}.alm-pro-listing .item--detail{align-items:flex-start;display:flex;min-height:110px;padding:20px;position:relative}@media screen and (max-width:1100px){.alm-pro-listing .item--detail{display:block;text-align:center}.alm-pro-listing .item--detail img{padding-bottom:20px}}.alm-pro-listing .item--detail div{padding:0}.alm-pro-listing .item--detail img{height:auto;margin-right:20px;width:100px}.alm-pro-listing .item--detail a,.alm-pro-listing .item--detail a:focus,.alm-pro-listing .item--detail a:focus h2,.alm-pro-listing .item--detail a:hover,.alm-pro-listing .item--detail a:hover h2{text-decoration:none}.alm-pro-listing .item--detail h2{font-size:16px;line-height:1;margin:0 0 7px;transition:all .15s ease}.alm-pro-listing .item--detail h2 span{font-size:12px;font-weight:400;left:3px;opacity:.4;position:relative;text-decoration:none!important;top:0}.alm-pro-listing .item--detail p{font-size:14px;margin:0;padding:0}.alm-pro-listing .item--detail p.link{font-size:13px;opacity:0;padding-top:2px;transition:opacity .15s ease}.alm-pro-listing .item--detail .highlight-addon{font-size:12px;margin:0;padding-top:15px}.alm-pro-listing .item--detail .highlight-addon span{background-color:#fff8d7;display:inline-block;font-weight:500;left:-5px;line-height:1;padding:5px;position:relative}.alm-pro-listing .item .loader,.alm-pro-listing .item .result{bottom:9px;opacity:0;position:absolute;right:9px;transition:all .25s ease;visibility:hidden;z-index:2}.alm-pro-listing .item .loader{background:hsla(0,0%,100%,.6) url(../admin/img/ui/loader.gif) no-repeat 50%;height:16px;width:16px}.alm-pro-listing .item .result{font-size:12px}.alm-pro-listing .item .result.in-view{opacity:.7;visibility:visible}.alm-pro-listing .item .result .type{background:#47bd79;border-radius:2px;color:#fff;display:none;display:inline-block;padding:3px 6px}.alm-pro-listing .item .result .type.inactive{background:#c54545;display:none}.alm-pro-listing .item .state{align-items:center;background:#57d48c;border-radius:3px;color:#fff;display:flex;font-size:12px;height:22px;justify-content:center;position:absolute;right:6px;text-decoration:none!important;top:6px;transition:all .15s ease;width:22px}.alm-pro-listing .item .state:before{content:"";display:block;font-family:FontAwesome}.alm-pro-listing .item.active a{border-color:#57d48c}.alm-pro-listing .item.active:hover .state{opacity:.9}.alm-pro-listing .item.inactive .state,.alm-pro-listing .item.inactive h2,.alm-pro-listing .item.inactive img,.alm-pro-listing .item.inactive p{opacity:.5}.alm-pro-listing .item.inactive .state{background:#e1e1e1}.alm-pro-listing .item.inactive .state:before{opacity:0}.alm-pro-listing .item.inactive:hover .state,.alm-pro-listing .item.inactive:hover h2,.alm-pro-listing .item.inactive:hover img,.alm-pro-listing .item.inactive:hover p{opacity:.8}.alm-pro-listing .item.inactive:hover .state{background:#ccc}.alm-pro-listing .item.inactive:hover .state:before{opacity:1}.select2-results .select2-result.alm-color .select2-result-label{position:relative}.select2-results .select2-result.alm-color .select2-result-label:after{border-radius:100%;content:"";display:block;height:10px;margin-top:-5px;position:absolute;right:20px;top:50%;width:10px;z-index:1}.select2-results .select2-result.alm-color.default .select2-result-label:after{background-color:#ed7070}.select2-results .select2-result.alm-color.white .select2-result-label:after{background-color:#fff;box-shadow:0 0 0 1px #ccc}.select2-results .select2-result.alm-color.light-grey .select2-result-label:after{background-color:#efefef;box-shadow:0 0 0 1px #ccc}.select2-results .select2-result.alm-color.blue .select2-result-label:after{background-color:#1b91ca}.select2-results .select2-result.alm-color.green .select2-result-label:after{background-color:#80ca7a}.select2-results .select2-result.alm-color.purple .select2-result-label:after{background-color:#b97eca}.select2-results .select2-result.alm-color.grey .select2-result-label:after{background-color:#a09e9e}.select2-results .select2-result.infinite .select2-result-label:after{display:none}.select2-results .select2-result.infinite .select2-result-label{background-position:93%;background-repeat:no-repeat;-webkit-background-size:20px 20px;-moz-background-size:20px 20px;background-size:20px 20px}.select2-results .select2-result.classic .select2-result-label{background-image:url(../frontend/img/spinner.gif)}.select2-results .select2-result.skype .select2-result-label{background-image:url(../frontend/img/spinner-skype.gif)}.select2-results .select2-result.ring .select2-result-label{background-image:url(../frontend/img/spinner-ring.gif)}.select2-results .select2-result.chasing-arrows .select2-result-label{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.select2-results .select2-result.fading-blocks .select2-result-label{background-image:url(../frontend/img/loader-fading-blocks.gif);-webkit-background-size:20px 16px;-moz-background-size:20px 16px;background-size:20px 16px}.select2-results .select2-result.fading-circles .select2-result-label{background-image:url(../frontend/img/loader-fading-circles.gif);background-position:95%;-webkit-background-size:30px 10px;-moz-background-size:30px 10px;background-size:30px 10px}.shortcode-builder a.group{border-radius:0 0 3px 3px}.shortcode-builder p.warning-callout:before{background:#efefef;content:"";display:block;height:1px;left:-18px;position:absolute;top:-10px;width:calc(100% + 36px);z-index:1}.shortcode-builder section{border-top:1px solid #efefef;display:flex;flex-wrap:nowrap;width:100%}.shortcode-builder section:focus-within h4,.shortcode-builder section:hover h4{text-decoration:underline}.shortcode-builder section.first{border-top:none}.shortcode-builder section.full{flex-wrap:wrap}.shortcode-builder section.full .shortcode-builder--fields,.shortcode-builder section.full .shortcode-builder--label{width:100%}.shortcode-builder section.full .shortcode-builder--label{border:none;border-bottom:1px solid #efefef}.shortcode-builder section input[type=email],.shortcode-builder section input[type=number],.shortcode-builder section input[type=text],.shortcode-builder section textarea{width:100%}.shortcode-builder section .select2-container{min-width:100%;width:100%}.shortcode-builder--fields,.shortcode-builder--label{padding:20px}.shortcode-builder--label{background-color:#fcfcfc;border-right:1px solid #efefef;padding-right:30px;width:35%}.shortcode-builder--label.full{width:100%}.shortcode-builder--label h4{font-size:14px;margin:0 0 15px}.shortcode-builder--label p{font-size:13px!important;line-height:18px!important}.shortcode-builder--label p small{display:block;font-size:12px!important;padding-top:10px}.shortcode-builder--label p:last-of-type{margin-bottom:0}.shortcode-builder--fields{flex:1;padding-top:22px}.shortcode-builder--fields input,.shortcode-builder--fields select,.shortcode-builder--fields textarea{width:100%}.shortcode-builder--fields section{border:none;margin-left:-2%;width:104%}.shortcode-builder--fields .half{padding:0 2%;width:50%}.shortcode-builder--fields .flex-grid{display:flex;flex-wrap:nowrap;justify-content:space-between;width:100%}.shortcode-builder--fields .flex-grid--three,.shortcode-builder--fields .flex-grid--two{width:100%}.shortcode-builder--fields .flex-grid--three>div,.shortcode-builder--fields .flex-grid--two>div{width:48%}.shortcode-builder--fields .flex-grid--three>div{width:31.333%}.shortcode-builder--fields ul{display:flex;flex-wrap:wrap;width:100%}.shortcode-builder--fields ul li{padding-right:10px;width:50%}.shortcode-builder--fields ul li label{margin-bottom:0!important}@media screen and (max-width:1000px){.shortcode-builder section{flex-wrap:wrap}.shortcode-builder--fields,.shortcode-builder--label{width:100%}.shortcode-builder--label{border-bottom:1px solid #efefef;border-right:none}}.shortcode-builder .flex-input{display:flex;flex-wrap:nowrap;width:100%}.shortcode-builder .flex-input input{border-radius:3px 0 0 3px;flex:1;margin:0}.shortcode-builder .flex-input span{align-items:center;border:1px solid #e1e1e1;border-left:none;border-radius:0 3px 3px 0;display:flex;font-size:11px;font-weight:600;margin:0;padding:0 15px;text-transform:uppercase}.shortcode-builder .nested-component{padding:0;position:relative}.shortcode-builder .nested-component:after,.shortcode-builder .nested-component:before{border:solid rgba(0,0,0,0);content:" ";height:0;left:35px;pointer-events:none;position:absolute;top:0;width:0;z-index:2}.shortcode-builder .nested-component:after{border-color:#fcfcfc hsla(0,0%,100%,0) hsla(0,0%,100%,0);border-width:10px;margin-left:-10px}.shortcode-builder .nested-component:before{border-color:#e7e7e7 hsla(0,0%,94%,0) hsla(0,0%,94%,0);border-width:11px;margin-left:-11px;z-index:1}.shortcode-builder .nested-component--inner{padding:0;position:relative}.shortcode-builder .nested-component--inner:after{clear:both;content:"";display:table}.shortcode-builder .nested-component .nested-component .shortcode-builder--label{border-left:6px solid #efefef}.shortcode-builder .section-intro{margin:0 0 10px}.shortcode-builder .section-anchor-nav{border-bottom:1px solid #e7e7e7;display:flex;flex-wrap:wrap;margin:0;padding:0 0 15px;width:100%}.shortcode-builder .section-anchor-nav li{font-size:12px;margin:0 10px 5px 0;padding:0}.shortcode-builder .section-anchor-nav a{display:block}.shortcode-builder .section-anchor-nav a:focus,.shortcode-builder .section-anchor-nav a:hover{text-decoration:none}.ajax-load-more .cnkt-sidebar{height:100%;padding:0 0 20px;width:100%}@media screen and (min-width:900px){.ajax-load-more .cnkt-sidebar{width:calc(30% - 20px)}.ajax-load-more .cnkt-sidebar[data-sticky]{position:sticky;top:135px}}.ajax-load-more .cnkt-sidebar .major-publishing-actions{background:#f7f7f7;border-radius:0 0 8px 8px;border-top:1px solid #e7e7e7;box-shadow:inset 0 2px 3px rgba(0,0,0,.025);clear:both;display:flex;flex-wrap:wrap;gap:10px;padding:15px;width:100%}.ajax-load-more .cnkt-sidebar .major-publishing-actions i{margin:0 2px 0 0;opacity:.4}.ajax-load-more .template-tags{background:#fff9ea;border-left:5px solid #dfd8c2;border-radius:3px;margin:20px 0 0;overflow:hidden;padding:15px}.ajax-load-more .template-tags h4,.ajax-load-more .template-tags li{font-size:13px;margin:0 0 8px;padding:0;text-decoration:none!important}.ajax-load-more .template-tags li{border-radius:3px;line-height:1.25;margin:5px 0!important;padding:0!important;width:100%!important}.ajax-load-more .template-tags ul{margin:0;padding:0}.ajax-load-more .template-tags pre{color:#888;display:inline-block;margin:0;min-width:120px;padding:0}.ajax-load-more .alm-toggle-switch{clear:both;display:flex;margin:0;overflow:hidden;padding:2px 15px 0;position:relative;top:1px;width:100%;z-index:9}.ajax-load-more .alm-toggle-switch li{background:none;list-style:none;margin:0 5px 0 0;padding:0}.ajax-load-more .alm-toggle-switch li a{align-items:center;background:#f7f7f7;border:1px solid #e7e7e7;border-radius:4px 4px 0 0;color:#393d41;display:flex;line-height:1;padding:15px 20px;text-decoration:none}.ajax-load-more .alm-toggle-switch li a:focus,.ajax-load-more .alm-toggle-switch li a:hover{background-color:#fff;color:#393d41}.ajax-load-more .alm-toggle-switch li a.active{background:#fff;border-bottom-color:#fff;color:#393d41;font-weight:600}.woocommerce-help--item{align-items:center;border-top:1px solid #efefef;display:flex;flex-wrap:nowrap;margin-top:20px;padding-top:20px;width:100%}.woocommerce-help--item div{flex:1;padding:20px 20px 20px 30px}@media screen and (max-width:600px){.woocommerce-help--item div{padding:20px 0}}.woocommerce-help--item .img{flex:none;padding:0;width:30%}@media screen and (max-width:600px){.woocommerce-help--item .img{display:none}}.woocommerce-help--item .img img{border:1px solid #efefef;border-radius:4px;padding:2px}body.ajax-load-more_page_ajax-load-more-add-ons,body.ajax-load-more_page_ajax-load-more-cache,body.ajax-load-more_page_ajax-load-more-extensions,body.ajax-load-more_page_ajax-load-more-filters,body.ajax-load-more_page_ajax-load-more-go-pro,body.ajax-load-more_page_ajax-load-more-help,body.ajax-load-more_page_ajax-load-more-licenses,body.ajax-load-more_page_ajax-load-more-pro,body.ajax-load-more_page_ajax-load-more-repeaters,body.ajax-load-more_page_ajax-load-more-shortcode-builder,body.ajax-load-more_page_ajax-load-more-woocommerce,body.toplevel_page_ajax-load-more{height:auto!important}body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,body.ajax-load-more_page_ajax-load-more-cache #wpcontent,body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,body.ajax-load-more_page_ajax-load-more-filters #wpcontent,body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,body.ajax-load-more_page_ajax-load-more-help #wpcontent,body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,body.ajax-load-more_page_ajax-load-more-pro #wpcontent,body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent,body.toplevel_page_ajax-load-more #wpcontent{padding-bottom:20px;padding-left:0}body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,body.ajax-load-more_page_ajax-load-more-help #wpbody-content,body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content,body.toplevel_page_ajax-load-more #wpbody-content{padding-bottom:0}body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter,body.ajax-load-more_page_ajax-load-more-cache #wpfooter,body.ajax-load-more_page_ajax-load-more-extensions #wpfooter,body.ajax-load-more_page_ajax-load-more-filters #wpfooter,body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter,body.ajax-load-more_page_ajax-load-more-help #wpfooter,body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,body.ajax-load-more_page_ajax-load-more-pro #wpfooter,body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter,body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter,body.toplevel_page_ajax-load-more #wpfooter{background:#f8f9fb;border-top:1px solid #e7e7e7;bottom:0;line-height:42px;padding-bottom:0;padding-top:0;position:fixed;z-index:1100}body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p,body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p,body.ajax-load-more_page_ajax-load-more-help #wpfooter p,body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,body.ajax-load-more_page_ajax-load-more-pro #wpfooter p,body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p,body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p,body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter p,body.toplevel_page_ajax-load-more #wpfooter p{line-height:42px}.ajax-load-more{color:#393d41;max-width:100%;position:relative}.ajax-load-more *{box-sizing:border-box}.ajax-load-more a{color:#3d8ed0;text-decoration:underline}.ajax-load-more a:focus,.ajax-load-more a:hover{color:#1465a8;text-decoration:none}.ajax-load-more .offscreen{left:-9999px;position:absolute}.ajax-load-more img{max-width:100%}.ajax-load-more .text-left{text-align:left}.ajax-load-more .text-center{text-align:center}.ajax-load-more .text-right{text-align:right}.main-cnkt-wrap{margin:0!important;padding:0!important}.ajax-load-more-inner-wrapper{display:block;max-width:1600px;padding:10px 20px 20px;position:relative;width:100%}@media screen and (min-width:900px){.ajax-load-more-inner-wrapper{display:flex;justify-content:space-between}}.ajax-load-more-inner-wrapper.no-flex{display:block}.ajax-load-more .notice,.ajax-load-more div.error,.ajax-load-more div.notice-error,.ajax-load-more div.notice-success,.ajax-load-more div.notice-updated,.ajax-load-more div.updated{border-radius:3px;margin:5px 0;overflow:hidden;padding:5px 10px}.ajax-load-more .notice p,.ajax-load-more div.error p,.ajax-load-more div.notice-error p,.ajax-load-more div.notice-success p,.ajax-load-more div.notice-updated p,.ajax-load-more div.updated p{margin:.5em 0}.ajax-load-more .notice .notice-dismiss,.ajax-load-more div.error .notice-dismiss,.ajax-load-more div.notice-error .notice-dismiss,.ajax-load-more div.notice-success .notice-dismiss,.ajax-load-more div.notice-updated .notice-dismiss,.ajax-load-more div.updated .notice-dismiss{top:2px}.ajax-load-more .alm-transient p{margin:.5em 0}.ajax-load-more .alm-transient p a{font-weight:600}.ajax-load-more .alm-transient a.button{position:static;vertical-align:inherit!important}.ajax-load-more .alm-transient button{top:50%;transform:translateY(-50%)}#alm-settings .admin-select{display:block;margin:-10px 0 0;padding:0 0 25px;width:100%}#alm-settings .admin-select .select2-container{display:inline-block;min-width:40%;vertical-align:top;width:40%}.ajax-load-more .file-location{background:#fff;border:1px solid #e7e7e7;border-radius:3px;display:flex;flex-wrap:nowrap;font-family:Consolas,monaco,monospace;line-height:1;margin:0;padding:0}.ajax-load-more .file-location code,.ajax-load-more .file-location p{font-size:12px;line-height:18px;padding:12px 16px}.ajax-load-more .file-location p{background:#f7f7f7;border-right:1px solid #e7e7e7;color:#555;display:inline;font-weight:600;margin:0;width:auto}.ajax-load-more .file-location code{background:rgba(0,0,0,0);color:#999;cursor:help}.ajax-load-more code{background:#fcf3d0}.ajax-load-more p{clear:both;color:#6a7178;display:block;margin:0 0 15px;padding:0;text-transform:none;width:100%}.ajax-load-more table code{background:#f7f7f7;color:#6a7178}.ajax-load-more input.lg,.ajax-load-more label.lg,.ajax-load-more li.lg,.ajax-load-more p.lg,.ajax-load-more textarea.lg{color:#999;font-size:16px}.ajax-load-more textarea#_alm_layouts_css{height:240px}.ajax-load-more a.layout-hover{background:#ccc;display:inline-block;height:20px!important;position:relative;width:20px!important}.ajax-load-more a.layout-hover img{filter:alpha(opacity=0);left:100%;opacity:0;position:absolute;top:0;z-index:999}.ajax-load-more a.layout-hover:hover img{filter:alpha(opacity=100);left:100%;opacity:1;position:absolute;top:0;z-index:999}.ajax-load-more p.highlight{background-color:#fffbd4;border-radius:3px;color:#333;margin:-5px 0 10px;padding:5px 10px}.ajax-load-more h3,.ajax-load-more h4{color:#393d41;margin-top:0}.ajax-load-more h4+p{margin-top:-6px}.ajax-load-more p.small{font-size:12px;margin-top:-10px;opacity:.7}.ajax-load-more.shortcode-builder .major-publishing-actions{position:relative}.ajax-load-more p.small.reset-shortcode-builder{display:none;font-size:12px;margin:0;opacity:1;padding:0;position:absolute;right:15px;text-align:right;top:50%;transform:translateY(-45%);width:auto}.ajax-load-more p.small.reset-shortcode-builder a{text-decoration:none}.ajax-load-more h3.heading{background:#f7f7f7;border-bottom:1px solid #e7e7e7;color:#393d41;cursor:pointer;font-size:16px;font-weight:600;line-height:normal!important;margin:0!important;padding:15px 10px 15px 36px!important;position:relative;width:100%}.ajax-load-more h3.heading:focus:after,.ajax-load-more h3.heading:hover:after{color:#ccc}.ajax-load-more h3.heading:focus,.ajax-load-more h3.heading:hover{color:#222;outline:none;text-decoration:underline}.ajax-load-more h3.heading:after{color:#e7e7e7;content:"";font-family:FontAwesome;height:20px;left:13px;position:absolute;top:16px;width:20px}.ajax-load-more h3.heading.open:after{content:""}.ajax-load-more h3.heading.open{border-bottom-color:rgba(0,0,0,0)}.ajax-load-more .toggle-all{background:#fff;border:1px solid #e7e7e7;border-radius:3px;color:#393d41;cursor:pointer;display:inline-block;font-size:11px;height:35px;line-height:34px;margin-bottom:10px;overflow:hidden;padding:0 12px;position:static;right:20px;text-transform:uppercase;top:-21px;width:auto;z-index:20}@media screen and (min-width:768px){.ajax-load-more .toggle-all{position:absolute}}.ajax-load-more .toggle-all:focus,.ajax-load-more .toggle-all:hover{border-color:#ccc;color:#393d41}.ajax-load-more .toggle-all .inner-wrap{line-height:24px;padding-left:16px;position:relative}.ajax-load-more .toggle-all .expand{display:none}.ajax-load-more .toggle-all .collapse{display:inline-block}.ajax-load-more .toggle-all em{font-style:normal}.ajax-load-more .toggle-all.closed .expand{display:inline-block}.ajax-load-more .toggle-all.closed .collapse{display:none}.ajax-load-more .toggle-all .inner-wrap:before{content:"";font-family:FontAwesome;font-size:10px;left:0;position:absolute;top:-5px}.ajax-load-more .toggle-all.closed .inner-wrap:before{content:""}a.button-small{background-color:#eaf6fb;border:1px solid #b9d2de;border-radius:3px;color:#393d41;display:inline-block;font-size:12px;line-height:1.1;padding:6px 10px;text-decoration:none}a.button-small:hover{background-color:#3d8ed0;border-color:#3d8ed0;color:#fff;text-decoration:none}a.button-small:focus{background-color:#1465a8;border-color:#1465a8;color:#fff;text-decoration:none}.ajax-load-more ul{list-style:none;margin:0;padding:0}.shortcode-builder--items li{clear:both;display:inline-block;margin:0 0 5px;overflow:visible;padding:0 5% 0 0;position:relative;vertical-align:top;width:48.666%}.ajax-load-more label.full{clear:both;color:#393d41;cursor:default;display:block;font-size:13px;font-weight:500;padding:0 0 10px;width:100%}.ajax-load-more .border-top{border-top:1px solid #efefef;clear:both;display:block;overflow:visible;padding:15px 0 0!important;position:relative;width:100%}.ajax-load-more .border-top.highlighted{background-color:#feffe3;border:1px solid #eeefd4;border-radius:3px;padding:15px!important}.ajax-load-more .alm-settings-nav{background:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:3px 3px 0 0;left:-20px;margin:0 0 5px;overflow:hidden;padding:0;position:relative;top:-20px;width:calc(100% + 40px)}.alm-settings-nav li{background:none;float:left;font-size:13px;font-weight:600;margin:0;padding:0}.alm-settings-nav a{border-left:1px solid #ebebeb;display:block;padding:8px 16px;text-decoration:none}.alm-settings-nav a:hover{background-color:#d63638;color:#fff}.alm-settings-nav li:first-of-type a{border:none;border-radius:3px 0 0 0}#alm-meta-key .meta-query-wrap,.taxonomy-wrap{border:1px solid #efefef;border-radius:3px;margin:15px 0 0;padding:15px;position:relative}#alm-meta-key .meta-query-wrap{padding-bottom:0}.meta-query-wrap.removing,.taxonomy-wrap.removing{background-color:#f5d0d0}#alm-meta-key .meta-query-wrap-first .meta-query-wrap{background-color:rgba(0,0,0,0);border:none;margin:0;padding:0}#alm-meta-key .meta-query-wrap-first .meta-query-wrap .padding-top{margin-bottom:0}.section-control{padding-top:15px}.row .controls{clear:both;display:block;overflow:hidden;padding:20px 0 10px}.row.taxonomy .controls{padding-bottom:20px}.row.taxonomy .highlighted{margin-bottom:0!important}#tax-query-relation{padding-top:15px}.meta-query-wrap .remove-meta-query,.taxonomy-wrap .remove-tax-query{background-color:#393d41;border-radius:3px;color:#fff;font-size:18px;font-weight:500;height:23px;line-height:22px;padding-left:1px;position:absolute;right:5px;text-align:center;text-decoration:none;top:5px;width:23px}.meta-query-wrap .remove-meta-query:hover,.taxonomy-wrap .remove-tax-query:hover{background-color:#d63638;color:#fff}.ajax-load-more .meta-query-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.ajax-load-more .meta-query-wrap>div{margin:0 0 15px;width:48%}.meta-query-extended .meta-query-wrap{margin-bottom:15px}#meta-query-relation{margin:15px 0}.ajax-load-more .meta-query-wrap .border-top:first-of-type{border:none;padding:0!important}.ajax-load-more #meta-query-relation,.ajax-load-more #nav-controls,.ajax-load-more #paging-controls-nav,.ajax-load-more #seo-extended,.ajax-load-more #tax-query-relation,.ajax-load-more #taxonomy-extended,.ajax-load-more #users-extended,.ajax-load-more .comments_extras,.ajax-load-more .taxonomy-extended{display:none;overflow:hidden}.ajax-load-more .taxonomy-extended{padding-top:15px}.ajax-load-more .taxonomy-wrap{display:none;position:relative}.ajax-load-more .row .wrap .inner .ajax-load-more p.warning{border-left:3px solid #d24646;color:#d24646;font-size:13px;margin:0;padding:0 0 0 10px}.ajax-load-more .row .wrap .inner.taxonomy{padding-bottom:0}.ajax-load-more input,.ajax-load-more label,.ajax-load-more select,.ajax-load-more textarea{border-radius:3px;box-shadow:none;clear:both;color:#393d41;display:inline-block;font-size:14px;margin-top:0;padding:5px 8px;width:auto}.ajax-load-more input[type=checkbox],.ajax-load-more input[type=radio]{width:1rem}.controls button.disabled{opacity:.5}.ajax-load-more textarea._alm_repeater{font-family:Consolas,monaco,monospace;font-size:13px;line-height:19px;padding:10px}.ajax-load-more textarea._alm_repeater:focus{color:#222}.ajax-load-more label{border-radius:0;padding:5px 0}.checkboxes input,.radio input{margin-top:2px}.checkboxes input,.checkboxes label,.radio input,.radio label{clear:none;float:left;margin-right:10px;padding:0;width:auto}.radio input{margin-left:3px}.ajax-load-more input[type=email],.ajax-load-more input[type=number],.ajax-load-more input[type=search],.ajax-load-more input[type=text],.ajax-load-more textarea{border:1px solid #e7e7e7;line-height:1.3;padding:10px 12px;width:60%}.ajax-load-more input[type=text].full{width:100%}.ajax-load-more .wrap-30{display:inline-block;padding-right:3%;vertical-align:top;width:32.333%}.ajax-load-more .wrap-30.wrap-50{width:48.6666%}.ajax-load-more .wrap-30.wrap-50.padding-top{padding-top:15px}.ajax-load-more .wrap-30 .select2-container,.ajax-load-more .wrap-30 input[type=text].sm{margin:0;width:100%}.ajax-load-more input[type=number].sm{width:100px}.ajax-load-more ::-webkit-input-placeholder{color:#999;font-style:italic}.ajax-load-more :-moz-placeholder,.ajax-load-more ::-moz-placeholder{color:#999;font-style:italic}.ajax-load-more :-ms-input-placeholder{color:#999;font-style:italic}.ajax-load-more .repeaters input[type=text]{padding:9px 10px}.ajax-load-more input[type=number]{height:auto}.ajax-load-more .form-table textarea{clear:both;display:inline-block;float:none;width:100%}.ajax-load-more input.disabled-input,.ajax-load-more textarea.disabled{border-color:#ccc!important;box-shadow:none!important;cursor:not-allowed;filter:alpha(opacity=50);opacity:.5}.ajax-load-more input[type=email]:focus,.ajax-load-more input[type=number]:focus,.ajax-load-more input[type=text]:focus,.ajax-load-more textarea:focus{border-color:#3d8ed0;box-shadow:0 0 4px 1px rgba(61,142,208,.15)}.checkboxes label{margin-right:5px}.ajax-load-more .one_half{display:inline-block;margin:0 -2px 1% 2%;vertical-align:top;width:48%}.ajax-load-more .one_half:first-of-type{margin:0 2% 1% 0}.ajax-load-more .alm-row{align-items:start;display:grid;gap:15px;grid-template-columns:repeat(12,1fr);padding:20px;width:100%}@media screen and (min-width:900px){.ajax-load-more .alm-row{gap:20px}}.ajax-load-more .alm-row+.alm-row{padding-top:0}.ajax-load-more .alm-row.no-padding-btm{padding-bottom:0}.ajax-load-more .alm-row .column{grid-column:span 12/span 12}@media screen and (min-width:900px){.ajax-load-more .alm-row .column.column-3{grid-column:span 3/span 3}.ajax-load-more .alm-row .column.column-6{grid-column:span 6/span 6}.ajax-load-more .alm-row .column.column-9{grid-column:span 9/span 9}}.alm-template-actions{display:flex;gap:10px;justify-content:end;padding:0 0 10px;width:100%}.ajax-load-more .row{border:1px solid #e7e7e7;border-radius:3px;clear:both;display:block;height:auto;margin:10px 0 0;overflow:hidden;padding:0!important;width:100%}.ajax-load-more .row.no-brd{border:none!important;padding:0!important}.ajax-load-more#alm-repeaters .row{overflow:visible}.ajax-load-more .row{border-color:#e7e7e7}.ajax-load-more .repeaters .row:hover,.ajax-load-more.shortcode-builder .row:hover{border-color:#d9d9d9;box-shadow:0 0 0 3px #f7f7f7}.ajax-load-more .row:first-of-type{margin-top:20px;padding-top:0}.ajax-load-more .intro{height:auto;overflow:hidden}.ajax-load-more .intro,.pop-up-jump{display:block;width:100%}.pop-up-jump .jump-menu-wrap{float:right;position:relative;width:30%}.pop-up-jump .jump-menu-wrap .select2-container{margin-bottom:15px;position:relative;top:-5px;width:100%!important}.pop-up-jump .intro-wrap{float:left;padding-right:5%;position:relative;width:65%}.ajax-load-more .jump-menu{display:none}#cnkt-sticky.attached{position:fixed;top:70px;width:auto}.table-of-contents .select2-container{width:100%}.table-of-contents ul{margin:0!important}.table-of-contents li{display:inline-block;margin:5px 5px 5px 0;padding:0;vertical-align:top;width:auto!important}.ajax-load-more .expand-wrap{display:block}#alm-examples.ajax-load-more .expand-wrap{padding:10px 10px 0}.ajax-load-more .expand-wrap hr{border:0;border-bottom:1px solid hsla(0,0%,100%,.3);border-top:1px solid #efefef;height:0}hr.indented{margin-left:20px;width:calc(100% - 40px)}.ajax-load-more .section-title{float:left;padding:20px 0 25px 20px;width:35%}.ajax-load-more .section-title.full{float:none;padding-right:25px;width:100%}.ajax-load-more .section-title p:last-of-type{margin-bottom:0}.ajax-load-more .section-title small{display:block;font-size:12px;padding-top:10px}.ajax-load-more .section-title h4{font-size:14px;font-weight:600;margin-bottom:15px}.ajax-load-more .section-title .wrap p.descriptor,.ajax-load-more .section-title p{color:#999;font-size:13px;line-height:20px}.ajax-load-more .wrap p.descriptor{font-style:italic;margin:0}.ajax-load-more .section-title p .fa.tooltip:hover,.form-table label .fa.tooltip:hover{opacity:1}.ajax-load-more .fa.tooltip{background:#fff;border-radius:100%;box-shadow:0 1px 1px #ccc;cursor:help;display:inline-block;height:16px;line-height:16px;margin:0 2px;position:relative;text-align:center;text-decoration:none;top:-1px;width:16px}.cta h3 .fa.tooltip{top:1px}.ajax-load-more .section-title p span,.ajax-load-more.settings .form-table p.notify span{background:#f7f7f7;border:1px solid #efefef;border-radius:2px;color:#666;display:inline-block;padding:0 4px}.ajax-load-more .section-title h4{margin:0 0 10px}.ajax-load-more .repeaters .row .wrap,.ajax-load-more .repeaters .section-title{float:none;padding:0;width:100%}.ajax-load-more .repeaters .section-title p{padding-left:0!important}.ajax-load-more label input._alm_repeater_alias{height:auto;line-height:normal!important}.acf-options,.alternate_template_wrap,.cache_id,.cta_template_wrap,.filters_options,.hide-section,.masonry-options,.next-page-content,.preload_amount,.progress-bar-options,.restapi_options{display:none}.ajax-load-more .row .wrap{border:none;float:left;margin:0;padding:20px 20px 0 5%;position:relative;width:65%}.ajax-load-more .row .wrap.full{float:none;padding:0 15px 15px 36px;width:100%}.ajax-load-more .output-wrap{background:#838d99;border-radius:3px;display:block;margin:20px 0 0;width:100%}.ajax-load-more .output-wrap textarea{background-color:rgba(0,0,0,0)!important;border:none!important;border-radius:3px;color:#fff;cursor:pointer;display:block;font-family:monospace;font-size:12px;height:auto!important;line-height:18px;min-height:100px;resize:none!important;width:100%!important}.ajax-load-more .row .wrap.output{display:block!important}.ajax-load-more .row .wrap .inner{padding:0 0 20px}.ajax-load-more .row .wrap .inner.half{display:inline-block;padding:0 0 20px;width:49.333%}#insert.insert_alm{background:#fff!important;border:none;border-radius:2px;box-shadow:inset 0 -15px 15px rgba(0,0,0,.1),0 1px 0 #ca5252;color:#ca5252!important;display:inline-block;font-size:14px!important;font-weight:600;height:auto!important;line-height:normal!important;margin:15px 0;max-width:20%;padding:8px 13px;text-align:center;text-shadow:none!important}#insert.insert_alm #insert.insert_alm{display:none}#insert.insert_alm:hover{box-shadow:inset 0 -15px 15px rgba(0,0,0,.1),0 0 3px #fff}#insert.insert_alm:active{background:#d0413f!important;box-shadow:inset 0 2px 2px rgba(0,0,0,.1);color:#fff!important}.ajax-load-more .clear{clear:both;height:auto;margin:0;overflow:hidden;padding:0;width:100%}.form-table label{clear:both;cursor:pointer!important;display:block;float:none;line-height:1.5;max-width:90%;padding:0 0 8px}.form-table input[type=checkbox],.form-table input[type=radio]{margin-top:0!important;max-width:8%;vertical-align:top}.form-table label+textarea{margin-top:10px}#alm-shortcode-builder-form label span.description,.form-table label span{color:#6a7178;font-size:13px;padding-top:10px}#alm-shortcode-builder-form label span.description{display:block;padding-bottom:5px;padding-top:1px}.ajax-load-more input.disabled,.ajax-load-more textarea.disabled{background:#efefef;border:1px solid #ccc;color:#666;cursor:default;filter:alpha(opacity=90);opacity:.9;resize:none;text-shadow:1px 1px 0 #fff}.ajax-load-more .form-table input[type=checkbox],.ajax-load-more .form-table input[type=radio]{margin-right:10px;margin-top:0!important}.ajax-load-more.settings .select2-container,.ajax-load-more.settings input[type=email],.ajax-load-more.settings input[type=number],.ajax-load-more.settings input[type=text]{margin-top:10px}.ajax-load-more .ajax-load-more-wrap{border:1px solid #e7e7e7;border-radius:3px;box-shadow:inset 0 0 0 5px rgba(0,0,0,.025),0 0 5px rgba(0,0,0,.1);margin-bottom:10px;margin-top:10px;padding:20px;position:relative;top:10px}.ajax-load-more .ajax-load-more-wrap.preview-pane.none{display:none}.ajax-load-more .ajax-load-more-wrap .alm-btn-wrap{margin:0;padding:0;text-align:left}.ajax-load-more .ajax-load-more-wrap button{margin:0!important;opacity:1!important;visibility:visible!important}.ajax-load-more .ajax-load-more-wrap span{border-bottom:1px solid #e7e7e7;display:block;font-size:10px;line-height:1;margin:0 0 20px;padding:0 0 10px;text-transform:uppercase}.ajax-load-more .ajax-load-more-wrap ul.alm-paging li span{margin:0;padding:0}.ajax-load-more.settings .ajax-load-more-wrap.pages li{font-size:14px}.ajax-load-more.settings .ajax-load-more-wrap.pages li a{text-decoration:none}.ajax-load-more.settings .ajax-load-more-wrap.pages li span{border-bottom:none;font-size:14px;margin:0}.ajax-load-more.settings .form-table td,.ajax-load-more.settings .form-table th{line-height:1.5;padding:25px}.ajax-load-more.settings .form-table td:last-of-type,.ajax-load-more.settings .form-table th:last-of-type{margin:0}.ajax-load-more.settings .form-table th{background-color:#f7f7f7;border-right:1px solid #efefef;font-weight:600;width:25%}.ajax-load-more.settings .form-table p{margin-top:0}.ajax-load-more.settings .form-table p.notify{color:#999;margin:5px 0 20px;overflow:hidden;padding:10px 0 0}.ajax-load-more.settings .nextpage-option{background-color:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px;display:block;margin:10px 0;padding:10px}.ajax-load-more.settings .nextpage-option>div label{margin:0;width:100%}.ajax-load-more.settings .nextpage-option--type input:checked+label{font-weight:600}.ajax-load-more.settings .nextpage-option--shortcode{display:none;padding:10px 5px 5px 30px}.ajax-load-more.settings .nextpage-option--shortcode.active{display:block}.ajax-load-more.settings .nextpage-option--shortcode label{border-top:1px solid #e7e7e7;display:block;font-size:13px;margin:0 0 10px;max-width:100%;padding:10px 1px 0;width:100%}.ajax-load-more.settings .nextpage-option--shortcode textarea{border-radius:3px;display:block;font-family:Consolas,monaco,monospace;font-size:12px;line-height:1.55;width:100%}.ajax-load-more h2.addon-title{color:#393d41!important;font-size:18px!important;font-weight:600!important;line-height:22px;padding:0}.ajax-load-more .cnkt-sidebar h3,.ajax-load-more h3.add-on-title{border-bottom:1px solid #efefef;margin:0 0 20px;padding:0 0 10px}.ajax-load-more .desc,.ajax-load-more p.writeable-title{padding:0 0 2px 28px}.ajax-load-more p.writeable-title{position:relative}.ajax-load-more p.writeable-title i{left:0!important;position:absolute!important;top:1px!important}.ajax-load-more .saved-response,.ajax-load-more p.loading{background:none;color:#999;display:inline-block;font-size:12px;left:15px;padding:0;position:relative;top:5px;transition:padding .2s ease;width:auto}.ajax-load-more .saved-error{color:#e03e3e}.ajax-load-more .saved-response em{color:#333;display:block;padding:5px 0}.ajax-load-more .saved{color:#90be59;font-weight:700}.ajax-load-more p.loading{position:static}.ajax-load-more .saved-response.loading,.ajax-load-more p.loading{background:rgba(0,0,0,0) url(../admin/img/ui/loader.gif) no-repeat 0;padding-left:24px}.ajax-load-more .restore-default{float:right;font-size:12px;margin:19px 20px 0 0}.ajax-load-more .restore-default a{text-decoration:none}.ajax-load-more table.highlight{background:#fff!important}.ajax-load-more .cnkt-main{background:#fff;border:1px solid #e7e7e7;border-radius:8px;margin-bottom:30px;padding:20px;width:100%}@media screen and (min-width:900px){.ajax-load-more .cnkt-main{width:70%}}.ajax-load-more .cnkt-main.stylefree{background-color:rgba(0,0,0,0);border:none;padding:0}.ajax-load-more .cnkt-main .group{background:#fff;clear:both;display:block;margin:0 0 20px;padding:20px;position:relative}.ajax-load-more .cnkt-main .group,.ajax-load-more .cnkt-sidebar .cta{border:1px solid #e7e7e7;box-shadow:0 0 5px rgba(0,0,0,.1)}.ajax-load-more .cnkt-main .group.no-shadow,.ajax-load-more .cnkt-sidebar .cta.no-shadow{box-shadow:none}.ajax-load-more .cnkt-main .alm-content-wrap{background-color:#fff;border:1px solid #e7e7e7;border-radius:8px;padding:20px;position:relative}.ajax-load-more .cnkt-main .alm-content-wrap .toggle-all{right:-1px;top:-45px}.ajax-load-more .cnkt-main .alm-content-wrap .flexbox-wrap{margin:0}.ajax-load-more .cnkt-main.full{float:none;width:100%}.ajax-load-more .cnkt-main h1,.ajax-load-more .cnkt-main h2,.ajax-load-more .cnkt-main h3,.ajax-load-more .cnkt-main h4{margin-bottom:10px;margin-top:0}.form-table tr{border-top:1px solid #efefef}.form-table{border:1px solid #efefef;margin:0 0 20px}.form-table br{content:"";display:block;height:1px;line-height:1px;margin:0;overflow:hidden}#alm_OptionsForm .form-table:last-of-type{margin-bottom:0}.repeaters .repeater-wrap label{font-weight:500;margin:0 0 10px;padding:0}.repeaters .repeater-wrap label span{color:#6a7178;display:block;font-size:12px;font-weight:400;opacity:.75;padding-top:3px}.repeaters input.save-repeater{clear:none;display:inline-block;margin:0;max-width:25%}.repeaters .repeater-wrap input[type=text],.repeaters .repeater-wrap textarea{width:100%}.repeaters input.save-repeater.saving{cursor:default!important;opacity:.3!important}.repeaters .saved-response{max-width:72%;opacity:0}.repeaters .one_half{padding-bottom:10px}.repeaters .alm-delete{background:none;border:none;border-radius:3px;bottom:20px;color:#c94141;cursor:pointer;display:inline-block;display:block;font-size:14px;height:30px;line-height:30px;margin:0;opacity:0;padding:0 10px;position:absolute;right:20px;text-decoration:none;transition:all .15s ease;width:auto}.repeaters .alm-delete:focus,.repeaters .alm-delete:hover{background-color:#c94141;color:#fff}.repeaters .alm-delete:active{background-color:#b93636}.repeaters .row:focus-within .alm-delete,.repeaters .row:hover .alm-delete{opacity:1}.flexbox-wrap{background-color:#f7f7f7;border-radius:8px;box-shadow:inset 0 0 0 10px #fff;display:grid;gap:1px;grid-template-columns:repeat(1,1fr);margin-bottom:20px;padding:10px}@media screen and (min-width:640px){.flexbox-wrap{grid-template-columns:repeat(2,1fr)}}@media screen and (min-width:1100px){.flexbox-wrap{grid-template-columns:repeat(3,1fr)}}.flexbox-wrap--single{border:1px solid #efefef;border-radius:3px;grid-template-columns:repeat(1,1fr);padding:0}#alm-add-ons .group{border:none;display:flex;margin:0!important;overflow:hidden;padding:0;text-align:center;vertical-align:top;width:100%}#alm-add-ons .group.alm-pro-hero,#alm-add-ons .group.extend,#alm-add-ons .group.highlighted{background:none;border:none;box-shadow:none;width:100%}#alm-add-ons .group.alm-pro-hero a,#alm-add-ons .group.extend a,#alm-add-ons .group.highlighted a{background:#f7f7f7;border-radius:8px;box-shadow:inset 0 0 0 10px #fff}#alm-add-ons .group.alm-pro-hero img,#alm-add-ons .group.extend img,#alm-add-ons .group.highlighted img{padding:10px}@media screen and (min-width:768px){#alm-add-ons .group.alm-pro-hero,#alm-add-ons .group.extend,#alm-add-ons .group.highlighted{text-align:left}#alm-add-ons .group.alm-pro-hero a,#alm-add-ons .group.extend a,#alm-add-ons .group.highlighted a{align-items:center;display:flex;flex-wrap:nowrap;overflow:hidden;padding:20px}#alm-add-ons .group.alm-pro-hero .pro-details,#alm-add-ons .group.alm-pro-hero .pro-img,#alm-add-ons .group.extend .pro-details,#alm-add-ons .group.extend .pro-img,#alm-add-ons .group.highlighted .pro-details,#alm-add-ons .group.highlighted .pro-img{flex:1}#alm-add-ons .group.alm-pro-hero .pro-img,#alm-add-ons .group.extend .pro-img,#alm-add-ons .group.highlighted .pro-img{max-width:355px}#alm-add-ons .group.alm-pro-hero .pro-details,#alm-add-ons .group.extend .pro-details,#alm-add-ons .group.highlighted .pro-details{padding:0 15px 0 35px}#alm-add-ons .group.alm-pro-hero img,#alm-add-ons .group.extend img,#alm-add-ons .group.highlighted img{position:static}#alm-add-ons .group.alm-pro-hero span.cnkt-button,#alm-add-ons .group.extend span.cnkt-button,#alm-add-ons .group.highlighted span.cnkt-button{display:inline-block;font-size:14px;margin-top:15px;padding:13px 30px;position:static;text-align:center;width:auto}}@media screen and (min-width:769px)and (max-width:1270px){#alm-add-ons .group.alm-pro-hero .pro-desc,#alm-add-ons .group.extend .pro-desc,#alm-add-ons .group.highlighted .pro-desc{display:none}}#alm-add-ons .group.extend a{background-color:#fff;border-color:#fcfcfc}#alm-add-ons .group.installed{filter:grayscale(1)}#alm-add-ons .group.installed p:before{display:none!important}#alm-add-ons .group span.cnkt-button{border-bottom:none;border-left:none;border-right:none;bottom:20px;display:block;font-size:14px;left:20px;padding:11px 14px;position:absolute;transition:all .15s ease;width:100%;width:calc(100% - 40px)}#alm-add-ons .group img{padding:0 15px 15px}#alm-add-ons .group a{display:block;padding:25px 25px 70px;position:relative;text-decoration:none}#alm-add-ons .group--pro a{padding-bottom:17px}#alm-add-ons .group a:focus h2,#alm-add-ons .group a:hover h2{color:#d63638!important;text-decoration:none}#alm-add-ons .group.installed a:focus h2,#alm-add-ons .group.installed a:hover h2{color:#444!important}.ajax-load-more .cnkt-plugin-installer{display:grid;gap:10px;grid-template-columns:repeat(1,1fr);position:static;width:100%}@media screen and (min-width:640px){.ajax-load-more .cnkt-plugin-installer{grid-template-columns:repeat(2,1fr)}}@media screen and (min-width:1600px){.ajax-load-more .cnkt-plugin-installer{grid-template-columns:repeat(3,1fr)}}.ajax-load-more .cnkt-plugin-installer:after{display:none}.ajax-load-more .cnkt-plugin-installer .plugin{border-radius:3px;margin:0!important;width:100%!important}.ajax-load-more p.warning-callout{background-color:#eaf6fb;border-left:6px solid #3d8ed0;border-radius:3px;color:#333;display:block;font-size:12px;line-height:1.55;margin:10px;padding:18px 100px 18px 18px;position:relative;width:auto}.ajax-load-more p.warning-callout a{color:#0071ac}.ajax-load-more p.warning-callout a.button-small{background-color:hsla(0,0%,100%,.75);display:inline-block;font-size:12px;margin:0 0 0 10px;position:absolute;right:14px;top:14px}.ajax-load-more p.warning-callout a.button-small:focus,.ajax-load-more p.warning-callout a.button-small:hover{background-color:#fff}.ajax-load-more p.warning-callout strong{background-color:#fff;border-radius:2px;display:inline-block;font-family:Consolas,monaco,monospace;font-weight:400;padding:1px 6px 0}.ajax-load-more p.warning-callout.notify{background-color:#da5858;border-color:#b94848;color:#fff}.ajax-load-more p.warning-callout.notify strong{background-color:#9a4343;color:#fff}.ajax-load-more .call-out{align-items:center;background:#bb8dd2;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);display:flex;padding:15px;position:relative;width:100%}.ajax-load-more .call-out p{align-items:center;color:#fff;display:flex;line-height:1.45;margin:5px;text-shadow:0 1px 0 rgba(0,0,0,.05);width:100%}.ajax-load-more .call-out p i{display:block;font-size:15px;font-size:22px;left:-4px;margin-right:5px;opacity:.5;position:relative}@media screen and (max-width:640px){.ajax-load-more .call-out p i{display:none}}.ajax-load-more .call-out--centered{flex-direction:column}.ajax-load-more .call-out--centered p{display:block;margin:0 10px;text-align:center}.ajax-load-more .call-out--centered p i{margin:0 0 10px;position:static}.ajax-load-more .call-out--centered p+div{margin-top:10px}.ajax-load-more .call-out.text-left{text-align:left}.ajax-load-more .call-out.radius-normal{border-radius:3px}.ajax-load-more .call-out.margin-bottom{margin-bottom:20px}.ajax-load-more .call-out.margin-top{margin-top:20px}.ajax-load-more .call-out.margin-top-half{margin-top:10px}.ajax-load-more .call-out--shortcode-builder{border-top:1px solid #e7e7e7;padding:0}.ajax-load-more .call-out--shortcode-builder .call-out{border-radius:0 0 3px 3px}.ajax-load-more .call-out--shortcode-builder .call-out p{font-size:13px}.ajax-load-more .call-out.blue{background-color:#eaf6fb;border-left:6px solid #4e99bf;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.ajax-load-more .call-out.blue p{color:#393d41;text-shadow:none}.ajax-load-more .call-out.blue .cnkt-button{background:#3d8ed0;color:#fff}.ajax-load-more .call-out.blue .cnkt-button:focus,.ajax-load-more .call-out.blue .cnkt-button:hover{background:#1465a8}.ajax-load-more .call-out.light{background:#fff8d7}.ajax-load-more .call-out.light p{color:#59574e;text-shadow:none}.ajax-load-more .call-out.light p a{color:#d63638!important}.ajax-load-more .call-out.light p a:hover{text-decoration:underline}.ajax-load-more .call-out.light .cnkt-button{background:#fff;color:#59574e}.ajax-load-more .call-out.light .cnkt-button:focus,.ajax-load-more .call-out.light .cnkt-button:hover{background:hsla(0,0%,100%,.9);color:#3e3d3a}.ajax-load-more .call-out a:not(.cnkt-button):not(.button){color:#fff;font-weight:600;text-decoration:underline}.ajax-load-more .call-out a:not(.cnkt-button):not(.button):focus,.ajax-load-more .call-out a:not(.cnkt-button):not(.button):hover{text-decoration:none}.ajax-load-more .call-out .button,.ajax-load-more .call-out .cnkt-button{margin-left:auto}.ajax-load-more .call-out .cnkt-button{background:#77498e;border:none;color:#fff;display:block;flex:1;font-size:13px;font-weight:500;padding:7px 14px}.ajax-load-more .call-out .cnkt-button:focus,.ajax-load-more .call-out .cnkt-button:hover{background:#5a366c;box-shadow:0 1px 3px rgba(0,0,0,.15);color:#fff}a.cnkt-button,span.cnkt-button{align-items:center;background:#bb8dd2;border:none;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);color:#fff;display:inline-flex;font-size:14px;font-weight:500;padding:6px 10px;position:static;text-decoration:none;transition:all .15s ease;white-space:nowrap}a.cnkt-button i,span.cnkt-button i{margin-right:2px}.group:hover span.cnkt-button,a.cnkt-button:hover{background-color:#a272bc;color:#fff}.group:focus span.cnkt-button,a.cnkt-button:focus{background-color:#83519d;color:#fff;outline:none}.group span.cnkt-button.installed,a.cnkt-button.installed,span.cnkt-button.installed{background:#f7f7f7!important;box-shadow:none!important;color:#888!important}.ajax-load-more .cnkt-sidebar .cta{background:#fff;border:1px solid #e7e7e7;border-radius:8px;box-shadow:0 5px 10px rgba(0,0,0,.035);margin:20px 0 0;overflow:visible;padding:0;position:relative}.ajax-load-more .cnkt-sidebar .cta:first-of-type{margin-top:0}.ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input){border-top:1px solid #efefef;margin-top:15px;padding-top:15px}.ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) input{font-family:Consolas,monaco,monospace;font-size:11px;width:100%}.ajax-load-more .cnkt-sidebar .cta-inner{display:block;padding:15px}.ajax-load-more .cnkt-sidebar .cta-inner .cta-inner{background-color:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px}.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom{padding-bottom:80px}.ajax-load-more .cnkt-sidebar .cta.padding-bottom{padding-bottom:50px}.ajax-load-more .cnkt-sidebar h3,.ajax-load-more .cnkt-sidebar h4{margin-top:0}.ajax-load-more .cnkt-sidebar h3{border-bottom:1px solid #efefef;display:block;font-size:15px;font-weight:500;margin:0 15px;padding:15px 0;text-transform:none}.ajax-load-more .cnkt-sidebar .item{overflow:hidden}.ajax-load-more .cnkt-sidebar .item h4{font-size:.9em;margin:0 0 5px;opacity:.5;text-transform:uppercase}.ajax-load-more .cnkt-sidebar h4{margin-bottom:5px}.ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner{display:flex;gap:10px;overflow:hidden}@media screen and (min-width:900px)and (max-width:1300px){.ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner{display:block}.ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner .img,.ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner .text{margin:5px 0;width:100%}}.ajax-load-more .cnkt-sidebar .cta.dyk .img{width:40%}.ajax-load-more .cnkt-sidebar .cta.dyk .text{width:60%}.ajax-load-more .cnkt-sidebar .cta.dyk p{clear:none;margin:0 0 15px}.ajax-load-more .cnkt-sidebar .cta.dyk p:last-child{margin:0}.ajax-load-more .cnkt-sidebar ul{margin:0;overflow:hidden;padding:5px 0 0}.ajax-load-more .cnkt-sidebar li{line-height:1.5;margin:0 0 10px}.ajax-load-more .cnkt-sidebar .cta.resources li{display:block;line-height:1;margin:1px 0;width:100%}.ajax-load-more .cnkt-sidebar .cta.resources li a{border-top:1px solid #efefef;display:block;padding:10px 0;text-decoration:none}.ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a{border:none;padding-top:0}.ajax-load-more .cnkt-sidebar .cta.resources li i{color:#ccc;display:inline-block;font-size:14px;text-align:center;text-decoration:none;width:24px}.ajax-load-more .cnkt-sidebar a.visit{background:#ed7070;border-radius:0 0 2px 2px;bottom:0;color:#fff!important;display:block;left:0;line-height:1;padding:17px 20px 18px 44px;position:absolute;text-decoration:none;width:100%;z-index:2}.ajax-load-more .cnkt-sidebar a.visit i{display:inline-block;font-size:21px;left:18px;margin:0 5px 0 0;opacity:.6;position:absolute;top:13px}.ajax-load-more .cnkt-sidebar a.visit:focus,.ajax-load-more .cnkt-sidebar a.visit:hover{background:#f06060}.ajax-load-more .cnkt-sidebar a.visit:hover i{opacity:1}.ajax-load-more .cnkt-sidebar .project-listing{padding:0}.ajax-load-more .cnkt-sidebar .project-listing li{clear:both;margin:15px 0 0;padding:0;position:relative}.ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{margin-top:0}.ajax-load-more .cnkt-sidebar .project-listing li a{display:flex;gap:10px;position:static;text-decoration:none;width:100%}.ajax-load-more .cnkt-sidebar .project-listing li a:focus h4,.ajax-load-more .cnkt-sidebar .project-listing li a:hover h4{text-decoration:underline}.ajax-load-more .cnkt-sidebar .project-listing li h4{display:block;font-size:14px;margin:-3px 0 8px}.ajax-load-more .cnkt-sidebar .project-listing li img{height:48px;width:48px}.alm-status{cursor:default;display:flex;margin:0 0 15px}.alm-status span{align-items:center;background-color:#f7f7f7;border-radius:3px;display:flex;font-size:11px;font-weight:500;line-height:1;overflow:hidden;padding:0 10px 0 0;text-transform:uppercase}.alm-status span i{margin:0 10px 0 0;padding:10px 12px;text-align:center}.alm-status.success span i{background-color:#8ed074;color:#fff}.alm-status.failed span i{background-color:#d63638;color:#fff}.shortcode-builder hr{margin:0}#unlmited-container{display:block;margin:0;overflow:visible}.ajax-load-more .row.template.unlimited:first-of-type{margin-top:10px}.repeaters .row,.shortcode-builder .row{transition:background-color .3s ease}.repeaters .row.no-brd:hover,.shortcode-builder .row.no-brd:hover{border-color:rgba(0,0,0,0);box-shadow:none}.unlimited-wrap{display:none}.ajax-load-more .row.unlimited.deleting{background:#fff url(../admin/img/ui/loader-unlimited.gif) no-repeat 50%;border-color:#fff;opacity:.4}.ajax-load-more .row.unlimited.deleting.deleted{background-image:none!important}.ajax-load-more .row.unlimited.new{background:url(../admin/img/ui/loader-unlimited.gif) no-repeat 50%;border-color:#efefef!important;display:none;min-height:60px}.ajax-load-more .row.unlimited.new.done{background-image:none!important}.ajax-load-more .row.unlimited.loaded{background-color:#64e49d;border-color:#64e49d}.ajax-load-more .row.unlimited.deleting .expand-wrap,.row.unlimited.deleting h3.heading{opacity:.6}.row.unlimited.deleting .alm-delete{display:none}.row.unlimited.deleting .save-repeater{cursor:default;opacity:0}.ajax-load-more .row.unlimited input[type=text]{width:100%}.ajax-load-more .alm-add-template{display:block;font-size:14px;font-weight:500;margin:20px 0 5px!important;text-align:center;text-transform:none!important}.ajax-load-more .alm-add-template a{background:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px;color:#393d41;display:inline-block;line-height:1;padding:15px;text-decoration:none;transition:all .15s ease}.ajax-load-more .alm-add-template a i{color:#d63638;font-size:16px;left:-1px;margin:0 4px 0 0;position:relative}.ajax-load-more .alm-add-template a:focus,.ajax-load-more .alm-add-template a:hover{background:#d63638;border-color:#d63638;color:#fff;text-shadow:none}.ajax-load-more .alm-add-template a:focus i,.ajax-load-more .alm-add-template a:hover i{color:#fff;opacity:.65}.ajax-load-more .alm-add-template a.active{background:#efefef!important;border-color:#efefef!important;color:#333!important;cursor:default;opacity:.5}.ajax-load-more .alm-add-template a.active i{color:#393d41}.spacer{clear:both;display:block;height:10px}.spacer.lg{height:20px}.alm-text-center{text-align:center}.ajax-load-more p.generate-id{font-size:12px!important;margin:10px 0 0!important;padding:0 0 0 5px}.ajax-load-more p.generate-id i{color:#999;margin:0 2px 0 0}.ajax-load-more p.generate-id a{text-decoration:none}.ajax-load-more .alm-dir-listing ul{display:flex;flex-wrap:wrap;margin:0;padding:0;width:100%}.ajax-load-more .alm-dir-listing ul li{background:rgba(0,0,0,0) url(../admin/img/ui/directory-list.gif) no-repeat left 46%;display:block;margin:0;padding:10px 5px 5px 55px;position:relative;width:50%}.ajax-load-more .alm-dir-listing ul li.full{width:100%}.ajax-load-more .alm-dir-listing ul li:last-child,.ajax-load-more .alm-dir-listing ul li:nth-last-child(2){background-image:url(../admin/img/ui/directory-list-btm.gif)}.ajax-load-more .alm-dir-listing ul li a{display:block;text-decoration:none;word-break:break-all}.ajax-load-more .alm-dir-listing ul li i{color:#999;left:35px;position:absolute;top:12px;width:15px}.ajax-load-more .alm-dir-listing p.theme-title{font-weight:600;margin:0 0 20px!important;padding:0}.ajax-load-more .alm-dir-listing.theme-repeaters ul li{background-position:left 54%;display:block;padding:0 0 0 36px;width:100%}.ajax-load-more .alm-dir-listing.theme-repeaters ul li label{display:block;width:100%}.ajax-load-more .alm-dir-listing.theme-repeaters ul li label i{display:none}.ajax-load-more .alm-dir-listing.theme-repeaters ul li:nth-last-child(2){background:rgba(0,0,0,0) url(../admin/img/ui/directory-list.gif) no-repeat 0}.alm-error{background:#fff;padding:10px;position:absolute;z-index:9999}.ajax-load-more .alm-styled-input{align-items:center;border:1px solid #e7e7e7;border-radius:3px;display:flex;flex-wrap:nowrap;width:100%}.ajax-load-more .alm-styled-input label{border-right:1px solid #e7e7e7;font-size:12px;font-weight:700;padding:10px}.ajax-load-more .alm-styled-input input{border:none;border-radius:0 2px 2px 0;margin:0;width:100%}.ajax-load-more .form-table input[type=checkbox],.ajax-load-more .form-table input[type=radio],.shortcode-builder input[type=checkbox],.shortcode-builder input[type=radio]{height:0;opacity:0;position:absolute;width:0}.ajax-load-more .form-table input[type=checkbox]+label,.ajax-load-more .form-table input[type=radio]+label,.shortcode-builder input[type=checkbox]+label,.shortcode-builder input[type=radio]+label{background:rgba(0,0,0,0) url(../admin/img/ui/bkg-chkbox_off.png) no-repeat left 2px;cursor:pointer!important;display:inline-block;font-size:14px;height:auto;line-height:1.5;margin:0 0 5px;min-height:23px;padding:.1em 0 0 30px;width:100%}.ajax-load-more .form-table input[type=checkbox]+label span,.ajax-load-more .form-table input[type=radio]+label span,.shortcode-builder input[type=checkbox]+label span,.shortcode-builder input[type=radio]+label span{color:#6a7178;display:inline-block;line-height:1.65}.ajax-load-more .form-table input[type=radio]+label,.shortcode-builder input[type=radio]+label{background:rgba(0,0,0,0) url(../admin/img/ui/bkg-radio_off.png) no-repeat left 2px}.ajax-load-more .form-table input[type=checkbox]:focus+label,.ajax-load-more .form-table input[type=checkbox]:hover+label,.shortcode-builder input[type=checkbox]:focus+label,.shortcode-builder input[type=checkbox]:hover+label{background-image:url(../admin/img/ui/bkg-chkbox_on.png)}.ajax-load-more .form-table input[type=radio]:focus+label,.ajax-load-more .form-table input[type=radio]:hover+label,.shortcode-builder input[type=radio]:focus+label,.shortcode-builder input[type=radio]:hover+label{background-image:url(../admin/img/ui/bkg-radio_on.png)}.ajax-load-more .form-table input[type=checkbox]:checked+label,.shortcode-builder input[type=checkbox]:checked+label{background-image:url(../admin/img/ui/bkg-chkbox_selected.png)}.ajax-load-more .form-table input[type=radio]:checked+label,.shortcode-builder input[type=radio]:checked+label{background-image:url(../admin/img/ui/bkg-radio_selected.png)}.ajax-load-more .form-table input[type=checkbox]+label:hover,.ajax-load-more .form-table input[type=radio]+label:hover,.shortcode-builder input[type=checkbox]+label:hover,.shortcode-builder input[type=radio]+label:hover{color:#000}#alm-shortcode-builder-form{position:relative}.progress_bar_color_indicator{background-color:#ed7070;border-radius:2px;box-shadow:inset 0 1px 1px rgba(0,0,0,.1);display:block;height:0;left:11px;padding:11px;position:absolute;top:9px;width:0;z-index:1}.ajax-load-more .row.template{position:relative}.ajax-load-more .row.template:first-of-type{margin-top:0}.ajax-load-more .row.template:hover .alm-repeater-options{opacity:1}.alm-drop-btn.alm-repeater-options{position:absolute;right:7px;top:-42px;z-index:8}.alm-drop-btn.alm-repeater-options a.target{border:none;box-shadow:none;padding:5px 9px}.alm-drop-btn.alm-repeater-options a.target>i{font-size:24px;margin:0;position:static;transform:none}.alm-drop-btn.active a.target{background-color:#fff}.alm-drop-btn.active a.target>i{color:#393d41}.alm-drop-btn a.target{align-items:center;background-color:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px;box-shadow:0 0 0 1px #fff;color:#393d41;display:flex;line-height:1;padding:9px 12px;position:relative;text-decoration:none!important}.alm-drop-btn a.target>i{color:#6a7178;font-size:16px;margin-right:8px;opacity:.5}.alm-drop-btn a.target:focus,.alm-drop-btn a.target:hover{border-color:#ccc}.alm-drop-btn a.target:focus>i,.alm-drop-btn a.target:hover>i{color:#393d41}.alm-repeater-options a.target:active,.alm-repeater-options a.target:focus,.alm-repeater-options a.target:hover,.alm-repeater-options.active a.target{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0);box-shadow:none;color:#393d41;opacity:1}.alm-repeater-options.active a.target,.alm-repeater-options.active a.target i.fa-cog{color:#393d41}.ajax-load-more .alm-drop-btn.alm-layout-selection{float:left;margin:-15px 0 15px}@media screen and (min-width:900px){.ajax-load-more .alm-drop-btn.alm-layout-selection{float:right;margin:0}}@media screen and (max-width:480px){.ajax-load-more .alm-drop-btn.alm-layout-selection .alm-dropdown{float:none;left:0;right:auto}.ajax-load-more .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner{width:240px}}.ajax-load-more .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner{width:280px}.ajax-load-more .alm-drop-btn .alm-dropdown:hover{opacity:1;visibility:visible}@media screen and (max-width:480px){.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before{left:36px;right:auto}.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after{margin-left:0}.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before{left:35px;right:auto}}.alm-drop-btn{position:relative;width:auto}.alm-drop-btn .alm-dropdown{opacity:0;position:absolute;right:-15px;top:109%;transition:all .15s ease;visibility:hidden;z-index:9}.alm-drop-btn .alm-dropdown .alm-drop-inner{background:#fff;border:1px solid #e7e7e7;border-radius:3px;box-shadow:0 5px 10px rgba(0,0,0,.05);display:block;padding:10px;position:relative;width:240px}.alm-drop-btn .alm-dropdown .alm-drop-inner:after,.alm-drop-btn .alm-dropdown .alm-drop-inner:before{border:solid rgba(0,0,0,0);bottom:100%;content:" ";height:0;pointer-events:none;position:absolute;right:26px;width:0}.alm-drop-btn .alm-dropdown .alm-drop-inner:after{border-color:hsla(0,0%,97%,0) hsla(0,0%,97%,0) #fff;border-width:7px;margin-left:-7px}.alm-drop-btn .alm-dropdown .alm-drop-inner:before{border-color:hsla(0,0%,80%,0) hsla(0,0%,80%,0) #ccc;border-width:8px;right:25px}.alm-drop-btn .alm-dropdown.active{opacity:1;transition:none;visibility:visible}.alm-drop-btn .alm-dropdown ul{background-color:#f7f7f7;border:1px solid #e7e7e7;border-radius:3px;margin:0;overflow:hidden;padding:5px 10px}.alm-drop-btn .alm-dropdown li{border-bottom:1px solid #e7e7e7;clear:both;font-weight:400;line-height:1.2;list-style:none;margin:0;padding:0}.alm-drop-btn .alm-dropdown li:last-of-type{border:none}.alm-drop-btn .alm-dropdown li button{align-items:center;background-color:rgba(0,0,0,0);border:none;color:#393d41;cursor:pointer;display:flex;line-height:1;padding:10px 10px 10px 3px;width:100%}.alm-drop-btn .alm-dropdown li button>i{color:#6a7178;font-size:14px;margin-right:8px;opacity:.65}.alm-drop-btn .alm-dropdown li button:focus,.alm-drop-btn .alm-dropdown li button:hover{color:#252627}.alm-drop-btn .alm-dropdown li button:focus i,.alm-drop-btn .alm-dropdown li button:hover i{color:#6a7178;opacity:1}.alm-drop-btn .alm-dropdown li button.updating{background:rgba(0,0,0,0) url(../admin/img/ui/loader.gif) no-repeat 0;cursor:wait}.alm-drop-btn .alm-dropdown li button.updating i{opacity:0}.alm-drop-btn .alm-dropdown li button.updating span{color:hsla(210,6%,44%,.75)}.alm-drop-btn .alm-dropdown .drop-cta{padding:10px 0 0}.select-theme-repeater{display:flex;flex-wrap:nowrap;position:relative;width:100%}.select-theme-repeater .or{background:#fff;border:1px solid #e7e7e7;border-radius:100%;color:#333;font-size:11px;font-weight:700;height:34px;left:70px;line-height:34px;position:absolute;text-align:center;text-transform:uppercase;top:-20px;width:34px;z-index:1}.alm-template-section-nav{display:block;margin:0;padding:0}.alm-template-section-nav li{display:inline-block;vertical-align:top}.alm-template-section-nav li a{display:block;padding:5px}.alm-template-section-nav li.active a{background:red}@media screen and (max-width:1270px){.ajax-load-more input[type=number],.ajax-load-more input[type=text],.ajax-load-more textarea,.select2-container,.shortcode-builder--items .select2-container-multi{width:95%}.shortcode-builder--items .select2-container-multi{width:95%!important}}@media screen and (max-width:900px){.table-of-contents{position:static!important;width:100%!important}.ajax-load-more.settings .form-table td{padding:24px 20px 20px}.repeaters input.save-repeater{max-width:50%}}@media screen and (max-width:782px){.ajax-load-more.settings .form-table th{border:none;border-bottom:1px solid #efefef;width:100%}.share-alm .sharing{margin-right:0!important;padding-right:0;width:100%}.share-alm .mailing{border-left:none;margin-left:0!important;padding-left:0;padding-top:40px;width:100%}}@media screen and (max-width:480px){.ajax-load-more .row .wrap,.ajax-load-more .section-title{clear:both;display:block;float:none;padding:10px;width:100%}.ajax-load-more .section-title{padding:20px 20px 10px}.ajax-load-more .row .wrap{padding:10px 20px}.ajax-load-more input[type=number],.ajax-load-more input[type=text],.ajax-load-more textarea,.select2-container,.shortcode-builder--items .select2-container-multi{width:100%!important}.ajax-load-more .row .wrap .inner.half{display:block;padding:0 0 20px;width:100%}.ajax-load-more .section-title p{color:#999;padding:0!important}#alm-add-ons .row .wrap{padding-bottom:60px;width:100%}#alm-add-ons .section-title{width:100%}.alm-repeater-options{display:none!important}.ajax-load-more .wrap-30{display:block;padding:0 0 10px;width:100%}.ajax-load-more .row .wrap.full{padding:10px}#alm-add-ons .group,.ajax-load-more .one_half{display:block;margin:0 0 2%;width:100%}.add-layout-cta{padding:10px}span.dismiss{display:block;font-size:12px;padding-top:20px;position:static}} \ No newline at end of file diff --git a/build/admin/index.js b/build/admin/index.js index c3c9cc0..25d235f 100644 --- a/build/admin/index.js +++ b/build/admin/index.js @@ -1,140 +1,2322 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ var ajaxloadmore; /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "./src/admin/js/index.js": -/*!*******************************!*\ - !*** ./src/admin/js/index.js ***! - \*******************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 283: +/***/ (function() { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scss_admin_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scss/admin.scss */ \"./src/admin/scss/admin.scss\");\n__webpack_require__(/*! ./libs/jquery.drops */ \"./src/admin/js/libs/jquery.drops.js\");\n__webpack_require__(/*! ./libs/jquery.tooltipster.min */ \"./src/admin/js/libs/jquery.tooltipster.min.js\");\n__webpack_require__(/*! ./libs/select2.min */ \"./src/admin/js/libs/select2.min.js\");\n\nvar ajax_load_more = ajax_load_more || {};\njQuery(document).ready(function ($) {\n 'use strict';\n\n ajax_load_more.options = {\n speed: 200\n };\n\n /**\n * Test REST API access\n *\n * @since 5.1.1\n */\n if ($('.restapi-access').length) {\n $.ajax({\n type: 'GET',\n url: alm_admin_localize.restapi.url + alm_admin_localize.restapi.namespace + '/test/',\n dataType: 'json',\n success: function success(data) {\n if (data.success) {\n console.log('Ajax Load More successfully connected to the WordPress REST API.');\n }\n },\n error: function error(status) {\n console.warn(status);\n $('.restapi-access').fadeIn();\n }\n });\n }\n\n /**\n * Build the header admin menu based on the sidebar.\n */\n function createAdminMenu() {\n var adminmenu = document.querySelector('#adminmenu .toplevel_page_ajax-load-more > ul');\n if (!adminmenu) {\n return;\n }\n var alm_header = document.querySelector('.ajax-load-more header.header-wrap');\n if (!alm_header) {\n return;\n }\n var menu = adminmenu.cloneNode(true);\n menu.setAttribute('class', '');\n var nav = document.createElement('nav');\n nav.appendChild(menu);\n alm_header.appendChild(nav);\n }\n createAdminMenu();\n\n /**\n * Tabbed Navigation Elements\n *\n * @since 5.4\n */\n var ACTIVE_TAB_CLASS = 'active';\n function openTabbedItem(button, almTabbedWrapper) {\n var activeBtn = document.querySelector('.alm-tabbed-wrapper--nav button.active'); // Get Currently Active Button.\n var id = button.dataset.id;\n\n // Remove currently active button.\n if (activeBtn) {\n activeBtn.classList.remove(ACTIVE_TAB_CLASS);\n }\n\n // Add Button Active Class.\n button.classList.add(ACTIVE_TAB_CLASS);\n\n // Activate Current Section\n if (almTabbedWrapper) {\n var currentActive = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section.' + ACTIVE_TAB_CLASS);\n var section = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section#' + id);\n if (currentActive && section) {\n currentActive.classList.remove(ACTIVE_TAB_CLASS);\n section.classList.add(ACTIVE_TAB_CLASS);\n section.focus({\n preventScroll: true\n });\n $('html, body').animate({\n scrollTop: $('.alm-tabbed-wrapper--sections').offset().top - 120\n }, 400, function () {\n history.replaceState({}, '', '#' + id);\n });\n }\n }\n }\n var almTabbedWrapper = document.querySelector('.alm-tabbed-wrapper');\n if (almTabbedWrapper) {\n var current = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section');\n if (current) {\n current.classList.add(ACTIVE_TAB_CLASS);\n }\n var tabbedNav = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--nav button');\n if (tabbedNav) {\n tabbedNav.forEach(function (item, index) {\n item.addEventListener('click', function () {\n openTabbedItem(this, almTabbedWrapper);\n });\n });\n }\n\n // Open section from hash.\n var hash = window.location.hash;\n if (hash) {\n hash = hash.replace('#', '');\n var targetBtn = document.querySelector('.alm-tabbed-wrapper--nav button[data-id=\"' + hash + '\"]');\n if (targetBtn) {\n targetBtn.click();\n }\n } else {\n document.querySelector('.alm-tabbed-wrapper--nav button').classList.add(ACTIVE_TAB_CLASS);\n }\n }\n\n /**\n * Save Repeater Templates with cmd + s and ctrl + s\n *\n * @since 5.1\n */\n document.addEventListener('keydown', function (e) {\n if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode === 83) {\n if (e.target.nodeName === 'TEXTAREA' && $(e.target).closest('.repeater-wrap')) {\n var btn = $(e.target).closest('.repeater-wrap').find('input.save-repeater');\n if (btn) {\n btn.click();\n }\n }\n e.preventDefault();\n }\n }, false);\n\n /*\n * Set focus in code mirror editor\n * @since 5.1\n */\n $('label.trigger-codemirror').on('click', function () {\n var el = $(this);\n var id = el.data('id');\n var cm = window['editor_' + id];\n if (cm) {\n cm.focus();\n cm.setCursor(cm.lineCount(), 0);\n }\n });\n\n /**\n * Setting panel save actions.\n *\n * @since 3.2.0\n */\n var almSettings = $('#alm_OptionsForm'),\n savingSettings = false,\n settingsForm = document.querySelector('#alm_OptionsForm'),\n settingsTarget = document.querySelector('.alm-settings-feedback');\n if (settingsForm) {\n document.body.appendChild(settingsTarget);\n }\n ajax_load_more.saveSettings = function () {\n if (savingSettings) {\n return false;\n }\n savingSettings = true;\n settingsForm.classList.add('--saving');\n settingsTarget.classList.add('--saving');\n settingsTarget.innerHTML = alm_admin_localize.settings_saving;\n almSettings.ajaxSubmit({\n // Success\n success: function success() {\n // Delay for effect\n setTimeout(function () {\n settingsTarget.classList.remove('--saving');\n settingsTarget.classList.add('--saved');\n settingsTarget.innerHTML = alm_admin_localize.settings_saved;\n settingsForm.classList.remove('--saving');\n savingSettings = false;\n setTimeout(function () {\n settingsTarget.classList.remove('--saved');\n }, 2500);\n }, 500);\n },\n // Error\n error: function error() {\n // Delay for effect\n setTimeout(function () {\n settingsTarget.classList.remove('--saving');\n settingsTarget.classList.add('--error');\n settingsTarget.innerHTML = alm_admin_localize.settings_error;\n settingsForm.classList.remove('--saving');\n console.warn(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);\n savingSettings = false;\n setTimeout(function () {\n settingsTarget.classList.remove('--error');\n }, 2500);\n }, 500);\n }\n });\n return false;\n };\n\n // On Change, save the settings\n var settingsTimer;\n $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {\n // Set a timer to avoid updating settings to frequently\n if (settingsTimer) clearTimeout(settingsTimer);\n settingsTimer = setTimeout(function () {\n ajax_load_more.saveSettings();\n }, 500);\n });\n\n /**\n * Download Repeater Template\n * Trigger the download of a repeater template from the admin\n *\n * @since 3.6\n */\n $('.download-repeater').on('click', function () {\n this.closest('form').submit();\n });\n\n /**\n * Tooltipster\n *\n * @see http://iamceege.github.io/tooltipster/\n * @since 2.8.4\n */\n $('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {\n $(this).tooltipster({\n delay: 125,\n speed: 125,\n maxWidth: 325\n }).tooltipster('show');\n });\n\n /**\n * Button preview pane\n * Found on Settings and Shortcode Builder.\n *\n * @since 2.8.4\n */\n $('select#alm_settings_btn_color').on('change', function () {\n var color = jQuery(this).val();\n // Remove other colors\n var wrap = $('.ajax-load-more-wrap');\n wrap.attr('class', '');\n wrap.addClass('ajax-load-more-wrap');\n wrap.addClass(color);\n $('#test-alm-button', wrap).removeClass('loading');\n\n // Add loading class if Infinite loading style\n if (color.indexOf('infinite') >= 0) {\n $('#test-alm-button', wrap).addClass('loading');\n }\n });\n $('select#alm_settings_btn_color').click(function (e) {\n e.preventDefault();\n });\n $('.alm-template-listing li a').click(function (e) {\n e.preventDefault();\n var el = $(this),\n val = el.data('path');\n el.parent().parent().next('.template-selection').val(val);\n });\n $('.alm-template-section-nav li a').click(function (e) {\n e.preventDefault();\n var el = $(this),\n index = el.parent().index(),\n parent = el.parent().parent().parent('.repeater-wrap');\n if (!el.hasClass('active')) {\n el.parent().addClass('active').siblings().removeClass('active');\n $('.alm-template-toggle', parent).hide();\n $('.alm-template-toggle', parent).eq(index).show();\n }\n });\n\n // Copy to Clipboard\n $('.copy-to-clipboard').on('click', function () {\n var btn = $(this).get(0);\n var input = document.querySelector('#shortcode_output');\n if (input && btn) {\n var old_txt = btn.innerHTML;\n var copied_txt = btn.dataset.copied ? btn.dataset.copied : old_txt;\n input.select();\n document.execCommand('copy');\n input.disabled = true;\n btn.disabled = true;\n input.focus();\n\n // Set Text of Button\n btn.innerHTML = copied_txt;\n setTimeout(function () {\n btn.innerHTML = old_txt;\n input.disabled = false;\n btn.disabled = false;\n }, 2500);\n }\n });\n ajax_load_more.copyToClipboard = function (text) {\n window.prompt('Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.', text);\n };\n\n // Copy link on repeater templates\n $('.alm-dropdown button.copy').click(function () {\n var container = $(this).closest('.repeater-wrap'),\n // find closet wrap\n el = container.data('name'); // get template name\n\n if (el === 'default') el = 'template-default';\n var c = $('#' + el).val(); // Get textarea val()\n ajax_load_more.copyToClipboard(c);\n });\n\n /*\n * Expand/Collapse shortcode headings\n *\n * @since 2.0.0\n */\n\n $(document).on('click', 'h3.heading', function () {\n var el = $(this);\n if ($(el).hasClass('open')) {\n $(el).next('.expand-wrap').slideDown(ajax_load_more.options.speed, 'alm_easeInOutQuad', function () {\n $(el).removeClass('open');\n });\n } else {\n $(el).next('.expand-wrap').slideUp(ajax_load_more.options.speed, 'alm_easeInOutQuad', function () {\n $(el).addClass('open');\n });\n }\n });\n\n // Toggle Links.\n $(document).on('click', '.toggle-all', function () {\n var el = $(this);\n if (el.hasClass('closed')) {\n el.removeClass('closed');\n $('h3.heading, h2.shortcode-title').removeClass('open');\n $('.section-wrap').slideDown(ajax_load_more.options.speed, 'alm_easeInOutQuad');\n $('.expand-wrap').slideDown(ajax_load_more.options.speed, 'alm_easeInOutQuad');\n } else {\n el.addClass('closed');\n $('h3.heading, h2.shortcode-title').addClass('open');\n $('.section-wrap').slideUp(ajax_load_more.options.speed, 'alm_easeInOutQuad');\n $('.expand-wrap').slideUp(ajax_load_more.options.speed, 'alm_easeInOutQuad');\n }\n });\n\n // Trigger click events on enter/return\n $('h3.heading, h2.shortcode-title').on('keypress', function (e) {\n var key = e.which;\n if (key == 13) {\n // the enter key code\n $(this).click();\n return false;\n }\n });\n\n /**\n * Activate License.\n *\n * @since 2.8.3\n */\n var almActivating = false;\n $(document).on('click', '.license-btn', function (e) {\n e.preventDefault();\n if (!almActivating) {\n $('.license-btn-wrap .msg').remove();\n almActivating = true;\n var el = $(this),\n wrap = el.closest('.license-btn-wrap'),\n parent = el.closest('.license'),\n type = el.data('type'),\n item = wrap.data('name'),\n url = wrap.data('url'),\n upgrade = wrap.data('upgrade-url'),\n status = wrap.data('option-status'),\n key = wrap.data('option-key'),\n license = parent.find('input[type=text]').val();\n $('.loading', parent).fadeIn(300);\n\n // Get value from Ajax\n $.ajax({\n type: 'GET',\n url: alm_admin_localize.ajax_admin_url,\n dataType: 'json',\n data: {\n action: 'alm_license_activation',\n nonce: alm_admin_localize.alm_admin_nonce,\n type: type,\n item: item,\n status: status,\n url: url,\n upgrade: upgrade,\n key: key,\n license: license\n },\n success: function success(data) {\n if (data.msg) {\n $('.license-btn-wrap', parent).append('
    ' + data.msg + '
    ');\n }\n if (data.license === 'valid') {\n $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);\n $('.license-title .status', parent).addClass('valid').removeClass('invalid');\n $('.activate.license-btn', parent).addClass('hide');\n $('.check-licence.license-btn', parent).addClass('hide');\n $('.deactivate.license-btn', parent).removeClass('hide');\n $('.renew-btn', parent).addClass('hide');\n $('.no-license', parent).slideUp(200);\n } else {\n $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);\n $('.license-title .status', parent).removeClass('valid').addClass('invalid');\n $('.activate.license-btn', parent).removeClass('hide');\n $('.check-licence.license-btn', parent).addClass('hide');\n $('.deactivate.license-btn', parent).addClass('hide');\n $('.no-license', parent).slideDown(200);\n }\n $('.loading', parent).delay(250).fadeOut(300);\n almActivating = false;\n },\n error: function error(status, _error) {\n console.warn(status, _error);\n $('.loading', parent).delay(250).fadeOut(300);\n almActivating = false;\n }\n });\n }\n });\n\n /**\n * Get layout value via Ajax and inject into template.\n *\n * @since 2.8.7\n */\n $(document).on('click', '.alm-layout-selection li .layout', function (e) {\n e.preventDefault();\n var el = $(this),\n type = el.data('type'),\n custom = el.hasClass('custom') ? 'true' : 'false',\n textarea = el.closest('.repeater-wrap').find('.CodeMirror'),\n layout_btn_text = el.html(),\n name = el.closest('.repeater-wrap').data('name');\n if (!el.hasClass('updating')) {\n el.addClass('updating');\n $('span', el).text(alm_admin_localize.applying_layout + '...');\n textarea.addClass('loading');\n\n // Get Codemirror Editor ID\n var eid = '';\n if (name === 'default') {\n // Default Template\n eid = window.editor_default;\n } else {\n // Repeater Templates\n eid = window['editor_' + name];\n }\n\n // Get value from Ajax\n $.ajax({\n type: 'GET',\n url: alm_admin_localize.ajax_admin_url,\n data: {\n action: 'alm_get_layout',\n type: type,\n custom: custom,\n nonce: alm_admin_localize.alm_admin_nonce\n },\n dataType: 'JSON',\n success: function success(data) {\n eid.setValue(data.value);\n\n // Clear button styles\n setTimeout(function () {\n $('span', el).text(alm_admin_localize.template_updated).blur();\n setTimeout(function () {\n el.removeClass('updating').html(layout_btn_text).blur(); // Close drop menu.\n el.closest('.alm-drop-btn').trigger('click');\n textarea.removeClass('loading');\n }, 400);\n }, 400);\n },\n error: function error(status) {\n console.warn(status);\n textarea.removeClass('loading');\n }\n });\n }\n });\n\n /**\n * Set Transient (Transient).\n *\n * @since 4.0\n */\n $(document).on('click', '.alm-transient button.notice-dismiss', function (e) {\n e.preventDefault();\n var el = $(this),\n container = el.parent('.alm-transient'),\n transient_name = container.data('transient'),\n duration = container.data('duration');\n\n // Get value from Ajax\n $.ajax({\n type: 'POST',\n url: alm_admin_localize.ajax_admin_url,\n data: {\n action: 'alm_set_transient',\n nonce: alm_admin_localize.alm_admin_nonce,\n transient_name: transient_name,\n duration: duration\n },\n success: function success(data) {\n container.fadeOut();\n },\n error: function error(xhr, status, _error2) {\n console.warn(status);\n }\n });\n });\n\n /**\n * Scroll to setting section.\n *\n * @since 2.7.3\n */\n $(document).on('change', '#alm-settings-nav', function (e) {\n e.preventDefault();\n var el = $(this),\n index = $('option:selected', el).index();\n if (index !== '#') {\n index = index - 1;\n $('html, body').animate({\n scrollTop: $('#alm_OptionsForm h2').eq(index).offset().top - 40\n }, 500);\n }\n });\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/admin/js/index.js?"); +var drops = drops || {}; +jQuery(document).ready(function ($) { + 'use strict'; -/***/ }), + drops.dropdown = function (e) { + var el = e.parent(); + var text = $('input[type="text"]', el); + if ($(el).hasClass('active')) { + //If is currently active, hide it + el.removeClass('active'); + $('.alm-dropdown', el).removeClass('active'); + return false; + } else if ($('.alm-dropdown').hasClass('active')) { + $('.alm-dropdown').each(function (i) { + $(this).removeClass('active'); + $(this).parent().removeClass('active'); + }); + } + $('.alm-dropdown').removeClass('active'); //remove active states from currently open dropdowns + el.addClass('active'); + $('.alm-dropdown', el).addClass('active'); + text.focus(); //Focus on input boxes -/***/ "./src/admin/js/libs/jquery.drops.js": -/*!*******************************************!*\ - !*** ./src/admin/js/libs/jquery.drops.js ***! - \*******************************************/ -/***/ (function() { + // Bind click event to window. + $(window).unbind('click').bind('click', drops.closeDropDown); + }; + drops.closeDropDown = function () { + $('.alm-dropdown').each(function () { + $(this).removeClass('active'); + $(this).parent().removeClass('active'); + }); + }; -eval("var drops = drops || {};\njQuery(document).ready(function ($) {\n 'use strict';\n\n drops.dropdown = function (e) {\n var el = e.parent();\n var text = $('input[type=\"text\"]', el);\n if ($(el).hasClass('active')) {\n //If is currently active, hide it\n el.removeClass('active');\n $('.alm-dropdown', el).removeClass('active');\n return false;\n } else if ($('.alm-dropdown').hasClass('active')) {\n $('.alm-dropdown').each(function (i) {\n $(this).removeClass('active');\n $(this).parent().removeClass('active');\n });\n }\n $('.alm-dropdown').removeClass('active'); //remove active states from currently open dropdowns\n el.addClass('active');\n $('.alm-dropdown', el).addClass('active');\n text.focus(); //Focus on input boxes\n\n // Bind click event to window.\n $(window).unbind('click').bind('click', drops.closeDropDown);\n };\n drops.closeDropDown = function () {\n $('.alm-dropdown').each(function () {\n $(this).removeClass('active');\n $(this).parent().removeClass('active');\n });\n };\n\n //Dropdown links\n $(document).on('click', '.alm-drop-btn a.target', function () {\n var e = $(this);\n drops.dropdown(e);\n return false;\n });\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/admin/js/libs/jquery.drops.js?"); + //Dropdown links + $(document).on('click', '.alm-drop-btn a.target', function () { + var e = $(this); + drops.dropdown(e); + return false; + }); +}); /***/ }), -/***/ "./src/admin/js/libs/jquery.tooltipster.min.js": -/*!*****************************************************!*\ - !*** ./src/admin/js/libs/jquery.tooltipster.min.js ***! - \*****************************************************/ +/***/ 324: /***/ (function() { -eval("function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/* Tooltipster v3.3.0 */;\n(function (e, t, n) {\n function s(t, n) {\n this.bodyOverflowX;\n this.callbacks = {\n hide: [],\n show: []\n };\n this.checkInterval = null;\n this.Content;\n this.$el = e(t);\n this.$elProxy;\n this.elProxyPosition;\n this.enabled = true;\n this.options = e.extend({}, i, n);\n this.mouseIsOverProxy = false;\n this.namespace = \"tooltipster-\" + Math.round(Math.random() * 1e5);\n this.Status = \"hidden\";\n this.timerHide = null;\n this.timerShow = null;\n this.$tooltip;\n this.options.iconTheme = this.options.iconTheme.replace(\".\", \"\");\n this.options.theme = this.options.theme.replace(\".\", \"\");\n this._init();\n }\n function o(t, n) {\n var r = true;\n e.each(t, function (e, i) {\n if (typeof n[e] === \"undefined\" || t[e] !== n[e]) {\n r = false;\n return false;\n }\n });\n return r;\n }\n function f() {\n return !a && u;\n }\n function l() {\n var e = n.body || n.documentElement,\n t = e.style,\n r = \"transition\";\n if (typeof t[r] == \"string\") {\n return true;\n }\n v = [\"Moz\", \"Webkit\", \"Khtml\", \"O\", \"ms\"], r = r.charAt(0).toUpperCase() + r.substr(1);\n for (var i = 0; i < v.length; i++) {\n if (typeof t[v[i] + r] == \"string\") {\n return true;\n }\n }\n return false;\n }\n var r = \"tooltipster\",\n i = {\n animation: \"fade\",\n arrow: true,\n arrowColor: \"\",\n autoClose: true,\n content: null,\n contentAsHTML: false,\n contentCloning: true,\n debug: true,\n delay: 200,\n minWidth: 0,\n maxWidth: null,\n functionInit: function functionInit(e, t) {},\n functionBefore: function functionBefore(e, t) {\n t();\n },\n functionReady: function functionReady(e, t) {},\n functionAfter: function functionAfter(e) {},\n hideOnClick: false,\n icon: \"(?)\",\n iconCloning: true,\n iconDesktop: false,\n iconTouch: false,\n iconTheme: \"tooltipster-icon\",\n interactive: false,\n interactiveTolerance: 350,\n multiple: false,\n offsetX: 0,\n offsetY: 0,\n onlyOne: false,\n position: \"top\",\n positionTracker: false,\n positionTrackerCallback: function positionTrackerCallback(e) {\n if (this.option(\"trigger\") == \"hover\" && this.option(\"autoClose\")) {\n this.hide();\n }\n },\n restoration: \"current\",\n speed: 350,\n timer: 0,\n theme: \"tooltipster-default\",\n touchDevices: true,\n trigger: \"hover\",\n updateAnimation: true\n };\n s.prototype = {\n _init: function _init() {\n var t = this;\n if (n.querySelector) {\n var r = null;\n if (t.$el.data(\"tooltipster-initialTitle\") === undefined) {\n r = t.$el.attr(\"title\");\n if (r === undefined) r = null;\n t.$el.data(\"tooltipster-initialTitle\", r);\n }\n if (t.options.content !== null) {\n t._content_set(t.options.content);\n } else {\n t._content_set(r);\n }\n var i = t.options.functionInit.call(t.$el, t.$el, t.Content);\n if (typeof i !== \"undefined\") t._content_set(i);\n t.$el.removeAttr(\"title\").addClass(\"tooltipstered\");\n if (!u && t.options.iconDesktop || u && t.options.iconTouch) {\n if (typeof t.options.icon === \"string\") {\n t.$elProxy = e('');\n t.$elProxy.text(t.options.icon);\n } else {\n if (t.options.iconCloning) t.$elProxy = t.options.icon.clone(true);else t.$elProxy = t.options.icon;\n }\n t.$elProxy.insertAfter(t.$el);\n } else {\n t.$elProxy = t.$el;\n }\n if (t.options.trigger == \"hover\") {\n t.$elProxy.on(\"mouseenter.\" + t.namespace, function () {\n if (!f() || t.options.touchDevices) {\n t.mouseIsOverProxy = true;\n t._show();\n }\n }).on(\"mouseleave.\" + t.namespace, function () {\n if (!f() || t.options.touchDevices) {\n t.mouseIsOverProxy = false;\n }\n });\n if (u && t.options.touchDevices) {\n t.$elProxy.on(\"touchstart.\" + t.namespace, function () {\n t._showNow();\n });\n }\n } else if (t.options.trigger == \"click\") {\n t.$elProxy.on(\"click.\" + t.namespace, function () {\n if (!f() || t.options.touchDevices) {\n t._show();\n }\n });\n }\n }\n },\n _show: function _show() {\n var e = this;\n if (e.Status != \"shown\" && e.Status != \"appearing\") {\n if (e.options.delay) {\n e.timerShow = setTimeout(function () {\n if (e.options.trigger == \"click\" || e.options.trigger == \"hover\" && e.mouseIsOverProxy) {\n e._showNow();\n }\n }, e.options.delay);\n } else e._showNow();\n }\n },\n _showNow: function _showNow(n) {\n var r = this;\n r.options.functionBefore.call(r.$el, r.$el, function () {\n if (r.enabled && r.Content !== null) {\n if (n) r.callbacks.show.push(n);\n r.callbacks.hide = [];\n clearTimeout(r.timerShow);\n r.timerShow = null;\n clearTimeout(r.timerHide);\n r.timerHide = null;\n if (r.options.onlyOne) {\n e(\".tooltipstered\").not(r.$el).each(function (t, n) {\n var r = e(n),\n i = r.data(\"tooltipster-ns\");\n e.each(i, function (e, t) {\n var n = r.data(t),\n i = n.status(),\n s = n.option(\"autoClose\");\n if (i !== \"hidden\" && i !== \"disappearing\" && s) {\n n.hide();\n }\n });\n });\n }\n var i = function i() {\n r.Status = \"shown\";\n e.each(r.callbacks.show, function (e, t) {\n t.call(r.$el);\n });\n r.callbacks.show = [];\n };\n if (r.Status !== \"hidden\") {\n var s = 0;\n if (r.Status === \"disappearing\") {\n r.Status = \"appearing\";\n if (l()) {\n r.$tooltip.clearQueue().removeClass(\"tooltipster-dying\").addClass(\"tooltipster-\" + r.options.animation + \"-show\");\n if (r.options.speed > 0) r.$tooltip.delay(r.options.speed);\n r.$tooltip.queue(i);\n } else {\n r.$tooltip.stop().fadeIn(i);\n }\n } else if (r.Status === \"shown\") {\n i();\n }\n } else {\n r.Status = \"appearing\";\n var s = r.options.speed;\n r.bodyOverflowX = e(\"body\").css(\"overflow-x\");\n e(\"body\").css(\"overflow-x\", \"hidden\");\n var o = \"tooltipster-\" + r.options.animation,\n a = \"-webkit-transition-duration: \" + r.options.speed + \"ms; -webkit-animation-duration: \" + r.options.speed + \"ms; -moz-transition-duration: \" + r.options.speed + \"ms; -moz-animation-duration: \" + r.options.speed + \"ms; -o-transition-duration: \" + r.options.speed + \"ms; -o-animation-duration: \" + r.options.speed + \"ms; -ms-transition-duration: \" + r.options.speed + \"ms; -ms-animation-duration: \" + r.options.speed + \"ms; transition-duration: \" + r.options.speed + \"ms; animation-duration: \" + r.options.speed + \"ms;\",\n f = r.options.minWidth ? \"min-width:\" + Math.round(r.options.minWidth) + \"px;\" : \"\",\n c = r.options.maxWidth ? \"max-width:\" + Math.round(r.options.maxWidth) + \"px;\" : \"\",\n h = r.options.interactive ? \"pointer-events: auto;\" : \"\";\n r.$tooltip = e('
    ');\n if (l()) r.$tooltip.addClass(o);\n r._content_insert();\n r.$tooltip.appendTo(\"body\");\n r.reposition();\n r.options.functionReady.call(r.$el, r.$el, r.$tooltip);\n if (l()) {\n r.$tooltip.addClass(o + \"-show\");\n if (r.options.speed > 0) r.$tooltip.delay(r.options.speed);\n r.$tooltip.queue(i);\n } else {\n r.$tooltip.css(\"display\", \"none\").fadeIn(r.options.speed, i);\n }\n r._interval_set();\n e(t).on(\"scroll.\" + r.namespace + \" resize.\" + r.namespace, function () {\n r.reposition();\n });\n if (r.options.autoClose) {\n e(\"body\").off(\".\" + r.namespace);\n if (r.options.trigger == \"hover\") {\n if (u) {\n setTimeout(function () {\n e(\"body\").on(\"touchstart.\" + r.namespace, function () {\n r.hide();\n });\n }, 0);\n }\n if (r.options.interactive) {\n if (u) {\n r.$tooltip.on(\"touchstart.\" + r.namespace, function (e) {\n e.stopPropagation();\n });\n }\n var p = null;\n r.$elProxy.add(r.$tooltip).on(\"mouseleave.\" + r.namespace + \"-autoClose\", function () {\n clearTimeout(p);\n p = setTimeout(function () {\n r.hide();\n }, r.options.interactiveTolerance);\n }).on(\"mouseenter.\" + r.namespace + \"-autoClose\", function () {\n clearTimeout(p);\n });\n } else {\n r.$elProxy.on(\"mouseleave.\" + r.namespace + \"-autoClose\", function () {\n r.hide();\n });\n }\n if (r.options.hideOnClick) {\n r.$elProxy.on(\"click.\" + r.namespace + \"-autoClose\", function () {\n r.hide();\n });\n }\n } else if (r.options.trigger == \"click\") {\n setTimeout(function () {\n e(\"body\").on(\"click.\" + r.namespace + \" touchstart.\" + r.namespace, function () {\n r.hide();\n });\n }, 0);\n if (r.options.interactive) {\n r.$tooltip.on(\"click.\" + r.namespace + \" touchstart.\" + r.namespace, function (e) {\n e.stopPropagation();\n });\n }\n }\n }\n }\n if (r.options.timer > 0) {\n r.timerHide = setTimeout(function () {\n r.timerHide = null;\n r.hide();\n }, r.options.timer + s);\n }\n }\n });\n },\n _interval_set: function _interval_set() {\n var t = this;\n t.checkInterval = setInterval(function () {\n if (e(\"body\").find(t.$el).length === 0 || e(\"body\").find(t.$elProxy).length === 0 || t.Status == \"hidden\" || e(\"body\").find(t.$tooltip).length === 0) {\n if (t.Status == \"shown\" || t.Status == \"appearing\") t.hide();\n t._interval_cancel();\n } else {\n if (t.options.positionTracker) {\n var n = t._repositionInfo(t.$elProxy),\n r = false;\n if (o(n.dimension, t.elProxyPosition.dimension)) {\n if (t.$elProxy.css(\"position\") === \"fixed\") {\n if (o(n.position, t.elProxyPosition.position)) r = true;\n } else {\n if (o(n.offset, t.elProxyPosition.offset)) r = true;\n }\n }\n if (!r) {\n t.reposition();\n t.options.positionTrackerCallback.call(t, t.$el);\n }\n }\n }\n }, 200);\n },\n _interval_cancel: function _interval_cancel() {\n clearInterval(this.checkInterval);\n this.checkInterval = null;\n },\n _content_set: function _content_set(e) {\n if (_typeof(e) === \"object\" && e !== null && this.options.contentCloning) {\n e = e.clone(true);\n }\n this.Content = e;\n },\n _content_insert: function _content_insert() {\n var e = this,\n t = this.$tooltip.find(\".tooltipster-content\");\n if (typeof e.Content === \"string\" && !e.options.contentAsHTML) {\n t.text(e.Content);\n } else {\n t.empty().append(e.Content);\n }\n },\n _update: function _update(e) {\n var t = this;\n t._content_set(e);\n if (t.Content !== null) {\n if (t.Status !== \"hidden\") {\n t._content_insert();\n t.reposition();\n if (t.options.updateAnimation) {\n if (l()) {\n t.$tooltip.css({\n width: \"\",\n \"-webkit-transition\": \"all \" + t.options.speed + \"ms, width 0ms, height 0ms, left 0ms, top 0ms\",\n \"-moz-transition\": \"all \" + t.options.speed + \"ms, width 0ms, height 0ms, left 0ms, top 0ms\",\n \"-o-transition\": \"all \" + t.options.speed + \"ms, width 0ms, height 0ms, left 0ms, top 0ms\",\n \"-ms-transition\": \"all \" + t.options.speed + \"ms, width 0ms, height 0ms, left 0ms, top 0ms\",\n transition: \"all \" + t.options.speed + \"ms, width 0ms, height 0ms, left 0ms, top 0ms\"\n }).addClass(\"tooltipster-content-changing\");\n setTimeout(function () {\n if (t.Status != \"hidden\") {\n t.$tooltip.removeClass(\"tooltipster-content-changing\");\n setTimeout(function () {\n if (t.Status !== \"hidden\") {\n t.$tooltip.css({\n \"-webkit-transition\": t.options.speed + \"ms\",\n \"-moz-transition\": t.options.speed + \"ms\",\n \"-o-transition\": t.options.speed + \"ms\",\n \"-ms-transition\": t.options.speed + \"ms\",\n transition: t.options.speed + \"ms\"\n });\n }\n }, t.options.speed);\n }\n }, t.options.speed);\n } else {\n t.$tooltip.fadeTo(t.options.speed, .5, function () {\n if (t.Status != \"hidden\") {\n t.$tooltip.fadeTo(t.options.speed, 1);\n }\n });\n }\n }\n }\n } else {\n t.hide();\n }\n },\n _repositionInfo: function _repositionInfo(e) {\n return {\n dimension: {\n height: e.outerHeight(false),\n width: e.outerWidth(false)\n },\n offset: e.offset(),\n position: {\n left: parseInt(e.css(\"left\")),\n top: parseInt(e.css(\"top\"))\n }\n };\n },\n hide: function hide(n) {\n var r = this;\n if (n) r.callbacks.hide.push(n);\n r.callbacks.show = [];\n clearTimeout(r.timerShow);\n r.timerShow = null;\n clearTimeout(r.timerHide);\n r.timerHide = null;\n var i = function i() {\n e.each(r.callbacks.hide, function (e, t) {\n t.call(r.$el);\n });\n r.callbacks.hide = [];\n };\n if (r.Status == \"shown\" || r.Status == \"appearing\") {\n r.Status = \"disappearing\";\n var s = function s() {\n r.Status = \"hidden\";\n if (_typeof(r.Content) == \"object\" && r.Content !== null) {\n r.Content.detach();\n }\n r.$tooltip.remove();\n r.$tooltip = null;\n e(t).off(\".\" + r.namespace);\n e(\"body\").off(\".\" + r.namespace).css(\"overflow-x\", r.bodyOverflowX);\n e(\"body\").off(\".\" + r.namespace);\n r.$elProxy.off(\".\" + r.namespace + \"-autoClose\");\n r.options.functionAfter.call(r.$el, r.$el);\n i();\n };\n if (l()) {\n r.$tooltip.clearQueue().removeClass(\"tooltipster-\" + r.options.animation + \"-show\").addClass(\"tooltipster-dying\");\n if (r.options.speed > 0) r.$tooltip.delay(r.options.speed);\n r.$tooltip.queue(s);\n } else {\n r.$tooltip.stop().fadeOut(r.options.speed, s);\n }\n } else if (r.Status == \"hidden\") {\n i();\n }\n return r;\n },\n show: function show(e) {\n this._showNow(e);\n return this;\n },\n update: function update(e) {\n return this.content(e);\n },\n content: function content(e) {\n if (typeof e === \"undefined\") {\n return this.Content;\n } else {\n this._update(e);\n return this;\n }\n },\n reposition: function reposition() {\n var n = this;\n if (e(\"body\").find(n.$tooltip).length !== 0) {\n var H = function H() {\n var n = e(t).scrollLeft();\n if (A - n < 0) {\n r = A - n;\n A = n;\n }\n if (A + o - n > i) {\n r = A - (i + n - o);\n A = i + n - o;\n }\n };\n var B = function B(n, r) {\n if (s.offset.top - e(t).scrollTop() - a - _ - 12 < 0 && r.indexOf(\"top\") > -1) {\n P = n;\n }\n if (s.offset.top + s.dimension.height + a + 12 + _ > e(t).scrollTop() + e(t).height() && r.indexOf(\"bottom\") > -1) {\n P = n;\n M = s.offset.top - a - _ - 12;\n }\n };\n n.$tooltip.css(\"width\", \"\");\n n.elProxyPosition = n._repositionInfo(n.$elProxy);\n var r = null,\n i = e(t).width(),\n s = n.elProxyPosition,\n o = n.$tooltip.outerWidth(false),\n u = n.$tooltip.innerWidth() + 1,\n a = n.$tooltip.outerHeight(false);\n if (n.$elProxy.is(\"area\")) {\n var f = n.$elProxy.attr(\"shape\"),\n l = n.$elProxy.parent().attr(\"name\"),\n c = e('img[usemap=\"#' + l + '\"]'),\n h = c.offset().left,\n p = c.offset().top,\n d = n.$elProxy.attr(\"coords\") !== undefined ? n.$elProxy.attr(\"coords\").split(\",\") : undefined;\n if (f == \"circle\") {\n var v = parseInt(d[0]),\n m = parseInt(d[1]),\n g = parseInt(d[2]);\n s.dimension.height = g * 2;\n s.dimension.width = g * 2;\n s.offset.top = p + m - g;\n s.offset.left = h + v - g;\n } else if (f == \"rect\") {\n var v = parseInt(d[0]),\n m = parseInt(d[1]),\n y = parseInt(d[2]),\n b = parseInt(d[3]);\n s.dimension.height = b - m;\n s.dimension.width = y - v;\n s.offset.top = p + m;\n s.offset.left = h + v;\n } else if (f == \"poly\") {\n var w = [],\n E = [],\n S = 0,\n x = 0,\n T = 0,\n N = 0,\n C = \"even\";\n for (var k = 0; k < d.length; k++) {\n var L = parseInt(d[k]);\n if (C == \"even\") {\n if (L > T) {\n T = L;\n if (k === 0) {\n S = T;\n }\n }\n if (L < S) {\n S = L;\n }\n C = \"odd\";\n } else {\n if (L > N) {\n N = L;\n if (k == 1) {\n x = N;\n }\n }\n if (L < x) {\n x = L;\n }\n C = \"even\";\n }\n }\n s.dimension.height = N - x;\n s.dimension.width = T - S;\n s.offset.top = p + x;\n s.offset.left = h + S;\n } else {\n s.dimension.height = c.outerHeight(false);\n s.dimension.width = c.outerWidth(false);\n s.offset.top = p;\n s.offset.left = h;\n }\n }\n var A = 0,\n O = 0,\n M = 0,\n _ = parseInt(n.options.offsetY),\n D = parseInt(n.options.offsetX),\n P = n.options.position;\n if (P == \"top\") {\n var j = s.offset.left + o - (s.offset.left + s.dimension.width);\n A = s.offset.left + D - j / 2;\n M = s.offset.top - a - _ - 12;\n H();\n B(\"bottom\", \"top\");\n }\n if (P == \"top-left\") {\n A = s.offset.left + D;\n M = s.offset.top - a - _ - 12;\n H();\n B(\"bottom-left\", \"top-left\");\n }\n if (P == \"top-right\") {\n A = s.offset.left + s.dimension.width + D - o;\n M = s.offset.top - a - _ - 12;\n H();\n B(\"bottom-right\", \"top-right\");\n }\n if (P == \"bottom\") {\n var j = s.offset.left + o - (s.offset.left + s.dimension.width);\n A = s.offset.left - j / 2 + D;\n M = s.offset.top + s.dimension.height + _ + 12;\n H();\n B(\"top\", \"bottom\");\n }\n if (P == \"bottom-left\") {\n A = s.offset.left + D;\n M = s.offset.top + s.dimension.height + _ + 12;\n H();\n B(\"top-left\", \"bottom-left\");\n }\n if (P == \"bottom-right\") {\n A = s.offset.left + s.dimension.width + D - o;\n M = s.offset.top + s.dimension.height + _ + 12;\n H();\n B(\"top-right\", \"bottom-right\");\n }\n if (P == \"left\") {\n A = s.offset.left - D - o - 12;\n O = s.offset.left + D + s.dimension.width + 12;\n var F = s.offset.top + a - (s.offset.top + s.dimension.height);\n M = s.offset.top - F / 2 - _;\n if (A < 0 && O + o > i) {\n var I = parseFloat(n.$tooltip.css(\"border-width\")) * 2,\n q = o + A - I;\n n.$tooltip.css(\"width\", q + \"px\");\n a = n.$tooltip.outerHeight(false);\n A = s.offset.left - D - q - 12 - I;\n F = s.offset.top + a - (s.offset.top + s.dimension.height);\n M = s.offset.top - F / 2 - _;\n } else if (A < 0) {\n A = s.offset.left + D + s.dimension.width + 12;\n r = \"left\";\n }\n }\n if (P == \"right\") {\n A = s.offset.left + D + s.dimension.width + 12;\n O = s.offset.left - D - o - 12;\n var F = s.offset.top + a - (s.offset.top + s.dimension.height);\n M = s.offset.top - F / 2 - _;\n if (A + o > i && O < 0) {\n var I = parseFloat(n.$tooltip.css(\"border-width\")) * 2,\n q = i - A - I;\n n.$tooltip.css(\"width\", q + \"px\");\n a = n.$tooltip.outerHeight(false);\n F = s.offset.top + a - (s.offset.top + s.dimension.height);\n M = s.offset.top - F / 2 - _;\n } else if (A + o > i) {\n A = s.offset.left - D - o - 12;\n r = \"right\";\n }\n }\n if (n.options.arrow) {\n var R = \"tooltipster-arrow-\" + P;\n if (n.options.arrowColor.length < 1) {\n var U = n.$tooltip.css(\"background-color\");\n } else {\n var U = n.options.arrowColor;\n }\n if (!r) {\n r = \"\";\n } else if (r == \"left\") {\n R = \"tooltipster-arrow-right\";\n r = \"\";\n } else if (r == \"right\") {\n R = \"tooltipster-arrow-left\";\n r = \"\";\n } else {\n r = \"left:\" + Math.round(r) + \"px;\";\n }\n if (P == \"top\" || P == \"top-left\" || P == \"top-right\") {\n var z = parseFloat(n.$tooltip.css(\"border-bottom-width\")),\n W = n.$tooltip.css(\"border-bottom-color\");\n } else if (P == \"bottom\" || P == \"bottom-left\" || P == \"bottom-right\") {\n var z = parseFloat(n.$tooltip.css(\"border-top-width\")),\n W = n.$tooltip.css(\"border-top-color\");\n } else if (P == \"left\") {\n var z = parseFloat(n.$tooltip.css(\"border-right-width\")),\n W = n.$tooltip.css(\"border-right-color\");\n } else if (P == \"right\") {\n var z = parseFloat(n.$tooltip.css(\"border-left-width\")),\n W = n.$tooltip.css(\"border-left-color\");\n } else {\n var z = parseFloat(n.$tooltip.css(\"border-bottom-width\")),\n W = n.$tooltip.css(\"border-bottom-color\");\n }\n if (z > 1) {\n z++;\n }\n var X = \"\";\n if (z !== 0) {\n var V = \"\",\n J = \"border-color: \" + W + \";\";\n if (R.indexOf(\"bottom\") !== -1) {\n V = \"margin-top: -\" + Math.round(z) + \"px;\";\n } else if (R.indexOf(\"top\") !== -1) {\n V = \"margin-bottom: -\" + Math.round(z) + \"px;\";\n } else if (R.indexOf(\"left\") !== -1) {\n V = \"margin-right: -\" + Math.round(z) + \"px;\";\n } else if (R.indexOf(\"right\") !== -1) {\n V = \"margin-left: -\" + Math.round(z) + \"px;\";\n }\n X = '';\n }\n n.$tooltip.find(\".tooltipster-arrow\").remove();\n var K = '
    ' + X + '
    ';\n n.$tooltip.append(K);\n }\n n.$tooltip.css({\n top: Math.round(M) + \"px\",\n left: Math.round(A) + \"px\"\n });\n }\n return n;\n },\n enable: function enable() {\n this.enabled = true;\n return this;\n },\n disable: function disable() {\n this.hide();\n this.enabled = false;\n return this;\n },\n destroy: function destroy() {\n var t = this;\n t.hide();\n if (t.$el[0] !== t.$elProxy[0]) {\n t.$elProxy.remove();\n }\n t.$el.removeData(t.namespace).off(\".\" + t.namespace);\n var n = t.$el.data(\"tooltipster-ns\");\n if (n.length === 1) {\n var r = null;\n if (t.options.restoration === \"previous\") {\n r = t.$el.data(\"tooltipster-initialTitle\");\n } else if (t.options.restoration === \"current\") {\n r = typeof t.Content === \"string\" ? t.Content : e(\"
    \").append(t.Content).html();\n }\n if (r) {\n t.$el.attr(\"title\", r);\n }\n t.$el.removeClass(\"tooltipstered\").removeData(\"tooltipster-ns\").removeData(\"tooltipster-initialTitle\");\n } else {\n n = e.grep(n, function (e, n) {\n return e !== t.namespace;\n });\n t.$el.data(\"tooltipster-ns\", n);\n }\n return t;\n },\n elementIcon: function elementIcon() {\n return this.$el[0] !== this.$elProxy[0] ? this.$elProxy[0] : undefined;\n },\n elementTooltip: function elementTooltip() {\n return this.$tooltip ? this.$tooltip[0] : undefined;\n },\n option: function option(e, t) {\n if (typeof t == \"undefined\") return this.options[e];else {\n this.options[e] = t;\n return this;\n }\n },\n status: function status() {\n return this.Status;\n }\n };\n e.fn[r] = function () {\n var t = arguments;\n if (this.length === 0) {\n if (typeof t[0] === \"string\") {\n var n = true;\n switch (t[0]) {\n case \"setDefaults\":\n e.extend(i, t[1]);\n break;\n default:\n n = false;\n break;\n }\n if (n) return true;else return this;\n } else {\n return this;\n }\n } else {\n if (typeof t[0] === \"string\") {\n var r = \"#*$~&\";\n this.each(function () {\n var n = e(this).data(\"tooltipster-ns\"),\n i = n ? e(this).data(n[0]) : null;\n if (i) {\n if (typeof i[t[0]] === \"function\") {\n var s = i[t[0]](t[1], t[2]);\n } else {\n throw new Error('Unknown method .tooltipster(\"' + t[0] + '\")');\n }\n if (s !== i) {\n r = s;\n return false;\n }\n } else {\n throw new Error(\"You called Tooltipster's \\\"\" + t[0] + '\" method on an uninitialized element');\n }\n });\n return r !== \"#*$~&\" ? r : this;\n } else {\n var o = [],\n u = t[0] && typeof t[0].multiple !== \"undefined\",\n a = u && t[0].multiple || !u && i.multiple,\n f = t[0] && typeof t[0].debug !== \"undefined\",\n l = f && t[0].debug || !f && i.debug;\n this.each(function () {\n var n = false,\n r = e(this).data(\"tooltipster-ns\"),\n i = null;\n if (!r) {\n n = true;\n } else if (a) {\n n = true;\n } else if (l) {\n console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the \"multiple\" option to attach more tooltips.');\n }\n if (n) {\n i = new s(this, t[0]);\n if (!r) r = [];\n r.push(i.namespace);\n e(this).data(\"tooltipster-ns\", r);\n e(this).data(i.namespace, i);\n }\n o.push(i);\n });\n if (a) return o;else return this;\n }\n }\n };\n var u = !!(\"ontouchstart\" in t);\n var a = false;\n e(\"body\").one(\"mousemove\", function () {\n a = true;\n });\n})(jQuery, window, document);\n\n//# sourceURL=webpack://ajaxloadmore/./src/admin/js/libs/jquery.tooltipster.min.js?"); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +/* Tooltipster v3.3.0 */; +(function (e, t, n) { + function s(t, n) { + this.bodyOverflowX; + this.callbacks = { + hide: [], + show: [] + }; + this.checkInterval = null; + this.Content; + this.$el = e(t); + this.$elProxy; + this.elProxyPosition; + this.enabled = true; + this.options = e.extend({}, i, n); + this.mouseIsOverProxy = false; + this.namespace = "tooltipster-" + Math.round(Math.random() * 1e5); + this.Status = "hidden"; + this.timerHide = null; + this.timerShow = null; + this.$tooltip; + this.options.iconTheme = this.options.iconTheme.replace(".", ""); + this.options.theme = this.options.theme.replace(".", ""); + this._init(); + } + function o(t, n) { + var r = true; + e.each(t, function (e, i) { + if (typeof n[e] === "undefined" || t[e] !== n[e]) { + r = false; + return false; + } + }); + return r; + } + function f() { + return !a && u; + } + function l() { + var e = n.body || n.documentElement, + t = e.style, + r = "transition"; + if (typeof t[r] == "string") { + return true; + } + v = ["Moz", "Webkit", "Khtml", "O", "ms"], r = r.charAt(0).toUpperCase() + r.substr(1); + for (var i = 0; i < v.length; i++) { + if (typeof t[v[i] + r] == "string") { + return true; + } + } + return false; + } + var r = "tooltipster", + i = { + animation: "fade", + arrow: true, + arrowColor: "", + autoClose: true, + content: null, + contentAsHTML: false, + contentCloning: true, + debug: true, + delay: 200, + minWidth: 0, + maxWidth: null, + functionInit: function functionInit(e, t) {}, + functionBefore: function functionBefore(e, t) { + t(); + }, + functionReady: function functionReady(e, t) {}, + functionAfter: function functionAfter(e) {}, + hideOnClick: false, + icon: "(?)", + iconCloning: true, + iconDesktop: false, + iconTouch: false, + iconTheme: "tooltipster-icon", + interactive: false, + interactiveTolerance: 350, + multiple: false, + offsetX: 0, + offsetY: 0, + onlyOne: false, + position: "top", + positionTracker: false, + positionTrackerCallback: function positionTrackerCallback(e) { + if (this.option("trigger") == "hover" && this.option("autoClose")) { + this.hide(); + } + }, + restoration: "current", + speed: 350, + timer: 0, + theme: "tooltipster-default", + touchDevices: true, + trigger: "hover", + updateAnimation: true + }; + s.prototype = { + _init: function _init() { + var t = this; + if (n.querySelector) { + var r = null; + if (t.$el.data("tooltipster-initialTitle") === undefined) { + r = t.$el.attr("title"); + if (r === undefined) r = null; + t.$el.data("tooltipster-initialTitle", r); + } + if (t.options.content !== null) { + t._content_set(t.options.content); + } else { + t._content_set(r); + } + var i = t.options.functionInit.call(t.$el, t.$el, t.Content); + if (typeof i !== "undefined") t._content_set(i); + t.$el.removeAttr("title").addClass("tooltipstered"); + if (!u && t.options.iconDesktop || u && t.options.iconTouch) { + if (typeof t.options.icon === "string") { + t.$elProxy = e(''); + t.$elProxy.text(t.options.icon); + } else { + if (t.options.iconCloning) t.$elProxy = t.options.icon.clone(true);else t.$elProxy = t.options.icon; + } + t.$elProxy.insertAfter(t.$el); + } else { + t.$elProxy = t.$el; + } + if (t.options.trigger == "hover") { + t.$elProxy.on("mouseenter." + t.namespace, function () { + if (!f() || t.options.touchDevices) { + t.mouseIsOverProxy = true; + t._show(); + } + }).on("mouseleave." + t.namespace, function () { + if (!f() || t.options.touchDevices) { + t.mouseIsOverProxy = false; + } + }); + if (u && t.options.touchDevices) { + t.$elProxy.on("touchstart." + t.namespace, function () { + t._showNow(); + }); + } + } else if (t.options.trigger == "click") { + t.$elProxy.on("click." + t.namespace, function () { + if (!f() || t.options.touchDevices) { + t._show(); + } + }); + } + } + }, + _show: function _show() { + var e = this; + if (e.Status != "shown" && e.Status != "appearing") { + if (e.options.delay) { + e.timerShow = setTimeout(function () { + if (e.options.trigger == "click" || e.options.trigger == "hover" && e.mouseIsOverProxy) { + e._showNow(); + } + }, e.options.delay); + } else e._showNow(); + } + }, + _showNow: function _showNow(n) { + var r = this; + r.options.functionBefore.call(r.$el, r.$el, function () { + if (r.enabled && r.Content !== null) { + if (n) r.callbacks.show.push(n); + r.callbacks.hide = []; + clearTimeout(r.timerShow); + r.timerShow = null; + clearTimeout(r.timerHide); + r.timerHide = null; + if (r.options.onlyOne) { + e(".tooltipstered").not(r.$el).each(function (t, n) { + var r = e(n), + i = r.data("tooltipster-ns"); + e.each(i, function (e, t) { + var n = r.data(t), + i = n.status(), + s = n.option("autoClose"); + if (i !== "hidden" && i !== "disappearing" && s) { + n.hide(); + } + }); + }); + } + var i = function i() { + r.Status = "shown"; + e.each(r.callbacks.show, function (e, t) { + t.call(r.$el); + }); + r.callbacks.show = []; + }; + if (r.Status !== "hidden") { + var s = 0; + if (r.Status === "disappearing") { + r.Status = "appearing"; + if (l()) { + r.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-" + r.options.animation + "-show"); + if (r.options.speed > 0) r.$tooltip.delay(r.options.speed); + r.$tooltip.queue(i); + } else { + r.$tooltip.stop().fadeIn(i); + } + } else if (r.Status === "shown") { + i(); + } + } else { + r.Status = "appearing"; + var s = r.options.speed; + r.bodyOverflowX = e("body").css("overflow-x"); + e("body").css("overflow-x", "hidden"); + var o = "tooltipster-" + r.options.animation, + a = "-webkit-transition-duration: " + r.options.speed + "ms; -webkit-animation-duration: " + r.options.speed + "ms; -moz-transition-duration: " + r.options.speed + "ms; -moz-animation-duration: " + r.options.speed + "ms; -o-transition-duration: " + r.options.speed + "ms; -o-animation-duration: " + r.options.speed + "ms; -ms-transition-duration: " + r.options.speed + "ms; -ms-animation-duration: " + r.options.speed + "ms; transition-duration: " + r.options.speed + "ms; animation-duration: " + r.options.speed + "ms;", + f = r.options.minWidth ? "min-width:" + Math.round(r.options.minWidth) + "px;" : "", + c = r.options.maxWidth ? "max-width:" + Math.round(r.options.maxWidth) + "px;" : "", + h = r.options.interactive ? "pointer-events: auto;" : ""; + r.$tooltip = e('
    '); + if (l()) r.$tooltip.addClass(o); + r._content_insert(); + r.$tooltip.appendTo("body"); + r.reposition(); + r.options.functionReady.call(r.$el, r.$el, r.$tooltip); + if (l()) { + r.$tooltip.addClass(o + "-show"); + if (r.options.speed > 0) r.$tooltip.delay(r.options.speed); + r.$tooltip.queue(i); + } else { + r.$tooltip.css("display", "none").fadeIn(r.options.speed, i); + } + r._interval_set(); + e(t).on("scroll." + r.namespace + " resize." + r.namespace, function () { + r.reposition(); + }); + if (r.options.autoClose) { + e("body").off("." + r.namespace); + if (r.options.trigger == "hover") { + if (u) { + setTimeout(function () { + e("body").on("touchstart." + r.namespace, function () { + r.hide(); + }); + }, 0); + } + if (r.options.interactive) { + if (u) { + r.$tooltip.on("touchstart." + r.namespace, function (e) { + e.stopPropagation(); + }); + } + var p = null; + r.$elProxy.add(r.$tooltip).on("mouseleave." + r.namespace + "-autoClose", function () { + clearTimeout(p); + p = setTimeout(function () { + r.hide(); + }, r.options.interactiveTolerance); + }).on("mouseenter." + r.namespace + "-autoClose", function () { + clearTimeout(p); + }); + } else { + r.$elProxy.on("mouseleave." + r.namespace + "-autoClose", function () { + r.hide(); + }); + } + if (r.options.hideOnClick) { + r.$elProxy.on("click." + r.namespace + "-autoClose", function () { + r.hide(); + }); + } + } else if (r.options.trigger == "click") { + setTimeout(function () { + e("body").on("click." + r.namespace + " touchstart." + r.namespace, function () { + r.hide(); + }); + }, 0); + if (r.options.interactive) { + r.$tooltip.on("click." + r.namespace + " touchstart." + r.namespace, function (e) { + e.stopPropagation(); + }); + } + } + } + } + if (r.options.timer > 0) { + r.timerHide = setTimeout(function () { + r.timerHide = null; + r.hide(); + }, r.options.timer + s); + } + } + }); + }, + _interval_set: function _interval_set() { + var t = this; + t.checkInterval = setInterval(function () { + if (e("body").find(t.$el).length === 0 || e("body").find(t.$elProxy).length === 0 || t.Status == "hidden" || e("body").find(t.$tooltip).length === 0) { + if (t.Status == "shown" || t.Status == "appearing") t.hide(); + t._interval_cancel(); + } else { + if (t.options.positionTracker) { + var n = t._repositionInfo(t.$elProxy), + r = false; + if (o(n.dimension, t.elProxyPosition.dimension)) { + if (t.$elProxy.css("position") === "fixed") { + if (o(n.position, t.elProxyPosition.position)) r = true; + } else { + if (o(n.offset, t.elProxyPosition.offset)) r = true; + } + } + if (!r) { + t.reposition(); + t.options.positionTrackerCallback.call(t, t.$el); + } + } + } + }, 200); + }, + _interval_cancel: function _interval_cancel() { + clearInterval(this.checkInterval); + this.checkInterval = null; + }, + _content_set: function _content_set(e) { + if (_typeof(e) === "object" && e !== null && this.options.contentCloning) { + e = e.clone(true); + } + this.Content = e; + }, + _content_insert: function _content_insert() { + var e = this, + t = this.$tooltip.find(".tooltipster-content"); + if (typeof e.Content === "string" && !e.options.contentAsHTML) { + t.text(e.Content); + } else { + t.empty().append(e.Content); + } + }, + _update: function _update(e) { + var t = this; + t._content_set(e); + if (t.Content !== null) { + if (t.Status !== "hidden") { + t._content_insert(); + t.reposition(); + if (t.options.updateAnimation) { + if (l()) { + t.$tooltip.css({ + width: "", + "-webkit-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms", + "-moz-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms", + "-o-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms", + "-ms-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms", + transition: "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms" + }).addClass("tooltipster-content-changing"); + setTimeout(function () { + if (t.Status != "hidden") { + t.$tooltip.removeClass("tooltipster-content-changing"); + setTimeout(function () { + if (t.Status !== "hidden") { + t.$tooltip.css({ + "-webkit-transition": t.options.speed + "ms", + "-moz-transition": t.options.speed + "ms", + "-o-transition": t.options.speed + "ms", + "-ms-transition": t.options.speed + "ms", + transition: t.options.speed + "ms" + }); + } + }, t.options.speed); + } + }, t.options.speed); + } else { + t.$tooltip.fadeTo(t.options.speed, .5, function () { + if (t.Status != "hidden") { + t.$tooltip.fadeTo(t.options.speed, 1); + } + }); + } + } + } + } else { + t.hide(); + } + }, + _repositionInfo: function _repositionInfo(e) { + return { + dimension: { + height: e.outerHeight(false), + width: e.outerWidth(false) + }, + offset: e.offset(), + position: { + left: parseInt(e.css("left")), + top: parseInt(e.css("top")) + } + }; + }, + hide: function hide(n) { + var r = this; + if (n) r.callbacks.hide.push(n); + r.callbacks.show = []; + clearTimeout(r.timerShow); + r.timerShow = null; + clearTimeout(r.timerHide); + r.timerHide = null; + var i = function i() { + e.each(r.callbacks.hide, function (e, t) { + t.call(r.$el); + }); + r.callbacks.hide = []; + }; + if (r.Status == "shown" || r.Status == "appearing") { + r.Status = "disappearing"; + var s = function s() { + r.Status = "hidden"; + if (_typeof(r.Content) == "object" && r.Content !== null) { + r.Content.detach(); + } + r.$tooltip.remove(); + r.$tooltip = null; + e(t).off("." + r.namespace); + e("body").off("." + r.namespace).css("overflow-x", r.bodyOverflowX); + e("body").off("." + r.namespace); + r.$elProxy.off("." + r.namespace + "-autoClose"); + r.options.functionAfter.call(r.$el, r.$el); + i(); + }; + if (l()) { + r.$tooltip.clearQueue().removeClass("tooltipster-" + r.options.animation + "-show").addClass("tooltipster-dying"); + if (r.options.speed > 0) r.$tooltip.delay(r.options.speed); + r.$tooltip.queue(s); + } else { + r.$tooltip.stop().fadeOut(r.options.speed, s); + } + } else if (r.Status == "hidden") { + i(); + } + return r; + }, + show: function show(e) { + this._showNow(e); + return this; + }, + update: function update(e) { + return this.content(e); + }, + content: function content(e) { + if (typeof e === "undefined") { + return this.Content; + } else { + this._update(e); + return this; + } + }, + reposition: function reposition() { + var n = this; + if (e("body").find(n.$tooltip).length !== 0) { + var H = function H() { + var n = e(t).scrollLeft(); + if (A - n < 0) { + r = A - n; + A = n; + } + if (A + o - n > i) { + r = A - (i + n - o); + A = i + n - o; + } + }; + var B = function B(n, r) { + if (s.offset.top - e(t).scrollTop() - a - _ - 12 < 0 && r.indexOf("top") > -1) { + P = n; + } + if (s.offset.top + s.dimension.height + a + 12 + _ > e(t).scrollTop() + e(t).height() && r.indexOf("bottom") > -1) { + P = n; + M = s.offset.top - a - _ - 12; + } + }; + n.$tooltip.css("width", ""); + n.elProxyPosition = n._repositionInfo(n.$elProxy); + var r = null, + i = e(t).width(), + s = n.elProxyPosition, + o = n.$tooltip.outerWidth(false), + u = n.$tooltip.innerWidth() + 1, + a = n.$tooltip.outerHeight(false); + if (n.$elProxy.is("area")) { + var f = n.$elProxy.attr("shape"), + l = n.$elProxy.parent().attr("name"), + c = e('img[usemap="#' + l + '"]'), + h = c.offset().left, + p = c.offset().top, + d = n.$elProxy.attr("coords") !== undefined ? n.$elProxy.attr("coords").split(",") : undefined; + if (f == "circle") { + var v = parseInt(d[0]), + m = parseInt(d[1]), + g = parseInt(d[2]); + s.dimension.height = g * 2; + s.dimension.width = g * 2; + s.offset.top = p + m - g; + s.offset.left = h + v - g; + } else if (f == "rect") { + var v = parseInt(d[0]), + m = parseInt(d[1]), + y = parseInt(d[2]), + b = parseInt(d[3]); + s.dimension.height = b - m; + s.dimension.width = y - v; + s.offset.top = p + m; + s.offset.left = h + v; + } else if (f == "poly") { + var w = [], + E = [], + S = 0, + x = 0, + T = 0, + N = 0, + C = "even"; + for (var k = 0; k < d.length; k++) { + var L = parseInt(d[k]); + if (C == "even") { + if (L > T) { + T = L; + if (k === 0) { + S = T; + } + } + if (L < S) { + S = L; + } + C = "odd"; + } else { + if (L > N) { + N = L; + if (k == 1) { + x = N; + } + } + if (L < x) { + x = L; + } + C = "even"; + } + } + s.dimension.height = N - x; + s.dimension.width = T - S; + s.offset.top = p + x; + s.offset.left = h + S; + } else { + s.dimension.height = c.outerHeight(false); + s.dimension.width = c.outerWidth(false); + s.offset.top = p; + s.offset.left = h; + } + } + var A = 0, + O = 0, + M = 0, + _ = parseInt(n.options.offsetY), + D = parseInt(n.options.offsetX), + P = n.options.position; + if (P == "top") { + var j = s.offset.left + o - (s.offset.left + s.dimension.width); + A = s.offset.left + D - j / 2; + M = s.offset.top - a - _ - 12; + H(); + B("bottom", "top"); + } + if (P == "top-left") { + A = s.offset.left + D; + M = s.offset.top - a - _ - 12; + H(); + B("bottom-left", "top-left"); + } + if (P == "top-right") { + A = s.offset.left + s.dimension.width + D - o; + M = s.offset.top - a - _ - 12; + H(); + B("bottom-right", "top-right"); + } + if (P == "bottom") { + var j = s.offset.left + o - (s.offset.left + s.dimension.width); + A = s.offset.left - j / 2 + D; + M = s.offset.top + s.dimension.height + _ + 12; + H(); + B("top", "bottom"); + } + if (P == "bottom-left") { + A = s.offset.left + D; + M = s.offset.top + s.dimension.height + _ + 12; + H(); + B("top-left", "bottom-left"); + } + if (P == "bottom-right") { + A = s.offset.left + s.dimension.width + D - o; + M = s.offset.top + s.dimension.height + _ + 12; + H(); + B("top-right", "bottom-right"); + } + if (P == "left") { + A = s.offset.left - D - o - 12; + O = s.offset.left + D + s.dimension.width + 12; + var F = s.offset.top + a - (s.offset.top + s.dimension.height); + M = s.offset.top - F / 2 - _; + if (A < 0 && O + o > i) { + var I = parseFloat(n.$tooltip.css("border-width")) * 2, + q = o + A - I; + n.$tooltip.css("width", q + "px"); + a = n.$tooltip.outerHeight(false); + A = s.offset.left - D - q - 12 - I; + F = s.offset.top + a - (s.offset.top + s.dimension.height); + M = s.offset.top - F / 2 - _; + } else if (A < 0) { + A = s.offset.left + D + s.dimension.width + 12; + r = "left"; + } + } + if (P == "right") { + A = s.offset.left + D + s.dimension.width + 12; + O = s.offset.left - D - o - 12; + var F = s.offset.top + a - (s.offset.top + s.dimension.height); + M = s.offset.top - F / 2 - _; + if (A + o > i && O < 0) { + var I = parseFloat(n.$tooltip.css("border-width")) * 2, + q = i - A - I; + n.$tooltip.css("width", q + "px"); + a = n.$tooltip.outerHeight(false); + F = s.offset.top + a - (s.offset.top + s.dimension.height); + M = s.offset.top - F / 2 - _; + } else if (A + o > i) { + A = s.offset.left - D - o - 12; + r = "right"; + } + } + if (n.options.arrow) { + var R = "tooltipster-arrow-" + P; + if (n.options.arrowColor.length < 1) { + var U = n.$tooltip.css("background-color"); + } else { + var U = n.options.arrowColor; + } + if (!r) { + r = ""; + } else if (r == "left") { + R = "tooltipster-arrow-right"; + r = ""; + } else if (r == "right") { + R = "tooltipster-arrow-left"; + r = ""; + } else { + r = "left:" + Math.round(r) + "px;"; + } + if (P == "top" || P == "top-left" || P == "top-right") { + var z = parseFloat(n.$tooltip.css("border-bottom-width")), + W = n.$tooltip.css("border-bottom-color"); + } else if (P == "bottom" || P == "bottom-left" || P == "bottom-right") { + var z = parseFloat(n.$tooltip.css("border-top-width")), + W = n.$tooltip.css("border-top-color"); + } else if (P == "left") { + var z = parseFloat(n.$tooltip.css("border-right-width")), + W = n.$tooltip.css("border-right-color"); + } else if (P == "right") { + var z = parseFloat(n.$tooltip.css("border-left-width")), + W = n.$tooltip.css("border-left-color"); + } else { + var z = parseFloat(n.$tooltip.css("border-bottom-width")), + W = n.$tooltip.css("border-bottom-color"); + } + if (z > 1) { + z++; + } + var X = ""; + if (z !== 0) { + var V = "", + J = "border-color: " + W + ";"; + if (R.indexOf("bottom") !== -1) { + V = "margin-top: -" + Math.round(z) + "px;"; + } else if (R.indexOf("top") !== -1) { + V = "margin-bottom: -" + Math.round(z) + "px;"; + } else if (R.indexOf("left") !== -1) { + V = "margin-right: -" + Math.round(z) + "px;"; + } else if (R.indexOf("right") !== -1) { + V = "margin-left: -" + Math.round(z) + "px;"; + } + X = ''; + } + n.$tooltip.find(".tooltipster-arrow").remove(); + var K = '
    ' + X + '
    '; + n.$tooltip.append(K); + } + n.$tooltip.css({ + top: Math.round(M) + "px", + left: Math.round(A) + "px" + }); + } + return n; + }, + enable: function enable() { + this.enabled = true; + return this; + }, + disable: function disable() { + this.hide(); + this.enabled = false; + return this; + }, + destroy: function destroy() { + var t = this; + t.hide(); + if (t.$el[0] !== t.$elProxy[0]) { + t.$elProxy.remove(); + } + t.$el.removeData(t.namespace).off("." + t.namespace); + var n = t.$el.data("tooltipster-ns"); + if (n.length === 1) { + var r = null; + if (t.options.restoration === "previous") { + r = t.$el.data("tooltipster-initialTitle"); + } else if (t.options.restoration === "current") { + r = typeof t.Content === "string" ? t.Content : e("
    ").append(t.Content).html(); + } + if (r) { + t.$el.attr("title", r); + } + t.$el.removeClass("tooltipstered").removeData("tooltipster-ns").removeData("tooltipster-initialTitle"); + } else { + n = e.grep(n, function (e, n) { + return e !== t.namespace; + }); + t.$el.data("tooltipster-ns", n); + } + return t; + }, + elementIcon: function elementIcon() { + return this.$el[0] !== this.$elProxy[0] ? this.$elProxy[0] : undefined; + }, + elementTooltip: function elementTooltip() { + return this.$tooltip ? this.$tooltip[0] : undefined; + }, + option: function option(e, t) { + if (typeof t == "undefined") return this.options[e];else { + this.options[e] = t; + return this; + } + }, + status: function status() { + return this.Status; + } + }; + e.fn[r] = function () { + var t = arguments; + if (this.length === 0) { + if (typeof t[0] === "string") { + var n = true; + switch (t[0]) { + case "setDefaults": + e.extend(i, t[1]); + break; + default: + n = false; + break; + } + if (n) return true;else return this; + } else { + return this; + } + } else { + if (typeof t[0] === "string") { + var r = "#*$~&"; + this.each(function () { + var n = e(this).data("tooltipster-ns"), + i = n ? e(this).data(n[0]) : null; + if (i) { + if (typeof i[t[0]] === "function") { + var s = i[t[0]](t[1], t[2]); + } else { + throw new Error('Unknown method .tooltipster("' + t[0] + '")'); + } + if (s !== i) { + r = s; + return false; + } + } else { + throw new Error("You called Tooltipster's \"" + t[0] + '" method on an uninitialized element'); + } + }); + return r !== "#*$~&" ? r : this; + } else { + var o = [], + u = t[0] && typeof t[0].multiple !== "undefined", + a = u && t[0].multiple || !u && i.multiple, + f = t[0] && typeof t[0].debug !== "undefined", + l = f && t[0].debug || !f && i.debug; + this.each(function () { + var n = false, + r = e(this).data("tooltipster-ns"), + i = null; + if (!r) { + n = true; + } else if (a) { + n = true; + } else if (l) { + console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'); + } + if (n) { + i = new s(this, t[0]); + if (!r) r = []; + r.push(i.namespace); + e(this).data("tooltipster-ns", r); + e(this).data(i.namespace, i); + } + o.push(i); + }); + if (a) return o;else return this; + } + } + }; + var u = !!("ontouchstart" in t); + var a = false; + e("body").one("mousemove", function () { + a = true; + }); +})(jQuery, window, document); /***/ }), -/***/ "./src/admin/js/libs/select2.min.js": -/*!******************************************!*\ - !*** ./src/admin/js/libs/select2.min.js ***! - \******************************************/ +/***/ 445: /***/ (function() { -eval("function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/*\nSELECT 2 FORM REPLACEMNT\n*/\n(function (a) {\n a.fn.each2 === void 0 && a.fn.extend({\n each2: function each2(b) {\n for (var c = a([0]), d = -1, e = this.length; e > ++d && (c.context = c[0] = this[d]) && b.call(c[0], d, c) !== !1;);\n return this;\n }\n });\n})(jQuery), function (a, b) {\n \"use strict\";\n\n function k(a, b) {\n for (var c = 0, d = b.length; d > c; c += 1) if (l(a, b[c])) return c;\n return -1;\n }\n function l(a, c) {\n return a === c ? !0 : a === b || c === b ? !1 : null === a || null === c ? !1 : a.constructor === String ? a + \"\" == c + \"\" : c.constructor === String ? c + \"\" == a + \"\" : !1;\n }\n function m(b, c) {\n var d, e, f;\n if (null === b || 1 > b.length) return [];\n for (d = b.split(c), e = 0, f = d.length; f > e; e += 1) d[e] = a.trim(d[e]);\n return d;\n }\n function n(a) {\n return a.outerWidth(!1) - a.width();\n }\n function o(c) {\n var d = \"keyup-change-value\";\n c.bind(\"keydown\", function () {\n a.data(c, d) === b && a.data(c, d, c.val());\n }), c.bind(\"keyup\", function () {\n var e = a.data(c, d);\n e !== b && c.val() !== e && (a.removeData(c, d), c.trigger(\"keyup-change\"));\n });\n }\n function p(c) {\n c.bind(\"mousemove\", function (c) {\n var d = i;\n (d === b || d.x !== c.pageX || d.y !== c.pageY) && a(c.target).trigger(\"mousemove-filtered\", c);\n });\n }\n function q(a, c, d) {\n d = d || b;\n var e;\n return function () {\n var b = arguments;\n window.clearTimeout(e), e = window.setTimeout(function () {\n c.apply(d, b);\n }, a);\n };\n }\n function r(a) {\n var c,\n b = !1;\n return function () {\n return b === !1 && (c = a(), b = !0), c;\n };\n }\n function s(a, b) {\n var c = q(a, function (a) {\n b.trigger(\"scroll-debounced\", a);\n });\n b.bind(\"scroll\", function (a) {\n k(a.target, b.get()) >= 0 && c(a);\n });\n }\n function t(a) {\n a[0] !== document.activeElement && window.setTimeout(function () {\n var d,\n b = a[0],\n c = a.val().length;\n a.focus(), a.is(\":visible\") && b === document.activeElement && (b.setSelectionRange ? b.setSelectionRange(c, c) : b.createTextRange && (d = b.createTextRange(), d.collapse(!1), d.select()));\n }, 0);\n }\n function u(a) {\n a.preventDefault(), a.stopPropagation();\n }\n function v(a) {\n a.preventDefault(), a.stopImmediatePropagation();\n }\n function w(b) {\n if (!h) {\n var c = b[0].currentStyle || window.getComputedStyle(b[0], null);\n h = a(document.createElement(\"div\")).css({\n position: \"absolute\",\n left: \"-10000px\",\n top: \"-10000px\",\n display: \"none\",\n fontSize: c.fontSize,\n fontFamily: c.fontFamily,\n fontStyle: c.fontStyle,\n fontWeight: c.fontWeight,\n letterSpacing: c.letterSpacing,\n textTransform: c.textTransform,\n whiteSpace: \"nowrap\"\n }), h.attr(\"class\", \"select2-sizer\"), a(\"body\").append(h);\n }\n return h.text(b.val()), h.width();\n }\n function x(b, c, d) {\n var e,\n g,\n f = [];\n e = b.attr(\"class\"), e && (e = \"\" + e, a(e.split(\" \")).each2(function () {\n 0 === this.indexOf(\"select2-\") && f.push(this);\n })), e = c.attr(\"class\"), e && (e = \"\" + e, a(e.split(\" \")).each2(function () {\n 0 !== this.indexOf(\"select2-\") && (g = d(this), g && f.push(this));\n })), b.attr(\"class\", f.join(\" \"));\n }\n function y(a, c, d, e) {\n var f = a.toUpperCase().indexOf(c.toUpperCase()),\n g = c.length;\n return 0 > f ? (d.push(e(a)), b) : (d.push(e(a.substring(0, f))), d.push(\"\"), d.push(e(a.substring(f, f + g))), d.push(\"\"), d.push(e(a.substring(f + g, a.length))), b);\n }\n function z(b) {\n var c,\n d = 0,\n e = null,\n f = b.quietMillis || 100,\n g = b.url,\n h = this;\n return function (i) {\n window.clearTimeout(c), c = window.setTimeout(function () {\n d += 1;\n var c = d,\n f = b.data,\n j = g,\n k = b.transport || a.ajax,\n l = b.type || \"GET\",\n m = {};\n f = f ? f.call(h, i.term, i.page, i.context) : null, j = \"function\" == typeof j ? j.call(h, i.term, i.page, i.context) : j, null !== e && e.abort(), b.params && (a.isFunction(b.params) ? a.extend(m, b.params.call(h)) : a.extend(m, b.params)), a.extend(m, {\n url: j,\n dataType: b.dataType,\n data: f,\n type: l,\n cache: !1,\n success: function success(a) {\n if (!(d > c)) {\n var e = b.results(a, i.page);\n i.callback(e);\n }\n }\n }), e = k.call(h, m);\n }, f);\n };\n }\n function A(c) {\n var e,\n f,\n d = c,\n g = function g(a) {\n return \"\" + a.text;\n };\n a.isArray(d) && (f = d, d = {\n results: f\n }), a.isFunction(d) === !1 && (f = d, d = function d() {\n return f;\n });\n var h = d();\n return h.text && (g = h.text, a.isFunction(g) || (e = d.text, g = function g(a) {\n return a[e];\n })), function (c) {\n var _h,\n e = c.term,\n f = {\n results: []\n };\n return \"\" === e ? (c.callback(d()), b) : (_h = function h(b, d) {\n var f, i;\n if (b = b[0], b.children) {\n f = {};\n for (i in b) b.hasOwnProperty(i) && (f[i] = b[i]);\n f.children = [], a(b.children).each2(function (a, b) {\n _h(b, f.children);\n }), (f.children.length || c.matcher(e, g(f), b)) && d.push(f);\n } else c.matcher(e, g(b), b) && d.push(b);\n }, a(d().results).each2(function (a, b) {\n _h(b, f.results);\n }), c.callback(f), b);\n };\n }\n function B(c) {\n var d = a.isFunction(c);\n return function (e) {\n var f = e.term,\n g = {\n results: []\n };\n a(d ? c() : c).each(function () {\n var a = this.text !== b,\n c = a ? this.text : this;\n (\"\" === f || e.matcher(f, c)) && g.results.push(a ? this : {\n id: this,\n text: this\n });\n }), e.callback(g);\n };\n }\n function C(b) {\n if (a.isFunction(b)) return !0;\n if (!b) return !1;\n throw Error(\"formatterName must be a function or a falsy value\");\n }\n function D(b) {\n return a.isFunction(b) ? b() : b;\n }\n function E(b) {\n var c = 0;\n return a.each(b, function (a, b) {\n b.children ? c += E(b.children) : c++;\n }), c;\n }\n function F(a, c, d, e) {\n var h,\n i,\n j,\n k,\n m,\n f = a,\n g = !1;\n if (!e.createSearchChoice || !e.tokenSeparators || 1 > e.tokenSeparators.length) return b;\n for (;;) {\n for (i = -1, j = 0, k = e.tokenSeparators.length; k > j && (m = e.tokenSeparators[j], i = a.indexOf(m), !(i >= 0)); j++);\n if (0 > i) break;\n if (h = a.substring(0, i), a = a.substring(i + m.length), h.length > 0 && (h = e.createSearchChoice(h, c), h !== b && null !== h && e.id(h) !== b && null !== e.id(h))) {\n for (g = !1, j = 0, k = c.length; k > j; j++) if (l(e.id(h), e.id(c[j]))) {\n g = !0;\n break;\n }\n g || d(h);\n }\n }\n return f !== a ? a : b;\n }\n function G(b, c) {\n var d = function d() {};\n return d.prototype = new b(), d.prototype.constructor = d, d.prototype.parent = b.prototype, d.prototype = a.extend(d.prototype, c), d;\n }\n if (window.Select2 === b) {\n var c, d, e, f, g, h, i, j;\n c = {\n TAB: 9,\n ENTER: 13,\n ESC: 27,\n SPACE: 32,\n LEFT: 37,\n UP: 38,\n RIGHT: 39,\n DOWN: 40,\n SHIFT: 16,\n CTRL: 17,\n ALT: 18,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n HOME: 36,\n END: 35,\n BACKSPACE: 8,\n DELETE: 46,\n isArrow: function isArrow(a) {\n switch (a = a.which ? a.which : a) {\n case c.LEFT:\n case c.RIGHT:\n case c.UP:\n case c.DOWN:\n return !0;\n }\n return !1;\n },\n isControl: function isControl(a) {\n var b = a.which;\n switch (b) {\n case c.SHIFT:\n case c.CTRL:\n case c.ALT:\n return !0;\n }\n return a.metaKey ? !0 : !1;\n },\n isFunctionKey: function isFunctionKey(a) {\n return a = a.which ? a.which : a, a >= 112 && 123 >= a;\n }\n }, j = a(document), g = function () {\n var a = 1;\n return function () {\n return a++;\n };\n }(), j.bind(\"mousemove\", function (a) {\n i = {\n x: a.pageX,\n y: a.pageY\n };\n }), d = G(Object, {\n bind: function bind(a) {\n var b = this;\n return function () {\n a.apply(b, arguments);\n };\n },\n init: function init(c) {\n var d,\n e,\n f = \".select2-results\";\n this.opts = c = this.prepareOpts(c), this.id = c.id, c.element.data(\"select2\") !== b && null !== c.element.data(\"select2\") && this.destroy(), this.enabled = !0, this.container = this.createContainer(), this.containerId = \"s2id_\" + (c.element.attr(\"id\") || \"autogen\" + g()), this.containerSelector = \"#\" + this.containerId.replace(/([;&,\\.\\+\\*\\~':\"\\!\\^#$%@\\[\\]\\(\\)=>\\|])/g, \"\\\\$1\"), this.container.attr(\"id\", this.containerId), this.body = r(function () {\n return c.element.closest(\"body\");\n }), x(this.container, this.opts.element, this.opts.adaptContainerCssClass), this.container.css(D(c.containerCss)), this.container.addClass(D(c.containerCssClass)), this.elementTabIndex = this.opts.element.attr(\"tabIndex\"), this.opts.element.data(\"select2\", this).addClass(\"select2-offscreen\").bind(\"focus.select2\", function () {\n a(this).select2(\"focus\");\n }).attr(\"tabIndex\", \"-1\").before(this.container), this.container.data(\"select2\", this), this.dropdown = this.container.find(\".select2-drop\"), this.dropdown.addClass(D(c.dropdownCssClass)), this.dropdown.data(\"select2\", this), this.results = d = this.container.find(f), this.search = e = this.container.find(\"input.select2-input\"), e.attr(\"tabIndex\", this.elementTabIndex), this.resultsPage = 0, this.context = null, this.initContainer(), p(this.results), this.dropdown.delegate(f, \"mousemove-filtered touchstart touchmove touchend\", this.bind(this.highlightUnderEvent)), s(80, this.results), this.dropdown.delegate(f, \"scroll-debounced\", this.bind(this.loadMoreIfNeeded)), a.fn.mousewheel && d.mousewheel(function (a, b, c, e) {\n var f = d.scrollTop();\n e > 0 && 0 >= f - e ? (d.scrollTop(0), u(a)) : 0 > e && d.get(0).scrollHeight - d.scrollTop() + e <= d.height() && (d.scrollTop(d.get(0).scrollHeight - d.height()), u(a));\n }), o(e), e.bind(\"keyup-change input paste\", this.bind(this.updateResults)), e.bind(\"focus\", function () {\n e.addClass(\"select2-focused\");\n }), e.bind(\"blur\", function () {\n e.removeClass(\"select2-focused\");\n }), this.dropdown.delegate(f, \"mouseup\", this.bind(function (b) {\n a(b.target).closest(\".select2-result-selectable\").length > 0 && (this.highlightUnderEvent(b), this.selectHighlighted(b));\n })), this.dropdown.bind(\"click mouseup mousedown\", function (a) {\n a.stopPropagation();\n }), a.isFunction(this.opts.initSelection) && (this.initSelection(), this.monitorSource()), (c.element.is(\":disabled\") || c.element.is(\"[readonly='readonly']\")) && this.disable();\n },\n destroy: function destroy() {\n var a = this.opts.element.data(\"select2\");\n this.propertyObserver && (delete this.propertyObserver, this.propertyObserver = null), a !== b && (a.container.remove(), a.dropdown.remove(), a.opts.element.removeClass(\"select2-offscreen\").removeData(\"select2\").unbind(\".select2\").attr({\n tabIndex: this.elementTabIndex\n }).show());\n },\n prepareOpts: function prepareOpts(c) {\n var d, e, f, g;\n if (d = c.element, \"select\" === d.get(0).tagName.toLowerCase() && (this.select = e = c.element), e && a.each([\"id\", \"multiple\", \"ajax\", \"query\", \"createSearchChoice\", \"initSelection\", \"data\", \"tags\"], function () {\n if (this in c) throw Error(\"Option '\" + this + \"' is not allowed for Select2 when attached to a \", \"\"].join(\"\"));\n return b;\n },\n disable: function disable() {\n this.enabled && (this.parent.disable.apply(this, arguments), this.focusser.attr(\"disabled\", \"disabled\"));\n },\n enable: function enable() {\n this.enabled || (this.parent.enable.apply(this, arguments), this.focusser.removeAttr(\"disabled\"));\n },\n opening: function opening() {\n this.parent.opening.apply(this, arguments), this.focusser.attr(\"disabled\", \"disabled\"), this.opts.element.trigger(a.Event(\"open\"));\n },\n close: function close() {\n this.opened() && (this.parent.close.apply(this, arguments), this.focusser.removeAttr(\"disabled\"), t(this.focusser));\n },\n focus: function focus() {\n this.opened() ? this.close() : (this.focusser.removeAttr(\"disabled\"), this.focusser.focus());\n },\n isFocused: function isFocused() {\n return this.container.hasClass(\"select2-container-active\");\n },\n cancel: function cancel() {\n this.parent.cancel.apply(this, arguments), this.focusser.removeAttr(\"disabled\"), this.focusser.focus();\n },\n initContainer: function initContainer() {\n var d,\n e = this.container,\n f = this.dropdown,\n h = !1;\n this.showSearch(this.opts.minimumResultsForSearch >= 0), this.selection = d = e.find(\".select2-choice\"), this.focusser = e.find(\".select2-focusser\"), this.focusser.attr(\"id\", \"s2id_autogen\" + g()), a(\"label[for='\" + this.opts.element.attr(\"id\") + \"']\").attr(\"for\", this.focusser.attr(\"id\")), this.search.bind(\"keydown\", this.bind(function (a) {\n if (this.enabled) {\n if (a.which === c.PAGE_UP || a.which === c.PAGE_DOWN) return u(a), b;\n switch (a.which) {\n case c.UP:\n case c.DOWN:\n return this.moveHighlight(a.which === c.UP ? -1 : 1), u(a), b;\n case c.TAB:\n case c.ENTER:\n return this.selectHighlighted(), u(a), b;\n case c.ESC:\n return this.cancel(a), u(a), b;\n }\n }\n })), this.search.bind(\"blur\", this.bind(function () {\n document.activeElement === this.body().get(0) && window.setTimeout(this.bind(function () {\n this.search.focus();\n }), 0);\n })), this.focusser.bind(\"keydown\", this.bind(function (a) {\n return !this.enabled || a.which === c.TAB || c.isControl(a) || c.isFunctionKey(a) || a.which === c.ESC ? b : this.opts.openOnEnter === !1 && a.which === c.ENTER ? (u(a), b) : a.which == c.DOWN || a.which == c.UP || a.which == c.ENTER && this.opts.openOnEnter ? (this.open(), u(a), b) : a.which == c.DELETE || a.which == c.BACKSPACE ? (this.opts.allowClear && this.clear(), u(a), b) : b;\n })), o(this.focusser), this.focusser.bind(\"keyup-change input\", this.bind(function (a) {\n this.opened() || (this.open(), this.showSearchInput !== !1 && this.search.val(this.focusser.val()), this.focusser.val(\"\"), u(a));\n })), d.delegate(\"abbr\", \"mousedown\", this.bind(function (a) {\n this.enabled && (this.clear(), v(a), this.close(), this.selection.focus());\n })), d.bind(\"mousedown\", this.bind(function (a) {\n h = !0, this.opened() ? this.close() : this.enabled && this.open(), u(a), h = !1;\n })), f.bind(\"mousedown\", this.bind(function () {\n this.search.focus();\n })), d.bind(\"focus\", this.bind(function (a) {\n u(a);\n })), this.focusser.bind(\"focus\", this.bind(function () {\n this.container.addClass(\"select2-container-active\");\n })).bind(\"blur\", this.bind(function () {\n this.opened() || this.container.removeClass(\"select2-container-active\");\n })), this.search.bind(\"focus\", this.bind(function () {\n this.container.addClass(\"select2-container-active\");\n })), this.initContainerWidth(), this.setPlaceholder();\n },\n clear: function clear(a) {\n var b = this.selection.data(\"select2-data\");\n b && (this.opts.element.val(\"\"), this.selection.find(\"span\").empty(), this.selection.removeData(\"select2-data\"), this.setPlaceholder(), a !== !1 && (this.opts.element.trigger({\n type: \"removed\",\n val: this.id(b),\n choice: b\n }), this.triggerChange({\n removed: b\n })));\n },\n initSelection: function initSelection() {\n if (\"\" === this.opts.element.val() && \"\" === this.opts.element.text()) this.close(), this.setPlaceholder();else {\n var c = this;\n this.opts.initSelection.call(null, this.opts.element, function (a) {\n a !== b && null !== a && (c.updateSelection(a), c.close(), c.setPlaceholder());\n });\n }\n },\n prepareOpts: function prepareOpts() {\n var b = this.parent.prepareOpts.apply(this, arguments);\n return \"select\" === b.element.get(0).tagName.toLowerCase() ? b.initSelection = function (b, c) {\n var d = b.find(\":selected\");\n a.isFunction(c) && c({\n id: d.attr(\"value\"),\n text: d.text(),\n element: d\n });\n } : \"data\" in b && (b.initSelection = b.initSelection || function (c, d) {\n var e = c.val(),\n f = null;\n b.query({\n matcher: function matcher(a, c, d) {\n var g = l(e, b.id(d));\n return g && (f = d), g;\n },\n callback: a.isFunction(d) ? function () {\n d(f);\n } : a.noop\n });\n }), b;\n },\n getPlaceholder: function getPlaceholder() {\n return this.select && \"\" !== this.select.find(\"option\").first().text() ? b : this.parent.getPlaceholder.apply(this, arguments);\n },\n setPlaceholder: function setPlaceholder() {\n var a = this.getPlaceholder();\n if (\"\" === this.opts.element.val() && a !== b) {\n if (this.select && \"\" !== this.select.find(\"option:first\").text()) return;\n this.selection.find(\"span\").html(this.opts.escapeMarkup(a)), this.selection.addClass(\"select2-default\"), this.selection.find(\"abbr\").hide();\n }\n },\n postprocessResults: function postprocessResults(a, c, d) {\n var e = 0,\n f = this,\n g = !0;\n if (this.findHighlightableChoices().each2(function (a, c) {\n return l(f.id(c.data(\"select2-data\")), f.opts.element.val()) ? (e = a, !1) : b;\n }), d !== !1 && this.highlight(e), c === !0) {\n var h = this.opts.minimumResultsForSearch;\n g = 0 > h ? !1 : E(a.results) >= h, this.showSearch(g);\n }\n },\n showSearch: function showSearch(b) {\n this.showSearchInput = b, this.dropdown.find(\".select2-search\")[b ? \"removeClass\" : \"addClass\"](\"select2-search-hidden\"), a(this.dropdown, this.container)[b ? \"addClass\" : \"removeClass\"](\"select2-with-searchbox\");\n },\n onSelect: function onSelect(a, b) {\n var c = this.opts.element.val();\n this.opts.element.val(this.id(a)), this.updateSelection(a), this.opts.element.trigger({\n type: \"selected\",\n val: this.id(a),\n choice: a\n }), this.close(), b && b.noFocus || this.selection.focus(), l(c, this.id(a)) || this.triggerChange();\n },\n updateSelection: function updateSelection(a) {\n var d,\n c = this.selection.find(\"span\");\n this.selection.data(\"select2-data\", a), c.empty(), d = this.opts.formatSelection(a, c), d !== b && c.append(this.opts.escapeMarkup(d)), this.selection.removeClass(\"select2-default\"), this.opts.allowClear && this.getPlaceholder() !== b && this.selection.find(\"abbr\").show();\n },\n val: function val() {\n var a,\n c = !1,\n d = null,\n e = this;\n if (0 === arguments.length) return this.opts.element.val();\n if (a = arguments[0], arguments.length > 1 && (c = arguments[1]), this.select) this.select.val(a).find(\":selected\").each2(function (a, b) {\n return d = {\n id: b.attr(\"value\"),\n text: b.text(),\n element: b.get(0)\n }, !1;\n }), this.updateSelection(d), this.setPlaceholder(), c && this.triggerChange();else {\n if (this.opts.initSelection === b) throw Error(\"cannot call val() if initSelection() is not defined\");\n if (!a && 0 !== a) return this.clear(c), c && this.triggerChange(), b;\n this.opts.element.val(a), this.opts.initSelection(this.opts.element, function (a) {\n e.opts.element.val(a ? e.id(a) : \"\"), e.updateSelection(a), e.setPlaceholder(), c && e.triggerChange();\n });\n }\n },\n clearSearch: function clearSearch() {\n this.search.val(\"\"), this.focusser.val(\"\");\n },\n data: function data(a) {\n var c;\n return 0 === arguments.length ? (c = this.selection.data(\"select2-data\"), c == b && (c = null), c) : (a && \"\" !== a ? (this.opts.element.val(a ? this.id(a) : \"\"), this.updateSelection(a)) : this.clear(), b);\n }\n }), f = G(d, {\n createContainer: function createContainer() {\n var b = a(document.createElement(\"div\")).attr({\n \"class\": \"select2-container select2-container-multi\"\n }).html([\"
      \", \"
    • \", \" \", \"
    • \", \"
    \", \"\"].join(\"\"));\n return b;\n },\n prepareOpts: function prepareOpts() {\n var b = this.parent.prepareOpts.apply(this, arguments);\n return \"select\" === b.element.get(0).tagName.toLowerCase() ? b.initSelection = function (a, b) {\n var c = [];\n a.find(\":selected\").each2(function (a, b) {\n c.push({\n id: b.attr(\"value\"),\n text: b.text(),\n element: b[0]\n });\n }), b(c);\n } : \"data\" in b && (b.initSelection = b.initSelection || function (c, d) {\n var e = m(c.val(), b.separator),\n f = [];\n b.query({\n matcher: function matcher(c, d, g) {\n var h = a.grep(e, function (a) {\n return l(a, b.id(g));\n }).length;\n return h && f.push(g), h;\n },\n callback: a.isFunction(d) ? function () {\n d(f);\n } : a.noop\n });\n }), b;\n },\n initContainer: function initContainer() {\n var e,\n d = \".select2-choices\";\n this.searchContainer = this.container.find(\".select2-search-field\"), this.selection = e = this.container.find(d), this.search.attr(\"id\", \"s2id_autogen\" + g()), a(\"label[for='\" + this.opts.element.attr(\"id\") + \"']\").attr(\"for\", this.search.attr(\"id\")), this.search.bind(\"input paste\", this.bind(function () {\n this.enabled && (this.opened() || this.open());\n })), this.search.bind(\"keydown\", this.bind(function (a) {\n if (this.enabled) {\n if (a.which === c.BACKSPACE && \"\" === this.search.val()) {\n this.close();\n var d,\n f = e.find(\".select2-search-choice-focus\");\n if (f.length > 0) return this.unselect(f.first()), this.search.width(10), u(a), b;\n d = e.find(\".select2-search-choice:not(.select2-locked)\"), d.length > 0 && d.last().addClass(\"select2-search-choice-focus\");\n } else e.find(\".select2-search-choice-focus\").removeClass(\"select2-search-choice-focus\");\n if (this.opened()) switch (a.which) {\n case c.UP:\n case c.DOWN:\n return this.moveHighlight(a.which === c.UP ? -1 : 1), u(a), b;\n case c.ENTER:\n case c.TAB:\n return this.selectHighlighted(), u(a), b;\n case c.ESC:\n return this.cancel(a), u(a), b;\n }\n if (a.which !== c.TAB && !c.isControl(a) && !c.isFunctionKey(a) && a.which !== c.BACKSPACE && a.which !== c.ESC) {\n if (a.which === c.ENTER) {\n if (this.opts.openOnEnter === !1) return;\n if (a.altKey || a.ctrlKey || a.shiftKey || a.metaKey) return;\n }\n this.open(), (a.which === c.PAGE_UP || a.which === c.PAGE_DOWN) && u(a), a.which === c.ENTER && u(a);\n }\n }\n })), this.search.bind(\"keyup\", this.bind(this.resizeSearch)), this.search.bind(\"blur\", this.bind(function (a) {\n this.container.removeClass(\"select2-container-active\"), this.search.removeClass(\"select2-focused\"), this.opened() || this.clearSearch(), a.stopImmediatePropagation();\n })), this.container.delegate(d, \"mousedown\", this.bind(function (b) {\n this.enabled && (a(b.target).closest(\".select2-search-choice\").length > 0 || (this.clearPlaceholder(), this.open(), this.focusSearch(), b.preventDefault()));\n })), this.container.delegate(d, \"focus\", this.bind(function () {\n this.enabled && (this.container.addClass(\"select2-container-active\"), this.dropdown.addClass(\"select2-drop-active\"), this.clearPlaceholder());\n })), this.initContainerWidth(), this.clearSearch();\n },\n enable: function enable() {\n this.enabled || (this.parent.enable.apply(this, arguments), this.search.removeAttr(\"disabled\"));\n },\n disable: function disable() {\n this.enabled && (this.parent.disable.apply(this, arguments), this.search.attr(\"disabled\", !0));\n },\n initSelection: function initSelection() {\n if (\"\" === this.opts.element.val() && \"\" === this.opts.element.text() && (this.updateSelection([]), this.close(), this.clearSearch()), this.select || \"\" !== this.opts.element.val()) {\n var c = this;\n this.opts.initSelection.call(null, this.opts.element, function (a) {\n a !== b && null !== a && (c.updateSelection(a), c.close(), c.clearSearch());\n });\n }\n },\n clearSearch: function clearSearch() {\n var a = this.getPlaceholder();\n a !== b && 0 === this.getVal().length && this.search.hasClass(\"select2-focused\") === !1 ? (this.search.val(a).addClass(\"select2-default\"), this.search.width(this.getMaxSearchWidth())) : this.search.val(\"\").width(10);\n },\n clearPlaceholder: function clearPlaceholder() {\n this.search.hasClass(\"select2-default\") && this.search.val(\"\").removeClass(\"select2-default\");\n },\n opening: function opening() {\n this.clearPlaceholder(), this.resizeSearch(), this.parent.opening.apply(this, arguments), this.focusSearch(), this.opts.element.trigger(a.Event(\"open\"));\n },\n close: function close() {\n this.opened() && this.parent.close.apply(this, arguments);\n },\n focus: function focus() {\n this.close(), this.search.focus();\n },\n isFocused: function isFocused() {\n return this.search.hasClass(\"select2-focused\");\n },\n updateSelection: function updateSelection(b) {\n var c = [],\n d = [],\n e = this;\n a(b).each(function () {\n 0 > k(e.id(this), c) && (c.push(e.id(this)), d.push(this));\n }), b = d, this.selection.find(\".select2-search-choice\").remove(), a(b).each(function () {\n e.addSelectedChoice(this);\n }), e.postprocessResults();\n },\n tokenize: function tokenize() {\n var a = this.search.val();\n a = this.opts.tokenizer(a, this.data(), this.bind(this.onSelect), this.opts), null != a && a != b && (this.search.val(a), a.length > 0 && this.open());\n },\n onSelect: function onSelect(a, b) {\n this.addSelectedChoice(a), this.opts.element.trigger({\n type: \"selected\",\n val: this.id(a),\n choice: a\n }), (this.select || !this.opts.closeOnSelect) && this.postprocessResults(), this.opts.closeOnSelect ? (this.close(), this.search.width(10)) : this.countSelectableResults() > 0 ? (this.search.width(10), this.resizeSearch(), this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize() && this.updateResults(!0), this.positionDropdown()) : (this.close(), this.search.width(10)), this.triggerChange({\n added: a\n }), b && b.noFocus || this.focusSearch();\n },\n cancel: function cancel() {\n this.close(), this.focusSearch();\n },\n addSelectedChoice: function addSelectedChoice(c) {\n var j,\n d = !c.locked,\n e = a(\"
  • \"),\n f = a(\"
  • \"),\n g = d ? e : f,\n h = this.id(c),\n i = this.getVal();\n j = this.opts.formatSelection(c, g.find(\"div\")), j != b && g.find(\"div\").replaceWith(\"
    \" + this.opts.escapeMarkup(j) + \"
    \"), d && g.find(\".select2-search-choice-close\").bind(\"mousedown\", u).bind(\"click dblclick\", this.bind(function (b) {\n this.enabled && (a(b.target).closest(\".select2-search-choice\").fadeOut(\"fast\", this.bind(function () {\n this.unselect(a(b.target)), this.selection.find(\".select2-search-choice-focus\").removeClass(\"select2-search-choice-focus\"), this.close(), this.focusSearch();\n })).dequeue(), u(b));\n })).bind(\"focus\", this.bind(function () {\n this.enabled && (this.container.addClass(\"select2-container-active\"), this.dropdown.addClass(\"select2-drop-active\"));\n })), g.data(\"select2-data\", c), g.insertBefore(this.searchContainer), i.push(h), this.setVal(i);\n },\n unselect: function unselect(a) {\n var c,\n d,\n b = this.getVal();\n if (a = a.closest(\".select2-search-choice\"), 0 === a.length) throw \"Invalid argument: \" + a + \". Must be .select2-search-choice\";\n c = a.data(\"select2-data\"), c && (d = k(this.id(c), b), d >= 0 && (b.splice(d, 1), this.setVal(b), this.select && this.postprocessResults()), a.remove(), this.opts.element.trigger({\n type: \"removed\",\n val: this.id(c),\n choice: c\n }), this.triggerChange({\n removed: c\n }));\n },\n postprocessResults: function postprocessResults() {\n var a = this.getVal(),\n b = this.results.find(\".select2-result\"),\n c = this.results.find(\".select2-result-with-children\"),\n d = this;\n b.each2(function (b, c) {\n var e = d.id(c.data(\"select2-data\"));\n k(e, a) >= 0 && (c.addClass(\"select2-selected\"), c.find(\".select2-result-selectable\").addClass(\"select2-selected\"));\n }), c.each2(function (a, b) {\n b.is(\".select2-result-selectable\") || 0 !== b.find(\".select2-result-selectable:not(.select2-selected)\").length || b.addClass(\"select2-selected\");\n }), -1 == this.highlight() && d.highlight(0);\n },\n getMaxSearchWidth: function getMaxSearchWidth() {\n return this.selection.width() - n(this.search);\n },\n resizeSearch: function resizeSearch() {\n var a,\n b,\n c,\n d,\n e,\n f = n(this.search);\n a = w(this.search) + 10, b = this.search.offset().left, c = this.selection.width(), d = this.selection.offset().left, e = c - (b - d) - f, a > e && (e = c - f), 40 > e && (e = c - f), 0 >= e && (e = a), this.search.width(e);\n },\n getVal: function getVal() {\n var a;\n return this.select ? (a = this.select.val(), null === a ? [] : a) : (a = this.opts.element.val(), m(a, this.opts.separator));\n },\n setVal: function setVal(b) {\n var c;\n this.select ? this.select.val(b) : (c = [], a(b).each(function () {\n 0 > k(this, c) && c.push(this);\n }), this.opts.element.val(0 === c.length ? \"\" : c.join(this.opts.separator)));\n },\n val: function val() {\n var c,\n d = !1,\n f = this;\n if (0 === arguments.length) return this.getVal();\n if (c = arguments[0], arguments.length > 1 && (d = arguments[1]), !c && 0 !== c) return this.opts.element.val(\"\"), this.updateSelection([]), this.clearSearch(), d && this.triggerChange(), b;\n if (this.setVal(c), this.select) this.opts.initSelection(this.select, this.bind(this.updateSelection)), d && this.triggerChange();else {\n if (this.opts.initSelection === b) throw Error(\"val() cannot be called if initSelection() is not defined\");\n this.opts.initSelection(this.opts.element, function (b) {\n var c = a(b).map(f.id);\n f.setVal(c), f.updateSelection(b), f.clearSearch(), d && f.triggerChange();\n });\n }\n this.clearSearch();\n },\n onSortStart: function onSortStart() {\n if (this.select) throw Error(\"Sorting of elements is not supported when attached to instead.\");\n this.search.width(0), this.searchContainer.hide();\n },\n onSortEnd: function onSortEnd() {\n var b = [],\n c = this;\n this.searchContainer.show(), this.searchContainer.appendTo(this.searchContainer.parent()), this.resizeSearch(), this.selection.find(\".select2-search-choice\").each(function () {\n b.push(c.opts.id(a(this).data(\"select2-data\")));\n }), this.setVal(b), this.triggerChange();\n },\n data: function data(c) {\n var e,\n d = this;\n return 0 === arguments.length ? this.selection.find(\".select2-search-choice\").map(function () {\n return a(this).data(\"select2-data\");\n }).get() : (c || (c = []), e = a.map(c, function (a) {\n return d.opts.id(a);\n }), this.setVal(e), this.updateSelection(c), this.clearSearch(), b);\n }\n }), a.fn.select2 = function () {\n var d,\n g,\n h,\n i,\n c = Array.prototype.slice.call(arguments, 0),\n j = [\"val\", \"destroy\", \"opened\", \"open\", \"close\", \"focus\", \"isFocused\", \"container\", \"onSortStart\", \"onSortEnd\", \"enable\", \"disable\", \"positionDropdown\", \"data\"];\n return this.each(function () {\n if (0 === c.length || \"object\" == _typeof(c[0])) d = 0 === c.length ? {} : a.extend({}, c[0]), d.element = a(this), \"select\" === d.element.get(0).tagName.toLowerCase() ? i = d.element.attr(\"multiple\") : (i = d.multiple || !1, \"tags\" in d && (d.multiple = i = !0)), g = i ? new f() : new e(), g.init(d);else {\n if (\"string\" != typeof c[0]) throw \"Invalid arguments to select2 plugin: \" + c;\n if (0 > k(c[0], j)) throw \"Unknown method: \" + c[0];\n if (h = b, g = a(this).data(\"select2\"), g === b) return;\n if (h = \"container\" === c[0] ? g.container : g[c[0]].apply(g, c.slice(1)), h !== b) return !1;\n }\n }), h === b ? this : h;\n }, a.fn.select2.defaults = {\n width: \"copy\",\n loadMorePadding: 0,\n closeOnSelect: !0,\n openOnEnter: !0,\n containerCss: {},\n dropdownCss: {},\n containerCssClass: \"\",\n dropdownCssClass: \"\",\n formatResult: function formatResult(a, b, c, d) {\n var e = [];\n return y(a.text, c.term, e, d), e.join(\"\");\n },\n formatSelection: function formatSelection(a) {\n return a ? a.text : b;\n },\n sortResults: function sortResults(a) {\n return a;\n },\n formatResultCssClass: function formatResultCssClass() {\n return b;\n },\n formatNoMatches: function formatNoMatches() {\n return \"No matches found\";\n },\n formatInputTooShort: function formatInputTooShort(a, b) {\n var c = b - a.length;\n return \"Please enter \" + c + \" more character\" + (1 == c ? \"\" : \"s\");\n },\n formatInputTooLong: function formatInputTooLong(a, b) {\n var c = a.length - b;\n return \"Please delete \" + c + \" character\" + (1 == c ? \"\" : \"s\");\n },\n formatSelectionTooBig: function formatSelectionTooBig(a) {\n return \"You can only select \" + a + \" item\" + (1 == a ? \"\" : \"s\");\n },\n formatLoadMore: function formatLoadMore() {\n return \"Loading more results...\";\n },\n formatSearching: function formatSearching() {\n return \"Searching...\";\n },\n minimumResultsForSearch: 0,\n minimumInputLength: 0,\n maximumInputLength: null,\n maximumSelectionSize: 0,\n id: function id(a) {\n return a.id;\n },\n matcher: function matcher(a, b) {\n return (\"\" + b).toUpperCase().indexOf((\"\" + a).toUpperCase()) >= 0;\n },\n separator: \",\",\n tokenSeparators: [],\n tokenizer: F,\n escapeMarkup: function escapeMarkup(a) {\n var b = {\n \"\\\\\": \"\\",\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': \""\",\n \"'\": \"'\",\n \"/\": \"/\"\n };\n return (a + \"\").replace(/[&<>\"'\\/\\\\]/g, function (a) {\n return b[a[0]];\n });\n },\n blurOnChange: !1,\n selectOnBlur: !1,\n adaptContainerCssClass: function adaptContainerCssClass(a) {\n return a;\n },\n adaptDropdownCssClass: function adaptDropdownCssClass() {\n return null;\n }\n }, window.Select2 = {\n query: {\n ajax: z,\n local: A,\n tags: B\n },\n util: {\n debounce: q,\n markMatch: y\n },\n \"class\": {\n \"abstract\": d,\n single: e,\n multi: f\n }\n };\n }\n}(jQuery);\n\n//# sourceURL=webpack://ajaxloadmore/./src/admin/js/libs/select2.min.js?"); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +/* +SELECT 2 FORM REPLACEMNT +*/ +(function (a) { + a.fn.each2 === void 0 && a.fn.extend({ + each2: function each2(b) { + for (var c = a([0]), d = -1, e = this.length; e > ++d && (c.context = c[0] = this[d]) && b.call(c[0], d, c) !== !1;); + return this; + } + }); +})(jQuery), function (a, b) { + "use strict"; + + function k(a, b) { + for (var c = 0, d = b.length; d > c; c += 1) if (l(a, b[c])) return c; + return -1; + } + function l(a, c) { + return a === c ? !0 : a === b || c === b ? !1 : null === a || null === c ? !1 : a.constructor === String ? a + "" == c + "" : c.constructor === String ? c + "" == a + "" : !1; + } + function m(b, c) { + var d, e, f; + if (null === b || 1 > b.length) return []; + for (d = b.split(c), e = 0, f = d.length; f > e; e += 1) d[e] = a.trim(d[e]); + return d; + } + function n(a) { + return a.outerWidth(!1) - a.width(); + } + function o(c) { + var d = "keyup-change-value"; + c.bind("keydown", function () { + a.data(c, d) === b && a.data(c, d, c.val()); + }), c.bind("keyup", function () { + var e = a.data(c, d); + e !== b && c.val() !== e && (a.removeData(c, d), c.trigger("keyup-change")); + }); + } + function p(c) { + c.bind("mousemove", function (c) { + var d = i; + (d === b || d.x !== c.pageX || d.y !== c.pageY) && a(c.target).trigger("mousemove-filtered", c); + }); + } + function q(a, c, d) { + d = d || b; + var e; + return function () { + var b = arguments; + window.clearTimeout(e), e = window.setTimeout(function () { + c.apply(d, b); + }, a); + }; + } + function r(a) { + var c, + b = !1; + return function () { + return b === !1 && (c = a(), b = !0), c; + }; + } + function s(a, b) { + var c = q(a, function (a) { + b.trigger("scroll-debounced", a); + }); + b.bind("scroll", function (a) { + k(a.target, b.get()) >= 0 && c(a); + }); + } + function t(a) { + a[0] !== document.activeElement && window.setTimeout(function () { + var d, + b = a[0], + c = a.val().length; + a.focus(), a.is(":visible") && b === document.activeElement && (b.setSelectionRange ? b.setSelectionRange(c, c) : b.createTextRange && (d = b.createTextRange(), d.collapse(!1), d.select())); + }, 0); + } + function u(a) { + a.preventDefault(), a.stopPropagation(); + } + function v(a) { + a.preventDefault(), a.stopImmediatePropagation(); + } + function w(b) { + if (!h) { + var c = b[0].currentStyle || window.getComputedStyle(b[0], null); + h = a(document.createElement("div")).css({ + position: "absolute", + left: "-10000px", + top: "-10000px", + display: "none", + fontSize: c.fontSize, + fontFamily: c.fontFamily, + fontStyle: c.fontStyle, + fontWeight: c.fontWeight, + letterSpacing: c.letterSpacing, + textTransform: c.textTransform, + whiteSpace: "nowrap" + }), h.attr("class", "select2-sizer"), a("body").append(h); + } + return h.text(b.val()), h.width(); + } + function x(b, c, d) { + var e, + g, + f = []; + e = b.attr("class"), e && (e = "" + e, a(e.split(" ")).each2(function () { + 0 === this.indexOf("select2-") && f.push(this); + })), e = c.attr("class"), e && (e = "" + e, a(e.split(" ")).each2(function () { + 0 !== this.indexOf("select2-") && (g = d(this), g && f.push(this)); + })), b.attr("class", f.join(" ")); + } + function y(a, c, d, e) { + var f = a.toUpperCase().indexOf(c.toUpperCase()), + g = c.length; + return 0 > f ? (d.push(e(a)), b) : (d.push(e(a.substring(0, f))), d.push(""), d.push(e(a.substring(f, f + g))), d.push(""), d.push(e(a.substring(f + g, a.length))), b); + } + function z(b) { + var c, + d = 0, + e = null, + f = b.quietMillis || 100, + g = b.url, + h = this; + return function (i) { + window.clearTimeout(c), c = window.setTimeout(function () { + d += 1; + var c = d, + f = b.data, + j = g, + k = b.transport || a.ajax, + l = b.type || "GET", + m = {}; + f = f ? f.call(h, i.term, i.page, i.context) : null, j = "function" == typeof j ? j.call(h, i.term, i.page, i.context) : j, null !== e && e.abort(), b.params && (a.isFunction(b.params) ? a.extend(m, b.params.call(h)) : a.extend(m, b.params)), a.extend(m, { + url: j, + dataType: b.dataType, + data: f, + type: l, + cache: !1, + success: function success(a) { + if (!(d > c)) { + var e = b.results(a, i.page); + i.callback(e); + } + } + }), e = k.call(h, m); + }, f); + }; + } + function A(c) { + var e, + f, + d = c, + g = function g(a) { + return "" + a.text; + }; + a.isArray(d) && (f = d, d = { + results: f + }), a.isFunction(d) === !1 && (f = d, d = function d() { + return f; + }); + var h = d(); + return h.text && (g = h.text, a.isFunction(g) || (e = d.text, g = function g(a) { + return a[e]; + })), function (c) { + var _h, + e = c.term, + f = { + results: [] + }; + return "" === e ? (c.callback(d()), b) : (_h = function h(b, d) { + var f, i; + if (b = b[0], b.children) { + f = {}; + for (i in b) b.hasOwnProperty(i) && (f[i] = b[i]); + f.children = [], a(b.children).each2(function (a, b) { + _h(b, f.children); + }), (f.children.length || c.matcher(e, g(f), b)) && d.push(f); + } else c.matcher(e, g(b), b) && d.push(b); + }, a(d().results).each2(function (a, b) { + _h(b, f.results); + }), c.callback(f), b); + }; + } + function B(c) { + var d = a.isFunction(c); + return function (e) { + var f = e.term, + g = { + results: [] + }; + a(d ? c() : c).each(function () { + var a = this.text !== b, + c = a ? this.text : this; + ("" === f || e.matcher(f, c)) && g.results.push(a ? this : { + id: this, + text: this + }); + }), e.callback(g); + }; + } + function C(b) { + if (a.isFunction(b)) return !0; + if (!b) return !1; + throw Error("formatterName must be a function or a falsy value"); + } + function D(b) { + return a.isFunction(b) ? b() : b; + } + function E(b) { + var c = 0; + return a.each(b, function (a, b) { + b.children ? c += E(b.children) : c++; + }), c; + } + function F(a, c, d, e) { + var h, + i, + j, + k, + m, + f = a, + g = !1; + if (!e.createSearchChoice || !e.tokenSeparators || 1 > e.tokenSeparators.length) return b; + for (;;) { + for (i = -1, j = 0, k = e.tokenSeparators.length; k > j && (m = e.tokenSeparators[j], i = a.indexOf(m), !(i >= 0)); j++); + if (0 > i) break; + if (h = a.substring(0, i), a = a.substring(i + m.length), h.length > 0 && (h = e.createSearchChoice(h, c), h !== b && null !== h && e.id(h) !== b && null !== e.id(h))) { + for (g = !1, j = 0, k = c.length; k > j; j++) if (l(e.id(h), e.id(c[j]))) { + g = !0; + break; + } + g || d(h); + } + } + return f !== a ? a : b; + } + function G(b, c) { + var d = function d() {}; + return d.prototype = new b(), d.prototype.constructor = d, d.prototype.parent = b.prototype, d.prototype = a.extend(d.prototype, c), d; + } + if (window.Select2 === b) { + var c, d, e, f, g, h, i, j; + c = { + TAB: 9, + ENTER: 13, + ESC: 27, + SPACE: 32, + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40, + SHIFT: 16, + CTRL: 17, + ALT: 18, + PAGE_UP: 33, + PAGE_DOWN: 34, + HOME: 36, + END: 35, + BACKSPACE: 8, + DELETE: 46, + isArrow: function isArrow(a) { + switch (a = a.which ? a.which : a) { + case c.LEFT: + case c.RIGHT: + case c.UP: + case c.DOWN: + return !0; + } + return !1; + }, + isControl: function isControl(a) { + var b = a.which; + switch (b) { + case c.SHIFT: + case c.CTRL: + case c.ALT: + return !0; + } + return a.metaKey ? !0 : !1; + }, + isFunctionKey: function isFunctionKey(a) { + return a = a.which ? a.which : a, a >= 112 && 123 >= a; + } + }, j = a(document), g = function () { + var a = 1; + return function () { + return a++; + }; + }(), j.bind("mousemove", function (a) { + i = { + x: a.pageX, + y: a.pageY + }; + }), d = G(Object, { + bind: function bind(a) { + var b = this; + return function () { + a.apply(b, arguments); + }; + }, + init: function init(c) { + var d, + e, + f = ".select2-results"; + this.opts = c = this.prepareOpts(c), this.id = c.id, c.element.data("select2") !== b && null !== c.element.data("select2") && this.destroy(), this.enabled = !0, this.container = this.createContainer(), this.containerId = "s2id_" + (c.element.attr("id") || "autogen" + g()), this.containerSelector = "#" + this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, "\\$1"), this.container.attr("id", this.containerId), this.body = r(function () { + return c.element.closest("body"); + }), x(this.container, this.opts.element, this.opts.adaptContainerCssClass), this.container.css(D(c.containerCss)), this.container.addClass(D(c.containerCssClass)), this.elementTabIndex = this.opts.element.attr("tabIndex"), this.opts.element.data("select2", this).addClass("select2-offscreen").bind("focus.select2", function () { + a(this).select2("focus"); + }).attr("tabIndex", "-1").before(this.container), this.container.data("select2", this), this.dropdown = this.container.find(".select2-drop"), this.dropdown.addClass(D(c.dropdownCssClass)), this.dropdown.data("select2", this), this.results = d = this.container.find(f), this.search = e = this.container.find("input.select2-input"), e.attr("tabIndex", this.elementTabIndex), this.resultsPage = 0, this.context = null, this.initContainer(), p(this.results), this.dropdown.delegate(f, "mousemove-filtered touchstart touchmove touchend", this.bind(this.highlightUnderEvent)), s(80, this.results), this.dropdown.delegate(f, "scroll-debounced", this.bind(this.loadMoreIfNeeded)), a.fn.mousewheel && d.mousewheel(function (a, b, c, e) { + var f = d.scrollTop(); + e > 0 && 0 >= f - e ? (d.scrollTop(0), u(a)) : 0 > e && d.get(0).scrollHeight - d.scrollTop() + e <= d.height() && (d.scrollTop(d.get(0).scrollHeight - d.height()), u(a)); + }), o(e), e.bind("keyup-change input paste", this.bind(this.updateResults)), e.bind("focus", function () { + e.addClass("select2-focused"); + }), e.bind("blur", function () { + e.removeClass("select2-focused"); + }), this.dropdown.delegate(f, "mouseup", this.bind(function (b) { + a(b.target).closest(".select2-result-selectable").length > 0 && (this.highlightUnderEvent(b), this.selectHighlighted(b)); + })), this.dropdown.bind("click mouseup mousedown", function (a) { + a.stopPropagation(); + }), a.isFunction(this.opts.initSelection) && (this.initSelection(), this.monitorSource()), (c.element.is(":disabled") || c.element.is("[readonly='readonly']")) && this.disable(); + }, + destroy: function destroy() { + var a = this.opts.element.data("select2"); + this.propertyObserver && (delete this.propertyObserver, this.propertyObserver = null), a !== b && (a.container.remove(), a.dropdown.remove(), a.opts.element.removeClass("select2-offscreen").removeData("select2").unbind(".select2").attr({ + tabIndex: this.elementTabIndex + }).show()); + }, + prepareOpts: function prepareOpts(c) { + var d, e, f, g; + if (d = c.element, "select" === d.get(0).tagName.toLowerCase() && (this.select = e = c.element), e && a.each(["id", "multiple", "ajax", "query", "createSearchChoice", "initSelection", "data", "tags"], function () { + if (this in c) throw Error("Option '" + this + "' is not allowed for Select2 when attached to a ", ""].join("")); + return b; + }, + disable: function disable() { + this.enabled && (this.parent.disable.apply(this, arguments), this.focusser.attr("disabled", "disabled")); + }, + enable: function enable() { + this.enabled || (this.parent.enable.apply(this, arguments), this.focusser.removeAttr("disabled")); + }, + opening: function opening() { + this.parent.opening.apply(this, arguments), this.focusser.attr("disabled", "disabled"), this.opts.element.trigger(a.Event("open")); + }, + close: function close() { + this.opened() && (this.parent.close.apply(this, arguments), this.focusser.removeAttr("disabled"), t(this.focusser)); + }, + focus: function focus() { + this.opened() ? this.close() : (this.focusser.removeAttr("disabled"), this.focusser.focus()); + }, + isFocused: function isFocused() { + return this.container.hasClass("select2-container-active"); + }, + cancel: function cancel() { + this.parent.cancel.apply(this, arguments), this.focusser.removeAttr("disabled"), this.focusser.focus(); + }, + initContainer: function initContainer() { + var d, + e = this.container, + f = this.dropdown, + h = !1; + this.showSearch(this.opts.minimumResultsForSearch >= 0), this.selection = d = e.find(".select2-choice"), this.focusser = e.find(".select2-focusser"), this.focusser.attr("id", "s2id_autogen" + g()), a("label[for='" + this.opts.element.attr("id") + "']").attr("for", this.focusser.attr("id")), this.search.bind("keydown", this.bind(function (a) { + if (this.enabled) { + if (a.which === c.PAGE_UP || a.which === c.PAGE_DOWN) return u(a), b; + switch (a.which) { + case c.UP: + case c.DOWN: + return this.moveHighlight(a.which === c.UP ? -1 : 1), u(a), b; + case c.TAB: + case c.ENTER: + return this.selectHighlighted(), u(a), b; + case c.ESC: + return this.cancel(a), u(a), b; + } + } + })), this.search.bind("blur", this.bind(function () { + document.activeElement === this.body().get(0) && window.setTimeout(this.bind(function () { + this.search.focus(); + }), 0); + })), this.focusser.bind("keydown", this.bind(function (a) { + return !this.enabled || a.which === c.TAB || c.isControl(a) || c.isFunctionKey(a) || a.which === c.ESC ? b : this.opts.openOnEnter === !1 && a.which === c.ENTER ? (u(a), b) : a.which == c.DOWN || a.which == c.UP || a.which == c.ENTER && this.opts.openOnEnter ? (this.open(), u(a), b) : a.which == c.DELETE || a.which == c.BACKSPACE ? (this.opts.allowClear && this.clear(), u(a), b) : b; + })), o(this.focusser), this.focusser.bind("keyup-change input", this.bind(function (a) { + this.opened() || (this.open(), this.showSearchInput !== !1 && this.search.val(this.focusser.val()), this.focusser.val(""), u(a)); + })), d.delegate("abbr", "mousedown", this.bind(function (a) { + this.enabled && (this.clear(), v(a), this.close(), this.selection.focus()); + })), d.bind("mousedown", this.bind(function (a) { + h = !0, this.opened() ? this.close() : this.enabled && this.open(), u(a), h = !1; + })), f.bind("mousedown", this.bind(function () { + this.search.focus(); + })), d.bind("focus", this.bind(function (a) { + u(a); + })), this.focusser.bind("focus", this.bind(function () { + this.container.addClass("select2-container-active"); + })).bind("blur", this.bind(function () { + this.opened() || this.container.removeClass("select2-container-active"); + })), this.search.bind("focus", this.bind(function () { + this.container.addClass("select2-container-active"); + })), this.initContainerWidth(), this.setPlaceholder(); + }, + clear: function clear(a) { + var b = this.selection.data("select2-data"); + b && (this.opts.element.val(""), this.selection.find("span").empty(), this.selection.removeData("select2-data"), this.setPlaceholder(), a !== !1 && (this.opts.element.trigger({ + type: "removed", + val: this.id(b), + choice: b + }), this.triggerChange({ + removed: b + }))); + }, + initSelection: function initSelection() { + if ("" === this.opts.element.val() && "" === this.opts.element.text()) this.close(), this.setPlaceholder();else { + var c = this; + this.opts.initSelection.call(null, this.opts.element, function (a) { + a !== b && null !== a && (c.updateSelection(a), c.close(), c.setPlaceholder()); + }); + } + }, + prepareOpts: function prepareOpts() { + var b = this.parent.prepareOpts.apply(this, arguments); + return "select" === b.element.get(0).tagName.toLowerCase() ? b.initSelection = function (b, c) { + var d = b.find(":selected"); + a.isFunction(c) && c({ + id: d.attr("value"), + text: d.text(), + element: d + }); + } : "data" in b && (b.initSelection = b.initSelection || function (c, d) { + var e = c.val(), + f = null; + b.query({ + matcher: function matcher(a, c, d) { + var g = l(e, b.id(d)); + return g && (f = d), g; + }, + callback: a.isFunction(d) ? function () { + d(f); + } : a.noop + }); + }), b; + }, + getPlaceholder: function getPlaceholder() { + return this.select && "" !== this.select.find("option").first().text() ? b : this.parent.getPlaceholder.apply(this, arguments); + }, + setPlaceholder: function setPlaceholder() { + var a = this.getPlaceholder(); + if ("" === this.opts.element.val() && a !== b) { + if (this.select && "" !== this.select.find("option:first").text()) return; + this.selection.find("span").html(this.opts.escapeMarkup(a)), this.selection.addClass("select2-default"), this.selection.find("abbr").hide(); + } + }, + postprocessResults: function postprocessResults(a, c, d) { + var e = 0, + f = this, + g = !0; + if (this.findHighlightableChoices().each2(function (a, c) { + return l(f.id(c.data("select2-data")), f.opts.element.val()) ? (e = a, !1) : b; + }), d !== !1 && this.highlight(e), c === !0) { + var h = this.opts.minimumResultsForSearch; + g = 0 > h ? !1 : E(a.results) >= h, this.showSearch(g); + } + }, + showSearch: function showSearch(b) { + this.showSearchInput = b, this.dropdown.find(".select2-search")[b ? "removeClass" : "addClass"]("select2-search-hidden"), a(this.dropdown, this.container)[b ? "addClass" : "removeClass"]("select2-with-searchbox"); + }, + onSelect: function onSelect(a, b) { + var c = this.opts.element.val(); + this.opts.element.val(this.id(a)), this.updateSelection(a), this.opts.element.trigger({ + type: "selected", + val: this.id(a), + choice: a + }), this.close(), b && b.noFocus || this.selection.focus(), l(c, this.id(a)) || this.triggerChange(); + }, + updateSelection: function updateSelection(a) { + var d, + c = this.selection.find("span"); + this.selection.data("select2-data", a), c.empty(), d = this.opts.formatSelection(a, c), d !== b && c.append(this.opts.escapeMarkup(d)), this.selection.removeClass("select2-default"), this.opts.allowClear && this.getPlaceholder() !== b && this.selection.find("abbr").show(); + }, + val: function val() { + var a, + c = !1, + d = null, + e = this; + if (0 === arguments.length) return this.opts.element.val(); + if (a = arguments[0], arguments.length > 1 && (c = arguments[1]), this.select) this.select.val(a).find(":selected").each2(function (a, b) { + return d = { + id: b.attr("value"), + text: b.text(), + element: b.get(0) + }, !1; + }), this.updateSelection(d), this.setPlaceholder(), c && this.triggerChange();else { + if (this.opts.initSelection === b) throw Error("cannot call val() if initSelection() is not defined"); + if (!a && 0 !== a) return this.clear(c), c && this.triggerChange(), b; + this.opts.element.val(a), this.opts.initSelection(this.opts.element, function (a) { + e.opts.element.val(a ? e.id(a) : ""), e.updateSelection(a), e.setPlaceholder(), c && e.triggerChange(); + }); + } + }, + clearSearch: function clearSearch() { + this.search.val(""), this.focusser.val(""); + }, + data: function data(a) { + var c; + return 0 === arguments.length ? (c = this.selection.data("select2-data"), c == b && (c = null), c) : (a && "" !== a ? (this.opts.element.val(a ? this.id(a) : ""), this.updateSelection(a)) : this.clear(), b); + } + }), f = G(d, { + createContainer: function createContainer() { + var b = a(document.createElement("div")).attr({ + "class": "select2-container select2-container-multi" + }).html(["
      ", "
    • ", " ", "
    • ", "
    ", ""].join("")); + return b; + }, + prepareOpts: function prepareOpts() { + var b = this.parent.prepareOpts.apply(this, arguments); + return "select" === b.element.get(0).tagName.toLowerCase() ? b.initSelection = function (a, b) { + var c = []; + a.find(":selected").each2(function (a, b) { + c.push({ + id: b.attr("value"), + text: b.text(), + element: b[0] + }); + }), b(c); + } : "data" in b && (b.initSelection = b.initSelection || function (c, d) { + var e = m(c.val(), b.separator), + f = []; + b.query({ + matcher: function matcher(c, d, g) { + var h = a.grep(e, function (a) { + return l(a, b.id(g)); + }).length; + return h && f.push(g), h; + }, + callback: a.isFunction(d) ? function () { + d(f); + } : a.noop + }); + }), b; + }, + initContainer: function initContainer() { + var e, + d = ".select2-choices"; + this.searchContainer = this.container.find(".select2-search-field"), this.selection = e = this.container.find(d), this.search.attr("id", "s2id_autogen" + g()), a("label[for='" + this.opts.element.attr("id") + "']").attr("for", this.search.attr("id")), this.search.bind("input paste", this.bind(function () { + this.enabled && (this.opened() || this.open()); + })), this.search.bind("keydown", this.bind(function (a) { + if (this.enabled) { + if (a.which === c.BACKSPACE && "" === this.search.val()) { + this.close(); + var d, + f = e.find(".select2-search-choice-focus"); + if (f.length > 0) return this.unselect(f.first()), this.search.width(10), u(a), b; + d = e.find(".select2-search-choice:not(.select2-locked)"), d.length > 0 && d.last().addClass("select2-search-choice-focus"); + } else e.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); + if (this.opened()) switch (a.which) { + case c.UP: + case c.DOWN: + return this.moveHighlight(a.which === c.UP ? -1 : 1), u(a), b; + case c.ENTER: + case c.TAB: + return this.selectHighlighted(), u(a), b; + case c.ESC: + return this.cancel(a), u(a), b; + } + if (a.which !== c.TAB && !c.isControl(a) && !c.isFunctionKey(a) && a.which !== c.BACKSPACE && a.which !== c.ESC) { + if (a.which === c.ENTER) { + if (this.opts.openOnEnter === !1) return; + if (a.altKey || a.ctrlKey || a.shiftKey || a.metaKey) return; + } + this.open(), (a.which === c.PAGE_UP || a.which === c.PAGE_DOWN) && u(a), a.which === c.ENTER && u(a); + } + } + })), this.search.bind("keyup", this.bind(this.resizeSearch)), this.search.bind("blur", this.bind(function (a) { + this.container.removeClass("select2-container-active"), this.search.removeClass("select2-focused"), this.opened() || this.clearSearch(), a.stopImmediatePropagation(); + })), this.container.delegate(d, "mousedown", this.bind(function (b) { + this.enabled && (a(b.target).closest(".select2-search-choice").length > 0 || (this.clearPlaceholder(), this.open(), this.focusSearch(), b.preventDefault())); + })), this.container.delegate(d, "focus", this.bind(function () { + this.enabled && (this.container.addClass("select2-container-active"), this.dropdown.addClass("select2-drop-active"), this.clearPlaceholder()); + })), this.initContainerWidth(), this.clearSearch(); + }, + enable: function enable() { + this.enabled || (this.parent.enable.apply(this, arguments), this.search.removeAttr("disabled")); + }, + disable: function disable() { + this.enabled && (this.parent.disable.apply(this, arguments), this.search.attr("disabled", !0)); + }, + initSelection: function initSelection() { + if ("" === this.opts.element.val() && "" === this.opts.element.text() && (this.updateSelection([]), this.close(), this.clearSearch()), this.select || "" !== this.opts.element.val()) { + var c = this; + this.opts.initSelection.call(null, this.opts.element, function (a) { + a !== b && null !== a && (c.updateSelection(a), c.close(), c.clearSearch()); + }); + } + }, + clearSearch: function clearSearch() { + var a = this.getPlaceholder(); + a !== b && 0 === this.getVal().length && this.search.hasClass("select2-focused") === !1 ? (this.search.val(a).addClass("select2-default"), this.search.width(this.getMaxSearchWidth())) : this.search.val("").width(10); + }, + clearPlaceholder: function clearPlaceholder() { + this.search.hasClass("select2-default") && this.search.val("").removeClass("select2-default"); + }, + opening: function opening() { + this.clearPlaceholder(), this.resizeSearch(), this.parent.opening.apply(this, arguments), this.focusSearch(), this.opts.element.trigger(a.Event("open")); + }, + close: function close() { + this.opened() && this.parent.close.apply(this, arguments); + }, + focus: function focus() { + this.close(), this.search.focus(); + }, + isFocused: function isFocused() { + return this.search.hasClass("select2-focused"); + }, + updateSelection: function updateSelection(b) { + var c = [], + d = [], + e = this; + a(b).each(function () { + 0 > k(e.id(this), c) && (c.push(e.id(this)), d.push(this)); + }), b = d, this.selection.find(".select2-search-choice").remove(), a(b).each(function () { + e.addSelectedChoice(this); + }), e.postprocessResults(); + }, + tokenize: function tokenize() { + var a = this.search.val(); + a = this.opts.tokenizer(a, this.data(), this.bind(this.onSelect), this.opts), null != a && a != b && (this.search.val(a), a.length > 0 && this.open()); + }, + onSelect: function onSelect(a, b) { + this.addSelectedChoice(a), this.opts.element.trigger({ + type: "selected", + val: this.id(a), + choice: a + }), (this.select || !this.opts.closeOnSelect) && this.postprocessResults(), this.opts.closeOnSelect ? (this.close(), this.search.width(10)) : this.countSelectableResults() > 0 ? (this.search.width(10), this.resizeSearch(), this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize() && this.updateResults(!0), this.positionDropdown()) : (this.close(), this.search.width(10)), this.triggerChange({ + added: a + }), b && b.noFocus || this.focusSearch(); + }, + cancel: function cancel() { + this.close(), this.focusSearch(); + }, + addSelectedChoice: function addSelectedChoice(c) { + var j, + d = !c.locked, + e = a("
  • "), + f = a("
  • "), + g = d ? e : f, + h = this.id(c), + i = this.getVal(); + j = this.opts.formatSelection(c, g.find("div")), j != b && g.find("div").replaceWith("
    " + this.opts.escapeMarkup(j) + "
    "), d && g.find(".select2-search-choice-close").bind("mousedown", u).bind("click dblclick", this.bind(function (b) { + this.enabled && (a(b.target).closest(".select2-search-choice").fadeOut("fast", this.bind(function () { + this.unselect(a(b.target)), this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"), this.close(), this.focusSearch(); + })).dequeue(), u(b)); + })).bind("focus", this.bind(function () { + this.enabled && (this.container.addClass("select2-container-active"), this.dropdown.addClass("select2-drop-active")); + })), g.data("select2-data", c), g.insertBefore(this.searchContainer), i.push(h), this.setVal(i); + }, + unselect: function unselect(a) { + var c, + d, + b = this.getVal(); + if (a = a.closest(".select2-search-choice"), 0 === a.length) throw "Invalid argument: " + a + ". Must be .select2-search-choice"; + c = a.data("select2-data"), c && (d = k(this.id(c), b), d >= 0 && (b.splice(d, 1), this.setVal(b), this.select && this.postprocessResults()), a.remove(), this.opts.element.trigger({ + type: "removed", + val: this.id(c), + choice: c + }), this.triggerChange({ + removed: c + })); + }, + postprocessResults: function postprocessResults() { + var a = this.getVal(), + b = this.results.find(".select2-result"), + c = this.results.find(".select2-result-with-children"), + d = this; + b.each2(function (b, c) { + var e = d.id(c.data("select2-data")); + k(e, a) >= 0 && (c.addClass("select2-selected"), c.find(".select2-result-selectable").addClass("select2-selected")); + }), c.each2(function (a, b) { + b.is(".select2-result-selectable") || 0 !== b.find(".select2-result-selectable:not(.select2-selected)").length || b.addClass("select2-selected"); + }), -1 == this.highlight() && d.highlight(0); + }, + getMaxSearchWidth: function getMaxSearchWidth() { + return this.selection.width() - n(this.search); + }, + resizeSearch: function resizeSearch() { + var a, + b, + c, + d, + e, + f = n(this.search); + a = w(this.search) + 10, b = this.search.offset().left, c = this.selection.width(), d = this.selection.offset().left, e = c - (b - d) - f, a > e && (e = c - f), 40 > e && (e = c - f), 0 >= e && (e = a), this.search.width(e); + }, + getVal: function getVal() { + var a; + return this.select ? (a = this.select.val(), null === a ? [] : a) : (a = this.opts.element.val(), m(a, this.opts.separator)); + }, + setVal: function setVal(b) { + var c; + this.select ? this.select.val(b) : (c = [], a(b).each(function () { + 0 > k(this, c) && c.push(this); + }), this.opts.element.val(0 === c.length ? "" : c.join(this.opts.separator))); + }, + val: function val() { + var c, + d = !1, + f = this; + if (0 === arguments.length) return this.getVal(); + if (c = arguments[0], arguments.length > 1 && (d = arguments[1]), !c && 0 !== c) return this.opts.element.val(""), this.updateSelection([]), this.clearSearch(), d && this.triggerChange(), b; + if (this.setVal(c), this.select) this.opts.initSelection(this.select, this.bind(this.updateSelection)), d && this.triggerChange();else { + if (this.opts.initSelection === b) throw Error("val() cannot be called if initSelection() is not defined"); + this.opts.initSelection(this.opts.element, function (b) { + var c = a(b).map(f.id); + f.setVal(c), f.updateSelection(b), f.clearSearch(), d && f.triggerChange(); + }); + } + this.clearSearch(); + }, + onSortStart: function onSortStart() { + if (this.select) throw Error("Sorting of elements is not supported when attached to instead."); + this.search.width(0), this.searchContainer.hide(); + }, + onSortEnd: function onSortEnd() { + var b = [], + c = this; + this.searchContainer.show(), this.searchContainer.appendTo(this.searchContainer.parent()), this.resizeSearch(), this.selection.find(".select2-search-choice").each(function () { + b.push(c.opts.id(a(this).data("select2-data"))); + }), this.setVal(b), this.triggerChange(); + }, + data: function data(c) { + var e, + d = this; + return 0 === arguments.length ? this.selection.find(".select2-search-choice").map(function () { + return a(this).data("select2-data"); + }).get() : (c || (c = []), e = a.map(c, function (a) { + return d.opts.id(a); + }), this.setVal(e), this.updateSelection(c), this.clearSearch(), b); + } + }), a.fn.select2 = function () { + var d, + g, + h, + i, + c = Array.prototype.slice.call(arguments, 0), + j = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "disable", "positionDropdown", "data"]; + return this.each(function () { + if (0 === c.length || "object" == _typeof(c[0])) d = 0 === c.length ? {} : a.extend({}, c[0]), d.element = a(this), "select" === d.element.get(0).tagName.toLowerCase() ? i = d.element.attr("multiple") : (i = d.multiple || !1, "tags" in d && (d.multiple = i = !0)), g = i ? new f() : new e(), g.init(d);else { + if ("string" != typeof c[0]) throw "Invalid arguments to select2 plugin: " + c; + if (0 > k(c[0], j)) throw "Unknown method: " + c[0]; + if (h = b, g = a(this).data("select2"), g === b) return; + if (h = "container" === c[0] ? g.container : g[c[0]].apply(g, c.slice(1)), h !== b) return !1; + } + }), h === b ? this : h; + }, a.fn.select2.defaults = { + width: "copy", + loadMorePadding: 0, + closeOnSelect: !0, + openOnEnter: !0, + containerCss: {}, + dropdownCss: {}, + containerCssClass: "", + dropdownCssClass: "", + formatResult: function formatResult(a, b, c, d) { + var e = []; + return y(a.text, c.term, e, d), e.join(""); + }, + formatSelection: function formatSelection(a) { + return a ? a.text : b; + }, + sortResults: function sortResults(a) { + return a; + }, + formatResultCssClass: function formatResultCssClass() { + return b; + }, + formatNoMatches: function formatNoMatches() { + return "No matches found"; + }, + formatInputTooShort: function formatInputTooShort(a, b) { + var c = b - a.length; + return "Please enter " + c + " more character" + (1 == c ? "" : "s"); + }, + formatInputTooLong: function formatInputTooLong(a, b) { + var c = a.length - b; + return "Please delete " + c + " character" + (1 == c ? "" : "s"); + }, + formatSelectionTooBig: function formatSelectionTooBig(a) { + return "You can only select " + a + " item" + (1 == a ? "" : "s"); + }, + formatLoadMore: function formatLoadMore() { + return "Loading more results..."; + }, + formatSearching: function formatSearching() { + return "Searching..."; + }, + minimumResultsForSearch: 0, + minimumInputLength: 0, + maximumInputLength: null, + maximumSelectionSize: 0, + id: function id(a) { + return a.id; + }, + matcher: function matcher(a, b) { + return ("" + b).toUpperCase().indexOf(("" + a).toUpperCase()) >= 0; + }, + separator: ",", + tokenSeparators: [], + tokenizer: F, + escapeMarkup: function escapeMarkup(a) { + var b = { + "\\": "\", + "&": "&", + "<": "<", + ">": ">", + '"': """, + "'": "'", + "/": "/" + }; + return (a + "").replace(/[&<>"'\/\\]/g, function (a) { + return b[a[0]]; + }); + }, + blurOnChange: !1, + selectOnBlur: !1, + adaptContainerCssClass: function adaptContainerCssClass(a) { + return a; + }, + adaptDropdownCssClass: function adaptDropdownCssClass() { + return null; + } + }, window.Select2 = { + query: { + ajax: z, + local: A, + tags: B + }, + util: { + debounce: q, + markMatch: y + }, + "class": { + "abstract": d, + single: e, + multi: f + } + }; + } +}(jQuery); /***/ }), -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss": -/*!******************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss ***! - \******************************************************************************************************************************************************************************************************************************/ +/***/ 116: /***/ (function() { -eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://ajaxloadmore/./src/admin/scss/admin.scss?./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B1%5D!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B3%5D"); +// extracted by mini-css-extract-plugin /***/ }), -/***/ "./src/admin/scss/admin.scss": -/*!***********************************!*\ - !*** ./src/admin/scss/admin.scss ***! - \***********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 379: +/***/ (function(module) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./admin.scss */ \"./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss\");\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== \"default\") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)\n/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6___default()), options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_admin_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);\n\n\n//# sourceURL=webpack://ajaxloadmore/./src/admin/scss/admin.scss?"); + + +var stylesInDOM = []; +function getIndexByIdentifier(identifier) { + var result = -1; + for (var i = 0; i < stylesInDOM.length; i++) { + if (stylesInDOM[i].identifier === identifier) { + result = i; + break; + } + } + return result; +} +function modulesToDom(list, options) { + var idCountMap = {}; + var identifiers = []; + for (var i = 0; i < list.length; i++) { + var item = list[i]; + var id = options.base ? item[0] + options.base : item[0]; + var count = idCountMap[id] || 0; + var identifier = "".concat(id, " ").concat(count); + idCountMap[id] = count + 1; + var indexByIdentifier = getIndexByIdentifier(identifier); + var obj = { + css: item[1], + media: item[2], + sourceMap: item[3], + supports: item[4], + layer: item[5] + }; + if (indexByIdentifier !== -1) { + stylesInDOM[indexByIdentifier].references++; + stylesInDOM[indexByIdentifier].updater(obj); + } else { + var updater = addElementStyle(obj, options); + options.byIndex = i; + stylesInDOM.splice(i, 0, { + identifier: identifier, + updater: updater, + references: 1 + }); + } + identifiers.push(identifier); + } + return identifiers; +} +function addElementStyle(obj, options) { + var api = options.domAPI(options); + api.update(obj); + var updater = function updater(newObj) { + if (newObj) { + if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) { + return; + } + api.update(obj = newObj); + } else { + api.remove(); + } + }; + return updater; +} +module.exports = function (list, options) { + options = options || {}; + list = list || []; + var lastIdentifiers = modulesToDom(list, options); + return function update(newList) { + newList = newList || []; + for (var i = 0; i < lastIdentifiers.length; i++) { + var identifier = lastIdentifiers[i]; + var index = getIndexByIdentifier(identifier); + stylesInDOM[index].references--; + } + var newLastIdentifiers = modulesToDom(newList, options); + for (var _i = 0; _i < lastIdentifiers.length; _i++) { + var _identifier = lastIdentifiers[_i]; + var _index = getIndexByIdentifier(_identifier); + if (stylesInDOM[_index].references === 0) { + stylesInDOM[_index].updater(); + stylesInDOM.splice(_index, 1); + } + } + lastIdentifiers = newLastIdentifiers; + }; +}; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": -/*!****************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! - \****************************************************************************/ +/***/ 569: /***/ (function(module) { "use strict"; -eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": -/*!********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! - \********************************************************************/ -/***/ (function(module) { +var memo = {}; -"use strict"; -eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); +/* istanbul ignore next */ +function getTarget(target) { + if (typeof memo[target] === "undefined") { + var styleTarget = document.querySelector(target); + + // Special case to return head of iframe instead of iframe itself + if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head; + } catch (e) { + // istanbul ignore next + styleTarget = null; + } + } + memo[target] = styleTarget; + } + return memo[target]; +} + +/* istanbul ignore next */ +function insertBySelector(insert, style) { + var target = getTarget(insert); + if (!target) { + throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); + } + target.appendChild(style); +} +module.exports = insertBySelector; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": -/*!**********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! - \**********************************************************************/ +/***/ 216: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); + + +/* istanbul ignore next */ +function insertStyleElement(options) { + var element = document.createElement("style"); + options.setAttributes(element, options.attributes); + options.insert(element, options.options); + return element; +} +module.exports = insertStyleElement; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! - \**********************************************************************************/ +/***/ 565: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); + + +/* istanbul ignore next */ +function setAttributesWithoutAttributes(styleElement) { + var nonce = true ? __webpack_require__.nc : 0; + if (nonce) { + styleElement.setAttribute("nonce", nonce); + } +} +module.exports = setAttributesWithoutAttributes; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": -/*!***************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! - \***************************************************************/ +/***/ 795: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); + + +/* istanbul ignore next */ +function apply(styleElement, options, obj) { + var css = ""; + if (obj.supports) { + css += "@supports (".concat(obj.supports, ") {"); + } + if (obj.media) { + css += "@media ".concat(obj.media, " {"); + } + var needLayer = typeof obj.layer !== "undefined"; + if (needLayer) { + css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {"); + } + css += obj.css; + if (needLayer) { + css += "}"; + } + if (obj.media) { + css += "}"; + } + if (obj.supports) { + css += "}"; + } + var sourceMap = obj.sourceMap; + if (sourceMap && typeof btoa !== "undefined") { + css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); + } + + // For old IE + /* istanbul ignore if */ + options.styleTagTransform(css, styleElement, options.options); +} +function removeStyleElement(styleElement) { + // istanbul ignore if + if (styleElement.parentNode === null) { + return false; + } + styleElement.parentNode.removeChild(styleElement); +} + +/* istanbul ignore next */ +function domAPI(options) { + if (typeof document === "undefined") { + return { + update: function update() {}, + remove: function remove() {} + }; + } + var styleElement = options.insertStyleElement(options); + return { + update: function update(obj) { + apply(styleElement, options, obj); + }, + remove: function remove() { + removeStyleElement(styleElement); + } + }; +} +module.exports = domAPI; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": -/*!*********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! - \*********************************************************************/ +/***/ 589: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); + + +/* istanbul ignore next */ +function styleTagTransform(css, styleElement) { + if (styleElement.styleSheet) { + styleElement.styleSheet.cssText = css; + } else { + while (styleElement.firstChild) { + styleElement.removeChild(styleElement.firstChild); + } + styleElement.appendChild(document.createTextNode(css)); + } +} +module.exports = styleTagTransform; /***/ }) @@ -211,12 +2393,604 @@ eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElem /******/ }(); /******/ /************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module can't be inlined because the eval devtool is used. -/******/ var __webpack_exports__ = __webpack_require__("./src/admin/js/index.js"); -/******/ ajaxloadmore = __webpack_exports__; -/******/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +!function() { +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js +var injectStylesIntoStyleTag = __webpack_require__(379); +var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js +var styleDomAPI = __webpack_require__(795); +var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js +var insertBySelector = __webpack_require__(569); +var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js +var setAttributesWithoutAttributes = __webpack_require__(565); +var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js +var insertStyleElement = __webpack_require__(216); +var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js +var styleTagTransform = __webpack_require__(589); +var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform); +// EXTERNAL MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss +var admin = __webpack_require__(116); +var admin_default = /*#__PURE__*/__webpack_require__.n(admin); +;// CONCATENATED MODULE: ./src/admin/scss/admin.scss + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (styleTagTransform_default()); +options.setAttributes = (setAttributesWithoutAttributes_default()); + + options.insert = insertBySelector_default().bind(null, "head"); + +options.domAPI = (styleDomAPI_default()); +options.insertStyleElement = (insertStyleElement_default()); + +var update = injectStylesIntoStyleTag_default()((admin_default()), options); + + + + + /* harmony default export */ var scss_admin = ((admin_default()) && (admin_default()).locals ? (admin_default()).locals : undefined); + +;// CONCATENATED MODULE: ./src/admin/js/index.js +__webpack_require__(283); +__webpack_require__(324); +__webpack_require__(445); + +var ajax_load_more = ajax_load_more || {}; +jQuery(document).ready(function ($) { + 'use strict'; + + ajax_load_more.options = { + speed: 200 + }; + + /** + * Test REST API access + * + * @since 5.1.1 + */ + if ($('.restapi-access').length) { + $.ajax({ + type: 'GET', + url: alm_admin_localize.restapi.url + alm_admin_localize.restapi.namespace + '/test/', + dataType: 'json', + success: function success(data) { + if (data.success) { + console.log('Ajax Load More successfully connected to the WordPress REST API.'); + } + }, + error: function error(status) { + console.warn(status); + $('.restapi-access').fadeIn(); + } + }); + } + + /** + * Build the header admin menu based on the sidebar. + */ + function createAdminMenu() { + var adminmenu = document.querySelector('#adminmenu .toplevel_page_ajax-load-more > ul'); + if (!adminmenu) { + return; + } + var alm_header = document.querySelector('.ajax-load-more header.header-wrap'); + if (!alm_header) { + return; + } + var menu = adminmenu.cloneNode(true); + menu.setAttribute('class', ''); + var nav = document.createElement('nav'); + nav.appendChild(menu); + alm_header.appendChild(nav); + } + createAdminMenu(); + + /** + * Tabbed Navigation Elements + * + * @since 5.4 + */ + var ACTIVE_TAB_CLASS = 'active'; + function openTabbedItem(button, almTabbedWrapper) { + var activeBtn = document.querySelector('.alm-tabbed-wrapper--nav button.active'); // Get Currently Active Button. + var id = button.dataset.id; + + // Remove currently active button. + if (activeBtn) { + activeBtn.classList.remove(ACTIVE_TAB_CLASS); + } + + // Add Button Active Class. + button.classList.add(ACTIVE_TAB_CLASS); + + // Activate Current Section + if (almTabbedWrapper) { + var currentActive = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section.' + ACTIVE_TAB_CLASS); + var section = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section#' + id); + if (currentActive && section) { + currentActive.classList.remove(ACTIVE_TAB_CLASS); + section.classList.add(ACTIVE_TAB_CLASS); + section.focus({ + preventScroll: true + }); + $('html, body').animate({ + scrollTop: $('.alm-tabbed-wrapper--sections').offset().top - 120 + }, 400, function () { + history.replaceState({}, '', '#' + id); + }); + } + } + } + var almTabbedWrapper = document.querySelector('.alm-tabbed-wrapper'); + if (almTabbedWrapper) { + var current = almTabbedWrapper.querySelector('.alm-tabbed-wrapper--section'); + if (current) { + current.classList.add(ACTIVE_TAB_CLASS); + } + var tabbedNav = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--nav button'); + if (tabbedNav) { + tabbedNav.forEach(function (item, index) { + item.addEventListener('click', function () { + openTabbedItem(this, almTabbedWrapper); + }); + }); + } + + // Open section from hash. + var hash = window.location.hash; + if (hash) { + hash = hash.replace('#', ''); + var targetBtn = document.querySelector('.alm-tabbed-wrapper--nav button[data-id="' + hash + '"]'); + if (targetBtn) { + targetBtn.click(); + } + } else { + document.querySelector('.alm-tabbed-wrapper--nav button').classList.add(ACTIVE_TAB_CLASS); + } + } + + /** + * Save Repeater Templates with cmd + s and ctrl + s + * + * @since 5.1 + */ + document.addEventListener('keydown', function (e) { + if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode === 83) { + if (e.target.nodeName === 'TEXTAREA' && $(e.target).closest('.repeater-wrap')) { + var btn = $(e.target).closest('.repeater-wrap').find('input.save-repeater'); + if (btn) { + btn.click(); + } + } + e.preventDefault(); + } + }, false); + + /* + * Set focus in code mirror editor + * @since 5.1 + */ + $('label.trigger-codemirror').on('click', function () { + var el = $(this); + var id = el.data('id'); + var cm = window['editor_' + id]; + if (cm) { + cm.focus(); + cm.setCursor(cm.lineCount(), 0); + } + }); + + /** + * Setting panel save actions. + * + * @since 3.2.0 + */ + var almSettings = $('#alm_OptionsForm'), + savingSettings = false, + settingsForm = document.querySelector('#alm_OptionsForm'), + settingsTarget = document.querySelector('.alm-settings-feedback'); + if (settingsForm) { + document.body.appendChild(settingsTarget); + } + ajax_load_more.saveSettings = function () { + if (savingSettings) { + return false; + } + savingSettings = true; + settingsForm.classList.add('--saving'); + settingsTarget.classList.add('--saving'); + settingsTarget.innerHTML = alm_admin_localize.settings_saving; + almSettings.ajaxSubmit({ + // Success + success: function success() { + // Delay for effect + setTimeout(function () { + settingsTarget.classList.remove('--saving'); + settingsTarget.classList.add('--saved'); + settingsTarget.innerHTML = alm_admin_localize.settings_saved; + settingsForm.classList.remove('--saving'); + savingSettings = false; + setTimeout(function () { + settingsTarget.classList.remove('--saved'); + }, 2500); + }, 500); + }, + // Error + error: function error() { + // Delay for effect + setTimeout(function () { + settingsTarget.classList.remove('--saving'); + settingsTarget.classList.add('--error'); + settingsTarget.innerHTML = alm_admin_localize.settings_error; + settingsForm.classList.remove('--saving'); + console.warn(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error); + savingSettings = false; + setTimeout(function () { + settingsTarget.classList.remove('--error'); + }, 2500); + }, 500); + } + }); + return false; + }; + + // On Change, save the settings + var settingsTimer; + $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () { + // Set a timer to avoid updating settings to frequently + if (settingsTimer) clearTimeout(settingsTimer); + settingsTimer = setTimeout(function () { + ajax_load_more.saveSettings(); + }, 500); + }); + + /** + * Download Repeater Template + * Trigger the download of a repeater template from the admin + * + * @since 3.6 + */ + $('.download-repeater').on('click', function () { + this.closest('form').submit(); + }); + + /** + * Tooltipster + * + * @see http://iamceege.github.io/tooltipster/ + * @since 2.8.4 + */ + $('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () { + $(this).tooltipster({ + delay: 125, + speed: 125, + maxWidth: 325 + }).tooltipster('show'); + }); + + /** + * Button preview pane + * Found on Settings and Shortcode Builder. + * + * @since 2.8.4 + */ + $('select#alm_settings_btn_color').on('change', function () { + var color = jQuery(this).val(); + // Remove other colors + var wrap = $('.ajax-load-more-wrap'); + wrap.attr('class', ''); + wrap.addClass('ajax-load-more-wrap'); + wrap.addClass(color); + $('#test-alm-button', wrap).removeClass('loading'); + + // Add loading class if Infinite loading style + if (color.indexOf('infinite') >= 0) { + $('#test-alm-button', wrap).addClass('loading'); + } + }); + $('select#alm_settings_btn_color').click(function (e) { + e.preventDefault(); + }); + $('.alm-template-listing li a').click(function (e) { + e.preventDefault(); + var el = $(this), + val = el.data('path'); + el.parent().parent().next('.template-selection').val(val); + }); + $('.alm-template-section-nav li a').click(function (e) { + e.preventDefault(); + var el = $(this), + index = el.parent().index(), + parent = el.parent().parent().parent('.repeater-wrap'); + if (!el.hasClass('active')) { + el.parent().addClass('active').siblings().removeClass('active'); + $('.alm-template-toggle', parent).hide(); + $('.alm-template-toggle', parent).eq(index).show(); + } + }); + + // Copy to Clipboard + $('.copy-to-clipboard').on('click', function () { + var btn = $(this).get(0); + var input = document.querySelector('#shortcode_output'); + if (input && btn) { + var old_txt = btn.innerHTML; + var copied_txt = btn.dataset.copied ? btn.dataset.copied : old_txt; + input.select(); + document.execCommand('copy'); + input.disabled = true; + btn.disabled = true; + input.focus(); + + // Set Text of Button + btn.innerHTML = copied_txt; + setTimeout(function () { + btn.innerHTML = old_txt; + input.disabled = false; + btn.disabled = false; + }, 2500); + } + }); + ajax_load_more.copyToClipboard = function (text) { + window.prompt('Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.', text); + }; + + // Copy link on repeater templates + $('.alm-dropdown button.copy').click(function () { + var container = $(this).closest('.repeater-wrap'), + // find closet wrap + el = container.data('name'); // get template name + + if (el === 'default') el = 'template-default'; + var c = $('#' + el).val(); // Get textarea val() + ajax_load_more.copyToClipboard(c); + }); + + /* + * Expand/Collapse shortcode headings + * + * @since 2.0.0 + */ + + $(document).on('click', 'h3.heading', function () { + var el = $(this); + if ($(el).hasClass('open')) { + $(el).next('.expand-wrap').slideDown(ajax_load_more.options.speed, 'alm_easeInOutQuad', function () { + $(el).removeClass('open'); + }); + } else { + $(el).next('.expand-wrap').slideUp(ajax_load_more.options.speed, 'alm_easeInOutQuad', function () { + $(el).addClass('open'); + }); + } + }); + + // Toggle Links. + $(document).on('click', '.toggle-all', function () { + var el = $(this); + if (el.hasClass('closed')) { + el.removeClass('closed'); + $('h3.heading, h2.shortcode-title').removeClass('open'); + $('.section-wrap').slideDown(ajax_load_more.options.speed, 'alm_easeInOutQuad'); + $('.expand-wrap').slideDown(ajax_load_more.options.speed, 'alm_easeInOutQuad'); + } else { + el.addClass('closed'); + $('h3.heading, h2.shortcode-title').addClass('open'); + $('.section-wrap').slideUp(ajax_load_more.options.speed, 'alm_easeInOutQuad'); + $('.expand-wrap').slideUp(ajax_load_more.options.speed, 'alm_easeInOutQuad'); + } + }); + + // Trigger click events on enter/return + $('h3.heading, h2.shortcode-title').on('keypress', function (e) { + var key = e.which; + if (key == 13) { + // the enter key code + $(this).click(); + return false; + } + }); + + /** + * Activate License. + * + * @since 2.8.3 + */ + var almActivating = false; + $(document).on('click', '.license-btn', function (e) { + e.preventDefault(); + if (!almActivating) { + $('.license-btn-wrap .msg').remove(); + almActivating = true; + var el = $(this), + wrap = el.closest('.license-btn-wrap'), + parent = el.closest('.license'), + type = el.data('type'), + item = wrap.data('name'), + url = wrap.data('url'), + upgrade = wrap.data('upgrade-url'), + status = wrap.data('option-status'), + key = wrap.data('option-key'), + license = parent.find('input[type=text]').val(); + $('.loading', parent).fadeIn(300); + + // Get value from Ajax + $.ajax({ + type: 'GET', + url: alm_admin_localize.ajax_admin_url, + dataType: 'json', + data: { + action: 'alm_license_activation', + nonce: alm_admin_localize.alm_admin_nonce, + type: type, + item: item, + status: status, + url: url, + upgrade: upgrade, + key: key, + license: license + }, + success: function success(data) { + if (data.msg) { + $('.license-btn-wrap', parent).append('
    ' + data.msg + '
    '); + } + if (data.license === 'valid') { + $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active); + $('.license-title .status', parent).addClass('valid').removeClass('invalid'); + $('.activate.license-btn', parent).addClass('hide'); + $('.check-licence.license-btn', parent).addClass('hide'); + $('.deactivate.license-btn', parent).removeClass('hide'); + $('.renew-btn', parent).addClass('hide'); + $('.no-license', parent).slideUp(200); + } else { + $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive); + $('.license-title .status', parent).removeClass('valid').addClass('invalid'); + $('.activate.license-btn', parent).removeClass('hide'); + $('.check-licence.license-btn', parent).addClass('hide'); + $('.deactivate.license-btn', parent).addClass('hide'); + $('.no-license', parent).slideDown(200); + } + $('.loading', parent).delay(250).fadeOut(300); + almActivating = false; + }, + error: function error(status, _error) { + console.warn(status, _error); + $('.loading', parent).delay(250).fadeOut(300); + almActivating = false; + } + }); + } + }); + + /** + * Get layout value via Ajax and inject into template. + * + * @since 2.8.7 + */ + $(document).on('click', '.alm-layout-selection li .layout', function (e) { + e.preventDefault(); + var el = $(this), + type = el.data('type'), + custom = el.hasClass('custom') ? 'true' : 'false', + textarea = el.closest('.repeater-wrap').find('.CodeMirror'), + layout_btn_text = el.html(), + name = el.closest('.repeater-wrap').data('name'); + if (!el.hasClass('updating')) { + el.addClass('updating'); + $('span', el).text(alm_admin_localize.applying_layout + '...'); + textarea.addClass('loading'); + + // Get Codemirror Editor ID + var eid = ''; + if (name === 'default') { + // Default Template + eid = window.editor_default; + } else { + // Repeater Templates + eid = window['editor_' + name]; + } + + // Get value from Ajax + $.ajax({ + type: 'GET', + url: alm_admin_localize.ajax_admin_url, + data: { + action: 'alm_get_layout', + type: type, + custom: custom, + nonce: alm_admin_localize.alm_admin_nonce + }, + dataType: 'JSON', + success: function success(data) { + eid.setValue(data.value); + + // Clear button styles + setTimeout(function () { + $('span', el).text(alm_admin_localize.template_updated).blur(); + setTimeout(function () { + el.removeClass('updating').html(layout_btn_text).blur(); // Close drop menu. + el.closest('.alm-drop-btn').trigger('click'); + textarea.removeClass('loading'); + }, 400); + }, 400); + }, + error: function error(status) { + console.warn(status); + textarea.removeClass('loading'); + } + }); + } + }); + + /** + * Set Transient (Transient). + * + * @since 4.0 + */ + $(document).on('click', '.alm-transient button.notice-dismiss', function (e) { + e.preventDefault(); + var el = $(this), + container = el.parent('.alm-transient'), + transient_name = container.data('transient'), + duration = container.data('duration'); + + // Get value from Ajax + $.ajax({ + type: 'POST', + url: alm_admin_localize.ajax_admin_url, + data: { + action: 'alm_set_transient', + nonce: alm_admin_localize.alm_admin_nonce, + transient_name: transient_name, + duration: duration + }, + success: function success(data) { + container.fadeOut(); + }, + error: function error(xhr, status, _error2) { + console.warn(status); + } + }); + }); + + /** + * Scroll to setting section. + * + * @since 2.7.3 + */ + $(document).on('change', '#alm-settings-nav', function (e) { + e.preventDefault(); + var el = $(this), + index = $('option:selected', el).index(); + if (index !== '#') { + index = index - 1; + $('html, body').animate({ + scrollTop: $('#alm_OptionsForm h2').eq(index).offset().top - 40 + }, 500); + } + }); +}); +}(); +ajaxloadmore = __webpack_exports__; /******/ })() ; \ No newline at end of file diff --git a/build/blocks/core/index.asset.php b/build/blocks/core/index.asset.php index b5612df..c8ec929 100644 --- a/build/blocks/core/index.asset.php +++ b/build/blocks/core/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-i18n', 'wp-server-side-render'), 'version' => '1d780cd450fcc77c107f'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-i18n', 'wp-server-side-render'), 'version' => '5856395e8f4156de225c'); diff --git a/build/blocks/core/index.css b/build/blocks/core/index.css index ee42822..011f32f 100644 --- a/build/blocks/core/index.css +++ b/build/blocks/core/index.css @@ -1,45 +1 @@ -/*!*************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/core/index.scss ***! - \*************************************************************************************************************************************************/ -.editor-styles-wrapper .alm-listing { - pointer-events: none; -} -.editor-styles-wrapper .ajax-load-more-block-selector { - background-color: #fff; - border: 1px solid #e1e1e1; - box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.02); - overflow: hidden; - box-sizing: border-box; -} -.editor-styles-wrapper .ajax-load-more-block-selector * { - box-sizing: border-box; -} -.editor-styles-wrapper .ajax-load-more-block-selector h3 { - font-size: 18px !important; - font-weight: 700 !important; - line-height: 1.35 !important; - margin: 0 !important; - padding: 15px !important; - border-bottom: 1px solid #e1e1e1 !important; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important; -} -.editor-styles-wrapper .ajax-load-more-block-selector div { - display: flex; - align-items: center; - gap: 5px; - font-size: 13px; - line-height: 1.35; - margin: 5px; - padding: 0; - padding: 15px; - background-color: #fef8ee; - border-left: 5px solid #f0b849; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important; -} -.editor-styles-wrapper .ajax-load-more-block-selector div span { - color: #f0b849; -} - -.alm-results-text { - display: none !important; -} +.editor-styles-wrapper .alm-listing{pointer-events:none}.editor-styles-wrapper .ajax-load-more-block-selector{background-color:#fff;border:1px solid #e1e1e1;box-shadow:0 0 0 5px rgba(0,0,0,.02);box-sizing:border-box;overflow:hidden}.editor-styles-wrapper .ajax-load-more-block-selector *{box-sizing:border-box}.editor-styles-wrapper .ajax-load-more-block-selector h3{border-bottom:1px solid #e1e1e1!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif!important;font-size:18px!important;font-weight:700!important;line-height:1.35!important;margin:0!important;padding:15px!important}.editor-styles-wrapper .ajax-load-more-block-selector div{align-items:center;background-color:#fef8ee;border-left:5px solid #f0b849;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif!important;font-size:13px;gap:5px;line-height:1.35;margin:5px;padding:15px}.editor-styles-wrapper .ajax-load-more-block-selector div span{color:#f0b849}.alm-results-text{display:none!important} \ No newline at end of file diff --git a/build/blocks/core/index.js b/build/blocks/core/index.js index 9683ce5..3d97120 100644 --- a/build/blocks/core/index.js +++ b/build/blocks/core/index.js @@ -1,264 +1,266 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ var ajaxloadmore; /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "./src/blocks/core/Icon.js": -/*!*********************************!*\ - !*** ./src/blocks/core/Icon.js ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }\n/* harmony export */ });\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {\n return /*#__PURE__*/React.createElement(\"svg\", {\n width: \"80\",\n height: \"80\",\n viewBox: \"0 0 80 80\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: \"80\",\n height: \"80\",\n rx: \"8\",\n fill: \"#e75a4d\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M20 59H33.585V56.91C32.0817 56.0667 30.4867 55.535 28.8 55.315L32.045 46.57H44.255L47.445 55.315C46.7117 55.4617 45.9417 55.6817 45.135 55.975C44.3283 56.2683 43.5767 56.58 42.88 56.91V59H60.095V56.91C59.545 56.5433 58.9033 56.2225 58.17 55.9475C57.4367 55.6725 56.7033 55.4617 55.97 55.315L42.165 19.84H38.095L23.905 55.315C23.245 55.4617 22.5758 55.6725 21.8975 55.9475C21.2192 56.2225 20.5867 56.5433 20 56.91V59ZM38.2325 28.3232L43.1 42.995H33.365L38.2325 28.3232Z\",\n fill: \"white\",\n fillOpacity: \"0.8\"\n }));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/Icon.js?"); - -/***/ }), - -/***/ "./src/blocks/core/edit.js": -/*!*********************************!*\ - !*** ./src/blocks/core/edit.js ***! - \*********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/dom-ready */ \"@wordpress/dom-ready\");\n/* harmony import */ var _wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/server-side-render */ \"@wordpress/server-side-render\");\n/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _utils_components_editor_EditWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/components/editor/EditWrapper */ \"./src/blocks/utils/components/editor/EditWrapper.js\");\n/* harmony import */ var _utils_components_editor_Loader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/components/editor/Loader */ \"./src/blocks/utils/components/editor/Loader.js\");\n/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ \"./src/blocks/core/block.json\");\n/* harmony import */ var _inspector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./inspector */ \"./src/blocks/core/inspector.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n\n\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(props) {\n var attributes = props.attributes;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_inspector__WEBPACK_IMPORTED_MODULE_5__[\"default\"], props), /*#__PURE__*/React.createElement(_utils_components_editor_EditWrapper__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null, /*#__PURE__*/React.createElement((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1___default()), {\n block: _block_json__WEBPACK_IMPORTED_MODULE_4__.name,\n attributes: attributes,\n LoadingResponsePlaceholder: _utils_components_editor_Loader__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n EmptyResponsePlaceholder: _utils_components_editor_Loader__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n })));\n}\n\n/**\n * Watch for changes to the DOM and initialize ALM blocks.\n */\nvar almBlockCallback = function almBlockCallback() {\n var alm = document.querySelectorAll('.wp-block-ajax-load-more-core .ajax-load-more-wrap');\n if (alm !== null && alm !== void 0 && alm.length) {\n _toConsumableArray(alm).forEach(function (instance) {\n ajaxloadmore.wpblock(instance);\n });\n }\n};\n_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0___default()(function () {\n var observer = new MutationObserver(almBlockCallback);\n var targetNode = document.querySelector('#editor');\n var config = {\n attributes: false,\n childList: true,\n subtree: true\n };\n observer.observe(targetNode, config);\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/edit.js?"); - -/***/ }), - -/***/ "./src/blocks/core/index.js": -/*!**********************************!*\ - !*** ./src/blocks/core/index.js ***! - \**********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ \"./src/blocks/core/edit.js\");\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.scss */ \"./src/blocks/core/index.scss\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Icon */ \"./src/blocks/core/Icon.js\");\n\n\n\n\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('ajax-load-more/core', {\n icon: {\n src: _Icon__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n edit: _edit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/index.js?"); - -/***/ }), - -/***/ "./src/blocks/core/inspector.js": -/*!**************************************!*\ - !*** ./src/blocks/core/inspector.js ***! - \**************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n\n/**\n * Inspector controls for the block.\n *\n * @param {Object} props Block props.\n * @return {Element} \t Inspector controls.\n */\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes;\n var _alm_localize = alm_localize,\n _alm_localize$adminur = _alm_localize.adminurl,\n adminurl = _alm_localize$adminur === void 0 ? '' : _alm_localize$adminur;\n return /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, {\n title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Settings', 'ajax-load-more')\n }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextareaControl, {\n label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('ALM Shortcode', 'ajax-load-more'),\n placeholder: '[ajax_load_more]',\n value: attributes === null || attributes === void 0 ? void 0 : attributes.shortcode,\n onChange: function onChange(data) {\n return setAttributes({\n shortcode: data\n });\n },\n help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Note: Scroll is disabled within the WP block editor.', 'ajax-load-more'),\n rows: 6\n }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Flex, {\n gap: \"5px\",\n justify: \"flex-start\",\n style: {\n marginTop: '-10px'\n }\n }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {\n href: \"\".concat(adminurl, \"/admin.php?page=ajax-load-more-shortcode-builder\"),\n size: \"compact\",\n variant: \"secondary\",\n target: \"_blank\"\n }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Create Shortcode', 'ajax-load-more')))));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/inspector.js?"); - -/***/ }), - -/***/ "./src/blocks/utils/components/editor/EditWrapper.js": -/*!***********************************************************!*\ - !*** ./src/blocks/utils/components/editor/EditWrapper.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ EditWrapper; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _functions_sidebar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../functions/sidebar */ \"./src/blocks/utils/functions/sidebar.js\");\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n\n\n/**\n * Component wrapper for a block in Edit mode.\n *\n * @param {Object} props Component props.\n * @return {Element} The EditWrapper component.\n */\nfunction EditWrapper(props) {\n var children = props.children,\n _props$useFocus = props.useFocus,\n useFocus = _props$useFocus === void 0 ? true : _props$useFocus;\n var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps)();\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, blockProps, {\n onFocus: useFocus ? function () {\n return (0,_functions_sidebar__WEBPACK_IMPORTED_MODULE_1__.openBlockSidebar)();\n } : null\n }), children);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/utils/components/editor/EditWrapper.js?"); - -/***/ }), - -/***/ "./src/blocks/utils/components/editor/Loader.js": -/*!******************************************************!*\ - !*** ./src/blocks/utils/components/editor/Loader.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ Loader; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__);\n\n\n/**\n * A loader for server-side block rendering/updating in the editor.\n *\n * @return {Element} The Loader component.\n */\nfunction Loader() {\n return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__.Flex, {\n justify: \"center\",\n align: \"center\",\n style: {\n padding: '30px 10px'\n }\n }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__.Spinner, {\n style: {\n width: '20px',\n height: '20px'\n }\n }));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/utils/components/editor/Loader.js?"); - -/***/ }), - -/***/ "./src/blocks/utils/functions/sidebar.js": -/*!***********************************************!*\ - !*** ./src/blocks/utils/functions/sidebar.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ closeBlockSidebar: function() { return /* binding */ closeBlockSidebar; },\n/* harmony export */ openBlockSidebar: function() { return /* binding */ openBlockSidebar; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);\n\n\n/**\n * Open the block options.\n */\nfunction openBlockSidebar() {\n (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.dispatch)('core/edit-post').openGeneralSidebar('edit-post/block');\n}\n/**\n * Close the block options.\n */\nfunction closeBlockSidebar() {\n (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.dispatch)('core/edit-post').closeGeneralSidebar();\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/utils/functions/sidebar.js?"); - -/***/ }), - -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/core/index.scss": -/*!*******************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/core/index.scss ***! - \*******************************************************************************************************************************************************************************************************************************/ +/***/ 145: /***/ (function() { -eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/index.scss?./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B1%5D!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B3%5D"); - -/***/ }), - -/***/ "./src/blocks/core/index.scss": -/*!************************************!*\ - !*** ./src/blocks/core/index.scss ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./index.scss */ \"./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/core/index.scss\");\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== \"default\") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)\n/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default()), options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);\n\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/index.scss?"); +// extracted by mini-css-extract-plugin /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": -/*!****************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! - \****************************************************************************/ +/***/ 379: /***/ (function(module) { "use strict"; -eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": -/*!********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! - \********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); +var stylesInDOM = []; +function getIndexByIdentifier(identifier) { + var result = -1; + for (var i = 0; i < stylesInDOM.length; i++) { + if (stylesInDOM[i].identifier === identifier) { + result = i; + break; + } + } + return result; +} +function modulesToDom(list, options) { + var idCountMap = {}; + var identifiers = []; + for (var i = 0; i < list.length; i++) { + var item = list[i]; + var id = options.base ? item[0] + options.base : item[0]; + var count = idCountMap[id] || 0; + var identifier = "".concat(id, " ").concat(count); + idCountMap[id] = count + 1; + var indexByIdentifier = getIndexByIdentifier(identifier); + var obj = { + css: item[1], + media: item[2], + sourceMap: item[3], + supports: item[4], + layer: item[5] + }; + if (indexByIdentifier !== -1) { + stylesInDOM[indexByIdentifier].references++; + stylesInDOM[indexByIdentifier].updater(obj); + } else { + var updater = addElementStyle(obj, options); + options.byIndex = i; + stylesInDOM.splice(i, 0, { + identifier: identifier, + updater: updater, + references: 1 + }); + } + identifiers.push(identifier); + } + return identifiers; +} +function addElementStyle(obj, options) { + var api = options.domAPI(options); + api.update(obj); + var updater = function updater(newObj) { + if (newObj) { + if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) { + return; + } + api.update(obj = newObj); + } else { + api.remove(); + } + }; + return updater; +} +module.exports = function (list, options) { + options = options || {}; + list = list || []; + var lastIdentifiers = modulesToDom(list, options); + return function update(newList) { + newList = newList || []; + for (var i = 0; i < lastIdentifiers.length; i++) { + var identifier = lastIdentifiers[i]; + var index = getIndexByIdentifier(identifier); + stylesInDOM[index].references--; + } + var newLastIdentifiers = modulesToDom(newList, options); + for (var _i = 0; _i < lastIdentifiers.length; _i++) { + var _identifier = lastIdentifiers[_i]; + var _index = getIndexByIdentifier(_identifier); + if (stylesInDOM[_index].references === 0) { + stylesInDOM[_index].updater(); + stylesInDOM.splice(_index, 1); + } + } + lastIdentifiers = newLastIdentifiers; + }; +}; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": -/*!**********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! - \**********************************************************************/ +/***/ 569: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! - \**********************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); +var memo = {}; + +/* istanbul ignore next */ +function getTarget(target) { + if (typeof memo[target] === "undefined") { + var styleTarget = document.querySelector(target); + + // Special case to return head of iframe instead of iframe itself + if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head; + } catch (e) { + // istanbul ignore next + styleTarget = null; + } + } + memo[target] = styleTarget; + } + return memo[target]; +} + +/* istanbul ignore next */ +function insertBySelector(insert, style) { + var target = getTarget(insert); + if (!target) { + throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); + } + target.appendChild(style); +} +module.exports = insertBySelector; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": -/*!***************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! - \***************************************************************/ +/***/ 216: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": -/*!*********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! - \*********************************************************************/ -/***/ (function(module) { -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); +/* istanbul ignore next */ +function insertStyleElement(options) { + var element = document.createElement("style"); + options.setAttributes(element, options.attributes); + options.insert(element, options.options); + return element; +} +module.exports = insertStyleElement; /***/ }), -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ (function(module) { +/***/ 565: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -module.exports = window["wp"]["blockEditor"]; -/***/ }), -/***/ "@wordpress/blocks": -/*!********************************!*\ - !*** external ["wp","blocks"] ***! - \********************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["blocks"]; +/* istanbul ignore next */ +function setAttributesWithoutAttributes(styleElement) { + var nonce = true ? __webpack_require__.nc : 0; + if (nonce) { + styleElement.setAttribute("nonce", nonce); + } +} +module.exports = setAttributesWithoutAttributes; /***/ }), -/***/ "@wordpress/components": -/*!************************************!*\ - !*** external ["wp","components"] ***! - \************************************/ +/***/ 795: /***/ (function(module) { "use strict"; -module.exports = window["wp"]["components"]; - -/***/ }), -/***/ "@wordpress/data": -/*!******************************!*\ - !*** external ["wp","data"] ***! - \******************************/ -/***/ (function(module) { -"use strict"; -module.exports = window["wp"]["data"]; +/* istanbul ignore next */ +function apply(styleElement, options, obj) { + var css = ""; + if (obj.supports) { + css += "@supports (".concat(obj.supports, ") {"); + } + if (obj.media) { + css += "@media ".concat(obj.media, " {"); + } + var needLayer = typeof obj.layer !== "undefined"; + if (needLayer) { + css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {"); + } + css += obj.css; + if (needLayer) { + css += "}"; + } + if (obj.media) { + css += "}"; + } + if (obj.supports) { + css += "}"; + } + var sourceMap = obj.sourceMap; + if (sourceMap && typeof btoa !== "undefined") { + css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); + } + + // For old IE + /* istanbul ignore if */ + options.styleTagTransform(css, styleElement, options.options); +} +function removeStyleElement(styleElement) { + // istanbul ignore if + if (styleElement.parentNode === null) { + return false; + } + styleElement.parentNode.removeChild(styleElement); +} + +/* istanbul ignore next */ +function domAPI(options) { + if (typeof document === "undefined") { + return { + update: function update() {}, + remove: function remove() {} + }; + } + var styleElement = options.insertStyleElement(options); + return { + update: function update(obj) { + apply(styleElement, options, obj); + }, + remove: function remove() { + removeStyleElement(styleElement); + } + }; +} +module.exports = domAPI; /***/ }), -/***/ "@wordpress/dom-ready": -/*!**********************************!*\ - !*** external ["wp","domReady"] ***! - \**********************************/ +/***/ 589: /***/ (function(module) { "use strict"; -module.exports = window["wp"]["domReady"]; -/***/ }), -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "@wordpress/server-side-render": -/*!******************************************!*\ - !*** external ["wp","serverSideRender"] ***! - \******************************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["serverSideRender"]; - -/***/ }), - -/***/ "./src/blocks/core/block.json": -/*!************************************!*\ - !*** ./src/blocks/core/block.json ***! - \************************************/ -/***/ (function(module) { - -"use strict"; -eval("module.exports = JSON.parse('{\"$schema\":\"https://schemas.wp.org/trunk/block.json\",\"apiVersion\":3,\"name\":\"ajax-load-more/core\",\"title\":\"Ajax Load More\",\"category\":\"ajax-load-more\",\"description\":\"The ultimate infinite scroll and lazy load plugin for WordPress.\",\"textdomain\":\"ajax-load-more\",\"supports\":{\"align\":false},\"attributes\":{\"shortcode\":{\"type\":\"string\",\"default\":\"\"}},\"editorScript\":[\"file:./index.js\",\"ajax-load-more\",\"ajax-load-more-paging\"],\"editorStyle\":[\"file:./index.css\",\"ajax-load-more\",\"ajax-load-more-layouts\",\"ajax-load-more-paging\"],\"render\":\"file:./render.php\"}');\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/core/block.json?"); +/* istanbul ignore next */ +function styleTagTransform(css, styleElement) { + if (styleElement.styleSheet) { + styleElement.styleSheet.cssText = css; + } else { + while (styleElement.firstChild) { + styleElement.removeChild(styleElement.firstChild); + } + styleElement.appendChild(document.createTextNode(css)); + } +} +module.exports = styleTagTransform; /***/ }) @@ -335,12 +337,260 @@ eval("module.exports = JSON.parse('{\"$schema\":\"https://schemas.wp.org/trunk/b /******/ }(); /******/ /************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module can't be inlined because the eval devtool is used. -/******/ var __webpack_exports__ = __webpack_require__("./src/blocks/core/index.js"); -/******/ ajaxloadmore = __webpack_exports__; -/******/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +!function() { +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +;// CONCATENATED MODULE: external ["wp","blocks"] +var external_wp_blocks_namespaceObject = window["wp"]["blocks"]; +;// CONCATENATED MODULE: external ["wp","domReady"] +var external_wp_domReady_namespaceObject = window["wp"]["domReady"]; +var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_namespaceObject); +;// CONCATENATED MODULE: external ["wp","serverSideRender"] +var external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"]; +var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_wp_serverSideRender_namespaceObject); +;// CONCATENATED MODULE: external ["wp","blockEditor"] +var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"]; +;// CONCATENATED MODULE: external ["wp","data"] +var external_wp_data_namespaceObject = window["wp"]["data"]; +;// CONCATENATED MODULE: ./src/blocks/utils/functions/sidebar.js + + +/** + * Open the block options. + */ +function openBlockSidebar() { + (0,external_wp_data_namespaceObject.dispatch)('core/edit-post').openGeneralSidebar('edit-post/block'); +} +/** + * Close the block options. + */ +function closeBlockSidebar() { + dispatch('core/edit-post').closeGeneralSidebar(); +} +;// CONCATENATED MODULE: ./src/blocks/utils/components/editor/EditWrapper.js +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + + +/** + * Component wrapper for a block in Edit mode. + * + * @param {Object} props Component props. + * @return {Element} The EditWrapper component. + */ +function EditWrapper(props) { + var children = props.children, + _props$useFocus = props.useFocus, + useFocus = _props$useFocus === void 0 ? true : _props$useFocus; + var blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)(); + return /*#__PURE__*/React.createElement("div", _extends({}, blockProps, { + onFocus: useFocus ? function () { + return openBlockSidebar(); + } : null + }), children); +} +;// CONCATENATED MODULE: external ["wp","components"] +var external_wp_components_namespaceObject = window["wp"]["components"]; +;// CONCATENATED MODULE: ./src/blocks/utils/components/editor/Loader.js + + +/** + * A loader for server-side block rendering/updating in the editor. + * + * @return {Element} The Loader component. + */ +function Loader() { + return /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Flex, { + justify: "center", + align: "center", + style: { + padding: '30px 10px' + } + }, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Spinner, { + style: { + width: '20px', + height: '20px' + } + })); +} +;// CONCATENATED MODULE: ./src/blocks/core/block.json +var block_namespaceObject = JSON.parse('{"u2":"ajax-load-more/core"}'); +;// CONCATENATED MODULE: external ["wp","i18n"] +var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; +;// CONCATENATED MODULE: ./src/blocks/core/inspector.js + + + + +/** + * Inspector controls for the block. + * + * @param {Object} props Block props. + * @return {Element} Inspector controls. + */ +/* harmony default export */ function inspector(props) { + var attributes = props.attributes, + setAttributes = props.setAttributes; + var _alm_localize = alm_localize, + _alm_localize$adminur = _alm_localize.adminurl, + adminurl = _alm_localize$adminur === void 0 ? '' : _alm_localize$adminur; + return /*#__PURE__*/React.createElement(external_wp_blockEditor_namespaceObject.InspectorControls, null, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.PanelBody, { + title: (0,external_wp_i18n_namespaceObject.__)('Settings', 'ajax-load-more') + }, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.TextareaControl, { + label: (0,external_wp_i18n_namespaceObject.__)('ALM Shortcode', 'ajax-load-more'), + placeholder: '[ajax_load_more]', + value: attributes === null || attributes === void 0 ? void 0 : attributes.shortcode, + onChange: function onChange(data) { + return setAttributes({ + shortcode: data + }); + }, + help: (0,external_wp_i18n_namespaceObject.__)('Note: Scroll is disabled within the WP block editor.', 'ajax-load-more'), + rows: 6 + }), /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Flex, { + gap: "5px", + justify: "flex-start", + style: { + marginTop: '-10px' + } + }, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Button, { + href: "".concat(adminurl, "/admin.php?page=ajax-load-more-shortcode-builder"), + size: "compact", + variant: "secondary", + target: "_blank" + }, (0,external_wp_i18n_namespaceObject.__)('Create Shortcode', 'ajax-load-more'))))); +} +;// CONCATENATED MODULE: ./src/blocks/core/edit.js +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + + + + + +/* harmony default export */ function edit(props) { + var attributes = props.attributes; + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(inspector, props), /*#__PURE__*/React.createElement(EditWrapper, null, /*#__PURE__*/React.createElement((external_wp_serverSideRender_default()), { + block: block_namespaceObject.u2, + attributes: attributes, + LoadingResponsePlaceholder: Loader, + EmptyResponsePlaceholder: Loader + }))); +} + +/** + * Watch for changes to the DOM and initialize ALM blocks. + */ +var almBlockCallback = function almBlockCallback() { + var alm = document.querySelectorAll('.wp-block-ajax-load-more-core .ajax-load-more-wrap'); + if (alm !== null && alm !== void 0 && alm.length) { + _toConsumableArray(alm).forEach(function (instance) { + ajaxloadmore.wpblock(instance); + }); + } +}; +external_wp_domReady_default()(function () { + var observer = new MutationObserver(almBlockCallback); + var targetNode = document.querySelector('#editor'); + var config = { + attributes: false, + childList: true, + subtree: true + }; + observer.observe(targetNode, config); +}); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js +var injectStylesIntoStyleTag = __webpack_require__(379); +var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js +var styleDomAPI = __webpack_require__(795); +var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js +var insertBySelector = __webpack_require__(569); +var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js +var setAttributesWithoutAttributes = __webpack_require__(565); +var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js +var insertStyleElement = __webpack_require__(216); +var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js +var styleTagTransform = __webpack_require__(589); +var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform); +// EXTERNAL MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/core/index.scss +var core = __webpack_require__(145); +var core_default = /*#__PURE__*/__webpack_require__.n(core); +;// CONCATENATED MODULE: ./src/blocks/core/index.scss + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (styleTagTransform_default()); +options.setAttributes = (setAttributesWithoutAttributes_default()); + + options.insert = insertBySelector_default().bind(null, "head"); + +options.domAPI = (styleDomAPI_default()); +options.insertStyleElement = (insertStyleElement_default()); + +var update = injectStylesIntoStyleTag_default()((core_default()), options); + + + + + /* harmony default export */ var blocks_core = ((core_default()) && (core_default()).locals ? (core_default()).locals : undefined); + +;// CONCATENATED MODULE: ./src/blocks/core/Icon.js +/* harmony default export */ function Icon() { + return /*#__PURE__*/React.createElement("svg", { + width: "80", + height: "80", + viewBox: "0 0 80 80", + fill: "none", + xmlns: "http://www.w3.org/2000/svg" + }, /*#__PURE__*/React.createElement("rect", { + width: "80", + height: "80", + rx: "8", + fill: "#e75a4d" + }), /*#__PURE__*/React.createElement("path", { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M20 59H33.585V56.91C32.0817 56.0667 30.4867 55.535 28.8 55.315L32.045 46.57H44.255L47.445 55.315C46.7117 55.4617 45.9417 55.6817 45.135 55.975C44.3283 56.2683 43.5767 56.58 42.88 56.91V59H60.095V56.91C59.545 56.5433 58.9033 56.2225 58.17 55.9475C57.4367 55.6725 56.7033 55.4617 55.97 55.315L42.165 19.84H38.095L23.905 55.315C23.245 55.4617 22.5758 55.6725 21.8975 55.9475C21.2192 56.2225 20.5867 56.5433 20 56.91V59ZM38.2325 28.3232L43.1 42.995H33.365L38.2325 28.3232Z", + fill: "white", + fillOpacity: "0.8" + })); +} +;// CONCATENATED MODULE: ./src/blocks/core/index.js + + + + +(0,external_wp_blocks_namespaceObject.registerBlockType)('ajax-load-more/core', { + icon: { + src: Icon + }, + edit: edit +}); +}(); +ajaxloadmore = __webpack_exports__; /******/ })() ; \ No newline at end of file diff --git a/build/blocks/filters/index.asset.php b/build/blocks/filters/index.asset.php index bbae1f0..f7733e4 100644 --- a/build/blocks/filters/index.asset.php +++ b/build/blocks/filters/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-i18n', 'wp-server-side-render'), 'version' => 'cc75197a5afa3cae9b0e'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-i18n', 'wp-server-side-render'), 'version' => '314fcd4d8124ee84d77c'); diff --git a/build/blocks/filters/index.css b/build/blocks/filters/index.css index 5233ec7..a991434 100644 --- a/build/blocks/filters/index.css +++ b/build/blocks/filters/index.css @@ -1,9 +1 @@ -/*!****************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/filters/index.scss ***! - \****************************************************************************************************************************************************/ -.editor-styles-wrapper .alm-filters { - pointer-events: none; -} -.editor-styles-wrapper .alm-filters.alm-filters-facets { - opacity: 1; -} +.editor-styles-wrapper .alm-filters{pointer-events:none}.editor-styles-wrapper .alm-filters.alm-filters-facets{opacity:1} \ No newline at end of file diff --git a/build/blocks/filters/index.js b/build/blocks/filters/index.js index 296c11b..92d5714 100644 --- a/build/blocks/filters/index.js +++ b/build/blocks/filters/index.js @@ -1,264 +1,266 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ var ajaxloadmore; /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "./src/blocks/filters/Icon.js": -/*!************************************!*\ - !*** ./src/blocks/filters/Icon.js ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }\n/* harmony export */ });\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {\n return /*#__PURE__*/React.createElement(\"svg\", {\n width: \"101\",\n height: \"91\",\n viewBox: \"0 0 101 91\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n opacity: \"0.7\",\n d: \"M0.602473 24.9956C1.62341 22.8218 3.78904 21.4399 6.18669 21.4399H73.0117C75.4094 21.4399 77.575 22.8218 78.5959 24.9956C79.6169 27.1693 79.3075 29.7313 77.7915 31.5945L49.4992 66.2969V86.0314C49.4992 87.9102 48.4473 89.6337 46.7612 90.4721C45.0751 91.3106 43.0797 91.1398 41.5792 90.0063L31.6792 82.5534C30.4262 81.6218 29.6992 80.1468 29.6992 78.5786V66.2969L1.39138 31.5789C-0.10909 29.7313 -0.433933 27.1538 0.602473 24.9956Z\",\n fill: \"#B8B8B8\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M96.2465 17.287L96.2481 17.285C98.3726 14.6739 98.8037 11.0852 97.3761 8.04559C95.9456 4.99971 92.9013 3.05273 89.529 3.05273H22.704C19.3353 3.05273 16.294 4.99557 14.8615 8.03587C13.4056 11.0775 13.8695 14.6836 15.968 17.2677L15.9711 17.2716L43.7165 51.2997V62.6914C43.7165 65.0297 44.8009 67.2535 46.6982 68.6675C46.7004 68.6691 46.7026 68.6708 46.7049 68.6724L56.5896 76.1139C56.5898 76.114 56.59 76.1142 56.5901 76.1143C58.8604 77.8289 61.872 78.0764 64.3917 76.8234C66.9394 75.5565 68.5165 72.9584 68.5165 70.1442V51.2996L96.2465 17.287Z\",\n fill: \"#e75a4d\",\n stroke: \"white\",\n strokeWidth: \"5\"\n }));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/Icon.js?"); - -/***/ }), - -/***/ "./src/blocks/filters/edit.js": -/*!************************************!*\ - !*** ./src/blocks/filters/edit.js ***! - \************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/dom-ready */ \"@wordpress/dom-ready\");\n/* harmony import */ var _wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/server-side-render */ \"@wordpress/server-side-render\");\n/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _utils_components_editor_EditWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/components/editor/EditWrapper */ \"./src/blocks/utils/components/editor/EditWrapper.js\");\n/* harmony import */ var _utils_components_editor_Loader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/components/editor/Loader */ \"./src/blocks/utils/components/editor/Loader.js\");\n/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ \"./src/blocks/filters/block.json\");\n/* harmony import */ var _inspector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./inspector */ \"./src/blocks/filters/inspector.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n\n\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(props) {\n var attributes = props.attributes;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_inspector__WEBPACK_IMPORTED_MODULE_5__[\"default\"], props), /*#__PURE__*/React.createElement(_utils_components_editor_EditWrapper__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null, /*#__PURE__*/React.createElement((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_1___default()), {\n block: _block_json__WEBPACK_IMPORTED_MODULE_4__.name,\n attributes: attributes,\n LoadingResponsePlaceholder: _utils_components_editor_Loader__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n EmptyResponsePlaceholder: _utils_components_editor_Loader__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n })));\n}\n\n/**\n * Watch for changes to the DOM and initialize ALM blocks.\n */\nvar almBlockCallback = function almBlockCallback() {\n var filters = document.querySelectorAll('.wp-block-ajax-load-more-filter');\n if (filters !== null && filters !== void 0 && filters.length) {\n _toConsumableArray(filters).forEach(function (filter) {\n almfilters.wpblock(filter);\n });\n }\n};\n_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0___default()(function () {\n var observer = new MutationObserver(almBlockCallback);\n var targetNode = document.querySelector('#editor');\n var config = {\n attributes: false,\n childList: true,\n subtree: true\n };\n observer.observe(targetNode, config);\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/edit.js?"); - -/***/ }), - -/***/ "./src/blocks/filters/index.js": -/*!*************************************!*\ - !*** ./src/blocks/filters/index.js ***! - \*************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ \"@wordpress/blocks\");\n/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ \"./src/blocks/filters/edit.js\");\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.scss */ \"./src/blocks/filters/index.scss\");\n/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Icon */ \"./src/blocks/filters/Icon.js\");\n\n\n\n\n(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)('ajax-load-more/filters', {\n icon: {\n src: _Icon__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n edit: _edit__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/index.js?"); - -/***/ }), - -/***/ "./src/blocks/filters/inspector.js": -/*!*****************************************!*\ - !*** ./src/blocks/filters/inspector.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ \"@wordpress/i18n\");\n/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n\n/**\n * Inspector controls for the block.\n *\n * @param {Object} props Block props.\n * @return {Element} \t Inspector controls.\n */\n/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(props) {\n var attributes = props.attributes,\n setAttributes = props.setAttributes;\n var _ref = alm_localize || {},\n _ref$adminurl = _ref.adminurl,\n adminurl = _ref$adminurl === void 0 ? '' : _ref$adminurl;\n var _alm_filters_localize = alm_filters_localize,\n _alm_filters_localize2 = _alm_filters_localize.filters,\n filters = _alm_filters_localize2 === void 0 ? [] : _alm_filters_localize2,\n _alm_filters_localize3 = _alm_filters_localize.prefix,\n prefix = _alm_filters_localize3 === void 0 ? '' : _alm_filters_localize3;\n var filterList = (filters === null || filters === void 0 ? void 0 : filters.length) && prefix && filters.map(function (filter) {\n var name = filter.replace(prefix, '');\n return {\n label: name,\n value: name\n };\n }) || [];\n filterList.unshift({\n label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('-- Select Filter --', 'ajax-load-more'),\n value: ''\n });\n return /*#__PURE__*/React.createElement(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, null, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, {\n title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Settings', 'ajax-load-more')\n }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SelectControl, {\n label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Filter', 'ajax-load-more'),\n help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select a filter to display by ID.', 'ajax-load-more'),\n value: attributes === null || attributes === void 0 ? void 0 : attributes.id,\n options: filterList,\n onChange: function onChange(value) {\n return setAttributes({\n id: value\n });\n },\n disabled: (filterList === null || filterList === void 0 ? void 0 : filterList.length) < 2\n }), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Flex, {\n gap: \"10px\",\n justify: \"flex-start\",\n style: {\n marginTop: '-10px'\n }\n }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {\n href: \"\".concat(adminurl, \"/admin.php?page=ajax-load-more-filters&action=new\"),\n size: \"compact\",\n variant: \"primary\",\n target: \"_blank\"\n }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Create Filter', 'ajax-load-more')), (filterList === null || filterList === void 0 ? void 0 : filterList.length) > 1 && /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {\n href: \"\".concat(adminurl, \"/admin.php?page=ajax-load-more-filters\"),\n size: \"compact\",\n variant: \"secondary\",\n target: \"_blank\"\n }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('View All', 'ajax-load-more'))), /*#__PURE__*/React.createElement(\"hr\", null), /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, {\n label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Target', 'ajax-load-more'),\n help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('The ID of the Ajax Load More instance to filter.', 'ajax-load-more'),\n value: attributes === null || attributes === void 0 ? void 0 : attributes.target,\n onChange: function onChange(data) {\n return setAttributes({\n target: data\n });\n },\n required: true\n })));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/inspector.js?"); - -/***/ }), - -/***/ "./src/blocks/utils/components/editor/EditWrapper.js": -/*!***********************************************************!*\ - !*** ./src/blocks/utils/components/editor/EditWrapper.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ EditWrapper; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ \"@wordpress/block-editor\");\n/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _functions_sidebar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../functions/sidebar */ \"./src/blocks/utils/functions/sidebar.js\");\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n\n\n/**\n * Component wrapper for a block in Edit mode.\n *\n * @param {Object} props Component props.\n * @return {Element} The EditWrapper component.\n */\nfunction EditWrapper(props) {\n var children = props.children,\n _props$useFocus = props.useFocus,\n useFocus = _props$useFocus === void 0 ? true : _props$useFocus;\n var blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps)();\n return /*#__PURE__*/React.createElement(\"div\", _extends({}, blockProps, {\n onFocus: useFocus ? function () {\n return (0,_functions_sidebar__WEBPACK_IMPORTED_MODULE_1__.openBlockSidebar)();\n } : null\n }), children);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/utils/components/editor/EditWrapper.js?"); - -/***/ }), - -/***/ "./src/blocks/utils/components/editor/Loader.js": -/*!******************************************************!*\ - !*** ./src/blocks/utils/components/editor/Loader.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ Loader; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/components */ \"@wordpress/components\");\n/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__);\n\n\n/**\n * A loader for server-side block rendering/updating in the editor.\n *\n * @return {Element} The Loader component.\n */\nfunction Loader() {\n return /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__.Flex, {\n justify: \"center\",\n align: \"center\",\n style: {\n padding: '30px 10px'\n }\n }, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__.Spinner, {\n style: {\n width: '20px',\n height: '20px'\n }\n }));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/utils/components/editor/Loader.js?"); - -/***/ }), - -/***/ "./src/blocks/utils/functions/sidebar.js": -/*!***********************************************!*\ - !*** ./src/blocks/utils/functions/sidebar.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ closeBlockSidebar: function() { return /* binding */ closeBlockSidebar; },\n/* harmony export */ openBlockSidebar: function() { return /* binding */ openBlockSidebar; }\n/* harmony export */ });\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/data */ \"@wordpress/data\");\n/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);\n\n\n/**\n * Open the block options.\n */\nfunction openBlockSidebar() {\n (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.dispatch)('core/edit-post').openGeneralSidebar('edit-post/block');\n}\n/**\n * Close the block options.\n */\nfunction closeBlockSidebar() {\n (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.dispatch)('core/edit-post').closeGeneralSidebar();\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/utils/functions/sidebar.js?"); - -/***/ }), - -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/filters/index.scss": -/*!**********************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/filters/index.scss ***! - \**********************************************************************************************************************************************************************************************************************************/ +/***/ 325: /***/ (function() { -eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/index.scss?./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B1%5D!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B3%5D"); - -/***/ }), - -/***/ "./src/blocks/filters/index.scss": -/*!***************************************!*\ - !*** ./src/blocks/filters/index.scss ***! - \***************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./index.scss */ \"./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/filters/index.scss\");\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== \"default\") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)\n/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default()), options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_index_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);\n\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/index.scss?"); +// extracted by mini-css-extract-plugin /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": -/*!****************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! - \****************************************************************************/ +/***/ 379: /***/ (function(module) { "use strict"; -eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": -/*!********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! - \********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); +var stylesInDOM = []; +function getIndexByIdentifier(identifier) { + var result = -1; + for (var i = 0; i < stylesInDOM.length; i++) { + if (stylesInDOM[i].identifier === identifier) { + result = i; + break; + } + } + return result; +} +function modulesToDom(list, options) { + var idCountMap = {}; + var identifiers = []; + for (var i = 0; i < list.length; i++) { + var item = list[i]; + var id = options.base ? item[0] + options.base : item[0]; + var count = idCountMap[id] || 0; + var identifier = "".concat(id, " ").concat(count); + idCountMap[id] = count + 1; + var indexByIdentifier = getIndexByIdentifier(identifier); + var obj = { + css: item[1], + media: item[2], + sourceMap: item[3], + supports: item[4], + layer: item[5] + }; + if (indexByIdentifier !== -1) { + stylesInDOM[indexByIdentifier].references++; + stylesInDOM[indexByIdentifier].updater(obj); + } else { + var updater = addElementStyle(obj, options); + options.byIndex = i; + stylesInDOM.splice(i, 0, { + identifier: identifier, + updater: updater, + references: 1 + }); + } + identifiers.push(identifier); + } + return identifiers; +} +function addElementStyle(obj, options) { + var api = options.domAPI(options); + api.update(obj); + var updater = function updater(newObj) { + if (newObj) { + if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) { + return; + } + api.update(obj = newObj); + } else { + api.remove(); + } + }; + return updater; +} +module.exports = function (list, options) { + options = options || {}; + list = list || []; + var lastIdentifiers = modulesToDom(list, options); + return function update(newList) { + newList = newList || []; + for (var i = 0; i < lastIdentifiers.length; i++) { + var identifier = lastIdentifiers[i]; + var index = getIndexByIdentifier(identifier); + stylesInDOM[index].references--; + } + var newLastIdentifiers = modulesToDom(newList, options); + for (var _i = 0; _i < lastIdentifiers.length; _i++) { + var _identifier = lastIdentifiers[_i]; + var _index = getIndexByIdentifier(_identifier); + if (stylesInDOM[_index].references === 0) { + stylesInDOM[_index].updater(); + stylesInDOM.splice(_index, 1); + } + } + lastIdentifiers = newLastIdentifiers; + }; +}; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": -/*!**********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! - \**********************************************************************/ +/***/ 569: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! - \**********************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); +var memo = {}; + +/* istanbul ignore next */ +function getTarget(target) { + if (typeof memo[target] === "undefined") { + var styleTarget = document.querySelector(target); + + // Special case to return head of iframe instead of iframe itself + if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head; + } catch (e) { + // istanbul ignore next + styleTarget = null; + } + } + memo[target] = styleTarget; + } + return memo[target]; +} + +/* istanbul ignore next */ +function insertBySelector(insert, style) { + var target = getTarget(insert); + if (!target) { + throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); + } + target.appendChild(style); +} +module.exports = insertBySelector; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": -/*!***************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! - \***************************************************************/ +/***/ 216: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": -/*!*********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! - \*********************************************************************/ -/***/ (function(module) { -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); +/* istanbul ignore next */ +function insertStyleElement(options) { + var element = document.createElement("style"); + options.setAttributes(element, options.attributes); + options.insert(element, options.options); + return element; +} +module.exports = insertStyleElement; /***/ }), -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ (function(module) { +/***/ 565: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -module.exports = window["wp"]["blockEditor"]; -/***/ }), -/***/ "@wordpress/blocks": -/*!********************************!*\ - !*** external ["wp","blocks"] ***! - \********************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["blocks"]; +/* istanbul ignore next */ +function setAttributesWithoutAttributes(styleElement) { + var nonce = true ? __webpack_require__.nc : 0; + if (nonce) { + styleElement.setAttribute("nonce", nonce); + } +} +module.exports = setAttributesWithoutAttributes; /***/ }), -/***/ "@wordpress/components": -/*!************************************!*\ - !*** external ["wp","components"] ***! - \************************************/ +/***/ 795: /***/ (function(module) { "use strict"; -module.exports = window["wp"]["components"]; - -/***/ }), -/***/ "@wordpress/data": -/*!******************************!*\ - !*** external ["wp","data"] ***! - \******************************/ -/***/ (function(module) { -"use strict"; -module.exports = window["wp"]["data"]; +/* istanbul ignore next */ +function apply(styleElement, options, obj) { + var css = ""; + if (obj.supports) { + css += "@supports (".concat(obj.supports, ") {"); + } + if (obj.media) { + css += "@media ".concat(obj.media, " {"); + } + var needLayer = typeof obj.layer !== "undefined"; + if (needLayer) { + css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {"); + } + css += obj.css; + if (needLayer) { + css += "}"; + } + if (obj.media) { + css += "}"; + } + if (obj.supports) { + css += "}"; + } + var sourceMap = obj.sourceMap; + if (sourceMap && typeof btoa !== "undefined") { + css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); + } + + // For old IE + /* istanbul ignore if */ + options.styleTagTransform(css, styleElement, options.options); +} +function removeStyleElement(styleElement) { + // istanbul ignore if + if (styleElement.parentNode === null) { + return false; + } + styleElement.parentNode.removeChild(styleElement); +} + +/* istanbul ignore next */ +function domAPI(options) { + if (typeof document === "undefined") { + return { + update: function update() {}, + remove: function remove() {} + }; + } + var styleElement = options.insertStyleElement(options); + return { + update: function update(obj) { + apply(styleElement, options, obj); + }, + remove: function remove() { + removeStyleElement(styleElement); + } + }; +} +module.exports = domAPI; /***/ }), -/***/ "@wordpress/dom-ready": -/*!**********************************!*\ - !*** external ["wp","domReady"] ***! - \**********************************/ +/***/ 589: /***/ (function(module) { "use strict"; -module.exports = window["wp"]["domReady"]; -/***/ }), -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "@wordpress/server-side-render": -/*!******************************************!*\ - !*** external ["wp","serverSideRender"] ***! - \******************************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["serverSideRender"]; - -/***/ }), - -/***/ "./src/blocks/filters/block.json": -/*!***************************************!*\ - !*** ./src/blocks/filters/block.json ***! - \***************************************/ -/***/ (function(module) { - -"use strict"; -eval("module.exports = JSON.parse('{\"$schema\":\"https://schemas.wp.org/trunk/block.json\",\"apiVersion\":3,\"name\":\"ajax-load-more/filters\",\"title\":\"Ajax Load More: Filters\",\"category\":\"ajax-load-more\",\"description\":\"Enable filtering of an Ajax Load More instance.\",\"textdomain\":\"ajax-load-more\",\"supports\":{\"align\":false},\"attributes\":{\"id\":{\"type\":\"string\",\"default\":\"\"},\"target\":{\"type\":\"string\",\"default\":\"\"}},\"editorScript\":[\"file:./index.js\",\"ajax-load-more-filters\"],\"editorStyle\":[\"file:./index.css\",\"ajax-load-more-filters\",\"alm-nouislider\"],\"render\":\"file:./render.php\"}');\n\n//# sourceURL=webpack://ajaxloadmore/./src/blocks/filters/block.json?"); +/* istanbul ignore next */ +function styleTagTransform(css, styleElement) { + if (styleElement.styleSheet) { + styleElement.styleSheet.cssText = css; + } else { + while (styleElement.firstChild) { + styleElement.removeChild(styleElement.firstChild); + } + styleElement.appendChild(document.createTextNode(css)); + } +} +module.exports = styleTagTransform; /***/ }) @@ -335,12 +337,289 @@ eval("module.exports = JSON.parse('{\"$schema\":\"https://schemas.wp.org/trunk/b /******/ }(); /******/ /************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module can't be inlined because the eval devtool is used. -/******/ var __webpack_exports__ = __webpack_require__("./src/blocks/filters/index.js"); -/******/ ajaxloadmore = __webpack_exports__; -/******/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +!function() { +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +;// CONCATENATED MODULE: external ["wp","blocks"] +var external_wp_blocks_namespaceObject = window["wp"]["blocks"]; +;// CONCATENATED MODULE: external ["wp","domReady"] +var external_wp_domReady_namespaceObject = window["wp"]["domReady"]; +var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_namespaceObject); +;// CONCATENATED MODULE: external ["wp","serverSideRender"] +var external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"]; +var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_wp_serverSideRender_namespaceObject); +;// CONCATENATED MODULE: external ["wp","blockEditor"] +var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"]; +;// CONCATENATED MODULE: external ["wp","data"] +var external_wp_data_namespaceObject = window["wp"]["data"]; +;// CONCATENATED MODULE: ./src/blocks/utils/functions/sidebar.js + + +/** + * Open the block options. + */ +function openBlockSidebar() { + (0,external_wp_data_namespaceObject.dispatch)('core/edit-post').openGeneralSidebar('edit-post/block'); +} +/** + * Close the block options. + */ +function closeBlockSidebar() { + dispatch('core/edit-post').closeGeneralSidebar(); +} +;// CONCATENATED MODULE: ./src/blocks/utils/components/editor/EditWrapper.js +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + + + +/** + * Component wrapper for a block in Edit mode. + * + * @param {Object} props Component props. + * @return {Element} The EditWrapper component. + */ +function EditWrapper(props) { + var children = props.children, + _props$useFocus = props.useFocus, + useFocus = _props$useFocus === void 0 ? true : _props$useFocus; + var blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)(); + return /*#__PURE__*/React.createElement("div", _extends({}, blockProps, { + onFocus: useFocus ? function () { + return openBlockSidebar(); + } : null + }), children); +} +;// CONCATENATED MODULE: external ["wp","components"] +var external_wp_components_namespaceObject = window["wp"]["components"]; +;// CONCATENATED MODULE: ./src/blocks/utils/components/editor/Loader.js + + +/** + * A loader for server-side block rendering/updating in the editor. + * + * @return {Element} The Loader component. + */ +function Loader() { + return /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Flex, { + justify: "center", + align: "center", + style: { + padding: '30px 10px' + } + }, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Spinner, { + style: { + width: '20px', + height: '20px' + } + })); +} +;// CONCATENATED MODULE: ./src/blocks/filters/block.json +var block_namespaceObject = JSON.parse('{"u2":"ajax-load-more/filters"}'); +;// CONCATENATED MODULE: external ["wp","i18n"] +var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; +;// CONCATENATED MODULE: ./src/blocks/filters/inspector.js + + + + +/** + * Inspector controls for the block. + * + * @param {Object} props Block props. + * @return {Element} Inspector controls. + */ +/* harmony default export */ function inspector(props) { + var attributes = props.attributes, + setAttributes = props.setAttributes; + var _ref = alm_localize || {}, + _ref$adminurl = _ref.adminurl, + adminurl = _ref$adminurl === void 0 ? '' : _ref$adminurl; + var _alm_filters_localize = alm_filters_localize, + _alm_filters_localize2 = _alm_filters_localize.filters, + filters = _alm_filters_localize2 === void 0 ? [] : _alm_filters_localize2, + _alm_filters_localize3 = _alm_filters_localize.prefix, + prefix = _alm_filters_localize3 === void 0 ? '' : _alm_filters_localize3; + var filterList = (filters === null || filters === void 0 ? void 0 : filters.length) && prefix && filters.map(function (filter) { + var name = filter.replace(prefix, ''); + return { + label: name, + value: name + }; + }) || []; + filterList.unshift({ + label: (0,external_wp_i18n_namespaceObject.__)('-- Select Filter --', 'ajax-load-more'), + value: '' + }); + return /*#__PURE__*/React.createElement(external_wp_blockEditor_namespaceObject.InspectorControls, null, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.PanelBody, { + title: (0,external_wp_i18n_namespaceObject.__)('Settings', 'ajax-load-more') + }, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.SelectControl, { + label: (0,external_wp_i18n_namespaceObject.__)('Filter', 'ajax-load-more'), + help: (0,external_wp_i18n_namespaceObject.__)('Select a filter to display by ID.', 'ajax-load-more'), + value: attributes === null || attributes === void 0 ? void 0 : attributes.id, + options: filterList, + onChange: function onChange(value) { + return setAttributes({ + id: value + }); + }, + disabled: (filterList === null || filterList === void 0 ? void 0 : filterList.length) < 2 + }), /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Flex, { + gap: "10px", + justify: "flex-start", + style: { + marginTop: '-10px' + } + }, /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Button, { + href: "".concat(adminurl, "/admin.php?page=ajax-load-more-filters&action=new"), + size: "compact", + variant: "primary", + target: "_blank" + }, (0,external_wp_i18n_namespaceObject.__)('Create Filter', 'ajax-load-more')), (filterList === null || filterList === void 0 ? void 0 : filterList.length) > 1 && /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.Button, { + href: "".concat(adminurl, "/admin.php?page=ajax-load-more-filters"), + size: "compact", + variant: "secondary", + target: "_blank" + }, (0,external_wp_i18n_namespaceObject.__)('View All', 'ajax-load-more'))), /*#__PURE__*/React.createElement("hr", null), /*#__PURE__*/React.createElement(external_wp_components_namespaceObject.TextControl, { + label: (0,external_wp_i18n_namespaceObject.__)('Target', 'ajax-load-more'), + help: (0,external_wp_i18n_namespaceObject.__)('The ID of the Ajax Load More instance to filter.', 'ajax-load-more'), + value: attributes === null || attributes === void 0 ? void 0 : attributes.target, + onChange: function onChange(data) { + return setAttributes({ + target: data + }); + }, + required: true + }))); +} +;// CONCATENATED MODULE: ./src/blocks/filters/edit.js +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + + + + + +/* harmony default export */ function edit(props) { + var attributes = props.attributes; + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(inspector, props), /*#__PURE__*/React.createElement(EditWrapper, null, /*#__PURE__*/React.createElement((external_wp_serverSideRender_default()), { + block: block_namespaceObject.u2, + attributes: attributes, + LoadingResponsePlaceholder: Loader, + EmptyResponsePlaceholder: Loader + }))); +} + +/** + * Watch for changes to the DOM and initialize ALM blocks. + */ +var almBlockCallback = function almBlockCallback() { + var filters = document.querySelectorAll('.wp-block-ajax-load-more-filter'); + if (filters !== null && filters !== void 0 && filters.length) { + _toConsumableArray(filters).forEach(function (filter) { + almfilters.wpblock(filter); + }); + } +}; +external_wp_domReady_default()(function () { + var observer = new MutationObserver(almBlockCallback); + var targetNode = document.querySelector('#editor'); + var config = { + attributes: false, + childList: true, + subtree: true + }; + observer.observe(targetNode, config); +}); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js +var injectStylesIntoStyleTag = __webpack_require__(379); +var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js +var styleDomAPI = __webpack_require__(795); +var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js +var insertBySelector = __webpack_require__(569); +var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js +var setAttributesWithoutAttributes = __webpack_require__(565); +var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js +var insertStyleElement = __webpack_require__(216); +var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js +var styleTagTransform = __webpack_require__(589); +var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform); +// EXTERNAL MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/blocks/filters/index.scss +var filters = __webpack_require__(325); +var filters_default = /*#__PURE__*/__webpack_require__.n(filters); +;// CONCATENATED MODULE: ./src/blocks/filters/index.scss + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (styleTagTransform_default()); +options.setAttributes = (setAttributesWithoutAttributes_default()); + + options.insert = insertBySelector_default().bind(null, "head"); + +options.domAPI = (styleDomAPI_default()); +options.insertStyleElement = (insertStyleElement_default()); + +var update = injectStylesIntoStyleTag_default()((filters_default()), options); + + + + + /* harmony default export */ var blocks_filters = ((filters_default()) && (filters_default()).locals ? (filters_default()).locals : undefined); + +;// CONCATENATED MODULE: ./src/blocks/filters/Icon.js +/* harmony default export */ function Icon() { + return /*#__PURE__*/React.createElement("svg", { + width: "101", + height: "91", + viewBox: "0 0 101 91", + fill: "none", + xmlns: "http://www.w3.org/2000/svg" + }, /*#__PURE__*/React.createElement("path", { + opacity: "0.7", + d: "M0.602473 24.9956C1.62341 22.8218 3.78904 21.4399 6.18669 21.4399H73.0117C75.4094 21.4399 77.575 22.8218 78.5959 24.9956C79.6169 27.1693 79.3075 29.7313 77.7915 31.5945L49.4992 66.2969V86.0314C49.4992 87.9102 48.4473 89.6337 46.7612 90.4721C45.0751 91.3106 43.0797 91.1398 41.5792 90.0063L31.6792 82.5534C30.4262 81.6218 29.6992 80.1468 29.6992 78.5786V66.2969L1.39138 31.5789C-0.10909 29.7313 -0.433933 27.1538 0.602473 24.9956Z", + fill: "#B8B8B8" + }), /*#__PURE__*/React.createElement("path", { + d: "M96.2465 17.287L96.2481 17.285C98.3726 14.6739 98.8037 11.0852 97.3761 8.04559C95.9456 4.99971 92.9013 3.05273 89.529 3.05273H22.704C19.3353 3.05273 16.294 4.99557 14.8615 8.03587C13.4056 11.0775 13.8695 14.6836 15.968 17.2677L15.9711 17.2716L43.7165 51.2997V62.6914C43.7165 65.0297 44.8009 67.2535 46.6982 68.6675C46.7004 68.6691 46.7026 68.6708 46.7049 68.6724L56.5896 76.1139C56.5898 76.114 56.59 76.1142 56.5901 76.1143C58.8604 77.8289 61.872 78.0764 64.3917 76.8234C66.9394 75.5565 68.5165 72.9584 68.5165 70.1442V51.2996L96.2465 17.287Z", + fill: "#e75a4d", + stroke: "white", + strokeWidth: "5" + })); +} +;// CONCATENATED MODULE: ./src/blocks/filters/index.js + + + + +(0,external_wp_blocks_namespaceObject.registerBlockType)('ajax-load-more/filters', { + icon: { + src: Icon + }, + edit: edit +}); +}(); +ajaxloadmore = __webpack_exports__; /******/ })() ; \ No newline at end of file diff --git a/build/frontend/ajax-load-more.asset.php b/build/frontend/ajax-load-more.asset.php index d84d602..c2f9fa2 100644 --- a/build/frontend/ajax-load-more.asset.php +++ b/build/frontend/ajax-load-more.asset.php @@ -1 +1 @@ - array(), 'version' => 'fc62a154d32701568cc9'); + array(), 'version' => 'e50969999283f10d6c00'); diff --git a/build/frontend/ajax-load-more.css b/build/frontend/ajax-load-more.css index d2e9af0..bbe8143 100644 --- a/build/frontend/ajax-load-more.css +++ b/build/frontend/ajax-load-more.css @@ -1,518 +1 @@ -/*!************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss ***! - \************************************************************************************************************************************************************/ -.alm-btn-wrap { - display: block; - text-align: center; - padding: 10px 0 0; - margin: 0 0 25px; - position: relative; -} -.alm-btn-wrap::after { - display: table; - clear: both; - height: 0; - content: ""; -} -.alm-btn-wrap .alm-load-more-btn { - font-size: 15px; - font-weight: 500; - width: auto; - height: 43px; - line-height: 1; - background: #ed7070; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); - color: #fff; - border: none; - border-radius: 4px; - margin: 0; - padding: 0 20px; - display: inline-block; - position: relative; - transition: all 0.3s ease; - text-align: center; - text-decoration: none; - appearance: none; - user-select: none; - cursor: pointer; - /* Loading */ - /* Loaded / Done */ - /* Loading Icon */ - /* Loading :before */ -} -.alm-btn-wrap .alm-load-more-btn:hover, .alm-btn-wrap .alm-load-more-btn.loading { - background-color: #e06161; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09); - color: #fff; - text-decoration: none; -} -.alm-btn-wrap .alm-load-more-btn:active { - box-shadow: none; - text-decoration: none; -} -.alm-btn-wrap .alm-load-more-btn.loading { - pointer-events: none; - cursor: wait; - outline: none; - padding-left: 44px; -} -.alm-btn-wrap .alm-load-more-btn.done, .alm-btn-wrap .alm-load-more-btn:disabled { - pointer-events: none; - opacity: 0.15; - background-color: #ed7070; - outline: none !important; - box-shadow: none !important; -} -.alm-btn-wrap .alm-load-more-btn::before, .alm-btn-wrap .alm-load-more-btn.done::before, .alm-btn-wrap .alm-load-more-btn:disabled::before { - background: none; - width: 0; -} -.alm-btn-wrap .alm-load-more-btn.loading::before { - background: #fff url(../frontend/img/ajax-loader.gif) no-repeat center center; - width: 30px; - height: 31px; - margin: 6px; - border-radius: 3px; - display: inline-block; - z-index: 0; - content: ""; - position: absolute; - left: 0; - top: 0; - overflow: hidden; - transition: width 0.5s ease-in-out; -} -.alm-btn-wrap .alm-elementor-link { - display: block; - font-size: 13px; - margin: 0 0 15px; -} -@media screen and (min-width: 768px) { - .alm-btn-wrap .alm-elementor-link { - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - margin: 0; - } -} - -/* white */ -.ajax-load-more-wrap.white .alm-load-more-btn { - background-color: #fff; - color: #787878; - border: 1px solid #e0e0e0; - overflow: hidden; - transition: none; - outline: none; -} -.ajax-load-more-wrap.white .alm-load-more-btn:focus, .ajax-load-more-wrap.white .alm-load-more-btn:hover, .ajax-load-more-wrap.white .alm-load-more-btn.loading { - background-color: #fff; - color: #333; - border-color: #aaaaaa; -} -.ajax-load-more-wrap.white .alm-load-more-btn.done { - background-color: #fff; - color: #444; - border-color: #ccc; -} -.ajax-load-more-wrap.white .alm-load-more-btn.loading { - color: rgba(255, 255, 255, 0) !important; - outline: none !important; - background-color: transparent; - border-color: transparent !important; - box-shadow: none !important; - padding-left: 20px; -} -.ajax-load-more-wrap.white .alm-load-more-btn.loading::before { - margin: 0; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: transparent; - background-image: url(../frontend/img/ajax-loader-lg.gif); - background-size: 25px 25px; - background-position: center center; -} - -/* light grey */ -.ajax-load-more-wrap.light-grey .alm-load-more-btn { - background-color: #efefef; - color: #787878; - border: 1px solid #e0e0e0; - overflow: hidden; - transition: all 0.075s ease; - outline: none; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus, .ajax-load-more-wrap.light-grey .alm-load-more-btn:hover, .ajax-load-more-wrap.light-grey .alm-load-more-btn.loading, .ajax-load-more-wrap.light-grey .alm-load-more-btn.done { - background-color: #f1f1f1; - color: #222; - border-color: #aaaaaa; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading { - color: rgba(255, 255, 255, 0) !important; - outline: none !important; - background-color: transparent; - border-color: transparent !important; - box-shadow: none !important; - padding-left: 20px; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading::before { - margin: 0; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: transparent; - background-image: url(../frontend/img/ajax-loader-lg.gif); - background-size: 25px 25px; - background-position: center center; -} - -/* Blue */ -.ajax-load-more-wrap.blue .alm-load-more-btn { - background-color: #1b91ca; -} -.ajax-load-more-wrap.blue .alm-load-more-btn:hover, .ajax-load-more-wrap.blue .alm-load-more-btn.loading, .ajax-load-more-wrap.blue .alm-load-more-btn.done { - background-color: #1b84b7; -} - -/* green */ -.ajax-load-more-wrap.green .alm-load-more-btn { - background-color: #80ca7a; -} -.ajax-load-more-wrap.green .alm-load-more-btn:hover, .ajax-load-more-wrap.green .alm-load-more-btn.loading, .ajax-load-more-wrap.green .alm-load-more-btn.done { - background-color: #81c17b; -} - -/* purple */ -.ajax-load-more-wrap.purple .alm-load-more-btn { - background-color: #b97eca; -} -.ajax-load-more-wrap.purple .alm-load-more-btn:hover, .ajax-load-more-wrap.purple .alm-load-more-btn.loading, .ajax-load-more-wrap.purple .alm-load-more-btn.done { - background-color: #a477b1; -} - -/* grey */ -.ajax-load-more-wrap.grey .alm-load-more-btn { - background-color: #a09e9e; -} -.ajax-load-more-wrap.grey .alm-load-more-btn:hover, .ajax-load-more-wrap.grey .alm-load-more-btn.loading, .ajax-load-more-wrap.grey .alm-load-more-btn.done { - background-color: #888; -} - -/* Infinite */ -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn { - width: 100%; - background-color: transparent !important; - background-position: center center; - background-repeat: no-repeat; - background-image: url(../frontend/img/spinner.gif); - border: none !important; - opacity: 0; - transition: opacity 0.2s ease; - box-shadow: none !important; - overflow: hidden; - text-indent: -9999px; - cursor: default !important; - outline: none !important; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn::before { - display: none !important; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:focus, .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:active { - outline: none; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.done { - opacity: 0; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.loading { - opacity: 1; -} -.ajax-load-more-wrap.infinite.skype > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-skype.gif); -} -.ajax-load-more-wrap.infinite.ring > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-ring.gif); -} -.ajax-load-more-wrap.infinite.fading-blocks > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/loader-fading-blocks.gif); -} -.ajax-load-more-wrap.infinite.fading-circles > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/loader-fading-circles.gif); -} -.ajax-load-more-wrap.infinite.chasing-arrows > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-chasing-arrows.gif); -} - -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap { - display: flex; - align-items: center; - padding: 0; - margin: 0; -} -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button { - margin: 0; -} -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done { - display: none; -} - -.alm-btn-wrap--prev { - display: flex; - width: 100%; - justify-content: center; - clear: both; - padding: 0; - margin: 0; -} -.alm-btn-wrap--prev::after { - display: table; - clear: both; - height: 0; - content: ""; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev { - line-height: 1; - font-size: 14px; - font-weight: 500; - padding: 5px; - display: inline-block; - position: relative; - margin: 0 0 15px; - text-decoration: none; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev:hover, .alm-btn-wrap--prev a.alm-load-more-btn--prev:focus { - text-decoration: underline; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading, .alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus { - cursor: wait; - text-decoration: none; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading::before, .alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus::before { - content: ""; - display: block; - position: absolute; - left: -18px; - top: 50%; - transform: translateY(-50%); - width: 16px; - height: 16px; - background: url(../frontend/img/ajax-loader-lg.gif) no-repeat left center; - background-size: 16px 16px; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.skype.loading::before { - background-image: url(../frontend/img/spinner-skype.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.ring.loading::before { - background-image: url(../frontend/img/spinner-ring.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.fading-blocks.loading::before { - background-image: url(../frontend/img/loader-fading-blocks.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.chasing-arrows.loading::before { - background-image: url(../frontend/img/spinner-chasing-arrows.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev:not(.disabled), -.alm-btn-wrap--prev a.alm-load-more-btn--prev button:not([disabled]) { - cursor: pointer; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.done { - display: none !important; -} - -.alm-listing, -.alm-paging-content { - outline: none; -} -.alm-listing::after, -.alm-paging-content::after { - display: table; - clear: both; - height: 0; - content: ""; -} - -.alm-listing { - margin: 0; - padding: 0; -} -.alm-listing .alm-paging-content > li, -.alm-listing > li { - position: relative; -} -.alm-listing .alm-paging-content > li.alm-item, -.alm-listing > li.alm-item { - background: none; - margin: 0 0 30px; - padding: 0 0 0 80px; - position: relative; - list-style: none; -} -@media screen and (min-width: 480px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 100px; - } -} -@media screen and (min-width: 768px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 135px; - } -} -@media screen and (min-width: 1024px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 160px; - } -} -.alm-listing .alm-paging-content > li.alm-item h3, -.alm-listing > li.alm-item h3 { - margin: 0; -} -.alm-listing .alm-paging-content > li.alm-item p, -.alm-listing > li.alm-item p { - margin: 10px 0 0; -} -.alm-listing .alm-paging-content > li.alm-item p.entry-meta, -.alm-listing > li.alm-item p.entry-meta { - opacity: 0.75; -} -.alm-listing .alm-paging-content > li.alm-item img, -.alm-listing > li.alm-item img { - position: absolute; - left: 0; - top: 0; - border-radius: 2px; - max-width: 65px; -} -@media screen and (min-width: 480px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 85px; - } -} -@media screen and (min-width: 768px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 115px; - } -} -@media screen and (min-width: 1024px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 140px; - } -} -.alm-listing .alm-paging-content > li.no-img, -.alm-listing > li.no-img { - padding: 0; -} -.alm-listing.products li.product { - padding-left: inherit; -} -.alm-listing.products li.product img { - position: static; - border-radius: inherit; -} -.alm-listing.stylefree .alm-paging-content > li, -.alm-listing.stylefree > li { - padding: inherit; - margin: inherit; -} -.alm-listing.stylefree .alm-paging-content > li img, -.alm-listing.stylefree > li img { - padding: inherit; - margin: inherit; - position: static; - border-radius: inherit; -} - -.alm-listing.rtl .alm-paging-content > li { - padding: 0 170px 0 0; - text-align: right; -} -.alm-listing.rtl .alm-paging-content > li img { - left: auto; - right: 0; -} -.alm-listing.rtl.products li.product { - padding-right: inherit; -} - -.alm-masonry { - display: block; - overflow: hidden; - clear: both; -} - -.alm-placeholder { - opacity: 0; - transition: opacity 0.2s ease; - display: none; -} - -.ajax-load-more-wrap.alm-horizontal { - display: flex; - flex-wrap: nowrap; - width: 100%; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing { - display: flex; - flex-wrap: nowrap; - flex-direction: row; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item { - text-align: center; - margin: 0 2px; - padding: 20px 20px 30px; - height: auto; - background-color: #fff; - border: 1px solid #efefef; - border-radius: 4px; - width: 300px; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item img { - position: static; - max-width: 125px; - margin: 0 auto 15px; - border-radius: 4px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.075); -} -.ajax-load-more-wrap.alm-horizontal .alm-listing::after { - display: none; -} - -.alm-toc { - display: flex; - width: auto; - padding: 10px 0; -} -.alm-toc button { - background: #f7f7f7; - border-radius: 4px; - transition: all 0.15s ease; - outline: none; - border: 1px solid #efefef; - box-shadow: none; - color: #454545; - cursor: pointer; - font-size: 14px; - font-weight: 500; - padding: 7px 10px; - line-height: 1; - margin: 0 5px 0 0; - height: auto; -} -.alm-toc button:hover, .alm-toc button:focus { - border-color: #ccc; - color: #222; -} -.alm-toc button:hover { - text-decoration: underline; -} -.alm-toc button:focus { - box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); -} +.alm-btn-wrap{display:block;margin:0 0 25px;padding:10px 0 0;position:relative;text-align:center}.alm-btn-wrap:after{clear:both;content:"";display:table;height:0}.alm-btn-wrap .alm-load-more-btn{appearance:none;background:#ed7070;border:none;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;cursor:pointer;display:inline-block;font-size:15px;font-weight:500;height:43px;line-height:1;margin:0;padding:0 20px;position:relative;text-align:center;text-decoration:none;transition:all .3s ease;user-select:none;width:auto}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:wait;outline:none;padding-left:44px;pointer-events:none}.alm-btn-wrap .alm-load-more-btn.done,.alm-btn-wrap .alm-load-more-btn:disabled{background-color:#ed7070;box-shadow:none!important;opacity:.15;outline:none!important;pointer-events:none}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before,.alm-btn-wrap .alm-load-more-btn:disabled:before{background:none;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../frontend/img/ajax-loader.gif) no-repeat 50%;border-radius:3px;content:"";display:inline-block;height:31px;left:0;margin:6px;overflow:hidden;position:absolute;top:0;transition:width .5s ease-in-out;width:30px;z-index:0}.alm-btn-wrap .alm-elementor-link{display:block;font-size:13px;margin:0 0 15px}@media screen and (min-width:768px){.alm-btn-wrap .alm-elementor-link{left:0;margin:0;position:absolute;top:50%;transform:translateY(-50%)}}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;border:1px solid #e0e0e0;color:#787878;outline:none;overflow:hidden;transition:none}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;border-color:#aaa;color:#333}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;border-color:#ccc;color:#444}.ajax-load-more-wrap.white .alm-load-more-btn.loading{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)!important;box-shadow:none!important;color:hsla(0,0%,100%,0)!important;outline:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{background-color:rgba(0,0,0,0);background-image:url(../frontend/img/ajax-loader-lg.gif);background-position:50%;background-size:25px 25px;height:100%;left:0;margin:0;top:0;width:100%}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;border:1px solid #e0e0e0;color:#787878;outline:none;overflow:hidden;transition:all 75ms ease}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;border-color:#aaa;color:#222}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)!important;box-shadow:none!important;color:hsla(0,0%,100%,0)!important;outline:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{background-color:rgba(0,0,0,0);background-image:url(../frontend/img/ajax-loader-lg.gif);background-position:50%;background-size:25px 25px;height:100%;left:0;margin:0;top:0;width:100%}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn{background-color:rgba(0,0,0,0)!important;background-image:url(../frontend/img/spinner.gif);background-position:50%;background-repeat:no-repeat;border:none!important;box-shadow:none!important;cursor:default!important;opacity:0;outline:none!important;overflow:hidden;text-indent:-9999px;transition:opacity .2s ease;width:100%}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:active,.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:focus{outline:none}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap{align-items:center;display:flex;margin:0;padding:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button{margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done{display:none}.alm-btn-wrap--prev{clear:both;display:flex;justify-content:center;margin:0;padding:0;width:100%}.alm-btn-wrap--prev:after{clear:both;content:"";display:table;height:0}.alm-btn-wrap--prev a.alm-load-more-btn--prev{display:inline-block;font-size:14px;font-weight:500;line-height:1;margin:0 0 15px;padding:5px;position:relative;text-decoration:none}.alm-btn-wrap--prev a.alm-load-more-btn--prev:focus,.alm-btn-wrap--prev a.alm-load-more-btn--prev:hover{text-decoration:underline}.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading,.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus{cursor:wait;text-decoration:none}.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:before,.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus:before{background:url(../frontend/img/ajax-loader-lg.gif) no-repeat 0;background-size:16px 16px;content:"";display:block;height:16px;left:-18px;position:absolute;top:50%;transform:translateY(-50%);width:16px}.alm-btn-wrap--prev a.alm-load-more-btn--prev.skype.loading:before{background-image:url(../frontend/img/spinner-skype.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.ring.loading:before{background-image:url(../frontend/img/spinner-ring.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.fading-blocks.loading:before{background-image:url(../frontend/img/loader-fading-blocks.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.chasing-arrows.loading:before{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev button:not([disabled]),.alm-btn-wrap--prev a.alm-load-more-btn--prev:not(.disabled){cursor:pointer}.alm-btn-wrap--prev a.alm-load-more-btn--prev.done{display:none!important}.alm-listing,.alm-paging-content{outline:none}.alm-listing:after,.alm-paging-content:after{clear:both;content:"";display:table;height:0}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing>li{position:relative}.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{background:none;list-style:none;margin:0 0 30px;padding:0 0 0 80px;position:relative}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 100px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 135px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 160px}}.alm-listing .alm-paging-content>li.alm-item h3,.alm-listing>li.alm-item h3{margin:0}.alm-listing .alm-paging-content>li.alm-item p,.alm-listing>li.alm-item p{margin:10px 0 0}.alm-listing .alm-paging-content>li.alm-item p.entry-meta,.alm-listing>li.alm-item p.entry-meta{opacity:.75}.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{border-radius:2px;left:0;max-width:65px;position:absolute;top:0}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:85px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:115px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:140px}}.alm-listing .alm-paging-content>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{border-radius:inherit;position:static}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree>li{margin:inherit;padding:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree>li img{border-radius:inherit;margin:inherit;padding:inherit;position:static}.alm-listing.rtl .alm-paging-content>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{clear:both;display:block;overflow:hidden}.alm-placeholder{display:none;opacity:0;transition:opacity .2s ease}.ajax-load-more-wrap.alm-horizontal{display:flex;flex-wrap:nowrap;width:100%}.ajax-load-more-wrap.alm-horizontal .alm-listing{display:flex;flex-direction:row;flex-wrap:nowrap}.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item{background-color:#fff;border:1px solid #efefef;border-radius:4px;height:auto;margin:0 2px;padding:20px 20px 30px;text-align:center;width:300px}.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item img{border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.075);margin:0 auto 15px;max-width:125px;position:static}.ajax-load-more-wrap.alm-horizontal .alm-listing:after{display:none}.alm-toc{display:flex;padding:10px 0;width:auto}.alm-toc button{background:#f7f7f7;border:1px solid #efefef;border-radius:4px;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;height:auto;line-height:1;margin:0 5px 0 0;outline:none;padding:7px 10px;transition:all .15s ease}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{box-shadow:0 0 0 3px rgba(0,0,0,.05)} \ No newline at end of file diff --git a/build/frontend/ajax-load-more.js b/build/frontend/ajax-load-more.js index 4654779..93028ea 100644 --- a/build/frontend/ajax-load-more.js +++ b/build/frontend/ajax-load-more.js @@ -1,1351 +1,13471 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ var ajaxloadmore; /******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ "./src/frontend/js/addons/cache.js": -/*!*****************************************!*\ - !*** ./src/frontend/js/addons/cache.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 924: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cacheCreateParams: function() { return /* binding */ cacheCreateParams; },\n/* harmony export */ createCache: function() { return /* binding */ createCache; },\n/* harmony export */ getCache: function() { return /* binding */ getCache; },\n/* harmony export */ getCacheSlug: function() { return /* binding */ getCacheSlug; }\n/* harmony export */ });\n/* harmony import */ var crypto_js_md5__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto-js/md5 */ \"./node_modules/crypto-js/md5.js\");\n/* harmony import */ var crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto_js_md5__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _functions_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/api */ \"./src/frontend/js/functions/api.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction cacheCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.cache = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cache) === 'true';\n if (alm.addons.cache) {\n alm.addons.cache_id = listing.dataset.cacheId;\n alm.addons.cache_path = listing.dataset.cachePath;\n alm.addons.cache_logged_in = listing.dataset.cacheLoggedIn ? listing.dataset.cacheLoggedIn : false;\n }\n return alm;\n}\n\n/**\n * Create unique cache slug from query params.\n *\n * @param {Object} alm The ALM object.\n * @param {Object} data The data object.\n * @return {string} The cache file slug.\n */\nfunction getCacheSlug(alm, data) {\n var addons = alm.addons,\n pagePrev = alm.pagePrev,\n page = alm.page,\n _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel;\n if (addons.nextpage) {\n return \"page-\".concat(page + addons.nextpage_startpage); // Nextpage.\n } else if (addons.single_post) {\n return addons.single_post_id; // Single Post.\n } else if (addons.woocommerce || addons.elementor) {\n return rel === 'prev' ? \"page-\".concat(pagePrev) : \"page-\".concat(page + 1); // WooCommerce || Elementor.\n }\n\n return crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify(data)).toString(); // Standard.\n}\n\n/**\n * Create a cache file.\n *\n * @param {Object} alm The ALM object.\n * @param {string} data Content to cache.\n * @param {string} name The cache slug\n * @since 5.3.1\n */\nfunction createCache(_x, _x2, _x3) {\n return _createCache.apply(this, arguments);\n}\n\n/**\n * Get cache data file.\n *\n * @param {Object} alm The ALM object.\n * @param {Object} params Query params.\n * @return {Promise} Cache data or false.\n */\nfunction _createCache() {\n _createCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(alm, data, name) {\n var _data$html, html, _data$meta, meta, params, res;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _data$html = data.html, html = _data$html === void 0 ? '' : _data$html, _data$meta = data.meta, meta = _data$meta === void 0 ? {} : _data$meta;\n if (!(!html || !alm.addons.cache)) {\n _context.next = 3;\n break;\n }\n return _context.abrupt(\"return\");\n case 3:\n params = {\n cache_id: alm.addons.cache_id,\n cache_logged_in: alm.addons.cache_logged_in,\n canonical_url: alm.canonical_url,\n name: name,\n html: html.trim(),\n postcount: meta.postcount,\n totalposts: meta.totalposts\n }; // Create the cache file via REST API.\n _context.next = 6;\n return _functions_api__WEBPACK_IMPORTED_MODULE_1__.api.post('ajax-load-more/cache/create', params);\n case 6:\n res = _context.sent;\n if (res.status === 200 && res.data && res.data.success) {\n console.log(res.data.msg); // eslint-disable-line no-console\n }\n case 8:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _createCache.apply(this, arguments);\n}\nfunction getCache(_x4, _x5) {\n return _getCache.apply(this, arguments);\n}\nfunction _getCache() {\n _getCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(alm, params) {\n var restParams, res;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (!(!alm.addons.cache || alm.addons.cache && alm.addons.cache_logged_in)) {\n _context2.next = 2;\n break;\n }\n return _context2.abrupt(\"return\", false);\n case 2:\n restParams = {\n id: alm.addons.cache_id,\n name: params.cache_slug\n };\n _context2.next = 5;\n return _functions_api__WEBPACK_IMPORTED_MODULE_1__.api.get('ajax-load-more/cache/get', {\n params: restParams\n });\n case 5:\n res = _context2.sent;\n if (!(res.status === 200 && res.data)) {\n _context2.next = 8;\n break;\n }\n return _context2.abrupt(\"return\", res.data);\n case 8:\n return _context2.abrupt(\"return\", false);\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _getCache.apply(this, arguments);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/cache.js?"); -/***/ }), -/***/ "./src/frontend/js/addons/call-to-actions.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/addons/call-to-actions.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +var GetIntrinsic = __webpack_require__(210); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ctaCreateParams: function() { return /* binding */ ctaCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction ctaCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.cta = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cta) === 'true';\n if (alm.addons.cta) {\n alm.addons.cta_position = listing.dataset.ctaPosition;\n alm.addons.cta_repeater = listing.dataset.ctaRepeater;\n alm.addons.cta_theme_repeater = listing.dataset.ctaThemeRepeater;\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/call-to-actions.js?"); +var callBind = __webpack_require__(559); -/***/ }), +var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); -/***/ "./src/frontend/js/addons/comments.js": -/*!********************************************!*\ - !*** ./src/frontend/js/addons/comments.js ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +module.exports = function callBoundIntrinsic(name, allowMissing) { + var intrinsic = GetIntrinsic(name, !!allowMissing); + if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { + return callBind(intrinsic); + } + return intrinsic; +}; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ commentsCreateParams: function() { return /* binding */ commentsCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction commentsCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.comments = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.comments) === 'true';\n if (alm.addons.comments) {\n alm.addons.comments_post_id = listing.dataset.comments_post_id;\n alm.addons.comments_per_page = listing.dataset.comments_per_page;\n alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;\n alm.addons.comments_type = listing.dataset.comments_type;\n alm.addons.comments_style = listing.dataset.comments_style;\n alm.addons.comments_template = listing.dataset.comments_template;\n alm.addons.comments_callback = listing.dataset.comments_callback;\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/comments.js?"); /***/ }), -/***/ "./src/frontend/js/addons/elementor.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/elementor.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 559: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ elementor: function() { return /* binding */ elementor; },\n/* harmony export */ elementorCreateParams: function() { return /* binding */ elementorCreateParams; },\n/* harmony export */ elementorGetContent: function() { return /* binding */ elementorGetContent; },\n/* harmony export */ elementorGetNextUrl: function() { return /* binding */ elementorGetNextUrl; },\n/* harmony export */ elementorInit: function() { return /* binding */ elementorInit; },\n/* harmony export */ elementorLoaded: function() { return /* binding */ elementorLoaded; }\n/* harmony export */ });\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _modules_loadItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../modules/loadItems */ \"./src/frontend/js/modules/loadItems.js\");\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction elementorCreateParams(alm) {\n var _alm = alm,\n listing = _alm.listing;\n alm.addons.elementor = listing.dataset.elementor === 'posts' && listing.dataset.elementorSettings;\n if (alm.addons.elementor) {\n // Get Settings\n alm.addons.elementor_type = 'posts';\n alm.addons.elementor_settings = JSON.parse(alm.listing.dataset.elementorSettings);\n\n // Parse Container Settings\n alm.addons.elementor_target = alm.addons.elementor_settings.target;\n alm.addons.elementor_element = alm.addons.elementor_settings.target ? document.querySelector(\".elementor-element \".concat(alm.addons.elementor_settings.target)) : '';\n alm.addons.elementor_widget = elementorGetWidgetType(alm.addons.elementor_element);\n\n // Masonry\n alm = setElementorClasses(alm, alm.addons.elementor_widget);\n\n // Pagination Element\n alm.addons.elementor_controls = alm.addons.elementor_settings.controls;\n alm.addons.elementor_controls = alm.addons.elementor_controls === 'true' ? true : false;\n alm.addons.elementor_scrolltop = parseInt(alm.addons.elementor_settings.scrolltop);\n\n // Get next page URL.\n alm.addons.elementor_next_page = elementorGetNextUrl(alm, alm.addons.elementor_element);\n\n // Get the max pages.\n alm.addons.elementor_max_pages = alm.addons.elementor_element.querySelector('.e-load-more-anchor');\n alm.addons.elementor_max_pages = alm.addons.elementor_max_pages ? parseInt(alm.addons.elementor_max_pages.dataset.maxPage) : 999;\n alm.addons.elementor_paged = alm.addons.elementor_settings.paged ? parseInt(alm.addons.elementor_settings.paged) : 1;\n alm.page = parseInt(alm.page) + alm.addons.elementor_paged;\n\n // Masonry\n alm = parseMasonryConfig(alm);\n if (!alm.addons.elementor_element) {\n console.warn(\"Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?\");\n }\n if (!alm.addons.elementor_next_page) {\n console.warn('Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?');\n }\n }\n return alm;\n}\n\n/**\n * Set up the instance on Elementor\n *\n * @param {Object} alm\n * @since 5.3.0\n */\nfunction elementorInit(alm) {\n if (!alm.addons.elementor || !alm.addons.elementor_type || !alm.addons.elementor_type === 'posts') {\n return false;\n }\n var target = alm.addons.elementor_element;\n if (target) {\n // Set button data attributes\n alm.button.dataset.page = alm.addons.elementor_paged;\n\n // Set button URL\n var nextPage = alm.addons.elementor_next_page;\n alm.button.dataset.url = nextPage ? nextPage : '';\n\n // Set a11y attributes\n target.setAttribute('aria-live', 'polite');\n target.setAttribute('aria-atomic', 'true');\n alm.listing.removeAttribute('aria-live');\n alm.listing.removeAttribute('aria-atomic');\n\n // Set data atts on 1st grid item\n var item = target.querySelector(\".\".concat(alm.addons.elementor_item_class)); // Get first `.product` item\n if (item) {\n item.classList.add('alm-elementor');\n item.dataset.url = window.location;\n item.dataset.page = alm.addons.elementor_paged;\n item.dataset.pageTitle = document.title;\n }\n\n // Masonry Window Resize. Delay for masonry to be added via Elementor.\n if (alm.addons.elementor_masonry) {\n var resizeTimeout;\n setTimeout(function () {\n window.addEventListener('resize', function () {\n clearTimeout(resizeTimeout);\n resizeTimeout = setTimeout(function () {\n positionMasonryItems(alm, \".\".concat(alm.addons.elementor_container_class), \".\".concat(alm.addons.elementor_item_class));\n }, 100);\n });\n }, 250);\n }\n }\n}\n\n/**\n * Get the content, title and results text from the Ajax response.\n *\n * @param {Object} alm The alm object.\n * @param {string} url The request URL.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n * @since 5.4.0\n */\nfunction elementorGetContent(alm, url, response, cache_slug) {\n // Default data object.\n var data = {\n html: '',\n meta: {\n postcount: 0,\n totalposts: 0\n }\n };\n\n // Successful response.\n if (response.status === 200 && response.data) {\n var addons = alm.addons,\n page = alm.page,\n button = alm.button;\n\n // Create temp div to hold response data.\n var content = document.createElement('div');\n content.innerHTML = response.data;\n\n // Set button URL.\n var nextURL = elementorGetNextUrl(alm, content);\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_0__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n // Disable button if no next page.\n alm.AjaxLoadMore.triggerDone();\n }\n\n // Get Page Title\n var title = content.querySelector('title').innerHTML;\n data.pageTitle = title;\n\n // Get Elementor Items container.\n var container = content.querySelector(\"\".concat(addons.elementor_target, \" .\").concat(addons.elementor_container_class));\n if (!container) {\n console.warn(\"Ajax Load More Elementor: Unable to find Elementor container element.\");\n return data;\n }\n\n // Get the first item and append data attributes.\n var item = container ? container.querySelector(\".\".concat(addons.elementor_item_class)) : null;\n if (item) {\n item.classList.add('alm-elementor');\n item.dataset.url = url;\n item.dataset.page = addons.elementor_paged;\n item.dataset.pageTitle = title;\n }\n\n // Count the number of returned items.\n var items = container.querySelectorAll(\".\".concat(addons.elementor_item_class));\n if (items) {\n // Set the html to the elementor container data.\n data.html = container ? container.innerHTML : '';\n data.meta.postcount = items.length;\n data.meta.totalposts = items.length;\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_3__.createCache)(alm, data, cache_slug);\n }\n }\n return data;\n}\n\n/**\n * Core ALM Elementor loader.\n *\n * @param {HTMLElement} content The HTML data.\n * @param {Object} alm The alm object.\n * @since 5.3.0\n */\nfunction elementor(content, alm) {\n if (!content || !alm) {\n alm.AjaxLoadMore.triggerDone();\n return false;\n }\n return new Promise(function (resolve) {\n var addons = alm.addons;\n var container = alm.addons.elementor_element.querySelector(\".\".concat(addons.elementor_container_class)); // Get post container\n var items = content.querySelectorAll(\".\".concat(addons.elementor_item_class)); // Get all items in container\n\n if (container && items) {\n var ElementorItems = Array.prototype.slice.call(items); // Convert NodeList to Array\n\n // Trigger almElementorLoaded callback.\n if (typeof almElementorLoaded === 'function') {\n window.almElementorLoaded(ElementorItems);\n }\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_modules_loadItems__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(container, ElementorItems, alm);\n case 2:\n if (addons.elementor_masonry) {\n setTimeout(function () {\n positionMasonryItems(alm, \".\".concat(addons.elementor_container_class), \".\".concat(addons.elementor_item_class));\n }, 125);\n }\n resolve(true);\n case 4:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function (e) {\n console.warn(e, 'There was an error with Elementor'); // eslint-disable-line no-console\n });\n } else {\n resolve(false);\n }\n });\n}\n\n/**\n * Elementor loaded and dispatch actions.\n *\n * @param {Object} alm The alm object.\n * @since 5.5.0\n */\nfunction elementorLoaded(alm) {\n var page = alm.page,\n AjaxLoadMore = alm.AjaxLoadMore,\n addons = alm.addons;\n var nextPage = page + 1;\n var max_pages = addons.elementor_max_pages;\n\n // Lazy load images if necessary.\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_1__.lazyImages)(alm);\n\n // Trigger almComplete.\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm);\n }\n\n // End transitions.\n AjaxLoadMore.transitionEnd();\n\n // ALM Done.\n if (nextPage >= max_pages) {\n AjaxLoadMore.triggerDone();\n }\n}\n\n/**\n * Set the required classnames for parsing data and injecting content into the Elementor listing\n *\n * @param {Object} alm The alm object.\n * @param {string} type The Elementor type.\n * @return {Object} The modified object.\n */\nfunction setElementorClasses(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'posts';\n // Get the items based on the Elementor type.\n alm.addons.elementor_container_class = alm.addons.elementor_settings.container_class; // Container class\n\n switch (type) {\n case 'woocommerce':\n alm.addons.elementor_item_class = alm.addons.elementor_settings.woo_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.woo_pagination_class); // Pagination class.\n break;\n case 'loop-grid':\n alm.addons.elementor_item_class = alm.addons.elementor_settings.loop_grid_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.loop_grid_pagination_class); // Pagination class.\n break;\n default:\n alm.addons.elementor_item_class = alm.addons.elementor_settings.posts_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.posts_pagination_class); // Pagination class.\n break;\n }\n return alm;\n}\n\n/**\n * Parse Masonry Settings from Elementor Data atts\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction parseMasonryConfig(alm) {\n var _target$dataset;\n var addons = alm.addons;\n if (!addons.elementor_element) {\n return alm; // Exit if not found.\n }\n\n var target = addons.elementor_element;\n var settings = target !== null && target !== void 0 && (_target$dataset = target.dataset) !== null && _target$dataset !== void 0 && _target$dataset.settings ? JSON.parse(target.dataset.settings) : '';\n if (!settings) {\n return alm; // Exit if not found.\n }\n\n addons.elementor_masonry = settings.hasOwnProperty('cards_masonry') || settings.hasOwnProperty('classic_masonry') || settings.hasOwnProperty('masonry');\n if (addons.elementor_masonry) {\n var _settings$cards_row_g, _settings$row_gap;\n addons.elementor_masonry_columns = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns);\n addons.elementor_masonry_columns_mobile = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_mobile);\n addons.elementor_masonry_columns_tablet = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_tablet);\n addons.elementor_masonry_gap = parseInt(settings === null || settings === void 0 || (_settings$cards_row_g = settings.cards_row_gap) === null || _settings$cards_row_g === void 0 ? void 0 : _settings$cards_row_g.size) || parseInt(settings === null || settings === void 0 || (_settings$row_gap = settings.row_gap) === null || _settings$row_gap === void 0 ? void 0 : _settings$row_gap.size);\n }\n return alm;\n}\n\n/**\n * Position Elementor Masonry Items\n *\n * @param {Object} alm The alm object.\n * @param {string} container_class The container classname.\n * @param {string} item_class The item classname.\n */\nfunction positionMasonryItems(alm, container_class, item_class) {\n var heights = [];\n\n // Get Elementor Settings\n var columnsCount = alm.addons.elementor_masonry_columns;\n var columnsCountTablet = alm.addons.elementor_masonry_columns_tablet;\n var columnsCountMobile = alm.addons.elementor_masonry_columns_mobile;\n var verticalSpaceBetween = alm.addons.elementor_masonry_gap;\n var columns = columnsCount;\n\n // Get Elementor Breakpoints\n var breakpoints = window.elementorFrontendConfig && window.elementorFrontendConfig.breakpoints ? window.elementorFrontendConfig.breakpoints : 0;\n var windowW = window.innerWidth;\n\n // Set Columns\n if (windowW > breakpoints.lg) {\n columns = columnsCount;\n } else if (windowW > breakpoints.md) {\n columns = columnsCountTablet;\n } else {\n columns = columnsCountMobile;\n }\n\n // Get Containers\n var container = document.querySelector(container_class);\n if (!container) {\n return false;\n }\n var items = container.querySelectorAll(item_class);\n if (!items) {\n return false;\n }\n\n // Loop items\n items.forEach(function (item, index) {\n var row = Math.floor(index / columns);\n var itemHeight = item.getBoundingClientRect().height + verticalSpaceBetween;\n if (row) {\n var itemPosition = jQuery(item).position();\n var indexAtRow = index % columns;\n var pullHeight = Math.round(itemPosition.top) - heights[indexAtRow];\n pullHeight *= -1;\n item.style.marginTop = \"\".concat(Math.round(pullHeight), \"px\");\n heights[indexAtRow] += itemHeight;\n } else {\n heights.push(itemHeight);\n }\n });\n}\n\n/**\n * Determine the type of elementor widget (woocommerce || posts)\n *\n * @param {HTMLElement} target The target element.\n * @return {string} The Elementor type.\n */\nfunction elementorGetWidgetType(target) {\n if (!target) {\n return false;\n }\n\n // Get Elementor type based on container class.\n if (target.classList.contains('elementor-wc-products')) {\n // WooCommerce.\n return 'woocommerce';\n } else if (target.classList.contains('elementor-widget-loop-grid')) {\n // Loop Grid.\n return 'loop-grid';\n }\n return 'posts';\n}\n\n/**\n * Get the pagination container for the Elementor pagination.\n *\n * @param {Object} alm The alm object.\n * @param {Element} content The HTML content to search.\n * @return {HTMLElement} The pagination element.\n */\nfunction elementorGetNextUrl(alm, content) {\n var _addons$elementor_set, _element$querySelecto;\n var _alm$addons = alm.addons,\n addons = _alm$addons === void 0 ? {} : _alm$addons;\n\n // Locate the pagination container.\n var element = (content === null || content === void 0 ? void 0 : content.querySelector(addons === null || addons === void 0 ? void 0 : addons.elementor_pagination_class)) || (content === null || content === void 0 ? void 0 : content.querySelector(\".\".concat(addons === null || addons === void 0 || (_addons$elementor_set = addons.elementor_settings) === null || _addons$elementor_set === void 0 ? void 0 : _addons$elementor_set.pagination_class)));\n\n // Get the next page URL from the pagination element.\n var nextpage = element === null || element === void 0 || (_element$querySelecto = element.querySelector('a.next')) === null || _element$querySelecto === void 0 ? void 0 : _element$querySelecto.href;\n\n // Return the next page URL.\n return nextpage ? nextpage : false;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/elementor.js?"); -/***/ }), -/***/ "./src/frontend/js/addons/filters.js": -/*!*******************************************!*\ - !*** ./src/frontend/js/addons/filters.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +var bind = __webpack_require__(612); +var GetIntrinsic = __webpack_require__(210); + +var $apply = GetIntrinsic('%Function.prototype.apply%'); +var $call = GetIntrinsic('%Function.prototype.call%'); +var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); + +var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); +var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); +var $max = GetIntrinsic('%Math.max%'); + +if ($defineProperty) { + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + // IE 8 has a broken defineProperty + $defineProperty = null; + } +} + +module.exports = function callBind(originalFunction) { + var func = $reflectApply(bind, $call, arguments); + if ($gOPD && $defineProperty) { + var desc = $gOPD(func, 'length'); + if (desc.configurable) { + // original length, plus the receiver, minus any additional arguments (after the receiver) + $defineProperty( + func, + 'length', + { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } + ); + } + } + return func; +}; + +var applyBind = function applyBind() { + return $reflectApply(bind, $apply, arguments); +}; + +if ($defineProperty) { + $defineProperty(module.exports, 'apply', { value: applyBind }); +} else { + module.exports.apply = applyBind; +} -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addFiltersAttributes: function() { return /* binding */ addFiltersAttributes; },\n/* harmony export */ buildFilterURL: function() { return /* binding */ buildFilterURL; },\n/* harmony export */ filtersCreateParams: function() { return /* binding */ filtersCreateParams; },\n/* harmony export */ parseQuerystring: function() { return /* binding */ parseQuerystring; }\n/* harmony export */ });\n/* harmony import */ var _functions_getParameterByName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getParameterByName */ \"./src/frontend/js/functions/getParameterByName.js\");\n/* harmony import */ var _functions_getQueryVariable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/getQueryVariable */ \"./src/frontend/js/functions/getQueryVariable.js\");\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction filtersCreateParams(alm) {\n var _alm$listing;\n var listing = alm.listing;\n alm.addons.filters = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.filters) === 'true';\n if (alm.addons.filters) {\n alm.addons.filters_url = listing.dataset.filtersUrl === 'true';\n alm.addons.filters_target = listing.dataset.filtersTarget ? listing.dataset.filtersTarget : false;\n alm.addons.filters_paging = listing.dataset.filtersPaging === 'true';\n alm.addons.filters_scroll = listing.dataset.filtersScroll === 'true';\n alm.addons.filters_scrolltop = listing.dataset.filtersScrolltop ? listing.dataset.filtersScrolltop : '30';\n alm.addons.filters_debug = listing.dataset.filtersDebug;\n alm.facets = listing.dataset.facets === 'true';\n\n // Display warning when `filters_target` parameter is missing.\n if (!alm.addons.filters_target) {\n console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters=\"true\" target=\"filters\"]');\n }\n\n // Parse querystring value for pg.\n var page = (0,_functions_getParameterByName__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('pg');\n alm.addons.filters_startpage = page !== null ? parseInt(page) : 0;\n\n // Handle a paged URL with filters.\n if (alm.addons.filters_startpage > 0) {\n if (alm.addons.paging) {\n // Paging add-on: Set current page value.\n alm.page = alm.addons.filters_startpage - 1;\n } else {\n // Set posts_per_page value to load all required posts.\n alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;\n alm.paged = true;\n }\n }\n }\n return alm;\n}\n\n/**\n * Create data attributes for a Filters item.\n *\n * @param {Object} alm The ALM object.\n * @param {HTMLElement} element The element HTML node.\n * @param {number} pagenum The current page number.\n * @return {HTMLElement} Modified HTML element.\n */\nfunction addFiltersAttributes(alm, element, pagenum) {\n var canonical_url = alm.canonical_url;\n var querystring = window.location.search;\n element.classList.add('alm-filters');\n element.dataset.page = pagenum;\n if (pagenum > 1) {\n element.dataset.url = canonical_url + buildFilterURL(alm, querystring, pagenum);\n } else {\n element.dataset.url = canonical_url + buildFilterURL(alm, querystring, 0);\n }\n return element;\n}\n\n/**\n * Parse a filter querystring for returning caches directories.\n *\n * @param {string} path The URL path.\n * @since 5.3.1\n */\nfunction parseQuerystring(path) {\n // Get querystring\n var query = window.location.search.substring(1);\n var obj = '';\n var cache_dir = '';\n\n // Parse querystring into object\n if (query) {\n obj = JSON.parse('{\"' + query.replace(/&/g, '\",\"').replace(/=/g, '\":\"') + '\"}', function (key, value) {\n // Replace + with - in URL\n return key === '' ? value : decodeURIComponent(value.replace(/\\+/g, '-'));\n });\n\n // Remove the following properties from the object as they should not be included in the cache ID\n\n if (obj.pg) {\n // `pg` object prop\n delete obj.pg;\n }\n if (obj.auto) {\n // `auto` object prop\n delete obj.auto;\n }\n }\n if (obj) {\n cache_dir += '/';\n Object.keys(obj).forEach(function (key, index) {\n cache_dir += index > 0 ? '--' : '';\n cache_dir += \"\".concat(key, \"--\").concat(obj[key]);\n });\n }\n return path + cache_dir;\n}\n\n/**\n * Build new paging URL for filters.\n *\n * @param {Object} alm The ALM object.\n * @param {string} querystring The current querystring.\n * @param {number} page The page number.\n * @return {string} The querystring.\n * @since 5.3.5\n */\nfunction buildFilterURL(alm) {\n var querystring = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var qs = querystring;\n if (alm.addons.filters_paging) {\n if (page > 1) {\n // Paged\n if (qs) {\n // If already has `pg` in querystring\n if ((0,_functions_getQueryVariable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('pg')) {\n qs = querystring.replace(/(pg=)[^\\&]+/, '$1' + page);\n } else {\n qs = querystring + '&pg=' + page;\n }\n } else {\n qs = '?pg=' + page;\n }\n } else {\n // Not Paged\n qs = querystring.replace(/(pg=)[^\\&]+/, '');\n qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring\n qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols\n }\n }\n\n return qs;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/filters.js?"); /***/ }), -/***/ "./src/frontend/js/addons/next-page.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/next-page.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 249: +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ nextpageCreateParams: function() { return /* binding */ nextpageCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction nextpageCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.nextpage = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.nextpage) === 'true';\n if (alm.addons.nextpage) {\n alm.addons.nextpage_urls = listing.dataset.nextpageUrls === undefined ? 'true' : listing.dataset.nextpageUrls;\n alm.addons.nextpage_scroll = listing.dataset.nextpageScroll === undefined ? 'false:30' : listing.dataset.nextpageScroll;\n alm.addons.nextpage_post_id = listing.dataset.nextpagePostId ? listing.dataset.nextpagePostId : false;\n alm.addons.nextpage_startpage = listing.dataset.nextpageStartpage ? parseInt(listing.dataset.nextpageStartpage) : 1;\n alm.addons.nextpage_title_template = listing.dataset.nextpageTitleTemplate;\n alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;\n\n // Set default fallbacks.\n alm.posts_per_page = 1;\n alm.orginal_posts_per_page = 1;\n if (!alm.addons.nextpage_post_id) {\n alm.addons.nextpage = false;\n }\n if (alm.addons.nextpage_startpage > 1) {\n alm.paged = true;\n }\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/next-page.js?"); +;(function (root, factory) { + if (true) { + // CommonJS + module.exports = exports = factory(); + } + else {} +}(this, function () { + + /*globals window, global, require*/ + + /** + * CryptoJS core components. + */ + var CryptoJS = CryptoJS || (function (Math, undefined) { + + var crypto; + + // Native crypto from window (Browser) + if (typeof window !== 'undefined' && window.crypto) { + crypto = window.crypto; + } + + // Native crypto in web worker (Browser) + if (typeof self !== 'undefined' && self.crypto) { + crypto = self.crypto; + } + + // Native crypto from worker + if (typeof globalThis !== 'undefined' && globalThis.crypto) { + crypto = globalThis.crypto; + } + + // Native (experimental IE 11) crypto from window (Browser) + if (!crypto && typeof window !== 'undefined' && window.msCrypto) { + crypto = window.msCrypto; + } + + // Native crypto from global (NodeJS) + if (!crypto && typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.crypto) { + crypto = __webpack_require__.g.crypto; + } + + // Native crypto import via require (NodeJS) + if (!crypto && "function" === 'function') { + try { + crypto = __webpack_require__(480); + } catch (err) {} + } + + /* + * Cryptographically secure pseudorandom number generator + * + * As Math.random() is cryptographically not safe to use + */ + var cryptoSecureRandomInt = function () { + if (crypto) { + // Use getRandomValues method (Browser) + if (typeof crypto.getRandomValues === 'function') { + try { + return crypto.getRandomValues(new Uint32Array(1))[0]; + } catch (err) {} + } + + // Use randomBytes method (NodeJS) + if (typeof crypto.randomBytes === 'function') { + try { + return crypto.randomBytes(4).readInt32LE(); + } catch (err) {} + } + } + + throw new Error('Native crypto module could not be used to get secure random number.'); + }; + + /* + * Local polyfill of Object.create + + */ + var create = Object.create || (function () { + function F() {} + + return function (obj) { + var subtype; + + F.prototype = obj; + + subtype = new F(); + + F.prototype = null; + + return subtype; + }; + }()); + + /** + * CryptoJS namespace. + */ + var C = {}; + + /** + * Library namespace. + */ + var C_lib = C.lib = {}; + + /** + * Base object for prototypal inheritance. + */ + var Base = C_lib.Base = (function () { + + + return { + /** + * Creates a new object that inherits from this object. + * + * @param {Object} overrides Properties to copy into the new object. + * + * @return {Object} The new object. + * + * @static + * + * @example + * + * var MyType = CryptoJS.lib.Base.extend({ + * field: 'value', + * + * method: function () { + * } + * }); + */ + extend: function (overrides) { + // Spawn + var subtype = create(this); + + // Augment + if (overrides) { + subtype.mixIn(overrides); + } + + // Create default initializer + if (!subtype.hasOwnProperty('init') || this.init === subtype.init) { + subtype.init = function () { + subtype.$super.init.apply(this, arguments); + }; + } + + // Initializer's prototype is the subtype object + subtype.init.prototype = subtype; + + // Reference supertype + subtype.$super = this; + + return subtype; + }, + + /** + * Extends this object and runs the init method. + * Arguments to create() will be passed to init(). + * + * @return {Object} The new object. + * + * @static + * + * @example + * + * var instance = MyType.create(); + */ + create: function () { + var instance = this.extend(); + instance.init.apply(instance, arguments); + + return instance; + }, + + /** + * Initializes a newly created object. + * Override this method to add some logic when your objects are created. + * + * @example + * + * var MyType = CryptoJS.lib.Base.extend({ + * init: function () { + * // ... + * } + * }); + */ + init: function () { + }, + + /** + * Copies properties into this object. + * + * @param {Object} properties The properties to mix in. + * + * @example + * + * MyType.mixIn({ + * field: 'value' + * }); + */ + mixIn: function (properties) { + for (var propertyName in properties) { + if (properties.hasOwnProperty(propertyName)) { + this[propertyName] = properties[propertyName]; + } + } + + // IE won't copy toString using the loop above + if (properties.hasOwnProperty('toString')) { + this.toString = properties.toString; + } + }, + + /** + * Creates a copy of this object. + * + * @return {Object} The clone. + * + * @example + * + * var clone = instance.clone(); + */ + clone: function () { + return this.init.prototype.extend(this); + } + }; + }()); + + /** + * An array of 32-bit words. + * + * @property {Array} words The array of 32-bit words. + * @property {number} sigBytes The number of significant bytes in this word array. + */ + var WordArray = C_lib.WordArray = Base.extend({ + /** + * Initializes a newly created word array. + * + * @param {Array} words (Optional) An array of 32-bit words. + * @param {number} sigBytes (Optional) The number of significant bytes in the words. + * + * @example + * + * var wordArray = CryptoJS.lib.WordArray.create(); + * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); + * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); + */ + init: function (words, sigBytes) { + words = this.words = words || []; + + if (sigBytes != undefined) { + this.sigBytes = sigBytes; + } else { + this.sigBytes = words.length * 4; + } + }, + + /** + * Converts this word array to a string. + * + * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex + * + * @return {string} The stringified word array. + * + * @example + * + * var string = wordArray + ''; + * var string = wordArray.toString(); + * var string = wordArray.toString(CryptoJS.enc.Utf8); + */ + toString: function (encoder) { + return (encoder || Hex).stringify(this); + }, + + /** + * Concatenates a word array to this word array. + * + * @param {WordArray} wordArray The word array to append. + * + * @return {WordArray} This word array. + * + * @example + * + * wordArray1.concat(wordArray2); + */ + concat: function (wordArray) { + // Shortcuts + var thisWords = this.words; + var thatWords = wordArray.words; + var thisSigBytes = this.sigBytes; + var thatSigBytes = wordArray.sigBytes; + + // Clamp excess bits + this.clamp(); + + // Concat + if (thisSigBytes % 4) { + // Copy one byte at a time + for (var i = 0; i < thatSigBytes; i++) { + var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; + thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8); + } + } else { + // Copy one word at a time + for (var j = 0; j < thatSigBytes; j += 4) { + thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2]; + } + } + this.sigBytes += thatSigBytes; + + // Chainable + return this; + }, + + /** + * Removes insignificant bits. + * + * @example + * + * wordArray.clamp(); + */ + clamp: function () { + // Shortcuts + var words = this.words; + var sigBytes = this.sigBytes; + + // Clamp + words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8); + words.length = Math.ceil(sigBytes / 4); + }, + + /** + * Creates a copy of this word array. + * + * @return {WordArray} The clone. + * + * @example + * + * var clone = wordArray.clone(); + */ + clone: function () { + var clone = Base.clone.call(this); + clone.words = this.words.slice(0); + + return clone; + }, + + /** + * Creates a word array filled with random bytes. + * + * @param {number} nBytes The number of random bytes to generate. + * + * @return {WordArray} The random word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.lib.WordArray.random(16); + */ + random: function (nBytes) { + var words = []; + + for (var i = 0; i < nBytes; i += 4) { + words.push(cryptoSecureRandomInt()); + } + + return new WordArray.init(words, nBytes); + } + }); + + /** + * Encoder namespace. + */ + var C_enc = C.enc = {}; + + /** + * Hex encoding strategy. + */ + var Hex = C_enc.Hex = { + /** + * Converts a word array to a hex string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The hex string. + * + * @static + * + * @example + * + * var hexString = CryptoJS.enc.Hex.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + + // Convert + var hexChars = []; + for (var i = 0; i < sigBytes; i++) { + var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; + hexChars.push((bite >>> 4).toString(16)); + hexChars.push((bite & 0x0f).toString(16)); + } + + return hexChars.join(''); + }, + + /** + * Converts a hex string to a word array. + * + * @param {string} hexStr The hex string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Hex.parse(hexString); + */ + parse: function (hexStr) { + // Shortcut + var hexStrLength = hexStr.length; + + // Convert + var words = []; + for (var i = 0; i < hexStrLength; i += 2) { + words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4); + } + + return new WordArray.init(words, hexStrLength / 2); + } + }; + + /** + * Latin1 encoding strategy. + */ + var Latin1 = C_enc.Latin1 = { + /** + * Converts a word array to a Latin1 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The Latin1 string. + * + * @static + * + * @example + * + * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + + // Convert + var latin1Chars = []; + for (var i = 0; i < sigBytes; i++) { + var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; + latin1Chars.push(String.fromCharCode(bite)); + } + + return latin1Chars.join(''); + }, + + /** + * Converts a Latin1 string to a word array. + * + * @param {string} latin1Str The Latin1 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); + */ + parse: function (latin1Str) { + // Shortcut + var latin1StrLength = latin1Str.length; + + // Convert + var words = []; + for (var i = 0; i < latin1StrLength; i++) { + words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8); + } + + return new WordArray.init(words, latin1StrLength); + } + }; + + /** + * UTF-8 encoding strategy. + */ + var Utf8 = C_enc.Utf8 = { + /** + * Converts a word array to a UTF-8 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-8 string. + * + * @static + * + * @example + * + * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); + */ + stringify: function (wordArray) { + try { + return decodeURIComponent(escape(Latin1.stringify(wordArray))); + } catch (e) { + throw new Error('Malformed UTF-8 data'); + } + }, + + /** + * Converts a UTF-8 string to a word array. + * + * @param {string} utf8Str The UTF-8 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); + */ + parse: function (utf8Str) { + return Latin1.parse(unescape(encodeURIComponent(utf8Str))); + } + }; + + /** + * Abstract buffered block algorithm template. + * + * The property blockSize must be implemented in a concrete subtype. + * + * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0 + */ + var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({ + /** + * Resets this block algorithm's data buffer to its initial state. + * + * @example + * + * bufferedBlockAlgorithm.reset(); + */ + reset: function () { + // Initial values + this._data = new WordArray.init(); + this._nDataBytes = 0; + }, + + /** + * Adds new data to this block algorithm's buffer. + * + * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8. + * + * @example + * + * bufferedBlockAlgorithm._append('data'); + * bufferedBlockAlgorithm._append(wordArray); + */ + _append: function (data) { + // Convert string to WordArray, else assume WordArray already + if (typeof data == 'string') { + data = Utf8.parse(data); + } + + // Append + this._data.concat(data); + this._nDataBytes += data.sigBytes; + }, + + /** + * Processes available data blocks. + * + * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype. + * + * @param {boolean} doFlush Whether all blocks and partial blocks should be processed. + * + * @return {WordArray} The processed data. + * + * @example + * + * var processedData = bufferedBlockAlgorithm._process(); + * var processedData = bufferedBlockAlgorithm._process(!!'flush'); + */ + _process: function (doFlush) { + var processedWords; + + // Shortcuts + var data = this._data; + var dataWords = data.words; + var dataSigBytes = data.sigBytes; + var blockSize = this.blockSize; + var blockSizeBytes = blockSize * 4; + + // Count blocks ready + var nBlocksReady = dataSigBytes / blockSizeBytes; + if (doFlush) { + // Round up to include partial blocks + nBlocksReady = Math.ceil(nBlocksReady); + } else { + // Round down to include only full blocks, + // less the number of blocks that must remain in the buffer + nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0); + } + + // Count words ready + var nWordsReady = nBlocksReady * blockSize; + + // Count bytes ready + var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes); + + // Process blocks + if (nWordsReady) { + for (var offset = 0; offset < nWordsReady; offset += blockSize) { + // Perform concrete-algorithm logic + this._doProcessBlock(dataWords, offset); + } + + // Remove processed words + processedWords = dataWords.splice(0, nWordsReady); + data.sigBytes -= nBytesReady; + } + + // Return processed words + return new WordArray.init(processedWords, nBytesReady); + }, + + /** + * Creates a copy of this object. + * + * @return {Object} The clone. + * + * @example + * + * var clone = bufferedBlockAlgorithm.clone(); + */ + clone: function () { + var clone = Base.clone.call(this); + clone._data = this._data.clone(); + + return clone; + }, + + _minBufferSize: 0 + }); + + /** + * Abstract hasher template. + * + * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits) + */ + var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({ + /** + * Configuration options. + */ + cfg: Base.extend(), + + /** + * Initializes a newly created hasher. + * + * @param {Object} cfg (Optional) The configuration options to use for this hash computation. + * + * @example + * + * var hasher = CryptoJS.algo.SHA256.create(); + */ + init: function (cfg) { + // Apply config defaults + this.cfg = this.cfg.extend(cfg); + + // Set initial values + this.reset(); + }, + + /** + * Resets this hasher to its initial state. + * + * @example + * + * hasher.reset(); + */ + reset: function () { + // Reset data buffer + BufferedBlockAlgorithm.reset.call(this); + + // Perform concrete-hasher logic + this._doReset(); + }, + + /** + * Updates this hasher with a message. + * + * @param {WordArray|string} messageUpdate The message to append. + * + * @return {Hasher} This hasher. + * + * @example + * + * hasher.update('message'); + * hasher.update(wordArray); + */ + update: function (messageUpdate) { + // Append + this._append(messageUpdate); + + // Update the hash + this._process(); + + // Chainable + return this; + }, + + /** + * Finalizes the hash computation. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} messageUpdate (Optional) A final message update. + * + * @return {WordArray} The hash. + * + * @example + * + * var hash = hasher.finalize(); + * var hash = hasher.finalize('message'); + * var hash = hasher.finalize(wordArray); + */ + finalize: function (messageUpdate) { + // Final message update + if (messageUpdate) { + this._append(messageUpdate); + } + + // Perform concrete-hasher logic + var hash = this._doFinalize(); + + return hash; + }, + + blockSize: 512/32, + + /** + * Creates a shortcut function to a hasher's object interface. + * + * @param {Hasher} hasher The hasher to create a helper for. + * + * @return {Function} The shortcut function. + * + * @static + * + * @example + * + * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); + */ + _createHelper: function (hasher) { + return function (message, cfg) { + return new hasher.init(cfg).finalize(message); + }; + }, + + /** + * Creates a shortcut function to the HMAC's object interface. + * + * @param {Hasher} hasher The hasher to use in this HMAC helper. + * + * @return {Function} The shortcut function. + * + * @static + * + * @example + * + * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); + */ + _createHmacHelper: function (hasher) { + return function (message, key) { + return new C_algo.HMAC.init(hasher, key).finalize(message); + }; + } + }); + + /** + * Algorithm namespace. + */ + var C_algo = C.algo = {}; + + return C; + }(Math)); + + + return CryptoJS; + +})); /***/ }), -/***/ "./src/frontend/js/addons/paging.js": -/*!******************************************!*\ - !*** ./src/frontend/js/addons/paging.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 214: +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ pagingComplete: function() { return /* binding */ pagingComplete; },\n/* harmony export */ pagingCreateParams: function() { return /* binding */ pagingCreateParams; }\n/* harmony export */ });\n/* harmony import */ var _modules_insertScript__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/insertScript */ \"./src/frontend/js/modules/insertScript.js\");\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction pagingCreateParams(alm) {\n var listing = alm.listing;\n alm.addons.paging = listing.dataset.paging === 'true';\n if (alm.addons.paging) {\n alm.addons.paging_init = true;\n alm.addons.paging_controls = listing.dataset.pagingControls === 'true';\n alm.addons.paging_show_at_most = listing.dataset.pagingShowAtMost ? parseInt(listing.dataset.pagingShowAtMost) : 6;\n alm.addons.paging_classes = listing.dataset.pagingClasses;\n alm.addons.paging_first_label = listing.dataset.pagingFirstLabel;\n alm.addons.paging_previous_label = listing.dataset.pagingPreviousLabel;\n alm.addons.paging_next_label = listing.dataset.pagingNextLabel;\n alm.addons.paging_last_label = listing.dataset.pagingLastLabel;\n alm.addons.paging_scroll = listing.dataset.pagingScroll ? listing.dataset.pagingScroll : false;\n alm.addons.paging_scrolltop = listing.dataset.pagingScrolltop ? parseInt(listing.dataset.pagingScrolltop) : 100;\n alm.addons.paging_container = listing.querySelector('.alm-paging-content');\n alm.pause = alm.addons.preloaded ? true : alm.pause; // If preloaded, pause ALM.\n }\n\n return alm;\n}\n\n/**\n * Function dispatched after paging content has been loaded.\n *\n * @param {Object} alm The alm object.\n * @param {boolean} alm_is_filtering Is ALM filtering.\n * @param {boolean} init Is first run.\n */\nfunction pagingComplete(alm) {\n var alm_is_filtering = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var main = alm.main,\n AjaxLoadMore = alm.AjaxLoadMore,\n last_loaded = alm.last_loaded;\n main.classList.remove('alm-loading');\n AjaxLoadMore.triggerAddons(alm);\n if (init) {\n if (typeof almPagingComplete === 'function') {\n window.almPagingComplete();\n }\n } else {\n // Dispatch almOnPagingComplete callback when not alm.init.\n if (typeof almOnPagingComplete === 'function') {\n window.almOnPagingComplete(alm); // Callback: Paging Add-on Complete.\n }\n }\n\n if (alm_is_filtering && alm.addons.filters && typeof almFiltersAddonComplete === 'function') {\n window.almFiltersAddonComplete(main); // Callback: Filters Add-on Complete\n }\n\n if (typeof almComplete === 'function') {\n window.almComplete(alm); // Callback: ALM Complete\n }\n\n // Trigger