Version Description
February 11, 2021 =
FIX - Fixed JS error in shortcode builder when a site was missing tags or categories.
FIX - Various admin UX/UX updates.
UPDATE - Various fixes and updates to support PHP 8+.
UPDATE - Added `['X-Requested-With']
Download this release
Release Info
Developer | dcooney |
Plugin | WordPress Infinite Scroll – Ajax Load More |
Version | 5.4.3 |
Comparing to | |
See all releases |
Code changes from version 5.4.2 to 5.4.3
- README.txt +104 -367
- admin/admin.php +6 -46
- admin/dist/css/admin.css +100 -78
- admin/dist/js/admin.js +1 -2
- admin/includes/cta/extend-theme-repeaters.php +0 -32
- admin/shortcode-builder/components/nextpage.php +42 -16
- admin/shortcode-builder/components/single-post.php +83 -34
- admin/shortcode-builder/js/shortcode-builder.js +26 -9
- admin/shortcode-builder/shortcode-builder.php +0 -22
- admin/src/js/admin.js +531 -0
- admin/src/js/libs/jquery.drops.js +52 -0
- admin/src/js/libs/jquery.tooltipster.min.js +1 -0
- admin/src/js/libs/select2.min.js +5 -0
- admin/src/js/modules/sticky.js +65 -0
- admin/src/scss/_variables.scss +16 -0
- admin/src/scss/admin.scss +3893 -0
- admin/src/scss/libs/select2.scss +349 -0
- admin/src/scss/libs/tooltipster.scss +276 -0
- admin/src/scss/partials/_alm-block.scss +49 -0
- admin/src/scss/partials/_alm-settings-feedback.scss +70 -0
- admin/src/scss/partials/_builder-option-toggle.scss +54 -0
- admin/src/scss/partials/_codemirror.scss +83 -0
- admin/src/scss/partials/_header.scss +55 -0
- admin/src/scss/partials/_pro-listing.scss +242 -0
- admin/src/scss/partials/_select2.scss +74 -0
- admin/src/scss/partials/_shortcode-builder.scss +204 -0
- admin/src/scss/partials/_sidebar.scss +25 -0
- admin/src/scss/partials/_template-tags.scss +36 -0
- admin/src/scss/partials/_woocommerce.scss +33 -0
- admin/views/repeater-templates.php +5 -4
- ajax-load-more.php +10 -14
- core/classes/class-alm-enqueue.php +1 -3
- core/classes/class-alm-noscript.php +21 -36
- core/classes/class-alm-shortcode.php +22 -13
- core/classes/includes/preloaded.php +3 -2
- core/dist/js/ajax-load-more.js +490 -211
- core/dist/js/ajax-load-more.min.js +2 -9
- core/functions.php +86 -204
- core/functions/deprecated.php +106 -0
- core/src/js/addons/cache.js +59 -0
- core/src/js/addons/elementor.js +340 -0
- core/src/js/addons/filters.js +163 -0
- core/src/js/addons/seo.js +149 -0
- core/src/js/addons/singleposts.js +29 -0
- core/src/js/addons/woocommerce.js +239 -0
- core/src/js/ajax-load-more.js +2577 -0
- core/src/js/helpers/almAppendChild.js +26 -0
- core/src/js/helpers/almAppendChildren.js +20 -0
- core/src/js/helpers/almDomParser.js +17 -0
- core/src/js/helpers/commentReplyFix.js +47 -0
- core/src/js/helpers/getCacheUrl.js +79 -0
- core/src/js/helpers/getParameterByName.js +10 -0
- core/src/js/helpers/getQueryVariable.js +19 -0
- core/src/js/helpers/helpers.js +138 -0
- core/src/js/helpers/polyfills.js +232 -0
- core/src/js/helpers/queryParams.js +223 -0
- core/src/js/helpers/srcsetPolyfill.js +31 -0
- core/src/js/helpers/stripEmptyNodes.js +24 -0
- core/src/js/helpers/tableWrap.js +17 -0
- core/src/js/modules/almDebug.js +19 -0
- core/src/js/modules/fadeIn.js +24 -0
- core/src/js/modules/fadeOut.js +17 -0
- core/src/js/modules/filtering.js +198 -0
- core/src/js/modules/getButtonURL.js +17 -0
- core/src/js/modules/getScrollPercentage.js +26 -0
- core/src/js/modules/insertScript.js +62 -0
- core/src/js/modules/loadImage.js +25 -0
- core/src/js/modules/loadItems.js +67 -0
- core/src/js/modules/masonry.js +176 -0
- core/src/js/modules/noResults.js +20 -0
- core/src/js/modules/placeholder.js +25 -0
- core/src/js/modules/resultsText.js +150 -0
- core/src/js/modules/setFocus.js +111 -0
- core/src/js/modules/setLocalizedVars.js +72 -0
- core/src/js/modules/tableofcontents.js +155 -0
- core/src/js/vendor/imagesloaded/imagesloaded.pkgd.min.js +6 -0
- core/src/scss/_listing.scss +162 -0
- core/src/scss/_loaders.scss +281 -0
- core/src/scss/_tableofcontents.scss +32 -0
- core/src/scss/_variables.scss +3 -0
- core/src/scss/ajax-load-more.scss +18 -0
- lang/ajax-load-more.pot +407 -361
README.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WordPress Infinite Scroll - Ajax Load More ===
|
2 |
Contributors: dcooney, connekthq
|
3 |
-
Donate
|
4 |
Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 5.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,7 +18,7 @@ Build complex custom WordPress queries with the Ajax Load More shortcode builder
|
|
18 |
|
19 |
Ajax Load More is compatible for endless scrolling with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.
|
20 |
|
21 |
-
[Get More Information](https://connekthq.com/plugins/ajax-load-more/)
|
22 |
|
23 |
### Features
|
24 |
|
@@ -30,23 +30,26 @@ Ajax Load More is compatible for endless scrolling with popular eCommerce plugin
|
|
30 |
- **Multisite Compatibility** - Manage repeater templates across all sites in your network.
|
31 |
- **Setting Panel** - Customize your version of Ajax Load More by updating various plugin settings.
|
32 |
|
33 |
-
Check out the **[
|
34 |
|
35 |
-
|
|
|
|
|
36 |
|
37 |
-
- **[Elementor](https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/)** - Infinite scroll Elementor Posts Widget content with Ajax Load More.
|
38 |
-
- **[WooCommerce](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)** - Infinite scroll WooCommerce products without updating a line of template code.
|
39 |
-
- **[Pro](https://connekthq.com/plugins/ajax-load-more/pro/)** - Access to all premium add-ons in a single installation.
|
40 |
-
- **[Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)** - The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.
|
41 |
-
- **[User Query](https://connekthq.com/plugins/ajax-load-more/add-ons/users/)** - Query and display a list of WordPress users by role using a `WP_User_Query` and Ajax Load More.
|
42 |
- **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
|
43 |
- **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
|
44 |
- **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
|
45 |
- **[Scroll Container](https://connekthq.com/plugins/ajax-load-more/examples/scroll-container/)** - Constraining infinite scroll to a parent container.
|
46 |
|
|
|
|
|
47 |
### Content Types
|
48 |
|
49 |
-
Ajax Load More can infinite scroll any content type WordPress offers - from blog posts to multipage content to WooCommerce products - Ajax Load More can handle it all.
|
50 |
|
51 |
Check out the examples below:
|
52 |
|
@@ -58,78 +61,33 @@ Check out the examples below:
|
|
58 |
- [Comments](http://examples.connekthq.com/alm-comments/example-post/) \*
|
59 |
- [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
|
60 |
|
61 |
-
_
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
-
|
78 |
-
|
79 |
-
|
80 |
-
- **taxonomy_relation** - The logical relationship between each taxonomy when there is more than one. (AND/OR). Default = ‘AND’
|
81 |
-
- **day** - Day of the week. Default = null
|
82 |
-
- **month** - Month of the year. Default = null
|
83 |
-
- **year** - Year of post. Default = null
|
84 |
-
- **taxonomy_operator** - Operator to compare Taxonomy Terms against (IN/NOT IN). Default = ‘IN’
|
85 |
-
- **meta_key** - Custom field key(name). Default = null
|
86 |
-
- **meta_value** - Custom field value. Default = null
|
87 |
-
- **meta_compare** - Operator to compare meta_key and meta_value against. Default = ‘IN’
|
88 |
-
- **meta_type** - Custom field type. Default = ‘CHAR’
|
89 |
-
- **meta_relation** - Used with multiple custom field entries (AND/OR). Default = ‘AND’
|
90 |
-
- **author** - Comma separated list of authors by id. Default = null
|
91 |
-
- **post\_\_in** - Comma separated list of post ID’s to include in query. Default = null
|
92 |
-
- **post\_\_not_in** - Comma separated list of post ID’s to exclude from query. Default = null
|
93 |
-
- **search** - Query search term (‘s’). Default = null
|
94 |
-
- **custom_args** - A semicolon separated list of value:pair arguments. e.g. tag_slug\_\_and:design,development; event_display:upcoming. Default = null
|
95 |
-
- **post_status** - Select status of the post. Default = 'publish'
|
96 |
-
- **order** - Display posts in ASC(ascending) or DESC(descending) order. Default = ‘DESC’
|
97 |
-
- **orderby** - Order posts by date, title, name, menu order, author, post ID or comment count. Default = ‘date’
|
98 |
-
- **offset** - Offset the initial query (number). Default = ’0′
|
99 |
-
- **posts_per_page** - Number of posts to load with each Ajax request. Default = ’5′
|
100 |
-
- **scroll** - Load more posts as the user scrolls the page (true/false). Default = ‘true’
|
101 |
-
- **scroll_distance** - The distance from the bottom of the screen to trigger the loading of posts while scrolling. Default = '150'
|
102 |
-
- **scroll_container** - Constrain Ajax Load More infinite scrolling to a parent container. Default = null
|
103 |
-
- **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
|
104 |
-
- **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
|
105 |
-
- **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
|
106 |
-
- **transition** - Choose a posts reveal transition (fade/masonry/none). Default = 'fade'
|
107 |
-
- **transition_container** - Display the Ajax Load More (.alm-reveal) loading container. Default = 'true'
|
108 |
-
- **transition_container_classes** - Add classes to the `.alm-reveal` transition div.
|
109 |
-
- **masonry_selector** - The target classname of each masonry item. Default = null
|
110 |
-
- **masonry_animation** - Select a loading transition type for Masonry items. (default/zoom-out/slide-up/slide-down/none). Default = default
|
111 |
-
- **masonry_horizontalorder** - Maintain horizontal order. Default = true
|
112 |
-
- **images_loaded** - Wait for all images to load before displaying ajax loaded content (true/false). Default = 'false'
|
113 |
-
- **destroy_after** - Remove ajax load more functionality after 'n' number of pages have been loaded. Default = null
|
114 |
-
- **progress_bar** - Display progress bar indicator at the top of the window while loading Ajax content. Default = 'false'
|
115 |
-
- **progress_bar_color** - Enter the hex color of the progress bar. Default = 'ed7070'
|
116 |
-
- **button_label** - The label text for Load More button. Default = 'Load More'
|
117 |
-
- **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
|
118 |
-
- **loading_style** - Select an Ajax loading style - you can choose between a Button or Infinite Scroll. Default = null
|
119 |
-
- **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
|
120 |
-
- **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
|
121 |
-
- **id** - A unique ID for the Ajax Load More instance.
|
122 |
-
- **nested** - Is this a nested Ajax Load More instance. Default = false
|
123 |
-
- **no_results_text** - Display text/html when zero results are returned in an Ajax Load More query. Default = null
|
124 |
-
- **placeholder** - Display a placeholder image while Ajax content is being loaded. Default = false
|
125 |
-
|
126 |
-
→ [See All Parameters](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-parameters/)
|
127 |
|
128 |
#### Example Ajax Load More Shortcode
|
129 |
|
130 |
-
[ajax_load_more post_type="post, portfolio"
|
131 |
|
132 |
-
|
|
|
|
|
133 |
|
134 |
- **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
|
135 |
- **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
|
@@ -154,97 +112,70 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
|
|
154 |
|
155 |
→ [See All Examples](https://connekthq.com/plugins/ajax-load-more/examples/)
|
156 |
|
157 |
-
The [Custom Repeater Add-On](
|
158 |
|
159 |
[youtube https://www.youtube.com/watch?v=EQ57i6dkOew]
|
160 |
|
|
|
|
|
161 |
### Add-ons
|
162 |
|
163 |
-
The following [add-ons](https://connekthq.com/plugins/ajax-load-more/add-ons/) are available to increase the functionality of Ajax Load More.
|
164 |
-
|
165 |
-
- **[Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)**: Improve website performance by caching the results of Ajax server requests.
|
166 |
-
- **[Call to Actions](https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)**: Extend Ajax Load More with advertisement and call to action content blocks.
|
167 |
-
- **[Comments](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)**: Load and display WordPress blog comments using the core Ajax Load More infinite scroll functionality.
|
168 |
-
- **[Custom Repeaters](https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/)**: Create, modify and delete repeater templates as you need them with absolutely zero restrictions.
|
169 |
-
- **[
|
170 |
-
- **[
|
171 |
-
- **[
|
172 |
-
- **[
|
173 |
-
- **[
|
174 |
-
- **[
|
175 |
-
- **[
|
176 |
-
- **[
|
177 |
-
- **[
|
178 |
-
- **[
|
|
|
|
|
|
|
179 |
|
180 |
### Extensions
|
181 |
|
182 |
-
The following [extensions](https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
|
183 |
|
184 |
-
- **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/)**: Display field type data with Ajax Load More.
|
185 |
-
- **[Relevanssi](https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)**: Display Relevanssi search results with Ajax Load More.
|
186 |
-
- **[REST API](https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/)**: Enable compatibility with the WordPress REST API.
|
187 |
-
- **[SearchWP](https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)**: Display SearchWP query results with Ajax Load More.
|
188 |
-
- **[Term Query](https://wordpress.org/plugins/ajax-load-more-for-terms/)**: Infinite scroll WordPress Terms.
|
189 |
|
190 |
### Callback Functions
|
191 |
|
192 |
-
|
193 |
-
|
194 |
-
**Complete** - The almComplete() function is triggered after every _successful_ ajax call made by Ajax Load More.
|
195 |
-
|
196 |
-
almComplete = function(alm){
|
197 |
-
// Your on complete code goes here
|
198 |
-
};
|
199 |
-
|
200 |
-
**Destroyed** - The almDestroyed() function is dispatched after the destroy_after shortcode parameter is triggered.
|
201 |
-
|
202 |
-
almDestroyed = function(alm){
|
203 |
-
console.log('"Ajax Load More functionality has been destroyed!');
|
204 |
-
};
|
205 |
-
|
206 |
-
**Done** - The almDone() function is triggered after all posts have been loaded.
|
207 |
-
|
208 |
-
almDone = function(alm){
|
209 |
-
console.log('All posts have been loaded!');
|
210 |
-
};
|
211 |
-
|
212 |
-
**Empty** - The almEmpty() function is triggered if there are zero results returned in the initial query.
|
213 |
-
|
214 |
-
almEmpty = function(alm){
|
215 |
-
console.log('Sorry, but we could not locate any posts that matched your criteria.');
|
216 |
-
};
|
217 |
|
218 |
-
|
219 |
-
|
220 |
-
almFilterComplete = function(){
|
221 |
-
console.log('Ajax Load More filter has completed!');
|
222 |
-
};
|
223 |
-
|
224 |
-
**URL Update** - The almUrlUpdate() function is triggered after a successful URL update (pushState) from the Single Post or the Search Engine Optimization add-on
|
225 |
-
|
226 |
-
almUrlUpdate = function(permalink, type){
|
227 |
-
console.log("URL updated to " + permalink + '- dispatched from the '+ type + ' add-on.');
|
228 |
-
};
|
229 |
|
230 |
---
|
231 |
|
232 |
-
→ [View All Callback Functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/)
|
233 |
-
|
234 |
### Filter Hooks
|
235 |
|
236 |
Ajax Load More has a variety of WordPress [filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/) in place that enable users to hook into Ajax Load More to insert or modify data.
|
237 |
|
238 |
→ [See All Filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/)
|
239 |
|
|
|
|
|
240 |
### Variables
|
241 |
|
242 |
Ajax Load More passes the following PHP **[variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/)** to each repeater template - these template variables can help you style and transform your repeater templates.
|
243 |
|
244 |
-
-
|
245 |
-
-
|
246 |
-
-
|
247 |
-
-
|
|
|
|
|
248 |
|
249 |
### Plugin Links
|
250 |
|
@@ -254,6 +185,8 @@ Ajax Load More passes the following PHP **[variables](https://connekthq.com/plug
|
|
254 |
- [Free Extensions](https://connekthq.com/plugins/ajax-load-more/extensions/)
|
255 |
- [Github](https://github.com/dcooney/wordpress-ajax-load-more/)
|
256 |
|
|
|
|
|
257 |
### Please Review Ajax Load More!
|
258 |
|
259 |
Your reviews make a big difference! Please consider taking the time to [review my plugin](https://wordpress.org/support/view/plugin-reviews/ajax-load-more). Your ratings and reviews help the plugin grow and provide the motivation needed to keep pushing it forward.
|
@@ -293,7 +226,7 @@ Repeater template data is saved into your WordPress database as well as written
|
|
293 |
= Can I use custom fields in a repeater? =
|
294 |
|
295 |
Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
|
296 |
-
global $post;
|
297 |
|
298 |
= Which browsers are supported? =
|
299 |
|
@@ -347,14 +280,29 @@ How to install Ajax Load More.
|
|
347 |
|
348 |
== Changelog ==
|
349 |
|
350 |
-
= 5.4.
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
|
359 |
= 5.4.1 - November 25, 2020 =
|
360 |
|
@@ -382,73 +330,6 @@ Ajax Load More no longer uses the `Numbers` pagination type, please follow the s
|
|
382 |
- NEW - Added new `alm_disable_noscript` filter to disable all `<noscript/>` tags generated by ALM. `add_filter( 'alm_disable_noscript', '__return_true' );`
|
383 |
- UPDATE - Updated [Pace.js](https://github.com/CodeByZach/pace) library that is used for progress bar functionality.
|
384 |
|
385 |
-
= 5.3.8 - September 10, 2020 =
|
386 |
-
|
387 |
-
** UPGRADE NOTICE **
|
388 |
-
ALM users with the WooCommerce add-on activated MUST update the add-on to version `1.0.2` when prompted.
|
389 |
-
|
390 |
-
- NEW - Added [Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/) support for the [Comments Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)
|
391 |
-
- NEW - Adding querystring variables to [Single Post add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/) URLs that allows users to perform tasks based on these values. Much like you can do with [ALM Variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/). e.g. http://website.com/post-title/?id=469&alm_page=2
|
392 |
-
- NEW - Added new `ajaxloadmore.reset` public JavaScript function that will reset Ajax Load More back to it's original state (page 1).
|
393 |
-
|
394 |
-
= 5.3.7 - July 31, 2020 =
|
395 |
-
|
396 |
-
** UPGRADE NOTICE **
|
397 |
-
ALM users who are using out of the box styling of Ajax Load More listing elements should be aware of the following update to the core plugin CSS.
|
398 |
-
|
399 |
-
The default Ajax Load More listing CSS has been updated for individual list items. The CSS now targets a `li.alm-item` element for styling.
|
400 |
-
Previously, the CSS referenced only the `<li />` element. Adding this classname to the `<li class="alm-item" />` will allow for easier overriding of styles.
|
401 |
-
I have also added default resposnive styles for users making use of this classname.
|
402 |
-
|
403 |
-
If you notice issues with your list styling, update your Repeater Template and add the `alm-item` classname to the `<li/>`.
|
404 |
-
|
405 |
-
** OTHER UPDATES **
|
406 |
-
|
407 |
-
- NEW - Adding responsive CSS styling for the default Repeater Template.
|
408 |
-
- NEW - Added new `button_done_label` parameter that allows for updating the button label after all posts have been loaded.
|
409 |
-
- NEW - Added custom Ajax Load More shortcode widget to the [Elementor](https://elementor.com/) page builder live edit mode.
|
410 |
-
- FIX - Fixed issue with placeholder image not be removed after `almDone` callback is fired.
|
411 |
-
- FIX - Fixed issue in Chrome scroll position issue that was introduced after a recent Chrome update.
|
412 |
-
|
413 |
-
= 5.3.6 - June 29, 2020 =
|
414 |
-
|
415 |
-
- NEW - Added support for Masonry `transition` and [Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) add-on - previously when using Masonry paging URLs would not update as users load additional pages.
|
416 |
-
This requires Filters 1.9.3
|
417 |
-
- FIX - Fixed issue with `Load More` not working after running a [custom filter](https://connekthq.com/plugins/ajax-load-more/docs/public-functions/#filter) when using Masonry `transition` .
|
418 |
-
- UPDATE - Updated Babel dependancy versions to (hopefully) resolve issues around IE11 `startsWith` and `endsWith` errors.
|
419 |
-
- UPDATE - Updated uninstall.php script to skip removal of Repeater Templates if the template directory has been changed via the `alm_repeater_path` hook.
|
420 |
-
|
421 |
-
= 5.3.5 - June 12, 2020 =
|
422 |
-
|
423 |
-
- UPDATE - Adding required functionality to support caching with Filters and WooCommerce add-ons.
|
424 |
-
|
425 |
-
= 5.3.4 - May 29, 2020 =
|
426 |
-
|
427 |
-
- NEW - Added required functionality for integrating for [Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/) and [WooCommerce])https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/0) add-ons.
|
428 |
-
- FIX - Fixed issue when using [Next Page](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/) and [Cache](https://connekthq.com/plugins/ajax-load-more/add-ons/cache/) add-ons together. When a user would hit a paged URL, infinite scroll would disable itself after the 2nd page load.
|
429 |
-
- FIX - Fixed issue with undefined `alm.localize` variables when Ajax Load More is loaded via Ajax itself.
|
430 |
-
- NEW - Adding [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/) compatibility.
|
431 |
-
|
432 |
-
= 5.3.3 - May 20, 2020 =
|
433 |
-
|
434 |
-
- FIX - Added fix for when using Masonry and Filters add-on. Filter would become inaccessible after the first first attempt.
|
435 |
-
- FIX - Added fix for new WooCommerce Add-on and SPA sites throwing an error about undefined variable.
|
436 |
-
- UPDATE - Updated a11y focus feature for users with `transition_container=false`. Focus will now be set on the newly added items.
|
437 |
-
|
438 |
-
= 5.3.2 - May 19, 2020 =
|
439 |
-
|
440 |
-
- SECURITY FIX - Added security fix for a possible authenticated SQL injection. Attacker needs to be authenticated, with edit_theme_options capability. (Read More)[https://wpvulndb.com/vulnerabilities/10230]
|
441 |
-
- FIX - Fix for accidental `print_r` left inside a WooCommerce function. Sorry!
|
442 |
-
|
443 |
-
= 5.3.1 - May 1, 2020 =
|
444 |
-
|
445 |
-
- NEW - Added support for creating paged URLs with the SEO add-on and Masonry.
|
446 |
-
- UPDATE - Improved accessiblity of element focus feature by implementing native browser support (`preventScroll`) for focusing on elements without scrolling after an Ajax load. There is still a slight jump on mobile safari and chrome for iOS. Hopefully these browsers will implement better native support for [preventScroll](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus)
|
447 |
-
- UPDATE - Removed `Top of Page` global ALM setting.
|
448 |
-
- FIX - Add accessibility fix for when using Masonry transition. New item is now auto focused after an Ajax load.
|
449 |
-
- FIX - Fixed issue with Destroy After not working correctly after being filtered.
|
450 |
-
- FIX - Fixed bug with CTA and Preloaded add-ons. If `cta="false"` was set Ajax Load More may still render the CTA is some cases.
|
451 |
-
- FIX- Fixed issue with custom Filtering and Masonry not appending items after a filter.
|
452 |
|
453 |
= 5.3.0 - April 22, 2020 =
|
454 |
|
@@ -469,96 +350,6 @@ If you notice issues with your list styling, update your Repeater Template and a
|
|
469 |
- UPDATE - Updated `.alm-listing` CSS styles to better integrate with WooCommerce.
|
470 |
- UPDATE - Added new Single Post [implementation](https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/#implementation) technique.
|
471 |
|
472 |
-
= 5.1.8 =- March 2, 2020 =
|
473 |
-
|
474 |
-
UPGRADE NOTICE
|
475 |
-
This release updates the default text for users who implemented [Results Text](https://connekthq.com/plugins/ajax-load-more/examples/results-text/).
|
476 |
-
[New variables](https://connekthq.com/plugins/ajax-load-more/docs/results-text/) have been added to this feature and the default text has changes from `Displaying {num} of {total}.` to `Viewing {post_count} of {total_posts} results.`.
|
477 |
-
If you wish to revert this update, you can with the `alm_display_results` [filter](https://connekthq.com/plugins/ajax-load-more/docs/results-text/#filter-hooks).
|
478 |
-
|
479 |
-
- NEW - Added rtl (right to left) support for the default ALM Repeater Template. Add `.rtl` to the container to align items right to left. Use `css_classes="rtl"` in a shortcode or globally via ALM settings.
|
480 |
-
- NEW - Added `archive="true"` parameter that will automatically pull content on archive pages - taxonomy, category, tag, date (year, month, day) and authors are currently supported. [View Docs](https://connekthq.com/plugins/ajax-load-more/docs/archives/)
|
481 |
-
- NEW - Added `woocommerce="true"` parameter that will automatically pull product content on woocommerce pages - [docs](https://connekthq.com/plugins/ajax-load-more/docs/woocommerce/) coming soon on this new integration.
|
482 |
-
- UPDATE - Updated [Results Text](https://connekthq.com/plugins/ajax-load-more/docs/results-text/) to include post_count and total_posts.
|
483 |
-
- UPDATE - Updated time of filter transitions. In some cases users were reporting issues of double clicks causing no results to be returned.
|
484 |
-
- FIX - Fixed almComplete callback not firing when zero results are returned in Ajax.
|
485 |
-
- FIX - Fixed issue with JavaScript not triggering in Repeater Templates used with Paging add-on.
|
486 |
-
|
487 |
-
= 5.1.7.2 - January 25, 2020 =
|
488 |
-
|
489 |
-
- NEW - Added support for percentage values in `scroll_distance`. Users can now trigger Ajax requests based on the percentage height of their browsers. e.g. `scroll_distance="-50%"`
|
490 |
-
- NEW - Added `alm_query_after_{id}` filter to allow for modification of the returned query.
|
491 |
-
- NEW - Added new `alm_id` parameter for the `WP_Query` that allows for easier access of query args using `pre_get_post` using the Ajax Load More ID.
|
492 |
-
|
493 |
-
```
|
494 |
-
add_action( 'pre_get_posts', 'my_custom_category' );
|
495 |
-
function my_custom_category( $query ) {
|
496 |
-
if ( isset($query->query['alm_id']) && $query->query['alm_id'] === 'preloaded' ) {
|
497 |
-
$query->set( 'category_name', 'design' );
|
498 |
-
}
|
499 |
-
}
|
500 |
-
```
|
501 |
-
|
502 |
-
- FIX - Added fix for Masonry functionality triggering callbacks to early.
|
503 |
-
- FIX - Fixed issue with placeholder value in Shortcode Builder.
|
504 |
-
- UPDATE - Updated the look and feel of the Shortcode Builder.
|
505 |
-
|
506 |
-
= 5.1.7.1 - December 9, 2019 =
|
507 |
-
|
508 |
-
- FIX - Hotfix to remove JavaSscript error/warning message for Single Posts and Next Page add-on users.
|
509 |
-
|
510 |
-
= 5.1.7 - December 6, 2019 =
|
511 |
-
|
512 |
-
- NEW - Added support for multiple instances on ALM Masonry on the same page.
|
513 |
-
- NEW - Added `CTRL+S` and `CMD+S` support for saving Repeater Templates in the Ajax Load More admin :)
|
514 |
-
- NEW - Added built-in support for Elementor using the `elementor="true"` shortcode parameter. [View Blog Post](https://connekthq.com/elementor-infinite-scrolling/)
|
515 |
-
- FIX - Fixed issue where loading `placeholder` would remain on screen if no results were found.
|
516 |
-
- FIX - Added fix for Safari desktop moving browser window when an instance of ALM is filtered.
|
517 |
-
- FIX - Fixed error in PHP 7.2.2 in the `plugin_action_links_` filter related to a string array.
|
518 |
-
- UPDATE - Added functionality to get the current post ID is not specified in the shortcode for Single Posts and Next page add-ons.
|
519 |
-
- UPDATE - Updated Code Mirror code editor for Repeater Templates.
|
520 |
-
- UPDATE - Improved admin UI and UX.
|
521 |
-
|
522 |
-
= 5.1.6.1 - November 19, 2019 =
|
523 |
-
|
524 |
-
- NEW - Added new `placeholder` parameter that allows users to display a placeholder image while Ajax content is being loaded. [View Example](https://connekthq.com/plugins/ajax-load-more/examples/placeholder/).
|
525 |
-
- FIX - Fixed issue with deep linking URLs in the filters add-on not sending user to correct location on the page.
|
526 |
-
- FIX - Fixed issue with HTML elements in `no_results_text` being rendered as plain text.
|
527 |
-
- UPDATE - Updated admin CSS to match WordPress 5.3.
|
528 |
-
- UPDATE - Improved license expiration notices and renewal links.
|
529 |
-
- UPDATE - Updated `alm_canonical_url` filter. This filter now requires the ALM ID to be added into the filter. `alm_canonical_url_{id}` like the other filter hooks.
|
530 |
-
|
531 |
-
= 5.1.6 - October 22, 2019 =
|
532 |
-
|
533 |
-
- NEW - Added support for ACF Sub Fields in the [ACF extension](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/).
|
534 |
-
- FIX - Fixed issue with ALM not starting if the global settings were not saved previously 😔.
|
535 |
-
- UPDATE - Improved the functionality of the [alm_debug](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug) filter hook. Query args are now displayed in the browser console under it's own entry.
|
536 |
-
|
537 |
-
= 5.1.5 - October 1, 2019 =
|
538 |
-
|
539 |
-
- NEW - Added new `loading_style` parameter that allows users to override the global button style at the shortcode level.
|
540 |
-
- NEW - Added mousewheel detection, 'end' and 'page down' keyup listeners for loading posts. In some rare cases users would not be able to load posts unless the user scroll back up the page. This will hopefully solve that issue.
|
541 |
-
- UPDATE - Improved plugin accessibility and focus states.
|
542 |
-
- UPDATE - Improved admin UI of license updates and expiration notifications.
|
543 |
-
- FIX - Fixed issue with `no_results_text` not displaying for some users.
|
544 |
-
- FIX - Fixed issue with table data not rendering correctly in Ajax results.
|
545 |
-
- FIX - Added fix for `meta_value` not working if set to `0` in a Meta_Query.
|
546 |
-
- FIX - Fixed issue with focus not being set on Ajax Load More after a filter method.
|
547 |
-
- FIX - Fixed posisble issue with ALM continuously loading posts when using SEO/Next Page or Single Posts addon.
|
548 |
-
- FIX - Fixed issue in ALM admin with filename adding single quotes when exporting a Repeater Template from inside the ALM admin.
|
549 |
-
|
550 |
-
= 5.1.4 - August 15, 2019 =
|
551 |
-
|
552 |
-
- NEW - Added No Results Text(`no_results_text`) parameter to display text/html when zero results are returned in an Ajax Load More query.
|
553 |
-
- NEW - Added `almOnChange` callback dispatch at the beginning of every Ajax Load More query.
|
554 |
-
- NEW - Added `almOnLoad` callback dispatched when Ajax Load More initiates.
|
555 |
-
|
556 |
-
= 5.1.3 - August 6, 2019 =
|
557 |
-
|
558 |
-
- FIX - Fixed issue with tag archives when using WPML or Polylang translation plugins.
|
559 |
-
- FIX - Fixed issue with deep link pagination in the [SEO](https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/) and [Filters](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/) addon when adding HTML comments or empty whitespace to the start/end of Repeater Template
|
560 |
-
- UPDATE - Updated SEO `<noscript/>` markup to include First and Last pagination links for search crawlers.
|
561 |
-
- UPDATE - Admin UI/UX updates.
|
562 |
|
563 |
= 5.1.2 - June 24, 2019 =
|
564 |
|
@@ -566,18 +357,6 @@ function my_custom_category( $query ) {
|
|
566 |
- FIX - Fixed issue with element scroll and auto-focus in iOS and Android devices.
|
567 |
- UPDATE - Removing REST API code introduced in 5.1 that caused issues for some users. Please make sure you clear your site cache and any combined JavaScript.
|
568 |
|
569 |
-
= 5.1.1 - May 29, 2019 =
|
570 |
-
|
571 |
-
- NEW - Added new `ALM_DISABLE_REPEATER_TEMPLATES` PHP constant that prevents ALM from creating the default Repeater Template or storing template data in your database. To use this feature, add the following to your `wp-config.php` in the root of your site: `define('ALM_DISABLE_REPEATER_TEMPLATES', true);`.
|
572 |
-
- UPDATE - Removed REST API settings from admin/admin.php and ajax-load-more.php.
|
573 |
-
- UPDATE - Better error reporting for failed Ajax requests.
|
574 |
-
- UPDATE - Updated the scroll trigger from the Load More `<button class="button"/>` to the button wrap `<div class="alm-btn-wrap/>`. This is because many users were setting `display: none;` on the button directly and that caused loading issues.
|
575 |
-
- FIX - FIxed issue with ALM not maintaining past page scroll position when a user hits the browser back button.
|
576 |
-
- FIX - Security fix for \$querystring URLs in Preloaded content.
|
577 |
-
- FIX - Fixed issue with nested `.alm-preloaded` div elements with Filters and Preloaded addon.
|
578 |
-
- FIX - Fixed issue with alm_render function throwing non static function warning message.
|
579 |
-
- FIX - Fixed JS console warning message abut duplicate `babel/polyfill scripts` for users running other versions of Babel.
|
580 |
-
- FIX - Fixed `srcSet` issue with paged results in Filters and SEO addon when using Safari browser.
|
581 |
|
582 |
= 5.1.0.1 - May 7, 2019 =
|
583 |
|
@@ -604,58 +383,16 @@ What's New in 5.1.0
|
|
604 |
- FIX - Fixed issue with `meta_value` shortcode parameter. Passing zero as a value was returning false and not the number.
|
605 |
- FIX - Fixed IE11 issue where filtering was not working with camelCase data attributes.
|
606 |
|
607 |
-
= 5.0.2 - April 4, 2019 =
|
608 |
-
|
609 |
-
- NEW - `alm_shortcode_defaults` filter.
|
610 |
-
- NEW - `Added`alm_settings` filter.
|
611 |
-
- FIX - Added custom Safari polyfill for srcset img height issue with Masonry and ImagesLoaded.
|
612 |
-
- FIX - Fixed issue with encoding URLs in HTTP Ajax request.
|
613 |
-
- FIX - Fix for undefined labels in Shortcode Builder.
|
614 |
-
- FIX - Fixed issue with HTML comments in repeater templates causing issues with Masonry.
|
615 |
-
|
616 |
-
= 5.0.1 - March 13, 2019 =
|
617 |
-
|
618 |
-
- FIX - Fixed issue with Masonry not working when empty whitespace was present in a Repeater Template.
|
619 |
-
- FIX - Fixed issue with innerHTML and appendChild not trigger JavaScript present in Repeater Templates.
|
620 |
|
621 |
= 5.0.0 - March 8, 2019 =
|
|
|
622 |
|
623 |
-
MAJOR UPDATE NOTICE
|
624 |
-
All users running the Filters, SEO, Paging or Next Page add-ons MUST also update each of these plugins when running this 5.0 update.
|
625 |
-
Failing to upgrade the add-ons may result in JavaScript errors or broken functionality. It's always best to also backup your site prior to updating.
|
626 |
-
|
627 |
-
If you are using one of the add-ons listed above and you do not see a plugin update notification, please hold off on updating until prompted. Or try installing [Force Plugin Updates Check](https://wordpress.org/plugins/force-plugin-updates-check/) to force the plugin cache to clear.
|
628 |
-
|
629 |
-
Callback Functions
|
630 |
-
ALL [callback](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/) functions have been updated to remove legacy jQuery `$.fn()` prototype properties.
|
631 |
-
Users are encouraged to update their current callbacks to the new methods, but for now can autoload a helper JS file that has these legacy callbacks in place.
|
632 |
-
To maintain the legacy callbacks, visit Ajax Load More > Settings > Legacy Callbacks to enable the library.
|
633 |
-
|
634 |
-
What's New in 5.0.0
|
635 |
-
|
636 |
-
- NEW - Removing jQuery dependancy. Ajax Load More and all the add-ons plugins have been completely rewritten in Vanilla JS and ES6. 🎉
|
637 |
-
- NEW - Added [ImagesLoaded](https://imagesloaded.desandro.com/) library in place of WaitForImages for `images_loaded` param.
|
638 |
-
- NEW - Nested Ajax Load More instances will now auto-trigger on load.
|
639 |
-
- UPDATE - Updated build process from Gulp to Webpack.
|
640 |
-
- UPDATE - Added JS polyfills for various IE 11, 10 and 9 issues.
|
641 |
-
- UPDATE - Added ALM ID to `alm_nextpage_query` for Next page users.
|
642 |
-
- Fix - Fixed issue with `querySelector` on button element when using nested ALM instances.
|
643 |
-
- FIX - Removed duplicate `transition_container_classes` when using Paging add-on.
|
644 |
-
- FIX - Fixed issue with `alm-listing` container causing an error with the Comments addon.
|
645 |
-
- FIX - Added fix for `destroy_after` not triggered button `.done` class.
|
646 |
-
- Fix - Various JS other fixes and UX improvements.
|
647 |
|
648 |
= 4.0 - November 5, 2018 =
|
649 |
-
|
650 |
-
- NEW - Introducing [Ajax Load More Pro](https://connekthq.com/plugins/ajax-load-more/pro/)! Access to every Ajax Load More add-on in a single installation.
|
651 |
-
- NEW - Adding `category__and` and `tag__and` support for querying categories and tags.
|
652 |
-
- UPDATE - Adding fix for permission error on repeater template directory by replacing `mkdir()` with WordPress core function `wp_mkdir_p`.
|
653 |
-
- FIX - Fixed issue with Filters onComplete functions triggering before Ajax results were rendered on the screen.
|
654 |
-
- FIX - Adding fix for `alm_get_canonical_url` function when getting URLs of child category and tag archives.
|
655 |
-
|
656 |
...
|
657 |
|
658 |
-
|
|
|
659 |
|
660 |
- Ajax Load More
|
661 |
|
1 |
=== WordPress Infinite Scroll - Ajax Load More ===
|
2 |
Contributors: dcooney, connekthq
|
3 |
+
Donate: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 5.4.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
|
19 |
Ajax Load More is compatible for endless scrolling with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.
|
20 |
|
21 |
+
→ [Get More Information](https://connekthq.com/plugins/ajax-load-more/)
|
22 |
|
23 |
### Features
|
24 |
|
30 |
- **Multisite Compatibility** - Manage repeater templates across all sites in your network.
|
31 |
- **Setting Panel** - Customize your version of Ajax Load More by updating various plugin settings.
|
32 |
|
33 |
+
Check out the **[website](https://connekthq.com/plugins/ajax-load-more/)** for more information on the features and functionality of Ajax Load More.
|
34 |
|
35 |
+
---
|
36 |
+
|
37 |
+
### What's New
|
38 |
|
39 |
+
- **[Elementor Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/)** - Infinite scroll Elementor Posts Widget and WooCommerce widget content with Ajax Load More.
|
40 |
+
- **[WooCommerce Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)** - Infinite scroll WooCommerce products without updating a line of template code.
|
41 |
+
- **[Pro Bundle](https://connekthq.com/plugins/ajax-load-more/pro/)** - Access to all premium Ajax Load More add-ons in a single installation.
|
42 |
+
- **[Filters Add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)** - The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.
|
|
|
43 |
- **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Compatibility and integration added for infinite scrolling Flexible Content, Gallery, Relationship and Repeater fields for Advanced Custom Fields.
|
44 |
- **[Masonry](https://connekthq.com/plugins/ajax-load-more/examples/masonry/)** - Built-in support and functionality for Masonry layouts.
|
45 |
- **[Progress Bars](https://connekthq.com/plugins/ajax-load-more/examples/progress-bar/)** - Display a Progress Bar load indicator with each Ajax request.
|
46 |
- **[Scroll Container](https://connekthq.com/plugins/ajax-load-more/examples/scroll-container/)** - Constraining infinite scroll to a parent container.
|
47 |
|
48 |
+
---
|
49 |
+
|
50 |
### Content Types
|
51 |
|
52 |
+
Ajax Load More can infinite scroll _almost_ any content type WordPress offers - from blog posts to multipage content to WooCommerce products - Ajax Load More can handle it all.
|
53 |
|
54 |
Check out the examples below:
|
55 |
|
61 |
- [Comments](http://examples.connekthq.com/alm-comments/example-post/) \*
|
62 |
- [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
|
63 |
|
64 |
+
_*Add-on required_
|
65 |
+
|
66 |
+
---
|
67 |
+
|
68 |
+
### Parameters
|
69 |
+
|
70 |
+
Ajax Load More accepts a variety of query and styling parameters that are passed to WordPress via shortcode or [PHP function](https://connekthq.com/plugins/ajax-load-more/docs/implementation-methods).
|
71 |
+
|
72 |
+
These parameters allow you to customize the content of your infinite scroll by selecting query parameters such as Post Types, Taxonomies, Categories, Tags, etc… you can also control interactive properties such as button labels, scrolling options and transition styles.
|
73 |
+
|
74 |
+
→ [View Parameters](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-parameters/)
|
75 |
+
|
76 |
+
---
|
77 |
+
|
78 |
+
### Shortcode Builder
|
79 |
+
|
80 |
+
The Ajax Load More [Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-builder/) provides an intuitive and easy-to-use admin interface that transforms complex WordPress queries into manageable shortcodes.
|
81 |
+
|
82 |
+
→ [View Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/docs/shortcode-builder/)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
#### Example Ajax Load More Shortcode
|
85 |
|
86 |
+
[ajax_load_more post_type="post, portfolio" posts_per_page="6" button_label="Load More"]
|
87 |
|
88 |
+
---
|
89 |
+
|
90 |
+
#### Examples & Demos
|
91 |
|
92 |
- **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling.
|
93 |
- **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)** - Infinite scroll Advanced Custom Fields data with Ajax Load More.
|
112 |
|
113 |
→ [See All Examples](https://connekthq.com/plugins/ajax-load-more/examples/)
|
114 |
|
115 |
+
**Note**: The [Custom Repeater Add-On](;;;AllExampleshttpsAllExampleshttpsAllExampleshttpshttps://connekthq.com/plugins/ajax-load-more/custom-repeaters/) has been installed for use on each of our product demos.
|
116 |
|
117 |
[youtube https://www.youtube.com/watch?v=EQ57i6dkOew]
|
118 |
|
119 |
+
---
|
120 |
+
|
121 |
### Add-ons
|
122 |
|
123 |
+
The following [add-ons](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/) are available to increase the functionality of Ajax Load More.
|
124 |
+
|
125 |
+
- **[Cache](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/cache/)**: Improve website performance by caching the results of Ajax server requests.
|
126 |
+
- **[Call to Actions](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)**: Extend Ajax Load More with advertisement and call to action content blocks.
|
127 |
+
- **[Comments](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)**: Load and display WordPress blog comments using the core Ajax Load More infinite scroll functionality.
|
128 |
+
- **[Custom Repeaters](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/)**: Create, modify and delete repeater templates as you need them with absolutely zero restrictions.
|
129 |
+
- **[Elementor](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/elementor/)**: Add infinite scroll or load more to your Elementor Posts and WooCommerce listing widgets with Ajax Load More and the intuitive Elementor Widget Connector.
|
130 |
+
- **[Filters](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/filters/)**: Front-end and admin functionality for creating, managing and displaying Ajax Load More filters.
|
131 |
+
- **[Layouts](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/)**: Predefined responsive layouts for Ajax Load More repeater templates.
|
132 |
+
- **[Next Page](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/)**: Infinite scroll multipage WordPress content with Ajax Load More and the Next Page add-on.
|
133 |
+
- **[Paging](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/paging/)**: Replace the default lazy load/infinite scroll functionality of Ajax Load More with a numbered navigation system.
|
134 |
+
- **[Preloaded](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)**: Load an initial set of posts before sending any Ajax requests to your server.
|
135 |
+
- **[SEO](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/)**: Generate unique paging URLs with each Ajax Load More query.
|
136 |
+
- **[Single Post](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/single-post/)**: Enable infinite scrolling of single posts on your WordPress post templates.
|
137 |
+
- **[Theme Repeaters](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/)**: Manage Ajax Load More repeater templates from within your current theme directory.
|
138 |
+
- **[Users](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/users/)**: Lazy loading WordPress Users with Ajax Load More.
|
139 |
+
- **[WooCommerce](;;;https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/)**: Infinite scroll WooCommerce products with Ajax Load More.
|
140 |
+
|
141 |
+
---
|
142 |
|
143 |
### Extensions
|
144 |
|
145 |
+
The following free [extensions](;;;https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
|
146 |
|
147 |
+
- **[Advanced Custom Fields](;;;https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/)**: Display field type data with Ajax Load More.
|
148 |
+
- **[Relevanssi](;;;https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)**: Display Relevanssi search results with Ajax Load More.
|
149 |
+
- **[REST API](;;;https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/)**: Enable compatibility with the WordPress REST API.
|
150 |
+
- **[SearchWP](;;;https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)**: Display SearchWP query results with Ajax Load More.
|
151 |
+
- **[Term Query](;;;https://wordpress.org/plugins/ajax-load-more-for-terms/)**: Infinite scroll WordPress Terms.
|
152 |
|
153 |
### Callback Functions
|
154 |
|
155 |
+
Ajax Load More dispatches callbacks during various stages in the plugins lifecycle. Callback functions are dispatched directly from core Ajax Load More or one of the various add-ons.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
→ [View All Callback Functions](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
---
|
160 |
|
|
|
|
|
161 |
### Filter Hooks
|
162 |
|
163 |
Ajax Load More has a variety of WordPress [filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/) in place that enable users to hook into Ajax Load More to insert or modify data.
|
164 |
|
165 |
→ [See All Filters](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/)
|
166 |
|
167 |
+
---
|
168 |
+
|
169 |
### Variables
|
170 |
|
171 |
Ajax Load More passes the following PHP **[variables](https://connekthq.com/plugins/ajax-load-more/docs/variables/)** to each repeater template - these template variables can help you style and transform your repeater templates.
|
172 |
|
173 |
+
- **$alm_current** - Returns the current item number in the current Ajax Load More loop and will reset to zero with every 'Load More' action.
|
174 |
+
- **$alm_page** - Returns the current page number.
|
175 |
+
- **$alm_item** - Returns the current item number within your loop.
|
176 |
+
- **$alm_found_posts** - Returns the total number of posts found within the entire WordPress query.
|
177 |
+
|
178 |
+
---
|
179 |
|
180 |
### Plugin Links
|
181 |
|
185 |
- [Free Extensions](https://connekthq.com/plugins/ajax-load-more/extensions/)
|
186 |
- [Github](https://github.com/dcooney/wordpress-ajax-load-more/)
|
187 |
|
188 |
+
---
|
189 |
+
|
190 |
### Please Review Ajax Load More!
|
191 |
|
192 |
Your reviews make a big difference! Please consider taking the time to [review my plugin](https://wordpress.org/support/view/plugin-reviews/ajax-load-more). Your ratings and reviews help the plugin grow and provide the motivation needed to keep pushing it forward.
|
226 |
= Can I use custom fields in a repeater? =
|
227 |
|
228 |
Yes, but you will need to define $post at the top of the repeater before requesting your custom fields. Like so:
|
229 |
+
global $post;
|
230 |
|
231 |
= Which browsers are supported? =
|
232 |
|
280 |
|
281 |
== Changelog ==
|
282 |
|
283 |
+
= 5.4.3 - February 11, 2021 =
|
284 |
+
|
285 |
+
- FIX - Fixed JS error in shortcode builder when a site was missing tags or categories.
|
286 |
+
- FIX - Various admin UX/UX updates.
|
287 |
+
- UPDATE - Various fixes and updates to support PHP 8+.
|
288 |
+
- UPDATE - Added `['X-Requested-With'] = 'XMLHttpRequest'` headers to each Ajax request so the server side functions can determine the type of request.
|
289 |
+
- UPDATE - Updated `axios` library to latest version.
|
290 |
+
- UPDATE - Varius admin updates.
|
291 |
+
|
292 |
+
= 5.4.2.1 - January 3, 2021 =
|
293 |
+
|
294 |
+
- HOTFIX - Fixed issue with non-functioning Shortcode Builder on sites without `tags` or `categories` present.
|
295 |
+
|
296 |
+
= 5.4.2 - January 3, 2021 =
|
297 |
+
|
298 |
+
- NEW - Added new `vars` parameter that allows for passing data into Hooks and Repeater Templates.
|
299 |
+
Variables can accessed in Repeater Templates by accessing the `$args` array. This will pull in all query and variable parameters into an array.
|
300 |
+
`[ajax_load_more vars="var1:The value of var1 value;var2:The value for #2"]`
|
301 |
+
`echo $args['alm_vars'];` // Prints an array of key value pairs. See docs for more info.
|
302 |
+
- UPDATE - Various admin UI/UX updates and layout improvements.
|
303 |
+
- FIX - Fixed issue with Single Posts add-on custom query returning all posts if the query was empty.
|
304 |
+
- FIX - Fixed issue with height of Ajax Load More when filtering with Masonry and zero results are returned.
|
305 |
+
- FIX - Fixed issue in Shortcode builder caused by updated Select2 JS.
|
306 |
|
307 |
= 5.4.1 - November 25, 2020 =
|
308 |
|
330 |
- NEW - Added new `alm_disable_noscript` filter to disable all `<noscript/>` tags generated by ALM. `add_filter( 'alm_disable_noscript', '__return_true' );`
|
331 |
- UPDATE - Updated [Pace.js](https://github.com/CodeByZach/pace) library that is used for progress bar functionality.
|
332 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
|
334 |
= 5.3.0 - April 22, 2020 =
|
335 |
|
350 |
- UPDATE - Updated `.alm-listing` CSS styles to better integrate with WooCommerce.
|
351 |
- UPDATE - Added new Single Post [implementation](https://connekthq.com/plugins/ajax-load-more/add-ons/single-posts/#implementation) technique.
|
352 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
|
354 |
= 5.1.2 - June 24, 2019 =
|
355 |
|
357 |
- FIX - Fixed issue with element scroll and auto-focus in iOS and Android devices.
|
358 |
- UPDATE - Removing REST API code introduced in 5.1 that caused issues for some users. Please make sure you clear your site cache and any combined JavaScript.
|
359 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
= 5.1.0.1 - May 7, 2019 =
|
362 |
|
383 |
- FIX - Fixed issue with `meta_value` shortcode parameter. Passing zero as a value was returning false and not the number.
|
384 |
- FIX - Fixed IE11 issue where filtering was not working with camelCase data attributes.
|
385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
|
387 |
= 5.0.0 - March 8, 2019 =
|
388 |
+
...
|
389 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
|
391 |
= 4.0 - November 5, 2018 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
...
|
393 |
|
394 |
+
|
395 |
+
= 2.0 - June 20, 2014 =
|
396 |
|
397 |
- Ajax Load More
|
398 |
|
admin/admin.php
CHANGED
@@ -134,7 +134,7 @@ function alm_plugin_row( $plugin_name ) {
|
|
134 |
*/
|
135 |
function alm_render_transient_notification() {
|
136 |
if ( ! has_action( 'alm_pro_installed' ) ) {
|
137 |
-
$msg = '
|
138 |
alm_transient_notification( $msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true );
|
139 |
}
|
140 |
}
|
@@ -727,12 +727,10 @@ function alm_admin_menu() {
|
|
727 |
'alm_licenses_page'
|
728 |
);
|
729 |
|
730 |
-
|
731 |
$before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
|
732 |
$after_link = '</span>';
|
733 |
$style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
|
734 |
|
735 |
-
|
736 |
// Pro
|
737 |
if(has_action('alm_pro_installed')){
|
738 |
$alm_pro_page = add_submenu_page(
|
@@ -754,7 +752,6 @@ function alm_admin_menu() {
|
|
754 |
);
|
755 |
}
|
756 |
|
757 |
-
|
758 |
// Cache
|
759 |
if(has_action('alm_cache_installed')){
|
760 |
$alm_cache_page = add_submenu_page(
|
@@ -770,7 +767,6 @@ function alm_admin_menu() {
|
|
770 |
add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
|
771 |
}
|
772 |
|
773 |
-
|
774 |
// Filters
|
775 |
if(has_action('alm_filters_installed')){
|
776 |
|
@@ -791,7 +787,6 @@ function alm_admin_menu() {
|
|
791 |
add_action( 'load-' . $alm_filters_page, 'alm_set_admin_nonce' );
|
792 |
}
|
793 |
|
794 |
-
|
795 |
// WooCommerce
|
796 |
if(has_action('alm_woocommerce_installed') && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option('active_plugins')))){
|
797 |
|
@@ -841,12 +836,8 @@ function alm_admin_menu() {
|
|
841 |
|
842 |
}
|
843 |
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
/*
|
848 |
-
*
|
849 |
-
* Settings page
|
850 |
*
|
851 |
* @since 2.0.0
|
852 |
*/
|
@@ -855,10 +846,7 @@ function alm_settings_page(){
|
|
855 |
include_once( ALM_PATH . 'admin/views/settings.php');
|
856 |
}
|
857 |
|
858 |
-
|
859 |
-
|
860 |
/*
|
861 |
-
* alm_repeater_page
|
862 |
* Custom Repeaters
|
863 |
*
|
864 |
* @since 2.0.0
|
@@ -1301,8 +1289,6 @@ function alm_get_tax_terms(){
|
|
1301 |
}
|
1302 |
}
|
1303 |
|
1304 |
-
|
1305 |
-
|
1306 |
/*
|
1307 |
* alm_layouts_dismiss
|
1308 |
* Dismiss Add Layouts CTA in repeater templates.
|
@@ -1324,8 +1310,6 @@ function alm_layouts_dismiss(){
|
|
1324 |
}
|
1325 |
}
|
1326 |
|
1327 |
-
|
1328 |
-
|
1329 |
/*
|
1330 |
* alm_dismiss_sharing
|
1331 |
* Dismiss sharing widget on plugin settings page.
|
@@ -1349,8 +1333,6 @@ function alm_dismiss_sharing(){
|
|
1349 |
}
|
1350 |
}
|
1351 |
|
1352 |
-
|
1353 |
-
|
1354 |
/*
|
1355 |
* alm_filter_admin_footer_text
|
1356 |
* Filter the WP Admin footer text only on ALM pages
|
@@ -1371,8 +1353,6 @@ function alm_filter_admin_footer_text( $text ) {
|
|
1371 |
}
|
1372 |
}
|
1373 |
|
1374 |
-
|
1375 |
-
|
1376 |
/*
|
1377 |
* admin_init
|
1378 |
* Initiate the plugin, create our setting variables.
|
@@ -1495,14 +1475,6 @@ function alm_admin_init(){
|
|
1495 |
'alm_admin_settings'
|
1496 |
);
|
1497 |
|
1498 |
-
// add_settings_field( // Hide btn
|
1499 |
-
// '_alm_hide_btn',
|
1500 |
-
// __('Editor Button', 'ajax-load-more' ),
|
1501 |
-
// 'alm_hide_btn_callback',
|
1502 |
-
// 'ajax-load-more',
|
1503 |
-
// 'alm_admin_settings'
|
1504 |
-
// );
|
1505 |
-
|
1506 |
add_settings_field( // Display error notices
|
1507 |
'_alm_error_notices',
|
1508 |
__('Error Notices', 'ajax-load-more' ),
|
@@ -1511,79 +1483,67 @@ function alm_admin_init(){
|
|
1511 |
'alm_admin_settings'
|
1512 |
);
|
1513 |
|
1514 |
-
|
1515 |
// CACHE
|
1516 |
if(has_action('alm_cache_settings')){
|
1517 |
do_action('alm_cache_settings');
|
1518 |
}
|
1519 |
|
1520 |
-
|
1521 |
// CUSTOM REPEATERS
|
1522 |
if(has_action('alm_unlimited_settings')){
|
1523 |
do_action('alm_unlimited_settings');
|
1524 |
}
|
1525 |
|
1526 |
-
|
1527 |
// FILTERS
|
1528 |
if(has_action('alm_filters_settings')){
|
1529 |
do_action('alm_filters_settings');
|
1530 |
}
|
1531 |
|
1532 |
-
|
1533 |
// LAYOUTS
|
1534 |
if(has_action('alm_layouts_settings')){
|
1535 |
do_action('alm_layouts_settings');
|
1536 |
}
|
1537 |
|
1538 |
-
|
1539 |
// PAGINATION
|
1540 |
if(has_action('alm_paging_settings')){
|
1541 |
do_action('alm_paging_settings');
|
1542 |
}
|
1543 |
|
1544 |
-
|
1545 |
// PRELOADED
|
1546 |
if(has_action('alm_preloaded_settings')){
|
1547 |
do_action('alm_preloaded_settings');
|
1548 |
}
|
1549 |
|
1550 |
-
|
1551 |
// REST API
|
1552 |
if(has_action('alm_rest_api_settings')){
|
1553 |
do_action('alm_rest_api_settings');
|
1554 |
}
|
1555 |
|
1556 |
-
|
1557 |
// SEO
|
1558 |
if(has_action('alm_seo_settings')){
|
1559 |
do_action('alm_seo_settings');
|
1560 |
}
|
1561 |
|
1562 |
-
|
1563 |
// SINGLE POST
|
1564 |
if(has_action('alm_prev_post_settings')){
|
1565 |
do_action('alm_prev_post_settings');
|
1566 |
-
|
1567 |
-
|
1568 |
|
1569 |
// TABS
|
1570 |
if(has_action('alm_tabs_settings')){
|
1571 |
do_action('alm_tabs_settings');
|
1572 |
}
|
1573 |
|
1574 |
-
|
1575 |
-
|
1576 |
// THEME REPEATERS
|
1577 |
if(has_action('alm_theme_repeaters_settings')){
|
1578 |
do_action('alm_theme_repeaters_settings');
|
1579 |
-
|
|
|
1580 |
}
|
1581 |
|
1582 |
|
1583 |
|
1584 |
/*
|
1585 |
-
*
|
1586 |
-
* Some general settings text
|
1587 |
*
|
1588 |
* @since 2.0.0
|
1589 |
*/
|
134 |
*/
|
135 |
function alm_render_transient_notification() {
|
136 |
if ( ! has_action( 'alm_pro_installed' ) ) {
|
137 |
+
$msg = '🔥 <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">Ajax Load More Pro</a></strong>: Get instant access to all 15 add-ons in a single installation! <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" class="button button-primary">Upgrade Now</a></strong>';
|
138 |
alm_transient_notification( $msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true );
|
139 |
}
|
140 |
}
|
727 |
'alm_licenses_page'
|
728 |
);
|
729 |
|
|
|
730 |
$before_link = '<span style="display:block; border-top: 1px solid #555; padding-top: 8px;">';
|
731 |
$after_link = '</span>';
|
732 |
$style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
|
733 |
|
|
|
734 |
// Pro
|
735 |
if(has_action('alm_pro_installed')){
|
736 |
$alm_pro_page = add_submenu_page(
|
752 |
);
|
753 |
}
|
754 |
|
|
|
755 |
// Cache
|
756 |
if(has_action('alm_cache_installed')){
|
757 |
$alm_cache_page = add_submenu_page(
|
767 |
add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
|
768 |
}
|
769 |
|
|
|
770 |
// Filters
|
771 |
if(has_action('alm_filters_installed')){
|
772 |
|
787 |
add_action( 'load-' . $alm_filters_page, 'alm_set_admin_nonce' );
|
788 |
}
|
789 |
|
|
|
790 |
// WooCommerce
|
791 |
if(has_action('alm_woocommerce_installed') && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option('active_plugins')))){
|
792 |
|
836 |
|
837 |
}
|
838 |
|
|
|
|
|
|
|
839 |
/*
|
840 |
+
* Settings page.
|
|
|
841 |
*
|
842 |
* @since 2.0.0
|
843 |
*/
|
846 |
include_once( ALM_PATH . 'admin/views/settings.php');
|
847 |
}
|
848 |
|
|
|
|
|
849 |
/*
|
|
|
850 |
* Custom Repeaters
|
851 |
*
|
852 |
* @since 2.0.0
|
1289 |
}
|
1290 |
}
|
1291 |
|
|
|
|
|
1292 |
/*
|
1293 |
* alm_layouts_dismiss
|
1294 |
* Dismiss Add Layouts CTA in repeater templates.
|
1310 |
}
|
1311 |
}
|
1312 |
|
|
|
|
|
1313 |
/*
|
1314 |
* alm_dismiss_sharing
|
1315 |
* Dismiss sharing widget on plugin settings page.
|
1333 |
}
|
1334 |
}
|
1335 |
|
|
|
|
|
1336 |
/*
|
1337 |
* alm_filter_admin_footer_text
|
1338 |
* Filter the WP Admin footer text only on ALM pages
|
1353 |
}
|
1354 |
}
|
1355 |
|
|
|
|
|
1356 |
/*
|
1357 |
* admin_init
|
1358 |
* Initiate the plugin, create our setting variables.
|
1475 |
'alm_admin_settings'
|
1476 |
);
|
1477 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1478 |
add_settings_field( // Display error notices
|
1479 |
'_alm_error_notices',
|
1480 |
__('Error Notices', 'ajax-load-more' ),
|
1483 |
'alm_admin_settings'
|
1484 |
);
|
1485 |
|
|
|
1486 |
// CACHE
|
1487 |
if(has_action('alm_cache_settings')){
|
1488 |
do_action('alm_cache_settings');
|
1489 |
}
|
1490 |
|
|
|
1491 |
// CUSTOM REPEATERS
|
1492 |
if(has_action('alm_unlimited_settings')){
|
1493 |
do_action('alm_unlimited_settings');
|
1494 |
}
|
1495 |
|
|
|
1496 |
// FILTERS
|
1497 |
if(has_action('alm_filters_settings')){
|
1498 |
do_action('alm_filters_settings');
|
1499 |
}
|
1500 |
|
|
|
1501 |
// LAYOUTS
|
1502 |
if(has_action('alm_layouts_settings')){
|
1503 |
do_action('alm_layouts_settings');
|
1504 |
}
|
1505 |
|
|
|
1506 |
// PAGINATION
|
1507 |
if(has_action('alm_paging_settings')){
|
1508 |
do_action('alm_paging_settings');
|
1509 |
}
|
1510 |
|
|
|
1511 |
// PRELOADED
|
1512 |
if(has_action('alm_preloaded_settings')){
|
1513 |
do_action('alm_preloaded_settings');
|
1514 |
}
|
1515 |
|
|
|
1516 |
// REST API
|
1517 |
if(has_action('alm_rest_api_settings')){
|
1518 |
do_action('alm_rest_api_settings');
|
1519 |
}
|
1520 |
|
|
|
1521 |
// SEO
|
1522 |
if(has_action('alm_seo_settings')){
|
1523 |
do_action('alm_seo_settings');
|
1524 |
}
|
1525 |
|
|
|
1526 |
// SINGLE POST
|
1527 |
if(has_action('alm_prev_post_settings')){
|
1528 |
do_action('alm_prev_post_settings');
|
1529 |
+
}
|
|
|
1530 |
|
1531 |
// TABS
|
1532 |
if(has_action('alm_tabs_settings')){
|
1533 |
do_action('alm_tabs_settings');
|
1534 |
}
|
1535 |
|
|
|
|
|
1536 |
// THEME REPEATERS
|
1537 |
if(has_action('alm_theme_repeaters_settings')){
|
1538 |
do_action('alm_theme_repeaters_settings');
|
1539 |
+
}
|
1540 |
+
|
1541 |
}
|
1542 |
|
1543 |
|
1544 |
|
1545 |
/*
|
1546 |
+
* Some general settings text.
|
|
|
1547 |
*
|
1548 |
* @since 2.0.0
|
1549 |
*/
|
admin/dist/css/admin.css
CHANGED
@@ -520,7 +520,7 @@ disabled look for disabled choices in the results dropdown
|
|
520 |
position: relative;
|
521 |
z-index: 1; }
|
522 |
.ajax-load-more .header-wrap h1 {
|
523 |
-
padding: 15px 15px 15px
|
524 |
margin: 0;
|
525 |
min-height: 48px;
|
526 |
background: #fff url("../../img/alm-logo-48x48.png") no-repeat 15px 15px;
|
@@ -894,8 +894,8 @@ disabled look for disabled choices in the results dropdown
|
|
894 |
|
895 |
.alm-settings-feedback {
|
896 |
position: fixed;
|
897 |
-
|
898 |
-
right:
|
899 |
width: auto;
|
900 |
height: auto;
|
901 |
background: #fff;
|
@@ -907,8 +907,8 @@ disabled look for disabled choices in the results dropdown
|
|
907 |
border-radius: 2px;
|
908 |
opacity: 0;
|
909 |
visibility: hidden;
|
910 |
-
-webkit-transition: all 0.
|
911 |
-
transition: all 0.
|
912 |
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
913 |
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
914 |
font-size: 13px; }
|
@@ -916,16 +916,22 @@ disabled look for disabled choices in the results dropdown
|
|
916 |
border-color: #e0bd5e;
|
917 |
opacity: 1;
|
918 |
visibility: visible;
|
919 |
-
|
|
|
920 |
.alm-settings-feedback.--saved {
|
921 |
opacity: 1;
|
922 |
visibility: visible;
|
923 |
-
|
|
|
|
|
|
|
|
|
924 |
.alm-settings-feedback.--error {
|
925 |
border-color: #e03e3e;
|
926 |
opacity: 1;
|
927 |
visibility: visible;
|
928 |
-
|
|
|
929 |
.alm-settings-feedback i {
|
930 |
opacity: 0.6;
|
931 |
margin: 0 3px 0 0; }
|
@@ -1050,9 +1056,9 @@ disabled look for disabled choices in the results dropdown
|
|
1050 |
width: 100%; }
|
1051 |
.shortcode-builder section.full .shortcode-builder--label {
|
1052 |
border-bottom: 1px solid #f1f1f1; }
|
1053 |
-
.shortcode-builder section input[type=text],
|
1054 |
-
.shortcode-builder section input[type=email],
|
1055 |
-
.shortcode-builder section input[type=number],
|
1056 |
.shortcode-builder section textarea {
|
1057 |
width: 100%; }
|
1058 |
.shortcode-builder section .select2-container {
|
@@ -1086,7 +1092,9 @@ disabled look for disabled choices in the results dropdown
|
|
1086 |
-webkit-box-flex: 1;
|
1087 |
-ms-flex: 1;
|
1088 |
flex: 1; }
|
1089 |
-
.shortcode-builder--fields input,
|
|
|
|
|
1090 |
width: 100%; }
|
1091 |
.shortcode-builder--fields section {
|
1092 |
width: 104%;
|
@@ -1157,7 +1165,7 @@ disabled look for disabled choices in the results dropdown
|
|
1157 |
top: 0;
|
1158 |
left: 35px;
|
1159 |
border: solid transparent;
|
1160 |
-
content:
|
1161 |
height: 0;
|
1162 |
width: 0;
|
1163 |
position: absolute;
|
@@ -1181,6 +1189,8 @@ disabled look for disabled choices in the results dropdown
|
|
1181 |
clear: both;
|
1182 |
display: table;
|
1183 |
content: ''; }
|
|
|
|
|
1184 |
|
1185 |
.shortcode-builder .section-intro {
|
1186 |
font-size: 13px;
|
@@ -1274,34 +1284,76 @@ disabled look for disabled choices in the results dropdown
|
|
1274 |
color: #fff;
|
1275 |
cursor: default; }
|
1276 |
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1305 |
|
1306 |
body.toplevel_page_ajax-load-more #wpfooter,
|
1307 |
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
|
@@ -1670,9 +1722,6 @@ a.layout-hover:hover img {
|
|
1670 |
#alm-container.ajax-load-more .toggle-all {
|
1671 |
display: none; }
|
1672 |
|
1673 |
-
#alm-builder {
|
1674 |
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; }
|
1675 |
-
|
1676 |
a.button-small {
|
1677 |
text-decoration: none;
|
1678 |
font-size: 12px;
|
@@ -2021,6 +2070,13 @@ a.button-small {
|
|
2021 |
.ajax-load-more input[type='number'] {
|
2022 |
height: auto; }
|
2023 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024 |
.ajax-load-more input.disabled-input {
|
2025 |
opacity: 0.5;
|
2026 |
filter: alpha(opacity=50);
|
@@ -2403,40 +2459,6 @@ hr.indented {
|
|
2403 |
padding-top: 1px;
|
2404 |
padding-bottom: 5px; }
|
2405 |
|
2406 |
-
.form-table .template-tags {
|
2407 |
-
overflow: hidden;
|
2408 |
-
border-left: 6px solid #dfd8c2;
|
2409 |
-
padding: 15px;
|
2410 |
-
background: #fff9ea;
|
2411 |
-
margin: 20px 0 0;
|
2412 |
-
border-radius: 3px; }
|
2413 |
-
|
2414 |
-
.form-table .template-tags h4,
|
2415 |
-
.form-table .template-tags li {
|
2416 |
-
margin: 0 0 8px;
|
2417 |
-
padding: 0;
|
2418 |
-
font-size: 13px; }
|
2419 |
-
|
2420 |
-
.form-table .template-tags li {
|
2421 |
-
margin: 2px 0; }
|
2422 |
-
|
2423 |
-
.form-table .template-tags ul {
|
2424 |
-
margin: 0;
|
2425 |
-
padding: 0; }
|
2426 |
-
|
2427 |
-
.form-table .template-tags pre {
|
2428 |
-
display: inline-block;
|
2429 |
-
min-width: 120px;
|
2430 |
-
padding: 0;
|
2431 |
-
margin: 0;
|
2432 |
-
color: #888; }
|
2433 |
-
|
2434 |
-
.admin.ajax-load-more .form-table textarea {
|
2435 |
-
clear: both;
|
2436 |
-
display: inline-block;
|
2437 |
-
float: none;
|
2438 |
-
width: 100%; }
|
2439 |
-
|
2440 |
.admin.ajax-load-more textarea.disabled,
|
2441 |
.admin.ajax-load-more input.disabled {
|
2442 |
opacity: 0.9;
|
520 |
position: relative;
|
521 |
z-index: 1; }
|
522 |
.ajax-load-more .header-wrap h1 {
|
523 |
+
padding: 15px 15px 15px 75px;
|
524 |
margin: 0;
|
525 |
min-height: 48px;
|
526 |
background: #fff url("../../img/alm-logo-48x48.png") no-repeat 15px 15px;
|
894 |
|
895 |
.alm-settings-feedback {
|
896 |
position: fixed;
|
897 |
+
top: 50px;
|
898 |
+
right: 10px;
|
899 |
width: auto;
|
900 |
height: auto;
|
901 |
background: #fff;
|
907 |
border-radius: 2px;
|
908 |
opacity: 0;
|
909 |
visibility: hidden;
|
910 |
+
-webkit-transition: all 0.25s ease-in-out;
|
911 |
+
transition: all 0.25s ease-in-out;
|
912 |
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
913 |
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
914 |
font-size: 13px; }
|
916 |
border-color: #e0bd5e;
|
917 |
opacity: 1;
|
918 |
visibility: visible;
|
919 |
+
top: 50px;
|
920 |
+
right: 25px; }
|
921 |
.alm-settings-feedback.--saved {
|
922 |
opacity: 1;
|
923 |
visibility: visible;
|
924 |
+
top: 50px;
|
925 |
+
right: 25px; }
|
926 |
+
.alm-settings-feedback.--saved i {
|
927 |
+
opacity: 1;
|
928 |
+
color: #5cc583; }
|
929 |
.alm-settings-feedback.--error {
|
930 |
border-color: #e03e3e;
|
931 |
opacity: 1;
|
932 |
visibility: visible;
|
933 |
+
top: 25px;
|
934 |
+
right: 25px; }
|
935 |
.alm-settings-feedback i {
|
936 |
opacity: 0.6;
|
937 |
margin: 0 3px 0 0; }
|
1056 |
width: 100%; }
|
1057 |
.shortcode-builder section.full .shortcode-builder--label {
|
1058 |
border-bottom: 1px solid #f1f1f1; }
|
1059 |
+
.shortcode-builder section input[type='text'],
|
1060 |
+
.shortcode-builder section input[type='email'],
|
1061 |
+
.shortcode-builder section input[type='number'],
|
1062 |
.shortcode-builder section textarea {
|
1063 |
width: 100%; }
|
1064 |
.shortcode-builder section .select2-container {
|
1092 |
-webkit-box-flex: 1;
|
1093 |
-ms-flex: 1;
|
1094 |
flex: 1; }
|
1095 |
+
.shortcode-builder--fields input,
|
1096 |
+
.shortcode-builder--fields textarea,
|
1097 |
+
.shortcode-builder--fields select {
|
1098 |
width: 100%; }
|
1099 |
.shortcode-builder--fields section {
|
1100 |
width: 104%;
|
1165 |
top: 0;
|
1166 |
left: 35px;
|
1167 |
border: solid transparent;
|
1168 |
+
content: ' ';
|
1169 |
height: 0;
|
1170 |
width: 0;
|
1171 |
position: absolute;
|
1189 |
clear: both;
|
1190 |
display: table;
|
1191 |
content: ''; }
|
1192 |
+
.shortcode-builder .nested-component .nested-component .shortcode-builder--label {
|
1193 |
+
border-left: 6px solid #f1f1f1; }
|
1194 |
|
1195 |
.shortcode-builder .section-intro {
|
1196 |
font-size: 13px;
|
1284 |
color: #fff;
|
1285 |
cursor: default; }
|
1286 |
|
1287 |
+
/* Template Tags */
|
1288 |
+
.ajax-load-more .template-tags {
|
1289 |
+
overflow: hidden;
|
1290 |
+
border-left: 5px solid #dfd8c2;
|
1291 |
+
padding: 15px;
|
1292 |
+
background: #fff9ea;
|
1293 |
+
margin: 20px 0 0;
|
1294 |
+
border-radius: 3px; }
|
1295 |
+
.ajax-load-more .template-tags h4,
|
1296 |
+
.ajax-load-more .template-tags li {
|
1297 |
+
margin: 0 0 8px;
|
1298 |
+
padding: 0;
|
1299 |
+
font-size: 13px;
|
1300 |
+
text-decoration: none !important; }
|
1301 |
+
.ajax-load-more .template-tags li {
|
1302 |
+
margin: 5px 0 !important;
|
1303 |
+
width: 100% !important;
|
1304 |
+
padding: 0 !important;
|
1305 |
+
border-radius: 3px;
|
1306 |
+
line-height: 1.25; }
|
1307 |
+
.ajax-load-more .template-tags ul {
|
1308 |
+
margin: 0;
|
1309 |
+
padding: 0; }
|
1310 |
+
.ajax-load-more .template-tags pre {
|
1311 |
+
display: inline-block;
|
1312 |
+
min-width: 120px;
|
1313 |
+
padding: 0;
|
1314 |
+
margin: 0;
|
1315 |
+
color: #888; }
|
1316 |
+
|
1317 |
+
body.toplevel_page_ajax-load-more,
|
1318 |
+
body.ajax-load-more_page_ajax-load-more-repeaters,
|
1319 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder,
|
1320 |
+
body.ajax-load-more_page_ajax-load-more-add-ons,
|
1321 |
+
body.ajax-load-more_page_ajax-load-more-extensions,
|
1322 |
+
body.ajax-load-more_page_ajax-load-more-help,
|
1323 |
+
body.ajax-load-more_page_ajax-load-more-licenses,
|
1324 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
1325 |
+
body.ajax-load-more_page_ajax-load-more-filters,
|
1326 |
+
body.ajax-load-more_page_ajax-load-more-pro,
|
1327 |
+
body.ajax-load-more_page_ajax-load-more-go-pro,
|
1328 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce {
|
1329 |
+
height: auto !important; }
|
1330 |
+
body.toplevel_page_ajax-load-more #wpcontent,
|
1331 |
+
body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
|
1332 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
|
1333 |
+
body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
|
1334 |
+
body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
|
1335 |
+
body.ajax-load-more_page_ajax-load-more-help #wpcontent,
|
1336 |
+
body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
|
1337 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
|
1338 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
|
1339 |
+
body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
|
1340 |
+
body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,
|
1341 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent {
|
1342 |
+
padding-left: 0;
|
1343 |
+
padding-bottom: 20px; }
|
1344 |
+
body.toplevel_page_ajax-load-more #wpbody-content,
|
1345 |
+
body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
|
1346 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
|
1347 |
+
body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
|
1348 |
+
body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
|
1349 |
+
body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
|
1350 |
+
body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
|
1351 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
|
1352 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
|
1353 |
+
body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
|
1354 |
+
body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,
|
1355 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content {
|
1356 |
+
padding-bottom: 0; }
|
1357 |
|
1358 |
body.toplevel_page_ajax-load-more #wpfooter,
|
1359 |
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
|
1722 |
#alm-container.ajax-load-more .toggle-all {
|
1723 |
display: none; }
|
1724 |
|
|
|
|
|
|
|
1725 |
a.button-small {
|
1726 |
text-decoration: none;
|
1727 |
font-size: 12px;
|
2070 |
.ajax-load-more input[type='number'] {
|
2071 |
height: auto; }
|
2072 |
|
2073 |
+
.admin.ajax-load-more .form-table textarea {
|
2074 |
+
clear: both;
|
2075 |
+
display: inline-block;
|
2076 |
+
float: none;
|
2077 |
+
width: 100%; }
|
2078 |
+
|
2079 |
+
.admin.ajax-load-more textarea.disabled,
|
2080 |
.ajax-load-more input.disabled-input {
|
2081 |
opacity: 0.5;
|
2082 |
filter: alpha(opacity=50);
|
2459 |
padding-top: 1px;
|
2460 |
padding-bottom: 5px; }
|
2461 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2462 |
.admin.ajax-load-more textarea.disabled,
|
2463 |
.admin.ajax-load-more input.disabled {
|
2464 |
opacity: 0.9;
|
admin/dist/js/admin.js
CHANGED
@@ -1423,7 +1423,7 @@ jQuery(document).ready(function ($) {
|
|
1423 |
*
|
1424 |
* @since 2.8.4
|
1425 |
*/
|
1426 |
-
$('
|
1427 |
$(this).tooltipster({
|
1428 |
delay: 100,
|
1429 |
speed: 150,
|
@@ -1437,7 +1437,6 @@ jQuery(document).ready(function ($) {
|
|
1437 |
*
|
1438 |
* @since 2.8.4
|
1439 |
*/
|
1440 |
-
|
1441 |
$('select#alm_settings_btn_color').change(function () {
|
1442 |
var color = jQuery(this).val();
|
1443 |
// Remove other colors
|
1423 |
*
|
1424 |
* @since 2.8.4
|
1425 |
*/
|
1426 |
+
$('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
|
1427 |
$(this).tooltipster({
|
1428 |
delay: 100,
|
1429 |
speed: 150,
|
1437 |
*
|
1438 |
* @since 2.8.4
|
1439 |
*/
|
|
|
1440 |
$('select#alm_settings_btn_color').change(function () {
|
1441 |
var color = jQuery(this).val();
|
1442 |
// Remove other colors
|
admin/includes/cta/extend-theme-repeaters.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$extend = alm_get_addon( 'theme-repeaters' );
|
3 |
-
if ( $extend ) {
|
4 |
-
$name = $extend['name'];
|
5 |
-
$intro = $extend['intro'];
|
6 |
-
$desc = $extend['desc'];
|
7 |
-
$key = $extend['key'];
|
8 |
-
$url = $extend['url'];
|
9 |
-
$img = $extend['img'];
|
10 |
-
?>
|
11 |
-
<div id="alm-add-ons">
|
12 |
-
<div class="flexbox-wrap">
|
13 |
-
<div class="group no-shadow extend">
|
14 |
-
<a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" target="_blank">
|
15 |
-
<div class="pro-img">
|
16 |
-
<img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
|
17 |
-
</div>
|
18 |
-
<div class="pro-details">
|
19 |
-
<h2 class="addon-title"><?php echo $name; ?></h2>
|
20 |
-
<p class="addon-intro"><?php echo $intro; ?></p>
|
21 |
-
<p class="pro-desc"><?php echo $desc; ?></p>
|
22 |
-
<?php
|
23 |
-
echo '<span class="cnkt-button">' . __( 'Upgrade Now', 'ajax-load-more' ) . '</span>';
|
24 |
-
?>
|
25 |
-
</div>
|
26 |
-
</a>
|
27 |
-
</div>
|
28 |
-
</div>
|
29 |
-
</div>
|
30 |
-
<?php
|
31 |
-
}
|
32 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/shortcode-builder/components/nextpage.php
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
-
<?php
|
|
|
|
|
2 |
<div class="row input next-page add-on" id="alm-next-page">
|
3 |
<h3 class="heading" tabindex="0"><?php _e('Next Page', 'ajax-load-more'); ?></h3>
|
4 |
<div class="expand-wrap">
|
5 |
-
|
6 |
<section class="first">
|
7 |
<div class="shortcode-builder--label">
|
8 |
<p><?php _e('Enable the infinite scrolling of multipage WordPress content using the', 'ajax-load-more'); ?> <span>< !--nextpage-- ></span> <?php _e('Quicktag or Page Break block.', 'ajax-load-more'); ?></p>
|
@@ -20,12 +22,12 @@
|
|
20 |
</li>
|
21 |
</ul>
|
22 |
</div>
|
23 |
-
|
24 |
</section>
|
25 |
|
26 |
|
27 |
-
<div class="next-page-content nested-component" style="display: none;">
|
28 |
-
<div class="nested-component--inner">
|
29 |
<section>
|
30 |
<div class="shortcode-builder--label">
|
31 |
<h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
|
@@ -37,7 +39,7 @@
|
|
37 |
</div>
|
38 |
</div>
|
39 |
</section>
|
40 |
-
|
41 |
<section>
|
42 |
<div class="shortcode-builder--label">
|
43 |
<h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
|
@@ -51,11 +53,36 @@
|
|
51 |
<label for="next-page-url"><?php _e('Yes, update the URL.', 'ajax-load-more'); ?></label>
|
52 |
</li>
|
53 |
</ul>
|
54 |
-
<input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
|
55 |
</div>
|
56 |
</div>
|
57 |
</section>
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
<section>
|
60 |
<div class="shortcode-builder--label">
|
61 |
<h4>
|
@@ -72,11 +99,10 @@
|
|
72 |
<label for="next-page-pageviews"><?php _e('Yes, send pageviews to Google Analytics.', 'ajax-load-more'); ?></label>
|
73 |
</li>
|
74 |
</ul>
|
75 |
-
<input type="checkbox" class="alm_element" name="next-page-url" id="next-page-url" checked="checked">
|
76 |
</div>
|
77 |
</div>
|
78 |
</section>
|
79 |
-
|
80 |
<section>
|
81 |
<div class="shortcode-builder--label">
|
82 |
<h4><?php _e('Scroll to Page', 'ajax-load-more'); ?></h4>
|
@@ -87,7 +113,7 @@
|
|
87 |
<div class="shortcode-builder--fields">
|
88 |
<section class="first">
|
89 |
<div class="half">
|
90 |
-
<label for="next-page-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
|
91 |
<select class="alm_element" name="next-page-scroll" id="next-page-scroll">
|
92 |
<option value="true"><?php _e('True', 'ajax-load-more'); ?></option>
|
93 |
<option value="false" selected="selected"><?php _e('False', 'ajax-load-more'); ?></option>
|
@@ -101,15 +127,15 @@
|
|
101 |
<input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
|
102 |
</div>
|
103 |
</section>
|
104 |
-
</div>
|
105 |
</section>
|
106 |
-
|
107 |
<p class="warning-callout">
|
108 |
<?php _e('You must add the Next Page shortcode directly to your template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
|
109 |
-
</p>
|
110 |
</div>
|
111 |
-
|
112 |
</div>
|
113 |
</div>
|
114 |
</div>
|
115 |
-
<?php } ?>
|
1 |
+
<?php
|
2 |
+
// @codingStandardsIgnoreStart
|
3 |
+
if ( has_action( 'alm_nextpage_installed' ) ) { ?>
|
4 |
<div class="row input next-page add-on" id="alm-next-page">
|
5 |
<h3 class="heading" tabindex="0"><?php _e('Next Page', 'ajax-load-more'); ?></h3>
|
6 |
<div class="expand-wrap">
|
7 |
+
|
8 |
<section class="first">
|
9 |
<div class="shortcode-builder--label">
|
10 |
<p><?php _e('Enable the infinite scrolling of multipage WordPress content using the', 'ajax-load-more'); ?> <span>< !--nextpage-- ></span> <?php _e('Quicktag or Page Break block.', 'ajax-load-more'); ?></p>
|
22 |
</li>
|
23 |
</ul>
|
24 |
</div>
|
25 |
+
</div>
|
26 |
</section>
|
27 |
|
28 |
|
29 |
+
<div class="next-page-content nested-component" style="display: none;">
|
30 |
+
<div class="nested-component--inner">
|
31 |
<section>
|
32 |
<div class="shortcode-builder--label">
|
33 |
<h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
|
39 |
</div>
|
40 |
</div>
|
41 |
</section>
|
42 |
+
|
43 |
<section>
|
44 |
<div class="shortcode-builder--label">
|
45 |
<h4><?php _e('URL Rewrite', 'ajax-load-more'); ?></h4>
|
53 |
<label for="next-page-url"><?php _e('Yes, update the URL.', 'ajax-load-more'); ?></label>
|
54 |
</li>
|
55 |
</ul>
|
|
|
56 |
</div>
|
57 |
</div>
|
58 |
</section>
|
59 |
+
|
60 |
+
<section>
|
61 |
+
<div class="shortcode-builder--label">
|
62 |
+
<h4><?php _e('Page Title Template', 'ajax-load-more'); ?></h4>
|
63 |
+
<p><?php _e('The page title template is used to update the browser title each time a new page is loaded.', 'ajax-load-more'); ?></p>
|
64 |
+
<p><small><?php _e('Page title will NOT be updated if this field remains empty.', 'ajax-load-more'); ?></small></p>
|
65 |
+
</div>
|
66 |
+
<div class="shortcode-builder--fields">
|
67 |
+
<div class="inner">
|
68 |
+
<input type="text" class="alm_element" name="next-page-title-template" id="next-page-title-template" value="<?php echo apply_filters('alm_nextpage_title_template', ''); ?>" placeholder="<?php echo apply_filters('alm_nextpage_title_template', 'Page {page} of {total} - {post-title}'); ?>">
|
69 |
+
<br/>
|
70 |
+
<div class="form-table" style="border: none;">
|
71 |
+
<div class="template-tags">
|
72 |
+
<h4><?php _e('Template Tags', 'ajax-load-more'); ?></h4>
|
73 |
+
<ul>
|
74 |
+
<li><pre>{page}</pre> <?php _e('Current Page Number', 'ajax-load-more'); ?></li>
|
75 |
+
<li><pre>{pages}</pre> <?php _e('Total Number of Pages', 'ajax-load-more'); ?></li>
|
76 |
+
<li><pre>{post-title}</pre> <?php _e('Title of Post', 'ajax-load-more'); ?></li>
|
77 |
+
<li><pre>{site-title}</pre> <?php _e('Site Title', 'ajax-load-more'); ?></li>
|
78 |
+
<li><pre>{tagline}</pre> <?php _e('Site Tagline', 'ajax-load-more'); ?></li>
|
79 |
+
</ul>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
</section>
|
85 |
+
|
86 |
<section>
|
87 |
<div class="shortcode-builder--label">
|
88 |
<h4>
|
99 |
<label for="next-page-pageviews"><?php _e('Yes, send pageviews to Google Analytics.', 'ajax-load-more'); ?></label>
|
100 |
</li>
|
101 |
</ul>
|
|
|
102 |
</div>
|
103 |
</div>
|
104 |
</section>
|
105 |
+
|
106 |
<section>
|
107 |
<div class="shortcode-builder--label">
|
108 |
<h4><?php _e('Scroll to Page', 'ajax-load-more'); ?></h4>
|
113 |
<div class="shortcode-builder--fields">
|
114 |
<section class="first">
|
115 |
<div class="half">
|
116 |
+
<label for="next-page-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
|
117 |
<select class="alm_element" name="next-page-scroll" id="next-page-scroll">
|
118 |
<option value="true"><?php _e('True', 'ajax-load-more'); ?></option>
|
119 |
<option value="false" selected="selected"><?php _e('False', 'ajax-load-more'); ?></option>
|
127 |
<input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
|
128 |
</div>
|
129 |
</section>
|
130 |
+
</div>
|
131 |
</section>
|
132 |
+
|
133 |
<p class="warning-callout">
|
134 |
<?php _e('You must add the Next Page shortcode directly to your template file using the <a href="https://developer.wordpress.org/reference/functions/do_shortcode/" target="_blank">do_shortcode</a> method.', 'ajax-load-more'); ?> <a class="button-small" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/" target="_blank"><?php _e('View Docs', 'ajax-load-more'); ?></a>
|
135 |
+
</p>
|
136 |
</div>
|
137 |
+
|
138 |
</div>
|
139 |
</div>
|
140 |
</div>
|
141 |
+
<?php } ?>
|
admin/shortcode-builder/components/single-post.php
CHANGED
@@ -29,7 +29,8 @@ if(has_action('alm_single_post_installed')){ ?>
|
|
29 |
|
30 |
<div class="prev_post_options nested-component" style="display: none;">
|
31 |
<div class="nested-component--inner">
|
32 |
-
|
|
|
33 |
<div class="shortcode-builder--label">
|
34 |
<h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
|
35 |
<p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
|
@@ -104,7 +105,7 @@ if(has_action('alm_single_post_installed')){ ?>
|
|
104 |
</div>
|
105 |
|
106 |
<div id="pp_extras">
|
107 |
-
|
108 |
<div class="shortcode-builder--label">
|
109 |
<h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query.','ajax-load-more'); ?>"></a></h4>
|
110 |
<p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
|
@@ -145,55 +146,78 @@ if(has_action('alm_single_post_installed')){ ?>
|
|
145 |
</div>
|
146 |
</div>
|
147 |
</section>
|
148 |
-
|
149 |
</div>
|
150 |
|
151 |
-
<?php if( is_plugin_active( 'elementor-pro/elementor-pro.php' ) ) { ?>
|
152 |
-
<!-- Elementor -->
|
153 |
-
<section>
|
154 |
-
<div class="shortcode-builder--label">
|
155 |
-
<h4><?php _e('Elementor', 'ajax-load-more'); ?></h4>
|
156 |
-
<p><?php _e('Set Elementor <b>true</b> if you are using Elementor templates to build single posts.', 'ajax-load-more'); ?></p>
|
157 |
-
<p><a class="button-small" href="https://connekthq.com/elementor-infinite-scrolling/" target="_blank"><?php _e('View Blog Post', 'ajax-load-more'); ?></a></p>
|
158 |
-
</div>
|
159 |
-
<div class="shortcode-builder--fields">
|
160 |
-
<div class="inner">
|
161 |
-
<ul>
|
162 |
-
<li>
|
163 |
-
<input class="alm_element" type="radio" name="elementor-single" value="t" id="elementor_t">
|
164 |
-
<label for="elementor_t"><?php _e('True', 'ajax-load-more'); ?></label>
|
165 |
-
</li>
|
166 |
-
<li>
|
167 |
-
<input class="alm_element" type="radio" name="elementor-single" value="f" id="elementor_f" checked="checked">
|
168 |
-
<label for="elementor_f"><?php _e('False', 'ajax-load-more'); ?></label>
|
169 |
-
</li>
|
170 |
-
</ul>
|
171 |
-
</div>
|
172 |
-
</div>
|
173 |
-
</section>
|
174 |
-
<?php } ?>
|
175 |
-
|
176 |
<section>
|
177 |
<div class="shortcode-builder--label">
|
178 |
-
<h4><?php _e('
|
179 |
-
<p><?php _e('
|
|
|
180 |
</div>
|
181 |
<div class="shortcode-builder--fields">
|
182 |
<div class="inner">
|
183 |
<ul>
|
184 |
<li>
|
185 |
-
<input class="alm_element" type="radio" name="prev-post-
|
186 |
-
<label for="prev-post-
|
187 |
</li>
|
188 |
<li>
|
189 |
-
<input class="alm_element" type="radio" name="prev-post-
|
190 |
-
<label for="prev-post-
|
191 |
</li>
|
192 |
</ul>
|
193 |
</div>
|
194 |
</div>
|
195 |
</section>
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
|
198 |
<!-- Reading Progress Bar Options -->
|
199 |
<div class="clear"></div>
|
@@ -271,6 +295,31 @@ if(has_action('alm_single_post_installed')){ ?>
|
|
271 |
</div>
|
272 |
<!-- END Reading Progress Bar -->
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
<div class="clear"></div>
|
275 |
|
276 |
<p class="warning-callout">
|
29 |
|
30 |
<div class="prev_post_options nested-component" style="display: none;">
|
31 |
<div class="nested-component--inner">
|
32 |
+
|
33 |
+
<section>
|
34 |
<div class="shortcode-builder--label">
|
35 |
<h4><?php _e('Post ID', 'ajax-load-more'); ?></h4>
|
36 |
<p><?php _e('The ID of the current single post.', 'ajax-load-more'); ?></p>
|
105 |
</div>
|
106 |
|
107 |
<div id="pp_extras">
|
108 |
+
<section>
|
109 |
<div class="shortcode-builder--label">
|
110 |
<h4><?php _e('Taxonomy', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Selecting a taxonomy means only previous posts from the same taxonomy term will be returned. If a post has multiple terms attached, each term will be considered using an OR relationship query.','ajax-load-more'); ?>"></a></h4>
|
111 |
<p><?php _e('Query previous posts from the same taxonomy term(s).', 'ajax-load-more'); ?></p>
|
146 |
</div>
|
147 |
</div>
|
148 |
</section>
|
|
|
149 |
</div>
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
<section>
|
152 |
<div class="shortcode-builder--label">
|
153 |
+
<h4><?php _e('Post Preview', 'ajax-load-more'); ?></h4>
|
154 |
+
<p><?php _e('Show a preview of Ajax loaded posts and have the user click to load the remainder of the post.', 'ajax-load-more'); ?></p>
|
155 |
+
<p><a class="button-small" href="https://connekthq.com/accessibility-and-ajax-load-more/?showpreview=true" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
156 |
</div>
|
157 |
<div class="shortcode-builder--fields">
|
158 |
<div class="inner">
|
159 |
<ul>
|
160 |
<li>
|
161 |
+
<input class="alm_element" type="radio" name="prev-post-preview" value="true" id="prev-post-preview-true">
|
162 |
+
<label for="prev-post-preview-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
163 |
</li>
|
164 |
<li>
|
165 |
+
<input class="alm_element" type="radio" name="prev-post-preview" value="false" id="prev-post-preview-false" checked="checked">
|
166 |
+
<label for="prev-post-preview-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
167 |
</li>
|
168 |
</ul>
|
169 |
</div>
|
170 |
</div>
|
171 |
</section>
|
172 |
|
173 |
+
<!-- Preview Options -->
|
174 |
+
<div class="clear"></div>
|
175 |
+
<div id="pp_preview_options" class="nested-component" style="display: none;">
|
176 |
+
<section>
|
177 |
+
<div class="shortcode-builder--label">
|
178 |
+
<h4><?php _e('Button Label', 'ajax-load-more'); ?></h4>
|
179 |
+
<p><?php _e('Enter a label for the preview button.', 'ajax-load-more'); ?></p>
|
180 |
+
</div>
|
181 |
+
<div class="shortcode-builder--fields">
|
182 |
+
<div class="inner">
|
183 |
+
<input type="text" id="pp-preview-label" class="alm_element" value="<?php echo apply_filters( 'alm_single_post_preview_button_label', 'Continue Reading' ); ?>" placeholder="<?php echo apply_filters( 'alm_single_post_preview_button_label', 'Continue Reading' ); ?>">
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
</section>
|
187 |
+
<section>
|
188 |
+
<div class="shortcode-builder--label">
|
189 |
+
<h4><?php _e('Height', 'ajax-load-more'); ?></h4>
|
190 |
+
<p><?php _e('Set the initial height of the preview in pixels.', 'ajax-load-more'); ?></p>
|
191 |
+
</div>
|
192 |
+
<div class="shortcode-builder--fields">
|
193 |
+
<div class="inner">
|
194 |
+
<input type="number" class="alm_element numbers-only" name="pp-preview-height" id="pp-preview-height" step="1" min="1" value="<?php echo apply_filters( 'alm_single_post_preview_height', 700 ); ?>">
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
</section>
|
198 |
+
</div>
|
199 |
+
|
200 |
+
<section>
|
201 |
+
<div class="shortcode-builder--label">
|
202 |
+
<h4><?php _e('Reading Progress Bar', 'ajax-load-more'); ?></h4>
|
203 |
+
<p><?php _e('Display a reading progress bar indicator at the top or bottom of the browser window.', 'ajax-load-more'); ?></p>
|
204 |
+
<p><a class="button-small" href="https://connekthq.com/accessibility-and-ajax-load-more/?progressbar=true" target="_blank"><?php _e('View Example', 'ajax-load-more'); ?></a></p>
|
205 |
+
</div>
|
206 |
+
<div class="shortcode-builder--fields">
|
207 |
+
<div class="inner">
|
208 |
+
<ul>
|
209 |
+
<li>
|
210 |
+
<input class="alm_element" type="radio" name="prev-post-progress" value="true" id="prev-post-progress-true">
|
211 |
+
<label for="prev-post-progress-true"><?php _e('True', 'ajax-load-more'); ?></label>
|
212 |
+
</li>
|
213 |
+
<li>
|
214 |
+
<input class="alm_element" type="radio" name="prev-post-progress" value="false" id="prev-post-progress-false" checked="checked">
|
215 |
+
<label for="prev-post-progress-false"><?php _e('False', 'ajax-load-more'); ?></label>
|
216 |
+
</li>
|
217 |
+
</ul>
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
</section>
|
221 |
|
222 |
<!-- Reading Progress Bar Options -->
|
223 |
<div class="clear"></div>
|
295 |
</div>
|
296 |
<!-- END Reading Progress Bar -->
|
297 |
|
298 |
+
<?php if( is_plugin_active( 'elementor-pro/elementor-pro.php' ) ) { ?>
|
299 |
+
<!-- Elementor -->
|
300 |
+
<section>
|
301 |
+
<div class="shortcode-builder--label">
|
302 |
+
<h4><?php _e('Elementor', 'ajax-load-more'); ?></h4>
|
303 |
+
<p><?php _e('Set Elementor <b>true</b> if you are using Elementor templates to build single posts.', 'ajax-load-more'); ?></p>
|
304 |
+
<p><a class="button-small" href="https://connekthq.com/elementor-infinite-scrolling/" target="_blank"><?php _e('View Blog Post', 'ajax-load-more'); ?></a></p>
|
305 |
+
</div>
|
306 |
+
<div class="shortcode-builder--fields">
|
307 |
+
<div class="inner">
|
308 |
+
<ul>
|
309 |
+
<li>
|
310 |
+
<input class="alm_element" type="radio" name="elementor-single" value="t" id="elementor_t">
|
311 |
+
<label for="elementor_t"><?php _e('True', 'ajax-load-more'); ?></label>
|
312 |
+
</li>
|
313 |
+
<li>
|
314 |
+
<input class="alm_element" type="radio" name="elementor-single" value="f" id="elementor_f" checked="checked">
|
315 |
+
<label for="elementor_f"><?php _e('False', 'ajax-load-more'); ?></label>
|
316 |
+
</li>
|
317 |
+
</ul>
|
318 |
+
</div>
|
319 |
+
</div>
|
320 |
+
</section>
|
321 |
+
<?php } ?>
|
322 |
+
|
323 |
<div class="clear"></div>
|
324 |
|
325 |
<p class="warning-callout">
|
admin/shortcode-builder/js/shortcode-builder.js
CHANGED
@@ -354,7 +354,8 @@ jQuery(document).ready(function ($) {
|
|
354 |
nextpage_url = $('input#next-page-url:checked').val(),
|
355 |
nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
|
356 |
nextpage_scroll = $('select#next-page-scroll').val(),
|
357 |
-
nextpage_scrolltop = $('input#next-page-scroll-top').val()
|
|
|
358 |
|
359 |
$('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
|
360 |
|
@@ -367,6 +368,9 @@ jQuery(document).ready(function ($) {
|
|
367 |
if (nextpage_pageviews !== 'true') {
|
368 |
output += ' nextpage_pageviews="false"';
|
369 |
}
|
|
|
|
|
|
|
370 |
|
371 |
output += ' nextpage_scroll="' + nextpage_scroll + ':' + nextpage_scrolltop + '"';
|
372 |
} else {
|
@@ -505,7 +509,7 @@ jQuery(document).ready(function ($) {
|
|
505 |
// ---------------------------
|
506 |
|
507 |
var previous = $('.previous-post input[name=prev-post]:checked').val();
|
508 |
-
if (previous !== 'false' && previous
|
509 |
var pp_id = $('#pp_id').val(),
|
510 |
pp_order = $('#pp-order').val(),
|
511 |
pp_query_order = $('#pp-custom-query').val(),
|
@@ -514,6 +518,7 @@ jQuery(document).ready(function ($) {
|
|
514 |
pp_excluded_terms = $('#pp-term-exclude').val(),
|
515 |
pp_elementor = $('.previous-post input[name=elementor-single]:checked').val(),
|
516 |
pp_progress_bar = $('.previous-post input[name=prev-post-progress]:checked').val(),
|
|
|
517 |
pp_target = $('.previous-post input#pp-target').val();
|
518 |
|
519 |
$('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
|
@@ -559,6 +564,18 @@ jQuery(document).ready(function ($) {
|
|
559 |
output += pp_target !== '' ? ' single_post_target="' + pp_target + '"' : '';
|
560 |
output += pp_elementor === 't' ? ' elementor="true"' : '';
|
561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
// Reading Progress Bar
|
563 |
if (pp_progress_bar === 'true') {
|
564 |
$('#pp_progressbar_options').slideDown(250, 'alm_easeInOutQuad');
|
@@ -754,19 +771,19 @@ jQuery(document).ready(function ($) {
|
|
754 |
|
755 |
// IN
|
756 |
var cat = $('.categories #category-select').val();
|
757 |
-
if (cat !== '' && cat
|
758 |
output += ' category="' + cat + '"';
|
759 |
}
|
760 |
|
761 |
// AND
|
762 |
var cat__and = $('.categories #category--and-select').val();
|
763 |
-
if (cat__and !== '' && cat__and
|
764 |
output += ' category__and="' + cat__and + '"';
|
765 |
}
|
766 |
|
767 |
// NOT_IN
|
768 |
var cat_not_in = $('.categories #category-exclude-select').val();
|
769 |
-
if (cat_not_in !== '' && cat_not_in
|
770 |
|
771 |
// ---------------------------
|
772 |
// - Tags
|
@@ -795,19 +812,19 @@ jQuery(document).ready(function ($) {
|
|
795 |
|
796 |
// IN
|
797 |
var tag = $('.tags #tag-select').val();
|
798 |
-
if (tag !== '' && tag
|
799 |
output += ' tag="' + tag + '"';
|
800 |
}
|
801 |
|
802 |
// AND
|
803 |
var tag__and = $('.tags #tag--and-select').val();
|
804 |
-
if (tag__and !== '' && tag__and
|
805 |
output += ' tag__and="' + tag__and + '"';
|
806 |
}
|
807 |
|
808 |
// NOT_IN
|
809 |
var tag_not_in = $('.tags #tag-exclude-select').val();
|
810 |
-
if (tag_not_in !== '' && tag_not_in
|
811 |
|
812 |
// ---------------------------
|
813 |
// - Taxonomy Query
|
@@ -1013,7 +1030,7 @@ jQuery(document).ready(function ($) {
|
|
1013 |
// ---------------------------
|
1014 |
|
1015 |
var author = $('.authors #author-select').val();
|
1016 |
-
if (author !== '' && author
|
1017 |
|
1018 |
// ---------------------------
|
1019 |
// - Posts
|
354 |
nextpage_url = $('input#next-page-url:checked').val(),
|
355 |
nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
|
356 |
nextpage_scroll = $('select#next-page-scroll').val(),
|
357 |
+
nextpage_scrolltop = $('input#next-page-scroll-top').val(),
|
358 |
+
nextpage_title_template = $('input#next-page-title-template').val();
|
359 |
|
360 |
$('.next-page-content').slideDown(250, 'alm_easeInOutQuad');
|
361 |
|
368 |
if (nextpage_pageviews !== 'true') {
|
369 |
output += ' nextpage_pageviews="false"';
|
370 |
}
|
371 |
+
if (nextpage_title_template) {
|
372 |
+
output += ' nextpage_title_template="' + nextpage_title_template + '"';
|
373 |
+
}
|
374 |
|
375 |
output += ' nextpage_scroll="' + nextpage_scroll + ':' + nextpage_scrolltop + '"';
|
376 |
} else {
|
509 |
// ---------------------------
|
510 |
|
511 |
var previous = $('.previous-post input[name=prev-post]:checked').val();
|
512 |
+
if (previous !== 'false' && previous !== undefined) {
|
513 |
var pp_id = $('#pp_id').val(),
|
514 |
pp_order = $('#pp-order').val(),
|
515 |
pp_query_order = $('#pp-custom-query').val(),
|
518 |
pp_excluded_terms = $('#pp-term-exclude').val(),
|
519 |
pp_elementor = $('.previous-post input[name=elementor-single]:checked').val(),
|
520 |
pp_progress_bar = $('.previous-post input[name=prev-post-progress]:checked').val(),
|
521 |
+
pp_preview = $('.previous-post input[name=prev-post-preview]:checked').val(),
|
522 |
pp_target = $('.previous-post input#pp-target').val();
|
523 |
|
524 |
$('.prev_post_options').slideDown(250, 'alm_easeInOutQuad');
|
564 |
output += pp_target !== '' ? ' single_post_target="' + pp_target + '"' : '';
|
565 |
output += pp_elementor === 't' ? ' elementor="true"' : '';
|
566 |
|
567 |
+
// Post Preview
|
568 |
+
if (pp_preview === 'true') {
|
569 |
+
$('#pp_preview_options').slideDown(250, 'alm_easeInOutQuad');
|
570 |
+
var pp_preview_label = $('#pp-preview-label').val();
|
571 |
+
var pp_preview_height = $('#pp-preview-height').val();
|
572 |
+
var pp_preview_element = $('#pp-preview-element').val();
|
573 |
+
pp_preview_element = !pp_preview_element || pp_preview_element === 'default' ? '' : ':' + pp_preview_element;
|
574 |
+
output += ' single_post_preview="' + pp_preview_label + ':' + pp_preview_height + pp_preview_element + '"';
|
575 |
+
} else {
|
576 |
+
$('#pp_preview_options').slideUp(250, 'alm_easeInOutQuad');
|
577 |
+
}
|
578 |
+
|
579 |
// Reading Progress Bar
|
580 |
if (pp_progress_bar === 'true') {
|
581 |
$('#pp_progressbar_options').slideDown(250, 'alm_easeInOutQuad');
|
771 |
|
772 |
// IN
|
773 |
var cat = $('.categories #category-select').val();
|
774 |
+
if (cat !== '' && cat !== undefined && cat !== null && cat.length > 0) {
|
775 |
output += ' category="' + cat + '"';
|
776 |
}
|
777 |
|
778 |
// AND
|
779 |
var cat__and = $('.categories #category--and-select').val();
|
780 |
+
if (cat__and !== '' && cat__and !== undefined && cat__and !== null && cat__and.length > 0) {
|
781 |
output += ' category__and="' + cat__and + '"';
|
782 |
}
|
783 |
|
784 |
// NOT_IN
|
785 |
var cat_not_in = $('.categories #category-exclude-select').val();
|
786 |
+
if (cat_not_in !== '' && cat_not_in !== undefined && cat_not_in !== null && cat_not_in.length > 0) output += ' category__not_in="' + cat_not_in + '"';
|
787 |
|
788 |
// ---------------------------
|
789 |
// - Tags
|
812 |
|
813 |
// IN
|
814 |
var tag = $('.tags #tag-select').val();
|
815 |
+
if (tag !== '' && tag !== undefined && tag !== null && tag.length > 0) {
|
816 |
output += ' tag="' + tag + '"';
|
817 |
}
|
818 |
|
819 |
// AND
|
820 |
var tag__and = $('.tags #tag--and-select').val();
|
821 |
+
if (tag__and !== '' && tag__and !== undefined && tag__and !== null && tag__and.length > 0) {
|
822 |
output += ' tag__and="' + tag__and + '"';
|
823 |
}
|
824 |
|
825 |
// NOT_IN
|
826 |
var tag_not_in = $('.tags #tag-exclude-select').val();
|
827 |
+
if (tag_not_in !== '' && tag_not_in !== undefined && tag_not_in !== null && tag_not_in.length > 0) output += ' tag__not_in="' + tag_not_in + '"';
|
828 |
|
829 |
// ---------------------------
|
830 |
// - Taxonomy Query
|
1030 |
// ---------------------------
|
1031 |
|
1032 |
var author = $('.authors #author-select').val();
|
1033 |
+
if (author !== '' && author !== undefined && author !== null && author.length > 0) output += ' author="' + author + '"';
|
1034 |
|
1035 |
// ---------------------------
|
1036 |
// - Posts
|
admin/shortcode-builder/shortcode-builder.php
CHANGED
@@ -269,28 +269,6 @@
|
|
269 |
</div>
|
270 |
</section>
|
271 |
|
272 |
-
<!-- Nested ALM -->
|
273 |
-
<section>
|
274 |
-
<div class="shortcode-builder--label">
|
275 |
-
<h4><?php _e('Nested Instance', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('When nesting ALM instances it\'s important to set this to true as it removes any problematic JavaScript functionality.','ajax-load-more'); ?>"></a></h4>
|
276 |
-
<p><?php _e('Is this instance of Ajax Load More nested inside another instance of Ajax Load More?', 'ajax-load-more'); ?></p>
|
277 |
-
</div>
|
278 |
-
<div class="shortcode-builder--fields">
|
279 |
-
<div class="inner">
|
280 |
-
<ul>
|
281 |
-
<li>
|
282 |
-
<input class="alm_element" type="radio" name="nested" value="t" id="nested_t">
|
283 |
-
<label for="nested_t"><?php _e('True', 'ajax-load-more'); ?></label>
|
284 |
-
</li>
|
285 |
-
<li>
|
286 |
-
<input class="alm_element" type="radio" name="nested" value="f" id="nested_f" checked="checked">
|
287 |
-
<label for="nested_f"><?php _e('False', 'ajax-load-more'); ?></label>
|
288 |
-
</li>
|
289 |
-
</ul>
|
290 |
-
</div>
|
291 |
-
</div>
|
292 |
-
</section>
|
293 |
-
|
294 |
</div>
|
295 |
</div>
|
296 |
<!-- End Options -->
|
269 |
</div>
|
270 |
</section>
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
</div>
|
273 |
</div>
|
274 |
<!-- End Options -->
|
admin/src/js/admin.js
ADDED
@@ -0,0 +1,531 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var _alm = _alm || {};
|
2 |
+
|
3 |
+
jQuery(document).ready(function ($) {
|
4 |
+
'use strict';
|
5 |
+
|
6 |
+
_alm.options = {
|
7 |
+
speed: 200,
|
8 |
+
};
|
9 |
+
|
10 |
+
/*
|
11 |
+
* Test REST API access
|
12 |
+
*
|
13 |
+
* @since 5.1.1
|
14 |
+
*/
|
15 |
+
if ($('.restapi-access').length) {
|
16 |
+
$.ajax({
|
17 |
+
type: 'GET',
|
18 |
+
url: alm_admin_localize.restapi.url + alm_admin_localize.restapi.namespace + '/test/',
|
19 |
+
dataType: 'json',
|
20 |
+
success: function (data) {
|
21 |
+
if (data.success) {
|
22 |
+
console.log('Ajax Load More successfully connected to the WordPress REST API.');
|
23 |
+
}
|
24 |
+
},
|
25 |
+
error: function (xhr, status, error) {
|
26 |
+
console.log(status);
|
27 |
+
$('.restapi-access').fadeIn();
|
28 |
+
},
|
29 |
+
});
|
30 |
+
}
|
31 |
+
|
32 |
+
/*
|
33 |
+
* Save Repeater Templates with cmd + s and ctrl + s
|
34 |
+
* @since 5.1
|
35 |
+
*/
|
36 |
+
document.addEventListener(
|
37 |
+
'keydown',
|
38 |
+
function (e) {
|
39 |
+
if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode == 83) {
|
40 |
+
if (e.target.nodeName === 'TEXTAREA' && $(e.target).closest('.repeater-wrap')) {
|
41 |
+
console.log('Saving template...');
|
42 |
+
var btn = $(e.target).closest('.repeater-wrap').find('input.save-repeater');
|
43 |
+
if (btn) {
|
44 |
+
btn.click();
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
e.preventDefault();
|
49 |
+
}
|
50 |
+
},
|
51 |
+
false
|
52 |
+
);
|
53 |
+
|
54 |
+
/*
|
55 |
+
* Set focus in code mirror editor
|
56 |
+
* @since 5.1
|
57 |
+
*/
|
58 |
+
$('label.trigger-codemirror').on('click', function () {
|
59 |
+
var el = $(this);
|
60 |
+
var id = el.data('id');
|
61 |
+
var cm = window['editor_' + id];
|
62 |
+
if (cm) {
|
63 |
+
cm.focus();
|
64 |
+
cm.setCursor(cm.lineCount(), 0);
|
65 |
+
}
|
66 |
+
});
|
67 |
+
|
68 |
+
/*
|
69 |
+
* _alm.saveSettings
|
70 |
+
* Setting panel save actions
|
71 |
+
*
|
72 |
+
* @since 3.2.0
|
73 |
+
*/
|
74 |
+
|
75 |
+
let almSettings = $('#alm_OptionsForm'),
|
76 |
+
savingSettings = false,
|
77 |
+
settingsForm = document.querySelector('#alm_OptionsForm'),
|
78 |
+
settingsTarget = document.querySelector('.alm-settings-feedback');
|
79 |
+
|
80 |
+
if (settingsForm) {
|
81 |
+
document.body.appendChild(settingsTarget);
|
82 |
+
}
|
83 |
+
|
84 |
+
_alm.saveSettings = function () {
|
85 |
+
if (savingSettings) return false;
|
86 |
+
|
87 |
+
savingSettings = true;
|
88 |
+
settingsForm.classList.add('--saving');
|
89 |
+
settingsTarget.classList.add('--saving');
|
90 |
+
settingsTarget.innerHTML = alm_admin_localize.settings_saving;
|
91 |
+
|
92 |
+
almSettings.ajaxSubmit({
|
93 |
+
// Success
|
94 |
+
success: function () {
|
95 |
+
// Delay for effect
|
96 |
+
setTimeout(function () {
|
97 |
+
settingsTarget.classList.remove('--saving');
|
98 |
+
settingsTarget.classList.add('--saved');
|
99 |
+
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
100 |
+
settingsForm.classList.remove('--saving');
|
101 |
+
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
102 |
+
savingSettings = false;
|
103 |
+
|
104 |
+
setTimeout(function () {
|
105 |
+
settingsTarget.classList.remove('--saved');
|
106 |
+
}, 2500);
|
107 |
+
}, 500);
|
108 |
+
},
|
109 |
+
|
110 |
+
// Error
|
111 |
+
error: function () {
|
112 |
+
// Delay for effect
|
113 |
+
setTimeout(function () {
|
114 |
+
settingsTarget.classList.remove('--saving');
|
115 |
+
settingsTarget.classList.add('--error');
|
116 |
+
settingsTarget.innerHTML = alm_admin_localize.settings_error;
|
117 |
+
settingsForm.classList.remove('--saving');
|
118 |
+
console.log(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);
|
119 |
+
savingSettings = false;
|
120 |
+
|
121 |
+
setTimeout(function () {
|
122 |
+
settingsTarget.classList.remove('--error');
|
123 |
+
}, 2500);
|
124 |
+
}, 500);
|
125 |
+
},
|
126 |
+
});
|
127 |
+
return false;
|
128 |
+
};
|
129 |
+
|
130 |
+
// On Change, save the settings
|
131 |
+
let settingsTimer;
|
132 |
+
$(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
|
133 |
+
// Set a timer to avoid updating settings to frequently
|
134 |
+
if (settingsTimer) clearTimeout(settingsTimer);
|
135 |
+
settingsTimer = setTimeout(function () {
|
136 |
+
_alm.saveSettings();
|
137 |
+
}, 500);
|
138 |
+
});
|
139 |
+
|
140 |
+
/*
|
141 |
+
* Download Repeater Template
|
142 |
+
* Trigger the download of a repeater template from the admin
|
143 |
+
*
|
144 |
+
* @since 3.6
|
145 |
+
*/
|
146 |
+
|
147 |
+
$('.download-repeater').on('click', function (e) {
|
148 |
+
let el = this;
|
149 |
+
el.closest('form').submit();
|
150 |
+
});
|
151 |
+
|
152 |
+
/*
|
153 |
+
* Tooltipster
|
154 |
+
* http://iamceege.github.io/tooltipster/
|
155 |
+
*
|
156 |
+
* @since 2.8.4
|
157 |
+
*/
|
158 |
+
$('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
|
159 |
+
$(this)
|
160 |
+
.tooltipster({
|
161 |
+
delay: 100,
|
162 |
+
speed: 150,
|
163 |
+
maxWidth: 325,
|
164 |
+
})
|
165 |
+
.tooltipster('show');
|
166 |
+
});
|
167 |
+
|
168 |
+
/*
|
169 |
+
* Button preview pane
|
170 |
+
* Found on Settings and Shortcode Builder
|
171 |
+
*
|
172 |
+
* @since 2.8.4
|
173 |
+
*/
|
174 |
+
$('select#alm_settings_btn_color').change(function () {
|
175 |
+
var color = jQuery(this).val();
|
176 |
+
// Remove other colors
|
177 |
+
|
178 |
+
$('.alm-btn-wrap .ajax-load-more-wrap').attr('class', 'ajax-load-more-wrap');
|
179 |
+
$('.alm-btn-wrap .ajax-load-more-wrap').addClass(color);
|
180 |
+
$('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').removeClass('loading');
|
181 |
+
|
182 |
+
// Add loading class if Infinite loading style
|
183 |
+
if (color.indexOf('infinite') >= 0) {
|
184 |
+
$('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').addClass('loading');
|
185 |
+
}
|
186 |
+
});
|
187 |
+
|
188 |
+
$('select#alm_settings_btn_color').click(function (e) {
|
189 |
+
e.preventDefault();
|
190 |
+
});
|
191 |
+
|
192 |
+
$('.alm-template-listing li a').click(function (e) {
|
193 |
+
e.preventDefault();
|
194 |
+
var el = $(this),
|
195 |
+
val = el.data('path');
|
196 |
+
el.parent().parent().next('.template-selection').val(val);
|
197 |
+
});
|
198 |
+
|
199 |
+
$('.alm-template-section-nav li a').click(function (e) {
|
200 |
+
e.preventDefault();
|
201 |
+
var el = $(this),
|
202 |
+
index = el.parent().index(),
|
203 |
+
parent = el.parent().parent().parent('.repeater-wrap');
|
204 |
+
|
205 |
+
if (!el.hasClass('active')) {
|
206 |
+
el.parent().addClass('active').siblings().removeClass('active');
|
207 |
+
$('.alm-template-toggle', parent).hide();
|
208 |
+
$('.alm-template-toggle', parent).eq(index).show();
|
209 |
+
}
|
210 |
+
});
|
211 |
+
|
212 |
+
// Copy to Clipboard
|
213 |
+
$('.copy-to-clipboard').on('click', function () {
|
214 |
+
var btn = $(this).get(0);
|
215 |
+
var input = document.querySelector('#shortcode_output');
|
216 |
+
|
217 |
+
if (input && btn) {
|
218 |
+
var old_txt = btn.innerHTML;
|
219 |
+
var copied_txt = btn.dataset.copied ? btn.dataset.copied : old_txt;
|
220 |
+
|
221 |
+
input.select();
|
222 |
+
document.execCommand('copy');
|
223 |
+
input.disabled = true;
|
224 |
+
btn.disabled = true;
|
225 |
+
input.focus();
|
226 |
+
|
227 |
+
// Set Text of Button
|
228 |
+
btn.innerHTML = copied_txt;
|
229 |
+
|
230 |
+
setTimeout(function () {
|
231 |
+
btn.innerHTML = old_txt;
|
232 |
+
input.disabled = false;
|
233 |
+
btn.disabled = false;
|
234 |
+
}, 2500);
|
235 |
+
}
|
236 |
+
});
|
237 |
+
|
238 |
+
// Copy link on repeater templates
|
239 |
+
$('.alm-dropdown .copy a').click(function () {
|
240 |
+
var container = $(this).closest('.repeater-wrap'), // find closet wrap
|
241 |
+
el = container.data('name'); // get template name
|
242 |
+
|
243 |
+
if (el === 'default') el = 'template-default';
|
244 |
+
var c = $('#' + el).val(); // Get textarea val()
|
245 |
+
_alm.copyToClipboard(c);
|
246 |
+
});
|
247 |
+
|
248 |
+
/*
|
249 |
+
* Expand/Collapse shortcode headings
|
250 |
+
*
|
251 |
+
* @since 2.0.0
|
252 |
+
*/
|
253 |
+
|
254 |
+
$(document).on('click', 'h2.shortcode-title', function () {
|
255 |
+
var el = $(this);
|
256 |
+
var parent = el.closest('.shortcode-parameter-wrap');
|
257 |
+
if (el.hasClass('open')) {
|
258 |
+
el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
259 |
+
el.removeClass('open');
|
260 |
+
parent.removeClass('closed');
|
261 |
+
});
|
262 |
+
} else {
|
263 |
+
el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
264 |
+
el.addClass('open');
|
265 |
+
parent.addClass('closed');
|
266 |
+
});
|
267 |
+
}
|
268 |
+
});
|
269 |
+
|
270 |
+
$(document).on('click', 'h3.heading', function () {
|
271 |
+
var el = $(this);
|
272 |
+
if ($(el).hasClass('open')) {
|
273 |
+
$(el)
|
274 |
+
.next('.expand-wrap')
|
275 |
+
.slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
276 |
+
$(el).removeClass('open');
|
277 |
+
});
|
278 |
+
} else {
|
279 |
+
$(el)
|
280 |
+
.next('.expand-wrap')
|
281 |
+
.slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
282 |
+
$(el).addClass('open');
|
283 |
+
});
|
284 |
+
}
|
285 |
+
});
|
286 |
+
|
287 |
+
$(document).on('click', '.toggle-all', function () {
|
288 |
+
var el = $(this),
|
289 |
+
type = el.data('id');
|
290 |
+
if (el.hasClass('closed')) {
|
291 |
+
el.removeClass('closed');
|
292 |
+
|
293 |
+
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
|
294 |
+
$('h3.heading, h2.shortcode-title').removeClass('open');
|
295 |
+
$('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
296 |
+
$('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
297 |
+
} else {
|
298 |
+
el.addClass('closed');
|
299 |
+
|
300 |
+
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
|
301 |
+
$('h3.heading, h2.shortcode-title').addClass('open');
|
302 |
+
$('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
303 |
+
$('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
304 |
+
}
|
305 |
+
});
|
306 |
+
|
307 |
+
// Trigger click events on enter/return
|
308 |
+
$('h3.heading, h2.shortcode-title').keypress(function (e) {
|
309 |
+
var key = e.which;
|
310 |
+
if (key == 13) {
|
311 |
+
// the enter key code
|
312 |
+
$(this).click();
|
313 |
+
return false;
|
314 |
+
}
|
315 |
+
});
|
316 |
+
|
317 |
+
/*
|
318 |
+
* Activate License
|
319 |
+
*
|
320 |
+
* @since 2.8.3
|
321 |
+
*/
|
322 |
+
|
323 |
+
var almActivating = false;
|
324 |
+
$(document).on('click', '.license-btn', function (e) {
|
325 |
+
e.preventDefault();
|
326 |
+
|
327 |
+
if (!almActivating) {
|
328 |
+
$('.license-btn-wrap .msg').remove();
|
329 |
+
almActivating = true;
|
330 |
+
|
331 |
+
var el = $(this),
|
332 |
+
wrap = el.closest('.license-btn-wrap'),
|
333 |
+
parent = el.closest('.license'),
|
334 |
+
type = el.data('type'),
|
335 |
+
item = wrap.data('name'),
|
336 |
+
url = wrap.data('url'),
|
337 |
+
upgrade = wrap.data('upgrade-url'),
|
338 |
+
status = wrap.data('option-status'),
|
339 |
+
key = wrap.data('option-key'),
|
340 |
+
license = parent.find('input[type=text]').val();
|
341 |
+
|
342 |
+
$('.loading', parent).fadeIn(300);
|
343 |
+
|
344 |
+
// Get value from Ajax
|
345 |
+
$.ajax({
|
346 |
+
type: 'GET',
|
347 |
+
url: alm_admin_localize.ajax_admin_url,
|
348 |
+
dataType: 'json',
|
349 |
+
|
350 |
+
data: {
|
351 |
+
action: 'alm_license_activation',
|
352 |
+
nonce: alm_admin_localize.alm_admin_nonce,
|
353 |
+
type: type,
|
354 |
+
item: item,
|
355 |
+
status: status,
|
356 |
+
url: url,
|
357 |
+
upgrade: upgrade,
|
358 |
+
key: key,
|
359 |
+
license: license,
|
360 |
+
},
|
361 |
+
|
362 |
+
success: function (data) {
|
363 |
+
if (data.msg) {
|
364 |
+
$('.license-btn-wrap', parent).append('<div class="msg">' + data.msg + '</div>');
|
365 |
+
}
|
366 |
+
|
367 |
+
if (data.license === 'valid') {
|
368 |
+
$('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
|
369 |
+
$('.license-title .status', parent).addClass('valid').removeClass('invalid');
|
370 |
+
$('.activate.license-btn', parent).addClass('hide');
|
371 |
+
$('.check-licence.license-btn', parent).addClass('hide');
|
372 |
+
$('.deactivate.license-btn', parent).removeClass('hide');
|
373 |
+
$('.renew-btn', parent).addClass('hide');
|
374 |
+
$('.no-license', parent).slideUp(200);
|
375 |
+
} else {
|
376 |
+
$('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
|
377 |
+
$('.license-title .status', parent).removeClass('valid').addClass('invalid');
|
378 |
+
$('.activate.license-btn', parent).removeClass('hide');
|
379 |
+
$('.check-licence.license-btn', parent).addClass('hide');
|
380 |
+
$('.deactivate.license-btn', parent).addClass('hide');
|
381 |
+
$('.no-license', parent).slideDown(200);
|
382 |
+
}
|
383 |
+
|
384 |
+
$('.loading', parent).delay(250).fadeOut(300);
|
385 |
+
almActivating = false;
|
386 |
+
},
|
387 |
+
|
388 |
+
error: function (xhr, status, error) {
|
389 |
+
console.log(status);
|
390 |
+
$('.loading', parent).delay(250).fadeOut(300);
|
391 |
+
almActivating = false;
|
392 |
+
},
|
393 |
+
});
|
394 |
+
}
|
395 |
+
});
|
396 |
+
|
397 |
+
/*
|
398 |
+
* Get layout value Ajax
|
399 |
+
* @since 2.8.7
|
400 |
+
*/
|
401 |
+
$(document).on('click', '.alm-layout-selection li a.layout', function (e) {
|
402 |
+
e.preventDefault();
|
403 |
+
var el = $(this),
|
404 |
+
type = el.data('type'),
|
405 |
+
custom = el.hasClass('custom') ? 'true' : 'false',
|
406 |
+
textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
|
407 |
+
layout_btn_text = el.html(),
|
408 |
+
name = el.closest('.repeater-wrap').data('name');
|
409 |
+
|
410 |
+
if (!el.hasClass('updating')) {
|
411 |
+
el.addClass('updating').text(alm_admin_localize.applying_layout + '...');
|
412 |
+
textarea.addClass('loading');
|
413 |
+
|
414 |
+
// Get Codemirror Editor ID
|
415 |
+
var eid = '';
|
416 |
+
if (name === 'default') {
|
417 |
+
// Default Template
|
418 |
+
eid = window.editor_default;
|
419 |
+
} else {
|
420 |
+
// Repeater Templates
|
421 |
+
eid = window['editor_' + name];
|
422 |
+
}
|
423 |
+
|
424 |
+
// Get value from Ajax
|
425 |
+
$.ajax({
|
426 |
+
type: 'GET',
|
427 |
+
url: alm_admin_localize.ajax_admin_url,
|
428 |
+
data: {
|
429 |
+
action: 'alm_get_layout',
|
430 |
+
type: type,
|
431 |
+
custom: custom,
|
432 |
+
nonce: alm_admin_localize.alm_admin_nonce,
|
433 |
+
},
|
434 |
+
dataType: 'JSON',
|
435 |
+
success: function (data) {
|
436 |
+
eid.setValue(data.value);
|
437 |
+
|
438 |
+
// Clear button styles
|
439 |
+
setTimeout(function () {
|
440 |
+
el.text(alm_admin_localize.template_updated).blur();
|
441 |
+
setTimeout(function () {
|
442 |
+
el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
|
443 |
+
el.closest('.alm-drop-btn').trigger('click');
|
444 |
+
textarea.removeClass('loading');
|
445 |
+
}, 400);
|
446 |
+
}, 400);
|
447 |
+
},
|
448 |
+
error: function (xhr, status, error) {
|
449 |
+
console.log(status);
|
450 |
+
textarea.removeClass('loading');
|
451 |
+
},
|
452 |
+
});
|
453 |
+
}
|
454 |
+
});
|
455 |
+
|
456 |
+
/*
|
457 |
+
* Dismiss Sharing (Transient)
|
458 |
+
* @since 2.8.7
|
459 |
+
*/
|
460 |
+
$(document).on('click', '.alm-notification--dismiss', function (e) {
|
461 |
+
e.preventDefault();
|
462 |
+
var el = $(this),
|
463 |
+
container = el.parent('.cta');
|
464 |
+
|
465 |
+
// Get value from Ajax
|
466 |
+
$.ajax({
|
467 |
+
type: 'POST',
|
468 |
+
url: alm_admin_localize.ajax_admin_url,
|
469 |
+
data: {
|
470 |
+
action: 'alm_dismiss_sharing',
|
471 |
+
nonce: alm_admin_localize.alm_admin_nonce,
|
472 |
+
},
|
473 |
+
success: function (data) {
|
474 |
+
container.fadeOut();
|
475 |
+
},
|
476 |
+
error: function (xhr, status, error) {
|
477 |
+
console.log(status);
|
478 |
+
},
|
479 |
+
});
|
480 |
+
});
|
481 |
+
|
482 |
+
/*
|
483 |
+
* Set Transient (Transient)
|
484 |
+
* @since 4.0
|
485 |
+
*/
|
486 |
+
$(document).on('click', '.alm-transient button.notice-dismiss', function (e) {
|
487 |
+
e.preventDefault();
|
488 |
+
var el = $(this),
|
489 |
+
container = el.parent('.alm-transient'),
|
490 |
+
transient_name = container.data('transient'),
|
491 |
+
duration = container.data('duration');
|
492 |
+
|
493 |
+
// Get value from Ajax
|
494 |
+
$.ajax({
|
495 |
+
type: 'POST',
|
496 |
+
url: alm_admin_localize.ajax_admin_url,
|
497 |
+
data: {
|
498 |
+
action: 'alm_set_transient',
|
499 |
+
nonce: alm_admin_localize.alm_admin_nonce,
|
500 |
+
transient_name: transient_name,
|
501 |
+
duration: duration,
|
502 |
+
},
|
503 |
+
success: function (data) {
|
504 |
+
container.fadeOut();
|
505 |
+
},
|
506 |
+
error: function (xhr, status, error) {
|
507 |
+
console.log(status);
|
508 |
+
},
|
509 |
+
});
|
510 |
+
});
|
511 |
+
|
512 |
+
/*
|
513 |
+
* Scroll to setting section
|
514 |
+
* @since 2.7.3
|
515 |
+
*/
|
516 |
+
|
517 |
+
$(document).on('change', '#alm-settings-nav', function (e) {
|
518 |
+
e.preventDefault();
|
519 |
+
var el = $(this),
|
520 |
+
index = $('option:selected', el).index();
|
521 |
+
if (index !== '#') {
|
522 |
+
index = index - 1;
|
523 |
+
$('html, body').animate(
|
524 |
+
{
|
525 |
+
scrollTop: $('#alm_OptionsForm h2').eq(index).offset().top - 40,
|
526 |
+
},
|
527 |
+
500
|
528 |
+
);
|
529 |
+
}
|
530 |
+
});
|
531 |
+
});
|
admin/src/js/libs/jquery.drops.js
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var drops = drops || {};
|
2 |
+
|
3 |
+
jQuery(document).ready(function($) {
|
4 |
+
"use strict";
|
5 |
+
|
6 |
+
drops.dropdown = function(e) {
|
7 |
+
var el = e.parent();
|
8 |
+
var dropdown = $('.alm-dropdown', el);
|
9 |
+
var text = $('input[type="text"]', el);
|
10 |
+
|
11 |
+
if($(el).hasClass('active')){//If is currently active, hide it
|
12 |
+
el.removeClass('active');
|
13 |
+
$('.alm-dropdown', el).removeClass('active');
|
14 |
+
return false;
|
15 |
+
}
|
16 |
+
else if($('.alm-dropdown').hasClass('active')){
|
17 |
+
$('.alm-dropdown').each(function(i){
|
18 |
+
$(this).removeClass('active');
|
19 |
+
$(this).parent().removeClass('active');
|
20 |
+
});
|
21 |
+
}
|
22 |
+
|
23 |
+
$('.alm-dropdown').removeClass('active');//remove active states from currently open dropdowns
|
24 |
+
el.addClass('active');
|
25 |
+
$('.alm-dropdown', el).addClass('active');
|
26 |
+
text.focus(); //Focus on input boxes
|
27 |
+
|
28 |
+
$(window).unbind('click').bind('click', drops.closeDropDown); // Bind click event to site container
|
29 |
+
|
30 |
+
dropdown.unbind('click').bind('click', function(event){
|
31 |
+
//event.stopPropagation();
|
32 |
+
});
|
33 |
+
//http://stackoverflow.com/questions/10439779/closing-modal-popup-by-clicking-away-from-it
|
34 |
+
};
|
35 |
+
drops.closeDropDown = function() {
|
36 |
+
$('.alm-dropdown').each(function(i) {
|
37 |
+
$(this).removeClass('active');
|
38 |
+
$(this).parent().removeClass('active');
|
39 |
+
});
|
40 |
+
};
|
41 |
+
|
42 |
+
//Dropdown links
|
43 |
+
$(document).on('click', '.alm-drop-btn a.target', function(){
|
44 |
+
var e = $(this);
|
45 |
+
drops.dropdown(e);
|
46 |
+
return false;
|
47 |
+
});
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
});
|
admin/src/js/libs/jquery.tooltipster.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
/* 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(e,t){},functionBefore:function(e,t){t()},functionReady:function(e,t){},functionAfter:function(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(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(){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('<span class="'+t.options.iconTheme+'"></span>');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(){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(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(){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('<div class="tooltipster-base '+r.options.theme+'" style="'+f+" "+c+" "+h+" "+a+'"><div class="tooltipster-content"></div></div>');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(){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(){clearInterval(this.checkInterval);this.checkInterval=null},_content_set:function(e){if(typeof e==="object"&&e!==null&&this.options.contentCloning){e=e.clone(true)}this.Content=e},_content_insert:function(){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(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(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(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(){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(){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(e){this._showNow(e);return this},update:function(e){return this.content(e)},content:function(e){if(typeof e==="undefined"){return this.Content}else{this._update(e);return this}},reposition:function(){var n=this;if(e("body").find(n.$tooltip).length!==0){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;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}}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}}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='<span class="tooltipster-arrow-border" style="'+V+" "+J+';"></span>'}n.$tooltip.find(".tooltipster-arrow").remove();var K='<div class="'+R+' tooltipster-arrow" style="'+r+'">'+X+'<span style="border-color:'+U+';"></span></div>';n.$tooltip.append(K)}n.$tooltip.css({top:Math.round(M)+"px",left:Math.round(A)+"px"})}return n},enable:function(){this.enabled=true;return this},disable:function(){this.hide();this.enabled=false;return this},destroy:function(){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("<div></div>").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(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:undefined},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:undefined},option:function(e,t){if(typeof t=="undefined")return this.options[e];else{this.options[e]=t;return this}},status:function(){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);
|
admin/src/js/libs/select2.min.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
SELECT 2 FORM REPLACEMNT
|
3 |
+
*/
|
4 |
+
(function(a){a.fn.each2===void 0&&a.fn.extend({each2:function(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("<span class='select2-match'>"),d.push(e(a.substring(f,f+g))),d.push("</span>"),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(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(a){return""+a.text};a.isArray(d)&&(f=d,d={results:f}),a.isFunction(d)===!1&&(f=d,d=function(){return f});var h=d();return h.text&&(g=h.text,a.isFunction(g)||(e=d.text,g=function(a){return a[e]})),function(c){var h,e=c.term,f={results:[]};return""===e?(c.callback(d()),b):(h=function(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(){};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(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(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(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(a){var b=this;return function(){a.apply(b,arguments)}},init:function(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(){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(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 <select> element.")}),c=a.extend({},{populateResults:function(d,e,f){var g,k=this.opts.id,l=this;g=function(d,e,h){var i,j,m,n,o,p,q,r,s,t;for(d=c.sortResults(d,e,f),i=0,j=d.length;j>i;i+=1)m=d[i],o=m.disabled===!0,n=!o&&k(m)!==b,p=m.children&&m.children.length>0,q=a("<li></li>"),q.addClass("select2-results-dept-"+h),q.addClass("select2-result"),q.addClass(n?"select2-result-selectable":"select2-result-unselectable"),o&&q.addClass("select2-disabled"),p&&q.addClass("select2-result-with-children"),q.addClass(l.opts.formatResultCssClass(m)),r=a(document.createElement("div")),r.addClass("select2-result-label"),t=c.formatResult(m,r,f,l.opts.escapeMarkup),t!==b&&r.html(t),q.append(r),p&&(s=a("<ul></ul>"),s.addClass("select2-result-sub"),g(m.children,s,h+1),q.append(s)),q.data("select2-data",m),e.append(q)},g(e,d,0)}},a.fn.select2.defaults,c),"function"!=typeof c.id&&(f=c.id,c.id=function(a){return a[f]}),a.isArray(c.element.data("select2Tags"))){if("tags"in c)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+c.element.attr("id");c.tags=c.element.data("select2Tags")}if(e?(c.query=this.bind(function(c){var g,h,i,e={results:[],more:!1},f=c.term;i=function(a,b){var d;a.is("option")?c.matcher(f,a.text(),a)&&b.push({id:a.attr("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:l(a.attr("disabled"),"disabled")}):a.is("optgroup")&&(d={text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")},a.children().each2(function(a,b){i(b,d.children)}),d.children.length>0&&b.push(d))},g=d.children(),this.getPlaceholder()!==b&&g.length>0&&(h=g[0],""===a(h).text()&&(g=g.not(h))),g.each2(function(a,b){i(b,e.results)}),c.callback(e)}),c.id=function(a){return a.id},c.formatResultCssClass=function(a){return a.css}):"query"in c||("ajax"in c?(g=c.element.data("ajax-url"),g&&g.length>0&&(c.ajax.url=g),c.query=z.call(c.element,c.ajax)):"data"in c?c.query=A(c.data):"tags"in c&&(c.query=B(c.tags),c.createSearchChoice===b&&(c.createSearchChoice=function(a){return{id:a,text:a}}),c.initSelection===b&&(c.initSelection=function(d,e){var f=[];a(m(d.val(),c.separator)).each(function(){var d=this,e=this,g=c.tags;a.isFunction(g)&&(g=g()),a(g).each(function(){return l(this.id,d)?(e=this.text,!1):b}),f.push({id:d,text:e})}),e(f)}))),"function"!=typeof c.query)throw"query function not defined for Select2 "+c.element.attr("id");return c},monitorSource:function(){var b,a=this.opts.element;a.bind("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),b=this.bind(function(){var a,b;a="disabled"!==this.opts.element.attr("disabled"),b="readonly"===this.opts.element.attr("readonly"),a=a&&!b,this.enabled!==a&&(a?this.enable():this.disable()),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(D(this.opts.containerCssClass)),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(D(this.opts.dropdownCssClass))}),a.bind("propertychange.select2 DOMAttrModified.select2",b),"undefined"!=typeof WebKitMutationObserver&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new WebKitMutationObserver(function(a){a.forEach(b)}),this.propertyObserver.observe(a.get(0),{attributes:!0,subtree:!1}))},triggerChange:function(b){b=b||{},b=a.extend({},b,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(b),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},enable:function(){this.enabled||(this.enabled=!0,this.container.removeClass("select2-container-disabled"),this.opts.element.removeAttr("disabled"))},disable:function(){this.enabled&&(this.close(),this.enabled=!1,this.container.addClass("select2-container-disabled"),this.opts.element.attr("disabled","disabled"))},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var o,p,q,b=this.container.offset(),c=this.container.outerHeight(!1),d=this.container.outerWidth(!1),e=this.dropdown.outerHeight(!1),f=a(window).scrollLeft()+a(window).width(),g=a(window).scrollTop()+a(window).height(),h=b.top+c,i=b.left,j=g>=h+e,k=b.top-e>=this.body().scrollTop(),l=this.dropdown.outerWidth(!1),m=f>=i+l,n=this.dropdown.hasClass("select2-drop-above");"static"!==this.body().css("position")&&(o=this.body().offset(),h-=o.top,i-=o.left),n?(p=!0,!k&&j&&(p=!1)):(p=!1,!j&&k&&(p=!0)),m||(i=b.left+d-l),p?(h=b.top-e,this.container.addClass("select2-drop-above"),this.dropdown.addClass("select2-drop-above")):(this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")),q=a.extend({top:h,left:i,width:d},D(this.opts.dropdownCss)),this.dropdown.css(q)},shouldOpen:function(){var b;return this.opened()?!1:(b=a.Event("opening"),this.opts.element.trigger(b),!b.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(window.setTimeout(this.bind(this.opening),1),!0):!1},opening:function(){function h(){return{width:Math.max(document.documentElement.scrollWidth,a(window).width()),height:Math.max(document.documentElement.scrollHeight,a(window).height())}}var f,b=this.containerId,c="scroll."+b,d="resize."+b,e="orientationchange."+b;this.clearDropdownAlignmentPreference(),this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),this.updateResults(!0),f=a("#select2-drop-mask"),0==f.length&&(f=a(document.createElement("div")),f.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),f.hide(),f.appendTo(this.body()),f.bind("mousedown touchstart",function(){var d,c=a("#select2-drop");c.length>0&&(d=c.data("select2"),d.opts.selectOnBlur&&d.selectHighlighted({noFocus:!0}),d.close())})),this.dropdown.prev()[0]!==f[0]&&this.dropdown.before(f),a("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),f.css(h()),f.show(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this.ensureHighlightVisible();var g=this;this.container.parents().add(window).each(function(){a(this).bind(d+" "+c+" "+e,function(){a("#select2-drop-mask").css(h()),g.positionDropdown()})}),this.focusSearch()},close:function(){if(this.opened()){var b=this.containerId,c="scroll."+b,d="resize."+b,e="orientationchange."+b;this.container.parents().add(window).each(function(){a(this).unbind(c).unbind(d).unbind(e)}),this.clearDropdownAlignmentPreference(),a("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(a.Event("close"))}},clearSearch:function(){},getMaximumSelectionSize:function(){return D(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var d,e,f,g,h,i,j,c=this.results;if(e=this.highlight(),!(0>e)){if(0==e)return c.scrollTop(0),b;d=this.findHighlightableChoices(),f=a(d[e]),g=f.offset().top+f.outerHeight(!0),e===d.length-1&&(j=c.find("li.select2-more-results"),j.length>0&&(g=j.offset().top+j.outerHeight(!0))),h=c.offset().top+c.outerHeight(!0),g>h&&c.scrollTop(c.scrollTop()+(g-h)),i=f.offset().top-c.offset().top,0>i&&"none"!=f.css("display")&&c.scrollTop(c.scrollTop()+i)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)"),this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)")},moveHighlight:function(b){for(var c=this.findHighlightableChoices(),d=this.highlight();d>-1&&c.length>d;){d+=b;var e=a(c[d]);if(e.hasClass("select2-result-selectable")&&!e.hasClass("select2-disabled")&&!e.hasClass("select2-selected")){this.highlight(d);break}}},highlight:function(c){var e,f,d=this.findHighlightableChoices();return 0===arguments.length?k(d.filter(".select2-highlighted")[0],d.get()):(c>=d.length&&(c=d.length-1),0>c&&(c=0),this.results.find(".select2-highlighted").removeClass("select2-highlighted"),e=a(d[c]),e.addClass("select2-highlighted"),this.ensureHighlightVisible(),f=e.data("select2-data"),f&&this.opts.element.trigger({type:"highlight",val:this.id(f),choice:f}),b)},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(b){var c=a(b.target).closest(".select2-result-selectable");if(c.length>0&&!c.is(".select2-highlighted")){var d=this.findHighlightableChoices();this.highlight(d.index(c))}else 0==c.length&&this.results.find(".select2-highlighted").removeClass("select2-highlighted")},loadMoreIfNeeded:function(){var c,a=this.results,b=a.find("li.select2-more-results"),e=this.resultsPage+1,f=this,g=this.search.val(),h=this.context;0!==b.length&&(c=b.offset().top-a.offset().top-a.height(),this.opts.loadMorePadding>=c&&(b.addClass("select2-active"),this.opts.query({element:this.opts.element,term:g,page:e,context:h,matcher:this.opts.matcher,callback:this.bind(function(c){f.opened()&&(f.opts.populateResults.call(this,a,c.results,{term:g,page:e,context:h}),f.postprocessResults(c,!1,!1),c.more===!0?(b.detach().appendTo(a).text(f.opts.formatLoadMore(e+1)),window.setTimeout(function(){f.loadMoreIfNeeded()},10)):b.remove(),f.positionDropdown(),f.resultsPage=e,f.context=c.context)})})))},tokenize:function(){},updateResults:function(c){function m(){e.scrollTop(0),d.removeClass("select2-active"),h.positionDropdown()}function n(a){e.html(a),m()}var g,i,d=this.search,e=this.results,f=this.opts,h=this,j=d.val(),k=a.data(this.container,"select2-last-term");if((c===!0||!k||!l(j,k))&&(a.data(this.container,"select2-last-term",j),c===!0||this.showSearchInput!==!1&&this.opened())){var o=this.getMaximumSelectionSize();if(o>=1&&(g=this.data(),a.isArray(g)&&g.length>=o&&C(f.formatSelectionTooBig,"formatSelectionTooBig")))return n("<li class='select2-selection-limit'>"+f.formatSelectionTooBig(o)+"</li>"),b;if(d.val().length<f.minimumInputLength)return C(f.formatInputTooShort,"formatInputTooShort")?n("<li class='select2-no-results'>"+f.formatInputTooShort(d.val(),f.minimumInputLength)+"</li>"):n(""),b;if(f.maximumInputLength&&d.val().length>f.maximumInputLength)return C(f.formatInputTooLong,"formatInputTooLong")?n("<li class='select2-no-results'>"+f.formatInputTooLong(d.val(),f.maximumInputLength)+"</li>"):n(""),b;f.formatSearching&&0===this.findHighlightableChoices().length&&n("<li class='select2-searching'>"+f.formatSearching()+"</li>"),d.addClass("select2-active"),i=this.tokenize(),i!=b&&null!=i&&d.val(i),this.resultsPage=1,f.query({element:f.element,term:d.val(),page:this.resultsPage,context:null,matcher:f.matcher,callback:this.bind(function(g){var i;return this.opened()?(this.context=g.context===b?null:g.context,this.opts.createSearchChoice&&""!==d.val()&&(i=this.opts.createSearchChoice.call(null,d.val(),g.results),i!==b&&null!==i&&h.id(i)!==b&&null!==h.id(i)&&0===a(g.results).filter(function(){return l(h.id(this),h.id(i))}).length&&g.results.unshift(i)),0===g.results.length&&C(f.formatNoMatches,"formatNoMatches")?(n("<li class='select2-no-results'>"+f.formatNoMatches(d.val())+"</li>"),b):(e.empty(),h.opts.populateResults.call(this,e,g.results,{term:d.val(),page:this.resultsPage,context:null}),g.more===!0&&C(f.formatLoadMore,"formatLoadMore")&&(e.append("<li class='select2-more-results'>"+h.opts.escapeMarkup(f.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(g,c),m(),this.opts.element.trigger({type:"loaded",data:g}),b)):(this.search.removeClass("select2-active"),b)})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){t(this.search)},selectHighlighted:function(a){var b=this.highlight(),c=this.results.find(".select2-highlighted"),d=c.closest(".select2-result").data("select2-data");d&&(this.highlight(b),this.onSelect(d,a))},getPlaceholder:function(){return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder},initContainerWidth:function(){function c(){var c,d,e,f,g;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(c=this.opts.element.attr("style"),c!==b)for(d=c.split(";"),f=0,g=d.length;g>f;f+=1)if(e=d[f].replace(/\s/g,"").match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/),null!==e&&e.length>=1)return e[1];return"resolve"===this.opts.width?(c=this.opts.element.css("width"),c.indexOf("%")>0?c:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return a.isFunction(this.opts.width)?this.opts.width():this.opts.width}var d=c.call(this);null!==d&&this.container.css("width",d)}}),e=G(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>"," <span></span><abbr class='select2-search-choice-close' style='display:none;'></abbr>"," <div><b></b></div>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop' style='display:none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return b},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.focusser.attr("disabled","disabled"))},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.focusser.removeAttr("disabled"))},opening:function(){this.parent.opening.apply(this,arguments),this.focusser.attr("disabled","disabled"),this.opts.element.trigger(a.Event("open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.removeAttr("disabled"),t(this.focusser))},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},initContainer:function(){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(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(){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(){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(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(){return this.select&&""!==this.select.find("option").first().text()?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){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(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(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(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(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(){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(){this.search.val(""),this.focusser.val("")},data:function(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(){var b=a(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html([" <ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi' style='display:none;'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return b},prepareOpts:function(){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(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(){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()))
|
5 |
+
})),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(){this.enabled||(this.parent.enable.apply(this,arguments),this.search.removeAttr("disabled"))},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.search.attr("disabled",!0))},initSelection:function(){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(){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(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.opts.element.trigger(a.Event("open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(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(){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(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(){this.close(),this.focusSearch()},addSelectedChoice:function(c){var j,d=!c.locked,e=a("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),f=a("<li class='select2-search-choice select2-locked'><div></div></li>"),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("<div>"+this.opts.escapeMarkup(j)+"</div>"),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(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(){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(){return this.selection.width()-n(this.search)},resizeSearch:function(){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(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),m(a,this.opts.separator))},setVal:function(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(){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(){if(this.select)throw Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){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(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(a,b,c,d){var e=[];return y(a.text,c.term,e,d),e.join("")},formatSelection:function(a){return a?a.text:b},sortResults:function(a){return a},formatResultCssClass:function(){return b},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a.id},matcher:function(a,b){return(""+b).toUpperCase().indexOf((""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:F,escapeMarkup:function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return(a+"").replace(/[&<>"'\/\\]/g,function(a){return b[a[0]]})},blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null}},window.Select2={query:{ajax:z,local:A,tags:B},util:{debounce:q,markMatch:y},"class":{"abstract":d,single:e,multi:f}}}}(jQuery);
|
admin/src/js/modules/sticky.js
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var alm = alm || {};
|
2 |
+
|
3 |
+
/*
|
4 |
+
* alm.attachSticky
|
5 |
+
*/
|
6 |
+
alm.attachSticky = (el, anchor, top = 0) => {
|
7 |
+
let h = el.offsetHeight + top, // height of sticky el
|
8 |
+
anchorOffset = anchor.getBoundingClientRect(),
|
9 |
+
anchor_top = anchorOffset.top,
|
10 |
+
w_height = window.innerHeight, // Window height
|
11 |
+
el_height = el.offsetHeight; // element height
|
12 |
+
|
13 |
+
if(w_height > (el_height + top)){
|
14 |
+
// If container height > than sticky height
|
15 |
+
if(anchor_top <= top) {
|
16 |
+
el.classList.add('attached');
|
17 |
+
} else {
|
18 |
+
if(anchor_top > top) {
|
19 |
+
el.classList.remove('attached');
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
23 |
+
};
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
/*
|
28 |
+
* alm.resizeSticky
|
29 |
+
*/
|
30 |
+
alm.resizeSticky = () => {
|
31 |
+
let sticky = document.getElementById('cnkt-sticky');
|
32 |
+
let el = document.getElementById('cnkt-sticky-wrapper');
|
33 |
+
let atts = window.getComputedStyle(el);
|
34 |
+
sticky.style.width = atts.width;
|
35 |
+
}
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
/*
|
40 |
+
* initSticky
|
41 |
+
*/
|
42 |
+
const initSticky = () => {
|
43 |
+
if(document.getElementById("cnkt-sticky-wrapper")){
|
44 |
+
const sticky_el = document.getElementById('cnkt-sticky');
|
45 |
+
const sticky_anchor = document.getElementById('cnkt-sticky-wrapper');
|
46 |
+
const sticky_top = 70; // The position the sticky should stick
|
47 |
+
|
48 |
+
// Scroll
|
49 |
+
window.addEventListener('scroll', function(e) {
|
50 |
+
alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
|
51 |
+
});
|
52 |
+
// Resize
|
53 |
+
window.addEventListener('resize', function(e) {
|
54 |
+
alm.resizeSticky();
|
55 |
+
});
|
56 |
+
// Init
|
57 |
+
alm.resizeSticky();
|
58 |
+
alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
|
59 |
+
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
window.onload = function(){
|
64 |
+
initSticky();
|
65 |
+
}
|
admin/src/scss/_variables.scss
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$gutter: 25px;
|
2 |
+
$padding: 15px;
|
3 |
+
$grey: #555;
|
4 |
+
$green: #8ed074;
|
5 |
+
$green_hover: #57bda4;
|
6 |
+
$yellow: #ffffe8;
|
7 |
+
$yellow_dark: #e4e4c8;
|
8 |
+
$red: #e06464;
|
9 |
+
$light_grey: #f7f7f7;
|
10 |
+
$light_border: #f1f1f1;
|
11 |
+
$grey_blue: #f8f9fb;
|
12 |
+
$border: #e1e1e1;
|
13 |
+
$border_hover: #ccc;
|
14 |
+
$radius: 3px;
|
15 |
+
|
16 |
+
$small: 480px;
|
admin/src/scss/admin.scss
ADDED
@@ -0,0 +1,3893 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
|
2 |
+
@import 'libs/tooltipster';
|
3 |
+
@import 'libs/select2';
|
4 |
+
@import 'variables';
|
5 |
+
@import 'partials/header';
|
6 |
+
@import 'partials/pro-listing';
|
7 |
+
@import 'partials/codemirror';
|
8 |
+
@import 'partials/sidebar';
|
9 |
+
@import 'partials/alm-settings-feedback';
|
10 |
+
@import 'partials/select2';
|
11 |
+
@import 'partials/shortcode-builder';
|
12 |
+
@import 'partials/woocommerce';
|
13 |
+
@import 'partials/builder-option-toggle';
|
14 |
+
@import 'partials/template-tags';
|
15 |
+
|
16 |
+
body.toplevel_page_ajax-load-more,
|
17 |
+
body.ajax-load-more_page_ajax-load-more-repeaters,
|
18 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder,
|
19 |
+
body.ajax-load-more_page_ajax-load-more-add-ons,
|
20 |
+
body.ajax-load-more_page_ajax-load-more-extensions,
|
21 |
+
body.ajax-load-more_page_ajax-load-more-help,
|
22 |
+
body.ajax-load-more_page_ajax-load-more-licenses,
|
23 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
24 |
+
body.ajax-load-more_page_ajax-load-more-filters,
|
25 |
+
body.ajax-load-more_page_ajax-load-more-pro,
|
26 |
+
body.ajax-load-more_page_ajax-load-more-go-pro,
|
27 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce {
|
28 |
+
height: auto !important;
|
29 |
+
#wpcontent {
|
30 |
+
padding-left: 0;
|
31 |
+
padding-bottom: 20px;
|
32 |
+
//background-color: #efefef;
|
33 |
+
}
|
34 |
+
#wpbody-content {
|
35 |
+
padding-bottom: 0;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
body.toplevel_page_ajax-load-more,
|
39 |
+
body.ajax-load-more_page_ajax-load-more-repeaters,
|
40 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder,
|
41 |
+
body.ajax-load-more_page_ajax-load-more-add-ons,
|
42 |
+
body.ajax-load-more_page_ajax-load-more-extensions,
|
43 |
+
body.ajax-load-more_page_ajax-load-more-help,
|
44 |
+
body.ajax-load-more_page_ajax-load-more-licenses,
|
45 |
+
body.ajax-load-more_page_ajax-load-more-cache,
|
46 |
+
body.ajax-load-more_page_ajax-load-more-filters,
|
47 |
+
body.ajax-load-more_page_ajax-load-more-pro,
|
48 |
+
body.ajax-load-more_page_ajax-load-more-go-pro,
|
49 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce {
|
50 |
+
//background: #efefef;
|
51 |
+
#wpfooter {
|
52 |
+
padding-top: 0;
|
53 |
+
padding-bottom: 0;
|
54 |
+
line-height: 42px;
|
55 |
+
background: $grey_blue;
|
56 |
+
border-top: 1px solid $border;
|
57 |
+
position: fixed;
|
58 |
+
bottom: 0;
|
59 |
+
z-index: 1100;
|
60 |
+
p {
|
61 |
+
line-height: 42px;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
}
|
65 |
+
.main-cnkt-wrap {
|
66 |
+
padding: 0 !important;
|
67 |
+
margin: 0 !important;
|
68 |
+
}
|
69 |
+
.ajax-load-more-inner-wrapper {
|
70 |
+
padding: $padding $padding $padding * 3;
|
71 |
+
display: block;
|
72 |
+
clear: both;
|
73 |
+
max-width: 1440px;
|
74 |
+
position: relative;
|
75 |
+
}
|
76 |
+
|
77 |
+
.ajax-load-more .alm-transient {
|
78 |
+
padding: 6px 12px;
|
79 |
+
p {
|
80 |
+
margin: 0.5em 0;
|
81 |
+
a {
|
82 |
+
font-weight: 600;
|
83 |
+
}
|
84 |
+
}
|
85 |
+
a.button {
|
86 |
+
position: static;
|
87 |
+
vertical-align: inherit !important;
|
88 |
+
}
|
89 |
+
button {
|
90 |
+
transform: translateY(-50%);
|
91 |
+
top: 50%;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
// Styled Buttons
|
96 |
+
#wpcontent .ajax-load-more {
|
97 |
+
.button:not(.button-primary),
|
98 |
+
.button.button-secondary {
|
99 |
+
border-color: #ccc;
|
100 |
+
color: #444;
|
101 |
+
background-color: #f3f5f6;
|
102 |
+
&:hover,
|
103 |
+
&:active,
|
104 |
+
&:focus {
|
105 |
+
color: #222;
|
106 |
+
border-color: #999;
|
107 |
+
background-color: #f1f1f1;
|
108 |
+
box-shadow: none;
|
109 |
+
}
|
110 |
+
&:focus {
|
111 |
+
background-color: #e7e7e7;
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
+
/*
|
117 |
+
* Admin - Popup Generator
|
118 |
+
*
|
119 |
+
* @since 1.0
|
120 |
+
*/
|
121 |
+
|
122 |
+
.ajax-load-more * {
|
123 |
+
box-sizing: border-box;
|
124 |
+
}
|
125 |
+
.forceColors {
|
126 |
+
background: #fff !important;
|
127 |
+
}
|
128 |
+
.offscreen {
|
129 |
+
position: absolute;
|
130 |
+
left: -9999px;
|
131 |
+
}
|
132 |
+
.ajax-load-more {
|
133 |
+
font-size: 14px;
|
134 |
+
color: #666;
|
135 |
+
position: relative;
|
136 |
+
max-width: 100%;
|
137 |
+
}
|
138 |
+
#alm-help.ajax-load-more {
|
139 |
+
max-width: 1600px;
|
140 |
+
}
|
141 |
+
.ajax-load-more img {
|
142 |
+
max-width: 100%;
|
143 |
+
}
|
144 |
+
#alm-container {
|
145 |
+
overflow: hidden;
|
146 |
+
padding: 15px 10px 140px !important;
|
147 |
+
}
|
148 |
+
#alm-settings {
|
149 |
+
.admin-select {
|
150 |
+
width: 100%;
|
151 |
+
display: block;
|
152 |
+
padding: 0 0 25px;
|
153 |
+
margin: -10px 0 0;
|
154 |
+
.select2-container {
|
155 |
+
width: 40%;
|
156 |
+
min-width: 40%;
|
157 |
+
display: inline-block;
|
158 |
+
vertical-align: top;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
}
|
162 |
+
|
163 |
+
/* Saved Settings */
|
164 |
+
|
165 |
+
#alm-settings .row.alm-save-settings {
|
166 |
+
padding-bottom: 5px !important;
|
167 |
+
}
|
168 |
+
|
169 |
+
#alm-settings form {
|
170 |
+
h2 {
|
171 |
+
padding: 20px 20px 5px 5px;
|
172 |
+
margin: 0;
|
173 |
+
font-weight: 700;
|
174 |
+
border-radius: 2px 2px 0 0;
|
175 |
+
&:first-of-type {
|
176 |
+
padding-top: 0;
|
177 |
+
}
|
178 |
+
+ p {
|
179 |
+
color: #999;
|
180 |
+
padding: 0 20px 15px 5px;
|
181 |
+
margin: 0;
|
182 |
+
font-size: 14px;
|
183 |
+
}
|
184 |
+
}
|
185 |
+
}
|
186 |
+
|
187 |
+
// File location on Theme Repeaters
|
188 |
+
.ajax-load-more .file-location {
|
189 |
+
border: 1px solid $border;
|
190 |
+
background: #fff;
|
191 |
+
margin: 0;
|
192 |
+
padding: 0;
|
193 |
+
line-height: 1;
|
194 |
+
display: flex;
|
195 |
+
flex-wrap: nowrap;
|
196 |
+
font-family: Consolas, monaco, monospace;
|
197 |
+
border-radius: 3px;
|
198 |
+
p,
|
199 |
+
code {
|
200 |
+
padding: 12px 16px;
|
201 |
+
line-height: 18px;
|
202 |
+
font-size: 12px;
|
203 |
+
}
|
204 |
+
p {
|
205 |
+
background: $light_grey;
|
206 |
+
color: #555;
|
207 |
+
font-weight: 600;
|
208 |
+
margin: 0;
|
209 |
+
width: auto;
|
210 |
+
display: inline;
|
211 |
+
border-right: 1px solid $border;
|
212 |
+
}
|
213 |
+
code {
|
214 |
+
color: #999;
|
215 |
+
background: transparent;
|
216 |
+
cursor: help;
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
.ajax-load-more code {
|
221 |
+
background: #fcf3d0;
|
222 |
+
}
|
223 |
+
.ajax-load-more p {
|
224 |
+
display: block;
|
225 |
+
color: #777;
|
226 |
+
width: 100%;
|
227 |
+
display: block;
|
228 |
+
clear: both;
|
229 |
+
text-transform: none;
|
230 |
+
padding: 0;
|
231 |
+
margin: 0 0 15px;
|
232 |
+
}
|
233 |
+
|
234 |
+
.ajax-load-more p,
|
235 |
+
.ajax-load-more li,
|
236 |
+
.ajax-load-more input,
|
237 |
+
.ajax-load-more textarea,
|
238 |
+
.ajax-load-more label {
|
239 |
+
font-size: 14px;
|
240 |
+
&.lg {
|
241 |
+
font-size: 16px;
|
242 |
+
}
|
243 |
+
}
|
244 |
+
textarea#_alm_layouts_css {
|
245 |
+
height: 240px;
|
246 |
+
}
|
247 |
+
a.layout-hover {
|
248 |
+
width: 20px !important;
|
249 |
+
height: 20px !important;
|
250 |
+
background: #ccc;
|
251 |
+
display: inline-block;
|
252 |
+
position: relative;
|
253 |
+
}
|
254 |
+
a.layout-hover img {
|
255 |
+
position: absolute;
|
256 |
+
left: 100%;
|
257 |
+
top: 0;
|
258 |
+
z-index: 999;
|
259 |
+
opacity: 0;
|
260 |
+
filter: alpha(opacity=0);
|
261 |
+
}
|
262 |
+
a.layout-hover:hover img {
|
263 |
+
position: absolute;
|
264 |
+
left: 100%;
|
265 |
+
top: 0;
|
266 |
+
z-index: 999;
|
267 |
+
opacity: 1;
|
268 |
+
filter: alpha(opacity=100);
|
269 |
+
}
|
270 |
+
|
271 |
+
.ajax-load-more p.highlight {
|
272 |
+
background-color: #fffbd4;
|
273 |
+
color: #333;
|
274 |
+
padding: 5px 10px;
|
275 |
+
border-radius: 3px;
|
276 |
+
margin: -5px 0 10px;
|
277 |
+
}
|
278 |
+
|
279 |
+
.ajax-load-more h1 {
|
280 |
+
font-weight: 600;
|
281 |
+
line-height: 28px;
|
282 |
+
}
|
283 |
+
.ajax-load-more h1,
|
284 |
+
.ajax-load-more h3,
|
285 |
+
.ajax-load-more h4 {
|
286 |
+
color: #444;
|
287 |
+
margin-top: 0;
|
288 |
+
}
|
289 |
+
.ajax-load-more h4 + p {
|
290 |
+
margin-top: -6px;
|
291 |
+
}
|
292 |
+
.ajax-load-more p.small {
|
293 |
+
font-size: 12px;
|
294 |
+
margin-top: -10px;
|
295 |
+
opacity: 0.7;
|
296 |
+
}
|
297 |
+
.ajax-load-more.shortcode-builder .major-publishing-actions {
|
298 |
+
position: relative;
|
299 |
+
}
|
300 |
+
.ajax-load-more p.small.reset-shortcode-builder {
|
301 |
+
position: absolute;
|
302 |
+
right: 15px;
|
303 |
+
top: 50%;
|
304 |
+
transform: translateY(-45%);
|
305 |
+
text-align: right;
|
306 |
+
margin: 0;
|
307 |
+
padding: 0;
|
308 |
+
display: none;
|
309 |
+
width: auto;
|
310 |
+
opacity: 1;
|
311 |
+
font-size: 12px;
|
312 |
+
}
|
313 |
+
.ajax-load-more p.small.reset-shortcode-builder a {
|
314 |
+
text-decoration: none;
|
315 |
+
}
|
316 |
+
|
317 |
+
/* Expand Collapse Headings */
|
318 |
+
.ajax-load-more h3.heading {
|
319 |
+
font-weight: 700;
|
320 |
+
padding: 15px 10px 15px 38px !important;
|
321 |
+
line-height: normal !important;
|
322 |
+
margin: 0 !important;
|
323 |
+
color: $grey;
|
324 |
+
cursor: pointer;
|
325 |
+
width: 100%;
|
326 |
+
position: relative;
|
327 |
+
font-size: 16px;
|
328 |
+
background: $light_grey;
|
329 |
+
border-bottom: 1px solid $border;
|
330 |
+
}
|
331 |
+
.ajax-load-more h3.heading:hover:after,
|
332 |
+
.ajax-load-more h3.heading:focus:after {
|
333 |
+
color: #ccc;
|
334 |
+
}
|
335 |
+
.ajax-load-more h3.heading:hover,
|
336 |
+
.ajax-load-more h3.heading:focus {
|
337 |
+
color: #222;
|
338 |
+
outline: none;
|
339 |
+
}
|
340 |
+
.ajax-load-more h3.heading:after {
|
341 |
+
font-family: 'FontAwesome';
|
342 |
+
content: '\f056';
|
343 |
+
color: $border;
|
344 |
+
position: absolute;
|
345 |
+
left: 13px;
|
346 |
+
top: 16px;
|
347 |
+
height: 20px;
|
348 |
+
width: 20px;
|
349 |
+
}
|
350 |
+
.ajax-load-more h3.heading.open:after {
|
351 |
+
content: '\f055';
|
352 |
+
}
|
353 |
+
.ajax-load-more h3.heading.open {
|
354 |
+
border-bottom-color: transparent;
|
355 |
+
}
|
356 |
+
|
357 |
+
/* Expand/Collapse all rows */
|
358 |
+
.ajax-load-more {
|
359 |
+
.toggle-all {
|
360 |
+
position: static;
|
361 |
+
top: -21px;
|
362 |
+
right: 20px;
|
363 |
+
width: auto;
|
364 |
+
display: inline-block;
|
365 |
+
font-size: 11px;
|
366 |
+
text-transform: uppercase;
|
367 |
+
border-radius: 3px;
|
368 |
+
padding: 0 12px 0 10px;
|
369 |
+
height: 38px;
|
370 |
+
line-height: 37px;
|
371 |
+
background: #fff;
|
372 |
+
border: 1px solid $border;
|
373 |
+
color: #777;
|
374 |
+
cursor: pointer;
|
375 |
+
z-index: 20;
|
376 |
+
margin-bottom: 10px;
|
377 |
+
overflow: hidden;
|
378 |
+
@media screen and (min-width: 768px) {
|
379 |
+
position: absolute;
|
380 |
+
}
|
381 |
+
}
|
382 |
+
.toggle-all:hover {
|
383 |
+
color: #ca5252;
|
384 |
+
}
|
385 |
+
.toggle-all .inner-wrap {
|
386 |
+
position: relative;
|
387 |
+
padding-left: 16px;
|
388 |
+
line-height: 24px;
|
389 |
+
}
|
390 |
+
.toggle-all .expand {
|
391 |
+
display: none;
|
392 |
+
}
|
393 |
+
.toggle-all .collapse {
|
394 |
+
display: inline-block;
|
395 |
+
}
|
396 |
+
.toggle-all em {
|
397 |
+
font-style: normal;
|
398 |
+
}
|
399 |
+
.toggle-all.closed .expand {
|
400 |
+
display: inline-block;
|
401 |
+
}
|
402 |
+
.toggle-all.closed .collapse {
|
403 |
+
display: none;
|
404 |
+
}
|
405 |
+
.toggle-all .inner-wrap:before {
|
406 |
+
font-family: 'FontAwesome';
|
407 |
+
content: '\f068';
|
408 |
+
font-size: 10px;
|
409 |
+
position: absolute;
|
410 |
+
left: 0;
|
411 |
+
top: -5px;
|
412 |
+
}
|
413 |
+
.toggle-all.closed .inner-wrap:before {
|
414 |
+
content: '\f067';
|
415 |
+
}
|
416 |
+
}
|
417 |
+
#alm-container.ajax-load-more .toggle-all {
|
418 |
+
display: none;
|
419 |
+
}
|
420 |
+
|
421 |
+
a.button-small {
|
422 |
+
text-decoration: none;
|
423 |
+
font-size: 12px;
|
424 |
+
padding: 7px 10px;
|
425 |
+
display: inline-block;
|
426 |
+
background-color: #eaf6fb;
|
427 |
+
border: 1px solid #b9d2de;
|
428 |
+
color: #333;
|
429 |
+
line-height: 1.1;
|
430 |
+
border-radius: 2px;
|
431 |
+
&:hover,
|
432 |
+
&:focus {
|
433 |
+
color: #222;
|
434 |
+
background-color: #d9edf5;
|
435 |
+
text-decoration: none;
|
436 |
+
border-color: #98b2be;
|
437 |
+
}
|
438 |
+
}
|
439 |
+
|
440 |
+
.ajax-load-more ul {
|
441 |
+
padding: 0;
|
442 |
+
margin: 0;
|
443 |
+
list-style: none;
|
444 |
+
}
|
445 |
+
#alm-builder li,
|
446 |
+
.forceColors li {
|
447 |
+
padding: 0 5% 0 0;
|
448 |
+
margin: 0 0 5px;
|
449 |
+
width: 48.666%;
|
450 |
+
clear: both;
|
451 |
+
display: inline-block;
|
452 |
+
vertical-align: top;
|
453 |
+
overflow: visible;
|
454 |
+
position: relative;
|
455 |
+
}
|
456 |
+
|
457 |
+
.ajax-load-more label.full {
|
458 |
+
display: block;
|
459 |
+
clear: both;
|
460 |
+
width: 100%;
|
461 |
+
color: #444;
|
462 |
+
font-weight: 600;
|
463 |
+
padding: 0 0 10px;
|
464 |
+
cursor: default;
|
465 |
+
font-size: 12px;
|
466 |
+
text-transform: uppercase;
|
467 |
+
}
|
468 |
+
.ajax-load-more .border-top {
|
469 |
+
display: block;
|
470 |
+
border-top: 1px solid #efefef;
|
471 |
+
width: 100%;
|
472 |
+
clear: both;
|
473 |
+
margin: 0 0 20px;
|
474 |
+
padding: 20px 0 0 !important;
|
475 |
+
overflow: visible;
|
476 |
+
position: relative;
|
477 |
+
}
|
478 |
+
.ajax-load-more .border-top.controls {
|
479 |
+
padding: 0 !important;
|
480 |
+
}
|
481 |
+
.ajax-load-more .border-top.controls button {
|
482 |
+
margin-top: 20px !important;
|
483 |
+
}
|
484 |
+
|
485 |
+
.ajax-load-more .border-top.highlighted {
|
486 |
+
background-color: #feffe3;
|
487 |
+
padding: 15px !important;
|
488 |
+
border: 1px solid #eeefd4;
|
489 |
+
}
|
490 |
+
|
491 |
+
.ajax-load-more .alm-settings-nav {
|
492 |
+
margin: 0 0 5px;
|
493 |
+
padding: 0;
|
494 |
+
overflow: hidden;
|
495 |
+
position: relative;
|
496 |
+
width: calc(100% + 40px);
|
497 |
+
top: -20px;
|
498 |
+
left: -20px;
|
499 |
+
border-bottom: 1px solid #ebebeb;
|
500 |
+
background: $light_grey;
|
501 |
+
border-radius: 3px 3px 0 0;
|
502 |
+
}
|
503 |
+
.alm-settings-nav li {
|
504 |
+
float: left;
|
505 |
+
margin: 0;
|
506 |
+
padding: 0;
|
507 |
+
font-weight: 600;
|
508 |
+
background: none;
|
509 |
+
font-size: 13px;
|
510 |
+
}
|
511 |
+
|
512 |
+
.alm-settings-nav a {
|
513 |
+
text-decoration: none;
|
514 |
+
padding: 8px 16px 8px 16px;
|
515 |
+
border-left: 1px solid #ebebeb;
|
516 |
+
display: block;
|
517 |
+
}
|
518 |
+
.alm-settings-nav a:hover {
|
519 |
+
color: #fff;
|
520 |
+
background-color: #ff5a58;
|
521 |
+
}
|
522 |
+
.alm-settings-nav li:first-of-type a {
|
523 |
+
border: none;
|
524 |
+
border-radius: 3px 0 0 0;
|
525 |
+
}
|
526 |
+
|
527 |
+
#meta-query-relation {
|
528 |
+
margin: 10px 0 0;
|
529 |
+
}
|
530 |
+
#meta-query-relation .inner {
|
531 |
+
margin: 5px 0 0 !important;
|
532 |
+
}
|
533 |
+
#alm-meta-key .meta-query-wrap,
|
534 |
+
.taxonomy-wrap {
|
535 |
+
padding: 15px;
|
536 |
+
border: 1px solid #efefef;
|
537 |
+
margin: 20px 0 0;
|
538 |
+
position: relative;
|
539 |
+
border-radius: 2px;
|
540 |
+
}
|
541 |
+
.meta-query-wrap.removing,
|
542 |
+
.taxonomy-wrap.removing {
|
543 |
+
background-color: #f5d0d0;
|
544 |
+
}
|
545 |
+
#alm-meta-key .meta-query-wrap-first .meta-query-wrap {
|
546 |
+
border: none;
|
547 |
+
background-color: transparent;
|
548 |
+
padding: 0;
|
549 |
+
margin: 0;
|
550 |
+
}
|
551 |
+
#meta-key .border-top {
|
552 |
+
border: none !important;
|
553 |
+
}
|
554 |
+
.row .controls {
|
555 |
+
display: block;
|
556 |
+
clear: both;
|
557 |
+
padding: 20px 0 10px;
|
558 |
+
overflow: hidden;
|
559 |
+
}
|
560 |
+
.row.taxonomy .controls {
|
561 |
+
padding-bottom: 20px;
|
562 |
+
}
|
563 |
+
.row.taxonomy .highlighted {
|
564 |
+
margin-bottom: 0 !important;
|
565 |
+
}
|
566 |
+
|
567 |
+
.meta-query-wrap .remove-meta-query,
|
568 |
+
.taxonomy-wrap .remove-tax-query {
|
569 |
+
position: absolute;
|
570 |
+
right: 7px;
|
571 |
+
top: 7px;
|
572 |
+
width: 24px;
|
573 |
+
height: 24px;
|
574 |
+
line-height: 24px;
|
575 |
+
text-align: center;
|
576 |
+
font-weight: 400;
|
577 |
+
font-size: 17px;
|
578 |
+
background-color: transparent;
|
579 |
+
color: #666;
|
580 |
+
text-decoration: none;
|
581 |
+
border-radius: 2px;
|
582 |
+
&:hover,
|
583 |
+
&:hover {
|
584 |
+
background-color: #cb2222;
|
585 |
+
color: #fff;
|
586 |
+
}
|
587 |
+
}
|
588 |
+
|
589 |
+
.ajax-load-more .meta-query-wrap .border-top:first-of-type {
|
590 |
+
padding: 0 0 0 !important;
|
591 |
+
border: none;
|
592 |
+
}
|
593 |
+
|
594 |
+
.ajax-load-more #taxonomy-extended,
|
595 |
+
.ajax-load-more #nav-controls,
|
596 |
+
.ajax-load-more #seo-extended,
|
597 |
+
.ajax-load-more #meta-query-relation,
|
598 |
+
.ajax-load-more #tax-query-relation,
|
599 |
+
.ajax-load-more .comments_extras,
|
600 |
+
.ajax-load-more #users-extended,
|
601 |
+
.ajax-load-more .taxonomy-extended,
|
602 |
+
.ajax-load-more #paging-controls-nav {
|
603 |
+
display: none;
|
604 |
+
overflow: hidden;
|
605 |
+
}
|
606 |
+
.ajax-load-more .taxonomy-extended {
|
607 |
+
padding-top: 20px;
|
608 |
+
}
|
609 |
+
.ajax-load-more #tax-query-relation {
|
610 |
+
margin-top: 20px;
|
611 |
+
}
|
612 |
+
.ajax-load-more .taxonomy-wrap {
|
613 |
+
display: none;
|
614 |
+
position: relative;
|
615 |
+
}
|
616 |
+
.ajax-load-more .row .wrap .inner .ajax-load-more p.warning {
|
617 |
+
color: #d24646;
|
618 |
+
font-size: 13px;
|
619 |
+
border-left: 3px solid #d24646;
|
620 |
+
margin: 0;
|
621 |
+
padding: 0 0 0 10px;
|
622 |
+
}
|
623 |
+
.ajax-load-more .row .wrap .inner.taxonomy {
|
624 |
+
padding-bottom: 0;
|
625 |
+
}
|
626 |
+
|
627 |
+
.ajax-load-more p.warning-callout {
|
628 |
+
background-color: #eaf6fb;
|
629 |
+
border-left: 6px solid #4e99bf;
|
630 |
+
color: #333;
|
631 |
+
font-size: 12px;
|
632 |
+
margin: 0;
|
633 |
+
display: block;
|
634 |
+
padding: 18px 100px 18px 18px;
|
635 |
+
border-radius: 3px;
|
636 |
+
margin: 10px;
|
637 |
+
width: auto;
|
638 |
+
line-height: 1.55;
|
639 |
+
position: relative;
|
640 |
+
a {
|
641 |
+
color: #0071ac;
|
642 |
+
}
|
643 |
+
a.button-small {
|
644 |
+
position: absolute;
|
645 |
+
right: 14px;
|
646 |
+
top: 14px;
|
647 |
+
font-size: 12px;
|
648 |
+
display: inline-block;
|
649 |
+
background-color: rgba(255, 255, 255, 0.75);
|
650 |
+
margin: 0 0 0 10px;
|
651 |
+
&:hover,
|
652 |
+
&:focus {
|
653 |
+
background-color: #fff;
|
654 |
+
}
|
655 |
+
}
|
656 |
+
strong {
|
657 |
+
display: inline-block;
|
658 |
+
font-weight: normal;
|
659 |
+
font-family: Consolas, monaco, monospace;
|
660 |
+
background-color: #fff;
|
661 |
+
padding: 1px 6px 0;
|
662 |
+
border-radius: 2px;
|
663 |
+
}
|
664 |
+
}
|
665 |
+
.ajax-load-more p.warning-callout.notify {
|
666 |
+
background-color: #da5858;
|
667 |
+
border-color: #b94848;
|
668 |
+
color: #fff;
|
669 |
+
strong {
|
670 |
+
background-color: #9a4343;
|
671 |
+
color: #fff;
|
672 |
+
}
|
673 |
+
}
|
674 |
+
|
675 |
+
.ajax-load-more label,
|
676 |
+
.ajax-load-more input,
|
677 |
+
.ajax-load-more select,
|
678 |
+
.ajax-load-more textarea {
|
679 |
+
font-size: 14px;
|
680 |
+
padding: 5px 8px;
|
681 |
+
width: auto;
|
682 |
+
margin-top: 0;
|
683 |
+
display: inline-block;
|
684 |
+
clear: both;
|
685 |
+
border-radius: 3px;
|
686 |
+
color: $grey;
|
687 |
+
box-shadow: none;
|
688 |
+
}
|
689 |
+
.ajax-load-more input[type='checkbox'],
|
690 |
+
.ajax-load-more input[type='radio'] {
|
691 |
+
width: 1rem;
|
692 |
+
}
|
693 |
+
|
694 |
+
.controls button.disabled {
|
695 |
+
opacity: 0.5;
|
696 |
+
}
|
697 |
+
|
698 |
+
.ajax-load-more textarea._alm_repeater {
|
699 |
+
font-family: Consolas, monaco, monospace;
|
700 |
+
font-size: 13px;
|
701 |
+
line-height: 19px;
|
702 |
+
padding: 10px;
|
703 |
+
}
|
704 |
+
.ajax-load-more textarea._alm_repeater:focus {
|
705 |
+
color: #222;
|
706 |
+
}
|
707 |
+
|
708 |
+
.ajax-load-more label {
|
709 |
+
padding: 5px 0;
|
710 |
+
border-radius: 0;
|
711 |
+
}
|
712 |
+
|
713 |
+
.checkboxes {
|
714 |
+
}
|
715 |
+
.checkboxes input,
|
716 |
+
.radio input {
|
717 |
+
margin-top: 2px;
|
718 |
+
}
|
719 |
+
.checkboxes input,
|
720 |
+
.checkboxes label,
|
721 |
+
.radio input,
|
722 |
+
.radio label {
|
723 |
+
float: left;
|
724 |
+
width: auto;
|
725 |
+
margin-right: 10px;
|
726 |
+
padding: 0;
|
727 |
+
clear: none;
|
728 |
+
}
|
729 |
+
.radio input {
|
730 |
+
margin-left: 3px;
|
731 |
+
}
|
732 |
+
.ajax-load-more textarea,
|
733 |
+
.ajax-load-more input[type='text'],
|
734 |
+
.ajax-load-more input[type='number'] {
|
735 |
+
padding: 10px 12px;
|
736 |
+
line-height: 1.3;
|
737 |
+
border: 1px solid $border;
|
738 |
+
width: 60%;
|
739 |
+
}
|
740 |
+
.ajax-load-more input[type='text'].full {
|
741 |
+
width: 100%;
|
742 |
+
}
|
743 |
+
|
744 |
+
.ajax-load-more .wrap-30 {
|
745 |
+
width: 32.333%;
|
746 |
+
padding-right: 3%;
|
747 |
+
display: inline-block;
|
748 |
+
vertical-align: top;
|
749 |
+
}
|
750 |
+
.ajax-load-more .wrap-30.wrap-50 {
|
751 |
+
width: 48.6666%;
|
752 |
+
}
|
753 |
+
.ajax-load-more .wrap-30.wrap-50.padding-top {
|
754 |
+
padding-top: 15px;
|
755 |
+
}
|
756 |
+
.ajax-load-more .wrap-30 input[type='text'].sm,
|
757 |
+
.ajax-load-more .wrap-30 .select2-container {
|
758 |
+
width: 100%;
|
759 |
+
margin: 0;
|
760 |
+
}
|
761 |
+
|
762 |
+
.ajax-load-more input[type='number'].sm {
|
763 |
+
width: 100px;
|
764 |
+
}
|
765 |
+
|
766 |
+
.ajax-load-more ::-webkit-input-placeholder {
|
767 |
+
color: #999;
|
768 |
+
font-style: italic;
|
769 |
+
}
|
770 |
+
|
771 |
+
.ajax-load-more :-moz-placeholder {
|
772 |
+
/* Firefox 18- */
|
773 |
+
color: #999;
|
774 |
+
font-style: italic;
|
775 |
+
}
|
776 |
+
|
777 |
+
.ajax-load-more ::-moz-placeholder {
|
778 |
+
/* Firefox 19+ */
|
779 |
+
color: #999;
|
780 |
+
font-style: italic;
|
781 |
+
}
|
782 |
+
|
783 |
+
.ajax-load-more :-ms-input-placeholder {
|
784 |
+
color: #999;
|
785 |
+
font-style: italic;
|
786 |
+
}
|
787 |
+
|
788 |
+
.ajax-load-more input[type='text'],
|
789 |
+
.ajax-load-more input[type='number'],
|
790 |
+
.ajax-load-more input[type='email'],
|
791 |
+
.ajax-load-more textarea {
|
792 |
+
background: $light_grey;
|
793 |
+
}
|
794 |
+
.ajax-load-more .repeaters input[type='text'] {
|
795 |
+
padding: 9px 10px;
|
796 |
+
}
|
797 |
+
.ajax-load-more input[type='number'] {
|
798 |
+
height: auto;
|
799 |
+
}
|
800 |
+
|
801 |
+
.admin.ajax-load-more .form-table textarea {
|
802 |
+
clear: both;
|
803 |
+
display: inline-block;
|
804 |
+
float: none;
|
805 |
+
width: 100%;
|
806 |
+
}
|
807 |
+
.admin.ajax-load-more textarea.disabled,
|
808 |
+
.ajax-load-more input.disabled-input {
|
809 |
+
opacity: 0.5;
|
810 |
+
filter: alpha(opacity=50);
|
811 |
+
cursor: not-allowed;
|
812 |
+
background: $light_grey !important;
|
813 |
+
border-color: #ccc !important;
|
814 |
+
box-shadow: none !important;
|
815 |
+
}
|
816 |
+
.ajax-load-more input[type='text']:focus,
|
817 |
+
.ajax-load-more input[type='number']:focus,
|
818 |
+
.ajax-load-more input[type='email']:focus,
|
819 |
+
.ajax-load-more textarea:focus {
|
820 |
+
border-color: #bbbbbb;
|
821 |
+
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
822 |
+
background: $light_grey;
|
823 |
+
}
|
824 |
+
|
825 |
+
.checkboxes label {
|
826 |
+
margin-right: 5px;
|
827 |
+
}
|
828 |
+
|
829 |
+
.ajax-load-more .one_half {
|
830 |
+
display: inline-block;
|
831 |
+
width: 48%;
|
832 |
+
margin: 0 -2px 1% 2%;
|
833 |
+
vertical-align: top;
|
834 |
+
}
|
835 |
+
.ajax-load-more .one_half:first-of-type {
|
836 |
+
margin: 0 2% 1% 0;
|
837 |
+
}
|
838 |
+
|
839 |
+
// 2018 Grid
|
840 |
+
.ajax-load-more .alm-row {
|
841 |
+
display: block;
|
842 |
+
width: 100%;
|
843 |
+
&:after {
|
844 |
+
content: '';
|
845 |
+
clear: both;
|
846 |
+
display: table;
|
847 |
+
}
|
848 |
+
&--margin-btm {
|
849 |
+
margin-bottom: $padding;
|
850 |
+
}
|
851 |
+
&--margin-btm-lg {
|
852 |
+
margin-bottom: $gutter;
|
853 |
+
}
|
854 |
+
.column {
|
855 |
+
width: 100%;
|
856 |
+
float: none;
|
857 |
+
padding: 0 $padding;
|
858 |
+
&--half {
|
859 |
+
width: 50%;
|
860 |
+
float: left;
|
861 |
+
}
|
862 |
+
&--one-third {
|
863 |
+
width: 33.333%;
|
864 |
+
float: left;
|
865 |
+
}
|
866 |
+
&--two-third {
|
867 |
+
width: 66.666%;
|
868 |
+
float: left;
|
869 |
+
}
|
870 |
+
&--one-fourth {
|
871 |
+
width: 25%;
|
872 |
+
float: left;
|
873 |
+
}
|
874 |
+
@media screen and (max-width: $small) {
|
875 |
+
&--half,
|
876 |
+
&--one-third {
|
877 |
+
float: none;
|
878 |
+
width: 100%;
|
879 |
+
}
|
880 |
+
}
|
881 |
+
}
|
882 |
+
}
|
883 |
+
|
884 |
+
/* --------------------------------------------------------------------------- */
|
885 |
+
/* Row */
|
886 |
+
/* --------------------------------------------------------------------------- */
|
887 |
+
|
888 |
+
.ajax-load-more .row {
|
889 |
+
padding: 0 !important;
|
890 |
+
margin: 10px 0 0;
|
891 |
+
height: auto;
|
892 |
+
width: 100%;
|
893 |
+
display: block;
|
894 |
+
overflow: hidden;
|
895 |
+
clear: both;
|
896 |
+
border: 1px solid $border;
|
897 |
+
border-radius: $radius;
|
898 |
+
&.no-brd {
|
899 |
+
border: none !important;
|
900 |
+
padding: 0 !important;
|
901 |
+
}
|
902 |
+
}
|
903 |
+
.ajax-load-more#alm-repeaters .row {
|
904 |
+
overflow: visible;
|
905 |
+
}
|
906 |
+
.admin.ajax-load-more .row,
|
907 |
+
.forceColors .ajax-load-more .row {
|
908 |
+
border-color: $border;
|
909 |
+
}
|
910 |
+
.admin.ajax-load-more .repeaters .row:hover,
|
911 |
+
.admin.ajax-load-more.shortcode-builder .row:hover {
|
912 |
+
border-color: #d9d9d9;
|
913 |
+
box-shadow: 0 0 0 3px $light_grey;
|
914 |
+
}
|
915 |
+
.admin.ajax-load-more .row:first-of-type {
|
916 |
+
margin-top: 20px;
|
917 |
+
padding-top: 0;
|
918 |
+
}
|
919 |
+
.ajax-load-more .intro {
|
920 |
+
height: auto;
|
921 |
+
width: 100%;
|
922 |
+
display: block;
|
923 |
+
overflow: hidden;
|
924 |
+
}
|
925 |
+
|
926 |
+
/* Jump Menu */
|
927 |
+
|
928 |
+
.pop-up-jump {
|
929 |
+
display: block;
|
930 |
+
width: 100%;
|
931 |
+
.jump-menu-wrap {
|
932 |
+
position: relative;
|
933 |
+
float: right;
|
934 |
+
width: 30%;
|
935 |
+
}
|
936 |
+
.jump-menu-wrap .select2-container {
|
937 |
+
width: 100% !important;
|
938 |
+
margin-bottom: 15px;
|
939 |
+
position: relative;
|
940 |
+
top: -5px;
|
941 |
+
}
|
942 |
+
.intro-wrap {
|
943 |
+
position: relative;
|
944 |
+
float: left;
|
945 |
+
width: 65%;
|
946 |
+
padding-right: 5%;
|
947 |
+
}
|
948 |
+
}
|
949 |
+
.admin.ajax-load-more .jump-menu {
|
950 |
+
display: none;
|
951 |
+
}
|
952 |
+
|
953 |
+
/* Table of Contents */
|
954 |
+
#cnkt-sticky {
|
955 |
+
}
|
956 |
+
#cnkt-sticky.attached {
|
957 |
+
position: fixed;
|
958 |
+
width: auto;
|
959 |
+
top: 70px;
|
960 |
+
}
|
961 |
+
.table-of-contents .select2-container {
|
962 |
+
width: 100%;
|
963 |
+
}
|
964 |
+
.table-of-contents ul {
|
965 |
+
margin: 0 !important;
|
966 |
+
}
|
967 |
+
.table-of-contents li {
|
968 |
+
width: auto !important;
|
969 |
+
display: inline-block;
|
970 |
+
vertical-align: top;
|
971 |
+
padding: 0;
|
972 |
+
margin: 5px 5px 5px 0;
|
973 |
+
}
|
974 |
+
|
975 |
+
.ajax-load-more .expand-wrap {
|
976 |
+
display: block;
|
977 |
+
}
|
978 |
+
#alm-examples.ajax-load-more .expand-wrap {
|
979 |
+
padding: 10px 10px 0;
|
980 |
+
}
|
981 |
+
.ajax-load-more .expand-wrap hr {
|
982 |
+
border: 0;
|
983 |
+
height: 0;
|
984 |
+
border-top: 1px solid #efefef;
|
985 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
986 |
+
}
|
987 |
+
hr.indented {
|
988 |
+
// Indented as fake padding in shortcode builder
|
989 |
+
width: calc(100% - 40px);
|
990 |
+
margin-left: 20px;
|
991 |
+
}
|
992 |
+
.ajax-load-more .section-title {
|
993 |
+
float: left;
|
994 |
+
padding: 20px 0 25px 20px;
|
995 |
+
width: 35%;
|
996 |
+
&.full {
|
997 |
+
width: 100%;
|
998 |
+
float: none;
|
999 |
+
padding-right: 25px;
|
1000 |
+
}
|
1001 |
+
p:last-of-type {
|
1002 |
+
margin-bottom: 0;
|
1003 |
+
}
|
1004 |
+
small {
|
1005 |
+
font-size: 12px;
|
1006 |
+
padding-top: 10px;
|
1007 |
+
display: block;
|
1008 |
+
}
|
1009 |
+
h4 {
|
1010 |
+
font-size: 14px;
|
1011 |
+
font-weight: 600;
|
1012 |
+
margin-bottom: 15px;
|
1013 |
+
}
|
1014 |
+
p,
|
1015 |
+
.wrap p.descriptor {
|
1016 |
+
font-size: 13px;
|
1017 |
+
line-height: 20px;
|
1018 |
+
color: #999;
|
1019 |
+
}
|
1020 |
+
}
|
1021 |
+
.ajax-load-more .wrap p.descriptor {
|
1022 |
+
margin: 0;
|
1023 |
+
font-style: italic;
|
1024 |
+
}
|
1025 |
+
.ajax-load-more .section-title p .fa.tooltip:hover,
|
1026 |
+
.form-table label .fa.tooltip:hover {
|
1027 |
+
opacity: 1;
|
1028 |
+
}
|
1029 |
+
.ajax-load-more .fa.tooltip {
|
1030 |
+
display: inline-block;
|
1031 |
+
margin: 0 2px;
|
1032 |
+
text-decoration: none;
|
1033 |
+
cursor: help;
|
1034 |
+
position: relative;
|
1035 |
+
top: 0;
|
1036 |
+
background: #fff;
|
1037 |
+
border-radius: 100%;
|
1038 |
+
width: 20px;
|
1039 |
+
height: 20px;
|
1040 |
+
text-align: center;
|
1041 |
+
line-height: 20px;
|
1042 |
+
box-shadow: 0 -1px 1px #ccc;
|
1043 |
+
}
|
1044 |
+
.cta h3 .fa.tooltip {
|
1045 |
+
top: 1px;
|
1046 |
+
}
|
1047 |
+
.ajax-load-more .section-title p span,
|
1048 |
+
.admin.ajax-load-more.settings .form-table p.notify span {
|
1049 |
+
display: inline-block;
|
1050 |
+
padding: 0 4px;
|
1051 |
+
border-radius: 2px;
|
1052 |
+
background: $light_grey;
|
1053 |
+
border: 1px solid #efefef;
|
1054 |
+
color: #666;
|
1055 |
+
}
|
1056 |
+
.ajax-load-more .section-title h4 {
|
1057 |
+
margin: 0 0 10px;
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
.ajax-load-more .repeaters .section-title,
|
1061 |
+
.ajax-load-more .repeaters .row .wrap {
|
1062 |
+
width: 100%;
|
1063 |
+
float: none;
|
1064 |
+
padding: 0;
|
1065 |
+
}
|
1066 |
+
.ajax-load-more .repeaters .section-title p {
|
1067 |
+
padding-left: 0 !important;
|
1068 |
+
}
|
1069 |
+
.ajax-load-more label.template-title {
|
1070 |
+
padding: 3px 2px 0;
|
1071 |
+
margin: 0;
|
1072 |
+
display: block;
|
1073 |
+
&.has-margin-btm {
|
1074 |
+
margin-bottom: 10px;
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
.ajax-load-more label input._alm_repeater_alias {
|
1079 |
+
height: auto;
|
1080 |
+
line-height: normal !important;
|
1081 |
+
}
|
1082 |
+
|
1083 |
+
.preload_amount,
|
1084 |
+
.cache_id,
|
1085 |
+
.alternate_template_wrap,
|
1086 |
+
.cta_template_wrap,
|
1087 |
+
.restapi_options,
|
1088 |
+
.filters_options,
|
1089 |
+
.next-page-content,
|
1090 |
+
.acf-options,
|
1091 |
+
.masonry-options,
|
1092 |
+
.progress-bar-options,
|
1093 |
+
.hide-section {
|
1094 |
+
display: none;
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
.ajax-load-more .row .wrap {
|
1098 |
+
padding: 20px 20px 0 5%;
|
1099 |
+
margin: 0;
|
1100 |
+
border: none;
|
1101 |
+
width: 65%;
|
1102 |
+
float: left;
|
1103 |
+
position: relative;
|
1104 |
+
}
|
1105 |
+
.ajax-load-more .row .wrap.full {
|
1106 |
+
float: none;
|
1107 |
+
width: 100%;
|
1108 |
+
padding: 0 15px 15px 36px;
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
/* ***********************************
|
1112 |
+
-- Shortcode Output
|
1113 |
+
**************************************/
|
1114 |
+
.ajax-load-more .output-wrap {
|
1115 |
+
margin: 20px 0 0;
|
1116 |
+
background: #ff5a58;
|
1117 |
+
width: 100%;
|
1118 |
+
display: block;
|
1119 |
+
border-radius: 3px;
|
1120 |
+
textarea {
|
1121 |
+
background-color: transparent !important;
|
1122 |
+
resize: none !important;
|
1123 |
+
height: auto !important;
|
1124 |
+
min-height: 100px;
|
1125 |
+
border: none !important;
|
1126 |
+
width: 100% !important;
|
1127 |
+
display: block;
|
1128 |
+
border-radius: 3px;
|
1129 |
+
font-family: monospace;
|
1130 |
+
font-size: 12px;
|
1131 |
+
line-height: 18px;
|
1132 |
+
color: #fff;
|
1133 |
+
cursor: pointer;
|
1134 |
+
}
|
1135 |
+
}
|
1136 |
+
.ajax-load-more .row .wrap.output {
|
1137 |
+
display: block !important;
|
1138 |
+
}
|
1139 |
+
.ajax-load-more .row .wrap .inner {
|
1140 |
+
padding: 0 0 20px;
|
1141 |
+
}
|
1142 |
+
.ajax-load-more .row .wrap .inner.half {
|
1143 |
+
padding: 0 0 20px;
|
1144 |
+
width: 49.333%;
|
1145 |
+
display: inline-block;
|
1146 |
+
}
|
1147 |
+
|
1148 |
+
/*
|
1149 |
+
* Insert Shortcode Button
|
1150 |
+
*
|
1151 |
+
* @since 1.0
|
1152 |
+
*/
|
1153 |
+
|
1154 |
+
#insert.insert_alm {
|
1155 |
+
background: #fff !important;
|
1156 |
+
color: #ca5252 !important;
|
1157 |
+
border: none;
|
1158 |
+
font-size: 14px !important;
|
1159 |
+
font-weight: 600;
|
1160 |
+
padding: 8px 13px;
|
1161 |
+
display: inline-block;
|
1162 |
+
text-align: center;
|
1163 |
+
margin: 15px 0;
|
1164 |
+
float: left;
|
1165 |
+
line-height: normal !important;
|
1166 |
+
height: auto !important;
|
1167 |
+
box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 1px 0px #ca5252;
|
1168 |
+
text-shadow: none !important;
|
1169 |
+
max-width: 20%;
|
1170 |
+
border-radius: 2px;
|
1171 |
+
}
|
1172 |
+
.admin.ajax-load-more #insert.insert_alm {
|
1173 |
+
display: none;
|
1174 |
+
}
|
1175 |
+
|
1176 |
+
#insert.insert_alm:hover {
|
1177 |
+
box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px rgba(255, 255, 255, 1);
|
1178 |
+
}
|
1179 |
+
#insert.insert_alm:active {
|
1180 |
+
background: #d0413f !important;
|
1181 |
+
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
|
1182 |
+
color: #fff !important;
|
1183 |
+
}
|
1184 |
+
|
1185 |
+
.ajax-load-more .clear {
|
1186 |
+
clear: both;
|
1187 |
+
height: auto;
|
1188 |
+
overflow: hidden;
|
1189 |
+
width: 100%;
|
1190 |
+
padding: 0;
|
1191 |
+
margin: 0;
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
/*
|
1195 |
+
* Admin Screens - Setting pages
|
1196 |
+
*
|
1197 |
+
* @since 1.0
|
1198 |
+
*/
|
1199 |
+
|
1200 |
+
.form-table label {
|
1201 |
+
display: block;
|
1202 |
+
clear: both;
|
1203 |
+
float: none;
|
1204 |
+
padding: 0 0 8px;
|
1205 |
+
max-width: 90%;
|
1206 |
+
cursor: pointer !important;
|
1207 |
+
line-height: 1.5;
|
1208 |
+
}
|
1209 |
+
.form-table input[type='radio'],
|
1210 |
+
.form-table input[type='checkbox'] {
|
1211 |
+
vertical-align: top;
|
1212 |
+
margin-top: 0 !important;
|
1213 |
+
max-width: 8%;
|
1214 |
+
}
|
1215 |
+
.form-table label + textarea {
|
1216 |
+
margin-top: 10px;
|
1217 |
+
}
|
1218 |
+
.form-table label span,
|
1219 |
+
#alm-shortcode-builder-form label span.description {
|
1220 |
+
font-size: 13px;
|
1221 |
+
color: #999;
|
1222 |
+
padding-top: 10px;
|
1223 |
+
}
|
1224 |
+
#alm-shortcode-builder-form label span.description {
|
1225 |
+
display: block;
|
1226 |
+
padding-top: 1px;
|
1227 |
+
padding-bottom: 5px;
|
1228 |
+
}
|
1229 |
+
|
1230 |
+
.admin.ajax-load-more textarea.disabled,
|
1231 |
+
.admin.ajax-load-more input.disabled {
|
1232 |
+
opacity: 0.9;
|
1233 |
+
filter: alpha(opacity=90);
|
1234 |
+
cursor: default;
|
1235 |
+
border: 1px solid #ccc;
|
1236 |
+
background: #efefef;
|
1237 |
+
color: #666;
|
1238 |
+
text-shadow: 1px 1px 0 #fff;
|
1239 |
+
resize: none;
|
1240 |
+
}
|
1241 |
+
|
1242 |
+
.admin.ajax-load-more .form-table input[type='radio'],
|
1243 |
+
.admin.ajax-load-more .form-table input[type='checkbox'] {
|
1244 |
+
margin-right: 10px;
|
1245 |
+
margin-top: 0 !important;
|
1246 |
+
}
|
1247 |
+
|
1248 |
+
.admin.ajax-load-more.settings input[type='text'],
|
1249 |
+
.admin.ajax-load-more.settings input[type='number'],
|
1250 |
+
.admin.ajax-load-more.settings .select2-container {
|
1251 |
+
margin-top: 10px;
|
1252 |
+
}
|
1253 |
+
.admin.ajax-load-more .alm-btn-wrap {
|
1254 |
+
text-align: left;
|
1255 |
+
}
|
1256 |
+
.admin.ajax-load-more .ajax-load-more-wrap {
|
1257 |
+
position: relative;
|
1258 |
+
top: 5px;
|
1259 |
+
padding: 15px;
|
1260 |
+
border: 1px dashed $border;
|
1261 |
+
display: inline-block;
|
1262 |
+
margin-top: 10px;
|
1263 |
+
margin-bottom: 10px;
|
1264 |
+
&.preview-pane.none {
|
1265 |
+
display: none;
|
1266 |
+
}
|
1267 |
+
button {
|
1268 |
+
margin: 0 !important;
|
1269 |
+
}
|
1270 |
+
> span {
|
1271 |
+
display: block;
|
1272 |
+
font-size: 10px;
|
1273 |
+
line-height: 1;
|
1274 |
+
opacity: 0.7;
|
1275 |
+
padding: 0 0 15px;
|
1276 |
+
text-transform: uppercase;
|
1277 |
+
}
|
1278 |
+
}
|
1279 |
+
|
1280 |
+
.admin.ajax-load-more.settings .ajax-load-more-wrap.pages {
|
1281 |
+
}
|
1282 |
+
.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
|
1283 |
+
font-size: 14px;
|
1284 |
+
}
|
1285 |
+
.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
|
1286 |
+
text-decoration: none;
|
1287 |
+
}
|
1288 |
+
|
1289 |
+
/* Table Overrides */
|
1290 |
+
.admin.ajax-load-more.settings .form-table td,
|
1291 |
+
.admin.ajax-load-more.settings .form-table th {
|
1292 |
+
padding: 20px;
|
1293 |
+
line-height: 1.5;
|
1294 |
+
}
|
1295 |
+
.admin.ajax-load-more.settings .form-table td {
|
1296 |
+
padding-right: 20px;
|
1297 |
+
}
|
1298 |
+
.admin.ajax-load-more.settings .form-table th {
|
1299 |
+
padding-left: 20px;
|
1300 |
+
font-weight: 700;
|
1301 |
+
background-color: $light_grey;
|
1302 |
+
border-right: 1px solid $border;
|
1303 |
+
}
|
1304 |
+
.admin.ajax-load-more.settings .form-table p {
|
1305 |
+
margin-top: 0;
|
1306 |
+
}
|
1307 |
+
.admin.ajax-load-more.settings .form-table p.notify {
|
1308 |
+
font-size: 12px;
|
1309 |
+
padding: 5px 0;
|
1310 |
+
margin: 5px 0 20px;
|
1311 |
+
overflow: hidden;
|
1312 |
+
color: #999;
|
1313 |
+
}
|
1314 |
+
|
1315 |
+
.ajax-load-more h2.addon-title {
|
1316 |
+
font-size: 19px !important;
|
1317 |
+
line-height: 24px;
|
1318 |
+
font-weight: 700 !important;
|
1319 |
+
color: #444 !important;
|
1320 |
+
padding: 0;
|
1321 |
+
margin: 0 0 10px;
|
1322 |
+
}
|
1323 |
+
.ajax-load-more p.addon-intro {
|
1324 |
+
font-size: 16px !important;
|
1325 |
+
line-height: 22px !important;
|
1326 |
+
color: #999 !important;
|
1327 |
+
}
|
1328 |
+
|
1329 |
+
.ajax-load-more h3.add-on-title {
|
1330 |
+
padding: 0 0 10px;
|
1331 |
+
margin: 0 0 20px;
|
1332 |
+
border-bottom: 1px solid #efefef;
|
1333 |
+
}
|
1334 |
+
.ajax-load-more h3 {
|
1335 |
+
margin-bottom: 10px;
|
1336 |
+
}
|
1337 |
+
.ajax-load-more h3.add-on-title,
|
1338 |
+
.ajax-load-more .cnkt-sidebar h3 {
|
1339 |
+
padding: 0 0 10px;
|
1340 |
+
margin: 0 0 20px;
|
1341 |
+
border-bottom: 1px solid $border;
|
1342 |
+
}
|
1343 |
+
.ajax-load-more p.desc,
|
1344 |
+
.ajax-load-more p.writeable-title {
|
1345 |
+
padding: 0 0 2px 28px;
|
1346 |
+
}
|
1347 |
+
.ajax-load-more p.desc {
|
1348 |
+
font-size: 13px !important;
|
1349 |
+
line-height: 19px !important;
|
1350 |
+
}
|
1351 |
+
.ajax-load-more p.writeable-title {
|
1352 |
+
position: relative;
|
1353 |
+
}
|
1354 |
+
.ajax-load-more p.writeable-title i {
|
1355 |
+
position: absolute !important;
|
1356 |
+
left: 0 !important;
|
1357 |
+
top: 1px !important;
|
1358 |
+
}
|
1359 |
+
|
1360 |
+
.ajax-load-more p.back2top {
|
1361 |
+
font-size: 14px;
|
1362 |
+
margin: 0;
|
1363 |
+
padding: 0;
|
1364 |
+
text-align: center;
|
1365 |
+
}
|
1366 |
+
.ajax-load-more p.back2top a {
|
1367 |
+
text-decoration: none;
|
1368 |
+
display: block;
|
1369 |
+
}
|
1370 |
+
|
1371 |
+
.saved-response,
|
1372 |
+
p.loading {
|
1373 |
+
font-size: 12px;
|
1374 |
+
padding: 0;
|
1375 |
+
color: #999;
|
1376 |
+
background: none;
|
1377 |
+
transition: padding 0.2s ease;
|
1378 |
+
display: inline-block;
|
1379 |
+
width: auto;
|
1380 |
+
position: relative;
|
1381 |
+
top: 5px;
|
1382 |
+
left: 15px;
|
1383 |
+
}
|
1384 |
+
|
1385 |
+
.saved-error {
|
1386 |
+
color: #e03e3e;
|
1387 |
+
}
|
1388 |
+
.saved-response em {
|
1389 |
+
color: #333;
|
1390 |
+
display: block;
|
1391 |
+
padding: 5px 0;
|
1392 |
+
}
|
1393 |
+
|
1394 |
+
.saved {
|
1395 |
+
color: #90be59;
|
1396 |
+
font-weight: 700;
|
1397 |
+
}
|
1398 |
+
|
1399 |
+
p.loading {
|
1400 |
+
position: static;
|
1401 |
+
}
|
1402 |
+
.saved-response.loading,
|
1403 |
+
p.loading,
|
1404 |
+
.alm-dropdown ul li a.updating {
|
1405 |
+
background: url('../../img/loader.gif') no-repeat left center;
|
1406 |
+
padding-left: 24px;
|
1407 |
+
}
|
1408 |
+
|
1409 |
+
.alm-dropdown ul li a.updating {
|
1410 |
+
background-position: 9px 54%;
|
1411 |
+
padding-left: 34px;
|
1412 |
+
}
|
1413 |
+
|
1414 |
+
.restore-default {
|
1415 |
+
float: right;
|
1416 |
+
margin: 19px 20px 0 0;
|
1417 |
+
font-size: 12px;
|
1418 |
+
}
|
1419 |
+
.restore-default a {
|
1420 |
+
text-decoration: none;
|
1421 |
+
}
|
1422 |
+
|
1423 |
+
table.highlight {
|
1424 |
+
background: #fff !important;
|
1425 |
+
}
|
1426 |
+
|
1427 |
+
/* Columns */
|
1428 |
+
.ajax-load-more .cnkt-main {
|
1429 |
+
width: 70%;
|
1430 |
+
float: left;
|
1431 |
+
background: #fff;
|
1432 |
+
padding: $gutter;
|
1433 |
+
border: 1px solid $border;
|
1434 |
+
border-radius: $radius;
|
1435 |
+
&.stylefree {
|
1436 |
+
padding: 0;
|
1437 |
+
background-color: transparent;
|
1438 |
+
border: none;
|
1439 |
+
}
|
1440 |
+
}
|
1441 |
+
.ajax-load-more .cnkt-main .group {
|
1442 |
+
background: #fff;
|
1443 |
+
padding: 20px;
|
1444 |
+
margin: 0 0 20px;
|
1445 |
+
position: relative;
|
1446 |
+
display: block;
|
1447 |
+
clear: both;
|
1448 |
+
}
|
1449 |
+
.ajax-load-more .cnkt-main .group,
|
1450 |
+
.ajax-load-more .cnkt-sidebar .cta,
|
1451 |
+
.call-out.light {
|
1452 |
+
border: 1px solid $border;
|
1453 |
+
box-shadow: 0 0 5px rgba(#000, 0.1);
|
1454 |
+
&.no-shadow {
|
1455 |
+
box-shadow: none;
|
1456 |
+
}
|
1457 |
+
}
|
1458 |
+
|
1459 |
+
.ajax-load-more .cnkt-main .repeater-listing {
|
1460 |
+
border: 1px solid $border;
|
1461 |
+
background-color: #fff;
|
1462 |
+
border-radius: $radius;
|
1463 |
+
padding: $gutter;
|
1464 |
+
position: relative;
|
1465 |
+
.toggle-all {
|
1466 |
+
right: -1px;
|
1467 |
+
top: -45px;
|
1468 |
+
}
|
1469 |
+
.flexbox-wrap {
|
1470 |
+
margin: 0;
|
1471 |
+
}
|
1472 |
+
}
|
1473 |
+
|
1474 |
+
.ajax-load-more .cnkt-main.full {
|
1475 |
+
width: 100%;
|
1476 |
+
float: none;
|
1477 |
+
}
|
1478 |
+
.ajax-load-more .cnkt-main h2,
|
1479 |
+
.ajax-load-more .cnkt-main h3,
|
1480 |
+
.ajax-load-more .cnkt-main h4 {
|
1481 |
+
margin-top: 0;
|
1482 |
+
}
|
1483 |
+
.form-table tr {
|
1484 |
+
border-top: 1px solid $border;
|
1485 |
+
}
|
1486 |
+
.form-table {
|
1487 |
+
border: 1px solid $border;
|
1488 |
+
margin: 0 0 20px;
|
1489 |
+
br {
|
1490 |
+
height: 1px;
|
1491 |
+
display: block;
|
1492 |
+
overflow: hidden;
|
1493 |
+
line-height: 1px;
|
1494 |
+
margin: 0;
|
1495 |
+
content: '';
|
1496 |
+
}
|
1497 |
+
}
|
1498 |
+
#alm_OptionsForm {
|
1499 |
+
.form-table:last-of-type {
|
1500 |
+
margin-bottom: 0;
|
1501 |
+
}
|
1502 |
+
}
|
1503 |
+
|
1504 |
+
/* Repeaters */
|
1505 |
+
.repeaters {
|
1506 |
+
.repeater-wrap {
|
1507 |
+
padding: 15px 0 !important;
|
1508 |
+
}
|
1509 |
+
.repeater-wrap label {
|
1510 |
+
font-weight: 600;
|
1511 |
+
span {
|
1512 |
+
display: block;
|
1513 |
+
font-weight: 400;
|
1514 |
+
color: #999;
|
1515 |
+
font-size: 13px;
|
1516 |
+
padding-top: 2px;
|
1517 |
+
}
|
1518 |
+
}
|
1519 |
+
input.save-repeater {
|
1520 |
+
display: inline-block;
|
1521 |
+
margin: 0;
|
1522 |
+
clear: none;
|
1523 |
+
max-width: 25%;
|
1524 |
+
}
|
1525 |
+
.repeater-wrap textarea,
|
1526 |
+
.repeater-wrap input[type='text'] {
|
1527 |
+
width: 100%;
|
1528 |
+
}
|
1529 |
+
input.save-repeater.saving {
|
1530 |
+
cursor: default !important;
|
1531 |
+
opacity: 0.3 !important;
|
1532 |
+
}
|
1533 |
+
.saved-response {
|
1534 |
+
max-width: 72%;
|
1535 |
+
opacity: 0;
|
1536 |
+
}
|
1537 |
+
.one_half {
|
1538 |
+
padding-bottom: 10px;
|
1539 |
+
}
|
1540 |
+
.alm-delete {
|
1541 |
+
clear: none;
|
1542 |
+
display: inline-block;
|
1543 |
+
margin: 14px 0 0;
|
1544 |
+
width: auto;
|
1545 |
+
float: right;
|
1546 |
+
opacity: 0;
|
1547 |
+
transition: all 0.2s ease;
|
1548 |
+
position: absolute;
|
1549 |
+
right: 15px;
|
1550 |
+
bottom: 15px;
|
1551 |
+
a {
|
1552 |
+
border-radius: $radius;
|
1553 |
+
background: none;
|
1554 |
+
color: #c94141;
|
1555 |
+
font-size: 14px;
|
1556 |
+
line-height: 28px;
|
1557 |
+
height: 28px;
|
1558 |
+
text-decoration: none;
|
1559 |
+
display: block;
|
1560 |
+
padding: 0 10px;
|
1561 |
+
&:hover {
|
1562 |
+
background-color: #c94141;
|
1563 |
+
color: #fff;
|
1564 |
+
}
|
1565 |
+
&:focus {
|
1566 |
+
box-shadow: none;
|
1567 |
+
}
|
1568 |
+
&:active {
|
1569 |
+
background-color: #b93636;
|
1570 |
+
}
|
1571 |
+
}
|
1572 |
+
}
|
1573 |
+
.row:hover .alm-delete {
|
1574 |
+
opacity: 1;
|
1575 |
+
}
|
1576 |
+
}
|
1577 |
+
|
1578 |
+
/* Add-ons & Extensions */
|
1579 |
+
|
1580 |
+
.flexbox-wrap {
|
1581 |
+
display: flex;
|
1582 |
+
flex-wrap: wrap;
|
1583 |
+
margin-bottom: 20px;
|
1584 |
+
border-top: 1px solid $border;
|
1585 |
+
border-left: 1px solid $border;
|
1586 |
+
background-color: #fff;
|
1587 |
+
box-shadow: inset 0 0 0 1px $border;
|
1588 |
+
p.intro {
|
1589 |
+
border-bottom: 1px solid $border;
|
1590 |
+
width: 100%;
|
1591 |
+
padding: $padding;
|
1592 |
+
margin: 0;
|
1593 |
+
font-style: italic;
|
1594 |
+
}
|
1595 |
+
}
|
1596 |
+
|
1597 |
+
#alm-add-ons .group {
|
1598 |
+
overflow: hidden;
|
1599 |
+
width: 33.333%;
|
1600 |
+
display: flex;
|
1601 |
+
vertical-align: top;
|
1602 |
+
text-align: center;
|
1603 |
+
margin: 0 !important;
|
1604 |
+
padding: 0;
|
1605 |
+
border-radius: 0;
|
1606 |
+
border-top: none;
|
1607 |
+
border-left: none;
|
1608 |
+
|
1609 |
+
// Featured Addon
|
1610 |
+
&.highlighted,
|
1611 |
+
&.extend {
|
1612 |
+
width: 100%;
|
1613 |
+
a {
|
1614 |
+
background: $light_grey;
|
1615 |
+
border: 10px solid rgba(0, 0, 0, 0.025);
|
1616 |
+
}
|
1617 |
+
img {
|
1618 |
+
padding: 10px;
|
1619 |
+
}
|
1620 |
+
@media screen and (min-width: 768px) {
|
1621 |
+
text-align: left;
|
1622 |
+
a {
|
1623 |
+
padding: 25px;
|
1624 |
+
overflow: hidden;
|
1625 |
+
display: flex;
|
1626 |
+
flex-wrap: nowrap;
|
1627 |
+
align-items: center;
|
1628 |
+
}
|
1629 |
+
.pro-img,
|
1630 |
+
.pro-details {
|
1631 |
+
flex: 1;
|
1632 |
+
}
|
1633 |
+
.pro-img {
|
1634 |
+
max-width: 355px;
|
1635 |
+
}
|
1636 |
+
.pro-details {
|
1637 |
+
padding: 0 15px 0 35px;
|
1638 |
+
}
|
1639 |
+
img {
|
1640 |
+
position: static;
|
1641 |
+
}
|
1642 |
+
span.cnkt-button {
|
1643 |
+
position: static;
|
1644 |
+
width: auto;
|
1645 |
+
display: inline-block;
|
1646 |
+
padding: 13px 30px;
|
1647 |
+
text-align: center;
|
1648 |
+
margin-top: 15px;
|
1649 |
+
font-size: 14px;
|
1650 |
+
}
|
1651 |
+
}
|
1652 |
+
@media screen and (min-width: 769px) and (max-width: 1270px) {
|
1653 |
+
.pro-desc {
|
1654 |
+
display: none;
|
1655 |
+
}
|
1656 |
+
}
|
1657 |
+
}
|
1658 |
+
&.extend {
|
1659 |
+
a {
|
1660 |
+
background-color: #fff;
|
1661 |
+
}
|
1662 |
+
}
|
1663 |
+
&.installed {
|
1664 |
+
opacity: 0.85;
|
1665 |
+
filter: grayscale(1);
|
1666 |
+
p:before {
|
1667 |
+
display: none !important;
|
1668 |
+
}
|
1669 |
+
}
|
1670 |
+
@media screen and (max-width: 1350px) {
|
1671 |
+
width: 50%;
|
1672 |
+
}
|
1673 |
+
}
|
1674 |
+
|
1675 |
+
#alm-add-ons .group span.cnkt-button {
|
1676 |
+
position: absolute;
|
1677 |
+
left: 20px;
|
1678 |
+
bottom: 20px;
|
1679 |
+
width: 100%;
|
1680 |
+
width: calc(100% - 40px);
|
1681 |
+
display: block;
|
1682 |
+
font-size: 14px;
|
1683 |
+
padding: 11px 14px;
|
1684 |
+
transition: all 0.15s ease;
|
1685 |
+
border-bottom: none;
|
1686 |
+
border-left: none;
|
1687 |
+
border-right: none;
|
1688 |
+
}
|
1689 |
+
#alm-add-ons .group img {
|
1690 |
+
padding: 0 15px 15px;
|
1691 |
+
}
|
1692 |
+
#alm-add-ons .group {
|
1693 |
+
a {
|
1694 |
+
text-decoration: none;
|
1695 |
+
display: block;
|
1696 |
+
padding: 25px 25px 70px;
|
1697 |
+
position: relative;
|
1698 |
+
}
|
1699 |
+
&--pro {
|
1700 |
+
a {
|
1701 |
+
padding-bottom: 17px;
|
1702 |
+
}
|
1703 |
+
}
|
1704 |
+
}
|
1705 |
+
|
1706 |
+
#alm-add-ons .group:hover h2 {
|
1707 |
+
text-decoration: underline;
|
1708 |
+
}
|
1709 |
+
#alm-add-ons .group a h2 {
|
1710 |
+
transition: all 0.15s ease;
|
1711 |
+
}
|
1712 |
+
#alm-add-ons .group a:hover h2 {
|
1713 |
+
color: #ff5a58 !important;
|
1714 |
+
}
|
1715 |
+
#alm-add-ons .group.installed a:hover h2 {
|
1716 |
+
color: #444 !important;
|
1717 |
+
}
|
1718 |
+
|
1719 |
+
/* Add-on Callout! */
|
1720 |
+
.call-out {
|
1721 |
+
background: #75d0b4;
|
1722 |
+
font-size: 14px;
|
1723 |
+
color: #fff;
|
1724 |
+
font-weight: 400;
|
1725 |
+
padding: 20px 100px 20px 20px;
|
1726 |
+
border-radius: 3px;
|
1727 |
+
margin: 0;
|
1728 |
+
width: 100%;
|
1729 |
+
display: block;
|
1730 |
+
position: relative;
|
1731 |
+
}
|
1732 |
+
.call-out.light {
|
1733 |
+
background: #fdfdec;
|
1734 |
+
}
|
1735 |
+
.call-out.light p {
|
1736 |
+
margin: 0;
|
1737 |
+
padding: 0 30px;
|
1738 |
+
text-align: center;
|
1739 |
+
font-weight: 400;
|
1740 |
+
}
|
1741 |
+
.call-out.light p a {
|
1742 |
+
color: #ff5a58 !important;
|
1743 |
+
}
|
1744 |
+
.call-out.light p a:hover {
|
1745 |
+
text-decoration: underline;
|
1746 |
+
}
|
1747 |
+
#alm-builder .call-out,
|
1748 |
+
.forceColors .call-out {
|
1749 |
+
/* Shortcode builder */
|
1750 |
+
width: 90%;
|
1751 |
+
width: calc(100% - 20px);
|
1752 |
+
margin: 10px;
|
1753 |
+
}
|
1754 |
+
.call-out .cnkt-button {
|
1755 |
+
font-size: 13px;
|
1756 |
+
padding: 6px 10px;
|
1757 |
+
display: inline-block;
|
1758 |
+
background: #fff;
|
1759 |
+
border: none;
|
1760 |
+
border-radius: 3px;
|
1761 |
+
position: absolute;
|
1762 |
+
right: 12px;
|
1763 |
+
top: 13px;
|
1764 |
+
color: #387061 !important;
|
1765 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
1766 |
+
}
|
1767 |
+
.call-out a {
|
1768 |
+
color: #42524e !important;
|
1769 |
+
text-decoration: none;
|
1770 |
+
font-weight: 600;
|
1771 |
+
}
|
1772 |
+
.call-out a:hover,
|
1773 |
+
.call-out a:focus {
|
1774 |
+
color: #222 !important;
|
1775 |
+
}
|
1776 |
+
a.cnkt-button,
|
1777 |
+
span.cnkt-button {
|
1778 |
+
padding: 6px 10px;
|
1779 |
+
display: inline-block;
|
1780 |
+
background: #5acfb2;
|
1781 |
+
border: 1px solid #5acfb2;
|
1782 |
+
border-radius: 2px;
|
1783 |
+
position: static;
|
1784 |
+
text-decoration: none !important;
|
1785 |
+
color: #fff !important;
|
1786 |
+
font-size: 14px;
|
1787 |
+
font-weight: 600;
|
1788 |
+
}
|
1789 |
+
a.cnkt-button:hover,
|
1790 |
+
a.cnkt-button:hover i,
|
1791 |
+
.group:hover span.cnkt-button,
|
1792 |
+
.group:hover span.cnkt-button i {
|
1793 |
+
background-color: #935eaf;
|
1794 |
+
border-color: #935eaf;
|
1795 |
+
color: #fff !important;
|
1796 |
+
box-shadow: none;
|
1797 |
+
}
|
1798 |
+
a.cnkt-button:focus,
|
1799 |
+
.group:focus span.cnkt-button {
|
1800 |
+
background-color: #83519d;
|
1801 |
+
border-color: #935eaf;
|
1802 |
+
color: #fff !important;
|
1803 |
+
outline: none;
|
1804 |
+
}
|
1805 |
+
a.cnkt-button i,
|
1806 |
+
span.cnkt-button i {
|
1807 |
+
color: #397666;
|
1808 |
+
margin-right: 3px;
|
1809 |
+
position: relative;
|
1810 |
+
top: 1px;
|
1811 |
+
background: none !important;
|
1812 |
+
transition: all 0.15s ease;
|
1813 |
+
}
|
1814 |
+
a.cnkt-button.installed,
|
1815 |
+
span.cnkt-button.installed,
|
1816 |
+
.group span.cnkt-button.installed {
|
1817 |
+
background: $light_grey !important;
|
1818 |
+
border-color: #efefef !important;
|
1819 |
+
color: #888 !important;
|
1820 |
+
box-shadow: none !important;
|
1821 |
+
}
|
1822 |
+
a.cnkt-button.installed i,
|
1823 |
+
span.cnkt-button.installed i,
|
1824 |
+
.group:hover span.cnkt-button.installed i {
|
1825 |
+
background: none !important;
|
1826 |
+
color: #5da592 !important;
|
1827 |
+
top: 0;
|
1828 |
+
}
|
1829 |
+
|
1830 |
+
/*
|
1831 |
+
* Licenses
|
1832 |
+
*
|
1833 |
+
* @since 2.7.0
|
1834 |
+
*/
|
1835 |
+
|
1836 |
+
.license {
|
1837 |
+
overflow: hidden;
|
1838 |
+
margin: 0;
|
1839 |
+
display: block;
|
1840 |
+
padding: 20px 0 0;
|
1841 |
+
position: relative;
|
1842 |
+
}
|
1843 |
+
|
1844 |
+
.license:first-of-type {
|
1845 |
+
padding: 10px 0 0;
|
1846 |
+
}
|
1847 |
+
.license-title {
|
1848 |
+
border-radius: 3px 3px 0 0;
|
1849 |
+
border: 1px solid $border;
|
1850 |
+
background-color: $light_grey;
|
1851 |
+
position: relative;
|
1852 |
+
}
|
1853 |
+
.license-title .status {
|
1854 |
+
width: 13px;
|
1855 |
+
height: 13px;
|
1856 |
+
border-radius: 100%;
|
1857 |
+
background: #d45656;
|
1858 |
+
position: absolute;
|
1859 |
+
left: 15px;
|
1860 |
+
top: 50%;
|
1861 |
+
margin-top: -7px;
|
1862 |
+
box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
|
1863 |
+
}
|
1864 |
+
.license-title .status.valid {
|
1865 |
+
background-color: $green;
|
1866 |
+
}
|
1867 |
+
.license h2 {
|
1868 |
+
margin: 0;
|
1869 |
+
padding: 15px 15px 15px 38px;
|
1870 |
+
font-size: 16px;
|
1871 |
+
font-weight: 700;
|
1872 |
+
line-height: 1.2;
|
1873 |
+
}
|
1874 |
+
.license p,
|
1875 |
+
.license label {
|
1876 |
+
font-size: 400;
|
1877 |
+
font-size: 14px;
|
1878 |
+
}
|
1879 |
+
.license .cnkt-button {
|
1880 |
+
position: absolute;
|
1881 |
+
top: 9px;
|
1882 |
+
right: 15px;
|
1883 |
+
padding: 5px 7px !important;
|
1884 |
+
}
|
1885 |
+
.license a.cnkt-button.installed {
|
1886 |
+
background-color: none !important;
|
1887 |
+
box-shadow: none !important;
|
1888 |
+
border-color: transparent !important;
|
1889 |
+
}
|
1890 |
+
|
1891 |
+
.license .no-license {
|
1892 |
+
display: block;
|
1893 |
+
padding: 12px;
|
1894 |
+
margin: 0 0 20px;
|
1895 |
+
border: 1px solid #e7e7c6;
|
1896 |
+
background-color: #ffffe5;
|
1897 |
+
border-radius: 2px;
|
1898 |
+
}
|
1899 |
+
.license .no-license h4 {
|
1900 |
+
margin: 0 0 3px;
|
1901 |
+
}
|
1902 |
+
.license .no-license p {
|
1903 |
+
margin: 5px 0 0;
|
1904 |
+
padding: 0;
|
1905 |
+
}
|
1906 |
+
|
1907 |
+
.license .loading {
|
1908 |
+
position: absolute;
|
1909 |
+
left: 0;
|
1910 |
+
top: 0;
|
1911 |
+
width: 100%;
|
1912 |
+
height: 100%;
|
1913 |
+
background: rgba(255, 255, 255, 0.6) url('../../img/loader.gif') no-repeat center center;
|
1914 |
+
z-index: 9;
|
1915 |
+
display: none;
|
1916 |
+
}
|
1917 |
+
.license-btn.hide,
|
1918 |
+
.renew-btn.hide {
|
1919 |
+
display: none;
|
1920 |
+
}
|
1921 |
+
.license-btn-wrap {
|
1922 |
+
display: block;
|
1923 |
+
}
|
1924 |
+
.license-btn-wrap .msg {
|
1925 |
+
display: block;
|
1926 |
+
padding: 15px 0 0;
|
1927 |
+
font-size: 14px;
|
1928 |
+
line-height: 24px;
|
1929 |
+
position: relative;
|
1930 |
+
top: 4px;
|
1931 |
+
}
|
1932 |
+
.license-btn-wrap .msg strong {
|
1933 |
+
display: block;
|
1934 |
+
}
|
1935 |
+
.license-btn-wrap .msg em {
|
1936 |
+
opacity: 0.7;
|
1937 |
+
font-style: normal;
|
1938 |
+
}
|
1939 |
+
|
1940 |
+
.license-wrap,
|
1941 |
+
.license-no-addons {
|
1942 |
+
overflow: hidden;
|
1943 |
+
display: block;
|
1944 |
+
padding: 18px 15px;
|
1945 |
+
border: 1px solid $border;
|
1946 |
+
border-top: none;
|
1947 |
+
background-color: #fff;
|
1948 |
+
border-radius: 0 0 3px 3px;
|
1949 |
+
}
|
1950 |
+
.license-wrap label {
|
1951 |
+
font-weight: 600;
|
1952 |
+
top: -3px;
|
1953 |
+
}
|
1954 |
+
.license-wrap input[type='text'] {
|
1955 |
+
margin: 0;
|
1956 |
+
width: 100% !important;
|
1957 |
+
padding: 14px;
|
1958 |
+
}
|
1959 |
+
.license-wrap .button-primary {
|
1960 |
+
margin-right: 5px;
|
1961 |
+
}
|
1962 |
+
.license-key-field {
|
1963 |
+
position: relative;
|
1964 |
+
display: block;
|
1965 |
+
margin: 0 0 20px;
|
1966 |
+
}
|
1967 |
+
.license-key-field .status {
|
1968 |
+
position: absolute;
|
1969 |
+
right: 10px;
|
1970 |
+
top: 50%;
|
1971 |
+
transform: translateY(-50%);
|
1972 |
+
display: inline-block;
|
1973 |
+
border-radius: 2px;
|
1974 |
+
padding: 6px 12px;
|
1975 |
+
line-height: 1.3;
|
1976 |
+
color: #fff;
|
1977 |
+
border-color: #999;
|
1978 |
+
cursor: default;
|
1979 |
+
}
|
1980 |
+
.license-key-field .status.active {
|
1981 |
+
background-color: $green;
|
1982 |
+
}
|
1983 |
+
.license-key-field .status.inactive {
|
1984 |
+
background-color: #d45656;
|
1985 |
+
}
|
1986 |
+
|
1987 |
+
.ajax-load-more .alm-nav {
|
1988 |
+
font-size: 600;
|
1989 |
+
font-size: 14px;
|
1990 |
+
margin: 0 !important;
|
1991 |
+
padding: 5px 0 5px;
|
1992 |
+
}
|
1993 |
+
.ajax-load-more .alm-nav a {
|
1994 |
+
display: inline-block;
|
1995 |
+
}
|
1996 |
+
|
1997 |
+
.license-no-addons {
|
1998 |
+
border: 1px solid #bad0da;
|
1999 |
+
border-radius: 3px;
|
2000 |
+
background-color: #e0f5ff;
|
2001 |
+
}
|
2002 |
+
.license-no-addons p {
|
2003 |
+
margin: 0;
|
2004 |
+
padding: 0;
|
2005 |
+
}
|
2006 |
+
|
2007 |
+
/*
|
2008 |
+
* Plugin Sidebar
|
2009 |
+
*
|
2010 |
+
* @since 1.0
|
2011 |
+
*/
|
2012 |
+
.ajax-load-more .cnkt-sidebar .cta {
|
2013 |
+
background: #fff;
|
2014 |
+
padding: 0;
|
2015 |
+
margin: 0 0 20px;
|
2016 |
+
overflow: visible;
|
2017 |
+
position: relative;
|
2018 |
+
box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.065);
|
2019 |
+
border-radius: $radius;
|
2020 |
+
.alm-file-location {
|
2021 |
+
padding-top: 15px;
|
2022 |
+
margin-top: 15px;
|
2023 |
+
border-top: 1px solid #efefef;
|
2024 |
+
input {
|
2025 |
+
font-size: 12px;
|
2026 |
+
font-family: Consolas, monaco, monospace;
|
2027 |
+
background: $light_grey;
|
2028 |
+
border: 1px solid $border;
|
2029 |
+
display: block;
|
2030 |
+
width: 100%;
|
2031 |
+
padding: 8px;
|
2032 |
+
margin: 0;
|
2033 |
+
color: #777;
|
2034 |
+
box-shadow: none !important;
|
2035 |
+
}
|
2036 |
+
}
|
2037 |
+
}
|
2038 |
+
.ajax-load-more .cnkt-sidebar .cta-inner {
|
2039 |
+
padding: 15px;
|
2040 |
+
display: block;
|
2041 |
+
.cta-inner {
|
2042 |
+
background-color: $light_grey;
|
2043 |
+
border-radius: 3px;
|
2044 |
+
border: 1px solid $border;
|
2045 |
+
}
|
2046 |
+
}
|
2047 |
+
.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
|
2048 |
+
padding-bottom: 80px;
|
2049 |
+
}
|
2050 |
+
.ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap {
|
2051 |
+
display: block;
|
2052 |
+
padding: 20px;
|
2053 |
+
}
|
2054 |
+
.ajax-load-more .cnkt-sidebar .cta.padding-bottom {
|
2055 |
+
padding-bottom: 50px;
|
2056 |
+
}
|
2057 |
+
.ajax-load-more .cnkt-sidebar h3,
|
2058 |
+
.ajax-load-more .cnkt-sidebar h4 {
|
2059 |
+
margin-top: 0;
|
2060 |
+
}
|
2061 |
+
.ajax-load-more .cnkt-sidebar h3 {
|
2062 |
+
padding: 12px $padding;
|
2063 |
+
margin: 0;
|
2064 |
+
display: block;
|
2065 |
+
font-size: 14px;
|
2066 |
+
font-weight: 700;
|
2067 |
+
text-transform: none;
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
.ajax-load-more .cnkt-sidebar .item {
|
2071 |
+
overflow: hidden;
|
2072 |
+
}
|
2073 |
+
.ajax-load-more .cnkt-sidebar .item h4 {
|
2074 |
+
margin: 0 0 5px;
|
2075 |
+
font-size: 0.9em;
|
2076 |
+
text-transform: uppercase;
|
2077 |
+
opacity: 0.5;
|
2078 |
+
}
|
2079 |
+
.ajax-load-more .cnkt-sidebar h4 {
|
2080 |
+
margin-bottom: 5px;
|
2081 |
+
}
|
2082 |
+
.ajax-load-more .cnkt-sidebar p {
|
2083 |
+
line-height: 22px;
|
2084 |
+
margin: 0 0 5px;
|
2085 |
+
font-size: 14px;
|
2086 |
+
}
|
2087 |
+
.ajax-load-more .cnkt-sidebar .cta.dyk {
|
2088 |
+
.cta-inner {
|
2089 |
+
overflow: hidden;
|
2090 |
+
}
|
2091 |
+
.img {
|
2092 |
+
float: left;
|
2093 |
+
width: 40%;
|
2094 |
+
padding: 0 10px 10px 0;
|
2095 |
+
}
|
2096 |
+
.text {
|
2097 |
+
float: left;
|
2098 |
+
width: 60%;
|
2099 |
+
padding: 0 0 10px 10px;
|
2100 |
+
}
|
2101 |
+
@media screen and (min-width: 900px) and (max-width: 1300px) {
|
2102 |
+
.img,
|
2103 |
+
.text {
|
2104 |
+
float: none;
|
2105 |
+
padding: 0 0 10px;
|
2106 |
+
width: 100%;
|
2107 |
+
}
|
2108 |
+
}
|
2109 |
+
@media screen and (max-width: 480px) {
|
2110 |
+
.img,
|
2111 |
+
.text {
|
2112 |
+
float: none;
|
2113 |
+
padding: 0 0 10px;
|
2114 |
+
width: 100%;
|
2115 |
+
}
|
2116 |
+
}
|
2117 |
+
p {
|
2118 |
+
margin: 0 0 15px;
|
2119 |
+
clear: none;
|
2120 |
+
&:last-child {
|
2121 |
+
margin: 0;
|
2122 |
+
}
|
2123 |
+
&.addon-intro {
|
2124 |
+
margin-top: -1px;
|
2125 |
+
font-size: 16px;
|
2126 |
+
}
|
2127 |
+
}
|
2128 |
+
}
|
2129 |
+
.ajax-load-more .cnkt-sidebar ul {
|
2130 |
+
padding: 5px 0 0;
|
2131 |
+
margin: 0;
|
2132 |
+
overflow: hidden;
|
2133 |
+
}
|
2134 |
+
.ajax-load-more .cnkt-sidebar li {
|
2135 |
+
font-size: 14px;
|
2136 |
+
margin: 0 0 10px;
|
2137 |
+
line-height: 1.5;
|
2138 |
+
}
|
2139 |
+
|
2140 |
+
.ajax-load-more .cnkt-sidebar .cta.resources li {
|
2141 |
+
display: block;
|
2142 |
+
width: 100%;
|
2143 |
+
line-height: 1;
|
2144 |
+
margin: 1px 0;
|
2145 |
+
}
|
2146 |
+
.ajax-load-more .cnkt-sidebar .cta.resources li a {
|
2147 |
+
text-decoration: none;
|
2148 |
+
padding: 10px 0;
|
2149 |
+
display: block;
|
2150 |
+
border-top: 1px solid #efefef;
|
2151 |
+
}
|
2152 |
+
.ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
|
2153 |
+
border: none;
|
2154 |
+
padding-top: 0;
|
2155 |
+
}
|
2156 |
+
.ajax-load-more .cnkt-sidebar .cta.resources li i {
|
2157 |
+
display: inline-block;
|
2158 |
+
width: 20px;
|
2159 |
+
text-align: center;
|
2160 |
+
color: #ccc;
|
2161 |
+
text-decoration: none;
|
2162 |
+
font-size: 14px;
|
2163 |
+
}
|
2164 |
+
.ajax-load-more .cnkt-sidebar .item i {
|
2165 |
+
font-size: 12px;
|
2166 |
+
float: left;
|
2167 |
+
width: 18px;
|
2168 |
+
height: 18px;
|
2169 |
+
border-radius: 100%;
|
2170 |
+
background: #efefef;
|
2171 |
+
line-height: 18px;
|
2172 |
+
text-align: center;
|
2173 |
+
margin: 1px 7px 0 0;
|
2174 |
+
position: relative;
|
2175 |
+
}
|
2176 |
+
|
2177 |
+
.ajax-load-more .cnkt-sidebar .item i.fa-check {
|
2178 |
+
background: #90be59;
|
2179 |
+
color: #fff;
|
2180 |
+
}
|
2181 |
+
.ajax-load-more .cnkt-sidebar .item i.fa-exclamation {
|
2182 |
+
background: #c43a3a;
|
2183 |
+
color: #fff;
|
2184 |
+
}
|
2185 |
+
|
2186 |
+
.ajax-load-more .cnkt-sidebar a.visit {
|
2187 |
+
background: #ed7070;
|
2188 |
+
padding: 17px 20px 18px 44px;
|
2189 |
+
position: absolute;
|
2190 |
+
bottom: 0;
|
2191 |
+
left: 0;
|
2192 |
+
width: 100%;
|
2193 |
+
display: block;
|
2194 |
+
color: #fff !important;
|
2195 |
+
z-index: 2;
|
2196 |
+
text-decoration: none;
|
2197 |
+
line-height: 1;
|
2198 |
+
border-radius: 0 0 2px 2px;
|
2199 |
+
}
|
2200 |
+
.ajax-load-more .cnkt-sidebar a.visit i {
|
2201 |
+
font-size: 21px;
|
2202 |
+
opacity: 0.6;
|
2203 |
+
margin: 0 5px 0 0;
|
2204 |
+
position: absolute;
|
2205 |
+
top: 13px;
|
2206 |
+
left: 18px;
|
2207 |
+
display: inline-block;
|
2208 |
+
}
|
2209 |
+
.ajax-load-more .cnkt-sidebar a.visit:hover,
|
2210 |
+
.ajax-load-more .cnkt-sidebar a.visit:focus {
|
2211 |
+
background: #f06060;
|
2212 |
+
}
|
2213 |
+
.ajax-load-more .cnkt-sidebar a.visit:hover i {
|
2214 |
+
opacity: 1;
|
2215 |
+
}
|
2216 |
+
|
2217 |
+
.ajax-load-more .cnkt-sidebar .project-listing {
|
2218 |
+
padding: 0;
|
2219 |
+
}
|
2220 |
+
.ajax-load-more .cnkt-sidebar .project-listing li {
|
2221 |
+
margin: 20px 0 0;
|
2222 |
+
padding: 0;
|
2223 |
+
position: relative;
|
2224 |
+
clear: both;
|
2225 |
+
}
|
2226 |
+
.ajax-load-more .cnkt-sidebar .project-listing li a {
|
2227 |
+
display: block;
|
2228 |
+
position: static;
|
2229 |
+
padding-left: 60px;
|
2230 |
+
min-height: 58px;
|
2231 |
+
text-decoration: none;
|
2232 |
+
}
|
2233 |
+
.ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
|
2234 |
+
margin-top: 0;
|
2235 |
+
}
|
2236 |
+
.ajax-load-more .cnkt-sidebar .project-listing img {
|
2237 |
+
height: 48px;
|
2238 |
+
left: 0;
|
2239 |
+
position: absolute;
|
2240 |
+
top: 2px;
|
2241 |
+
width: 48px;
|
2242 |
+
}
|
2243 |
+
.ajax-load-more .cnkt-sidebar .project-listing li strong {
|
2244 |
+
display: block;
|
2245 |
+
}
|
2246 |
+
.ajax-load-more .cnkt-sidebar .project-listing li span {
|
2247 |
+
color: #777;
|
2248 |
+
}
|
2249 |
+
|
2250 |
+
/*
|
2251 |
+
* CodeMirror Syntax Highlighting
|
2252 |
+
* @since 2.2.0
|
2253 |
+
*/
|
2254 |
+
|
2255 |
+
.shortcode-builder {
|
2256 |
+
hr {
|
2257 |
+
margin: 0;
|
2258 |
+
}
|
2259 |
+
}
|
2260 |
+
|
2261 |
+
/*
|
2262 |
+
* Delete Template (Unlimited Repeaters
|
2263 |
+
*
|
2264 |
+
* @since 2.2.7
|
2265 |
+
*/
|
2266 |
+
|
2267 |
+
#unlmited-container {
|
2268 |
+
margin: 0;
|
2269 |
+
display: block;
|
2270 |
+
overflow: visible;
|
2271 |
+
}
|
2272 |
+
.admin.ajax-load-more .row.unlimited:first-of-type {
|
2273 |
+
margin-top: 10px;
|
2274 |
+
}
|
2275 |
+
|
2276 |
+
.repeaters .row,
|
2277 |
+
.shortcode-builder .row {
|
2278 |
+
transition: background-color 0.3s ease;
|
2279 |
+
}
|
2280 |
+
.repeaters .row.no-brd:hover,
|
2281 |
+
.shortcode-builder .row.no-brd:hover {
|
2282 |
+
box-shadow: none;
|
2283 |
+
border-color: transparent;
|
2284 |
+
}
|
2285 |
+
.unlimited-wrap {
|
2286 |
+
display: none;
|
2287 |
+
}
|
2288 |
+
|
2289 |
+
.admin.ajax-load-more .row.unlimited.deleting {
|
2290 |
+
/* Deleting Row */
|
2291 |
+
background: #fff url('../../img/loader-unlimited.gif') no-repeat center center;
|
2292 |
+
border-color: #fff;
|
2293 |
+
opacity: 0.4;
|
2294 |
+
}
|
2295 |
+
.admin.ajax-load-more .row.unlimited.deleting.deleted {
|
2296 |
+
/* Deleting Row */
|
2297 |
+
background-image: none !important;
|
2298 |
+
}
|
2299 |
+
.admin.ajax-load-more .row.unlimited.new {
|
2300 |
+
/* New Row */
|
2301 |
+
background: url('../../img/loader-unlimited.gif') no-repeat center center;
|
2302 |
+
border-color: #efefef !important;
|
2303 |
+
min-height: 60px;
|
2304 |
+
display: none;
|
2305 |
+
}
|
2306 |
+
.admin.ajax-load-more .row.unlimited.new.done {
|
2307 |
+
background-image: none !important;
|
2308 |
+
}
|
2309 |
+
.admin.ajax-load-more .row.unlimited.loaded {
|
2310 |
+
/* Loading complete */
|
2311 |
+
background-color: #64e49d;
|
2312 |
+
border-color: #64e49d;
|
2313 |
+
}
|
2314 |
+
|
2315 |
+
.admin.ajax-load-more .row.unlimited.deleting .expand-wrap,
|
2316 |
+
.row.unlimited.deleting h3.heading {
|
2317 |
+
opacity: 0.6;
|
2318 |
+
}
|
2319 |
+
.row.unlimited.deleting .alm-delete {
|
2320 |
+
display: none;
|
2321 |
+
}
|
2322 |
+
.row.unlimited.deleting .save-repeater {
|
2323 |
+
opacity: 0;
|
2324 |
+
cursor: default;
|
2325 |
+
}
|
2326 |
+
|
2327 |
+
.ajax-load-more .row.unlimited input[type='text'] {
|
2328 |
+
width: 100%;
|
2329 |
+
}
|
2330 |
+
|
2331 |
+
.alm-add-template {
|
2332 |
+
text-align: center;
|
2333 |
+
margin: 20px 0 5px !important;
|
2334 |
+
display: block;
|
2335 |
+
font-size: 15px !important;
|
2336 |
+
font-weight: 700;
|
2337 |
+
text-transform: none !important;
|
2338 |
+
text-align: center;
|
2339 |
+
}
|
2340 |
+
.alm-add-template a {
|
2341 |
+
background: #efefef;
|
2342 |
+
border: 1px solid $border;
|
2343 |
+
color: #333;
|
2344 |
+
display: inline-block;
|
2345 |
+
padding: 11px 16px 13px;
|
2346 |
+
line-height: 1;
|
2347 |
+
border-radius: 3px;
|
2348 |
+
text-decoration: none;
|
2349 |
+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
|
2350 |
+
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
|
2351 |
+
}
|
2352 |
+
.alm-add-template a.active {
|
2353 |
+
opacity: 0.5;
|
2354 |
+
cursor: default;
|
2355 |
+
color: #333 !important;
|
2356 |
+
background: #efefef !important;
|
2357 |
+
border-color: #efefef !important;
|
2358 |
+
}
|
2359 |
+
.alm-add-template a:hover {
|
2360 |
+
background: #ff5a58;
|
2361 |
+
border-color: #ff5a58;
|
2362 |
+
color: #fff;
|
2363 |
+
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
|
2364 |
+
text-shadow: none;
|
2365 |
+
}
|
2366 |
+
.alm-add-template a:focus {
|
2367 |
+
box-shadow: none;
|
2368 |
+
text-shadow: none;
|
2369 |
+
}
|
2370 |
+
.alm-add-template a:active {
|
2371 |
+
color: #fff;
|
2372 |
+
background: #ec4745;
|
2373 |
+
border-color: #ec4745;
|
2374 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
2375 |
+
text-shadow: none;
|
2376 |
+
}
|
2377 |
+
|
2378 |
+
.alm-add-template a i {
|
2379 |
+
font-size: 20px;
|
2380 |
+
color: #ec4745;
|
2381 |
+
margin: 0 3px 0 0;
|
2382 |
+
position: relative;
|
2383 |
+
top: 2px;
|
2384 |
+
left: -1px;
|
2385 |
+
}
|
2386 |
+
.alm-add-template a:hover i,
|
2387 |
+
.alm-add-template a:active i {
|
2388 |
+
color: #fff;
|
2389 |
+
}
|
2390 |
+
|
2391 |
+
.spacer {
|
2392 |
+
height: 10px;
|
2393 |
+
clear: both;
|
2394 |
+
display: block;
|
2395 |
+
&.lg {
|
2396 |
+
height: 20px;
|
2397 |
+
}
|
2398 |
+
}
|
2399 |
+
.alm-text-center {
|
2400 |
+
text-align: center;
|
2401 |
+
}
|
2402 |
+
|
2403 |
+
.ajax-load-more p.generate-id {
|
2404 |
+
margin: 10px 0 0 !important;
|
2405 |
+
padding: 0 0 0 5px;
|
2406 |
+
font-size: 12px !important;
|
2407 |
+
i {
|
2408 |
+
margin: 0 2px 0 0;
|
2409 |
+
color: #999;
|
2410 |
+
}
|
2411 |
+
a {
|
2412 |
+
text-decoration: none;
|
2413 |
+
}
|
2414 |
+
}
|
2415 |
+
|
2416 |
+
/*
|
2417 |
+
* Cache
|
2418 |
+
* @since 2.6.0
|
2419 |
+
*/
|
2420 |
+
|
2421 |
+
.alm-cache {
|
2422 |
+
.group .row {
|
2423 |
+
overflow: visible;
|
2424 |
+
}
|
2425 |
+
.row {
|
2426 |
+
&:first-of-type {
|
2427 |
+
margin-top: 0 !important;
|
2428 |
+
}
|
2429 |
+
}
|
2430 |
+
|
2431 |
+
h3.heading {
|
2432 |
+
padding-right: 90px !important;
|
2433 |
+
white-space: nowrap;
|
2434 |
+
overflow: hidden;
|
2435 |
+
text-overflow: ellipsis;
|
2436 |
+
}
|
2437 |
+
|
2438 |
+
/* Live Search */
|
2439 |
+
.alm-cache-search-wrap {
|
2440 |
+
position: relative;
|
2441 |
+
display: block;
|
2442 |
+
margin: 0 0 15px;
|
2443 |
+
input {
|
2444 |
+
width: 100% !important;
|
2445 |
+
margin: 0 !important;
|
2446 |
+
padding: 12px 20px;
|
2447 |
+
display: block;
|
2448 |
+
font-size: 16px;
|
2449 |
+
border-radius: 100px;
|
2450 |
+
}
|
2451 |
+
i {
|
2452 |
+
position: absolute;
|
2453 |
+
right: 15px;
|
2454 |
+
top: 50%;
|
2455 |
+
transform: translateY(-50%);
|
2456 |
+
color: #ccc;
|
2457 |
+
font-size: 20px;
|
2458 |
+
z-index: 1;
|
2459 |
+
}
|
2460 |
+
}
|
2461 |
+
|
2462 |
+
.alm-cache-listing {
|
2463 |
+
position: relative;
|
2464 |
+
.toggle-all {
|
2465 |
+
right: 0;
|
2466 |
+
top: -42px;
|
2467 |
+
}
|
2468 |
+
}
|
2469 |
+
|
2470 |
+
hr {
|
2471 |
+
margin: 30px 0 25px;
|
2472 |
+
border-top-color: #efefef;
|
2473 |
+
}
|
2474 |
+
|
2475 |
+
/* Directory Listing */
|
2476 |
+
.alm-dir-listing {
|
2477 |
+
border: 1px solid $border;
|
2478 |
+
border-radius: $radius;
|
2479 |
+
overflow: hidden;
|
2480 |
+
padding: 0;
|
2481 |
+
margin: 10px 0 0;
|
2482 |
+
&--nested {
|
2483 |
+
padding: 0 15px 15px;
|
2484 |
+
.alm-dir-listing {
|
2485 |
+
margin: 0;
|
2486 |
+
}
|
2487 |
+
}
|
2488 |
+
&:hover {
|
2489 |
+
//box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
2490 |
+
}
|
2491 |
+
&.theme-repeaters {
|
2492 |
+
padding: 15px;
|
2493 |
+
margin: 0;
|
2494 |
+
ul {
|
2495 |
+
border: none;
|
2496 |
+
padding: 0;
|
2497 |
+
margin: 0;
|
2498 |
+
}
|
2499 |
+
i {
|
2500 |
+
color: #ccc;
|
2501 |
+
font-size: 1.1em;
|
2502 |
+
}
|
2503 |
+
}
|
2504 |
+
}
|
2505 |
+
|
2506 |
+
.alm-dir-listing.deleting {
|
2507 |
+
opacity: 0.5;
|
2508 |
+
background: #fff url('../../img/loader-unlimited.gif') no-repeat center center;
|
2509 |
+
}
|
2510 |
+
.alm-dir-listing .dir-title {
|
2511 |
+
margin: 0 0 5px;
|
2512 |
+
position: relative;
|
2513 |
+
}
|
2514 |
+
.alm-dir-listing h3.heading {
|
2515 |
+
padding-left: 40px !important;
|
2516 |
+
&:after {
|
2517 |
+
content: '\f07c';
|
2518 |
+
}
|
2519 |
+
&.open:after {
|
2520 |
+
content: '\f07b';
|
2521 |
+
}
|
2522 |
+
}
|
2523 |
+
.alm-dir-listing .dir-title .delete {
|
2524 |
+
position: absolute;
|
2525 |
+
right: 10px;
|
2526 |
+
top: 10px;
|
2527 |
+
font-weight: 400;
|
2528 |
+
font-size: 13px;
|
2529 |
+
text-decoration: none;
|
2530 |
+
padding: 5px 12px;
|
2531 |
+
border: 1px solid $border;
|
2532 |
+
color: #ccc;
|
2533 |
+
border-radius: $radius;
|
2534 |
+
}
|
2535 |
+
.alm-dir-listing:hover .dir-title .delete {
|
2536 |
+
border-color: $border;
|
2537 |
+
background-color: #fff;
|
2538 |
+
color: #666;
|
2539 |
+
}
|
2540 |
+
.alm-dir-listing .dir-title .delete:hover {
|
2541 |
+
background-color: #c94141;
|
2542 |
+
border-color: #c94141;
|
2543 |
+
color: #fff;
|
2544 |
+
}
|
2545 |
+
.alm-dir-listing .dir-title .delete:active {
|
2546 |
+
box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
|
2547 |
+
}
|
2548 |
+
|
2549 |
+
.cache-page-title {
|
2550 |
+
font-size: 12px;
|
2551 |
+
display: block;
|
2552 |
+
width: 100%;
|
2553 |
+
padding: 0 7px 10px;
|
2554 |
+
font-weight: 700;
|
2555 |
+
text-transform: uppercase;
|
2556 |
+
}
|
2557 |
+
|
2558 |
+
.cache-page-wrap {
|
2559 |
+
padding: 0 10px 20px;
|
2560 |
+
}
|
2561 |
+
|
2562 |
+
.cache-full-path {
|
2563 |
+
display: none;
|
2564 |
+
&-button {
|
2565 |
+
border: 1px solid $light_border;
|
2566 |
+
border-radius: 3px;
|
2567 |
+
background: #fff;
|
2568 |
+
cursor: pointer;
|
2569 |
+
margin: 0 2px 0 0;
|
2570 |
+
text-align: left;
|
2571 |
+
color: #878787;
|
2572 |
+
font-size: 13px;
|
2573 |
+
padding: 2px 4px;
|
2574 |
+
&:hover,
|
2575 |
+
&:focus {
|
2576 |
+
border-color: $border;
|
2577 |
+
}
|
2578 |
+
}
|
2579 |
+
}
|
2580 |
+
|
2581 |
+
.alm-dir-listing ul.cache-details {
|
2582 |
+
display: block;
|
2583 |
+
padding: 15px 10px 5px;
|
2584 |
+
margin: 0;
|
2585 |
+
border: none;
|
2586 |
+
li {
|
2587 |
+
position: relative;
|
2588 |
+
display: block;
|
2589 |
+
width: 100%;
|
2590 |
+
background: none;
|
2591 |
+
padding: 0 10px 0 28px;
|
2592 |
+
margin: 0 0 10px;
|
2593 |
+
color: #878787;
|
2594 |
+
font-size: 13px;
|
2595 |
+
i {
|
2596 |
+
color: #ccc;
|
2597 |
+
font-size: 16px;
|
2598 |
+
position: absolute;
|
2599 |
+
top: 1px;
|
2600 |
+
left: 5px;
|
2601 |
+
}
|
2602 |
+
a {
|
2603 |
+
word-break: break-word;
|
2604 |
+
}
|
2605 |
+
}
|
2606 |
+
}
|
2607 |
+
|
2608 |
+
.dir-empty {
|
2609 |
+
margin-top: 10px;
|
2610 |
+
}
|
2611 |
+
.dir-empty,
|
2612 |
+
.cache-cleared {
|
2613 |
+
background-color: $yellow;
|
2614 |
+
border: 1px solid $yellow_dark;
|
2615 |
+
padding: 20px;
|
2616 |
+
display: block;
|
2617 |
+
color: #222;
|
2618 |
+
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
|
2619 |
+
}
|
2620 |
+
.cache-cleared {
|
2621 |
+
margin: 0 0 20px;
|
2622 |
+
background-color: #e0f5ff;
|
2623 |
+
border-color: #bad0da;
|
2624 |
+
color: #666;
|
2625 |
+
i {
|
2626 |
+
color: #111;
|
2627 |
+
margin: 0 5px 0 0;
|
2628 |
+
}
|
2629 |
+
.remove {
|
2630 |
+
float: right;
|
2631 |
+
font-size: 12px;
|
2632 |
+
font-weight: 600;
|
2633 |
+
}
|
2634 |
+
}
|
2635 |
+
.cnkt-sidebar .item {
|
2636 |
+
padding: 20px;
|
2637 |
+
display: block;
|
2638 |
+
}
|
2639 |
+
p.cache-stats {
|
2640 |
+
min-height: 38px;
|
2641 |
+
line-height: 37px;
|
2642 |
+
display: block;
|
2643 |
+
padding: 0;
|
2644 |
+
margin: 0;
|
2645 |
+
span {
|
2646 |
+
display: inline-block;
|
2647 |
+
width: 38px;
|
2648 |
+
height: 38px;
|
2649 |
+
line-height: 36px;
|
2650 |
+
text-align: center;
|
2651 |
+
margin: 0 9px 0 0;
|
2652 |
+
font-weight: 700;
|
2653 |
+
font-size: 15px;
|
2654 |
+
border-radius: 2px;
|
2655 |
+
background: #a4a5e2;
|
2656 |
+
background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
|
2657 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
|
2658 |
+
border: 1px solid #8586be;
|
2659 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
2660 |
+
color: #fff;
|
2661 |
+
text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
|
2662 |
+
}
|
2663 |
+
}
|
2664 |
+
}
|
2665 |
+
|
2666 |
+
// Directory Listing
|
2667 |
+
.alm-dir-listing ul {
|
2668 |
+
padding: 20px 0 0;
|
2669 |
+
margin: 10px 0 0;
|
2670 |
+
border-top: 1px solid #efefef;
|
2671 |
+
}
|
2672 |
+
p.theme-title {
|
2673 |
+
font-weight: 600;
|
2674 |
+
margin: 0 0 15px !important;
|
2675 |
+
padding: 0 5px;
|
2676 |
+
}
|
2677 |
+
.alm-dir-listing ul li {
|
2678 |
+
margin: 0 -2px;
|
2679 |
+
padding: 9px 0 5px 40px;
|
2680 |
+
display: inline-block;
|
2681 |
+
vertical-align: top;
|
2682 |
+
overflow: hidden;
|
2683 |
+
width: 47%;
|
2684 |
+
font-size: 14px;
|
2685 |
+
background: transparent url('../../img/directory-list.gif') no-repeat left 46%;
|
2686 |
+
&.full {
|
2687 |
+
width: 100%;
|
2688 |
+
display: block;
|
2689 |
+
}
|
2690 |
+
}
|
2691 |
+
.alm-dir-listing.theme-repeaters ul li {
|
2692 |
+
display: block;
|
2693 |
+
width: 100%;
|
2694 |
+
padding-top: 10px;
|
2695 |
+
padding: 0 0 0 40px;
|
2696 |
+
background-position: left 54%;
|
2697 |
+
}
|
2698 |
+
.alm-dir-listing.theme-repeaters ul li label {
|
2699 |
+
display: block;
|
2700 |
+
width: 100%;
|
2701 |
+
}
|
2702 |
+
|
2703 |
+
.alm-dir-listing ul li:last-child,
|
2704 |
+
.alm-dir-listing ul li:nth-last-child(2) {
|
2705 |
+
background-image: url('../../img/directory-list-btm.gif');
|
2706 |
+
}
|
2707 |
+
.alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
|
2708 |
+
background: transparent url('../../img/directory-list.gif') no-repeat left center;
|
2709 |
+
}
|
2710 |
+
.alm-dir-listing ul li a {
|
2711 |
+
text-decoration: none;
|
2712 |
+
}
|
2713 |
+
.alm-dir-listing li i {
|
2714 |
+
color: #999;
|
2715 |
+
padding: 0 5px 0 0;
|
2716 |
+
}
|
2717 |
+
|
2718 |
+
/*
|
2719 |
+
* Error Handling
|
2720 |
+
*
|
2721 |
+
* @since 2.6
|
2722 |
+
*/
|
2723 |
+
|
2724 |
+
.alm-error {
|
2725 |
+
position: absolute;
|
2726 |
+
z-index: 9999;
|
2727 |
+
background: #fff;
|
2728 |
+
padding: 10px;
|
2729 |
+
}
|
2730 |
+
|
2731 |
+
/*
|
2732 |
+
* Form Replacements
|
2733 |
+
*
|
2734 |
+
* @since 2.4
|
2735 |
+
*/
|
2736 |
+
|
2737 |
+
.ajax-load-more .alm-styled-input {
|
2738 |
+
display: flex;
|
2739 |
+
width: 100%;
|
2740 |
+
flex-wrap: nowrap;
|
2741 |
+
align-items: center;
|
2742 |
+
border-radius: 3px;
|
2743 |
+
border: 1px solid $border;
|
2744 |
+
label {
|
2745 |
+
padding: 10px;
|
2746 |
+
font-size: 12px;
|
2747 |
+
font-weight: 700;
|
2748 |
+
border-right: 1px solid $border;
|
2749 |
+
}
|
2750 |
+
input {
|
2751 |
+
border: none;
|
2752 |
+
border-radius: 0 2px 2px 0;
|
2753 |
+
margin: 0;
|
2754 |
+
width: 100%;
|
2755 |
+
}
|
2756 |
+
}
|
2757 |
+
|
2758 |
+
.shortcode-builder input[type='checkbox'],
|
2759 |
+
.shortcode-builder input[type='radio'],
|
2760 |
+
.ajax-load-more .form-table input[type='checkbox'],
|
2761 |
+
.ajax-load-more .form-table input[type='radio'] {
|
2762 |
+
width: 0;
|
2763 |
+
height: 0;
|
2764 |
+
opacity: 0;
|
2765 |
+
position: absolute;
|
2766 |
+
}
|
2767 |
+
|
2768 |
+
.shortcode-builder input[type='checkbox'] + label,
|
2769 |
+
.ajax-load-more .form-table input[type='checkbox'] + label,
|
2770 |
+
.shortcode-builder input[type='radio'] + label,
|
2771 |
+
.ajax-load-more .form-table input[type='radio'] + label {
|
2772 |
+
background: transparent url('../../img/bkg-chkbox_off.png') no-repeat left 1px;
|
2773 |
+
height: auto;
|
2774 |
+
min-height: 23px;
|
2775 |
+
width: 100%;
|
2776 |
+
display: inline-block;
|
2777 |
+
padding: 0.1em 0 0 30px;
|
2778 |
+
margin: 0 0 5px;
|
2779 |
+
font-size: 14px;
|
2780 |
+
line-height: 1.5;
|
2781 |
+
cursor: pointer !important;
|
2782 |
+
span {
|
2783 |
+
display: inline-block;
|
2784 |
+
padding-left: 1px;
|
2785 |
+
font-size: 12px;
|
2786 |
+
color: #999;
|
2787 |
+
}
|
2788 |
+
}
|
2789 |
+
.shortcode-builder input[type='radio'] + label,
|
2790 |
+
.ajax-load-more .form-table input[type='radio'] + label {
|
2791 |
+
background: transparent url('../../img/bkg-radio_off.png') no-repeat left 2px;
|
2792 |
+
}
|
2793 |
+
|
2794 |
+
.shortcode-builder input[type='checkbox']:hover + label,
|
2795 |
+
.ajax-load-more .form-table input[type='checkbox']:hover + label,
|
2796 |
+
.shortcode-builder input[type='checkbox']:focus + label,
|
2797 |
+
.ajax-load-more .form-table input[type='checkbox']:focus + label {
|
2798 |
+
/* hover/focus */
|
2799 |
+
background-image: url('../../img/bkg-chkbox_on.png');
|
2800 |
+
}
|
2801 |
+
|
2802 |
+
.shortcode-builder input[type='radio']:hover + label,
|
2803 |
+
.ajax-load-more .form-table input[type='radio']:hover + label,
|
2804 |
+
.shortcode-builder input[type='radio']:focus + label,
|
2805 |
+
.ajax-load-more .form-table input[type='radio']:focus + label {
|
2806 |
+
/* hover/focus */
|
2807 |
+
background-image: url('../../img/bkg-radio_on.png');
|
2808 |
+
}
|
2809 |
+
|
2810 |
+
.shortcode-builder input[type='checkbox']:checked + label,
|
2811 |
+
.ajax-load-more .form-table input[type='checkbox']:checked + label {
|
2812 |
+
/* selected */
|
2813 |
+
background-image: url('../../img/bkg-chkbox_selected.png');
|
2814 |
+
color: #000;
|
2815 |
+
}
|
2816 |
+
|
2817 |
+
.shortcode-builder input[type='radio']:checked + label,
|
2818 |
+
.ajax-load-more .form-table input[type='radio']:checked + label {
|
2819 |
+
/* selected */
|
2820 |
+
background-image: url('../../img/bkg-radio_selected.png');
|
2821 |
+
color: #000;
|
2822 |
+
}
|
2823 |
+
|
2824 |
+
.shortcode-builder input[type='checkbox'] + label:hover,
|
2825 |
+
.ajax-load-more .form-table input[type='checkbox'] + label:hover,
|
2826 |
+
.shortcode-builder input[type='radio'] + label:hover,
|
2827 |
+
.ajax-load-more .form-table input[type='radio'] + label:hover {
|
2828 |
+
color: #000;
|
2829 |
+
}
|
2830 |
+
|
2831 |
+
/*
|
2832 |
+
* Shortcode Builder
|
2833 |
+
*
|
2834 |
+
* @since 2.13.0
|
2835 |
+
*/
|
2836 |
+
#alm-shortcode-builder-form {
|
2837 |
+
position: relative;
|
2838 |
+
}
|
2839 |
+
#alm-shortcode-builder-form .shortcode-parameter-wrap {
|
2840 |
+
padding: 0 20px 20px;
|
2841 |
+
display: block;
|
2842 |
+
background: #fff;
|
2843 |
+
border: 1px solid $border;
|
2844 |
+
border-radius: 3px;
|
2845 |
+
margin-bottom: 10px;
|
2846 |
+
&.closed {
|
2847 |
+
padding-bottom: 0;
|
2848 |
+
border-bottom: none;
|
2849 |
+
}
|
2850 |
+
h2 {
|
2851 |
+
padding: 20px 22px 20px 43px;
|
2852 |
+
margin: 0 -20px;
|
2853 |
+
display: block;
|
2854 |
+
font-size: 20px;
|
2855 |
+
width: calc(100% + 40px);
|
2856 |
+
border-bottom: 1px solid $border;
|
2857 |
+
background-color: $light_grey;
|
2858 |
+
border-radius: 2px 2px 0 0;
|
2859 |
+
color: $grey;
|
2860 |
+
font-weight: 700;
|
2861 |
+
position: relative;
|
2862 |
+
cursor: pointer;
|
2863 |
+
&:focus,
|
2864 |
+
&:hover {
|
2865 |
+
color: #222;
|
2866 |
+
outline: none;
|
2867 |
+
}
|
2868 |
+
&:hover:after,
|
2869 |
+
&:focus:after {
|
2870 |
+
color: #ccc;
|
2871 |
+
}
|
2872 |
+
&:after {
|
2873 |
+
font-family: 'FontAwesome';
|
2874 |
+
content: '\f056';
|
2875 |
+
color: $border;
|
2876 |
+
position: absolute;
|
2877 |
+
left: 15px;
|
2878 |
+
top: 20px;
|
2879 |
+
height: 20px;
|
2880 |
+
width: 20px;
|
2881 |
+
}
|
2882 |
+
&.open:after {
|
2883 |
+
content: '\f055';
|
2884 |
+
}
|
2885 |
+
i {
|
2886 |
+
position: absolute;
|
2887 |
+
right: 15px;
|
2888 |
+
top: 50%;
|
2889 |
+
transform: translateY(-50%);
|
2890 |
+
font-size: 25px;
|
2891 |
+
color: #ccc;
|
2892 |
+
opacity: 0.45;
|
2893 |
+
display: none;
|
2894 |
+
}
|
2895 |
+
}
|
2896 |
+
}
|
2897 |
+
|
2898 |
+
#alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type {
|
2899 |
+
margin-top: 0;
|
2900 |
+
}
|
2901 |
+
.progress_bar_color_indicator {
|
2902 |
+
position: absolute;
|
2903 |
+
left: 11px;
|
2904 |
+
top: 9px;
|
2905 |
+
width: 0;
|
2906 |
+
height: 0;
|
2907 |
+
padding: 11px;
|
2908 |
+
border-radius: 2px;
|
2909 |
+
z-index: 1;
|
2910 |
+
display: block;
|
2911 |
+
background-color: #ed7070;
|
2912 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
|
2913 |
+
}
|
2914 |
+
|
2915 |
+
/*
|
2916 |
+
* Repeater Template options dropdown
|
2917 |
+
* @since 2.4.1
|
2918 |
+
*/
|
2919 |
+
|
2920 |
+
.ajax-load-more .row.template {
|
2921 |
+
position: relative;
|
2922 |
+
&:first-of-type {
|
2923 |
+
margin-top: 0;
|
2924 |
+
}
|
2925 |
+
}
|
2926 |
+
.ajax-load-more .row.template:hover .alm-repeater-options {
|
2927 |
+
opacity: 1;
|
2928 |
+
}
|
2929 |
+
|
2930 |
+
.alm-drop-btn.alm-repeater-options {
|
2931 |
+
position: absolute;
|
2932 |
+
top: -42px;
|
2933 |
+
right: 7px;
|
2934 |
+
z-index: 8;
|
2935 |
+
a.target {
|
2936 |
+
padding: 5px 10px;
|
2937 |
+
box-shadow: none;
|
2938 |
+
border: none;
|
2939 |
+
> i {
|
2940 |
+
font-size: 20px;
|
2941 |
+
position: static;
|
2942 |
+
}
|
2943 |
+
}
|
2944 |
+
}
|
2945 |
+
|
2946 |
+
.alm-drop-btn a.target {
|
2947 |
+
position: relative;
|
2948 |
+
color: #444;
|
2949 |
+
text-decoration: none !important;
|
2950 |
+
padding: 0 12px 0 28px;
|
2951 |
+
border: 1px solid #ccc;
|
2952 |
+
border-radius: $radius;
|
2953 |
+
font-size: 13px;
|
2954 |
+
line-height: 30px;
|
2955 |
+
height: 32px;
|
2956 |
+
display: block;
|
2957 |
+
box-shadow: 0 0 0 1px #fff;
|
2958 |
+
}
|
2959 |
+
.alm-drop-btn a.target > i {
|
2960 |
+
color: #999;
|
2961 |
+
font-size: 15px;
|
2962 |
+
position: absolute;
|
2963 |
+
top: 8px;
|
2964 |
+
left: 8px;
|
2965 |
+
}
|
2966 |
+
.alm-repeater-options a.target:hover i.fa-cog {
|
2967 |
+
color: #333;
|
2968 |
+
}
|
2969 |
+
|
2970 |
+
/* Active / Hover state */
|
2971 |
+
.alm-repeater-options a.target:active,
|
2972 |
+
.alm-repeater-options.active a.target,
|
2973 |
+
.alm-repeater-options a.target:hover,
|
2974 |
+
.alm-repeater-options a.target:focus {
|
2975 |
+
background-color: transparent;
|
2976 |
+
color: #222;
|
2977 |
+
border-color: transparent;
|
2978 |
+
box-shadow: none;
|
2979 |
+
opacity: 1;
|
2980 |
+
}
|
2981 |
+
.alm-repeater-options.active a.target,
|
2982 |
+
.alm-repeater-options.active a.target i.fa-cog {
|
2983 |
+
color: #444;
|
2984 |
+
}
|
2985 |
+
|
2986 |
+
/* Layout Dropdown */
|
2987 |
+
.alm-drop-btn.alm-layout-selection {
|
2988 |
+
display: inline-block;
|
2989 |
+
float: right;
|
2990 |
+
margin: 6px 0 0;
|
2991 |
+
@media screen and (max-width: 480px) {
|
2992 |
+
float: none;
|
2993 |
+
}
|
2994 |
+
a.target {
|
2995 |
+
background-color: $light_grey;
|
2996 |
+
border-color: $border;
|
2997 |
+
color: $grey;
|
2998 |
+
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
|
2999 |
+
}
|
3000 |
+
> a > i {
|
3001 |
+
left: 12px;
|
3002 |
+
}
|
3003 |
+
li.type {
|
3004 |
+
height: 36px;
|
3005 |
+
line-height: 36px;
|
3006 |
+
padding: 0 4px 0 8px;
|
3007 |
+
position: relative;
|
3008 |
+
border-top: 1px solid $border;
|
3009 |
+
&:first-of-type {
|
3010 |
+
border: none;
|
3011 |
+
}
|
3012 |
+
}
|
3013 |
+
}
|
3014 |
+
.alm-dropdown ul li.layout i {
|
3015 |
+
top: 11px;
|
3016 |
+
}
|
3017 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select {
|
3018 |
+
float: right;
|
3019 |
+
text-align: right;
|
3020 |
+
width: auto;
|
3021 |
+
height: 33px;
|
3022 |
+
line-height: 33px;
|
3023 |
+
}
|
3024 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a {
|
3025 |
+
width: 32px;
|
3026 |
+
height: 30px;
|
3027 |
+
margin: 3px 0 0 0;
|
3028 |
+
padding: 0;
|
3029 |
+
float: left;
|
3030 |
+
text-align: center;
|
3031 |
+
background-position: center center;
|
3032 |
+
background-repeat: no-repeat;
|
3033 |
+
vertical-align: top;
|
3034 |
+
text-indent: -99999px;
|
3035 |
+
overflow: hidden;
|
3036 |
+
opacity: 1;
|
3037 |
+
border-radius: 2px;
|
3038 |
+
border: 1px solid transparent;
|
3039 |
+
}
|
3040 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-1 {
|
3041 |
+
background-image: url('../../img/column-1.png');
|
3042 |
+
}
|
3043 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-2 {
|
3044 |
+
background-image: url('../../img/column-2.png');
|
3045 |
+
}
|
3046 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-3 {
|
3047 |
+
background-image: url('../../img/column-3.png');
|
3048 |
+
width: 36px;
|
3049 |
+
}
|
3050 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-4 {
|
3051 |
+
background-image: url('../../img/column-4.png');
|
3052 |
+
width: 36px;
|
3053 |
+
}
|
3054 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
|
3055 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
|
3056 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-3.updating {
|
3057 |
+
background-image: url('../../img/loader.gif');
|
3058 |
+
padding: 0 !important;
|
3059 |
+
}
|
3060 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
|
3061 |
+
.alm-drop-btn.alm-layout-selection li.type .col-select a.updating {
|
3062 |
+
opacity: 1;
|
3063 |
+
background-color: #fff;
|
3064 |
+
border-color: #ccc;
|
3065 |
+
}
|
3066 |
+
.alm-drop-btn.alm-layout-selection li.type:hover {
|
3067 |
+
background-color: #faf8e6;
|
3068 |
+
}
|
3069 |
+
|
3070 |
+
/* External Link + Add-on */
|
3071 |
+
.alm-drop-btn.alm-layout-selection a.external,
|
3072 |
+
.alm-drop-btn.alm-layout-selection a.add-on {
|
3073 |
+
background-color: $light_grey;
|
3074 |
+
padding: 13px 10px 13px 36px;
|
3075 |
+
display: block;
|
3076 |
+
}
|
3077 |
+
.alm-drop-btn.alm-layout-selection a.external {
|
3078 |
+
padding: 0 10px 0 36px;
|
3079 |
+
font-weight: 600;
|
3080 |
+
border: 1px solid $border;
|
3081 |
+
border-radius: $radius;
|
3082 |
+
}
|
3083 |
+
.alm-drop-btn.alm-layout-selection a.external i {
|
3084 |
+
color: #999;
|
3085 |
+
border-color: #ccc;
|
3086 |
+
top: 53%;
|
3087 |
+
transform: translateY(-50%);
|
3088 |
+
width: 38px;
|
3089 |
+
}
|
3090 |
+
.alm-drop-btn.alm-layout-selection a.external:hover i {
|
3091 |
+
color: #666;
|
3092 |
+
}
|
3093 |
+
.alm-drop-btn.alm-layout-selection a.add-on {
|
3094 |
+
line-height: 1.5;
|
3095 |
+
background-color: #75d0b4;
|
3096 |
+
border: none;
|
3097 |
+
color: #fff;
|
3098 |
+
font-weight: 400;
|
3099 |
+
text-overflow: inherit;
|
3100 |
+
height: auto;
|
3101 |
+
white-space: normal;
|
3102 |
+
font-size: 13px;
|
3103 |
+
padding: 12px 15px;
|
3104 |
+
}
|
3105 |
+
.alm-drop-btn.alm-layout-selection a.add-on:hover,
|
3106 |
+
.alm-drop-btn.alm-layout-selection a.add-on:focus {
|
3107 |
+
background-color: $green_hover;
|
3108 |
+
}
|
3109 |
+
.alm-drop-btn.alm-layout-selection a.add-on:hover i {
|
3110 |
+
opacity: 1;
|
3111 |
+
}
|
3112 |
+
.alm-drop-btn.alm-layout-selection a.add-on strong {
|
3113 |
+
color: #41635a;
|
3114 |
+
font-weight: 600;
|
3115 |
+
}
|
3116 |
+
.alm-drop-btn.alm-layout-selection a.add-on i {
|
3117 |
+
top: 14px;
|
3118 |
+
left: 3px;
|
3119 |
+
display: none;
|
3120 |
+
}
|
3121 |
+
.alm-drop-btn.alm-layout-selection a.add-on i {
|
3122 |
+
color: #fff !important;
|
3123 |
+
border-color: rgba(255, 255, 255, 0.3);
|
3124 |
+
}
|
3125 |
+
|
3126 |
+
.alm-drop-btn.alm-layout-selection a.target:hover,
|
3127 |
+
.alm-drop-btn.alm-layout-selection a.target:active,
|
3128 |
+
.alm-drop-btn.alm-layout-selection.active a.target {
|
3129 |
+
color: #222;
|
3130 |
+
border-color: #999;
|
3131 |
+
background-color: #f1f1f1;
|
3132 |
+
opacity: 1;
|
3133 |
+
}
|
3134 |
+
.alm-drop-btn.alm-layout-selection.active a.target,
|
3135 |
+
.alm-drop-btn.alm-layout-selection a.target:active {
|
3136 |
+
box-shadow: inset 0 1px 1px #ccc !important;
|
3137 |
+
}
|
3138 |
+
|
3139 |
+
.alm-drop-btn.alm-layout-selection .alm-dropdown {
|
3140 |
+
display: none;
|
3141 |
+
position: absolute;
|
3142 |
+
right: 0;
|
3143 |
+
top: 108%;
|
3144 |
+
z-index: 9;
|
3145 |
+
@media screen and (max-width: $small) {
|
3146 |
+
right: auto;
|
3147 |
+
left: 0;
|
3148 |
+
}
|
3149 |
+
}
|
3150 |
+
.alm-drop-btn .alm-dropdown:hover {
|
3151 |
+
display: block !important;
|
3152 |
+
}
|
3153 |
+
|
3154 |
+
@media screen and (max-width: $small) {
|
3155 |
+
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
|
3156 |
+
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
|
3157 |
+
right: auto;
|
3158 |
+
left: 36px;
|
3159 |
+
}
|
3160 |
+
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after {
|
3161 |
+
margin-left: 0;
|
3162 |
+
}
|
3163 |
+
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
|
3164 |
+
right: auto;
|
3165 |
+
left: 35px;
|
3166 |
+
}
|
3167 |
+
}
|
3168 |
+
|
3169 |
+
.add-layout-cta {
|
3170 |
+
border-radius: 2px;
|
3171 |
+
border: 1px solid $border;
|
3172 |
+
background-color: #fefeed;
|
3173 |
+
padding: 10px 100px 10px 10px;
|
3174 |
+
display: block;
|
3175 |
+
margin: 5px 0 15px;
|
3176 |
+
font-weight: 600;
|
3177 |
+
position: relative;
|
3178 |
+
}
|
3179 |
+
.add-layout-cta p {
|
3180 |
+
margin: 0;
|
3181 |
+
font-size: 13px;
|
3182 |
+
}
|
3183 |
+
span.dismiss {
|
3184 |
+
position: absolute;
|
3185 |
+
right: 10px;
|
3186 |
+
top: 11px;
|
3187 |
+
font-size: 13px;
|
3188 |
+
}
|
3189 |
+
span.dismiss a {
|
3190 |
+
text-decoration: none;
|
3191 |
+
}
|
3192 |
+
|
3193 |
+
/* Dropwbown */
|
3194 |
+
|
3195 |
+
.alm-drop-btn {
|
3196 |
+
position: relative;
|
3197 |
+
width: auto;
|
3198 |
+
}
|
3199 |
+
|
3200 |
+
.alm-dropdown {
|
3201 |
+
display: none;
|
3202 |
+
position: absolute;
|
3203 |
+
top: 108%;
|
3204 |
+
right: -15px;
|
3205 |
+
z-index: 9;
|
3206 |
+
.alm-drop-inner {
|
3207 |
+
display: block;
|
3208 |
+
position: relative;
|
3209 |
+
background: #fff;
|
3210 |
+
border-radius: $radius;
|
3211 |
+
border: 1px solid #ccc;
|
3212 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
3213 |
+
padding: 8px 10px;
|
3214 |
+
width: 220px;
|
3215 |
+
}
|
3216 |
+
.alm-drop-inner:after,
|
3217 |
+
.alm-drop-inner:before {
|
3218 |
+
bottom: 100%;
|
3219 |
+
right: 26px;
|
3220 |
+
border: solid transparent;
|
3221 |
+
content: ' ';
|
3222 |
+
height: 0;
|
3223 |
+
width: 0;
|
3224 |
+
position: absolute;
|
3225 |
+
pointer-events: none;
|
3226 |
+
}
|
3227 |
+
|
3228 |
+
.alm-drop-inner:after {
|
3229 |
+
border-color: rgba(247, 247, 247, 0);
|
3230 |
+
border-bottom-color: #fff;
|
3231 |
+
border-width: 7px;
|
3232 |
+
margin-left: -7px;
|
3233 |
+
}
|
3234 |
+
.alm-drop-inner:before {
|
3235 |
+
border-color: rgba(204, 204, 204, 0);
|
3236 |
+
border-bottom-color: #ccc;
|
3237 |
+
border-width: 8px;
|
3238 |
+
right: 25px;
|
3239 |
+
}
|
3240 |
+
|
3241 |
+
&.active {
|
3242 |
+
display: block !important;
|
3243 |
+
}
|
3244 |
+
}
|
3245 |
+
|
3246 |
+
.alm-layout-selection .alm-dropdown .alm-drop-inner {
|
3247 |
+
width: 270px;
|
3248 |
+
padding: 10px 10px 6px;
|
3249 |
+
}
|
3250 |
+
|
3251 |
+
.alm-dropdown {
|
3252 |
+
ul {
|
3253 |
+
padding: 0;
|
3254 |
+
margin: 0;
|
3255 |
+
overflow: hidden;
|
3256 |
+
}
|
3257 |
+
li {
|
3258 |
+
margin: 0;
|
3259 |
+
padding: 2px 0;
|
3260 |
+
list-style: none;
|
3261 |
+
clear: both;
|
3262 |
+
font-size: 13px;
|
3263 |
+
line-height: 1.2;
|
3264 |
+
font-weight: 400;
|
3265 |
+
&.option {
|
3266 |
+
border-radius: $radius;
|
3267 |
+
&:nth-child(even) {
|
3268 |
+
background-color: $light_grey;
|
3269 |
+
}
|
3270 |
+
}
|
3271 |
+
a:not(.button) {
|
3272 |
+
padding: 0 10px 0 32px;
|
3273 |
+
line-height: 40px;
|
3274 |
+
height: 40px;
|
3275 |
+
display: block;
|
3276 |
+
text-decoration: none;
|
3277 |
+
background-position: 4px center;
|
3278 |
+
color: $grey;
|
3279 |
+
box-shadow: none !important;
|
3280 |
+
position: relative;
|
3281 |
+
width: 100%;
|
3282 |
+
white-space: nowrap;
|
3283 |
+
overflow: hidden;
|
3284 |
+
text-overflow: ellipsis;
|
3285 |
+
border-radius: $radius;
|
3286 |
+
&:hover,
|
3287 |
+
&:focus {
|
3288 |
+
color: #333;
|
3289 |
+
i {
|
3290 |
+
opacity: 0.8;
|
3291 |
+
}
|
3292 |
+
}
|
3293 |
+
i {
|
3294 |
+
margin: 0;
|
3295 |
+
position: absolute;
|
3296 |
+
left: 0px;
|
3297 |
+
top: 50%;
|
3298 |
+
transform: translateY(-50%);
|
3299 |
+
width: 32px;
|
3300 |
+
font-size: 14px;
|
3301 |
+
line-height: 1;
|
3302 |
+
display: inline-block;
|
3303 |
+
text-align: center;
|
3304 |
+
opacity: 0.5;
|
3305 |
+
}
|
3306 |
+
}
|
3307 |
+
&.layout-cta {
|
3308 |
+
border: 1px solid $border;
|
3309 |
+
padding: 20px 10px;
|
3310 |
+
border-radius: $radius;
|
3311 |
+
margin-bottom: 5px;
|
3312 |
+
background-color: #fffeed;
|
3313 |
+
text-align: center;
|
3314 |
+
span {
|
3315 |
+
display: block;
|
3316 |
+
padding: 0 0 12px;
|
3317 |
+
line-height: 1.5;
|
3318 |
+
}
|
3319 |
+
}
|
3320 |
+
}
|
3321 |
+
}
|
3322 |
+
|
3323 |
+
/*
|
3324 |
+
* Mailchimp Sign-up
|
3325 |
+
*
|
3326 |
+
* @since 2.7.2
|
3327 |
+
*/
|
3328 |
+
|
3329 |
+
#alm-mailing-list {
|
3330 |
+
}
|
3331 |
+
#alm-mailing-list .center {
|
3332 |
+
text-align: center;
|
3333 |
+
display: block;
|
3334 |
+
background: $light_grey;
|
3335 |
+
border: 1px solid #efefef;
|
3336 |
+
padding: 15px;
|
3337 |
+
margin: -5px 0 20px;
|
3338 |
+
border-radius: 2px;
|
3339 |
+
box-shadow: inset 0 0 0 1px #fff;
|
3340 |
+
}
|
3341 |
+
.center-text {
|
3342 |
+
text-align: center;
|
3343 |
+
}
|
3344 |
+
#alm-mailing-list .center p {
|
3345 |
+
margin-bottom: 15px;
|
3346 |
+
}
|
3347 |
+
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn {
|
3348 |
+
display: inline-block;
|
3349 |
+
background-color: #fff;
|
3350 |
+
color: #333;
|
3351 |
+
font-size: 20px;
|
3352 |
+
padding: 0;
|
3353 |
+
width: 44px;
|
3354 |
+
height: 44px;
|
3355 |
+
line-height: 44px;
|
3356 |
+
text-align: center;
|
3357 |
+
vertical-align: top;
|
3358 |
+
border-radius: 100%;
|
3359 |
+
margin: 0 1px 0 0;
|
3360 |
+
opacity: 0.8;
|
3361 |
+
}
|
3362 |
+
|
3363 |
+
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook {
|
3364 |
+
background-color: #3b5998;
|
3365 |
+
color: #fff;
|
3366 |
+
}
|
3367 |
+
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter {
|
3368 |
+
background-color: #00aced;
|
3369 |
+
color: #fff;
|
3370 |
+
}
|
3371 |
+
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover {
|
3372 |
+
opacity: 1;
|
3373 |
+
}
|
3374 |
+
|
3375 |
+
#alm-mailing-list .form-wrap {
|
3376 |
+
background-color: #fff;
|
3377 |
+
padding: 12px;
|
3378 |
+
border: 1px solid $border;
|
3379 |
+
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
|
3380 |
+
position: relative;
|
3381 |
+
border-radius: 2px;
|
3382 |
+
}
|
3383 |
+
#alm-mailing-list .form-wrap .inner-wrap {
|
3384 |
+
position: relative;
|
3385 |
+
display: block;
|
3386 |
+
}
|
3387 |
+
#alm-mailing-list .form-wrap input {
|
3388 |
+
width: 100%;
|
3389 |
+
display: block;
|
3390 |
+
margin: 0;
|
3391 |
+
background: #fff;
|
3392 |
+
font-size: 13px;
|
3393 |
+
border-color: #eee;
|
3394 |
+
padding: 0 7px 0 46px;
|
3395 |
+
height: 40px;
|
3396 |
+
line-height: 40px;
|
3397 |
+
}
|
3398 |
+
#alm-mailing-list .form-wrap i.fa-envelope {
|
3399 |
+
color: #fff;
|
3400 |
+
background: #ff5a58;
|
3401 |
+
position: absolute;
|
3402 |
+
top: 0;
|
3403 |
+
left: 0;
|
3404 |
+
font-size: 18px;
|
3405 |
+
z-index: 1;
|
3406 |
+
height: 40px;
|
3407 |
+
width: 40px;
|
3408 |
+
text-align: center;
|
3409 |
+
line-height: 40px;
|
3410 |
+
border-radius: 2px 0 0 2px;
|
3411 |
+
}
|
3412 |
+
#alm-mailing-list .form-wrap button {
|
3413 |
+
padding: 0;
|
3414 |
+
margin: 0;
|
3415 |
+
height: auto;
|
3416 |
+
line-height: 1.2;
|
3417 |
+
font-weight: 600;
|
3418 |
+
position: absolute;
|
3419 |
+
right: 0;
|
3420 |
+
top: 0;
|
3421 |
+
z-index: 1;
|
3422 |
+
height: 100%;
|
3423 |
+
font-size: 13px;
|
3424 |
+
border-radius: 0;
|
3425 |
+
width: 40px;
|
3426 |
+
height: 40px;
|
3427 |
+
color: #ff5a58;
|
3428 |
+
background: none !important;
|
3429 |
+
cursor: pointer;
|
3430 |
+
}
|
3431 |
+
|
3432 |
+
#alm-mailing-list .form-wrap button i {
|
3433 |
+
color: #ccc;
|
3434 |
+
line-height: 40px;
|
3435 |
+
width: 20px;
|
3436 |
+
text-align: center;
|
3437 |
+
position: absolute;
|
3438 |
+
right: 5px;
|
3439 |
+
top: 0;
|
3440 |
+
font-size: 19px;
|
3441 |
+
}
|
3442 |
+
#alm-mailing-list .form-wrap button:hover i {
|
3443 |
+
color: #999;
|
3444 |
+
}
|
3445 |
+
|
3446 |
+
#alm-mailing-list .form-wrap button span {
|
3447 |
+
position: absolute;
|
3448 |
+
left: -9999px;
|
3449 |
+
top: -9999px;
|
3450 |
+
}
|
3451 |
+
|
3452 |
+
#alm-mailing-list .form-wrap label {
|
3453 |
+
font-size: 11px;
|
3454 |
+
text-transform: uppercase;
|
3455 |
+
margin: 0 0;
|
3456 |
+
padding: 0;
|
3457 |
+
font-weight: 600;
|
3458 |
+
position: absolute;
|
3459 |
+
left: -9999px;
|
3460 |
+
top: -9999px;
|
3461 |
+
}
|
3462 |
+
#alm-mailing-list .form-wrap #response {
|
3463 |
+
padding-top: 11px;
|
3464 |
+
font-size: 13px;
|
3465 |
+
display: none;
|
3466 |
+
text-align: center;
|
3467 |
+
position: absolute;
|
3468 |
+
left: 0;
|
3469 |
+
top: 0;
|
3470 |
+
width: 100%;
|
3471 |
+
height: 100%;
|
3472 |
+
background: #fff;
|
3473 |
+
z-index: 1;
|
3474 |
+
}
|
3475 |
+
#alm-mailing-list .form-wrap #response p {
|
3476 |
+
font-style: normal !important;
|
3477 |
+
}
|
3478 |
+
|
3479 |
+
/* share-alm */
|
3480 |
+
.alm-notification {
|
3481 |
+
border-radius: 2px;
|
3482 |
+
&--blue {
|
3483 |
+
background: #5899de !important;
|
3484 |
+
border-color: #4b7eb5 !important;
|
3485 |
+
}
|
3486 |
+
&:hover {
|
3487 |
+
a.dismiss {
|
3488 |
+
opacity: 0.7;
|
3489 |
+
}
|
3490 |
+
}
|
3491 |
+
&--inner {
|
3492 |
+
padding: 14px 20px 20px;
|
3493 |
+
}
|
3494 |
+
.dotted {
|
3495 |
+
border: none;
|
3496 |
+
border-bottom: 1px dashed #ccc;
|
3497 |
+
background: none;
|
3498 |
+
margin: 0 0 20px;
|
3499 |
+
padding: 0 0 15px;
|
3500 |
+
}
|
3501 |
+
h2 {
|
3502 |
+
line-height: 1.25;
|
3503 |
+
position: relative;
|
3504 |
+
color: #fff;
|
3505 |
+
font-size: 15px;
|
3506 |
+
margin: 0;
|
3507 |
+
padding: 14px 20px;
|
3508 |
+
font-weight: 700;
|
3509 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
|
3510 |
+
span {
|
3511 |
+
position: absolute;
|
3512 |
+
left: 0;
|
3513 |
+
top: 0;
|
3514 |
+
}
|
3515 |
+
@media screen and (max-width: $small) {
|
3516 |
+
padding-left: 0;
|
3517 |
+
span {
|
3518 |
+
display: none;
|
3519 |
+
}
|
3520 |
+
}
|
3521 |
+
}
|
3522 |
+
|
3523 |
+
p {
|
3524 |
+
font-size: 14px;
|
3525 |
+
margin: 0 0 20px;
|
3526 |
+
a {
|
3527 |
+
font-weight: 600;
|
3528 |
+
&:hover,
|
3529 |
+
&:focus {
|
3530 |
+
text-decoration: none;
|
3531 |
+
}
|
3532 |
+
}
|
3533 |
+
&.opening {
|
3534 |
+
font-size: 18px;
|
3535 |
+
margin: 0 0 15px;
|
3536 |
+
font-weight: 300;
|
3537 |
+
line-height: 1.4;
|
3538 |
+
}
|
3539 |
+
}
|
3540 |
+
|
3541 |
+
p.opener {
|
3542 |
+
color: #444;
|
3543 |
+
font-weight: 700;
|
3544 |
+
font-size: 16px;
|
3545 |
+
position: relative;
|
3546 |
+
margin: 0 0 20px;
|
3547 |
+
}
|
3548 |
+
|
3549 |
+
ul.share {
|
3550 |
+
margin: 0;
|
3551 |
+
padding: 0;
|
3552 |
+
width: auto;
|
3553 |
+
clear: both;
|
3554 |
+
display: flex;
|
3555 |
+
flex-wrap: nowrap;
|
3556 |
+
width: 100%;
|
3557 |
+
overflow: visible;
|
3558 |
+
text-align: left;
|
3559 |
+
width: 100%;
|
3560 |
+
height: auto;
|
3561 |
+
border-radius: 0 0 3px 3px;
|
3562 |
+
background-color: $red;
|
3563 |
+
background-color: #9d87c7;
|
3564 |
+
li {
|
3565 |
+
flex: 1;
|
3566 |
+
background: none;
|
3567 |
+
display: block;
|
3568 |
+
vertical-align: top;
|
3569 |
+
height: auto;
|
3570 |
+
line-height: 40px;
|
3571 |
+
font-size: 13px;
|
3572 |
+
position: relative;
|
3573 |
+
font-weight: 400;
|
3574 |
+
text-align: left;
|
3575 |
+
background: none;
|
3576 |
+
color: #787878;
|
3577 |
+
width: auto;
|
3578 |
+
text-align: center;
|
3579 |
+
margin: 0 !important;
|
3580 |
+
padding: 0;
|
3581 |
+
background: none;
|
3582 |
+
border-left: 1px solid rgba(255, 255, 255, 0.15);
|
3583 |
+
&:first-of-type {
|
3584 |
+
border-left: none;
|
3585 |
+
}
|
3586 |
+
a {
|
3587 |
+
display: block;
|
3588 |
+
line-height: 50px;
|
3589 |
+
height: 50px;
|
3590 |
+
width: 100%;
|
3591 |
+
padding: 0 10px;
|
3592 |
+
text-decoration: none;
|
3593 |
+
color: #fff;
|
3594 |
+
text-align: center;
|
3595 |
+
background: none;
|
3596 |
+
border-radius: 0;
|
3597 |
+
position: relative;
|
3598 |
+
font-weight: 500;
|
3599 |
+
&:hover,
|
3600 |
+
&:focus {
|
3601 |
+
background-color: #b3a0d6 !important;
|
3602 |
+
}
|
3603 |
+
i {
|
3604 |
+
margin: 0 10px 0 0;
|
3605 |
+
font-size: 1.25em;
|
3606 |
+
position: relative;
|
3607 |
+
top: 1px;
|
3608 |
+
}
|
3609 |
+
&:hover,
|
3610 |
+
&:hover i {
|
3611 |
+
text-decoration: none;
|
3612 |
+
color: #fff !important;
|
3613 |
+
span {
|
3614 |
+
text-decoration: none;
|
3615 |
+
}
|
3616 |
+
}
|
3617 |
+
}
|
3618 |
+
&.twitter a {
|
3619 |
+
//background: #00aced;
|
3620 |
+
}
|
3621 |
+
&.twitter a:hover {
|
3622 |
+
//background: #13beff !important;
|
3623 |
+
}
|
3624 |
+
&.facebook a {
|
3625 |
+
//background: #3b5998;
|
3626 |
+
}
|
3627 |
+
&.facebook a:hover {
|
3628 |
+
//background: #466cbc !important;
|
3629 |
+
}
|
3630 |
+
}
|
3631 |
+
}
|
3632 |
+
|
3633 |
+
// Close BTN
|
3634 |
+
a.dismiss {
|
3635 |
+
position: absolute;
|
3636 |
+
right: 3px;
|
3637 |
+
top: 3px;
|
3638 |
+
text-decoration: none;
|
3639 |
+
width: 30px;
|
3640 |
+
height: 30px;
|
3641 |
+
line-height: 30px;
|
3642 |
+
padding: 0;
|
3643 |
+
text-align: center;
|
3644 |
+
color: #ccc;
|
3645 |
+
border-right: none;
|
3646 |
+
border-top: none;
|
3647 |
+
display: block;
|
3648 |
+
font-size: 24px;
|
3649 |
+
font-weight: 300;
|
3650 |
+
opacity: 0.3;
|
3651 |
+
&:hover,
|
3652 |
+
&:focus {
|
3653 |
+
color: #999;
|
3654 |
+
opacity: 1;
|
3655 |
+
}
|
3656 |
+
}
|
3657 |
+
}
|
3658 |
+
|
3659 |
+
/*
|
3660 |
+
* Local templates Add-on
|
3661 |
+
*
|
3662 |
+
* @since 2.7.3
|
3663 |
+
*/
|
3664 |
+
|
3665 |
+
.select-theme-repeater {
|
3666 |
+
display: flex;
|
3667 |
+
width: 100%;
|
3668 |
+
flex-wrap: nowrap;
|
3669 |
+
position: relative;
|
3670 |
+
.or {
|
3671 |
+
position: absolute;
|
3672 |
+
left: 70px;
|
3673 |
+
top: -20px;
|
3674 |
+
background: #fff;
|
3675 |
+
color: #333;
|
3676 |
+
width: 34px;
|
3677 |
+
height: 34px;
|
3678 |
+
line-height: 34px;
|
3679 |
+
text-align: center;
|
3680 |
+
z-index: 1;
|
3681 |
+
font-weight: 700;
|
3682 |
+
border-radius: 100%;
|
3683 |
+
text-transform: uppercase;
|
3684 |
+
border: 1px solid $border;
|
3685 |
+
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
|
3686 |
+
font-size: 11px;
|
3687 |
+
}
|
3688 |
+
}
|
3689 |
+
|
3690 |
+
.alm-template-section-nav {
|
3691 |
+
display: block;
|
3692 |
+
margin: 0 0;
|
3693 |
+
padding: 0;
|
3694 |
+
}
|
3695 |
+
.alm-template-section-nav li {
|
3696 |
+
display: inline-block;
|
3697 |
+
vertical-align: top;
|
3698 |
+
}
|
3699 |
+
.alm-template-section-nav li a {
|
3700 |
+
padding: 5px;
|
3701 |
+
display: block;
|
3702 |
+
}
|
3703 |
+
.alm-template-section-nav li.active a {
|
3704 |
+
background: #ff0000;
|
3705 |
+
}
|
3706 |
+
|
3707 |
+
/*
|
3708 |
+
* Toggle Switch
|
3709 |
+
*
|
3710 |
+
* @since 2.14.0
|
3711 |
+
*/
|
3712 |
+
.ajax-load-more .alm-toggle-switch {
|
3713 |
+
display: block;
|
3714 |
+
clear: both;
|
3715 |
+
margin: 0;
|
3716 |
+
padding: 2px $gutter 0;
|
3717 |
+
overflow: hidden;
|
3718 |
+
position: relative;
|
3719 |
+
top: 1px;
|
3720 |
+
z-index: 9;
|
3721 |
+
li {
|
3722 |
+
float: left;
|
3723 |
+
margin: 0 2px 0 0;
|
3724 |
+
padding: 0;
|
3725 |
+
background: none;
|
3726 |
+
list-style: none;
|
3727 |
+
}
|
3728 |
+
li a {
|
3729 |
+
display: block;
|
3730 |
+
padding: $padding 20px;
|
3731 |
+
line-height: 1;
|
3732 |
+
text-decoration: none;
|
3733 |
+
border: 1px solid $border;
|
3734 |
+
border-radius: $radius $radius 0 0;
|
3735 |
+
background: $light_grey;
|
3736 |
+
color: $grey;
|
3737 |
+
}
|
3738 |
+
li a:hover {
|
3739 |
+
color: #222;
|
3740 |
+
background-color: #fff;
|
3741 |
+
}
|
3742 |
+
li a.active {
|
3743 |
+
background: #fff;
|
3744 |
+
font-weight: 700;
|
3745 |
+
border-bottom-color: #fff;
|
3746 |
+
color: #111;
|
3747 |
+
}
|
3748 |
+
}
|
3749 |
+
|
3750 |
+
/*
|
3751 |
+
* Admin screen media queries
|
3752 |
+
*
|
3753 |
+
* @since 1.0
|
3754 |
+
*/
|
3755 |
+
|
3756 |
+
@media screen and (max-width: 1200px) {
|
3757 |
+
.ajax-load-more input[type='text'],
|
3758 |
+
.ajax-load-more input[type='number'],
|
3759 |
+
.select2-container,
|
3760 |
+
#alm-builder .select2-container-multi,
|
3761 |
+
.ajax-load-more textarea {
|
3762 |
+
width: 95%;
|
3763 |
+
}
|
3764 |
+
|
3765 |
+
#alm-builder .select2-container-multi {
|
3766 |
+
width: 95% !important;
|
3767 |
+
}
|
3768 |
+
}
|
3769 |
+
|
3770 |
+
@media screen and (max-width: 900px) {
|
3771 |
+
.table-of-contents {
|
3772 |
+
position: static !important;
|
3773 |
+
width: 100% !important;
|
3774 |
+
}
|
3775 |
+
.ajax-load-more .cnkt-main,
|
3776 |
+
.ajax-load-more .cnkt-sidebar,
|
3777 |
+
.ajax-load-more .cnkt-main.full {
|
3778 |
+
float: none;
|
3779 |
+
clear: both;
|
3780 |
+
margin: 0;
|
3781 |
+
width: 100%;
|
3782 |
+
position: static !important;
|
3783 |
+
}
|
3784 |
+
.admin.ajax-load-more.settings .form-table td {
|
3785 |
+
padding: 24px 20px 20px;
|
3786 |
+
}
|
3787 |
+
.call-out.light {
|
3788 |
+
padding: 15px !important;
|
3789 |
+
}
|
3790 |
+
.repeaters input.save-repeater {
|
3791 |
+
max-width: 50%;
|
3792 |
+
}
|
3793 |
+
}
|
3794 |
+
|
3795 |
+
@media screen and (max-width: 782px) {
|
3796 |
+
.admin.ajax-load-more.settings .form-table th {
|
3797 |
+
padding-bottom: 0;
|
3798 |
+
border: none;
|
3799 |
+
background-color: transparent;
|
3800 |
+
}
|
3801 |
+
.share-alm .sharing {
|
3802 |
+
padding-right: 0;
|
3803 |
+
width: 100%;
|
3804 |
+
margin-right: 0 !important;
|
3805 |
+
}
|
3806 |
+
.share-alm .mailing {
|
3807 |
+
width: 100%;
|
3808 |
+
margin-left: 0 !important;
|
3809 |
+
padding-left: 0;
|
3810 |
+
padding-top: 40px;
|
3811 |
+
border-left: none;
|
3812 |
+
}
|
3813 |
+
}
|
3814 |
+
|
3815 |
+
@media screen and (max-width: 480px) {
|
3816 |
+
.ajax-load-more .section-title,
|
3817 |
+
.ajax-load-more .row .wrap {
|
3818 |
+
clear: both;
|
3819 |
+
width: 100%;
|
3820 |
+
display: block;
|
3821 |
+
float: none;
|
3822 |
+
padding: 10px;
|
3823 |
+
}
|
3824 |
+
.ajax-load-more .section-title {
|
3825 |
+
padding: 20px 20px 10px;
|
3826 |
+
}
|
3827 |
+
.ajax-load-more .row .wrap {
|
3828 |
+
padding: 10px 20px;
|
3829 |
+
}
|
3830 |
+
.ajax-load-more textarea,
|
3831 |
+
.ajax-load-more input[type='text'],
|
3832 |
+
.ajax-load-more input[type='number'],
|
3833 |
+
.select2-container,
|
3834 |
+
#alm-builder .select2-container-multi {
|
3835 |
+
width: 100% !important;
|
3836 |
+
}
|
3837 |
+
.ajax-load-more .row .wrap .inner.half {
|
3838 |
+
display: block;
|
3839 |
+
padding: 0 0 20px;
|
3840 |
+
width: 100%;
|
3841 |
+
}
|
3842 |
+
.ajax-load-more .section-title p {
|
3843 |
+
color: #999;
|
3844 |
+
padding: 0 !important;
|
3845 |
+
}
|
3846 |
+
#alm-add-ons .row .wrap {
|
3847 |
+
padding-bottom: 60px;
|
3848 |
+
width: 100%;
|
3849 |
+
}
|
3850 |
+
#alm-add-ons .section-title {
|
3851 |
+
width: 100%;
|
3852 |
+
}
|
3853 |
+
|
3854 |
+
.alm-repeater-options {
|
3855 |
+
display: none !important;
|
3856 |
+
}
|
3857 |
+
|
3858 |
+
.ajax-load-more .wrap-30 {
|
3859 |
+
width: 100%;
|
3860 |
+
display: block;
|
3861 |
+
padding: 0 0 10px;
|
3862 |
+
}
|
3863 |
+
.ajax-load-more .row .wrap.full {
|
3864 |
+
padding: 10px;
|
3865 |
+
}
|
3866 |
+
|
3867 |
+
#alm-add-ons .group {
|
3868 |
+
width: 100%;
|
3869 |
+
display: block;
|
3870 |
+
margin: 0 0 2% 0;
|
3871 |
+
}
|
3872 |
+
.call-out.light {
|
3873 |
+
background: #fdfdec none repeat scroll 0 0;
|
3874 |
+
width: 100%;
|
3875 |
+
}
|
3876 |
+
.call-out.light p {
|
3877 |
+
padding: 0;
|
3878 |
+
}
|
3879 |
+
.ajax-load-more .one_half {
|
3880 |
+
width: 100%;
|
3881 |
+
margin: 0 0 2%;
|
3882 |
+
display: block;
|
3883 |
+
}
|
3884 |
+
.add-layout-cta {
|
3885 |
+
padding: 10px;
|
3886 |
+
}
|
3887 |
+
span.dismiss {
|
3888 |
+
position: static;
|
3889 |
+
padding-top: 20px;
|
3890 |
+
display: block;
|
3891 |
+
font-size: 12px;
|
3892 |
+
}
|
3893 |
+
}
|
admin/src/scss/libs/select2.scss
ADDED
@@ -0,0 +1,349 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/*
|
3 |
+
* Select2 - form replacement - http://ivaynberg.github.io/select2/
|
4 |
+
*
|
5 |
+
* @since 1.0
|
6 |
+
*/
|
7 |
+
|
8 |
+
.select2-container {
|
9 |
+
position: relative;
|
10 |
+
display: inline-block;
|
11 |
+
zoom: 1;
|
12 |
+
*display: inline;
|
13 |
+
vertical-align: middle;
|
14 |
+
min-width: 60%;
|
15 |
+
}
|
16 |
+
.inner.half .select2-container{
|
17 |
+
min-width: 90%;
|
18 |
+
width: 90%;
|
19 |
+
}
|
20 |
+
#alm-builder .select2-container li{
|
21 |
+
padding-right: 0;
|
22 |
+
}
|
23 |
+
.select2-container a.select2-choice {
|
24 |
+
display: block;
|
25 |
+
height: 40px;
|
26 |
+
line-height: 38px;
|
27 |
+
padding: 0 10px;
|
28 |
+
overflow: hidden;
|
29 |
+
position: relative;
|
30 |
+
border: 1px solid #e1e1e1;
|
31 |
+
white-space: nowrap;
|
32 |
+
color: #333;
|
33 |
+
text-decoration: none;
|
34 |
+
background: #fff;
|
35 |
+
background: #f7f7f7;
|
36 |
+
border-radius:2px;
|
37 |
+
-webkit-background-clip: padding-box;
|
38 |
+
-moz-background-clip: padding;
|
39 |
+
background-clip: padding-box;
|
40 |
+
-webkit-touch-callout: none;
|
41 |
+
-webkit-user-select: none;
|
42 |
+
-khtml-user-select: none;
|
43 |
+
-moz-user-select: none;
|
44 |
+
-ms-user-select: none;
|
45 |
+
user-select: none;
|
46 |
+
font-size: 14px;
|
47 |
+
}
|
48 |
+
|
49 |
+
.select2-dropdown-open.select2-container-active .select2-choice {
|
50 |
+
-webkit-border-radius: 4px 4px 0 0;
|
51 |
+
-moz-border-radius: 4px 4px 0 0;
|
52 |
+
border-radius: 4px 4px 0 0;
|
53 |
+
}
|
54 |
+
|
55 |
+
.select2-container.select2-drop-above .select2-choice {
|
56 |
+
background: #fff;
|
57 |
+
-webkit-border-radius: 0 0 4px 4px;
|
58 |
+
-moz-border-radius: 0px 0px 4px 4px;
|
59 |
+
border-radius: 0 0 4px 4px;
|
60 |
+
}
|
61 |
+
|
62 |
+
.select2-container .select2-choice span {
|
63 |
+
margin-right: 30px;
|
64 |
+
margin-left: 2px;
|
65 |
+
display: block;
|
66 |
+
overflow: hidden;
|
67 |
+
white-space: nowrap;
|
68 |
+
color: #666;
|
69 |
+
-ms-text-overflow: ellipsis;
|
70 |
+
-o-text-overflow: ellipsis;
|
71 |
+
text-overflow: ellipsis;
|
72 |
+
}
|
73 |
+
|
74 |
+
.select2-container .select2-choice abbr:hover {
|
75 |
+
background-position: right -11px;
|
76 |
+
cursor: pointer;
|
77 |
+
}
|
78 |
+
|
79 |
+
.select2-drop-mask {
|
80 |
+
position: absolute;
|
81 |
+
left: 0;
|
82 |
+
top: 0;
|
83 |
+
z-index: 8;
|
84 |
+
background-color: #fff;
|
85 |
+
opacity: 0;
|
86 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
87 |
+
/* works in IE 8 */
|
88 |
+
filter: "alpha(opacity=0)";
|
89 |
+
/* expected to work in IE 8 */
|
90 |
+
filter: alpha(opacity = 0);
|
91 |
+
/* IE 4-7 */
|
92 |
+
}
|
93 |
+
|
94 |
+
.select2-drop {
|
95 |
+
overflow: hidden;
|
96 |
+
width: 100%;
|
97 |
+
margin-top: -1px;
|
98 |
+
position: absolute;
|
99 |
+
z-index: 9;
|
100 |
+
top: 100%;
|
101 |
+
background: #fff;
|
102 |
+
color: #000;
|
103 |
+
border: 1px solid #efefef;
|
104 |
+
border-top: 0;
|
105 |
+
border-radius: 0 0 2px 2px;
|
106 |
+
box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
|
107 |
+
font-size: 14px;
|
108 |
+
}
|
109 |
+
|
110 |
+
.select2-drop.select2-drop-above {
|
111 |
+
margin-top: 1px;
|
112 |
+
border-top: 1px solid #efefef;
|
113 |
+
border-bottom: 0;
|
114 |
+
border-radius: 2px 2px 0 0;
|
115 |
+
box-shadow: 0 -2px -1px rgba(0, 0, 0, 0.1);
|
116 |
+
}
|
117 |
+
|
118 |
+
.select2-container .select2-choice div {
|
119 |
+
display: block;
|
120 |
+
width: 30px;
|
121 |
+
height: 100%;
|
122 |
+
position: absolute;
|
123 |
+
right: 0;
|
124 |
+
top: 0;
|
125 |
+
}
|
126 |
+
|
127 |
+
.select2-container .select2-choice div b {
|
128 |
+
display: block;
|
129 |
+
width: 100%;
|
130 |
+
height: 100%;
|
131 |
+
background: #fff url("../../img/bkg-select.png") no-repeat center center;
|
132 |
+
}
|
133 |
+
|
134 |
+
.select2-dropdown-open.select2-container-active div b {
|
135 |
+
display: block;
|
136 |
+
width: 100%;
|
137 |
+
height: 100%;
|
138 |
+
background-color: #fff;
|
139 |
+
}
|
140 |
+
|
141 |
+
/* Search */
|
142 |
+
.select2-search {
|
143 |
+
display: none !important;
|
144 |
+
padding: 2px;
|
145 |
+
display: block;
|
146 |
+
background-color: #fff;
|
147 |
+
}
|
148 |
+
.select2-search .select2-input{
|
149 |
+
width: 99%;
|
150 |
+
height: 26px !important;
|
151 |
+
border-color: #efefef !important;
|
152 |
+
-webkit-box-shadow: none !important;
|
153 |
+
-moz-box-shadow: none !important;
|
154 |
+
box-shadow: none !important;
|
155 |
+
background: url("../../img/select2.png") no-repeat scroll 100% -22px !important;
|
156 |
+
}
|
157 |
+
|
158 |
+
/* Multi select box */
|
159 |
+
#alm-builder .select2-container-multi{
|
160 |
+
width: 60%;
|
161 |
+
}
|
162 |
+
#alm-builder .select2-results li{
|
163 |
+
width: 100%;
|
164 |
+
}
|
165 |
+
|
166 |
+
#alm-builder .select2-container-multi .select2-input{
|
167 |
+
cursor: pointer;
|
168 |
+
margin: 0 !important;
|
169 |
+
}
|
170 |
+
|
171 |
+
#alm-builder ul.select2-choices{
|
172 |
+
width: 100%;
|
173 |
+
overflow: hidden;
|
174 |
+
}
|
175 |
+
#alm-builder ul.select2-choices li.select2-search-field,
|
176 |
+
#alm-builder ul.select2-choices li.select2-search-field input{
|
177 |
+
width: 100% !important;
|
178 |
+
display: block;
|
179 |
+
}
|
180 |
+
/* Selected Choice */
|
181 |
+
#alm-builder ul.select2-choices li.select2-search-choice{
|
182 |
+
display: inline-block;
|
183 |
+
font-size: 12px;
|
184 |
+
line-height: 13px;
|
185 |
+
margin: 0 5px 5px 0;
|
186 |
+
padding: 5px 10px 5px 24px;
|
187 |
+
border-radius: 3px;
|
188 |
+
background: #fff;
|
189 |
+
border: 1px solid #ccc;
|
190 |
+
width: auto;
|
191 |
+
position: relative;
|
192 |
+
}
|
193 |
+
#alm-builder ul.select2-choices .select2-input{
|
194 |
+
background: #f7f7f7 url("../../img/bkg-select.png") no-repeat right center;
|
195 |
+
}
|
196 |
+
#alm-builder ul.select2-choices li.select2-search-choice a{
|
197 |
+
position: absolute;
|
198 |
+
left: 5px;
|
199 |
+
top: 5px;
|
200 |
+
width: 13px;
|
201 |
+
height: 13px;
|
202 |
+
background: #999 url("../../img/ico-close.png") no-repeat center center;
|
203 |
+
color: #fff;
|
204 |
+
display: block;
|
205 |
+
border-radius: 2px;
|
206 |
+
}
|
207 |
+
|
208 |
+
#alm-builder ul.select2-choices li.select2-search-choice a:hover{
|
209 |
+
background-color: #ff0000;
|
210 |
+
}
|
211 |
+
|
212 |
+
|
213 |
+
/* results UL */
|
214 |
+
.select2-results {
|
215 |
+
max-height: 311px;
|
216 |
+
padding: 0 0 0 0;
|
217 |
+
margin: 0 0 0 0;
|
218 |
+
position: relative;
|
219 |
+
overflow-x: hidden;
|
220 |
+
overflow-y: auto;
|
221 |
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
222 |
+
}
|
223 |
+
.select2-result-sub{
|
224 |
+
margin: 0;
|
225 |
+
padding: 0;
|
226 |
+
}
|
227 |
+
|
228 |
+
.select2-results li {
|
229 |
+
list-style: none;
|
230 |
+
display: block;
|
231 |
+
background-image: none;
|
232 |
+
padding: 0;
|
233 |
+
margin: 0 !important;
|
234 |
+
border-top: 1px solid #efefef;
|
235 |
+
color: #666;
|
236 |
+
width: auto;
|
237 |
+
font-size: 13px;
|
238 |
+
}
|
239 |
+
|
240 |
+
.select2-results li.select2-result-with-children > .select2-result-label {
|
241 |
+
font-weight: 600;
|
242 |
+
font-size: 14px;
|
243 |
+
cursor: default;
|
244 |
+
color: #222;
|
245 |
+
}
|
246 |
+
|
247 |
+
.select2-results .select2-result-label {
|
248 |
+
margin: 0;
|
249 |
+
cursor: pointer;
|
250 |
+
min-height: 1em;
|
251 |
+
padding: 10px 8px;
|
252 |
+
-webkit-touch-callout: none;
|
253 |
+
-webkit-user-select: none;
|
254 |
+
-khtml-user-select: none;
|
255 |
+
-moz-user-select: none;
|
256 |
+
-ms-user-select: none;
|
257 |
+
user-select: none;
|
258 |
+
}
|
259 |
+
|
260 |
+
.select2-results .select2-highlighted .select2-result-label{ /* Hover */
|
261 |
+
background: #f7f7f7;
|
262 |
+
color: #ca5252;
|
263 |
+
}
|
264 |
+
|
265 |
+
.select2-results .select2-highlighted:active {
|
266 |
+
background: #fff;
|
267 |
+
}
|
268 |
+
|
269 |
+
.select2-results li em {
|
270 |
+
background: #feffde;
|
271 |
+
font-style: normal;
|
272 |
+
}
|
273 |
+
|
274 |
+
.select2-results .select2-highlighted em {
|
275 |
+
background: transparent;
|
276 |
+
}
|
277 |
+
|
278 |
+
.select2-results .select2-highlighted ul {
|
279 |
+
background: white;
|
280 |
+
color: #000;
|
281 |
+
}
|
282 |
+
|
283 |
+
.select2-results .select2-no-results,
|
284 |
+
.select2-results .select2-searching,
|
285 |
+
.select2-results .select2-selection-limit {
|
286 |
+
background: #f4f4f4;
|
287 |
+
display: list-item;
|
288 |
+
}
|
289 |
+
|
290 |
+
.select2-results .select2-no-results{
|
291 |
+
min-height: 1em;
|
292 |
+
padding: 10px 7px;
|
293 |
+
font-size: 13px;
|
294 |
+
}
|
295 |
+
|
296 |
+
/*
|
297 |
+
disabled look for disabled choices in the results dropdown
|
298 |
+
*/
|
299 |
+
.select2-results .select2-disabled.select2-highlighted {
|
300 |
+
color: #666;
|
301 |
+
background: #f4f4f4;
|
302 |
+
display: list-item;
|
303 |
+
cursor: default;
|
304 |
+
}
|
305 |
+
|
306 |
+
.select2-results .select2-disabled {
|
307 |
+
background: #f4f4f4;
|
308 |
+
display: list-item;
|
309 |
+
cursor: default;
|
310 |
+
}
|
311 |
+
|
312 |
+
.select2-results .select2-selected {
|
313 |
+
display: none;
|
314 |
+
}
|
315 |
+
|
316 |
+
.select2-more-results {
|
317 |
+
background: #f4f4f4;
|
318 |
+
display: list-item;
|
319 |
+
}
|
320 |
+
|
321 |
+
/* disabled styles */
|
322 |
+
.select2-container.select2-container-disabled .select2-choice {
|
323 |
+
background-color: #f4f4f4;
|
324 |
+
background-image: none;
|
325 |
+
border: 1px solid #ddd;
|
326 |
+
cursor: default;
|
327 |
+
}
|
328 |
+
|
329 |
+
.select2-container.select2-container-disabled .select2-choice div {
|
330 |
+
background-color: #f4f4f4;
|
331 |
+
background-image: none;
|
332 |
+
border-left: 0;
|
333 |
+
}
|
334 |
+
|
335 |
+
.select2-container.select2-container-disabled .select2-choice abbr {
|
336 |
+
display: none;
|
337 |
+
}
|
338 |
+
|
339 |
+
.select2-offscreen {
|
340 |
+
border: 0;
|
341 |
+
clip: rect(0 0 0 0);
|
342 |
+
height: 1px;
|
343 |
+
margin: -1px;
|
344 |
+
overflow: hidden;
|
345 |
+
padding: 0;
|
346 |
+
position: absolute;
|
347 |
+
width: 1px;
|
348 |
+
left: 0;
|
349 |
+
}
|
admin/src/scss/libs/tooltipster.scss
ADDED
@@ -0,0 +1,276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
|
2 |
+
.tooltipster-default {
|
3 |
+
border-radius: 3px;
|
4 |
+
border: 2px solid #222;
|
5 |
+
border: none;
|
6 |
+
background: #0073aa;
|
7 |
+
background: rgba(33, 149, 204, 0.95);
|
8 |
+
color: #e7f3f8;
|
9 |
+
}
|
10 |
+
|
11 |
+
/* Use this next selector to style things like font-size and line-height: */
|
12 |
+
.tooltipster-default .tooltipster-content {
|
13 |
+
font-size: 12px;
|
14 |
+
line-height: 20px;
|
15 |
+
padding: 12px 16px;
|
16 |
+
overflow: hidden;
|
17 |
+
text-align: center;
|
18 |
+
}
|
19 |
+
|
20 |
+
/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */
|
21 |
+
.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border {
|
22 |
+
/* border-color: ... !important; */
|
23 |
+
}
|
24 |
+
|
25 |
+
|
26 |
+
/* If you're using the icon option, use this next selector to style them */
|
27 |
+
.tooltipster-icon {
|
28 |
+
cursor: help;
|
29 |
+
margin-left: 4px;
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
/* This is the base styling required to make all Tooltipsters work */
|
40 |
+
.tooltipster-base {
|
41 |
+
padding: 0;
|
42 |
+
font-size: 0;
|
43 |
+
line-height: 0;
|
44 |
+
position: absolute;
|
45 |
+
left: 0;
|
46 |
+
top: 0;
|
47 |
+
z-index: 9999999;
|
48 |
+
pointer-events: none;
|
49 |
+
width: auto;
|
50 |
+
overflow: visible;
|
51 |
+
}
|
52 |
+
.tooltipster-base .tooltipster-content {
|
53 |
+
overflow: hidden;
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
/* 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. */
|
58 |
+
.tooltipster-arrow {
|
59 |
+
display: block;
|
60 |
+
text-align: center;
|
61 |
+
width: 100%;
|
62 |
+
height: 100%;
|
63 |
+
position: absolute;
|
64 |
+
top: 0;
|
65 |
+
left: 0;
|
66 |
+
z-index: -1;
|
67 |
+
}
|
68 |
+
.tooltipster-arrow span, .tooltipster-arrow-border {
|
69 |
+
display: block;
|
70 |
+
width: 0;
|
71 |
+
height: 0;
|
72 |
+
position: absolute;
|
73 |
+
}
|
74 |
+
.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span {
|
75 |
+
border-left: 8px solid transparent !important;
|
76 |
+
border-right: 8px solid transparent !important;
|
77 |
+
border-top: 8px solid;
|
78 |
+
bottom: -7px;
|
79 |
+
}
|
80 |
+
.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border {
|
81 |
+
border-left: 9px solid transparent !important;
|
82 |
+
border-right: 9px solid transparent !important;
|
83 |
+
border-top: 9px solid;
|
84 |
+
bottom: -7px;
|
85 |
+
}
|
86 |
+
|
87 |
+
.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span {
|
88 |
+
border-left: 8px solid transparent !important;
|
89 |
+
border-right: 8px solid transparent !important;
|
90 |
+
border-bottom: 8px solid;
|
91 |
+
top: -7px;
|
92 |
+
}
|
93 |
+
.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
|
94 |
+
border-left: 9px solid transparent !important;
|
95 |
+
border-right: 9px solid transparent !important;
|
96 |
+
border-bottom: 9px solid;
|
97 |
+
top: -7px;
|
98 |
+
}
|
99 |
+
.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border {
|
100 |
+
left: 0;
|
101 |
+
right: 0;
|
102 |
+
margin: 0 auto;
|
103 |
+
}
|
104 |
+
.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span {
|
105 |
+
left: 6px;
|
106 |
+
}
|
107 |
+
.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
|
108 |
+
left: 5px;
|
109 |
+
}
|
110 |
+
.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span {
|
111 |
+
right: 6px;
|
112 |
+
}
|
113 |
+
.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border {
|
114 |
+
right: 5px;
|
115 |
+
}
|
116 |
+
.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border {
|
117 |
+
border-top: 8px solid transparent !important;
|
118 |
+
border-bottom: 8px solid transparent !important;
|
119 |
+
border-left: 8px solid;
|
120 |
+
top: 50%;
|
121 |
+
margin-top: -7px;
|
122 |
+
right: -7px;
|
123 |
+
}
|
124 |
+
.tooltipster-arrow-left .tooltipster-arrow-border {
|
125 |
+
border-top: 9px solid transparent !important;
|
126 |
+
border-bottom: 9px solid transparent !important;
|
127 |
+
border-left: 9px solid;
|
128 |
+
margin-top: -8px;
|
129 |
+
}
|
130 |
+
.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border {
|
131 |
+
border-top: 8px solid transparent !important;
|
132 |
+
border-bottom: 8px solid transparent !important;
|
133 |
+
border-right: 8px solid;
|
134 |
+
top: 50%;
|
135 |
+
margin-top: -7px;
|
136 |
+
left: -7px;
|
137 |
+
}
|
138 |
+
.tooltipster-arrow-right .tooltipster-arrow-border {
|
139 |
+
border-top: 9px solid transparent !important;
|
140 |
+
border-bottom: 9px solid transparent !important;
|
141 |
+
border-right: 9px solid;
|
142 |
+
margin-top: -8px;
|
143 |
+
}
|
144 |
+
|
145 |
+
|
146 |
+
/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */
|
147 |
+
|
148 |
+
.tooltipster-fade {
|
149 |
+
opacity: 0;
|
150 |
+
-webkit-transition-property: opacity;
|
151 |
+
-moz-transition-property: opacity;
|
152 |
+
-o-transition-property: opacity;
|
153 |
+
-ms-transition-property: opacity;
|
154 |
+
transition-property: opacity;
|
155 |
+
}
|
156 |
+
.tooltipster-fade-show {
|
157 |
+
opacity: 1;
|
158 |
+
}
|
159 |
+
|
160 |
+
.tooltipster-grow {
|
161 |
+
-webkit-transform: scale(0,0);
|
162 |
+
-moz-transform: scale(0,0);
|
163 |
+
-o-transform: scale(0,0);
|
164 |
+
-ms-transform: scale(0,0);
|
165 |
+
transform: scale(0,0);
|
166 |
+
-webkit-transition-property: -webkit-transform;
|
167 |
+
-moz-transition-property: -moz-transform;
|
168 |
+
-o-transition-property: -o-transform;
|
169 |
+
-ms-transition-property: -ms-transform;
|
170 |
+
transition-property: transform;
|
171 |
+
-webkit-backface-visibility: hidden;
|
172 |
+
}
|
173 |
+
.tooltipster-grow-show {
|
174 |
+
-webkit-transform: scale(1,1);
|
175 |
+
-moz-transform: scale(1,1);
|
176 |
+
-o-transform: scale(1,1);
|
177 |
+
-ms-transform: scale(1,1);
|
178 |
+
transform: scale(1,1);
|
179 |
+
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
|
180 |
+
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
181 |
+
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
182 |
+
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
183 |
+
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
184 |
+
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
185 |
+
}
|
186 |
+
|
187 |
+
.tooltipster-swing {
|
188 |
+
opacity: 0;
|
189 |
+
-webkit-transform: rotateZ(4deg);
|
190 |
+
-moz-transform: rotateZ(4deg);
|
191 |
+
-o-transform: rotateZ(4deg);
|
192 |
+
-ms-transform: rotateZ(4deg);
|
193 |
+
transform: rotateZ(4deg);
|
194 |
+
-webkit-transition-property: -webkit-transform, opacity;
|
195 |
+
-moz-transition-property: -moz-transform;
|
196 |
+
-o-transition-property: -o-transform;
|
197 |
+
-ms-transition-property: -ms-transform;
|
198 |
+
transition-property: transform;
|
199 |
+
}
|
200 |
+
.tooltipster-swing-show {
|
201 |
+
opacity: 1;
|
202 |
+
-webkit-transform: rotateZ(0deg);
|
203 |
+
-moz-transform: rotateZ(0deg);
|
204 |
+
-o-transform: rotateZ(0deg);
|
205 |
+
-ms-transform: rotateZ(0deg);
|
206 |
+
transform: rotateZ(0deg);
|
207 |
+
-webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1);
|
208 |
+
-webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
209 |
+
-moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
210 |
+
-ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
211 |
+
-o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
212 |
+
transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
213 |
+
}
|
214 |
+
|
215 |
+
.tooltipster-fall {
|
216 |
+
top: 0;
|
217 |
+
-webkit-transition-property: top;
|
218 |
+
-moz-transition-property: top;
|
219 |
+
-o-transition-property: top;
|
220 |
+
-ms-transition-property: top;
|
221 |
+
transition-property: top;
|
222 |
+
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
|
223 |
+
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
224 |
+
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
225 |
+
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
226 |
+
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
227 |
+
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
228 |
+
}
|
229 |
+
.tooltipster-fall-show {
|
230 |
+
}
|
231 |
+
.tooltipster-fall.tooltipster-dying {
|
232 |
+
-webkit-transition-property: all;
|
233 |
+
-moz-transition-property: all;
|
234 |
+
-o-transition-property: all;
|
235 |
+
-ms-transition-property: all;
|
236 |
+
transition-property: all;
|
237 |
+
top: 0px !important;
|
238 |
+
opacity: 0;
|
239 |
+
}
|
240 |
+
|
241 |
+
.tooltipster-slide {
|
242 |
+
left: -40px;
|
243 |
+
-webkit-transition-property: left;
|
244 |
+
-moz-transition-property: left;
|
245 |
+
-o-transition-property: left;
|
246 |
+
-ms-transition-property: left;
|
247 |
+
transition-property: left;
|
248 |
+
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
|
249 |
+
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
250 |
+
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
251 |
+
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
252 |
+
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
253 |
+
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
254 |
+
}
|
255 |
+
.tooltipster-slide.tooltipster-slide-show {
|
256 |
+
}
|
257 |
+
.tooltipster-slide.tooltipster-dying {
|
258 |
+
-webkit-transition-property: all;
|
259 |
+
-moz-transition-property: all;
|
260 |
+
-o-transition-property: all;
|
261 |
+
-ms-transition-property: all;
|
262 |
+
transition-property: all;
|
263 |
+
left: 0px !important;
|
264 |
+
opacity: 0;
|
265 |
+
}
|
266 |
+
|
267 |
+
|
268 |
+
/* 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 */
|
269 |
+
.tooltipster-content-changing {
|
270 |
+
opacity: 0.5;
|
271 |
+
-webkit-transform: scale(1.1, 1.1);
|
272 |
+
-moz-transform: scale(1.1, 1.1);
|
273 |
+
-o-transform: scale(1.1, 1.1);
|
274 |
+
-ms-transform: scale(1.1, 1.1);
|
275 |
+
transform: scale(1.1, 1.1);
|
276 |
+
}
|
admin/src/scss/partials/_alm-block.scss
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ajax-load-more{
|
2 |
+
|
3 |
+
.alm-block{
|
4 |
+
&--wrap{
|
5 |
+
border: 1px solid $border;
|
6 |
+
border-top: none;
|
7 |
+
}
|
8 |
+
&--row{
|
9 |
+
display: flex;
|
10 |
+
flex-wrap: nowrap;
|
11 |
+
border-top: 1px solid $border;
|
12 |
+
&_title{
|
13 |
+
width: 100%;
|
14 |
+
flex: 1;
|
15 |
+
padding: 20px;
|
16 |
+
h3{
|
17 |
+
font-weight: 700;
|
18 |
+
margin: 0;
|
19 |
+
padding: 0;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
&_label,
|
23 |
+
&_detail{
|
24 |
+
padding: 20px;
|
25 |
+
}
|
26 |
+
&_label{
|
27 |
+
background-color: #f7f7f7;
|
28 |
+
font-weight: 600;
|
29 |
+
width: 20%;
|
30 |
+
border-right: 1px solid $border;
|
31 |
+
}
|
32 |
+
&_detail{
|
33 |
+
background-color: #fff;
|
34 |
+
flex: 1;
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
label{
|
39 |
+
font-size: 14px;
|
40 |
+
.small{
|
41 |
+
font-weight: 400;
|
42 |
+
font-size: 12px;
|
43 |
+
line-height: 1.35;
|
44 |
+
opacity: 0.8;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
admin/src/scss/partials/_alm-settings-feedback.scss
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.alm-settings-feedback {
|
2 |
+
position: fixed;
|
3 |
+
top: 50px;
|
4 |
+
right: 10px;
|
5 |
+
width: auto;
|
6 |
+
height: auto;
|
7 |
+
background: #fff;
|
8 |
+
border-left: 5px solid #5cc583;
|
9 |
+
color: #444;
|
10 |
+
padding: 25px 30px 25px 25px;
|
11 |
+
line-height: 1;
|
12 |
+
z-index: 9999;
|
13 |
+
border-radius: 2px;
|
14 |
+
opacity: 0;
|
15 |
+
visibility: hidden;
|
16 |
+
transition: all 0.25s ease-in-out;
|
17 |
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
18 |
+
font-size: 13px;
|
19 |
+
&.--saving {
|
20 |
+
border-color: #e0bd5e;
|
21 |
+
opacity: 1;
|
22 |
+
visibility: visible;
|
23 |
+
top: 50px;
|
24 |
+
right: 25px;
|
25 |
+
}
|
26 |
+
&.--saved {
|
27 |
+
opacity: 1;
|
28 |
+
visibility: visible;
|
29 |
+
top: 50px;
|
30 |
+
right: 25px;
|
31 |
+
i {
|
32 |
+
opacity: 1;
|
33 |
+
color: #5cc583;
|
34 |
+
}
|
35 |
+
}
|
36 |
+
&.--error {
|
37 |
+
border-color: #e03e3e;
|
38 |
+
opacity: 1;
|
39 |
+
visibility: visible;
|
40 |
+
top: 25px;
|
41 |
+
right: 25px;
|
42 |
+
}
|
43 |
+
i {
|
44 |
+
opacity: 0.6;
|
45 |
+
margin: 0 3px 0 0;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
#alm_OptionsForm {
|
50 |
+
position: relative;
|
51 |
+
.save-in-progress {
|
52 |
+
width: 100%;
|
53 |
+
height: 100%;
|
54 |
+
position: absolute;
|
55 |
+
left: 0;
|
56 |
+
top: 0;
|
57 |
+
z-index: 10;
|
58 |
+
background: rgba(255, 255, 255, 0.5);
|
59 |
+
transition: all 0.2s ease;
|
60 |
+
opacity: 0;
|
61 |
+
visibility: hidden;
|
62 |
+
}
|
63 |
+
&.--saving {
|
64 |
+
.save-in-progress {
|
65 |
+
opacity: 1;
|
66 |
+
visibility: visible;
|
67 |
+
cursor: not-allowed !important;
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
admin/src/scss/partials/_builder-option-toggle.scss
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ajax-load-more .builder-option-toggle{
|
2 |
+
display: flex;
|
3 |
+
flex-wrap: nowrap;
|
4 |
+
input{
|
5 |
+
border-radius: $radius 0 0 $radius;
|
6 |
+
margin: 0;
|
7 |
+
width: auto;
|
8 |
+
flex: 1;
|
9 |
+
}
|
10 |
+
&--buttons{
|
11 |
+
border-radius: 0 $radius $radius 0;
|
12 |
+
padding: 3px;
|
13 |
+
width: auto;
|
14 |
+
border: 1px solid $border;
|
15 |
+
border-left: none;
|
16 |
+
button{
|
17 |
+
height: 100%;
|
18 |
+
border: 1px solid $border;
|
19 |
+
border-left-width: 0;
|
20 |
+
margin: 0;
|
21 |
+
font-weight: 600;
|
22 |
+
font-size: 11px;
|
23 |
+
text-transform: uppercase;
|
24 |
+
float: left;
|
25 |
+
cursor: pointer;
|
26 |
+
padding: 0;
|
27 |
+
margin: 0;
|
28 |
+
border-radius: 0;
|
29 |
+
width: 34px;
|
30 |
+
text-align: center;
|
31 |
+
display: inline-block;
|
32 |
+
color: $grey;
|
33 |
+
background-color: transparent;
|
34 |
+
&:hover,
|
35 |
+
&:focus{
|
36 |
+
color: #222;
|
37 |
+
border-color: #ccc;
|
38 |
+
}
|
39 |
+
&:first-child{
|
40 |
+
border-radius: $radius 0 0 $radius;
|
41 |
+
border-left-width: 1px;
|
42 |
+
}
|
43 |
+
&:last-child{
|
44 |
+
border-radius: 0 $radius $radius 0;
|
45 |
+
}
|
46 |
+
&.active{
|
47 |
+
border-color: $grey;
|
48 |
+
background-color: $grey;
|
49 |
+
color: #fff;
|
50 |
+
cursor: default;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
}
|
54 |
+
}
|
admin/src/scss/partials/_codemirror.scss
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ajax-load-more .CodeMirror {
|
2 |
+
height: auto;
|
3 |
+
border-radius: $radius;
|
4 |
+
padding: 0;
|
5 |
+
background: $light_grey;
|
6 |
+
border: 1px solid $border;
|
7 |
+
color: #999;
|
8 |
+
line-height: 1.5;
|
9 |
+
font-size: 13px;
|
10 |
+
&.CodeMirror-focused{
|
11 |
+
border-color: #bbbbbb;
|
12 |
+
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
13 |
+
}
|
14 |
+
}
|
15 |
+
.ajax-load-more .cm-readonly .CodeMirror{
|
16 |
+
opacity: 0.8;
|
17 |
+
}
|
18 |
+
.ajax-load-more .cm-readonly .CodeMirror pre{
|
19 |
+
cursor: default !important;
|
20 |
+
}
|
21 |
+
.ajax-load-more .CodeMirror pre{
|
22 |
+
padding: 0 10px;
|
23 |
+
}
|
24 |
+
.CodeMirror-lines{
|
25 |
+
padding: 10px !important;
|
26 |
+
}
|
27 |
+
.CodeMirror-linenumber{
|
28 |
+
padding: 0 10px !important;
|
29 |
+
line-height: 1.25 !important;
|
30 |
+
color: #ccc !important;
|
31 |
+
}
|
32 |
+
.CodeMirror-linenumber.CodeMirror-gutter-elt {
|
33 |
+
padding: 0 20px 0 0 !important;
|
34 |
+
}
|
35 |
+
.ajax-load-more .cm-readonly.sm-margin .CodeMirror{
|
36 |
+
margin: 0 0 10px;
|
37 |
+
}
|
38 |
+
.ajax-load-more .cm-readonly p.warning-callout{
|
39 |
+
margin: 0 0 10px;
|
40 |
+
}
|
41 |
+
.ajax-load-more .CodeMirror.loading {
|
42 |
+
background: $light_grey url("../../img/loader-unlimited.gif") no-repeat center center;
|
43 |
+
opacity: 0.6;
|
44 |
+
}
|
45 |
+
.ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
|
46 |
+
background: #333;
|
47 |
+
}
|
48 |
+
.ajax-load-more .CodeMirror-gutters{ /* Line Number color */
|
49 |
+
background: #fff;
|
50 |
+
border-right: 1px solid $border;
|
51 |
+
border-radius: 2px;
|
52 |
+
}
|
53 |
+
.ajax-load-more .CodeMirror-scroll {
|
54 |
+
overflow-y: hidden;
|
55 |
+
overflow-x: auto;
|
56 |
+
}
|
57 |
+
|
58 |
+
.ajax-load-more .cm-tag{ /* <li> <h2> html elements */
|
59 |
+
color: #0a4b83 !important;
|
60 |
+
}
|
61 |
+
.ajax-load-more .cm-string{ /* Elements in " " */
|
62 |
+
color: #c75050 !important;
|
63 |
+
}
|
64 |
+
.ajax-load-more .cm-attribute{ /* class names */
|
65 |
+
color: #008080 !important;
|
66 |
+
}
|
67 |
+
.ajax-load-more .cm-keyword{ /* if, array, echo */
|
68 |
+
color: #ae5fb3 !important;
|
69 |
+
}
|
70 |
+
.ajax-load-more span.CodeMirror-matchingbracket{
|
71 |
+
color: #ff0000 !important;
|
72 |
+
}
|
73 |
+
.ajax-load-more .CodeMirror span.cm-meta{ /* <?php */
|
74 |
+
color: #999;
|
75 |
+
}
|
76 |
+
.ajax-load-more .CodeMirror span.cm-variable{ /* Function names */
|
77 |
+
color: #111;
|
78 |
+
font-weight: 500;
|
79 |
+
padding: 0 1px;
|
80 |
+
}
|
81 |
+
.ajax-load-more .CodeMirror span.cm-number{ /* Numbers */
|
82 |
+
color: #009999 !important;
|
83 |
+
}
|
admin/src/scss/partials/_header.scss
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ajax-load-more .header-wrap {
|
2 |
+
position: relative;
|
3 |
+
z-index: 1;
|
4 |
+
h1 {
|
5 |
+
padding: $padding $padding $padding 75px;
|
6 |
+
margin: 0;
|
7 |
+
min-height: 48px;
|
8 |
+
background: #fff url('../../img/alm-logo-48x48.png') no-repeat $padding $padding;
|
9 |
+
background: #fff url('../../img/alm-logo-48x48.svg') no-repeat $padding $padding;
|
10 |
+
font-size: 18px;
|
11 |
+
font-weight: 800;
|
12 |
+
border-bottom: 1px solid $border;
|
13 |
+
@media screen and (min-width: 768px) {
|
14 |
+
font-size: 21px;
|
15 |
+
}
|
16 |
+
em {
|
17 |
+
display: block;
|
18 |
+
position: relative;
|
19 |
+
font-size: 12px;
|
20 |
+
@media screen and (min-width: 768px) {
|
21 |
+
font-size: 14px;
|
22 |
+
}
|
23 |
+
color: #999;
|
24 |
+
font-style: normal;
|
25 |
+
font-weight: 400;
|
26 |
+
line-height: 1.3;
|
27 |
+
padding: 1px 0 0;
|
28 |
+
margin: 0;
|
29 |
+
}
|
30 |
+
strong {
|
31 |
+
font-weight: 600;
|
32 |
+
}
|
33 |
+
span {
|
34 |
+
color: #999;
|
35 |
+
font-weight: 300;
|
36 |
+
font-style: italic;
|
37 |
+
margin: 0 0 0 5px;
|
38 |
+
vertical-align: top;
|
39 |
+
font-size: 12px;
|
40 |
+
@media screen and (min-width: 768px) {
|
41 |
+
font-size: 13px;
|
42 |
+
}
|
43 |
+
background-color: $light_grey;
|
44 |
+
border-radius: 2px;
|
45 |
+
padding: 2px 4px;
|
46 |
+
display: inline-block;
|
47 |
+
line-height: 1.45;
|
48 |
+
position: relative;
|
49 |
+
top: 3px;
|
50 |
+
}
|
51 |
+
}
|
52 |
+
.notice {
|
53 |
+
margin: $padding;
|
54 |
+
}
|
55 |
+
}
|
admin/src/scss/partials/_pro-listing.scss
ADDED
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/* Pro Add-on Listing */
|
3 |
+
.alm-pro-listing{
|
4 |
+
padding: 0;
|
5 |
+
border-top: none;
|
6 |
+
position: relative;
|
7 |
+
padding-bottom: 20px;
|
8 |
+
.loader{
|
9 |
+
position: absolute;
|
10 |
+
left: 0;
|
11 |
+
top: 0;
|
12 |
+
width: 100%;
|
13 |
+
height: 100%;
|
14 |
+
z-index: 99;
|
15 |
+
display: none;
|
16 |
+
}
|
17 |
+
&.loading{
|
18 |
+
.loader{
|
19 |
+
display: block;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
&--header{
|
23 |
+
border: 1px solid #e1e1e1;
|
24 |
+
background: #f7f7f7;
|
25 |
+
padding: 18px;
|
26 |
+
font-size: 13px;
|
27 |
+
font-weight: 600;
|
28 |
+
text-transform: uppercase;
|
29 |
+
color: #23282d;
|
30 |
+
position: relative;
|
31 |
+
margin-bottom: 30px;
|
32 |
+
border-radius: 2px;
|
33 |
+
div{
|
34 |
+
position: absolute;
|
35 |
+
right: 15px;
|
36 |
+
top: 50%;
|
37 |
+
transform: translateY(-50%);
|
38 |
+
font-size: 13px;
|
39 |
+
opacity: 0.7;
|
40 |
+
font-weight: normal;
|
41 |
+
text-transform: none;
|
42 |
+
font-style: italic;
|
43 |
+
@media screen and (max-width: 480px){
|
44 |
+
display: none;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
48 |
+
&--wrap{
|
49 |
+
display: flex;
|
50 |
+
flex-wrap: wrap;
|
51 |
+
width: calc(100% + 10px);
|
52 |
+
margin-left: -5px;
|
53 |
+
}
|
54 |
+
|
55 |
+
.item{
|
56 |
+
width: calc(50% - 10px);
|
57 |
+
display: flex;
|
58 |
+
margin: 0 5px 10px;
|
59 |
+
@media screen and (min-width: 1500px){
|
60 |
+
width: calc(33.333% - 10px);
|
61 |
+
}
|
62 |
+
@media screen and (max-width: 480px){
|
63 |
+
width: 100%;
|
64 |
+
margin: 0 0 10px;
|
65 |
+
}
|
66 |
+
h2, p, img, .state{
|
67 |
+
transition: all 0.15s ease;
|
68 |
+
}
|
69 |
+
a{
|
70 |
+
text-decoration: none !important;
|
71 |
+
padding: 0 55px 0 0;
|
72 |
+
position: relative;
|
73 |
+
display: flex;
|
74 |
+
border: 1px solid #e1e1e1;
|
75 |
+
transition: all 0.15s ease;
|
76 |
+
border-radius: 2px;
|
77 |
+
@media screen and (max-width: 1100px){
|
78 |
+
padding: 0 10px 20px;
|
79 |
+
}
|
80 |
+
&:hover,
|
81 |
+
&:focus{
|
82 |
+
border-color: #bbb;
|
83 |
+
h2{
|
84 |
+
text-decoration: none;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
88 |
+
&--detail{
|
89 |
+
padding: 20px;
|
90 |
+
position: relative;
|
91 |
+
min-height: 110px;
|
92 |
+
display: flex;
|
93 |
+
align-items: flex-start;
|
94 |
+
@media screen and (max-width: 1100px){
|
95 |
+
display: block;
|
96 |
+
text-align: center;
|
97 |
+
img{
|
98 |
+
padding-bottom: 20px;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
div{
|
102 |
+
padding: 0;
|
103 |
+
}
|
104 |
+
img{
|
105 |
+
width: 110px;
|
106 |
+
height: auto;
|
107 |
+
margin-right: 20px;
|
108 |
+
}
|
109 |
+
a{
|
110 |
+
text-decoration: none;
|
111 |
+
&:hover,
|
112 |
+
&:focus{
|
113 |
+
text-decoration: none;
|
114 |
+
h2{
|
115 |
+
text-decoration: none;
|
116 |
+
}
|
117 |
+
}
|
118 |
+
}
|
119 |
+
h2{
|
120 |
+
margin: 0 0 7px;
|
121 |
+
font-size: 16px;
|
122 |
+
line-height: 1;
|
123 |
+
transition: all 0.15s ease;
|
124 |
+
span{
|
125 |
+
font-weight: 400;
|
126 |
+
opacity: 0.4;
|
127 |
+
font-size: 12px;
|
128 |
+
position: relative;
|
129 |
+
top: 0;
|
130 |
+
left: 3px;
|
131 |
+
text-decoration: none !important;
|
132 |
+
}
|
133 |
+
}
|
134 |
+
p{
|
135 |
+
margin: 0;
|
136 |
+
padding: 0;
|
137 |
+
font-size: 14px;
|
138 |
+
&.link{
|
139 |
+
font-size: 13px;
|
140 |
+
padding-top: 2px;
|
141 |
+
opacity: 0;
|
142 |
+
transition: opacity 0.15s ease;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
.highlight-addon{
|
146 |
+
padding-top: 15px;
|
147 |
+
font-size: 12px;
|
148 |
+
margin: 0;
|
149 |
+
|
150 |
+
span{
|
151 |
+
display: inline-block;
|
152 |
+
padding: 5px;
|
153 |
+
position: relative;
|
154 |
+
left: -5px;
|
155 |
+
line-height: 1;
|
156 |
+
background-color: $yellow;
|
157 |
+
font-weight: 500;
|
158 |
+
}
|
159 |
+
}
|
160 |
+
}
|
161 |
+
.result{
|
162 |
+
position: absolute;
|
163 |
+
right: 6px;
|
164 |
+
bottom: 6px;
|
165 |
+
font-size: 12px;
|
166 |
+
opacity: 0;
|
167 |
+
transition: all 0.25s ease;
|
168 |
+
&.in-view{
|
169 |
+
opacity: 0.7;
|
170 |
+
}
|
171 |
+
.type{
|
172 |
+
background: #47bd79;
|
173 |
+
color: #fff;
|
174 |
+
display: none;
|
175 |
+
border-radius: 2px;
|
176 |
+
padding: 3px 6px;
|
177 |
+
display: inline-block;
|
178 |
+
}
|
179 |
+
.type.inactive{
|
180 |
+
background: #c54545;
|
181 |
+
display: none;
|
182 |
+
}
|
183 |
+
}
|
184 |
+
.state{
|
185 |
+
width: 22px;
|
186 |
+
height: 22px;
|
187 |
+
position: absolute;
|
188 |
+
right: 6px;
|
189 |
+
top: 6px;
|
190 |
+
border-radius: 2px;
|
191 |
+
background: #57d48c;
|
192 |
+
color: #fff;
|
193 |
+
display: flex;
|
194 |
+
align-items: center;
|
195 |
+
justify-content: center;
|
196 |
+
text-decoration: none !important;
|
197 |
+
font-size: 12px;
|
198 |
+
transition: all 0.15s ease;
|
199 |
+
&:before{
|
200 |
+
font-family: 'FontAwesome';
|
201 |
+
content: '\f00c';
|
202 |
+
display: block;
|
203 |
+
|
204 |
+
}
|
205 |
+
}
|
206 |
+
|
207 |
+
&.active{
|
208 |
+
a{
|
209 |
+
border-color: #57d48c;
|
210 |
+
}
|
211 |
+
&:hover{
|
212 |
+
.state{
|
213 |
+
opacity: 0.9;
|
214 |
+
}
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
+
&.inactive{
|
219 |
+
h2, p, img, .state{
|
220 |
+
opacity: 0.5;
|
221 |
+
}
|
222 |
+
.state{
|
223 |
+
background: #e1e1e1;
|
224 |
+
&:before{
|
225 |
+
opacity: 0;
|
226 |
+
}
|
227 |
+
}
|
228 |
+
&:hover{
|
229 |
+
h2, p, img, .state{
|
230 |
+
opacity: 0.8;
|
231 |
+
}
|
232 |
+
|
233 |
+
.state{
|
234 |
+
background: #ccc;
|
235 |
+
&:before{
|
236 |
+
opacity: 1;
|
237 |
+
}
|
238 |
+
}
|
239 |
+
}
|
240 |
+
}
|
241 |
+
}
|
242 |
+
}
|
admin/src/scss/partials/_select2.scss
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Custom buttom/loading styles */
|
2 |
+
.select2-results .select2-result.alm-color .select2-result-label{
|
3 |
+
position: relative;
|
4 |
+
}
|
5 |
+
.select2-results .select2-result.alm-color .select2-result-label:after{
|
6 |
+
width: 10px;
|
7 |
+
height: 10px;
|
8 |
+
border-radius: 100%;
|
9 |
+
content: '';
|
10 |
+
display: block;
|
11 |
+
position: absolute;
|
12 |
+
right: 20px;
|
13 |
+
top: 50%;
|
14 |
+
margin-top: -5px;
|
15 |
+
z-index: 1;
|
16 |
+
}
|
17 |
+
.select2-results .select2-result.alm-color.default .select2-result-label:after{
|
18 |
+
background-color: #ed7070;
|
19 |
+
}
|
20 |
+
.select2-results .select2-result.alm-color.white .select2-result-label:after{
|
21 |
+
background-color: #fff;
|
22 |
+
box-shadow: 0 0 0 1px #ccc;
|
23 |
+
}
|
24 |
+
.select2-results .select2-result.alm-color.light-grey .select2-result-label:after{
|
25 |
+
background-color: #efefef;
|
26 |
+
box-shadow: 0 0 0 1px #ccc;
|
27 |
+
}
|
28 |
+
.select2-results .select2-result.alm-color.blue .select2-result-label:after{
|
29 |
+
background-color: #1b91ca;
|
30 |
+
}
|
31 |
+
.select2-results .select2-result.alm-color.green .select2-result-label:after{
|
32 |
+
background-color: #80ca7a;
|
33 |
+
}
|
34 |
+
.select2-results .select2-result.alm-color.purple .select2-result-label:after{
|
35 |
+
background-color: #b97eca;
|
36 |
+
}
|
37 |
+
.select2-results .select2-result.alm-color.grey .select2-result-label:after{
|
38 |
+
background-color: #a09e9e;
|
39 |
+
}
|
40 |
+
.select2-results .select2-result.infinite .select2-result-label:after{
|
41 |
+
display: none;
|
42 |
+
}
|
43 |
+
.select2-results .select2-result.infinite .select2-result-label{
|
44 |
+
-webkit-background-size: 20px 20px;
|
45 |
+
-moz-background-size: 20px 20px;
|
46 |
+
background-size: 20px 20px;
|
47 |
+
background-repeat: no-repeat;
|
48 |
+
background-position: 93% center;
|
49 |
+
}
|
50 |
+
.select2-results .select2-result.classic .select2-result-label{
|
51 |
+
background-image: url("../../../core/img/spinner.gif");
|
52 |
+
}
|
53 |
+
.select2-results .select2-result.skype .select2-result-label{
|
54 |
+
background-image: url("../../../core/img/spinner-skype.gif");
|
55 |
+
}
|
56 |
+
.select2-results .select2-result.ring .select2-result-label{
|
57 |
+
background-image: url("../../../core/img/spinner-ring.gif");
|
58 |
+
}
|
59 |
+
.select2-results .select2-result.chasing-arrows .select2-result-label{
|
60 |
+
background-image: url("../../../core/img/spinner-chasing-arrows.gif");
|
61 |
+
}
|
62 |
+
.select2-results .select2-result.fading-blocks .select2-result-label{
|
63 |
+
background-image: url("../../../core/img/loader-fading-blocks.gif");
|
64 |
+
-webkit-background-size: 20px 16px;
|
65 |
+
-moz-background-size: 20px 16px;
|
66 |
+
background-size: 20px 16px;
|
67 |
+
}
|
68 |
+
.select2-results .select2-result.fading-circles .select2-result-label{
|
69 |
+
background-image: url("../../../core/img/loader-fading-circles.gif");
|
70 |
+
-webkit-background-size: 30px 10px;
|
71 |
+
-moz-background-size: 30px 10px;
|
72 |
+
background-size: 30px 10px;
|
73 |
+
background-position: 95% center;
|
74 |
+
}
|
admin/src/scss/partials/_shortcode-builder.scss
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.shortcode-builder {
|
2 |
+
p.warning-callout {
|
3 |
+
&:before {
|
4 |
+
display: block;
|
5 |
+
width: calc(100% + 36px);
|
6 |
+
height: 1px;
|
7 |
+
content: '';
|
8 |
+
background: $light_border;
|
9 |
+
position: absolute;
|
10 |
+
left: -18px;
|
11 |
+
top: -10px;
|
12 |
+
z-index: 1;
|
13 |
+
}
|
14 |
+
}
|
15 |
+
section {
|
16 |
+
display: flex;
|
17 |
+
flex-wrap: nowrap;
|
18 |
+
width: 100%;
|
19 |
+
border-top: 1px solid $light_border;
|
20 |
+
&:hover,
|
21 |
+
&:focus-within {
|
22 |
+
h4 {
|
23 |
+
text-decoration: underline;
|
24 |
+
}
|
25 |
+
}
|
26 |
+
&.first {
|
27 |
+
border-top: none;
|
28 |
+
}
|
29 |
+
&.full {
|
30 |
+
flex-wrap: wrap;
|
31 |
+
.shortcode-builder--label,
|
32 |
+
.shortcode-builder--fields {
|
33 |
+
width: 100%;
|
34 |
+
}
|
35 |
+
.shortcode-builder--label {
|
36 |
+
border-bottom: 1px solid $light_border;
|
37 |
+
}
|
38 |
+
}
|
39 |
+
input[type='text'],
|
40 |
+
input[type='email'],
|
41 |
+
input[type='number'],
|
42 |
+
textarea {
|
43 |
+
width: 100%;
|
44 |
+
}
|
45 |
+
.select2-container {
|
46 |
+
min-width: 100%;
|
47 |
+
width: 100%;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
&--label,
|
51 |
+
&--fields {
|
52 |
+
padding: 23px 20px;
|
53 |
+
}
|
54 |
+
&--label {
|
55 |
+
background-color: #fcfcfc;
|
56 |
+
border-right: 1px solid $light_border;
|
57 |
+
width: 40%;
|
58 |
+
padding-right: 30px;
|
59 |
+
&.full {
|
60 |
+
width: 100%;
|
61 |
+
}
|
62 |
+
h4 {
|
63 |
+
margin: 0 0 10px;
|
64 |
+
}
|
65 |
+
p {
|
66 |
+
font-size: 13px !important;
|
67 |
+
line-height: 18px !important;
|
68 |
+
small {
|
69 |
+
padding-top: 10px;
|
70 |
+
display: block;
|
71 |
+
font-size: 12px !important;
|
72 |
+
}
|
73 |
+
&:last-of-type {
|
74 |
+
margin-bottom: 0;
|
75 |
+
}
|
76 |
+
}
|
77 |
+
}
|
78 |
+
&--fields {
|
79 |
+
padding-top: 22px;
|
80 |
+
flex: 1;
|
81 |
+
input,
|
82 |
+
textarea,
|
83 |
+
select {
|
84 |
+
width: 100%;
|
85 |
+
}
|
86 |
+
section {
|
87 |
+
width: 104%;
|
88 |
+
margin-left: -2%;
|
89 |
+
border: none;
|
90 |
+
}
|
91 |
+
.half {
|
92 |
+
width: 50%;
|
93 |
+
padding: 0 2%;
|
94 |
+
}
|
95 |
+
.flex-grid {
|
96 |
+
display: flex;
|
97 |
+
width: 100%;
|
98 |
+
flex-wrap: nowrap;
|
99 |
+
&--two,
|
100 |
+
&--three {
|
101 |
+
width: 102%;
|
102 |
+
margin-left: -1%;
|
103 |
+
> div {
|
104 |
+
width: 50%;
|
105 |
+
padding: 0 1%;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
&--three {
|
110 |
+
> div {
|
111 |
+
width: 33.333%;
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
@media screen and (max-width: 1000px) {
|
118 |
+
section {
|
119 |
+
flex-wrap: wrap;
|
120 |
+
}
|
121 |
+
&--label,
|
122 |
+
&--fields {
|
123 |
+
width: 100%;
|
124 |
+
}
|
125 |
+
&--label {
|
126 |
+
border-right: none;
|
127 |
+
border-bottom: 1px solid $light_border;
|
128 |
+
}
|
129 |
+
}
|
130 |
+
|
131 |
+
.flex-input {
|
132 |
+
display: flex;
|
133 |
+
width: 100%;
|
134 |
+
flex-wrap: nowrap;
|
135 |
+
input {
|
136 |
+
margin: 0;
|
137 |
+
flex: 1;
|
138 |
+
border-radius: 3px 0 0 3px;
|
139 |
+
}
|
140 |
+
span {
|
141 |
+
border: 1px solid #e1e1e1;
|
142 |
+
border-left: none;
|
143 |
+
margin: 0;
|
144 |
+
font-weight: 600;
|
145 |
+
font-size: 11px;
|
146 |
+
text-transform: uppercase;
|
147 |
+
padding: 0 15px;
|
148 |
+
display: flex;
|
149 |
+
align-items: center;
|
150 |
+
border-radius: 0 3px 3px 0;
|
151 |
+
}
|
152 |
+
}
|
153 |
+
|
154 |
+
.nested-component {
|
155 |
+
padding: 0;
|
156 |
+
position: relative;
|
157 |
+
&:after,
|
158 |
+
&:before {
|
159 |
+
top: 0;
|
160 |
+
left: 35px;
|
161 |
+
border: solid transparent;
|
162 |
+
content: ' ';
|
163 |
+
height: 0;
|
164 |
+
width: 0;
|
165 |
+
position: absolute;
|
166 |
+
pointer-events: none;
|
167 |
+
z-index: 2;
|
168 |
+
}
|
169 |
+
&:after {
|
170 |
+
border-color: rgba(255, 255, 255, 0);
|
171 |
+
border-top-color: #fcfcfc;
|
172 |
+
border-width: 10px;
|
173 |
+
margin-left: -10px;
|
174 |
+
}
|
175 |
+
&:before {
|
176 |
+
border-color: rgba(239, 239, 239, 0);
|
177 |
+
border-top-color: $border;
|
178 |
+
border-width: 11px;
|
179 |
+
margin-left: -11px;
|
180 |
+
z-index: 1;
|
181 |
+
}
|
182 |
+
|
183 |
+
&--inner {
|
184 |
+
padding: 0;
|
185 |
+
position: relative;
|
186 |
+
&:after {
|
187 |
+
clear: both;
|
188 |
+
display: table;
|
189 |
+
content: '';
|
190 |
+
}
|
191 |
+
}
|
192 |
+
.nested-component {
|
193 |
+
.shortcode-builder--label {
|
194 |
+
border-left: 6px solid $light_border;
|
195 |
+
}
|
196 |
+
}
|
197 |
+
}
|
198 |
+
.section-intro {
|
199 |
+
font-size: 13px;
|
200 |
+
padding: 20px 5px 20px;
|
201 |
+
margin: 0 0 20px;
|
202 |
+
border-bottom: 1px solid $light_border;
|
203 |
+
}
|
204 |
+
}
|
admin/src/scss/partials/_sidebar.scss
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ajax-load-more .cnkt-sidebar {
|
2 |
+
width: 30%;
|
3 |
+
float: right;
|
4 |
+
padding: $padding;
|
5 |
+
position: absolute;
|
6 |
+
right: 0;
|
7 |
+
top: 0;
|
8 |
+
height: 100%;
|
9 |
+
@media screen and (max-width: 900px) {
|
10 |
+
padding-left: 0;
|
11 |
+
padding-right: 0;
|
12 |
+
}
|
13 |
+
.major-publishing-actions {
|
14 |
+
padding: $padding;
|
15 |
+
clear: both;
|
16 |
+
border-top: 1px solid $border;
|
17 |
+
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025);
|
18 |
+
background: $light_grey;
|
19 |
+
border-radius: 0 0 2px 2px;
|
20 |
+
i {
|
21 |
+
opacity: 0.4;
|
22 |
+
margin: 0 2px 0 0;
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
admin/src/scss/partials/_template-tags.scss
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Template Tags */
|
2 |
+
.ajax-load-more {
|
3 |
+
.template-tags {
|
4 |
+
overflow: hidden;
|
5 |
+
border-left: 5px solid #dfd8c2;
|
6 |
+
padding: 15px;
|
7 |
+
background: #fff9ea;
|
8 |
+
margin: 20px 0 0;
|
9 |
+
border-radius: 3px;
|
10 |
+
h4,
|
11 |
+
li {
|
12 |
+
margin: 0 0 8px;
|
13 |
+
padding: 0;
|
14 |
+
font-size: 13px;
|
15 |
+
text-decoration: none !important;
|
16 |
+
}
|
17 |
+
li {
|
18 |
+
margin: 5px 0 !important;
|
19 |
+
width: 100% !important;
|
20 |
+
padding: 0 !important;
|
21 |
+
border-radius: $radius;
|
22 |
+
line-height: 1.25;
|
23 |
+
}
|
24 |
+
ul {
|
25 |
+
margin: 0;
|
26 |
+
padding: 0;
|
27 |
+
}
|
28 |
+
pre {
|
29 |
+
display: inline-block;
|
30 |
+
min-width: 120px;
|
31 |
+
padding: 0;
|
32 |
+
margin: 0;
|
33 |
+
color: #888;
|
34 |
+
}
|
35 |
+
}
|
36 |
+
}
|
admin/src/scss/partials/_woocommerce.scss
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.woocommerce-intro{
|
2 |
+
}
|
3 |
+
.woocommerce-help{
|
4 |
+
&--item{
|
5 |
+
width: 100%;
|
6 |
+
display: flex;
|
7 |
+
flex-wrap: nowrap;
|
8 |
+
align-items: center;
|
9 |
+
padding-top: 20px;
|
10 |
+
margin-top: 20px;
|
11 |
+
border-top: 1px solid #efefef;
|
12 |
+
div{
|
13 |
+
flex: 1;
|
14 |
+
padding: 20px 20px 20px 30px;
|
15 |
+
@media screen and (max-width: 600px){
|
16 |
+
padding: 20px 0;
|
17 |
+
}
|
18 |
+
}
|
19 |
+
.img{
|
20 |
+
padding: 0;
|
21 |
+
flex: none;
|
22 |
+
width: 30%;
|
23 |
+
@media screen and (max-width: 600px){
|
24 |
+
display: none;
|
25 |
+
}
|
26 |
+
img{
|
27 |
+
border: 1px solid #efefef;
|
28 |
+
padding: 2px;
|
29 |
+
border-radius: 4px;
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|
admin/views/repeater-templates.php
CHANGED
@@ -155,10 +155,11 @@
|
|
155 |
<?php } ?>
|
156 |
|
157 |
<?php } else {
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
|
|
162 |
} ?>
|
163 |
|
164 |
<?php } else { ?>
|
155 |
<?php } ?>
|
156 |
|
157 |
<?php } else {
|
158 |
+
// Display Theme Repeaters CTA.
|
159 |
+
$tr_extend_cta = alm_get_addon( 'theme-repeaters' );
|
160 |
+
if ( $tr_extend_cta ) {
|
161 |
+
echo alm_display_featured_addon( $tr_extend_cta, 'Upgrade Now');
|
162 |
+
}
|
163 |
} ?>
|
164 |
|
165 |
<?php } else { ?>
|
ajax-load-more.php
CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
|
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
-
Version: 5.4.
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
// @codingStandardsIgnoreStart
|
16 |
|
17 |
-
define( 'ALM_VERSION', '5.4.
|
18 |
-
define( 'ALM_RELEASE', '
|
19 |
define( 'ALM_STORE_URL', 'https://connekthq.com' );
|
20 |
|
21 |
/**
|
@@ -41,8 +41,6 @@ function alm_install( $network_wide ) {
|
|
41 |
register_activation_hook( __FILE__, 'alm_install' );
|
42 |
add_action( 'wpmu_new_blog', 'alm_install' );
|
43 |
|
44 |
-
|
45 |
-
|
46 |
/**
|
47 |
* Create new table and repeater template.
|
48 |
*
|
@@ -88,8 +86,6 @@ function alm_create_table() {
|
|
88 |
}
|
89 |
}
|
90 |
|
91 |
-
|
92 |
-
|
93 |
/**
|
94 |
* Render Ajax Load More public function
|
95 |
*
|
@@ -131,13 +127,11 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
131 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( &$this, 'alm_action_links' ) );
|
132 |
add_filter( 'plugin_row_meta', array( &$this, 'alm_plugin_meta_links' ), 10, 2 );
|
133 |
add_shortcode( 'ajax_load_more', array( &$this, 'alm_shortcode' ) );
|
134 |
-
add_filter( 'widget_text', 'do_shortcode' );
|
135 |
-
load_plugin_textdomain( 'ajax-load-more', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
|
136 |
|
137 |
}
|
138 |
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Define plugin constants.
|
143 |
*
|
@@ -352,7 +346,9 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
352 |
'results_text' => apply_filters( 'alm_display_results', __( 'Viewing {post_count} of {total_posts} results.', 'ajax-load-more' ) ),
|
353 |
'no_results_text' => apply_filters( 'alm_no_results_text', __( 'No results found.', 'ajax-load-more' ) ),
|
354 |
'alm_debug' => apply_filters( 'alm_debug', false ),
|
355 |
-
'a11y_focus' => apply_filters( 'alm_a11y_focus', true )
|
|
|
|
|
356 |
)
|
357 |
);
|
358 |
}
|
@@ -589,7 +585,7 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
589 |
|
590 |
// Call to Action [Before].
|
591 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
|
592 |
-
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
|
593 |
$alm_has_cta = true;
|
594 |
}
|
595 |
|
@@ -598,7 +594,7 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
598 |
|
599 |
// Call to Action [After].
|
600 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
|
601 |
-
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
|
602 |
$alm_has_cta = true;
|
603 |
}
|
604 |
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
+
Version: 5.4.3
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
// @codingStandardsIgnoreStart
|
16 |
|
17 |
+
define( 'ALM_VERSION', '5.4.3' );
|
18 |
+
define( 'ALM_RELEASE', 'February 11, 2021' );
|
19 |
define( 'ALM_STORE_URL', 'https://connekthq.com' );
|
20 |
|
21 |
/**
|
41 |
register_activation_hook( __FILE__, 'alm_install' );
|
42 |
add_action( 'wpmu_new_blog', 'alm_install' );
|
43 |
|
|
|
|
|
44 |
/**
|
45 |
* Create new table and repeater template.
|
46 |
*
|
86 |
}
|
87 |
}
|
88 |
|
|
|
|
|
89 |
/**
|
90 |
* Render Ajax Load More public function
|
91 |
*
|
127 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( &$this, 'alm_action_links' ) );
|
128 |
add_filter( 'plugin_row_meta', array( &$this, 'alm_plugin_meta_links' ), 10, 2 );
|
129 |
add_shortcode( 'ajax_load_more', array( &$this, 'alm_shortcode' ) );
|
130 |
+
add_filter( 'widget_text', 'do_shortcode' );
|
131 |
+
load_plugin_textdomain( 'ajax-load-more', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
|
132 |
|
133 |
}
|
134 |
|
|
|
|
|
135 |
/**
|
136 |
* Define plugin constants.
|
137 |
*
|
346 |
'results_text' => apply_filters( 'alm_display_results', __( 'Viewing {post_count} of {total_posts} results.', 'ajax-load-more' ) ),
|
347 |
'no_results_text' => apply_filters( 'alm_no_results_text', __( 'No results found.', 'ajax-load-more' ) ),
|
348 |
'alm_debug' => apply_filters( 'alm_debug', false ),
|
349 |
+
'a11y_focus' => apply_filters( 'alm_a11y_focus', true ),
|
350 |
+
'site_title' => get_bloginfo( 'name' ),
|
351 |
+
'site_tagline' => get_bloginfo( 'description' ),
|
352 |
)
|
353 |
);
|
354 |
}
|
585 |
|
586 |
// Call to Action [Before].
|
587 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
|
588 |
+
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false, $args);
|
589 |
$alm_has_cta = true;
|
590 |
}
|
591 |
|
594 |
|
595 |
// Call to Action [After].
|
596 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
|
597 |
+
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false, $args);
|
598 |
$alm_has_cta = true;
|
599 |
}
|
600 |
|
core/classes/class-alm-enqueue.php
CHANGED
@@ -17,9 +17,7 @@ if( !class_exists('ALM_ENQUEUE') ):
|
|
17 |
class ALM_ENQUEUE {
|
18 |
|
19 |
/**
|
20 |
-
*
|
21 |
-
*
|
22 |
-
* Load ALM CSS
|
23 |
*
|
24 |
* @since 2.10.1
|
25 |
* @return wp_enqueue_style
|
17 |
class ALM_ENQUEUE {
|
18 |
|
19 |
/**
|
20 |
+
* Load ALM CSS.
|
|
|
|
|
21 |
*
|
22 |
* @since 2.10.1
|
23 |
* @return wp_enqueue_style
|
core/classes/class-alm-noscript.php
CHANGED
@@ -20,13 +20,12 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
20 |
|
21 |
|
22 |
/**
|
23 |
-
* alm_get_noscript
|
24 |
* This function will return a generated query for the noscript.
|
25 |
*
|
26 |
-
* @since
|
27 |
-
* @param $q
|
28 |
-
* @param $container
|
29 |
-
* @return
|
30 |
*/
|
31 |
public static function alm_get_noscript($q, $container = 'ul', $css_classes = '', $transition_container_classes = ''){
|
32 |
|
@@ -39,7 +38,6 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
39 |
}
|
40 |
}
|
41 |
|
42 |
-
|
43 |
// Users
|
44 |
elseif($q['users']){
|
45 |
|
@@ -61,7 +59,6 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
61 |
|
62 |
}
|
63 |
|
64 |
-
|
65 |
// Advanced Custom Fields (Repeater, Gallery, Flex Content
|
66 |
elseif($q['acf'] && ($q['acf_field_type'] !== 'relationship')){
|
67 |
if(has_action('alm_acf_installed') && $q['acf']){
|
@@ -76,15 +73,12 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
76 |
}
|
77 |
}
|
78 |
|
79 |
-
|
80 |
// Standard ALM
|
81 |
else {
|
82 |
|
83 |
-
|
84 |
// Build the $args array to use with this WP_Query
|
85 |
$query_args = ALM_QUERY_ARGS::alm_build_queryargs($q, false);
|
86 |
|
87 |
-
|
88 |
/*
|
89 |
* alm_query_args_[id]
|
90 |
*
|
@@ -136,15 +130,12 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
136 |
|
137 |
}
|
138 |
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
-
*
|
143 |
-
* Create paging navigation
|
144 |
*
|
145 |
-
* @return html;
|
146 |
-
* @updated 3.7
|
147 |
* @since 2.8.3
|
|
|
|
|
148 |
*/
|
149 |
public static function build_noscript_paging($query){
|
150 |
|
@@ -194,37 +185,31 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
194 |
|
195 |
}
|
196 |
|
197 |
-
|
198 |
-
|
199 |
/**
|
200 |
-
*
|
201 |
-
* This function will return the HTML output of the <noscript/>
|
202 |
*
|
203 |
-
* @since
|
204 |
-
* @param $output
|
205 |
-
* @param $container
|
206 |
-
* @param $paging
|
207 |
-
* @return
|
208 |
*/
|
209 |
-
public static function render($output, $container, $paging
|
210 |
-
return (!empty($output)) ? '<'. self::$element .'><'. $container .' class="alm-listing alm-noscript'. $css_classes .'"><div class="alm-reveal'. $transition_container_classes .'">'. $output .'</div></'. $container .'>'. $paging .'</'. self::$element .'>' : '';
|
211 |
}
|
212 |
|
213 |
-
|
214 |
-
|
215 |
/**
|
216 |
-
* set_offset
|
217 |
* This function will set the offset of the noscript query
|
218 |
*
|
219 |
-
* @since
|
220 |
-
* @param $paged
|
221 |
-
* @param $per_page
|
222 |
-
* @param $offset
|
223 |
-
* @return
|
224 |
*/
|
225 |
public static function set_offset($paged, $per_page, $offset){
|
226 |
return ($paged * $per_page) - $per_page + $offset;
|
227 |
-
|
228 |
|
229 |
}
|
230 |
|
20 |
|
21 |
|
22 |
/**
|
|
|
23 |
* This function will return a generated query for the noscript.
|
24 |
*
|
25 |
+
* @since 1.8
|
26 |
+
* @param array $q
|
27 |
+
* @param string $container
|
28 |
+
* @return HTMLElement
|
29 |
*/
|
30 |
public static function alm_get_noscript($q, $container = 'ul', $css_classes = '', $transition_container_classes = ''){
|
31 |
|
38 |
}
|
39 |
}
|
40 |
|
|
|
41 |
// Users
|
42 |
elseif($q['users']){
|
43 |
|
59 |
|
60 |
}
|
61 |
|
|
|
62 |
// Advanced Custom Fields (Repeater, Gallery, Flex Content
|
63 |
elseif($q['acf'] && ($q['acf_field_type'] !== 'relationship')){
|
64 |
if(has_action('alm_acf_installed') && $q['acf']){
|
73 |
}
|
74 |
}
|
75 |
|
|
|
76 |
// Standard ALM
|
77 |
else {
|
78 |
|
|
|
79 |
// Build the $args array to use with this WP_Query
|
80 |
$query_args = ALM_QUERY_ARGS::alm_build_queryargs($q, false);
|
81 |
|
|
|
82 |
/*
|
83 |
* alm_query_args_[id]
|
84 |
*
|
130 |
|
131 |
}
|
132 |
|
|
|
|
|
133 |
/**
|
134 |
+
* Create paging navigation.
|
|
|
135 |
*
|
|
|
|
|
136 |
* @since 2.8.3
|
137 |
+
* @param array $query The current query array.
|
138 |
+
* @return HTMLElement
|
139 |
*/
|
140 |
public static function build_noscript_paging($query){
|
141 |
|
185 |
|
186 |
}
|
187 |
|
|
|
|
|
188 |
/**
|
189 |
+
* This function will return the HTML output of the <noscript/>.
|
|
|
190 |
*
|
191 |
+
* @since 1.8
|
192 |
+
* @param string $output
|
193 |
+
* @param string $container
|
194 |
+
* @param string $paging
|
195 |
+
* @return HTMLElement
|
196 |
*/
|
197 |
+
public static function render( $output, $container, $paging, $css_classes, $transition_container_classes){
|
198 |
+
return ( ! empty( $output ) ) ? '<' . self::$element . '><' . $container . ' class="alm-listing alm-noscript' . $css_classes . '"><div class="alm-reveal' . $transition_container_classes . '">' . $output . '</div></' . $container . '>' . $paging . '</' . self::$element . '>' : '';
|
199 |
}
|
200 |
|
|
|
|
|
201 |
/**
|
|
|
202 |
* This function will set the offset of the noscript query
|
203 |
*
|
204 |
+
* @since 1.8
|
205 |
+
* @param string $paged
|
206 |
+
* @param string $per_page
|
207 |
+
* @param string $offset
|
208 |
+
* @return int
|
209 |
*/
|
210 |
public static function set_offset($paged, $per_page, $offset){
|
211 |
return ($paged * $per_page) - $per_page + $offset;
|
212 |
+
}
|
213 |
|
214 |
}
|
215 |
|
core/classes/class-alm-shortcode.php
CHANGED
@@ -117,6 +117,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
117 |
'nextpage_urls' => 'true',
|
118 |
'nextpage_scroll' => 'false:30',
|
119 |
'nextpage_pageviews' => 'true',
|
|
|
120 |
'nextpage_start' => 1,
|
121 |
'previous_post' => false,
|
122 |
'previous_post_id' => '',
|
@@ -131,6 +132,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
131 |
'single_post_excluded_terms' => '',
|
132 |
'single_post_progress_bar' => '',
|
133 |
'single_post_target' => '',
|
|
|
134 |
'cache' => 'false',
|
135 |
'cache_id' => '',
|
136 |
'paging' => 'false',
|
@@ -316,9 +318,18 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
316 |
wp_enqueue_script( 'ajax-load-more-progress' );
|
317 |
}
|
318 |
|
319 |
-
//
|
|
|
320 |
if ( has_action( 'alm_single_post_installed' ) && $single_post === 'true' ) {
|
321 |
-
wp_enqueue_script( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
}
|
323 |
|
324 |
// SEO.
|
@@ -513,7 +524,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
513 |
$alm_direction = (!empty($scroll_direction)) ? ' alm-'.$scroll_direction : '';
|
514 |
|
515 |
// Add Inline CSS.
|
516 |
-
$ajaxloadmore .= $inline_css . $inline_layouts_css . $inline_paging_css . $inline_tabs_css;
|
517 |
|
518 |
// Horizontal Scroll CSS.
|
519 |
if ( $scroll_direction === 'horizontal' && ! empty( $scroll_container ) ){
|
@@ -724,8 +735,6 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
724 |
$preloaded_amount = $posts_per_page;
|
725 |
}
|
726 |
|
727 |
-
|
728 |
-
|
729 |
// $query_args array to store global ALM variables.
|
730 |
$query_args = array(
|
731 |
'post_id' => $post_id,
|
@@ -896,7 +905,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
896 |
$nextpage_pageviews,
|
897 |
$nextpage_post_id,
|
898 |
$nextpage_scroll,
|
899 |
-
|
900 |
);
|
901 |
$ajaxloadmore .= $nextpage_return;
|
902 |
}
|
@@ -1016,7 +1025,8 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1016 |
$options,
|
1017 |
$single_post_target,
|
1018 |
$single_post_query_order,
|
1019 |
-
$query_args
|
|
|
1020 |
);
|
1021 |
$ajaxloadmore .= $single_post_return;
|
1022 |
}
|
@@ -1069,7 +1079,6 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1069 |
);
|
1070 |
|
1071 |
$elementor_page_link = apply_filters( 'alm_elementor_page_link', $elementor_params['paged'], $elementor_link_label);
|
1072 |
-
|
1073 |
$elementor_return = apply_filters( 'alm_elementor_params', $elementor_params );
|
1074 |
$ajaxloadmore .= ' data-elementor="posts"';
|
1075 |
$ajaxloadmore .= $elementor_return;
|
@@ -1085,8 +1094,8 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1085 |
|
1086 |
// Repeaters
|
1087 |
if(!$woo && $elementor !== 'posts'){
|
1088 |
-
$ajaxloadmore .= ($theme_repeater === 'null') ? ' data-repeater="'
|
1089 |
-
$ajaxloadmore .= ($theme_repeater !== 'null') ? ' data-theme-repeater="'
|
1090 |
}
|
1091 |
|
1092 |
// Post Type
|
@@ -1261,9 +1270,9 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1261 |
*
|
1262 |
* @return boolean;
|
1263 |
*/
|
1264 |
-
$nextpage_is_paged = apply_filters('alm_nextpage_paged', $nextpage_is_paged);
|
1265 |
|
1266 |
-
$alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start, $nextpage_is_paged, $paging, $div_id, $id);
|
1267 |
|
1268 |
$ajaxloadmore .= $alm_nextpage_output;
|
1269 |
|
@@ -1396,7 +1405,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1396 |
$btn_element = 'button';
|
1397 |
$btn_href = '';
|
1398 |
$btn_rel = ' rel="next"';
|
1399 |
-
$html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
|
1400 |
}
|
1401 |
$html .= '</div>';
|
1402 |
|
117 |
'nextpage_urls' => 'true',
|
118 |
'nextpage_scroll' => 'false:30',
|
119 |
'nextpage_pageviews' => 'true',
|
120 |
+
'nextpage_title_template' => '',
|
121 |
'nextpage_start' => 1,
|
122 |
'previous_post' => false,
|
123 |
'previous_post_id' => '',
|
132 |
'single_post_excluded_terms' => '',
|
133 |
'single_post_progress_bar' => '',
|
134 |
'single_post_target' => '',
|
135 |
+
'single_post_preview' => '',
|
136 |
'cache' => 'false',
|
137 |
'cache_id' => '',
|
138 |
'paging' => 'false',
|
318 |
wp_enqueue_script( 'ajax-load-more-progress' );
|
319 |
}
|
320 |
|
321 |
+
// Single Post.
|
322 |
+
$inline_single_posts_css = '';
|
323 |
if ( has_action( 'alm_single_post_installed' ) && $single_post === 'true' ) {
|
324 |
+
wp_enqueue_script( 'alm-single-posts' );
|
325 |
+
|
326 |
+
// Preview CSS.
|
327 |
+
if ( ! empty( $single_post_preview ) && $single_post_preview !== 'false' ) {
|
328 |
+
if ( ! is_admin() ) {
|
329 |
+
$file = ALM_PREV_POST_PATH . 'dist/css/ajax-load-more-single-posts.css';
|
330 |
+
$inline_single_posts_css = ALM_ENQUEUE::alm_inline_css( 'ajax-load-more-single-posts', $file, ALM_PREV_POST_URL );
|
331 |
+
}
|
332 |
+
}
|
333 |
}
|
334 |
|
335 |
// SEO.
|
524 |
$alm_direction = (!empty($scroll_direction)) ? ' alm-'.$scroll_direction : '';
|
525 |
|
526 |
// Add Inline CSS.
|
527 |
+
$ajaxloadmore .= $inline_css . $inline_layouts_css . $inline_paging_css . $inline_tabs_css . $inline_single_posts_css;
|
528 |
|
529 |
// Horizontal Scroll CSS.
|
530 |
if ( $scroll_direction === 'horizontal' && ! empty( $scroll_container ) ){
|
735 |
$preloaded_amount = $posts_per_page;
|
736 |
}
|
737 |
|
|
|
|
|
738 |
// $query_args array to store global ALM variables.
|
739 |
$query_args = array(
|
740 |
'post_id' => $post_id,
|
905 |
$nextpage_pageviews,
|
906 |
$nextpage_post_id,
|
907 |
$nextpage_scroll,
|
908 |
+
$nextpage_title_template
|
909 |
);
|
910 |
$ajaxloadmore .= $nextpage_return;
|
911 |
}
|
1025 |
$options,
|
1026 |
$single_post_target,
|
1027 |
$single_post_query_order,
|
1028 |
+
$query_args,
|
1029 |
+
$single_post_preview
|
1030 |
);
|
1031 |
$ajaxloadmore .= $single_post_return;
|
1032 |
}
|
1079 |
);
|
1080 |
|
1081 |
$elementor_page_link = apply_filters( 'alm_elementor_page_link', $elementor_params['paged'], $elementor_link_label);
|
|
|
1082 |
$elementor_return = apply_filters( 'alm_elementor_params', $elementor_params );
|
1083 |
$ajaxloadmore .= ' data-elementor="posts"';
|
1084 |
$ajaxloadmore .= $elementor_return;
|
1094 |
|
1095 |
// Repeaters
|
1096 |
if(!$woo && $elementor !== 'posts'){
|
1097 |
+
$ajaxloadmore .= ($theme_repeater === 'null') ? ' data-repeater="' . $repeater . '"' : '';
|
1098 |
+
$ajaxloadmore .= ($theme_repeater !== 'null') ? ' data-theme-repeater="' . $theme_repeater . '"' : '';
|
1099 |
}
|
1100 |
|
1101 |
// Post Type
|
1270 |
*
|
1271 |
* @return boolean;
|
1272 |
*/
|
1273 |
+
$nextpage_is_paged = apply_filters( 'alm_nextpage_paged', $nextpage_is_paged );
|
1274 |
|
1275 |
+
$alm_nextpage_output = apply_filters( 'alm_init_nextpage', $nextpage_post_id, $nextpage_start, $nextpage_is_paged, $paging, $div_id, $id, $nested );
|
1276 |
|
1277 |
$ajaxloadmore .= $alm_nextpage_output;
|
1278 |
|
1405 |
$btn_element = 'button';
|
1406 |
$btn_href = '';
|
1407 |
$btn_rel = ' rel="next"';
|
1408 |
+
$html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .' type="button">'. $button_label .'</'. $btn_element .'>';
|
1409 |
}
|
1410 |
$html .= '</div>';
|
1411 |
|
core/classes/includes/preloaded.php
CHANGED
@@ -299,6 +299,7 @@ else {
|
|
299 |
}
|
300 |
|
301 |
while ( $alm_preload_query->have_posts() ) :
|
|
|
302 |
$alm_preload_query->the_post();
|
303 |
|
304 |
$alm_item++;
|
@@ -306,7 +307,7 @@ else {
|
|
306 |
|
307 |
// Call to Action [Before].
|
308 |
if( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'before' ) {
|
309 |
-
$output .= ( $alm_current == $cta_val ) ? apply_filters( 'alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true ) : '';
|
310 |
}
|
311 |
|
312 |
// Repeater Template.
|
@@ -314,7 +315,7 @@ else {
|
|
314 |
|
315 |
// Call to Action [After].
|
316 |
if ( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'after' ) {
|
317 |
-
$output .= ( $alm_current == $cta_val ) ? apply_filters( 'alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true ) : '';
|
318 |
}
|
319 |
|
320 |
endwhile;
|
299 |
}
|
300 |
|
301 |
while ( $alm_preload_query->have_posts() ) :
|
302 |
+
|
303 |
$alm_preload_query->the_post();
|
304 |
|
305 |
$alm_item++;
|
307 |
|
308 |
// Call to Action [Before].
|
309 |
if( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'before' ) {
|
310 |
+
$output .= ( $alm_current == $cta_val ) ? apply_filters( 'alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true, $args ) : '';
|
311 |
}
|
312 |
|
313 |
// Repeater Template.
|
315 |
|
316 |
// Call to Action [After].
|
317 |
if ( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'after' ) {
|
318 |
+
$output .= ( $alm_current == $cta_val ) ? apply_filters( 'alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true, $args ) : '';
|
319 |
}
|
320 |
|
321 |
endwhile;
|
core/dist/js/ajax-load-more.js
CHANGED
@@ -1020,25 +1020,36 @@ function wooInit(alm) {
|
|
1020 |
}
|
1021 |
|
1022 |
// Set up URL and class parameters on first item in product listing
|
1023 |
-
var
|
1024 |
-
if (
|
1025 |
-
|
1026 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1027 |
|
1028 |
alm.listing.removeAttribute('aria-live');
|
1029 |
alm.listing.removeAttribute('aria-atomic');
|
1030 |
|
1031 |
-
var
|
1032 |
-
if (
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
|
|
|
|
1037 |
}
|
1038 |
|
1039 |
if (alm.addons.woocommerce_settings.paged > 1) {
|
1040 |
almWooCommerceResultsTextInit(alm);
|
1041 |
}
|
|
|
|
|
1042 |
}
|
1043 |
}
|
1044 |
|
@@ -1217,6 +1228,23 @@ function returnButton(text, link, label, seperator) {
|
|
1217 |
return text.innerHTML + button;
|
1218 |
}
|
1219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1220 |
/***/ }),
|
1221 |
|
1222 |
/***/ "./core/src/js/ajax-load-more.js":
|
@@ -1404,6 +1432,8 @@ __webpack_require__(/*! ./helpers/polyfills.js */ "./core/src/js/helpers/polyfil
|
|
1404 |
// External Modules
|
1405 |
var qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
|
1406 |
var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
|
|
|
|
|
1407 |
// Smooth scrolling polyfill
|
1408 |
_smoothscrollPolyfill2.default.polyfill();
|
1409 |
|
@@ -1564,6 +1594,7 @@ var alm_is_filtering = false;
|
|
1564 |
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
1565 |
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
1566 |
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
|
|
1567 |
}
|
1568 |
|
1569 |
// Single Posts add-on
|
@@ -1571,12 +1602,22 @@ var alm_is_filtering = false;
|
|
1571 |
if (alm.addons.single_post === 'true') {
|
1572 |
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
1573 |
alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
|
1574 |
-
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
1575 |
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
1576 |
-
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
1577 |
-
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
1578 |
-
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
|
1579 |
-
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1580 |
}
|
1581 |
|
1582 |
// Comments add-on
|
@@ -1792,6 +1833,7 @@ var alm_is_filtering = false;
|
|
1792 |
if (alm.addons.nextpage_startpage > 1) {
|
1793 |
alm.isPaged = true;
|
1794 |
}
|
|
|
1795 |
} else {
|
1796 |
alm.addons.nextpage = false;
|
1797 |
}
|
@@ -1803,11 +1845,6 @@ var alm_is_filtering = false;
|
|
1803 |
alm.addons.single_post_permalink = '';
|
1804 |
alm.addons.single_post_title = '';
|
1805 |
alm.addons.single_post_slug = '';
|
1806 |
-
alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
|
1807 |
-
alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
|
1808 |
-
alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
|
1809 |
-
alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
|
1810 |
-
alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
|
1811 |
alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
1812 |
alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
1813 |
alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
@@ -1968,11 +2005,10 @@ var alm_is_filtering = false;
|
|
1968 |
}
|
1969 |
|
1970 |
/**
|
1971 |
-
* LoadPosts()
|
1972 |
* The function to get posts via Ajax
|
|
|
1973 |
* @since 2.0.0
|
1974 |
*/
|
1975 |
-
|
1976 |
alm.AjaxLoadMore.loadPosts = function () {
|
1977 |
if (typeof almOnChange === 'function') {
|
1978 |
window.almOnChange(alm);
|
@@ -2014,13 +2050,12 @@ var alm_is_filtering = false;
|
|
2014 |
}
|
2015 |
};
|
2016 |
|
2017 |
-
|
2018 |
-
*
|
2019 |
*
|
2020 |
-
*
|
2021 |
-
*
|
2022 |
*/
|
2023 |
-
|
2024 |
alm.AjaxLoadMore.ajax = function (queryType) {
|
2025 |
// Default ALM action
|
2026 |
var action = 'alm_get_posts';
|
@@ -2063,7 +2098,8 @@ var alm_is_filtering = false;
|
|
2063 |
scroll: alm.addons.nextpage_scroll,
|
2064 |
pageviews: alm.addons.nextpage_pageviews,
|
2065 |
post_id: alm.addons.nextpage_post_id,
|
2066 |
-
startpage: alm.addons.nextpage_startpage
|
|
|
2067 |
};
|
2068 |
}
|
2069 |
|
@@ -2134,7 +2170,6 @@ var alm_is_filtering = false;
|
|
2134 |
};
|
2135 |
|
2136 |
/**
|
2137 |
-
* adminajax
|
2138 |
* Send request to the admin-ajax.php
|
2139 |
*
|
2140 |
* @param {*} alm | ALm object
|
@@ -2213,6 +2248,7 @@ var alm_is_filtering = false;
|
|
2213 |
// Next Page and Paging
|
2214 |
if (typeof almBuildPagination === 'function') {
|
2215 |
window.almBuildPagination(data.totalpages, alm);
|
|
|
2216 |
}
|
2217 |
} else if (queryType === 'totalposts' && alm.addons.paging) {
|
2218 |
// Paging
|
@@ -2227,8 +2263,7 @@ var alm_is_filtering = false;
|
|
2227 |
};
|
2228 |
|
2229 |
/**
|
2230 |
-
*
|
2231 |
-
* Send request to the WP REST API
|
2232 |
*
|
2233 |
* @param {*} alm | ALm object
|
2234 |
* @since 5.2.0
|
@@ -2280,7 +2315,6 @@ var alm_is_filtering = false;
|
|
2280 |
};
|
2281 |
|
2282 |
/**
|
2283 |
-
* restapi
|
2284 |
* Send request to the WP REST API
|
2285 |
*
|
2286 |
* @param {*} alm | ALm object
|
@@ -2350,11 +2384,10 @@ var alm_is_filtering = false;
|
|
2350 |
}
|
2351 |
|
2352 |
/**
|
2353 |
-
*
|
2354 |
-
* Success function after loading data
|
2355 |
*
|
2356 |
-
* @param data
|
2357 |
-
* @param is_cache Are results of the Ajax request coming from cache
|
2358 |
* @since 2.6.0
|
2359 |
*/
|
2360 |
alm.AjaxLoadMore.success = function (data, is_cache) {
|
@@ -2481,9 +2514,9 @@ var alm_is_filtering = false;
|
|
2481 |
// We have results!
|
2482 |
|
2483 |
if (!alm.addons.paging) {
|
|
|
2484 |
if (alm.addons.single_post) {
|
2485 |
-
|
2486 |
-
reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + alm.tcc);
|
2487 |
reveal.dataset.url = alm.addons.single_post_permalink;
|
2488 |
if (alm.addons.single_post_target) {
|
2489 |
reveal.dataset.page = parseInt(alm.page) + 1;
|
@@ -2493,6 +2526,12 @@ var alm_is_filtering = false;
|
|
2493 |
reveal.dataset.id = alm.addons.single_post_id;
|
2494 |
reveal.dataset.title = alm.addons.single_post_title;
|
2495 |
reveal.innerHTML = alm.html;
|
|
|
|
|
|
|
|
|
|
|
|
|
2496 |
} else {
|
2497 |
if (!alm.transition_container) {
|
2498 |
// No transition container
|
@@ -3127,7 +3166,7 @@ var alm_is_filtering = false;
|
|
3127 |
if (!reveal || !alm.transition_container) {
|
3128 |
return false; // Exit if not `transition_container`
|
3129 |
}
|
3130 |
-
var nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances
|
3131 |
if (nested) {
|
3132 |
nested.forEach(function (element) {
|
3133 |
window.almInit(element);
|
@@ -3151,10 +3190,9 @@ var alm_is_filtering = false;
|
|
3151 |
if (alm.fetchingPreviousPost) {
|
3152 |
return false;
|
3153 |
}
|
3154 |
-
|
3155 |
alm.fetchingPreviousPost = true;
|
3156 |
|
3157 |
-
// Get
|
3158 |
var ajaxURL = alm_localize.ajaxurl;
|
3159 |
|
3160 |
// Get data params
|
@@ -3203,19 +3241,19 @@ var alm_is_filtering = false;
|
|
3203 |
* @since 2.14.0
|
3204 |
*/
|
3205 |
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
3206 |
-
if (typeof almSetNextPage === 'function') {
|
3207 |
// Next Page
|
3208 |
window.almSetNextPage(alm);
|
3209 |
}
|
3210 |
-
if (typeof almSEO === 'function') {
|
3211 |
// SEO
|
3212 |
window.almSEO(alm, false);
|
3213 |
}
|
3214 |
-
if (typeof almWooCommerce === 'function') {
|
3215 |
// WooCommerce
|
3216 |
window.almWooCommerce(alm);
|
3217 |
}
|
3218 |
-
if (typeof almElementor === 'function') {
|
3219 |
// Elementor
|
3220 |
window.almElementor(alm);
|
3221 |
}
|
@@ -3639,7 +3677,7 @@ var alm_is_filtering = false;
|
|
3639 |
|
3640 |
if (nextpage_pages) {
|
3641 |
var nextpage_first = nextpage_pages[0];
|
3642 |
-
var nextpage_total =
|
3643 |
|
3644 |
// Disable if last page loaded
|
3645 |
if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
|
@@ -3661,7 +3699,6 @@ var alm_is_filtering = false;
|
|
3661 |
|
3662 |
// WooCommerce Add-on
|
3663 |
if (alm.addons.woocommerce) {
|
3664 |
-
// Initiate WooCommerce
|
3665 |
(0, _woocommerce.wooInit)(alm);
|
3666 |
|
3667 |
// Trigger `Done` if `paged is less than `pages`
|
@@ -3672,7 +3709,6 @@ var alm_is_filtering = false;
|
|
3672 |
|
3673 |
// Elementor Add-on
|
3674 |
if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
|
3675 |
-
// Initiate Elementor
|
3676 |
(0, _elementor.elementorInit)(alm);
|
3677 |
|
3678 |
// Trigger `Done` if `elementor_next_page_url` is empty
|
@@ -6774,7 +6810,9 @@ module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/li
|
|
6774 |
|
6775 |
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
6776 |
var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
|
|
|
6777 |
var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
|
|
|
6778 |
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
|
6779 |
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
6780 |
var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
|
@@ -6793,11 +6831,12 @@ module.exports = function xhrAdapter(config) {
|
|
6793 |
// HTTP basic authentication
|
6794 |
if (config.auth) {
|
6795 |
var username = config.auth.username || '';
|
6796 |
-
var password = config.auth.password
|
6797 |
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
|
6798 |
}
|
6799 |
|
6800 |
-
|
|
|
6801 |
|
6802 |
// Set the request timeout in MS
|
6803 |
request.timeout = config.timeout;
|
@@ -6834,6 +6873,18 @@ module.exports = function xhrAdapter(config) {
|
|
6834 |
request = null;
|
6835 |
};
|
6836 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6837 |
// Handle low level network errors
|
6838 |
request.onerror = function handleError() {
|
6839 |
// Real errors are hidden from us by the browser
|
@@ -6846,7 +6897,11 @@ module.exports = function xhrAdapter(config) {
|
|
6846 |
|
6847 |
// Handle timeout
|
6848 |
request.ontimeout = function handleTimeout() {
|
6849 |
-
|
|
|
|
|
|
|
|
|
6850 |
request));
|
6851 |
|
6852 |
// Clean up request
|
@@ -6857,12 +6912,10 @@ module.exports = function xhrAdapter(config) {
|
|
6857 |
// This is only done if running in a standard browser environment.
|
6858 |
// Specifically not if we're in a web worker, or react-native.
|
6859 |
if (utils.isStandardBrowserEnv()) {
|
6860 |
-
var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
|
6861 |
-
|
6862 |
// Add xsrf header
|
6863 |
-
var xsrfValue = (config.withCredentials || isURLSameOrigin(
|
6864 |
-
|
6865 |
-
|
6866 |
|
6867 |
if (xsrfValue) {
|
6868 |
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
@@ -6883,8 +6936,8 @@ module.exports = function xhrAdapter(config) {
|
|
6883 |
}
|
6884 |
|
6885 |
// Add withCredentials to request if needed
|
6886 |
-
if (config.withCredentials) {
|
6887 |
-
request.withCredentials =
|
6888 |
}
|
6889 |
|
6890 |
// Add responseType to request if needed
|
@@ -6924,7 +6977,7 @@ module.exports = function xhrAdapter(config) {
|
|
6924 |
});
|
6925 |
}
|
6926 |
|
6927 |
-
if (requestData
|
6928 |
requestData = null;
|
6929 |
}
|
6930 |
|
@@ -6949,6 +7002,7 @@ module.exports = function xhrAdapter(config) {
|
|
6949 |
var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
|
6950 |
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
6951 |
var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
|
|
|
6952 |
var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
|
6953 |
|
6954 |
/**
|
@@ -6978,7 +7032,7 @@ axios.Axios = Axios;
|
|
6978 |
|
6979 |
// Factory for creating new instances
|
6980 |
axios.create = function create(instanceConfig) {
|
6981 |
-
return createInstance(
|
6982 |
};
|
6983 |
|
6984 |
// Expose Cancel & CancelToken
|
@@ -6992,6 +7046,9 @@ axios.all = function all(promises) {
|
|
6992 |
};
|
6993 |
axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
|
6994 |
|
|
|
|
|
|
|
6995 |
module.exports = axios;
|
6996 |
|
6997 |
// Allow use of default import syntax in TypeScript
|
@@ -7127,10 +7184,11 @@ module.exports = function isCancel(value) {
|
|
7127 |
"use strict";
|
7128 |
|
7129 |
|
7130 |
-
var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js");
|
7131 |
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
|
|
7132 |
var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
|
7133 |
var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
|
|
|
7134 |
|
7135 |
/**
|
7136 |
* Create a new instance of Axios
|
@@ -7154,13 +7212,22 @@ Axios.prototype.request = function request(config) {
|
|
7154 |
/*eslint no-param-reassign:0*/
|
7155 |
// Allow for axios('example/url'[, config]) a la fetch API
|
7156 |
if (typeof config === 'string') {
|
7157 |
-
config =
|
7158 |
-
|
7159 |
-
|
|
|
7160 |
}
|
7161 |
|
7162 |
-
config =
|
7163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7164 |
|
7165 |
// Hook up interceptors middleware
|
7166 |
var chain = [dispatchRequest, undefined];
|
@@ -7181,13 +7248,19 @@ Axios.prototype.request = function request(config) {
|
|
7181 |
return promise;
|
7182 |
};
|
7183 |
|
|
|
|
|
|
|
|
|
|
|
7184 |
// Provide aliases for supported request methods
|
7185 |
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
7186 |
/*eslint func-names:0*/
|
7187 |
Axios.prototype[method] = function(url, config) {
|
7188 |
-
return this.request(
|
7189 |
method: method,
|
7190 |
-
url: url
|
|
|
7191 |
}));
|
7192 |
};
|
7193 |
});
|
@@ -7195,7 +7268,7 @@ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData
|
|
7195 |
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
7196 |
/*eslint func-names:0*/
|
7197 |
Axios.prototype[method] = function(url, data, config) {
|
7198 |
-
return this.request(
|
7199 |
method: method,
|
7200 |
url: url,
|
7201 |
data: data
|
@@ -7270,6 +7343,38 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
7270 |
module.exports = InterceptorManager;
|
7271 |
|
7272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7273 |
/***/ }),
|
7274 |
|
7275 |
/***/ "./node_modules/axios/lib/core/createError.js":
|
@@ -7316,8 +7421,6 @@ var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/util
|
|
7316 |
var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
|
7317 |
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
|
7318 |
var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
|
7319 |
-
var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
|
7320 |
-
var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
|
7321 |
|
7322 |
/**
|
7323 |
* Throws a `Cancel` if cancellation has been requested.
|
@@ -7337,11 +7440,6 @@ function throwIfCancellationRequested(config) {
|
|
7337 |
module.exports = function dispatchRequest(config) {
|
7338 |
throwIfCancellationRequested(config);
|
7339 |
|
7340 |
-
// Support baseURL config
|
7341 |
-
if (config.baseURL && !isAbsoluteURL(config.url)) {
|
7342 |
-
config.url = combineURLs(config.baseURL, config.url);
|
7343 |
-
}
|
7344 |
-
|
7345 |
// Ensure headers exist
|
7346 |
config.headers = config.headers || {};
|
7347 |
|
@@ -7356,7 +7454,7 @@ module.exports = function dispatchRequest(config) {
|
|
7356 |
config.headers = utils.merge(
|
7357 |
config.headers.common || {},
|
7358 |
config.headers[config.method] || {},
|
7359 |
-
config.headers
|
7360 |
);
|
7361 |
|
7362 |
utils.forEach(
|
@@ -7425,12 +7523,132 @@ module.exports = function enhanceError(error, config, code, request, response) {
|
|
7425 |
if (code) {
|
7426 |
error.code = code;
|
7427 |
}
|
|
|
7428 |
error.request = request;
|
7429 |
error.response = response;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7430 |
return error;
|
7431 |
};
|
7432 |
|
7433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7434 |
/***/ }),
|
7435 |
|
7436 |
/***/ "./node_modules/axios/lib/core/settle.js":
|
@@ -7454,7 +7672,6 @@ var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios
|
|
7454 |
*/
|
7455 |
module.exports = function settle(resolve, reject, response) {
|
7456 |
var validateStatus = response.config.validateStatus;
|
7457 |
-
// Note: status is not exposed by XDomainRequest
|
7458 |
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
7459 |
resolve(response);
|
7460 |
} else {
|
@@ -7531,7 +7748,7 @@ function getDefaultAdapter() {
|
|
7531 |
if (typeof XMLHttpRequest !== 'undefined') {
|
7532 |
// For browsers use XHR adapter
|
7533 |
adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
|
7534 |
-
} else if (typeof process !== 'undefined') {
|
7535 |
// For node use HTTP adapter
|
7536 |
adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
|
7537 |
}
|
@@ -7542,6 +7759,7 @@ var defaults = {
|
|
7542 |
adapter: getDefaultAdapter(),
|
7543 |
|
7544 |
transformRequest: [function transformRequest(data, headers) {
|
|
|
7545 |
normalizeHeaderName(headers, 'Content-Type');
|
7546 |
if (utils.isFormData(data) ||
|
7547 |
utils.isArrayBuffer(data) ||
|
@@ -7586,6 +7804,7 @@ var defaults = {
|
|
7586 |
xsrfHeaderName: 'X-XSRF-TOKEN',
|
7587 |
|
7588 |
maxContentLength: -1,
|
|
|
7589 |
|
7590 |
validateStatus: function validateStatus(status) {
|
7591 |
return status >= 200 && status < 300;
|
@@ -7649,7 +7868,6 @@ var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/util
|
|
7649 |
|
7650 |
function encode(val) {
|
7651 |
return encodeURIComponent(val).
|
7652 |
-
replace(/%40/gi, '@').
|
7653 |
replace(/%3A/gi, ':').
|
7654 |
replace(/%24/g, '$').
|
7655 |
replace(/%2C/gi, ',').
|
@@ -7704,6 +7922,11 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
|
7704 |
}
|
7705 |
|
7706 |
if (serializedParams) {
|
|
|
|
|
|
|
|
|
|
|
7707 |
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
7708 |
}
|
7709 |
|
@@ -7755,50 +7978,50 @@ module.exports = (
|
|
7755 |
utils.isStandardBrowserEnv() ?
|
7756 |
|
7757 |
// Standard browser envs support document.cookie
|
7758 |
-
|
7759 |
-
|
7760 |
-
|
7761 |
-
|
7762 |
-
|
7763 |
|
7764 |
-
|
7765 |
-
|
7766 |
-
|
7767 |
|
7768 |
-
|
7769 |
-
|
7770 |
-
|
7771 |
|
7772 |
-
|
7773 |
-
|
7774 |
-
|
7775 |
|
7776 |
-
|
7777 |
-
|
7778 |
-
|
7779 |
|
7780 |
-
|
7781 |
-
|
7782 |
|
7783 |
-
|
7784 |
-
|
7785 |
-
|
7786 |
-
|
7787 |
|
7788 |
-
|
7789 |
-
|
7790 |
-
|
7791 |
-
|
7792 |
-
|
7793 |
|
7794 |
// Non standard browser env (web workers, react-native) lack needed support.
|
7795 |
-
|
7796 |
-
|
7797 |
-
|
7798 |
-
|
7799 |
-
|
7800 |
-
|
7801 |
-
|
7802 |
);
|
7803 |
|
7804 |
|
@@ -7828,6 +8051,29 @@ module.exports = function isAbsoluteURL(url) {
|
|
7828 |
};
|
7829 |
|
7830 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7831 |
/***/ }),
|
7832 |
|
7833 |
/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
|
@@ -7847,64 +8093,64 @@ module.exports = (
|
|
7847 |
|
7848 |
// Standard browser envs have full support of the APIs needed to test
|
7849 |
// whether the request URL is of the same origin as current location.
|
7850 |
-
|
7851 |
-
|
7852 |
-
|
7853 |
-
|
7854 |
|
7855 |
-
|
7856 |
* Parse a URL to discover it's components
|
7857 |
*
|
7858 |
* @param {String} url The URL to be parsed
|
7859 |
* @returns {Object}
|
7860 |
*/
|
7861 |
-
|
7862 |
-
|
7863 |
|
7864 |
-
|
7865 |
// IE needs attribute set twice to normalize properties
|
7866 |
-
|
7867 |
-
|
7868 |
-
|
7869 |
|
7870 |
-
|
7871 |
|
7872 |
-
|
7873 |
-
|
7874 |
-
|
7875 |
-
|
7876 |
-
|
7877 |
-
|
7878 |
-
|
7879 |
-
|
7880 |
-
|
7881 |
-
|
7882 |
-
|
7883 |
-
|
7884 |
-
|
7885 |
-
|
7886 |
|
7887 |
-
|
7888 |
|
7889 |
-
|
7890 |
* Determine if a URL shares the same origin as the current location
|
7891 |
*
|
7892 |
* @param {String} requestURL The URL to test
|
7893 |
* @returns {boolean} True if URL shares the same origin, otherwise false
|
7894 |
*/
|
7895 |
-
|
7896 |
-
|
7897 |
-
|
7898 |
parsed.host === originURL.host);
|
7899 |
-
|
7900 |
-
|
7901 |
|
7902 |
// Non standard browser envs (web workers, react-native) lack needed support.
|
7903 |
-
|
7904 |
-
|
7905 |
-
|
7906 |
-
|
7907 |
-
|
7908 |
);
|
7909 |
|
7910 |
|
@@ -8049,7 +8295,6 @@ module.exports = function spread(callback) {
|
|
8049 |
|
8050 |
|
8051 |
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
8052 |
-
var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js");
|
8053 |
|
8054 |
/*global toString:true*/
|
8055 |
|
@@ -8067,6 +8312,27 @@ function isArray(val) {
|
|
8067 |
return toString.call(val) === '[object Array]';
|
8068 |
}
|
8069 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8070 |
/**
|
8071 |
* Determine if a value is an ArrayBuffer
|
8072 |
*
|
@@ -8124,23 +8390,28 @@ function isNumber(val) {
|
|
8124 |
}
|
8125 |
|
8126 |
/**
|
8127 |
-
* Determine if a value is
|
8128 |
*
|
8129 |
* @param {Object} val The value to test
|
8130 |
-
* @returns {boolean} True if
|
8131 |
*/
|
8132 |
-
function
|
8133 |
-
return typeof val === '
|
8134 |
}
|
8135 |
|
8136 |
/**
|
8137 |
-
* Determine if a value is
|
8138 |
*
|
8139 |
* @param {Object} val The value to test
|
8140 |
-
* @
|
8141 |
*/
|
8142 |
-
function
|
8143 |
-
|
|
|
|
|
|
|
|
|
|
|
8144 |
}
|
8145 |
|
8146 |
/**
|
@@ -8225,9 +8496,13 @@ function trim(str) {
|
|
8225 |
*
|
8226 |
* react-native:
|
8227 |
* navigator.product -> 'ReactNative'
|
|
|
|
|
8228 |
*/
|
8229 |
function isStandardBrowserEnv() {
|
8230 |
-
if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative'
|
|
|
|
|
8231 |
return false;
|
8232 |
}
|
8233 |
return (
|
@@ -8295,8 +8570,12 @@ function forEach(obj, fn) {
|
|
8295 |
function merge(/* obj1, obj2, obj3, ... */) {
|
8296 |
var result = {};
|
8297 |
function assignValue(val, key) {
|
8298 |
-
if (
|
8299 |
result[key] = merge(result[key], val);
|
|
|
|
|
|
|
|
|
8300 |
} else {
|
8301 |
result[key] = val;
|
8302 |
}
|
@@ -8327,6 +8606,19 @@ function extend(a, b, thisArg) {
|
|
8327 |
return a;
|
8328 |
}
|
8329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8330 |
module.exports = {
|
8331 |
isArray: isArray,
|
8332 |
isArrayBuffer: isArrayBuffer,
|
@@ -8336,6 +8628,7 @@ module.exports = {
|
|
8336 |
isString: isString,
|
8337 |
isNumber: isNumber,
|
8338 |
isObject: isObject,
|
|
|
8339 |
isUndefined: isUndefined,
|
8340 |
isDate: isDate,
|
8341 |
isFile: isFile,
|
@@ -8347,7 +8640,8 @@ module.exports = {
|
|
8347 |
forEach: forEach,
|
8348 |
merge: merge,
|
8349 |
extend: extend,
|
8350 |
-
trim: trim
|
|
|
8351 |
};
|
8352 |
|
8353 |
|
@@ -9431,7 +9725,7 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
9431 |
/*! no static exports found */
|
9432 |
/***/ (function(module, exports) {
|
9433 |
|
9434 |
-
var core = module.exports = { version: '2.6.
|
9435 |
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
9436 |
|
9437 |
|
@@ -11435,7 +11729,7 @@ var store = global[SHARED] || (global[SHARED] = {});
|
|
11435 |
})('versions', []).push({
|
11436 |
version: core.version,
|
11437 |
mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/modules/_library.js") ? 'pure' : 'global',
|
11438 |
-
copyright: '©
|
11439 |
});
|
11440 |
|
11441 |
|
@@ -17945,28 +18239,6 @@ return ImagesLoaded;
|
|
17945 |
});
|
17946 |
|
17947 |
|
17948 |
-
/***/ }),
|
17949 |
-
|
17950 |
-
/***/ "./node_modules/is-buffer/index.js":
|
17951 |
-
/*!*****************************************!*\
|
17952 |
-
!*** ./node_modules/is-buffer/index.js ***!
|
17953 |
-
\*****************************************/
|
17954 |
-
/*! no static exports found */
|
17955 |
-
/***/ (function(module, exports) {
|
17956 |
-
|
17957 |
-
/*!
|
17958 |
-
* Determine if an object is a Buffer
|
17959 |
-
*
|
17960 |
-
* @author Feross Aboukhadijeh <https://feross.org>
|
17961 |
-
* @license MIT
|
17962 |
-
*/
|
17963 |
-
|
17964 |
-
module.exports = function isBuffer (obj) {
|
17965 |
-
return obj != null && obj.constructor != null &&
|
17966 |
-
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
17967 |
-
}
|
17968 |
-
|
17969 |
-
|
17970 |
/***/ }),
|
17971 |
|
17972 |
/***/ "./node_modules/process/browser.js":
|
@@ -18177,27 +18449,24 @@ process.umask = function() { return 0; };
|
|
18177 |
var replace = String.prototype.replace;
|
18178 |
var percentTwenties = /%20/g;
|
18179 |
|
18180 |
-
var util = __webpack_require__(/*! ./utils */ "./node_modules/qs/lib/utils.js");
|
18181 |
-
|
18182 |
var Format = {
|
18183 |
RFC1738: 'RFC1738',
|
18184 |
RFC3986: 'RFC3986'
|
18185 |
};
|
18186 |
|
18187 |
-
module.exports =
|
18188 |
-
|
18189 |
-
|
18190 |
-
|
18191 |
-
|
18192 |
-
|
18193 |
-
|
18194 |
-
|
18195 |
-
return String(value);
|
18196 |
-
}
|
18197 |
}
|
18198 |
},
|
18199 |
-
Format
|
18200 |
-
|
|
|
18201 |
|
18202 |
|
18203 |
/***/ }),
|
@@ -18375,7 +18644,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
18375 |
}
|
18376 |
}
|
18377 |
|
18378 |
-
leaf = obj;
|
18379 |
}
|
18380 |
|
18381 |
return leaf;
|
@@ -18569,6 +18838,7 @@ var stringify = function stringify(
|
|
18569 |
sort,
|
18570 |
allowDots,
|
18571 |
serializeDate,
|
|
|
18572 |
formatter,
|
18573 |
encodeValuesOnly,
|
18574 |
charset
|
@@ -18584,12 +18854,12 @@ var stringify = function stringify(
|
|
18584 |
return serializeDate(value);
|
18585 |
}
|
18586 |
return value;
|
18587 |
-
})
|
18588 |
}
|
18589 |
|
18590 |
if (obj === null) {
|
18591 |
if (strictNullHandling) {
|
18592 |
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key') : prefix;
|
18593 |
}
|
18594 |
|
18595 |
obj = '';
|
@@ -18597,8 +18867,8 @@ var stringify = function stringify(
|
|
18597 |
|
18598 |
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
18599 |
if (encoder) {
|
18600 |
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key');
|
18601 |
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value'))];
|
18602 |
}
|
18603 |
return [formatter(prefix) + '=' + formatter(String(obj))];
|
18604 |
}
|
@@ -18610,7 +18880,10 @@ var stringify = function stringify(
|
|
18610 |
}
|
18611 |
|
18612 |
var objKeys;
|
18613 |
-
if (isArray(
|
|
|
|
|
|
|
18614 |
objKeys = filter;
|
18615 |
} else {
|
18616 |
var keys = Object.keys(obj);
|
@@ -18619,7 +18892,7 @@ var stringify = function stringify(
|
|
18619 |
|
18620 |
for (var i = 0; i < objKeys.length; ++i) {
|
18621 |
var key = objKeys[i];
|
18622 |
-
var value = obj[key];
|
18623 |
|
18624 |
if (skipNulls && value === null) {
|
18625 |
continue;
|
@@ -18640,6 +18913,7 @@ var stringify = function stringify(
|
|
18640 |
sort,
|
18641 |
allowDots,
|
18642 |
serializeDate,
|
|
|
18643 |
formatter,
|
18644 |
encodeValuesOnly,
|
18645 |
charset
|
@@ -18687,6 +18961,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
18687 |
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
18688 |
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
18689 |
filter: filter,
|
|
|
18690 |
formatter: formatter,
|
18691 |
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
18692 |
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
@@ -18752,6 +19027,7 @@ module.exports = function (object, opts) {
|
|
18752 |
options.sort,
|
18753 |
options.allowDots,
|
18754 |
options.serializeDate,
|
|
|
18755 |
options.formatter,
|
18756 |
options.encodeValuesOnly,
|
18757 |
options.charset
|
@@ -18787,6 +19063,8 @@ module.exports = function (object, opts) {
|
|
18787 |
"use strict";
|
18788 |
|
18789 |
|
|
|
|
|
18790 |
var has = Object.prototype.hasOwnProperty;
|
18791 |
var isArray = Array.isArray;
|
18792 |
|
@@ -18907,7 +19185,7 @@ var decode = function (str, decoder, charset) {
|
|
18907 |
}
|
18908 |
};
|
18909 |
|
18910 |
-
var encode = function encode(str, defaultEncoder, charset) {
|
18911 |
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
18912 |
// It has been adapted here for stricter adherence to RFC 3986
|
18913 |
if (str.length === 0) {
|
@@ -18939,6 +19217,7 @@ var encode = function encode(str, defaultEncoder, charset) {
|
|
18939 |
|| (c >= 0x30 && c <= 0x39) // 0-9
|
18940 |
|| (c >= 0x41 && c <= 0x5A) // a-z
|
18941 |
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
|
18942 |
) {
|
18943 |
out += string.charAt(i);
|
18944 |
continue;
|
1020 |
}
|
1021 |
|
1022 |
// Set up URL and class parameters on first item in product listing
|
1023 |
+
var container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
|
1024 |
+
if (container) {
|
1025 |
+
var count = getContainerCount(alm.addons.woocommerce_settings.container);
|
1026 |
+
|
1027 |
+
if (count > 1) {
|
1028 |
+
// Display warning if multiple containers were found.
|
1029 |
+
console.warn('ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/');
|
1030 |
+
}
|
1031 |
+
|
1032 |
+
container.setAttribute('aria-live', 'polite');
|
1033 |
+
container.setAttribute('aria-atomic', 'true');
|
1034 |
|
1035 |
alm.listing.removeAttribute('aria-live');
|
1036 |
alm.listing.removeAttribute('aria-atomic');
|
1037 |
|
1038 |
+
var products = container.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
|
1039 |
+
if (products) {
|
1040 |
+
products.classList.add('alm-woocommerce');
|
1041 |
+
products.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
|
1042 |
+
products.dataset.page = alm.page;
|
1043 |
+
products.dataset.pageTitle = document.title;
|
1044 |
+
} else {
|
1045 |
+
console.warn('ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products');
|
1046 |
}
|
1047 |
|
1048 |
if (alm.addons.woocommerce_settings.paged > 1) {
|
1049 |
almWooCommerceResultsTextInit(alm);
|
1050 |
}
|
1051 |
+
} else {
|
1052 |
+
console.warn('ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container');
|
1053 |
}
|
1054 |
}
|
1055 |
|
1228 |
return text.innerHTML + button;
|
1229 |
}
|
1230 |
|
1231 |
+
/**
|
1232 |
+
* Get total count of WooCommerce containers
|
1233 |
+
*
|
1234 |
+
* @param {*} container
|
1235 |
+
*/
|
1236 |
+
function getContainerCount(container) {
|
1237 |
+
if (!container) {
|
1238 |
+
return 0;
|
1239 |
+
}
|
1240 |
+
var containers = document.querySelectorAll(container); // Get all containers.
|
1241 |
+
if (containers) {
|
1242 |
+
return containers.length;
|
1243 |
+
} else {
|
1244 |
+
return 0;
|
1245 |
+
}
|
1246 |
+
}
|
1247 |
+
|
1248 |
/***/ }),
|
1249 |
|
1250 |
/***/ "./core/src/js/ajax-load-more.js":
|
1432 |
// External Modules
|
1433 |
var qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
|
1434 |
var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
|
1435 |
+
|
1436 |
+
_axios2.default.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
1437 |
// Smooth scrolling polyfill
|
1438 |
_smoothscrollPolyfill2.default.polyfill();
|
1439 |
|
1594 |
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
1595 |
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
1596 |
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
1597 |
+
alm.addons.nextpage_title_template = alm.listing.dataset.nextpageTitleTemplate;
|
1598 |
}
|
1599 |
|
1600 |
// Single Posts add-on
|
1602 |
if (alm.addons.single_post === 'true') {
|
1603 |
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
1604 |
alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
|
1605 |
+
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder === undefined ? 'previous' : alm.listing.dataset.singlePostOrder;
|
1606 |
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
1607 |
+
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy === undefined ? '' : alm.listing.dataset.singlePostTaxonomy;
|
1608 |
+
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms === undefined ? '' : alm.listing.dataset.singlePostExcludedTerms;
|
1609 |
+
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar === undefined ? '' : alm.listing.dataset.singlePostProgressBar;
|
1610 |
+
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget === undefined ? '' : alm.listing.dataset.singlePostTarget;
|
1611 |
+
alm.addons.single_post_preview = alm.listing.dataset.singlePostPreview === undefined ? false : true;
|
1612 |
+
if (alm.addons.single_post_preview) {
|
1613 |
+
var singlePostPreviewData = alm.listing.dataset.singlePostPreview.split(':');
|
1614 |
+
alm.addons.single_post_preview_data = {
|
1615 |
+
button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading',
|
1616 |
+
height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500,
|
1617 |
+
element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default',
|
1618 |
+
className: 'alm-single-post--preview'
|
1619 |
+
};
|
1620 |
+
}
|
1621 |
}
|
1622 |
|
1623 |
// Comments add-on
|
1833 |
if (alm.addons.nextpage_startpage > 1) {
|
1834 |
alm.isPaged = true;
|
1835 |
}
|
1836 |
+
alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;
|
1837 |
} else {
|
1838 |
alm.addons.nextpage = false;
|
1839 |
}
|
1845 |
alm.addons.single_post_permalink = '';
|
1846 |
alm.addons.single_post_title = '';
|
1847 |
alm.addons.single_post_slug = '';
|
|
|
|
|
|
|
|
|
|
|
1848 |
alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
1849 |
alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
1850 |
alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
2005 |
}
|
2006 |
|
2007 |
/**
|
|
|
2008 |
* The function to get posts via Ajax
|
2009 |
+
*
|
2010 |
* @since 2.0.0
|
2011 |
*/
|
|
|
2012 |
alm.AjaxLoadMore.loadPosts = function () {
|
2013 |
if (typeof almOnChange === 'function') {
|
2014 |
window.almOnChange(alm);
|
2050 |
}
|
2051 |
};
|
2052 |
|
2053 |
+
/**
|
2054 |
+
* Ajax Load Moe Ajax function
|
2055 |
*
|
2056 |
+
* @param {string} queryType The type of Ajax request (standard/totalposts).
|
2057 |
+
* @since 2.6.0
|
2058 |
*/
|
|
|
2059 |
alm.AjaxLoadMore.ajax = function (queryType) {
|
2060 |
// Default ALM action
|
2061 |
var action = 'alm_get_posts';
|
2098 |
scroll: alm.addons.nextpage_scroll,
|
2099 |
pageviews: alm.addons.nextpage_pageviews,
|
2100 |
post_id: alm.addons.nextpage_post_id,
|
2101 |
+
startpage: alm.addons.nextpage_startpage,
|
2102 |
+
nested: alm.nested
|
2103 |
};
|
2104 |
}
|
2105 |
|
2170 |
};
|
2171 |
|
2172 |
/**
|
|
|
2173 |
* Send request to the admin-ajax.php
|
2174 |
*
|
2175 |
* @param {*} alm | ALm object
|
2248 |
// Next Page and Paging
|
2249 |
if (typeof almBuildPagination === 'function') {
|
2250 |
window.almBuildPagination(data.totalpages, alm);
|
2251 |
+
alm.totalpages = data.totalpages;
|
2252 |
}
|
2253 |
} else if (queryType === 'totalposts' && alm.addons.paging) {
|
2254 |
// Paging
|
2263 |
};
|
2264 |
|
2265 |
/**
|
2266 |
+
* Send request to the WP REST API.
|
|
|
2267 |
*
|
2268 |
* @param {*} alm | ALm object
|
2269 |
* @since 5.2.0
|
2315 |
};
|
2316 |
|
2317 |
/**
|
|
|
2318 |
* Send request to the WP REST API
|
2319 |
*
|
2320 |
* @param {*} alm | ALm object
|
2384 |
}
|
2385 |
|
2386 |
/**
|
2387 |
+
* Success function after loading data.
|
|
|
2388 |
*
|
2389 |
+
* @param {object} data The results of the Ajax request
|
2390 |
+
* @param {boolean} is_cache Are results of the Ajax request coming from cache
|
2391 |
* @since 2.6.0
|
2392 |
*/
|
2393 |
alm.AjaxLoadMore.success = function (data, is_cache) {
|
2514 |
// We have results!
|
2515 |
|
2516 |
if (!alm.addons.paging) {
|
2517 |
+
// Single Posts.
|
2518 |
if (alm.addons.single_post) {
|
2519 |
+
reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + (alm.tcc ? ' ' + alm.tcc : ''));
|
|
|
2520 |
reveal.dataset.url = alm.addons.single_post_permalink;
|
2521 |
if (alm.addons.single_post_target) {
|
2522 |
reveal.dataset.page = parseInt(alm.page) + 1;
|
2526 |
reveal.dataset.id = alm.addons.single_post_id;
|
2527 |
reveal.dataset.title = alm.addons.single_post_title;
|
2528 |
reveal.innerHTML = alm.html;
|
2529 |
+
|
2530 |
+
// Single Post Preview
|
2531 |
+
if (alm.addons.single_post_preview && alm.addons.single_post_preview_data && typeof almSinglePostCreatePreview === 'function') {
|
2532 |
+
var singlePreview = window.almSinglePostCreatePreview(reveal, alm.addons.single_post_id, alm.addons.single_post_preview_data);
|
2533 |
+
reveal.replaceChildren(singlePreview ? singlePreview : reveal);
|
2534 |
+
}
|
2535 |
} else {
|
2536 |
if (!alm.transition_container) {
|
2537 |
// No transition container
|
3166 |
if (!reveal || !alm.transition_container) {
|
3167 |
return false; // Exit if not `transition_container`
|
3168 |
}
|
3169 |
+
var nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances
|
3170 |
if (nested) {
|
3171 |
nested.forEach(function (element) {
|
3172 |
window.almInit(element);
|
3190 |
if (alm.fetchingPreviousPost) {
|
3191 |
return false;
|
3192 |
}
|
|
|
3193 |
alm.fetchingPreviousPost = true;
|
3194 |
|
3195 |
+
// Get Ajax URL.
|
3196 |
var ajaxURL = alm_localize.ajaxurl;
|
3197 |
|
3198 |
// Get data params
|
3241 |
* @since 2.14.0
|
3242 |
*/
|
3243 |
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
3244 |
+
if (typeof almSetNextPage === 'function' && alm.addons.nextpage) {
|
3245 |
// Next Page
|
3246 |
window.almSetNextPage(alm);
|
3247 |
}
|
3248 |
+
if (typeof almSEO === 'function' && alm.addons.seo) {
|
3249 |
// SEO
|
3250 |
window.almSEO(alm, false);
|
3251 |
}
|
3252 |
+
if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) {
|
3253 |
// WooCommerce
|
3254 |
window.almWooCommerce(alm);
|
3255 |
}
|
3256 |
+
if (typeof almElementor === 'function' && alm.addons.elementor) {
|
3257 |
// Elementor
|
3258 |
window.almElementor(alm);
|
3259 |
}
|
3677 |
|
3678 |
if (nextpage_pages) {
|
3679 |
var nextpage_first = nextpage_pages[0];
|
3680 |
+
var nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : alm.localize.total_posts;
|
3681 |
|
3682 |
// Disable if last page loaded
|
3683 |
if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
|
3699 |
|
3700 |
// WooCommerce Add-on
|
3701 |
if (alm.addons.woocommerce) {
|
|
|
3702 |
(0, _woocommerce.wooInit)(alm);
|
3703 |
|
3704 |
// Trigger `Done` if `paged is less than `pages`
|
3709 |
|
3710 |
// Elementor Add-on
|
3711 |
if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
|
|
|
3712 |
(0, _elementor.elementorInit)(alm);
|
3713 |
|
3714 |
// Trigger `Done` if `elementor_next_page_url` is empty
|
6810 |
|
6811 |
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
6812 |
var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
|
6813 |
+
var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
|
6814 |
var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
|
6815 |
+
var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
|
6816 |
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
|
6817 |
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
6818 |
var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
|
6831 |
// HTTP basic authentication
|
6832 |
if (config.auth) {
|
6833 |
var username = config.auth.username || '';
|
6834 |
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
6835 |
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
|
6836 |
}
|
6837 |
|
6838 |
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
6839 |
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
6840 |
|
6841 |
// Set the request timeout in MS
|
6842 |
request.timeout = config.timeout;
|
6873 |
request = null;
|
6874 |
};
|
6875 |
|
6876 |
+
// Handle browser request cancellation (as opposed to a manual cancellation)
|
6877 |
+
request.onabort = function handleAbort() {
|
6878 |
+
if (!request) {
|
6879 |
+
return;
|
6880 |
+
}
|
6881 |
+
|
6882 |
+
reject(createError('Request aborted', config, 'ECONNABORTED', request));
|
6883 |
+
|
6884 |
+
// Clean up request
|
6885 |
+
request = null;
|
6886 |
+
};
|
6887 |
+
|
6888 |
// Handle low level network errors
|
6889 |
request.onerror = function handleError() {
|
6890 |
// Real errors are hidden from us by the browser
|
6897 |
|
6898 |
// Handle timeout
|
6899 |
request.ontimeout = function handleTimeout() {
|
6900 |
+
var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
|
6901 |
+
if (config.timeoutErrorMessage) {
|
6902 |
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
6903 |
+
}
|
6904 |
+
reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
|
6905 |
request));
|
6906 |
|
6907 |
// Clean up request
|
6912 |
// This is only done if running in a standard browser environment.
|
6913 |
// Specifically not if we're in a web worker, or react-native.
|
6914 |
if (utils.isStandardBrowserEnv()) {
|
|
|
|
|
6915 |
// Add xsrf header
|
6916 |
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
|
6917 |
+
cookies.read(config.xsrfCookieName) :
|
6918 |
+
undefined;
|
6919 |
|
6920 |
if (xsrfValue) {
|
6921 |
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
6936 |
}
|
6937 |
|
6938 |
// Add withCredentials to request if needed
|
6939 |
+
if (!utils.isUndefined(config.withCredentials)) {
|
6940 |
+
request.withCredentials = !!config.withCredentials;
|
6941 |
}
|
6942 |
|
6943 |
// Add responseType to request if needed
|
6977 |
});
|
6978 |
}
|
6979 |
|
6980 |
+
if (!requestData) {
|
6981 |
requestData = null;
|
6982 |
}
|
6983 |
|
7002 |
var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
|
7003 |
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
7004 |
var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
|
7005 |
+
var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
|
7006 |
var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
|
7007 |
|
7008 |
/**
|
7032 |
|
7033 |
// Factory for creating new instances
|
7034 |
axios.create = function create(instanceConfig) {
|
7035 |
+
return createInstance(mergeConfig(axios.defaults, instanceConfig));
|
7036 |
};
|
7037 |
|
7038 |
// Expose Cancel & CancelToken
|
7046 |
};
|
7047 |
axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
|
7048 |
|
7049 |
+
// Expose isAxiosError
|
7050 |
+
axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js");
|
7051 |
+
|
7052 |
module.exports = axios;
|
7053 |
|
7054 |
// Allow use of default import syntax in TypeScript
|
7184 |
"use strict";
|
7185 |
|
7186 |
|
|
|
7187 |
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
7188 |
+
var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
|
7189 |
var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
|
7190 |
var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
|
7191 |
+
var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
|
7192 |
|
7193 |
/**
|
7194 |
* Create a new instance of Axios
|
7212 |
/*eslint no-param-reassign:0*/
|
7213 |
// Allow for axios('example/url'[, config]) a la fetch API
|
7214 |
if (typeof config === 'string') {
|
7215 |
+
config = arguments[1] || {};
|
7216 |
+
config.url = arguments[0];
|
7217 |
+
} else {
|
7218 |
+
config = config || {};
|
7219 |
}
|
7220 |
|
7221 |
+
config = mergeConfig(this.defaults, config);
|
7222 |
+
|
7223 |
+
// Set config.method
|
7224 |
+
if (config.method) {
|
7225 |
+
config.method = config.method.toLowerCase();
|
7226 |
+
} else if (this.defaults.method) {
|
7227 |
+
config.method = this.defaults.method.toLowerCase();
|
7228 |
+
} else {
|
7229 |
+
config.method = 'get';
|
7230 |
+
}
|
7231 |
|
7232 |
// Hook up interceptors middleware
|
7233 |
var chain = [dispatchRequest, undefined];
|
7248 |
return promise;
|
7249 |
};
|
7250 |
|
7251 |
+
Axios.prototype.getUri = function getUri(config) {
|
7252 |
+
config = mergeConfig(this.defaults, config);
|
7253 |
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
|
7254 |
+
};
|
7255 |
+
|
7256 |
// Provide aliases for supported request methods
|
7257 |
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
7258 |
/*eslint func-names:0*/
|
7259 |
Axios.prototype[method] = function(url, config) {
|
7260 |
+
return this.request(mergeConfig(config || {}, {
|
7261 |
method: method,
|
7262 |
+
url: url,
|
7263 |
+
data: (config || {}).data
|
7264 |
}));
|
7265 |
};
|
7266 |
});
|
7268 |
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
7269 |
/*eslint func-names:0*/
|
7270 |
Axios.prototype[method] = function(url, data, config) {
|
7271 |
+
return this.request(mergeConfig(config || {}, {
|
7272 |
method: method,
|
7273 |
url: url,
|
7274 |
data: data
|
7343 |
module.exports = InterceptorManager;
|
7344 |
|
7345 |
|
7346 |
+
/***/ }),
|
7347 |
+
|
7348 |
+
/***/ "./node_modules/axios/lib/core/buildFullPath.js":
|
7349 |
+
/*!******************************************************!*\
|
7350 |
+
!*** ./node_modules/axios/lib/core/buildFullPath.js ***!
|
7351 |
+
\******************************************************/
|
7352 |
+
/*! no static exports found */
|
7353 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7354 |
+
|
7355 |
+
"use strict";
|
7356 |
+
|
7357 |
+
|
7358 |
+
var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
|
7359 |
+
var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
|
7360 |
+
|
7361 |
+
/**
|
7362 |
+
* Creates a new URL by combining the baseURL with the requestedURL,
|
7363 |
+
* only when the requestedURL is not already an absolute URL.
|
7364 |
+
* If the requestURL is absolute, this function returns the requestedURL untouched.
|
7365 |
+
*
|
7366 |
+
* @param {string} baseURL The base URL
|
7367 |
+
* @param {string} requestedURL Absolute or relative URL to combine
|
7368 |
+
* @returns {string} The combined full path
|
7369 |
+
*/
|
7370 |
+
module.exports = function buildFullPath(baseURL, requestedURL) {
|
7371 |
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
7372 |
+
return combineURLs(baseURL, requestedURL);
|
7373 |
+
}
|
7374 |
+
return requestedURL;
|
7375 |
+
};
|
7376 |
+
|
7377 |
+
|
7378 |
/***/ }),
|
7379 |
|
7380 |
/***/ "./node_modules/axios/lib/core/createError.js":
|
7421 |
var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
|
7422 |
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
|
7423 |
var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
|
|
|
|
|
7424 |
|
7425 |
/**
|
7426 |
* Throws a `Cancel` if cancellation has been requested.
|
7440 |
module.exports = function dispatchRequest(config) {
|
7441 |
throwIfCancellationRequested(config);
|
7442 |
|
|
|
|
|
|
|
|
|
|
|
7443 |
// Ensure headers exist
|
7444 |
config.headers = config.headers || {};
|
7445 |
|
7454 |
config.headers = utils.merge(
|
7455 |
config.headers.common || {},
|
7456 |
config.headers[config.method] || {},
|
7457 |
+
config.headers
|
7458 |
);
|
7459 |
|
7460 |
utils.forEach(
|
7523 |
if (code) {
|
7524 |
error.code = code;
|
7525 |
}
|
7526 |
+
|
7527 |
error.request = request;
|
7528 |
error.response = response;
|
7529 |
+
error.isAxiosError = true;
|
7530 |
+
|
7531 |
+
error.toJSON = function toJSON() {
|
7532 |
+
return {
|
7533 |
+
// Standard
|
7534 |
+
message: this.message,
|
7535 |
+
name: this.name,
|
7536 |
+
// Microsoft
|
7537 |
+
description: this.description,
|
7538 |
+
number: this.number,
|
7539 |
+
// Mozilla
|
7540 |
+
fileName: this.fileName,
|
7541 |
+
lineNumber: this.lineNumber,
|
7542 |
+
columnNumber: this.columnNumber,
|
7543 |
+
stack: this.stack,
|
7544 |
+
// Axios
|
7545 |
+
config: this.config,
|
7546 |
+
code: this.code
|
7547 |
+
};
|
7548 |
+
};
|
7549 |
return error;
|
7550 |
};
|
7551 |
|
7552 |
|
7553 |
+
/***/ }),
|
7554 |
+
|
7555 |
+
/***/ "./node_modules/axios/lib/core/mergeConfig.js":
|
7556 |
+
/*!****************************************************!*\
|
7557 |
+
!*** ./node_modules/axios/lib/core/mergeConfig.js ***!
|
7558 |
+
\****************************************************/
|
7559 |
+
/*! no static exports found */
|
7560 |
+
/***/ (function(module, exports, __webpack_require__) {
|
7561 |
+
|
7562 |
+
"use strict";
|
7563 |
+
|
7564 |
+
|
7565 |
+
var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
|
7566 |
+
|
7567 |
+
/**
|
7568 |
+
* Config-specific merge-function which creates a new config-object
|
7569 |
+
* by merging two configuration objects together.
|
7570 |
+
*
|
7571 |
+
* @param {Object} config1
|
7572 |
+
* @param {Object} config2
|
7573 |
+
* @returns {Object} New object resulting from merging config2 to config1
|
7574 |
+
*/
|
7575 |
+
module.exports = function mergeConfig(config1, config2) {
|
7576 |
+
// eslint-disable-next-line no-param-reassign
|
7577 |
+
config2 = config2 || {};
|
7578 |
+
var config = {};
|
7579 |
+
|
7580 |
+
var valueFromConfig2Keys = ['url', 'method', 'data'];
|
7581 |
+
var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
|
7582 |
+
var defaultToConfig2Keys = [
|
7583 |
+
'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
|
7584 |
+
'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
|
7585 |
+
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
|
7586 |
+
'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
|
7587 |
+
'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
|
7588 |
+
];
|
7589 |
+
var directMergeKeys = ['validateStatus'];
|
7590 |
+
|
7591 |
+
function getMergedValue(target, source) {
|
7592 |
+
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
7593 |
+
return utils.merge(target, source);
|
7594 |
+
} else if (utils.isPlainObject(source)) {
|
7595 |
+
return utils.merge({}, source);
|
7596 |
+
} else if (utils.isArray(source)) {
|
7597 |
+
return source.slice();
|
7598 |
+
}
|
7599 |
+
return source;
|
7600 |
+
}
|
7601 |
+
|
7602 |
+
function mergeDeepProperties(prop) {
|
7603 |
+
if (!utils.isUndefined(config2[prop])) {
|
7604 |
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
7605 |
+
} else if (!utils.isUndefined(config1[prop])) {
|
7606 |
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
7607 |
+
}
|
7608 |
+
}
|
7609 |
+
|
7610 |
+
utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
7611 |
+
if (!utils.isUndefined(config2[prop])) {
|
7612 |
+
config[prop] = getMergedValue(undefined, config2[prop]);
|
7613 |
+
}
|
7614 |
+
});
|
7615 |
+
|
7616 |
+
utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
7617 |
+
|
7618 |
+
utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
7619 |
+
if (!utils.isUndefined(config2[prop])) {
|
7620 |
+
config[prop] = getMergedValue(undefined, config2[prop]);
|
7621 |
+
} else if (!utils.isUndefined(config1[prop])) {
|
7622 |
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
7623 |
+
}
|
7624 |
+
});
|
7625 |
+
|
7626 |
+
utils.forEach(directMergeKeys, function merge(prop) {
|
7627 |
+
if (prop in config2) {
|
7628 |
+
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
7629 |
+
} else if (prop in config1) {
|
7630 |
+
config[prop] = getMergedValue(undefined, config1[prop]);
|
7631 |
+
}
|
7632 |
+
});
|
7633 |
+
|
7634 |
+
var axiosKeys = valueFromConfig2Keys
|
7635 |
+
.concat(mergeDeepPropertiesKeys)
|
7636 |
+
.concat(defaultToConfig2Keys)
|
7637 |
+
.concat(directMergeKeys);
|
7638 |
+
|
7639 |
+
var otherKeys = Object
|
7640 |
+
.keys(config1)
|
7641 |
+
.concat(Object.keys(config2))
|
7642 |
+
.filter(function filterAxiosKeys(key) {
|
7643 |
+
return axiosKeys.indexOf(key) === -1;
|
7644 |
+
});
|
7645 |
+
|
7646 |
+
utils.forEach(otherKeys, mergeDeepProperties);
|
7647 |
+
|
7648 |
+
return config;
|
7649 |
+
};
|
7650 |
+
|
7651 |
+
|
7652 |
/***/ }),
|
7653 |
|
7654 |
/***/ "./node_modules/axios/lib/core/settle.js":
|
7672 |
*/
|
7673 |
module.exports = function settle(resolve, reject, response) {
|
7674 |
var validateStatus = response.config.validateStatus;
|
|
|
7675 |
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
7676 |
resolve(response);
|
7677 |
} else {
|
7748 |
if (typeof XMLHttpRequest !== 'undefined') {
|
7749 |
// For browsers use XHR adapter
|
7750 |
adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
|
7751 |
+
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
7752 |
// For node use HTTP adapter
|
7753 |
adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
|
7754 |
}
|
7759 |
adapter: getDefaultAdapter(),
|
7760 |
|
7761 |
transformRequest: [function transformRequest(data, headers) {
|
7762 |
+
normalizeHeaderName(headers, 'Accept');
|
7763 |
normalizeHeaderName(headers, 'Content-Type');
|
7764 |
if (utils.isFormData(data) ||
|
7765 |
utils.isArrayBuffer(data) ||
|
7804 |
xsrfHeaderName: 'X-XSRF-TOKEN',
|
7805 |
|
7806 |
maxContentLength: -1,
|
7807 |
+
maxBodyLength: -1,
|
7808 |
|
7809 |
validateStatus: function validateStatus(status) {
|
7810 |
return status >= 200 && status < 300;
|
7868 |
|
7869 |
function encode(val) {
|
7870 |
return encodeURIComponent(val).
|
|
|
7871 |
replace(/%3A/gi, ':').
|
7872 |
replace(/%24/g, '$').
|
7873 |
replace(/%2C/gi, ',').
|
7922 |
}
|
7923 |
|
7924 |
if (serializedParams) {
|
7925 |
+
var hashmarkIndex = url.indexOf('#');
|
7926 |
+
if (hashmarkIndex !== -1) {
|
7927 |
+
url = url.slice(0, hashmarkIndex);
|
7928 |
+
}
|
7929 |
+
|
7930 |
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
7931 |
}
|
7932 |
|
7978 |
utils.isStandardBrowserEnv() ?
|
7979 |
|
7980 |
// Standard browser envs support document.cookie
|
7981 |
+
(function standardBrowserEnv() {
|
7982 |
+
return {
|
7983 |
+
write: function write(name, value, expires, path, domain, secure) {
|
7984 |
+
var cookie = [];
|
7985 |
+
cookie.push(name + '=' + encodeURIComponent(value));
|
7986 |
|
7987 |
+
if (utils.isNumber(expires)) {
|
7988 |
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
7989 |
+
}
|
7990 |
|
7991 |
+
if (utils.isString(path)) {
|
7992 |
+
cookie.push('path=' + path);
|
7993 |
+
}
|
7994 |
|
7995 |
+
if (utils.isString(domain)) {
|
7996 |
+
cookie.push('domain=' + domain);
|
7997 |
+
}
|
7998 |
|
7999 |
+
if (secure === true) {
|
8000 |
+
cookie.push('secure');
|
8001 |
+
}
|
8002 |
|
8003 |
+
document.cookie = cookie.join('; ');
|
8004 |
+
},
|
8005 |
|
8006 |
+
read: function read(name) {
|
8007 |
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
8008 |
+
return (match ? decodeURIComponent(match[3]) : null);
|
8009 |
+
},
|
8010 |
|
8011 |
+
remove: function remove(name) {
|
8012 |
+
this.write(name, '', Date.now() - 86400000);
|
8013 |
+
}
|
8014 |
+
};
|
8015 |
+
})() :
|
8016 |
|
8017 |
// Non standard browser env (web workers, react-native) lack needed support.
|
8018 |
+
(function nonStandardBrowserEnv() {
|
8019 |
+
return {
|
8020 |
+
write: function write() {},
|
8021 |
+
read: function read() { return null; },
|
8022 |
+
remove: function remove() {}
|
8023 |
+
};
|
8024 |
+
})()
|
8025 |
);
|
8026 |
|
8027 |
|
8051 |
};
|
8052 |
|
8053 |
|
8054 |
+
/***/ }),
|
8055 |
+
|
8056 |
+
/***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
|
8057 |
+
/*!********************************************************!*\
|
8058 |
+
!*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
|
8059 |
+
\********************************************************/
|
8060 |
+
/*! no static exports found */
|
8061 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8062 |
+
|
8063 |
+
"use strict";
|
8064 |
+
|
8065 |
+
|
8066 |
+
/**
|
8067 |
+
* Determines whether the payload is an error thrown by Axios
|
8068 |
+
*
|
8069 |
+
* @param {*} payload The value to test
|
8070 |
+
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
8071 |
+
*/
|
8072 |
+
module.exports = function isAxiosError(payload) {
|
8073 |
+
return (typeof payload === 'object') && (payload.isAxiosError === true);
|
8074 |
+
};
|
8075 |
+
|
8076 |
+
|
8077 |
/***/ }),
|
8078 |
|
8079 |
/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
|
8093 |
|
8094 |
// Standard browser envs have full support of the APIs needed to test
|
8095 |
// whether the request URL is of the same origin as current location.
|
8096 |
+
(function standardBrowserEnv() {
|
8097 |
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
8098 |
+
var urlParsingNode = document.createElement('a');
|
8099 |
+
var originURL;
|
8100 |
|
8101 |
+
/**
|
8102 |
* Parse a URL to discover it's components
|
8103 |
*
|
8104 |
* @param {String} url The URL to be parsed
|
8105 |
* @returns {Object}
|
8106 |
*/
|
8107 |
+
function resolveURL(url) {
|
8108 |
+
var href = url;
|
8109 |
|
8110 |
+
if (msie) {
|
8111 |
// IE needs attribute set twice to normalize properties
|
8112 |
+
urlParsingNode.setAttribute('href', href);
|
8113 |
+
href = urlParsingNode.href;
|
8114 |
+
}
|
8115 |
|
8116 |
+
urlParsingNode.setAttribute('href', href);
|
8117 |
|
8118 |
+
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
8119 |
+
return {
|
8120 |
+
href: urlParsingNode.href,
|
8121 |
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
8122 |
+
host: urlParsingNode.host,
|
8123 |
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
8124 |
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
8125 |
+
hostname: urlParsingNode.hostname,
|
8126 |
+
port: urlParsingNode.port,
|
8127 |
+
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
8128 |
+
urlParsingNode.pathname :
|
8129 |
+
'/' + urlParsingNode.pathname
|
8130 |
+
};
|
8131 |
+
}
|
8132 |
|
8133 |
+
originURL = resolveURL(window.location.href);
|
8134 |
|
8135 |
+
/**
|
8136 |
* Determine if a URL shares the same origin as the current location
|
8137 |
*
|
8138 |
* @param {String} requestURL The URL to test
|
8139 |
* @returns {boolean} True if URL shares the same origin, otherwise false
|
8140 |
*/
|
8141 |
+
return function isURLSameOrigin(requestURL) {
|
8142 |
+
var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
8143 |
+
return (parsed.protocol === originURL.protocol &&
|
8144 |
parsed.host === originURL.host);
|
8145 |
+
};
|
8146 |
+
})() :
|
8147 |
|
8148 |
// Non standard browser envs (web workers, react-native) lack needed support.
|
8149 |
+
(function nonStandardBrowserEnv() {
|
8150 |
+
return function isURLSameOrigin() {
|
8151 |
+
return true;
|
8152 |
+
};
|
8153 |
+
})()
|
8154 |
);
|
8155 |
|
8156 |
|
8295 |
|
8296 |
|
8297 |
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
|
|
8298 |
|
8299 |
/*global toString:true*/
|
8300 |
|
8312 |
return toString.call(val) === '[object Array]';
|
8313 |
}
|
8314 |
|
8315 |
+
/**
|
8316 |
+
* Determine if a value is undefined
|
8317 |
+
*
|
8318 |
+
* @param {Object} val The value to test
|
8319 |
+
* @returns {boolean} True if the value is undefined, otherwise false
|
8320 |
+
*/
|
8321 |
+
function isUndefined(val) {
|
8322 |
+
return typeof val === 'undefined';
|
8323 |
+
}
|
8324 |
+
|
8325 |
+
/**
|
8326 |
+
* Determine if a value is a Buffer
|
8327 |
+
*
|
8328 |
+
* @param {Object} val The value to test
|
8329 |
+
* @returns {boolean} True if value is a Buffer, otherwise false
|
8330 |
+
*/
|
8331 |
+
function isBuffer(val) {
|
8332 |
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
8333 |
+
&& typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
|
8334 |
+
}
|
8335 |
+
|
8336 |
/**
|
8337 |
* Determine if a value is an ArrayBuffer
|
8338 |
*
|
8390 |
}
|
8391 |
|
8392 |
/**
|
8393 |
+
* Determine if a value is an Object
|
8394 |
*
|
8395 |
* @param {Object} val The value to test
|
8396 |
+
* @returns {boolean} True if value is an Object, otherwise false
|
8397 |
*/
|
8398 |
+
function isObject(val) {
|
8399 |
+
return val !== null && typeof val === 'object';
|
8400 |
}
|
8401 |
|
8402 |
/**
|
8403 |
+
* Determine if a value is a plain Object
|
8404 |
*
|
8405 |
* @param {Object} val The value to test
|
8406 |
+
* @return {boolean} True if value is a plain Object, otherwise false
|
8407 |
*/
|
8408 |
+
function isPlainObject(val) {
|
8409 |
+
if (toString.call(val) !== '[object Object]') {
|
8410 |
+
return false;
|
8411 |
+
}
|
8412 |
+
|
8413 |
+
var prototype = Object.getPrototypeOf(val);
|
8414 |
+
return prototype === null || prototype === Object.prototype;
|
8415 |
}
|
8416 |
|
8417 |
/**
|
8496 |
*
|
8497 |
* react-native:
|
8498 |
* navigator.product -> 'ReactNative'
|
8499 |
+
* nativescript
|
8500 |
+
* navigator.product -> 'NativeScript' or 'NS'
|
8501 |
*/
|
8502 |
function isStandardBrowserEnv() {
|
8503 |
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
|
8504 |
+
navigator.product === 'NativeScript' ||
|
8505 |
+
navigator.product === 'NS')) {
|
8506 |
return false;
|
8507 |
}
|
8508 |
return (
|
8570 |
function merge(/* obj1, obj2, obj3, ... */) {
|
8571 |
var result = {};
|
8572 |
function assignValue(val, key) {
|
8573 |
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
8574 |
result[key] = merge(result[key], val);
|
8575 |
+
} else if (isPlainObject(val)) {
|
8576 |
+
result[key] = merge({}, val);
|
8577 |
+
} else if (isArray(val)) {
|
8578 |
+
result[key] = val.slice();
|
8579 |
} else {
|
8580 |
result[key] = val;
|
8581 |
}
|
8606 |
return a;
|
8607 |
}
|
8608 |
|
8609 |
+
/**
|
8610 |
+
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
8611 |
+
*
|
8612 |
+
* @param {string} content with BOM
|
8613 |
+
* @return {string} content value without BOM
|
8614 |
+
*/
|
8615 |
+
function stripBOM(content) {
|
8616 |
+
if (content.charCodeAt(0) === 0xFEFF) {
|
8617 |
+
content = content.slice(1);
|
8618 |
+
}
|
8619 |
+
return content;
|
8620 |
+
}
|
8621 |
+
|
8622 |
module.exports = {
|
8623 |
isArray: isArray,
|
8624 |
isArrayBuffer: isArrayBuffer,
|
8628 |
isString: isString,
|
8629 |
isNumber: isNumber,
|
8630 |
isObject: isObject,
|
8631 |
+
isPlainObject: isPlainObject,
|
8632 |
isUndefined: isUndefined,
|
8633 |
isDate: isDate,
|
8634 |
isFile: isFile,
|
8640 |
forEach: forEach,
|
8641 |
merge: merge,
|
8642 |
extend: extend,
|
8643 |
+
trim: trim,
|
8644 |
+
stripBOM: stripBOM
|
8645 |
};
|
8646 |
|
8647 |
|
9725 |
/*! no static exports found */
|
9726 |
/***/ (function(module, exports) {
|
9727 |
|
9728 |
+
var core = module.exports = { version: '2.6.12' };
|
9729 |
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
9730 |
|
9731 |
|
11729 |
})('versions', []).push({
|
11730 |
version: core.version,
|
11731 |
mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/modules/_library.js") ? 'pure' : 'global',
|
11732 |
+
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
11733 |
});
|
11734 |
|
11735 |
|
18239 |
});
|
18240 |
|
18241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18242 |
/***/ }),
|
18243 |
|
18244 |
/***/ "./node_modules/process/browser.js":
|
18449 |
var replace = String.prototype.replace;
|
18450 |
var percentTwenties = /%20/g;
|
18451 |
|
|
|
|
|
18452 |
var Format = {
|
18453 |
RFC1738: 'RFC1738',
|
18454 |
RFC3986: 'RFC3986'
|
18455 |
};
|
18456 |
|
18457 |
+
module.exports = {
|
18458 |
+
'default': Format.RFC3986,
|
18459 |
+
formatters: {
|
18460 |
+
RFC1738: function (value) {
|
18461 |
+
return replace.call(value, percentTwenties, '+');
|
18462 |
+
},
|
18463 |
+
RFC3986: function (value) {
|
18464 |
+
return String(value);
|
|
|
|
|
18465 |
}
|
18466 |
},
|
18467 |
+
RFC1738: Format.RFC1738,
|
18468 |
+
RFC3986: Format.RFC3986
|
18469 |
+
};
|
18470 |
|
18471 |
|
18472 |
/***/ }),
|
18644 |
}
|
18645 |
}
|
18646 |
|
18647 |
+
leaf = obj;
|
18648 |
}
|
18649 |
|
18650 |
return leaf;
|
18838 |
sort,
|
18839 |
allowDots,
|
18840 |
serializeDate,
|
18841 |
+
format,
|
18842 |
formatter,
|
18843 |
encodeValuesOnly,
|
18844 |
charset
|
18854 |
return serializeDate(value);
|
18855 |
}
|
18856 |
return value;
|
18857 |
+
});
|
18858 |
}
|
18859 |
|
18860 |
if (obj === null) {
|
18861 |
if (strictNullHandling) {
|
18862 |
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
18863 |
}
|
18864 |
|
18865 |
obj = '';
|
18867 |
|
18868 |
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
18869 |
if (encoder) {
|
18870 |
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
18871 |
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
18872 |
}
|
18873 |
return [formatter(prefix) + '=' + formatter(String(obj))];
|
18874 |
}
|
18880 |
}
|
18881 |
|
18882 |
var objKeys;
|
18883 |
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
18884 |
+
// we need to join elements in
|
18885 |
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
18886 |
+
} else if (isArray(filter)) {
|
18887 |
objKeys = filter;
|
18888 |
} else {
|
18889 |
var keys = Object.keys(obj);
|
18892 |
|
18893 |
for (var i = 0; i < objKeys.length; ++i) {
|
18894 |
var key = objKeys[i];
|
18895 |
+
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
18896 |
|
18897 |
if (skipNulls && value === null) {
|
18898 |
continue;
|
18913 |
sort,
|
18914 |
allowDots,
|
18915 |
serializeDate,
|
18916 |
+
format,
|
18917 |
formatter,
|
18918 |
encodeValuesOnly,
|
18919 |
charset
|
18961 |
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
18962 |
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
18963 |
filter: filter,
|
18964 |
+
format: format,
|
18965 |
formatter: formatter,
|
18966 |
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
18967 |
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
19027 |
options.sort,
|
19028 |
options.allowDots,
|
19029 |
options.serializeDate,
|
19030 |
+
options.format,
|
19031 |
options.formatter,
|
19032 |
options.encodeValuesOnly,
|
19033 |
options.charset
|
19063 |
"use strict";
|
19064 |
|
19065 |
|
19066 |
+
var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js");
|
19067 |
+
|
19068 |
var has = Object.prototype.hasOwnProperty;
|
19069 |
var isArray = Array.isArray;
|
19070 |
|
19185 |
}
|
19186 |
};
|
19187 |
|
19188 |
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
19189 |
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
19190 |
// It has been adapted here for stricter adherence to RFC 3986
|
19191 |
if (str.length === 0) {
|
19217 |
|| (c >= 0x30 && c <= 0x39) // 0-9
|
19218 |
|| (c >= 0x41 && c <= 0x5A) // a-z
|
19219 |
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
19220 |
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
19221 |
) {
|
19222 |
out += string.charAt(i);
|
19223 |
continue;
|
core/dist/js/ajax-load-more.min.js
CHANGED
@@ -1,13 +1,6 @@
|
|
1 |
-
var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=96)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(11),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,_=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,y=g?o:o[e]||(o[e]={}),b=y.prototype||(y.prototype={});for(c in g&&(n=e),n)d=((u=!p&&_&&void 0!==_[c])?_:n)[c],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,_&&i(_,c,d,t&l.U),y[c]!=d&&a(y,c,f),m&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(108),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(185),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(97),o=n(141),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===a.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(108),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(124);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),_=o(v),y=r(s,g,3),b=i(_.length),w=0,x=n?p(e,b):l?p(e,0):void 0;b>w;w++)if((f||w in _)&&(m=y(h=_[w],w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(94),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),h=n(6),m=n(135),v=n(33),_=n(27),y=n(14),b=n(47),w=n(4),x=n(10),S=n(86),A=n(34),j=n(36),E=n(35).f,L=n(88),P=n(30),M=n(5),O=n(23),T=n(52),I=n(48),F=n(90),C=n(41),N=n(55),k=n(42),R=n(89),q=n(126),D=n(9),z=n(21),B=D.f,W=z.f,H=o.RangeError,U=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=O(0),$=O(2),J=O(3),K=O(4),Z=O(5),tt=O(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=M("iterator"),ht=M("toStringTag"),mt=P("typed_constructor"),vt=P("def_constructor"),_t=s.CONSTR,yt=s.TYPED,bt=s.VIEW,wt=O(1,(function(t,e){return Et(I(t,t[vt]),e)})),xt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw H("Wrong offset!");return n},jt=function(t){if(w(t)&&yt in t)return t;throw U(t+" is not a typed array!")},Et=function(t,e){if(!w(t)||!(mt in t))throw U("It is not a typed array constructor!");return new t(e)},Lt=function(t,e){return Pt(I(t,t[vt]),e)},Pt=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Mt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ot=function(t){var e,n,r,o,a,i,s=x(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=L(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=h(s.length),o=Et(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Lt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Lt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=h(r.length),a=0;if(o+e>n)throw H("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=_(e,!0))?d(2,t[e]):W(t,e)},zt=function(t,e,n){return!(qt(t,e=_(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(z.f=Dt,D.f=zt),i(i.S+i.F*!_t,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Mt(Bt,"buffer","b"),Mt(Bt,"byteOffset","o"),Mt(Bt,"byteLength","l"),Mt(Bt,"length","e"),B(Bt,ht,{get:function(){return this[yt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},_=g&&j(g),y=!g||!s.ABV,x={},S=g&&g.prototype,L=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};y?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return yt in n?Pt(g,n):Ot.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw H("Wrong length!");if((i=v-p)<0)throw H("Wrong length!")}else if((i=h(o)*e)+p>v)throw H("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)L(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&N((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):yt in n?Pt(g,n):Ot.call(g,n):new v(m(n))})),Q(_!==Function.prototype?E(v).concat(E(_)):E(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var P=S[gt],M=!!P&&("values"==P.name||null==P.name),O=Rt.values;f(g,mt,!0),f(S,yt,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[ht]==c:ht in S)||B(S,ht,{get:function(){return c}}),x[c]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Ot,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Ct),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!M,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Nt}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),C[c]=M?P:O,r||M||f(S,gt,O)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(110),o=n(73);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(111),a=n(73),i=n(72)("IE_PROTO"),s=function(){},l=function(){var t,e=n(70)("iframe"),r=a.length;for(e.style.display="none",n(74).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(110),o=n(73).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(72)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(76),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"
"!="
"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(128);var r=n(11),o=n(15),a=n(2),i=n(25),s=n(5),l=n(91),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(123),a=n(86),i=n(3),s=n(6),l=n(88),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:l(t),_=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>y;y++)if((m=e?_(i(g=t[y])[0],g[1]):_(t[y]))===c||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,_,g.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(11),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(77);t.exports=function(t,e,n,h,m,v){var _=r[t],y=_,b=m?"set":"add",w=y&&y.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var A=new y,j=A[b](v?{}:-0,1)!=A,E=d((function(){A.has(1)})),L=f((function(t){new y(t)})),P=!v&&d((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));L||((y=e((function(e,n){c(e,y,t);var r=g(new _,e,y);return null!=n&&l(n,m,r[b],r),r}))).prototype=w,w.constructor=y),(E||P)&&(S("delete"),S("has"),m&&S("get")),(P||j)&&S(b),v&&w.clear&&delete w.clear}else y=h.getConstructor(e,t,m,b),i(y.prototype,n),s.NEED=!0;return p(y,t),x[t]=y,o(o.G+o.W+o.F*(y!=_),x),v||h.setStrong(y,t,m),y}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){t.exports=n(140)},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(144),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(98)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(143))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e&&e[0]&&(e[0]=s(t,e[0],o,n));return e};var r,o=n(164),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
|
2 |
/*!
|
3 |
* imagesLoaded v4.1.4
|
4 |
* JavaScript is all like "You images are done yet or what?"
|
5 |
* MIT License
|
6 |
-
*/!function(a,i){"use strict";r=[n(170)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(75).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(11),i=n(15),s=n(41),l=n(122),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){l(n,e,g);var _,y,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==h,A=!1,j=t.prototype,E=j[d]||j["@@iterator"]||h&&j[h],L=E||w(h),P=h?S?w("entries"):L:void 0,M="Array"==e&&j.entries||E;if(M&&(b=u(M.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&E&&"values"!==E.name&&(A=!0,L=function(){return E.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,L),s[e]=L,s[x]=p,h)if(_={values:S?L:w("values"),keys:m?L:w("keys"),entries:P},v)for(y in _)y in j||a(j,y,_[y]);else o(o.P+o.F*(f||A),e,_);return _}},function(t,e,n){var r=n(84),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(127),a=n(41),i=n(16);t.exports=n(82)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(81)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(116),l=n(74),c=n(70),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},_=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(_,t,1))}:h&&h.now?r=function(t){h.now(i(_,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(i(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(135),g=n(35).f,h=n(9).f,m=n(89),v=n(39),_=r.ArrayBuffer,y=r.DataView,b=r.Math,w=r.RangeError,x=r.Infinity,S=_,A=b.abs,j=b.pow,E=b.floor,L=b.log,P=b.LN2,M=o?"_b":"buffer",O=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===x?(o=t!=t?1:0,r=l):(r=E(L(t)/P),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function F(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-x:x;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return I(t,52,8)}function D(t){return I(t,23,4)}function z(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[O])throw w("Wrong index!");var a=t[M]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function W(t,e,n,r,o,a){var i=p(+n);if(i+e>t[O])throw w("Wrong index!");for(var s=t[M]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name}))){for(var H,U=(_=function(t){return u(this,_),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(H=V[G++])in _||s(_,H,S[H]);a||(U.constructor=_)}var Y=new y(new _(2)),X=y.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(y.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[O]=e},y=function(t,e,n){u(this,y,"DataView"),u(t,_,"DataView");var r=t[O],o=d(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw w("Wrong length!");this[M]=t,this[T]=o,this[O]=n},o&&(z(_,"byteLength","_l"),z(y,"buffer","_b"),z(y,"byteLength","_l"),z(y,"byteOffset","_o")),l(y.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return C(B(this,4,t,arguments[1]))},getUint32:function(t){return C(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){W(this,1,t,N,e)},setUint8:function(t,e){W(this,1,t,N,e)},setInt16:function(t,e){W(this,2,t,k,e,arguments[2])},setUint16:function(t,e){W(this,2,t,k,e,arguments[2])},setInt32:function(t,e){W(this,4,t,R,e,arguments[2])},setUint32:function(t,e){W(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){W(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){W(this,8,t,q,e,arguments[2])}});v(_,"ArrayBuffer"),v(y,"DataView"),s(y.prototype,i.VIEW,!0),e.ArrayBuffer=_,e.DataView=y},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var a=e[r],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)void 0!==n[a]&&r.push(n[a]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,a){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=i(e,a)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,a):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var i=n[o];return r.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.reset=e.filter=void 0;var r=C(n(63)),o=C(n(158));n(159);var a=C(n(160)),i=C(n(102)),s=C(n(162)),l=C(n(163)),c=C(n(66)),u=C(n(103)),d=F(n(165)),f=F(n(104)),p=n(105),g=C(n(166)),h=C(n(167)),m=C(n(49)),v=C(n(168)),_=C(n(169)),y=C(n(50)),b=C(n(69)),w=C(n(171)),x=C(n(172)),S=C(n(173)),A=C(n(174)),j=C(n(67)),E=n(175),L=n(176),P=n(177),M=n(178),O=n(180),T=n(65),I=n(106);function F(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function N(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(181),n(354),n(355);var k=n(356),R=n(68);o.default.polyfill();var q=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=(0,O.elementorCreateParams)(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var w=(0,a.default)("pg");n.addons.filters_startpage=null!==w?parseInt(w):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var F=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=F?F.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",F){var C=document.querySelector(".alm-tab-nav li .active");C&&C.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0)):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var D=t.childNodes;if(D){var z=Array.prototype.slice.call(D).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=z?z[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,E.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink+"?id="+t.addons.single_post_id+"&alm_page="+(parseInt(t.page)+1),a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,L.singlePostHTML)(e,t.addons.single_post_target),(0,P.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,M.wooGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,O.elementorGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,l=i.totalposts,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d,f,v,w=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,v=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,v=r?(0,c.default)(d).length:v,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&v>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===v&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),v>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):w&&((0,b.default)(w,n.speed),w.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){w.style.opacity=0,w.innerHTML=n.html,R(w,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(w,n.speed),setTimeout((function(){w.style.opacity="",h.default.init(w)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post)l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),l.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?l.dataset.page=parseInt(n.page)+1:l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html;else if(n.transition_container){var A=void 0,E=window.location.search,L=n.addons.seo?" alm-seo":"",P=n.addons.filters?" alm-filters":"",F=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var C=[],k=[],D=parseInt(n.posts_per_page),z=Math.ceil(v/D);a=!0,"true"===n.addons.cta&&(D+=1,z=Math.ceil(v/D),v=z+v);for(var B=(0,u.default)((0,c.default)(n.html,"text/html")),W=0;W<v;W+=D)C.push(B.slice(W,D+W));for(var H=0;H<C.length;H++){var U="true"===n.addons.preloaded?1:0,V=document.createElement("div");H>0||"true"===n.addons.preloaded?(A=H+1+U,n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,A)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),V.dataset.page=A)):(n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,1)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+F+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,0),V.dataset.page="1")),(0,i.default)(V,C[H]),(0,j.default)(V,n.ua),k.push(V)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,k),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var G="true"===n.addons.preloaded?1:0;A=n.page+1+G,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,A):n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),l.dataset.page=A):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_settings.paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_next_page_url,n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),o||n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,n.init,q);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?R(l,(function(){(0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),q=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():v<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var Y=n.page+1;(Y="true"===n.addons.preloaded?Y++:Y)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,l,v,q),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),q=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&window.almElementor(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,E.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var B=void 0;n.window.onresize=function(){clearTimeout(B),B=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,setTimeout((function(){n.AjaxLoadMore.horizontal()}),500)),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,E.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,M.wooInit)(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,O.elementorInit)(n),""===n.addons.elementor_next_page_url&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;q=!0,(0,w.default)(t,e,n,"filter")};e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};q=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?N(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,(0,M.wooReset)();case 3:(r=t.sent)&&(n.dataset.wooSettings=r,(0,w.default)("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an resetting the Ajax Load More instance.")})):(0,w.default)("fade","200",e,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;q=!0,(0,w.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(145),a=n(147),i=n(148),s=n(149),l=n(99);t.exports=function(t){return new Promise((function(e,c){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,c,r),f=null}},f.onerror=function(){c(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var h=n(150),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),c(t),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(t,e,n){"use strict";var r=n(146);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(161),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(96),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=e-1,o=void 0;if(t.addons.single_post_target){t.init?r=r:r+=1;var a=document.querySelectorAll(".alm-reveal.alm-single-post");a&&(o=a[r])}else o=document.querySelector(".alm-reveal.alm-single-post[data-page="+(e-1)+"]");n=o?o.dataset.title:n}var i="almTOCLabel_"+t.id;"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e),r.dataset.page=t.addons.single_post_target&&t.init?e-1:e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(t.addons.single_post_target&&(a=document.querySelector('.alm-reveal.alm-single-post[data-page="'+r+'"]')),!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(179)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(70)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(71),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(72)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)p=h[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(116),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(76),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(76)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(275);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(91);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),h=n(59),m=n(48),v=n(93).set,_=n(295)(),y=n(131),b=n(296),w=n(60),x=n(132),S=l.TypeError,A=l.process,j=A&&A.versions,E=j&&j.v8||"",L=l.Promise,P="process"==u(A),M=function(){},O=o=y.f,T=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(M,M)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;_((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b((function(){P?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=P||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;P?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?_((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(L=function(t){g(this,L,"Promise","_h"),p(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(L.prototype,{then:function(t,e){var n=O(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},y.f=O=function(t){return t===L||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:L}),n(39)(L,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?L:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){L.all(t).catch(M)}))),"Promise",{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(131);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(82),u=n(127),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(78),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a=n(95),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},function(t,e,n){"use strict";var r=n(13),o=n(97),a=n(142),i=n(64);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(i);l.Axios=a,l.create=function(t){return s(r.merge(i,t))},l.Cancel=n(101),l.CancelToken=n(156),l.isCancel=n(100),l.all=function(t){return Promise.all(t)},l.spread=n(157),t.exports=l,t.exports.default=l},function(t,e){
|
7 |
-
/*!
|
8 |
-
* Determine if an object is a Buffer
|
9 |
-
*
|
10 |
-
* @author Feross Aboukhadijeh <https://feross.org>
|
11 |
-
* @license MIT
|
12 |
-
*/
|
13 |
-
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(64),o=n(13),a=n(151),i=n(152);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(99);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(153),a=n(100),i=n(64),s=n(154),l=n(155);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(101);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(65);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:"true"===t.addons.comments&&"true"===t.addons.preloaded?o+"/page-"+(t.page+2)+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=escape(t.listing.dataset.customArgs));t.listing.dataset.vars&&(r.vars=escape(t.listing.dataset.vars));return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(102)),a=d(n(66)),i=d(n(67)),s=d(n(103)),l=n(65),c=n(106),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(68);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,h=e.html,m=e.masonry_selector,v=e.masonry_columnwidth,_=e.masonry_animation,y=e.masonry_horizontalorder,b=e.speed,w=e.masonry_init,x=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===_&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===_&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===_&&(S="translateY(-50px)",A="translateY(0)"),"none"===_&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=m,y="true"===y,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(w&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:m,transitionDuration:x,columnWidth:v,horizontalOrder:y,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(m);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(h,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(69)),i=n(105);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(69));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(63),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var e=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_settings.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_settings.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_settings.paged>1&&function(t){if(t&&t.addons.woocommerce_settings.results_text){var e=document.querySelectorAll(t.addons.woocommerce_settings.results);if(e.length<1)return!1;var n=t.addons.woocommerce_settings.settings.previous_page_link,r=t.addons.woocommerce_settings.settings.previous_page_label,o=t.addons.woocommerce_settings.settings.previous_page_sep;e.forEach((function(t){n&&r&&(t.innerHTML=s(t,n,r,o))}))}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var a=document.querySelector(e.addons.woocommerce_settings.container),s=t.querySelectorAll(e.addons.woocommerce_settings.products),l=e.addons.woocommerce_settings.paged_urls[e.page];a&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(a,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooReset=function(){return new Promise((function(t){var e=window.location;r.default.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(e){t(!1)}))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_settings.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results),r=e.addons.woocommerce_settings.settings.previous_page_link,o=e.addons.woocommerce_settings.settings.previous_page_label,a=e.addons.woocommerce_settings.settings.previous_page_sep;e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=r&&o?s(n,r,o,a):n.innerHTML}))}}(r,e)}return n};var r=a(n(63)),o=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n,r){var o=" "+r+' <a href="'+e+'">'+n+"</a>";return t.innerHTML+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(67),a=(r=o)&&r.__esModule?r:{default:r};var i=n(68);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_next_page_url;t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);if(r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged,t.addons.elementor_masonry){var o=void 0;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){s(t,"."+t.addons.elementor_container_class,"."+t.addons.elementor_item_class)}),100)}))}),250)}}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_element.querySelector("."+e.addons.elementor_container_class),l=t.querySelectorAll("."+e.addons.elementor_item_class),c=e.addons.elementor_current_url;o&&l&&c?(l=Array.prototype.slice.call(l),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,l,e,n,c,"alm-elementor");case 2:e.addons.elementor_masonry&&setTimeout((function(){s(e,"."+e.addons.elementor_container_class,"."+e.addons.elementor_item_class)}),125),r(!0);case 4:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")}))):r(!1)}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:"",e.addons.elementor_current_url=e.addons.elementor_next_page_url,e.addons.elementor_next_page_url=(i=r,s=e.addons.elementor_pagination_class,(c=i.querySelector(s))?l(c):"")}var i,s,c;return n},e.elementorCreateParams=function(t){t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-widget-wrap "+t.addons.elementor_settings.target):"",t.addons.elementor_widget=function(t){if(!t)return!1;return t.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(t.addons.elementor_element),(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";return t.addons.elementor_container_class="woocommerce"===e?t.addons.elementor_settings.woo_container_class:t.addons.elementor_settings.posts_container_class,t.addons.elementor_item_class="woocommerce"===e?t.addons.elementor_settings.woo_item_class:t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class="woocommerce"===e?"."+t.addons.elementor_settings.woo_pagination_class:"."+t.addons.elementor_settings.posts_pagination_class,t}(t,t.addons.elementor_widget)).addons.elementor_pagination=t.addons.elementor_element.querySelector(t.addons.elementor_pagination_class)||t.addons.elementor_element.querySelector("."+t.addons.elementor_settings.pagination_class),t.addons.elementor_pagination=!!t.addons.elementor_pagination&&t.addons.elementor_pagination,t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_current_url=window.location.href,t.addons.elementor_next_page_url=l(t.addons.elementor_pagination),t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){if(!t.addons.elementor_element)return t;var e=t.addons.elementor_element,n=e.dataset.settings?JSON.parse(e.dataset.settings):"";if(!n)return t;t.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),t.addons.elementor_masonry&&(t.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),t.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),t.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),t.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");t.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?");return t};var r,o=n(107),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var f=d.querySelectorAll(n);if(!f)return!1;f.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop=Math.round(c)+"px",r[i]+=o}else r.push(o)}))}function l(t){return t&&t.querySelector("a.next")?t.querySelector("a.next").href:""}},function(t,e,n){n(182)},function(t,e,n){"use strict";n(183),n(326),n(328),n(331),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(353)},function(t,e,n){n(184),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(90),n(289),n(128),n(290),n(129),n(291),n(292),n(293),n(294),n(130),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(11),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(71),h=n(109),m=n(186),v=n(54),_=n(3),y=n(4),b=n(10),w=n(16),x=n(27),S=n(29),A=n(34),j=n(112),E=n(21),L=n(53),P=n(9),M=n(32),O=E.f,T=P.f,I=j.f,F=r.Symbol,C=r.JSON,N=C&&C.stringify,k=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,D=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),W=Object.prototype,H="function"==typeof F&&!!L.f,U=r.QObject,V=!U||!U.prototype||!U.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=O(W,e);r&&delete W[e],T(t,e,n),r&&t!==W&&T(W,e,r)}:T,Y=function(t){var e=z[t]=A(F.prototype);return e._k=t,e},X=H&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Q=function(t,e,n){return t===W&&Q(B,e,n),_(t),e=x(e,!0),_(n),o(z,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){_(t);for(var n,r=m(e=w(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=q.call(this,t=x(t,!0));return!(this===W&&o(z,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=w(t),e=x(e,!0),t!==W||!o(z,e)||o(B,e)){var n=O(t,e);return!n||!o(z,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],a=0;n.length>a;)o(z,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=I(n?B:w(t)),a=[],i=0;r.length>i;)!o(z,e=r[i++])||n&&!o(W,e)||a.push(z[e]);return a};H||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(W,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),E.f=K,P.f=Q,n(35).f=j.f=Z,n(46).f=J,L.f=tt,a&&!n(31)&&s(W,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!H,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=M(p.store),ot=0;rt.length>ot;)h(rt[ot++]);i(i.S+i.F*!H,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=F(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){L.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return L.f(b(t))}}),C&&i(i.S+i.F*(!H||c((function(){var t=F();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(y(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(C,r)}}),F.prototype[R]||n(15)(F.prototype,R,F.prototype.valueOf),d(F,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(111)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(112).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(114)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(75).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(115)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(117);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(118);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(77),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l((function(){h.valueOf.call(n)})):"Number"!=a(n))?i(new g(_(e)),n,p):_(e)};for(var y,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,y=b[w])&&!o(p,y)&&d(p,y,u(g,y));p.prototype=h,h.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(119),i=n(78),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),h="",m="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",c);return m=c>0?h+((s=m.length)<=c?"0."+i.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(119),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(120)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(120),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(118);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(117);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(121),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(80);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(229)})},function(t,e,n){var r=n(79),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(121)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(79)})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(81)(!0);n(82)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(81)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".endsWith;r(r.P+r.F*n(85)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(83);r(r.P+r.F*n(85)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(78)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".startsWith;r(r.P+r.F*n(85)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(264);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(267))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(123),s=n(86),l=n(6),c=n(87),u=n(88);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,_=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==_||p==Array&&s(_))for(n=new p(e=l(f.length));e>v;v++)c(n,v,m?h(f[v],v):f[v]);else for(d=_.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(87);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(74),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(126)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(89)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(77),a=n(9).f,i=n(35).f,s=n(84),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var h=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=c,c.prototype=d,n(11)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(129);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(92),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(92),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var _=[];;){var y=l(d,f);if(null===y)break;if(_.push(y),!m)break;""===String(y[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<_.length;S++){y=_[S];for(var A=String(y[0]),j=c(u(i(y.index),f.length),0),E=[],L=1;L<y.length;L++)E.push(void 0===(b=y[L])?b:String(b));var P=y.groups;if(p){var M=[A].concat(E,j,f);void 0!==P&&M.push(P);var O=String(e.apply(void 0,M))}else O=h(A,f,j,E,P,e);j>=x&&(w+=f.slice(x,j)+O,x=j+A.length)}return w+f.slice(x)}];function h(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(114),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(84),o=n(3),a=n(48),i=n(92),s=n(6),l=n(57),c=n(91),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(a=c.call(h,o))&&!((i=h.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)h.lastIndex===a.index&&h.lastIndex++;return d===o[p]?!s&&h.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),_=new p(g?c:"^(?:"+c.source+")",v),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===f.length)return null===l(_,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){_.lastIndex=g?w:0;var S,A=l(_,g?f:f.slice(w));if(null===A||(S=d(s(_.lastIndex+(g?0:w)),f.length))===b)w=i(f,w,m);else{if(x.push(f.slice(b,w)),x.length===y)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===y)return x;w=b=S}}return x.push(f.slice(b)),x}]}))},function(t,e,n){var r=n(1),o=n(93).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(11),s=n(28),l=n(113),c=n(134),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},y=t.exports=n(61)("WeakMap",v,_,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,_),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(134),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(94),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(94).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(115),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(122)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(136)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(75);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(327),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(329),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(330),a=n(10),i=n(6),s=n(19),l=n(124);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,h,m=u,v=0,_=!!f&&i(f,p,3);v<c;){if(v in l){if(g=_?_(l[v],v,n):l[v],h=!1,o(g)&&(h=void 0!==(h=g[s])?!!h:r(g)),h&&d>0)m=t(e,n,g,a(g.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=g}m++}v++}return m}},function(t,e,n){n(332),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(334),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(336),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(338),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(340),t.exports=n(71).f("asyncIterator")},function(t,e,n){n(109)("asyncIterator")},function(t,e,n){n(342),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(136),a=n(16),i=n(21),s=n(87);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(344),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(138)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(346),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(138)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(130),n(348),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(132);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(350),n(351),n(352),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(93);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(90),o=n(32),a=n(11),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],_=p[v],y=i[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,_))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=b(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function p(){}var g={};g[o]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(A([])));m&&m!==e&&n.call(m,o)&&(g=m);var v=p.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(v),s(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(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),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);if("function"==typeof setTimeout){var r=this;setTimeout((function(){r.nativeFocus(),n(e)}),0)}else this.nativeFocus(),n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(357),o=n(358),a=n(139);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(95),o=n(139),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,h,m,v){var _,y=e;if("function"==typeof u?y=u(n,y):y instanceof Date?y=g(y):"comma"===o&&s(y)&&(y=r.maybeMap(y,(function(t){return t instanceof Date?g(t):t})).join(",")),null===y){if(a)return l&&!m?l(n,f.encoder,v,"key"):n;y=""}if("string"==typeof(_=y)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||r.isBuffer(y))return l?[h(m?n:l(n,f.encoder,v,"key"))+"="+h(l(y,f.encoder,v,"value"))]:[h(n)+"="+h(String(y))];var b,w=[];if(void 0===y)return w;if(s(u))b=u;else{var x=Object.keys(y);b=d?x.sort(d):x}for(var S=0;S<b.length;++S){var A=b[S],j=y[A];if(!i||null!==j){var E=s(y)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(w,t(j,E,o,a,i,l,u,d,p,g,h,m,v))}}return w};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var h=0;h<n.length;++h){var m=n[h];l.skipNulls&&null===r[m]||c(d,p(r[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},function(t,e,n){"use strict";var r=n(95),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var h,m,v=f[n],_=v.indexOf("]="),y=-1===_?v.indexOf("="):_+1;-1===y?(h=e.decoder(v,i.decoder,g,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,y),i.decoder,g,"key"),m=r.maybeMap(l(v.slice(y+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===g&&(m=s(m)),v.indexOf("[]=")>-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],h=c(g,u[g],n,"string"==typeof t);d=r.merge(d,h,n)}return r.compact(d)}}]);
|
1 |
+
var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=95)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(12),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,m=t&l.S,h=t&l.P,v=t&l.B,_=g?r:m?r[e]||(r[e]={}):(r[e]||{}).prototype,y=g?o:o[e]||(o[e]={}),b=y.prototype||(y.prototype={});for(c in g&&(n=e),n)d=((u=!p&&_&&void 0!==_[c])?_:n)[c],f=v&&u?s(d,r):h&&"function"==typeof d?s(Function.call,d):d,_&&i(_,c,d,t&l.U),y[c]!=d&&a(y,c,f),h&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(110),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(96),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function i(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:l,isUndefined:i,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):a(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(187),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(110),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(126);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var m,h,v=a(e),_=o(v),y=r(s,g,3),b=i(_.length),w=0,x=n?p(e,b):l?p(e,0):void 0;b>w;w++)if((f||w in _)&&(h=y(m=_[w],w,v),t))if(n)x[w]=h;else if(h)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(93),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),m=n(6),h=n(137),v=n(33),_=n(27),y=n(14),b=n(47),w=n(4),x=n(10),S=n(85),A=n(34),j=n(36),P=n(35).f,E=n(87),L=n(30),O=n(5),M=n(23),T=n(52),I=n(48),C=n(89),N=n(41),F=n(55),k=n(42),R=n(88),q=n(128),D=n(9),z=n(21),B=D.f,U=z.f,W=o.RangeError,H=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=M(0),$=M(2),J=M(3),K=M(4),Z=M(5),tt=M(6),et=T(!0),nt=T(!1),rt=C.values,ot=C.keys,at=C.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=O("iterator"),mt=O("toStringTag"),ht=L("typed_constructor"),vt=L("def_constructor"),_t=s.CONSTR,yt=s.TYPED,bt=s.VIEW,wt=M(1,(function(t,e){return Pt(I(t,t[vt]),e)})),xt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw W("Wrong offset!");return n},jt=function(t){if(w(t)&&yt in t)return t;throw H(t+" is not a typed array!")},Pt=function(t,e){if(!w(t)||!(ht in t))throw H("It is not a typed array constructor!");return new t(e)},Et=function(t,e){return Lt(I(t,t[vt]),e)},Lt=function(t,e){for(var n=0,r=e.length,o=Pt(t,r);r>n;)o[n]=e[n++];return o},Ot=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,a,i,s=x(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=E(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=m(s.length),o=Pt(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ct=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Nt={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Et(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===e?r:v(e,r))-o))}},Ft=function(t,e){return Et(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=m(r.length),a=0;if(o+e>n)throw W("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=_(e,!0))?d(2,t[e]):U(t,e)},zt=function(t,e,n){return!(qt(t,e=_(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(z.f=Dt,D.f=zt),i(i.S+i.F*!_t,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Nt);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Ft,set:kt,constructor:function(){},toString:ft,toLocaleString:Ct}),Ot(Bt,"buffer","b"),Ot(Bt,"byteOffset","o"),Ot(Bt,"byteLength","l"),Ot(Bt,"length","e"),B(Bt,mt,{get:function(){return this[yt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},_=g&&j(g),y=!g||!s.ABV,x={},S=g&&g.prototype,E=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};y?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return yt in n?Lt(g,n):Mt.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw W("Wrong length!");if((i=v-p)<0)throw W("Wrong length!")}else if((i=m(o)*e)+p>v)throw W("Wrong length!");s=i/e}else s=h(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)E(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&F((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):yt in n?Lt(g,n):Mt.call(g,n):new v(h(n))})),Q(_!==Function.prototype?P(v).concat(P(_)):P(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var L=S[gt],O=!!L&&("values"==L.name||null==L.name),M=Rt.values;f(g,ht,!0),f(S,yt,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[mt]==c:mt in S)||B(S,mt,{get:function(){return c}}),x[c]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Mt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Nt),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!O,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Ft}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ct}),N[c]=O?L:M,r||O||f(S,gt,M)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(112),o=n(72);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(113),a=n(72),i=n(71)("IE_PROTO"),s=function(){},l=function(){var t,e=n(69)("iframe"),r=a.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(112),o=n(72).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(71)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(75),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"
"!="
"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(130);var r=n(12),o=n(15),a=n(2),i=n(25),s=n(5),l=n(90),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var m=/./[f],h=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=h[0],_=h[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(125),a=n(85),i=n(3),s=n(6),l=n(87),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,m,h,v=f?function(){return t}:l(t),_=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>y;y++)if((h=e?_(i(g=t[y])[0],g[1]):_(t[y]))===c||h===u)return h}else for(m=v.call(t);!(g=m.next()).done;)if((h=o(m,_,g.value,e))===c||h===u)return h}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(12),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(76);t.exports=function(t,e,n,m,h,v){var _=r[t],y=_,b=h?"set":"add",w=y&&y.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var A=new y,j=A[b](v?{}:-0,1)!=A,P=d((function(){A.has(1)})),E=f((function(t){new y(t)})),L=!v&&d((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));E||((y=e((function(e,n){c(e,y,t);var r=g(new _,e,y);return null!=n&&l(n,h,r[b],r),r}))).prototype=w,w.constructor=y),(P||L)&&(S("delete"),S("has"),h&&S("get")),(L||j)&&S(b),v&&w.clear&&delete w.clear}else y=m.getConstructor(e,t,h,b),i(y.prototype,n),s.NEED=!0;return p(y,t),x[t]=y,o(o.G+o.W+o.F*(y!=_),x),v||m.setStrong(y,t,h),y}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){t.exports=n(142)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e&&e[0]&&(e[0]=s(t,e[0],o,n));return e};var r,o=n(166),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
|
2 |
/*!
|
3 |
* imagesLoaded v4.1.4
|
4 |
* JavaScript is all like "You images are done yet or what?"
|
5 |
* MIT License
|
6 |
+
*/!function(a,i){"use strict";r=[n(172)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(74).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(12),i=n(15),s=n(41),l=n(124),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,m,h,v){l(n,e,g);var _,y,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==m,A=!1,j=t.prototype,P=j[d]||j["@@iterator"]||m&&j[m],E=P||w(m),L=m?S?w("entries"):E:void 0,O="Array"==e&&j.entries||P;if(O&&(b=u(O.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&P&&"values"!==P.name&&(A=!0,E=function(){return P.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,E),s[e]=E,s[x]=p,m)if(_={values:S?E:w("values"),keys:h?E:w("keys"),entries:L},v)for(y in _)y in j||a(j,y,_[y]);else o(o.P+o.F*(f||A),e,_);return _}},function(t,e,n){var r=n(83),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(129),a=n(41),i=n(16);t.exports=n(81)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(80)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(118),l=n(73),c=n(69),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,m=u.Dispatch,h=0,v={},_=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++h]=function(){s("function"==typeof t?t:Function(t),e)},r(h),h},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(_,t,1))}:m&&m.now?r=function(t){m.now(i(_,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(i(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(137),g=n(35).f,m=n(9).f,h=n(88),v=n(39),_=r.ArrayBuffer,y=r.DataView,b=r.Math,w=r.RangeError,x=r.Infinity,S=_,A=b.abs,j=b.pow,P=b.floor,E=b.log,L=b.LN2,O=o?"_b":"buffer",M=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===x?(o=t!=t?1:0,r=l):(r=P(E(t)/L),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function C(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-x:x;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function N(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function F(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return I(t,52,8)}function D(t){return I(t,23,4)}function z(t,e,n){m(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[M])throw w("Wrong index!");var a=t[O]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function U(t,e,n,r,o,a){var i=p(+n);if(i+e>t[M])throw w("Wrong index!");for(var s=t[O]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name}))){for(var W,H=(_=function(t){return u(this,_),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(W=V[G++])in _||s(_,W,S[W]);a||(H.constructor=_)}var Y=new y(new _(2)),X=y.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(y.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,"ArrayBuffer");var e=p(t);this._b=h.call(new Array(e),0),this[M]=e},y=function(t,e,n){u(this,y,"DataView"),u(t,_,"DataView");var r=t[M],o=d(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw w("Wrong length!");this[O]=t,this[T]=o,this[M]=n},o&&(z(_,"byteLength","_l"),z(y,"buffer","_b"),z(y,"byteLength","_l"),z(y,"byteOffset","_o")),l(y.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return N(B(this,4,t,arguments[1]))},getUint32:function(t){return N(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return C(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return C(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){U(this,1,t,F,e)},setUint8:function(t,e){U(this,1,t,F,e)},setInt16:function(t,e){U(this,2,t,k,e,arguments[2])},setUint16:function(t,e){U(this,2,t,k,e,arguments[2])},setInt32:function(t,e){U(this,4,t,R,e,arguments[2])},setUint32:function(t,e){U(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){U(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){U(this,8,t,q,e,arguments[2])}});v(_,"ArrayBuffer"),v(y,"DataView"),s(y.prototype,i.VIEW,!0),e.ArrayBuffer=_,e.DataView=y},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a="RFC1738",i="RFC3986";t.exports={default:i,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:a,RFC3986:i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.reset=e.filter=void 0;var r=N(n(63)),o=N(n(160));n(161);var a=N(n(162)),i=N(n(104)),s=N(n(164)),l=N(n(165)),c=N(n(65)),u=N(n(105)),d=C(n(167)),f=C(n(106)),p=n(107),g=N(n(168)),m=N(n(169)),h=N(n(49)),v=N(n(170)),_=N(n(171)),y=N(n(50)),b=N(n(68)),w=N(n(173)),x=N(n(174)),S=N(n(175)),A=N(n(176)),j=N(n(66)),P=n(177),E=n(178),L=n(179),O=n(180),M=n(182),T=n(64),I=n(108);function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function N(t){return t&&t.__esModule?t:{default:t}}function F(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(183),n(356),n(357);var k=n(358),R=n(67);r.default.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",o.default.polyfill();var q=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=(0,M.elementorCreateParams)(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage,n.addons.nextpage_title_template=n.listing.dataset.nextpageTitleTemplate),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=void 0===n.listing.dataset.singlePostOrder?"previous":n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=void 0===n.listing.dataset.singlePostTaxonomy?"":n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=void 0===n.listing.dataset.singlePostExcludedTerms?"":n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=void 0===n.listing.dataset.singlePostProgressBar?"":n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=void 0===n.listing.dataset.singlePostTarget?"":n.listing.dataset.singlePostTarget,n.addons.single_post_preview=void 0!==n.listing.dataset.singlePostPreview,n.addons.single_post_preview)){var w=n.listing.dataset.singlePostPreview.split(":");n.addons.single_post_preview_data={button_label:w[0]?w[0]:"Continue Reading",height:w[1]?w[1]:500,element:w[2]?w[2]:"default",className:"alm-single-post--preview"}}if(n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var C=(0,a.default)("pg");n.addons.filters_startpage=null!==C?parseInt(C):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var N=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=N?N.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",N){var D=document.querySelector(".alm-tab-nav li .active");D&&D.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),n.addons.nextpage_postTitle=n.listing.dataset.nextpagePostTitle):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var z=t.childNodes;if(z){var B=Array.prototype.slice.call(z).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=B?B[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,P.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage,nested:n.nested}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink+"?id="+t.addons.single_post_id+"&alm_page="+(parseInt(t.page)+1),a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,E.singlePostHTML)(e,t.addons.single_post_target),(0,L.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,O.wooGetContent)(e,t),(0,L.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,M.elementorGetContent)(e,t),(0,L.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&(window.almBuildPagination(r.totalpages,t),t.totalpages=r.totalpages):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,l=i.totalposts,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d,f,v,w=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,v=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,v=r?(0,c.default)(d).length:v,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&v>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===v&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),v>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):w&&((0,b.default)(w,n.speed),w.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){w.style.opacity=0,w.innerHTML=n.html,R(w,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(w,n.speed),setTimeout((function(){w.style.opacity="",m.default.init(w)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post){if(l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+(n.tcc?" "+n.tcc:"")),l.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?l.dataset.page=parseInt(n.page)+1:l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html,n.addons.single_post_preview&&n.addons.single_post_preview_data&&"function"==typeof almSinglePostCreatePreview){var A=window.almSinglePostCreatePreview(l,n.addons.single_post_id,n.addons.single_post_preview_data);l.replaceChildren(A||l)}}else if(n.transition_container){var P=void 0,E=window.location.search,L=n.addons.seo?" alm-seo":"",C=n.addons.filters?" alm-filters":"",N=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var k=[],D=[],z=parseInt(n.posts_per_page),B=Math.ceil(v/z);a=!0,"true"===n.addons.cta&&(z+=1,B=Math.ceil(v/z),v=B+v);for(var U=(0,u.default)((0,c.default)(n.html,"text/html")),W=0;W<v;W+=z)k.push(U.slice(W,z+W));for(var H=0;H<k.length;H++){var V="true"===n.addons.preloaded?1:0,G=document.createElement("div");H>0||"true"===n.addons.preloaded?(P=H+1+V,n.addons.seo&&(G=(0,I.createSEOAttributes)(n,G,E,L,P)),n.addons.filters&&(G.setAttribute("class","alm-reveal"+C+n.tcc),G.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,P),G.dataset.page=P)):(n.addons.seo&&(G=(0,I.createSEOAttributes)(n,G,E,L,1)),n.addons.filters&&(G.setAttribute("class","alm-reveal"+C+N+n.tcc),G.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,0),G.dataset.page="1")),(0,i.default)(G,k[H]),(0,j.default)(G,n.ua),D.push(G)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,D),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var Y="true"===n.addons.preloaded?1:0;P=n.page+1+Y,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,P):n.addons.filters?(l.setAttribute("class","alm-reveal"+C+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,P),l.dataset.page=P):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+C+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return F(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_settings.paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return F(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_next_page_url,n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),o||n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,n.init,q);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?R(l,(function(){(0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),m.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),q=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():v<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var X=n.page+1;(X="true"===n.addons.preloaded?X++:X)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,h.default)(n,l,v,q),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),q=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",m.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&t.addons.nextpage&&window.almSetNextPage(t),"function"==typeof almSEO&&t.addons.seo&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&t.addons.woocommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&t.addons.elementor&&window.almElementor(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,P.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var U=void 0;n.window.onresize=function(){clearTimeout(U),U=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,setTimeout((function(){n.AjaxLoadMore.horizontal()}),500)),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,P.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=e.dataset.totalPosts?parseInt(e.dataset.totalPosts):n.localize.total_posts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,O.wooInit)(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,M.elementorInit)(n),""===n.addons.elementor_next_page_url&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&F(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;q=!0,(0,w.default)(t,e,n,"filter")};e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};q=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?F(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,(0,O.wooReset)();case 3:(r=t.sent)&&(n.dataset.wooSettings=r,(0,w.default)("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an resetting the Ajax Load More instance.")})):(0,w.default)("fade","200",e,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;q=!0,(0,w.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(11);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}if(a){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(11),o=n(148),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=n(100)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(147))},function(t,e,n){"use strict";var r=n(11),o=n(149),a=n(151),i=n(97),s=n(152),l=n(155),c=n(156),u=n(101);t.exports=function(t){return new Promise((function(e,n){var d=t.data,f=t.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+m)}var h=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),i(h,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};o(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||c(h))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(f[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(f,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},function(t,e,n){"use strict";var r=n(150);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),r.forEach(a,c),r.forEach(i,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(void 0,e[o])})),r.forEach(s,(function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(void 0,t[r]))}));var u=o.concat(a).concat(i).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return r.forEach(d,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(163),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(95),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=e-1,o=void 0;if(t.addons.single_post_target){t.init?r=r:r+=1;var a=document.querySelectorAll(".alm-reveal.alm-single-post");a&&(o=a[r])}else o=document.querySelector(".alm-reveal.alm-single-post[data-page="+(e-1)+"]");n=o?o.dataset.title:n}var i="almTOCLabel_"+t.id;"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e),r.dataset.page=t.addons.single_post_target&&t.init?e-1:e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(t.addons.single_post_target&&(a=document.querySelector('.alm-reveal.alm-single-post[data-page="'+r+'"]')),!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(181)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(69)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(70),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(71)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),m=d?o(g).concat(d(g)):o(g),h=m.length,v=0;h>v;)p=m[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(118),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(75),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(75)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(277);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(90);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),m=n(59),h=n(48),v=n(92).set,_=n(297)(),y=n(133),b=n(298),w=n(60),x=n(134),S=l.TypeError,A=l.process,j=A&&A.versions,P=j&&j.v8||"",E=l.Promise,L="process"==u(A),O=function(){},M=o=y.f,T=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(O,O)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;_((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=F(t);if(a&&(e=b((function(){L?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=L||F(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;L?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?_((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,C(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(E=function(t){g(this,E,"Promise","_h"),p(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(E.prototype,{then:function(t,e){var n=M(h(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},y.f=M=function(t){return t===E||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:E}),n(39)(E,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?E:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){E.all(t).catch(O)}))),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;m(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(133);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(81),u=n(129),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),m=f?"_s":"size",h=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=g(this,e),r=h(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[m]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!h(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[m]}}),u},def:function(t,e,n){var r,o,a=h(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[m]++,"F"!==o&&(t._i[o]=a)),t},getEntry:h,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,m=function(t){return t._l||(t._l=new h)},h=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};h.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?m(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?m(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(77),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=n(94),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,o,a){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=i[u]:u<2048?l+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?l+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return l},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(a(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var i=e;return a(e)&&!a(n)&&(i=s(e,r)),a(e)&&a(n)?(n.forEach((function(n,a){if(o.call(e,a)){var i=e[a];i&&"object"==typeof i&&n&&"object"==typeof n?e[a]=t(i,n,r):e.push(n)}else e[a]=n})),e):Object.keys(n).reduce((function(e,a){var i=n[a];return o.call(e,a)?e[a]=t(e[a],i,r):e[a]=i,e}),i)}}},function(t,e,n){"use strict";var r=n(11),o=n(96),a=n(143),i=n(102);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(n(99));l.Axios=a,l.create=function(t){return s(i(l.defaults,t))},l.Cancel=n(103),l.CancelToken=n(157),l.isCancel=n(98),l.all=function(t){return Promise.all(t)},l.spread=n(158),l.isAxiosError=n(159),t.exports=l,t.exports.default=l},function(t,e,n){"use strict";var r=n(11),o=n(97),a=n(144),i=n(145),s=n(102);function l(t){this.defaults=t,this.interceptors={request:new a,response:new a}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=l},function(t,e,n){"use strict";var r=n(11);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(11),o=n(146),a=n(98),i=n(99);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(101);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(153),o=n(154);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(11),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(103);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(64);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:"true"===t.addons.comments&&"true"===t.addons.preloaded?o+"/page-"+(t.page+2)+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=escape(t.listing.dataset.customArgs));t.listing.dataset.vars&&(r.vars=escape(t.listing.dataset.vars));return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(106));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(65);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(104)),a=d(n(65)),i=d(n(66)),s=d(n(105)),l=n(64),c=n(108),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(67);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,m=e.html,h=e.masonry_selector,v=e.masonry_columnwidth,_=e.masonry_animation,y=e.masonry_horizontalorder,b=e.speed,w=e.masonry_init,x=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===_&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===_&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===_&&(S="translateY(-50px)",A="translateY(0)"),"none"===_&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=h,y="true"===y,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(w&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:h,transitionDuration:x,columnWidth:v,horizontalOrder:y,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(h);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(m,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(68)),i=n(107);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],m=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,m)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var h="";switch(e.target?(h=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(h):(h=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(h),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(68));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(63),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var e=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_settings.container);if(n){(function(t){if(!t)return 0;var e=document.querySelectorAll(t);return e?e.length:0})(t.addons.woocommerce_settings.container)>1&&console.warn("ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_settings.products);r?(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title):console.warn("ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products"),t.addons.woocommerce_settings.paged>1&&function(t){if(t&&t.addons.woocommerce_settings.results_text){var e=document.querySelectorAll(t.addons.woocommerce_settings.results);if(e.length<1)return!1;var n=t.addons.woocommerce_settings.settings.previous_page_link,r=t.addons.woocommerce_settings.settings.previous_page_label,o=t.addons.woocommerce_settings.settings.previous_page_sep;e.forEach((function(t){n&&r&&(t.innerHTML=s(t,n,r,o))}))}}(t)}else console.warn("ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container")},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var a=document.querySelector(e.addons.woocommerce_settings.container),s=t.querySelectorAll(e.addons.woocommerce_settings.products),l=e.addons.woocommerce_settings.paged_urls[e.page];a&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(a,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooReset=function(){return new Promise((function(t){var e=window.location;r.default.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(e){t(!1)}))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_settings.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results),r=e.addons.woocommerce_settings.settings.previous_page_link,o=e.addons.woocommerce_settings.settings.previous_page_label,a=e.addons.woocommerce_settings.settings.previous_page_sep;e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=r&&o?s(n,r,o,a):n.innerHTML}))}}(r,e)}return n};var r=a(n(63)),o=a(n(109));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n,r){var o=" "+r+' <a href="'+e+'">'+n+"</a>";return t.innerHTML+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66),a=(r=o)&&r.__esModule?r:{default:r};var i=n(67);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_next_page_url;t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);if(r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged,t.addons.elementor_masonry){var o=void 0;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){s(t,"."+t.addons.elementor_container_class,"."+t.addons.elementor_item_class)}),100)}))}),250)}}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_element.querySelector("."+e.addons.elementor_container_class),l=t.querySelectorAll("."+e.addons.elementor_item_class),c=e.addons.elementor_current_url;o&&l&&c?(l=Array.prototype.slice.call(l),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,l,e,n,c,"alm-elementor");case 2:e.addons.elementor_masonry&&setTimeout((function(){s(e,"."+e.addons.elementor_container_class,"."+e.addons.elementor_item_class)}),125),r(!0);case 4:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")}))):r(!1)}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:"",e.addons.elementor_current_url=e.addons.elementor_next_page_url,e.addons.elementor_next_page_url=(i=r,s=e.addons.elementor_pagination_class,(c=i.querySelector(s))?l(c):"")}var i,s,c;return n},e.elementorCreateParams=function(t){t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-widget-wrap "+t.addons.elementor_settings.target):"",t.addons.elementor_widget=function(t){if(!t)return!1;return t.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(t.addons.elementor_element),(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";return t.addons.elementor_container_class="woocommerce"===e?t.addons.elementor_settings.woo_container_class:t.addons.elementor_settings.posts_container_class,t.addons.elementor_item_class="woocommerce"===e?t.addons.elementor_settings.woo_item_class:t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class="woocommerce"===e?"."+t.addons.elementor_settings.woo_pagination_class:"."+t.addons.elementor_settings.posts_pagination_class,t}(t,t.addons.elementor_widget)).addons.elementor_pagination=t.addons.elementor_element.querySelector(t.addons.elementor_pagination_class)||t.addons.elementor_element.querySelector("."+t.addons.elementor_settings.pagination_class),t.addons.elementor_pagination=!!t.addons.elementor_pagination&&t.addons.elementor_pagination,t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_current_url=window.location.href,t.addons.elementor_next_page_url=l(t.addons.elementor_pagination),t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){if(!t.addons.elementor_element)return t;var e=t.addons.elementor_element,n=e.dataset.settings?JSON.parse(e.dataset.settings):"";if(!n)return t;t.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),t.addons.elementor_masonry&&(t.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),t.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),t.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),t.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");t.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?");return t};var r,o=n(109),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var f=d.querySelectorAll(n);if(!f)return!1;f.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop=Math.round(c)+"px",r[i]+=o}else r.push(o)}))}function l(t){return t&&t.querySelector("a.next")?t.querySelector("a.next").href:""}},function(t,e,n){n(184)},function(t,e,n){"use strict";n(185),n(328),n(330),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(351),n(355)},function(t,e,n){n(186),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(267),n(268),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(89),n(291),n(130),n(292),n(131),n(293),n(294),n(295),n(296),n(132),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(12),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(70),m=n(111),h=n(188),v=n(54),_=n(3),y=n(4),b=n(10),w=n(16),x=n(27),S=n(29),A=n(34),j=n(114),P=n(21),E=n(53),L=n(9),O=n(32),M=P.f,T=L.f,I=j.f,C=r.Symbol,N=r.JSON,F=N&&N.stringify,k=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,D=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),U=Object.prototype,W="function"==typeof C&&!!E.f,H=r.QObject,V=!H||!H.prototype||!H.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=M(U,e);r&&delete U[e],T(t,e,n),r&&t!==U&&T(U,e,r)}:T,Y=function(t){var e=z[t]=A(C.prototype);return e._k=t,e},X=W&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},Q=function(t,e,n){return t===U&&Q(B,e,n),_(t),e=x(e,!0),_(n),o(z,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){_(t);for(var n,r=h(e=w(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=q.call(this,t=x(t,!0));return!(this===U&&o(z,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=w(t),e=x(e,!0),t!==U||!o(z,e)||o(B,e)){var n=M(t,e);return!n||!o(z,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],a=0;n.length>a;)o(z,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===U,r=I(n?B:w(t)),a=[],i=0;r.length>i;)!o(z,e=r[i++])||n&&!o(U,e)||a.push(z[e]);return a};W||(s((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(U,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),P.f=K,L.f=Q,n(35).f=j.f=Z,n(46).f=J,E.f=tt,a&&!n(31)&&s(U,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!W,{Symbol:C});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=O(p.store),ot=0;rt.length>ot;)m(rt[ot++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=C(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!W,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){E.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return E.f(b(t))}}),N&&i(i.S+i.F*(!W||c((function(){var t=C();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(y(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,F.apply(N,r)}}),C.prototype[R]||n(15)(C.prototype,R,C.prototype.valueOf),d(C,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(113)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(114).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(115)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(116)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(74).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(12)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(117)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(119);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(120);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(76),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,m=p.prototype,h="Number"==a(n(34)(m)),v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(h?l((function(){m.valueOf.call(n)})):"Number"!=a(n))?i(new g(_(e)),n,p):_(e)};for(var y,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,y=b[w])&&!o(p,y)&&d(p,y,u(g,y));p.prototype=m,m.constructor=p,n(12)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(121),i=n(77),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),m="",h="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),h=p()}else d(0,n),d(1<<-e,0),h=p()+i.call("0",c);return h=c>0?m+((s=h.length)<=c?"0."+i.call("0",c-s)+h:h.slice(0,s-c)+"."+h.slice(s-c)):m+h}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(121),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(122)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(122),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(120);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(119);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(123),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(231)})},function(t,e,n){var r=n(78),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(123)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(78)})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(79),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(80)(!0);n(81)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(80)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".endsWith;r(r.P+r.F*n(84)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(82);r(r.P+r.F*n(84)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(77)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(82),i="".startsWith;r(r.P+r.F*n(84)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(13)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(13)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(13)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(13)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(13)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(13)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(13)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(13)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(13)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(13)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(13)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(13)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(13)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(266);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(12)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(269))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(125),s=n(85),l=n(6),c=n(86),u=n(87);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,h=void 0!==m,v=0,_=u(f);if(h&&(m=r(m,g>2?arguments[2]:void 0,2)),null==_||p==Array&&s(_))for(n=new p(e=l(f.length));e>v;v++)c(n,v,h?m(f[v],v):f[v]);else for(d=_.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,h?i(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(86);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(73),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(127);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(127);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(128)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(88)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(76),a=n(9).f,i=n(35).f,s=n(83),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var m=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},h=i(u),v=0;h.length>v;)m(h[v++]);d.constructor=c,c.prototype=d,n(12)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(131);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(12)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(91),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(91),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var h=d.global;if(h){var v=d.unicode;d.lastIndex=0}for(var _=[];;){var y=l(d,f);if(null===y)break;if(_.push(y),!h)break;""===String(y[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<_.length;S++){y=_[S];for(var A=String(y[0]),j=c(u(i(y.index),f.length),0),P=[],E=1;E<y.length;E++)P.push(void 0===(b=y[E])?b:String(b));var L=y.groups;if(p){var O=[A].concat(P,j,f);void 0!==L&&O.push(L);var M=String(e.apply(void 0,O))}else M=m(A,f,j,P,L,e);j>=x&&(w+=f.slice(x,j)+M,x=j+A.length)}return w+f.slice(x)}];function m(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(116),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(83),o=n(3),a=n(48),i=n(91),s=n(6),l=n(57),c=n(90),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,u+"g");(a=c.call(m,o))&&!((i=m.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)m.lastIndex===a.index&&m.lastIndex++;return d===o[p]?!s&&m.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):m.call(String(o),n,r)},function(t,e){var r=u(m,t,this,e,m!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),h=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),_=new p(g?c:"^(?:"+c.source+")",v),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===f.length)return null===l(_,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){_.lastIndex=g?w:0;var S,A=l(_,g?f:f.slice(w));if(null===A||(S=d(s(_.lastIndex+(g?0:w)),f.length))===b)w=i(f,w,h);else{if(x.push(f.slice(b,w)),x.length===y)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===y)return x;w=b=S}}return x.push(f.slice(b)),x}]}))},function(t,e,n){var r=n(1),o=n(92).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(135),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(135),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(12),s=n(28),l=n(115),c=n(136),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,m=Object.isExtensible,h=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(u(t)){var e=g(t);return!0===e?h(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},y=t.exports=n(61)("WeakMap",v,_,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,_),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!m(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(136),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(93),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,m=f.prototype.slice,h=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&h in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(93).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(117),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(124)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(138)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(74);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(329),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(331),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(332),a=n(10),i=n(6),s=n(19),l=n(126);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,m,h=u,v=0,_=!!f&&i(f,p,3);v<c;){if(v in l){if(g=_?_(l[v],v,n):l[v],m=!1,o(g)&&(m=void 0!==(m=g[s])?!!m:r(g)),m&&d>0)h=t(e,n,g,a(g.length),h,d-1)-1;else{if(h>=9007199254740991)throw TypeError();e[h]=g}h++}v++}return h}},function(t,e,n){n(334),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(139),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(336),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(139),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(338),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(340),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(342),t.exports=n(70).f("asyncIterator")},function(t,e,n){n(111)("asyncIterator")},function(t,e,n){n(344),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(138),a=n(16),i=n(21),s=n(86);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(346),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(140)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(348),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(140)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(132),n(350),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(134);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(352),n(353),n(354),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(92);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(89),o=n(32),a=n(12),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),m=0;m<g.length;m++){var h,v=g[m],_=p[v],y=i[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,_))for(h in r)b[h]||a(b,h,r[h],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=b(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function p(){}var g={};g[o]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(A([])));h&&h!==e&&n.call(h,o)&&(g=h);var v=p.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(v),s(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(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),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);if("function"==typeof setTimeout){var r=this;setTimeout((function(){r.nativeFocus(),n(e)}),0)}else this.nativeFocus(),n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(359),o=n(360),a=n(94);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(141),o=n(94),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,m,h,v,_){var y,b=e;if("function"==typeof u?b=u(n,b):b instanceof Date?b=g(b):"comma"===o&&s(b)&&(b=r.maybeMap(b,(function(t){return t instanceof Date?g(t):t}))),null===b){if(a)return l&&!v?l(n,f.encoder,_,"key",m):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(b))return l?[h(v?n:l(n,f.encoder,_,"key",m))+"="+h(l(b,f.encoder,_,"value",m))]:[h(n)+"="+h(String(b))];var w,x=[];if(void 0===b)return x;if("comma"===o&&s(b))w=[{value:b.length>0?b.join(",")||null:void 0}];else if(s(u))w=u;else{var S=Object.keys(b);w=d?S.sort(d):S}for(var A=0;A<w.length;++A){var j=w[A],P="object"==typeof j&&void 0!==j.value?j.value:b[j];if(!i||null!==P){var E=s(b)?"function"==typeof o?o(n,j):n:n+(p?"."+j:"["+j+"]");c(x,t(P,E,o,a,i,l,u,d,p,g,m,h,v,_))}}return x};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var m=0;m<n.length;++m){var h=n[m];l.skipNulls&&null===r[h]||c(d,p(r[h],h,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},function(t,e,n){"use strict";var r=n(141),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,h,v=f[n],_=v.indexOf("]="),y=-1===_?v.indexOf("="):_+1;-1===y?(m=e.decoder(v,i.decoder,g,"key"),h=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,y),i.decoder,g,"key"),h=r.maybeMap(l(v.slice(y+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),h&&e.interpretNumericEntities&&"iso-8859-1"===g&&(h=s(h)),v.indexOf("[]=")>-1&&(h=a(h)?[h]:h),o.call(c,m)?c[m]=r.combine(c[m],h):c[m]=h}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],m=c(g,u[g],n,"string"==typeof t);d=r.merge(d,m,n)}return r.compact(d)}}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/functions.php
CHANGED
@@ -2,18 +2,16 @@
|
|
2 |
// @codingStandardsIgnoreStart
|
3 |
include_once ALM_PATH . 'core/functions/addons.php';
|
4 |
include_once ALM_PATH . 'core/functions/masonry.php';
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
*
|
10 |
-
*
|
11 |
-
*
|
12 |
-
*
|
13 |
-
|
14 |
-
* @param $progress_bar_color string
|
15 |
-
* @since 3.1.0
|
16 |
-
*/
|
17 |
function alm_progress_css($counter, $progress_bar, $progress_bar_color){
|
18 |
if($counter == 1 && $progress_bar === 'true'){
|
19 |
$style = '
|
@@ -46,7 +44,6 @@ function alm_css_disabled($setting) {
|
|
46 |
/**
|
47 |
* Load ALM CSS inline.
|
48 |
*
|
49 |
-
*
|
50 |
* @param $setting name of the setting field
|
51 |
* @return boolean
|
52 |
* @since 3.3.1
|
@@ -69,27 +66,27 @@ function alm_do_inline_css($setting) {
|
|
69 |
/**
|
70 |
* This function will return HTML of a looped item.
|
71 |
*
|
72 |
-
* @param string
|
73 |
-
* @param string
|
74 |
-
* @param string
|
75 |
-
* @param string
|
76 |
-
* @param string
|
77 |
-
* @param string
|
78 |
-
* @param string
|
79 |
-
* @param array
|
80 |
* @param boolean $ob
|
81 |
* @return $html
|
82 |
* @since 3.7
|
83 |
*/
|
84 |
-
function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = '', $args, $ob = true){
|
85 |
|
86 |
if ( $ob ) { // If Output Buffer is true.
|
87 |
ob_start();
|
88 |
}
|
89 |
|
90 |
-
// Theme
|
91 |
if ( $theme_repeater !== 'null' && has_filter( 'alm_get_theme_repeater' ) ) {
|
92 |
-
do_action( 'alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current );
|
93 |
}
|
94 |
// Standard Repeater Templates.
|
95 |
else {
|
@@ -106,7 +103,7 @@ function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm
|
|
106 |
|
107 |
|
108 |
/**
|
109 |
-
* Get the current repeater template file
|
110 |
*
|
111 |
* @param string $repeater current repater name
|
112 |
* @param string $type Type of template *
|
@@ -129,10 +126,10 @@ function alm_get_current_repeater($repeater, $type) {
|
|
129 |
|
130 |
}
|
131 |
|
132 |
-
// Custom Repeaters v2
|
133 |
elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
|
134 |
|
135 |
-
// Custom Repeaters 2.5
|
136 |
if(ALM_UNLIMITED_VERSION >= '2.5'){
|
137 |
// Get path to repeater (alm_templates)
|
138 |
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
@@ -146,17 +143,18 @@ function alm_get_current_repeater($repeater, $type) {
|
|
146 |
|
147 |
}
|
148 |
|
149 |
-
if(!file_exists($include)){ //
|
150 |
$include = alm_get_default_repeater();
|
151 |
}
|
152 |
}
|
153 |
// Default repeater
|
154 |
else{
|
155 |
$include = alm_get_default_repeater();
|
|
|
156 |
}
|
157 |
|
158 |
-
// Security check
|
159 |
-
// Confirm $template does NOT contains relative path
|
160 |
if ( false !== strpos( $template, './' ) ) {
|
161 |
$include = alm_get_default_repeater();
|
162 |
}
|
@@ -164,10 +162,8 @@ function alm_get_current_repeater($repeater, $type) {
|
|
164 |
return $include;
|
165 |
}
|
166 |
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
-
* Get the default repeater template for current blog
|
171 |
*
|
172 |
* @return $include (file path)
|
173 |
* @since 2.5.0
|
@@ -206,38 +202,12 @@ function alm_get_default_repeater() {
|
|
206 |
return $file;
|
207 |
}
|
208 |
|
209 |
-
|
210 |
-
|
211 |
/**
|
212 |
-
* Query by
|
213 |
*
|
214 |
-
* @return $args = array();
|
215 |
* @since 2.5.0
|
216 |
-
* @
|
217 |
*/
|
218 |
-
function alm_get_taxonomy($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
219 |
-
if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
|
220 |
-
$the_terms = explode(",", $taxonomy_terms);
|
221 |
-
$args = array(
|
222 |
-
'taxonomy' => $taxonomy,
|
223 |
-
'field' => 'slug',
|
224 |
-
'terms' => $the_terms,
|
225 |
-
'operator' => $taxonomy_operator,
|
226 |
-
);
|
227 |
-
return $args;
|
228 |
-
}
|
229 |
-
}
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
/*
|
234 |
-
* alm_get_post_format
|
235 |
-
* Query by post format
|
236 |
-
*
|
237 |
-
* @return $args = array();
|
238 |
-
* @since 2.5.0
|
239 |
-
* @updated 2.8.5
|
240 |
-
*/
|
241 |
function alm_get_post_format($post_format){
|
242 |
if(!empty($post_format)){
|
243 |
$format = "post-format-$post_format";
|
@@ -266,15 +236,12 @@ function alm_get_post_format($post_format){
|
|
266 |
}
|
267 |
}
|
268 |
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
*
|
273 |
-
*
|
274 |
-
|
275 |
-
* @return $args = array();
|
276 |
-
* @since 2.8.5
|
277 |
-
*/
|
278 |
function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
279 |
if(!empty($taxonomy) && !empty($taxonomy_terms)){
|
280 |
$taxonomy_term_values = alm_parse_tax_terms($taxonomy_terms);
|
@@ -288,115 +255,28 @@ function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
|
288 |
}
|
289 |
}
|
290 |
|
291 |
-
|
292 |
-
|
293 |
/**
|
294 |
* Parse the taxonomy terms for multiple vals.
|
295 |
*
|
296 |
-
* @helper function @alm_get_taxonomy_query()
|
297 |
-
* @return array;
|
298 |
* @since 2.8.5
|
|
|
|
|
299 |
*/
|
300 |
-
function alm_parse_tax_terms($
|
301 |
-
// Remove all whitespace for $taxonomy_terms because it needs to be an exact match
|
302 |
-
$
|
303 |
-
|
304 |
-
$
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
/**
|
311 |
-
* Query by custom taxonomy values.
|
312 |
-
*
|
313 |
-
* @return $args = array();
|
314 |
-
* @since 2.5.0
|
315 |
-
* @deprecated in 2.8.5
|
316 |
-
*/
|
317 |
-
function alm_get_tax_query($post_format, $taxonomy, $taxonomy_terms, $taxonomy_operator){
|
318 |
-
|
319 |
-
// Taxonomy [ONLY]
|
320 |
-
if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator) && empty($post_format)){
|
321 |
-
$the_terms = explode(",", $taxonomy_terms);
|
322 |
-
$args = array(
|
323 |
-
'taxonomy' => $taxonomy,
|
324 |
-
'field' => 'slug',
|
325 |
-
'terms' => $the_terms,
|
326 |
-
'operator' => $taxonomy_operator,
|
327 |
-
);
|
328 |
-
return $args;
|
329 |
-
}
|
330 |
-
|
331 |
-
// Post Format [ONLY]
|
332 |
-
if(!empty($post_format) && empty($taxonomy)){
|
333 |
-
$format = "post-format-$post_format";
|
334 |
-
|
335 |
-
//If query is for standard then we need to filter by NOT IN
|
336 |
-
if($format == 'post-format-standard'){
|
337 |
-
if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
|
338 |
-
$terms = array();
|
339 |
-
foreach ($post_formats[0] as $format) {
|
340 |
-
$terms[] = 'post-format-'.$format;
|
341 |
-
}
|
342 |
-
}
|
343 |
-
$args = array(
|
344 |
-
'taxonomy' => 'post_format',
|
345 |
-
'terms' => $terms,
|
346 |
-
'field' => 'slug',
|
347 |
-
'operator' => 'NOT IN',
|
348 |
-
);
|
349 |
-
}else{
|
350 |
-
$args = array(
|
351 |
-
'taxonomy' => 'post_format',
|
352 |
-
'field' => 'slug',
|
353 |
-
'terms' => array($format),
|
354 |
-
);
|
355 |
-
}
|
356 |
-
return $args;
|
357 |
-
}
|
358 |
-
|
359 |
-
// Taxonomy && Post Format [COMBINED]
|
360 |
-
if(!empty($post_format) && !empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
|
361 |
-
$the_terms = explode(",", $taxonomy_terms);
|
362 |
-
$args = array(
|
363 |
-
'taxonomy' => $taxonomy,
|
364 |
-
'field' => 'slug',
|
365 |
-
'terms' => $the_terms,
|
366 |
-
'operator' => $taxonomy_operator,
|
367 |
-
);
|
368 |
-
$format = "post-format-$post_format";
|
369 |
-
//If query is for standard then we need to filter by NOT IN
|
370 |
-
if($format == 'post-format-standard'){
|
371 |
-
if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
|
372 |
-
$terms = array();
|
373 |
-
foreach ($post_formats[0] as $format) {
|
374 |
-
$terms[] = 'post-format-'.$format;
|
375 |
-
}
|
376 |
-
}
|
377 |
-
$format_args = array(
|
378 |
-
'taxonomy' => 'post_format',
|
379 |
-
'terms' => $terms,
|
380 |
-
'field' => 'slug',
|
381 |
-
'operator' => 'NOT IN',
|
382 |
-
);
|
383 |
-
}else{
|
384 |
-
$format_args = array(
|
385 |
-
'taxonomy' => 'post_format',
|
386 |
-
'field' => 'slug',
|
387 |
-
'terms' => array($format),
|
388 |
-
);
|
389 |
-
}
|
390 |
-
$args[] = $format_args; // Combined format and tax $args
|
391 |
-
return $args;
|
392 |
-
}
|
393 |
}
|
394 |
|
395 |
/**
|
396 |
* Query by custom field values.
|
397 |
*
|
398 |
-
* @return $args = array();
|
399 |
* @since 2.5.0
|
|
|
400 |
*/
|
401 |
function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
|
402 |
|
@@ -434,26 +314,24 @@ function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
|
|
434 |
}
|
435 |
}
|
436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
|
|
|
|
|
438 |
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
* @return array;
|
445 |
-
* @since 2.6.4
|
446 |
-
*/
|
447 |
-
function alm_parse_meta_value($meta_value, $meta_compare){
|
448 |
-
|
449 |
-
// Meta Query Docs (http://codex.wordpress.org/Class_Reference/WP_Meta_Query)
|
450 |
-
$meta_array = array('IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN');
|
451 |
-
|
452 |
-
if(in_array($meta_compare, $meta_array)){
|
453 |
-
// Remove all whitespace for meta_value because it needs to be an exact match
|
454 |
-
$mv_trimmed = preg_replace('/\s+/', ' ', $meta_value); // Trim whitespace
|
455 |
-
$meta_values = str_replace(', ', ',', $mv_trimmed); // Replace [term, term] with [term,term]
|
456 |
-
$meta_values = ($meta_values === '') ? '' : explode(",", $meta_values);
|
457 |
}else{
|
458 |
$meta_values = $meta_value;
|
459 |
}
|
@@ -463,8 +341,8 @@ function alm_parse_meta_value($meta_value, $meta_compare){
|
|
463 |
/**
|
464 |
* Get type of repeater.
|
465 |
*
|
466 |
-
* @return $type;
|
467 |
* @since 2.9
|
|
|
468 |
*/
|
469 |
function alm_get_repeater_type($repeater){
|
470 |
$type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater value at number to determine type
|
@@ -473,10 +351,10 @@ function alm_get_repeater_type($repeater){
|
|
473 |
}
|
474 |
|
475 |
/**
|
476 |
-
* Get current page base URL
|
477 |
*
|
478 |
-
* @return $canonicalURL;
|
479 |
* @since 2.12
|
|
|
480 |
*/
|
481 |
function alm_get_canonical_url(){
|
482 |
|
@@ -552,10 +430,11 @@ function alm_get_canonical_url(){
|
|
552 |
/**
|
553 |
* Get current page slug
|
554 |
*
|
555 |
-
* @return slug;
|
556 |
* @since 2.13.0
|
|
|
|
|
557 |
*/
|
558 |
-
function alm_get_page_slug($post){
|
559 |
|
560 |
// Exit if admin
|
561 |
if(is_admin()) return false;
|
@@ -626,10 +505,11 @@ function alm_get_page_slug($post){
|
|
626 |
|
627 |
|
628 |
/**
|
629 |
-
* Get current page ID
|
630 |
*
|
631 |
-
* @return $post_id;
|
632 |
* @since 3.0.1
|
|
|
|
|
633 |
*/
|
634 |
function alm_get_page_id($post){
|
635 |
|
@@ -688,15 +568,16 @@ function alm_get_page_id($post){
|
|
688 |
}
|
689 |
|
690 |
/**
|
691 |
-
* Get query param of start page (paged, page)
|
692 |
*
|
693 |
* @since 2.14.0
|
|
|
694 |
*/
|
695 |
-
function alm_get_startpage(){
|
696 |
-
if ( get_query_var('paged') ) {
|
697 |
-
$start_page = get_query_var('paged');
|
698 |
-
} elseif ( get_query_var('page') ) {
|
699 |
-
$start_page = get_query_var('page');
|
700 |
} else {
|
701 |
$start_page = 1;
|
702 |
}
|
@@ -707,11 +588,12 @@ function alm_get_startpage(){
|
|
707 |
* Debug helper for printing variables to screen.
|
708 |
*
|
709 |
* @since 3.7
|
|
|
710 |
*/
|
711 |
-
function alm_pretty_print($query){
|
712 |
-
if($query){
|
713 |
echo '<pre>';
|
714 |
-
print_r($query);
|
715 |
echo '</pre>';
|
716 |
}
|
717 |
}
|
@@ -719,7 +601,7 @@ function alm_pretty_print($query){
|
|
719 |
/**
|
720 |
* Convert dashes to underscores.
|
721 |
*
|
722 |
-
* @param
|
723 |
* @return string
|
724 |
* @since 3.7
|
725 |
*/
|
@@ -730,8 +612,8 @@ function alm_convert_dashes_to_underscore($string = ''){
|
|
730 |
/**
|
731 |
* Remove posts if post__not_in is set in the ALM shortcode.
|
732 |
*
|
733 |
-
* @param $ids
|
734 |
-
* @param $not_in
|
735 |
* @return array
|
736 |
* @since 3.7
|
737 |
*/
|
2 |
// @codingStandardsIgnoreStart
|
3 |
include_once ALM_PATH . 'core/functions/addons.php';
|
4 |
include_once ALM_PATH . 'core/functions/masonry.php';
|
5 |
+
include_once ALM_PATH . 'core/functions/deprecated.php';
|
6 |
|
7 |
+
/**
|
8 |
+
* If progress bar, add the CSS styles for the bar.
|
9 |
+
*
|
10 |
+
* @param $counter int
|
11 |
+
* @param $progress_bar string
|
12 |
+
* @param $progress_bar_color string
|
13 |
+
* @since 3.1.0
|
14 |
+
*/
|
|
|
|
|
|
|
15 |
function alm_progress_css($counter, $progress_bar, $progress_bar_color){
|
16 |
if($counter == 1 && $progress_bar === 'true'){
|
17 |
$style = '
|
44 |
/**
|
45 |
* Load ALM CSS inline.
|
46 |
*
|
|
|
47 |
* @param $setting name of the setting field
|
48 |
* @return boolean
|
49 |
* @since 3.3.1
|
66 |
/**
|
67 |
* This function will return HTML of a looped item.
|
68 |
*
|
69 |
+
* @param string $repeater
|
70 |
+
* @param string $type
|
71 |
+
* @param string $theme_repeater
|
72 |
+
* @param string $alm_found_posts
|
73 |
+
* @param string $alm_page
|
74 |
+
* @param string $alm_item
|
75 |
+
* @param string $alm_current
|
76 |
+
* @param array $args
|
77 |
* @param boolean $ob
|
78 |
* @return $html
|
79 |
* @since 3.7
|
80 |
*/
|
81 |
+
function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = '', $args = [], $ob = true){
|
82 |
|
83 |
if ( $ob ) { // If Output Buffer is true.
|
84 |
ob_start();
|
85 |
}
|
86 |
|
87 |
+
// Theme Repeaters.
|
88 |
if ( $theme_repeater !== 'null' && has_filter( 'alm_get_theme_repeater' ) ) {
|
89 |
+
do_action( 'alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, $args );
|
90 |
}
|
91 |
// Standard Repeater Templates.
|
92 |
else {
|
103 |
|
104 |
|
105 |
/**
|
106 |
+
* Get the current repeater template file.
|
107 |
*
|
108 |
* @param string $repeater current repater name
|
109 |
* @param string $type Type of template *
|
126 |
|
127 |
}
|
128 |
|
129 |
+
// Custom Repeaters v2.
|
130 |
elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
|
131 |
|
132 |
+
// Custom Repeaters 2.5+.
|
133 |
if(ALM_UNLIMITED_VERSION >= '2.5'){
|
134 |
// Get path to repeater (alm_templates)
|
135 |
$base_dir = AjaxLoadMore::alm_get_repeater_path();
|
143 |
|
144 |
}
|
145 |
|
146 |
+
if(!file_exists($include)){ // Confirm file exists.
|
147 |
$include = alm_get_default_repeater();
|
148 |
}
|
149 |
}
|
150 |
// Default repeater
|
151 |
else{
|
152 |
$include = alm_get_default_repeater();
|
153 |
+
|
154 |
}
|
155 |
|
156 |
+
// Security check.
|
157 |
+
// Confirm $template does NOT contains relative path.
|
158 |
if ( false !== strpos( $template, './' ) ) {
|
159 |
$include = alm_get_default_repeater();
|
160 |
}
|
162 |
return $include;
|
163 |
}
|
164 |
|
|
|
|
|
165 |
/**
|
166 |
+
* Get the default repeater template for current blog.
|
167 |
*
|
168 |
* @return $include (file path)
|
169 |
* @since 2.5.0
|
202 |
return $file;
|
203 |
}
|
204 |
|
|
|
|
|
205 |
/**
|
206 |
+
* Query by post format.
|
207 |
*
|
|
|
208 |
* @since 2.5.0
|
209 |
+
* @return array
|
210 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
function alm_get_post_format($post_format){
|
212 |
if(!empty($post_format)){
|
213 |
$format = "post-format-$post_format";
|
236 |
}
|
237 |
}
|
238 |
|
239 |
+
/**
|
240 |
+
* Query for custom taxonomy.
|
241 |
+
*
|
242 |
+
* @since 2.8.5
|
243 |
+
* @return array
|
244 |
+
*/
|
|
|
|
|
|
|
245 |
function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
246 |
if(!empty($taxonomy) && !empty($taxonomy_terms)){
|
247 |
$taxonomy_term_values = alm_parse_tax_terms($taxonomy_terms);
|
255 |
}
|
256 |
}
|
257 |
|
|
|
|
|
258 |
/**
|
259 |
* Parse the taxonomy terms for multiple vals.
|
260 |
*
|
|
|
|
|
261 |
* @since 2.8.5
|
262 |
+
* @param string $terms The taxonomy terms.
|
263 |
+
* @return array
|
264 |
*/
|
265 |
+
function alm_parse_tax_terms($terms){
|
266 |
+
// Remove all whitespace for $taxonomy_terms because it needs to be an exact match.
|
267 |
+
$terms = preg_replace('/\s+/', ' ', $terms);
|
268 |
+
// Remove all spaces by replacing [term, term] with [term,term].
|
269 |
+
$terms = str_replace(', ', ',', $terms);
|
270 |
+
// Create array from string.
|
271 |
+
$terms = explode(",", $terms);
|
272 |
+
return $terms;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
}
|
274 |
|
275 |
/**
|
276 |
* Query by custom field values.
|
277 |
*
|
|
|
278 |
* @since 2.5.0
|
279 |
+
* @return array
|
280 |
*/
|
281 |
function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
|
282 |
|
314 |
}
|
315 |
}
|
316 |
|
317 |
+
/**
|
318 |
+
* Parse the meta value for multiple values.
|
319 |
+
*
|
320 |
+
* @since 2.6.4
|
321 |
+
* @param string $meta_value The meta value.
|
322 |
+
* @param string $meta_compare The compare operator.
|
323 |
+
* @return array
|
324 |
+
*/
|
325 |
+
function alm_parse_meta_value( $meta_value, $meta_compare ) {
|
326 |
|
327 |
+
// Meta Query Docs (http://codex.wordpress.org/Class_Reference/WP_Meta_Query).
|
328 |
+
$meta_array = array( 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' );
|
329 |
|
330 |
+
if ( in_array( $meta_compare, $meta_array ) ) {
|
331 |
+
// Remove all whitespace for meta_value because it needs to be an exact match.
|
332 |
+
$mv_trimmed = preg_replace( '/\s+/', ' ', $meta_value ); // Trim whitespace.
|
333 |
+
$meta_values = str_replace( ', ', ',', $mv_trimmed ); // Replace [term, term] with [term,term].
|
334 |
+
$meta_values = ( $meta_values === '' ) ? '' : explode( ",", $meta_values );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
}else{
|
336 |
$meta_values = $meta_value;
|
337 |
}
|
341 |
/**
|
342 |
* Get type of repeater.
|
343 |
*
|
|
|
344 |
* @since 2.9
|
345 |
+
* @return string
|
346 |
*/
|
347 |
function alm_get_repeater_type($repeater){
|
348 |
$type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater value at number to determine type
|
351 |
}
|
352 |
|
353 |
/**
|
354 |
+
* Get current page base URL.
|
355 |
*
|
|
|
356 |
* @since 2.12
|
357 |
+
* @return string
|
358 |
*/
|
359 |
function alm_get_canonical_url(){
|
360 |
|
430 |
/**
|
431 |
* Get current page slug
|
432 |
*
|
|
|
433 |
* @since 2.13.0
|
434 |
+
* @param array $post_id The current Post ID.
|
435 |
+
* @return string
|
436 |
*/
|
437 |
+
function alm_get_page_slug( $post ) {
|
438 |
|
439 |
// Exit if admin
|
440 |
if(is_admin()) return false;
|
505 |
|
506 |
|
507 |
/**
|
508 |
+
* Get current page ID.
|
509 |
*
|
|
|
510 |
* @since 3.0.1
|
511 |
+
* @param array $post_id The current Post ID.
|
512 |
+
* @return string
|
513 |
*/
|
514 |
function alm_get_page_id($post){
|
515 |
|
568 |
}
|
569 |
|
570 |
/**
|
571 |
+
* Get query param of start page (paged, page).
|
572 |
*
|
573 |
* @since 2.14.0
|
574 |
+
* @return string
|
575 |
*/
|
576 |
+
function alm_get_startpage() {
|
577 |
+
if ( get_query_var( 'paged' ) ) {
|
578 |
+
$start_page = get_query_var( 'paged' );
|
579 |
+
} elseif ( get_query_var( 'page' ) ) {
|
580 |
+
$start_page = get_query_var( 'page' );
|
581 |
} else {
|
582 |
$start_page = 1;
|
583 |
}
|
588 |
* Debug helper for printing variables to screen.
|
589 |
*
|
590 |
* @since 3.7
|
591 |
+
* @param array $query
|
592 |
*/
|
593 |
+
function alm_pretty_print( $query ){
|
594 |
+
if ( $query ) {
|
595 |
echo '<pre>';
|
596 |
+
print_r( $query );
|
597 |
echo '</pre>';
|
598 |
}
|
599 |
}
|
601 |
/**
|
602 |
* Convert dashes to underscores.
|
603 |
*
|
604 |
+
* @param string $string
|
605 |
* @return string
|
606 |
* @since 3.7
|
607 |
*/
|
612 |
/**
|
613 |
* Remove posts if post__not_in is set in the ALM shortcode.
|
614 |
*
|
615 |
+
* @param array $ids
|
616 |
+
* @param array $not_in
|
617 |
* @return array
|
618 |
* @since 3.7
|
619 |
*/
|
core/functions/deprecated.php
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Query by custom taxonomy values.
|
5 |
+
*
|
6 |
+
* @since 2.5.0
|
7 |
+
* @deprecated in 2.5.0
|
8 |
+
* @return array
|
9 |
+
*/
|
10 |
+
function alm_get_taxonomy($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
11 |
+
if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
|
12 |
+
$the_terms = explode(",", $taxonomy_terms);
|
13 |
+
$args = array(
|
14 |
+
'taxonomy' => $taxonomy,
|
15 |
+
'field' => 'slug',
|
16 |
+
'terms' => $the_terms,
|
17 |
+
'operator' => $taxonomy_operator,
|
18 |
+
);
|
19 |
+
return $args;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Query by custom taxonomy values.
|
25 |
+
*
|
26 |
+
* @since 2.5.0
|
27 |
+
* @deprecated in 2.8.5
|
28 |
+
* @return array
|
29 |
+
*/
|
30 |
+
function alm_get_tax_query( $post_format, $taxonomy, $taxonomy_terms, $taxonomy_operator ) {
|
31 |
+
|
32 |
+
// Taxonomy.
|
33 |
+
if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator) && empty($post_format)){
|
34 |
+
$the_terms = explode(",", $taxonomy_terms);
|
35 |
+
$args = array(
|
36 |
+
'taxonomy' => $taxonomy,
|
37 |
+
'field' => 'slug',
|
38 |
+
'terms' => $the_terms,
|
39 |
+
'operator' => $taxonomy_operator,
|
40 |
+
);
|
41 |
+
return $args;
|
42 |
+
}
|
43 |
+
|
44 |
+
// Post Format.
|
45 |
+
if(!empty($post_format) && empty($taxonomy)){
|
46 |
+
$format = "post-format-$post_format";
|
47 |
+
|
48 |
+
// If query is for standard then we need to filter by NOT IN
|
49 |
+
if($format == 'post-format-standard'){
|
50 |
+
if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
|
51 |
+
$terms = array();
|
52 |
+
foreach ($post_formats[0] as $format) {
|
53 |
+
$terms[] = 'post-format-'.$format;
|
54 |
+
}
|
55 |
+
}
|
56 |
+
$args = array(
|
57 |
+
'taxonomy' => 'post_format',
|
58 |
+
'terms' => $terms,
|
59 |
+
'field' => 'slug',
|
60 |
+
'operator' => 'NOT IN',
|
61 |
+
);
|
62 |
+
}else{
|
63 |
+
$args = array(
|
64 |
+
'taxonomy' => 'post_format',
|
65 |
+
'field' => 'slug',
|
66 |
+
'terms' => array($format),
|
67 |
+
);
|
68 |
+
}
|
69 |
+
return $args;
|
70 |
+
}
|
71 |
+
|
72 |
+
// Taxonomy && Post Format.
|
73 |
+
if(!empty($post_format) && !empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
|
74 |
+
$the_terms = explode(",", $taxonomy_terms);
|
75 |
+
$args = array(
|
76 |
+
'taxonomy' => $taxonomy,
|
77 |
+
'field' => 'slug',
|
78 |
+
'terms' => $the_terms,
|
79 |
+
'operator' => $taxonomy_operator,
|
80 |
+
);
|
81 |
+
$format = "post-format-$post_format";
|
82 |
+
//If query is for standard then we need to filter by NOT IN.
|
83 |
+
if($format == 'post-format-standard'){
|
84 |
+
if (($post_formats = get_theme_support('post-formats')) && is_array($post_formats[0]) && count($post_formats[0])) {
|
85 |
+
$terms = array();
|
86 |
+
foreach ($post_formats[0] as $format) {
|
87 |
+
$terms[] = 'post-format-'.$format;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
$format_args = array(
|
91 |
+
'taxonomy' => 'post_format',
|
92 |
+
'terms' => $terms,
|
93 |
+
'field' => 'slug',
|
94 |
+
'operator' => 'NOT IN',
|
95 |
+
);
|
96 |
+
}else{
|
97 |
+
$format_args = array(
|
98 |
+
'taxonomy' => 'post_format',
|
99 |
+
'field' => 'slug',
|
100 |
+
'terms' => array($format),
|
101 |
+
);
|
102 |
+
}
|
103 |
+
$args[] = $format_args; // Combined format and tax $args
|
104 |
+
return $args;
|
105 |
+
}
|
106 |
+
}
|
core/src/js/addons/cache.js
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import axios from 'axios';
|
2 |
+
|
3 |
+
/**
|
4 |
+
* createCacheFile
|
5 |
+
* Create a single post cache file
|
6 |
+
*
|
7 |
+
* @param {Object} alm
|
8 |
+
* @param {String} content
|
9 |
+
* @param {String} type
|
10 |
+
* @since 5.3.1
|
11 |
+
*/
|
12 |
+
export function createCacheFile(alm, content, type = 'standard') {
|
13 |
+
if (alm.addons.cache !== 'true' || !content || content === '') {
|
14 |
+
return false;
|
15 |
+
}
|
16 |
+
|
17 |
+
let name = type === 'single' ? alm.addons.single_post_id : `page-${alm.page + 1}`;
|
18 |
+
|
19 |
+
let formData = new FormData();
|
20 |
+
formData.append('action', 'alm_cache_from_html');
|
21 |
+
formData.append('security', alm_localize.alm_nonce);
|
22 |
+
formData.append('cache_id', alm.addons.cache_id);
|
23 |
+
formData.append('cache_logged_in', alm.addons.cache_logged_in);
|
24 |
+
formData.append('canonical_url', alm.canonical_url);
|
25 |
+
formData.append('name', name);
|
26 |
+
formData.append('html', content.trim());
|
27 |
+
|
28 |
+
axios.post(alm_localize.ajaxurl, formData).then(function (response) {
|
29 |
+
console.log('Cache created for: ' + alm.canonical_url);
|
30 |
+
});
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* wooCache
|
35 |
+
* Create a WooCommerce cache file
|
36 |
+
*
|
37 |
+
* @param {Object} alm
|
38 |
+
* @param {String} content
|
39 |
+
* @since 5.3.1
|
40 |
+
*/
|
41 |
+
export function wooCache(alm, content) {
|
42 |
+
if (alm.addons.cache !== 'true' || !content || content === '') {
|
43 |
+
return false;
|
44 |
+
}
|
45 |
+
|
46 |
+
let formData = new FormData();
|
47 |
+
formData.append('action', 'alm_cache_from_html');
|
48 |
+
formData.append('security', alm_localize.alm_nonce);
|
49 |
+
formData.append('cache_id', alm.addons.cache_id);
|
50 |
+
formData.append('cache_logged_in', alm.addons.cache_logged_in);
|
51 |
+
formData.append('canonical_url', alm.canonical_url);
|
52 |
+
formData.append('name', `page-${alm.page}`);
|
53 |
+
formData.append('html', content.trim());
|
54 |
+
|
55 |
+
axios.post(alm_localize.ajaxurl, formData).then(function (response) {
|
56 |
+
console.log('Cache created for post: ' + alm.canonical_url);
|
57 |
+
//console.log(response);
|
58 |
+
});
|
59 |
+
}
|
core/src/js/addons/elementor.js
ADDED
@@ -0,0 +1,340 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import loadItems from '../modules/loadItems';
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Set up the instance on Elementor
|
5 |
+
*
|
6 |
+
* @param {object} alm
|
7 |
+
* @since 5.3.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
export function elementorInit(alm) {
|
11 |
+
if (!alm.addons.elementor || !alm.addons.elementor_type || !alm.addons.elementor_type === 'posts') {
|
12 |
+
return false;
|
13 |
+
}
|
14 |
+
let target = alm.addons.elementor_element;
|
15 |
+
|
16 |
+
if (target) {
|
17 |
+
// Set button data attributes
|
18 |
+
alm.button.dataset.page = alm.addons.elementor_paged;
|
19 |
+
|
20 |
+
// Set button URL
|
21 |
+
let nextPage = alm.addons.elementor_next_page_url;
|
22 |
+
alm.button.dataset.url = nextPage ? nextPage : '';
|
23 |
+
|
24 |
+
// Set a11y attributes
|
25 |
+
target.setAttribute('aria-live', 'polite');
|
26 |
+
target.setAttribute('aria-atomic', 'true');
|
27 |
+
|
28 |
+
alm.listing.removeAttribute('aria-live');
|
29 |
+
alm.listing.removeAttribute('aria-atomic');
|
30 |
+
|
31 |
+
// Set data atts on 1st grid item
|
32 |
+
let item = target.querySelector(`.${alm.addons.elementor_item_class}`); // Get first `.product` item
|
33 |
+
if (item) {
|
34 |
+
item.classList.add('alm-elementor');
|
35 |
+
item.dataset.url = window.location;
|
36 |
+
item.dataset.page = alm.addons.elementor_paged;
|
37 |
+
item.dataset.pageTitle = document.title;
|
38 |
+
}
|
39 |
+
|
40 |
+
if (alm.addons.elementor_paged > 1) {
|
41 |
+
// maybe soon
|
42 |
+
//almElementorResultsTextInit(alm);
|
43 |
+
}
|
44 |
+
|
45 |
+
// Masonry Window Resize. Delay for masonry to be added via Elementor.
|
46 |
+
if (alm.addons.elementor_masonry) {
|
47 |
+
let resizeTimeout;
|
48 |
+
setTimeout(function () {
|
49 |
+
window.addEventListener('resize', function () {
|
50 |
+
clearTimeout(resizeTimeout);
|
51 |
+
resizeTimeout = setTimeout(function () {
|
52 |
+
positionMasonryItems(alm, `.${alm.addons.elementor_container_class}`, `.${alm.addons.elementor_item_class}`);
|
53 |
+
}, 100);
|
54 |
+
});
|
55 |
+
}, 250);
|
56 |
+
}
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Core ALM Elementor loader.
|
62 |
+
*
|
63 |
+
* @param {HTMLElement} content
|
64 |
+
* @param {object} alm
|
65 |
+
* @param {String} pageTitle
|
66 |
+
* @since 5.3.0
|
67 |
+
*/
|
68 |
+
|
69 |
+
export function elementor(content, alm, pageTitle = document.title) {
|
70 |
+
if (!content || !alm) {
|
71 |
+
return false;
|
72 |
+
}
|
73 |
+
|
74 |
+
return new Promise((resolve) => {
|
75 |
+
let container = alm.addons.elementor_element.querySelector(`.${alm.addons.elementor_container_class}`); // Get post container
|
76 |
+
let items = content.querySelectorAll(`.${alm.addons.elementor_item_class}`); // Get all items in container
|
77 |
+
let url = alm.addons.elementor_current_url; // Current Page URL
|
78 |
+
|
79 |
+
if (container && items && url) {
|
80 |
+
// Convert NodeList to Array
|
81 |
+
items = Array.prototype.slice.call(items);
|
82 |
+
|
83 |
+
// Load the items
|
84 |
+
(async function () {
|
85 |
+
await loadItems(container, items, alm, pageTitle, url, 'alm-elementor');
|
86 |
+
if (alm.addons.elementor_masonry) {
|
87 |
+
setTimeout(function () {
|
88 |
+
positionMasonryItems(alm, `.${alm.addons.elementor_container_class}`, `.${alm.addons.elementor_item_class}`);
|
89 |
+
}, 125);
|
90 |
+
}
|
91 |
+
|
92 |
+
resolve(true);
|
93 |
+
})().catch((e) => {
|
94 |
+
console.log(e, 'There was an error with Elementor');
|
95 |
+
});
|
96 |
+
} else {
|
97 |
+
resolve(false);
|
98 |
+
}
|
99 |
+
});
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Get the content, title and results text from the Ajax response.
|
104 |
+
*
|
105 |
+
* @param {*} response
|
106 |
+
* @param {object} alm
|
107 |
+
* @since 5.4.0
|
108 |
+
*/
|
109 |
+
export function elementorGetContent(response, alm) {
|
110 |
+
let data = {
|
111 |
+
html: '',
|
112 |
+
meta: {
|
113 |
+
postcount: 1,
|
114 |
+
totalposts: alm.localize.total_posts,
|
115 |
+
debug: 'Elementor Query',
|
116 |
+
},
|
117 |
+
};
|
118 |
+
if (response.status === 200 && response.data) {
|
119 |
+
let div = document.createElement('div');
|
120 |
+
div.innerHTML = response.data;
|
121 |
+
|
122 |
+
// Get Page Title
|
123 |
+
let title = div.querySelector('title').innerHTML;
|
124 |
+
data.pageTitle = title;
|
125 |
+
|
126 |
+
// Get Elementor Items HTML
|
127 |
+
let items = div.querySelector(`${alm.addons.elementor_target} .${alm.addons.elementor_container_class}`);
|
128 |
+
data.html = items ? items.innerHTML : '';
|
129 |
+
|
130 |
+
// Set Page URL Params
|
131 |
+
alm.addons.elementor_current_url = alm.addons.elementor_next_page_url; // Set current to previous page URL
|
132 |
+
alm.addons.elementor_next_page_url = elementorGetNextPage(div, alm.addons.elementor_pagination_class);
|
133 |
+
|
134 |
+
// Results Text
|
135 |
+
//almElementorResultsText(div, alm);
|
136 |
+
}
|
137 |
+
|
138 |
+
return data;
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* Create Elementor Params for ALM.
|
143 |
+
*
|
144 |
+
* @param Object alm
|
145 |
+
* @return alm
|
146 |
+
*/
|
147 |
+
export function elementorCreateParams(alm) {
|
148 |
+
// Get Settings
|
149 |
+
alm.addons.elementor_type = 'posts';
|
150 |
+
alm.addons.elementor_settings = JSON.parse(alm.listing.dataset.elementorSettings);
|
151 |
+
|
152 |
+
// Parse Container Settings
|
153 |
+
alm.addons.elementor_target = alm.addons.elementor_settings.target;
|
154 |
+
alm.addons.elementor_element = alm.addons.elementor_settings.target
|
155 |
+
? document.querySelector(`.elementor-widget-wrap ${alm.addons.elementor_settings.target}`)
|
156 |
+
: '';
|
157 |
+
alm.addons.elementor_widget = elementorGetWidgetType(alm.addons.elementor_element);
|
158 |
+
|
159 |
+
// Masonry
|
160 |
+
alm = setElementorClasses(alm, alm.addons.elementor_widget);
|
161 |
+
|
162 |
+
// Pagination Element
|
163 |
+
alm.addons.elementor_pagination =
|
164 |
+
alm.addons.elementor_element.querySelector(alm.addons.elementor_pagination_class) ||
|
165 |
+
alm.addons.elementor_element.querySelector(`.${alm.addons.elementor_settings.pagination_class}`);
|
166 |
+
alm.addons.elementor_pagination = alm.addons.elementor_pagination ? alm.addons.elementor_pagination : false;
|
167 |
+
|
168 |
+
alm.addons.elementor_controls = alm.addons.elementor_settings.controls;
|
169 |
+
alm.addons.elementor_controls = alm.addons.elementor_controls === 'true' ? true : false;
|
170 |
+
alm.addons.elementor_scrolltop = parseInt(alm.addons.elementor_settings.scrolltop);
|
171 |
+
|
172 |
+
// Set Page & URL params
|
173 |
+
alm.addons.elementor_current_url = window.location.href;
|
174 |
+
alm.addons.elementor_next_page_url = elementorGetNextUrl(alm.addons.elementor_pagination);
|
175 |
+
alm.addons.elementor_paged = alm.addons.elementor_settings.paged ? parseInt(alm.addons.elementor_settings.paged) : 1;
|
176 |
+
alm.page = parseInt(alm.page) + alm.addons.elementor_paged;
|
177 |
+
|
178 |
+
// Masonry
|
179 |
+
alm = parseMasonryConfig(alm);
|
180 |
+
|
181 |
+
if (!alm.addons.elementor_element) {
|
182 |
+
console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");
|
183 |
+
}
|
184 |
+
if (!alm.addons.elementor_pagination) {
|
185 |
+
console.warn(
|
186 |
+
'Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?'
|
187 |
+
);
|
188 |
+
}
|
189 |
+
return alm;
|
190 |
+
}
|
191 |
+
|
192 |
+
/**
|
193 |
+
* Set the required classnames for parsing data and injecting content into the Elementor listing
|
194 |
+
*
|
195 |
+
* @param {*} alm
|
196 |
+
* @param {*} type
|
197 |
+
*/
|
198 |
+
function setElementorClasses(alm, type = 'posts') {
|
199 |
+
// Container Class
|
200 |
+
alm.addons.elementor_container_class =
|
201 |
+
type === 'woocommerce' ? alm.addons.elementor_settings.woo_container_class : alm.addons.elementor_settings.posts_container_class;
|
202 |
+
|
203 |
+
// Item Class
|
204 |
+
alm.addons.elementor_item_class = type === 'woocommerce' ? alm.addons.elementor_settings.woo_item_class : alm.addons.elementor_settings.posts_item_class;
|
205 |
+
|
206 |
+
// Pagination Class
|
207 |
+
alm.addons.elementor_pagination_class =
|
208 |
+
type === 'woocommerce' ? `.${alm.addons.elementor_settings.woo_pagination_class}` : `.${alm.addons.elementor_settings.posts_pagination_class}`;
|
209 |
+
|
210 |
+
return alm;
|
211 |
+
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* Parse Masonry Settings from Elementor Data atts
|
215 |
+
*
|
216 |
+
* @param {*} alm
|
217 |
+
*/
|
218 |
+
function parseMasonryConfig(alm) {
|
219 |
+
if (!alm.addons.elementor_element) {
|
220 |
+
return alm; // Exit if not found.
|
221 |
+
}
|
222 |
+
|
223 |
+
const target = alm.addons.elementor_element;
|
224 |
+
|
225 |
+
const settings = target.dataset.settings ? JSON.parse(target.dataset.settings) : '';
|
226 |
+
if (!settings) {
|
227 |
+
return alm; // Exit if not found.
|
228 |
+
}
|
229 |
+
|
230 |
+
alm.addons.elementor_masonry = settings.hasOwnProperty('cards_masonry') || settings.hasOwnProperty('classic_masonry');
|
231 |
+
if (alm.addons.elementor_masonry) {
|
232 |
+
alm.addons.elementor_masonry_columns = parseInt(settings.cards_columns) || parseInt(settings.classic_columns);
|
233 |
+
alm.addons.elementor_masonry_columns_mobile = parseInt(settings.cards_columns_mobile) || parseInt(settings.classic_columns_mobile);
|
234 |
+
alm.addons.elementor_masonry_columns_tablet = parseInt(settings.cards_columns_tablet) || parseInt(settings.classic_columns_tablet);
|
235 |
+
alm.addons.elementor_masonry_gap = parseInt(settings.cards_row_gap.size);
|
236 |
+
}
|
237 |
+
|
238 |
+
return alm;
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Position Elementor Masonry Items
|
243 |
+
*
|
244 |
+
* @param {*} alm
|
245 |
+
* @param {*} container_class
|
246 |
+
* @param {*} item_class
|
247 |
+
*/
|
248 |
+
function positionMasonryItems(alm, container_class, item_class) {
|
249 |
+
let heights = [];
|
250 |
+
|
251 |
+
// Get Elementor Settings
|
252 |
+
const columnsCount = alm.addons.elementor_masonry_columns;
|
253 |
+
const columnsCountTablet = alm.addons.elementor_masonry_columns_tablet;
|
254 |
+
const columnsCountMobile = alm.addons.elementor_masonry_columns_mobile;
|
255 |
+
const verticalSpaceBetween = alm.addons.elementor_masonry_gap;
|
256 |
+
let columns = columnsCount;
|
257 |
+
|
258 |
+
// Get Elementor Breakpoints
|
259 |
+
const breakpoints = window.elementorFrontendConfig && window.elementorFrontendConfig.breakpoints ? window.elementorFrontendConfig.breakpoints : 0;
|
260 |
+
const windowW = window.innerWidth;
|
261 |
+
|
262 |
+
// Set Columns
|
263 |
+
if (windowW > breakpoints.lg) {
|
264 |
+
columns = columnsCount;
|
265 |
+
} else if (windowW > breakpoints.md) {
|
266 |
+
columns = columnsCountTablet;
|
267 |
+
} else {
|
268 |
+
columns = columnsCountMobile;
|
269 |
+
}
|
270 |
+
|
271 |
+
// Get Containers
|
272 |
+
const container = document.querySelector(container_class);
|
273 |
+
if (!container) {
|
274 |
+
return false;
|
275 |
+
}
|
276 |
+
const items = container.querySelectorAll(item_class);
|
277 |
+
if (!items) {
|
278 |
+
return false;
|
279 |
+
}
|
280 |
+
|
281 |
+
// Loop items
|
282 |
+
items.forEach((item, index) => {
|
283 |
+
let row = Math.floor(index / columns);
|
284 |
+
let itemHeight = item.getBoundingClientRect().height + verticalSpaceBetween;
|
285 |
+
|
286 |
+
if (row) {
|
287 |
+
let itemPosition = jQuery(item).position();
|
288 |
+
let indexAtRow = index % columns;
|
289 |
+
let pullHeight = Math.round(itemPosition.top) - heights[indexAtRow];
|
290 |
+
|
291 |
+
pullHeight *= -1;
|
292 |
+
item.style.marginTop = `${Math.round(pullHeight)}px`;
|
293 |
+
heights[indexAtRow] += itemHeight;
|
294 |
+
} else {
|
295 |
+
heights.push(itemHeight);
|
296 |
+
}
|
297 |
+
});
|
298 |
+
}
|
299 |
+
|
300 |
+
/**
|
301 |
+
* Determine the type of elementor widget (woocommerce || posts)
|
302 |
+
*
|
303 |
+
* @param {*} target
|
304 |
+
* @param {*} classname
|
305 |
+
*/
|
306 |
+
function elementorGetWidgetType(target) {
|
307 |
+
if (!target) {
|
308 |
+
return false;
|
309 |
+
}
|
310 |
+
// If container contains the woocommerce elementor class
|
311 |
+
const type = target.classList.contains('elementor-wc-products') ? 'woocommerce' : 'posts';
|
312 |
+
return type;
|
313 |
+
}
|
314 |
+
|
315 |
+
/**
|
316 |
+
* Get the upcoming URL from the a.next link from the HTML
|
317 |
+
*
|
318 |
+
* @param {HTMLElement} element
|
319 |
+
* @param {String} classname
|
320 |
+
* @return {string} href
|
321 |
+
*/
|
322 |
+
function elementorGetNextPage(element, classname) {
|
323 |
+
const pagination = element.querySelector(classname);
|
324 |
+
const href = pagination ? elementorGetNextUrl(pagination) : '';
|
325 |
+
|
326 |
+
return href;
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Get the URL of the next page to load from the a.next href
|
331 |
+
*
|
332 |
+
* @param {HTMLElement} element
|
333 |
+
* @return {String} url
|
334 |
+
*/
|
335 |
+
function elementorGetNextUrl(element) {
|
336 |
+
if (!element) {
|
337 |
+
return '';
|
338 |
+
}
|
339 |
+
return element.querySelector('a.next') ? element.querySelector('a.next').href : '';
|
340 |
+
}
|
core/src/js/addons/filters.js
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import getQueryVariable from '../helpers/getQueryVariable';
|
2 |
+
const FILTERS_CLASSNAME = 'alm-filters';
|
3 |
+
|
4 |
+
/**
|
5 |
+
* parseQuerystring
|
6 |
+
* Parse a filter querystring for returning caches directories
|
7 |
+
*
|
8 |
+
* @param {Object} alm
|
9 |
+
* @param {Array} elements
|
10 |
+
* @since 5.3.1
|
11 |
+
*/
|
12 |
+
export function parseQuerystring(path) {
|
13 |
+
// Get querystring
|
14 |
+
let query = window.location.search.substring(1);
|
15 |
+
let obj = '';
|
16 |
+
let cache_dir = '';
|
17 |
+
|
18 |
+
// Parse querystring into object
|
19 |
+
if (query) {
|
20 |
+
obj = JSON.parse('{"' + query.replace(/&/g, '","').replace(/=/g, '":"') + '"}', function (key, value) {
|
21 |
+
// Replace + with - in URL
|
22 |
+
return key === '' ? value : decodeURIComponent(value.replace(/\+/g, '-'));
|
23 |
+
});
|
24 |
+
|
25 |
+
// Remove the following properties from the object as they should not be included in the cache ID
|
26 |
+
|
27 |
+
if (obj.pg) {
|
28 |
+
// `pg` object prop
|
29 |
+
delete obj.pg;
|
30 |
+
}
|
31 |
+
|
32 |
+
if (obj.auto) {
|
33 |
+
// `auto` object prop
|
34 |
+
delete obj.auto;
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
if (obj) {
|
39 |
+
cache_dir += '/';
|
40 |
+
Object.keys(obj).forEach((key, index) => {
|
41 |
+
cache_dir += index > 0 ? '--' : '';
|
42 |
+
cache_dir += `${key}--${obj[key]}`;
|
43 |
+
});
|
44 |
+
}
|
45 |
+
|
46 |
+
return path + cache_dir;
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Build new paging URL for filters
|
51 |
+
*
|
52 |
+
* @param {Object} alm
|
53 |
+
* @param {String} querystring
|
54 |
+
* @param {Int} page
|
55 |
+
* @since 5.3.5
|
56 |
+
*/
|
57 |
+
export function buildFilterURL(alm, querystring = '', page = 0) {
|
58 |
+
let qs = querystring;
|
59 |
+
|
60 |
+
if (alm.addons.filters_paging) {
|
61 |
+
if (page > 1) {
|
62 |
+
// Paged
|
63 |
+
if (qs) {
|
64 |
+
// If already has `pg` in querystring
|
65 |
+
if (getQueryVariable('pg')) {
|
66 |
+
qs = querystring.replace(/(pg=)[^\&]+/, '$1' + page);
|
67 |
+
} else {
|
68 |
+
qs = querystring + '&pg=' + page;
|
69 |
+
}
|
70 |
+
} else {
|
71 |
+
qs = '?pg=' + page;
|
72 |
+
}
|
73 |
+
} else {
|
74 |
+
// Not Paged
|
75 |
+
qs = querystring.replace(/(pg=)[^\&]+/, '');
|
76 |
+
qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring
|
77 |
+
qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
return qs;
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Create data attributes for Filters paged results
|
86 |
+
*
|
87 |
+
* @param {Object} alm
|
88 |
+
* @param {Array} elements
|
89 |
+
* @since 5.3.1
|
90 |
+
*/
|
91 |
+
export function createMasonryFiltersPage(alm, element) {
|
92 |
+
if (!alm.addons.filters) {
|
93 |
+
return element;
|
94 |
+
}
|
95 |
+
|
96 |
+
let querystring = window.location.search;
|
97 |
+
let page = alm.page + 1;
|
98 |
+
page = alm.addons.preloaded === 'true' ? page + 1 : page;
|
99 |
+
element = masonryFiltersAtts(alm, element, querystring, page);
|
100 |
+
|
101 |
+
return element;
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Create data attributes for Filters - used when ?pg=2, ?pg=3 etc are hit on page load
|
106 |
+
*
|
107 |
+
* @param {Object} alm
|
108 |
+
* @param {Array} elements
|
109 |
+
* @since 5.3.1
|
110 |
+
*/
|
111 |
+
export function createMasonryFiltersPages(alm, elements) {
|
112 |
+
if (!alm.addons.filters) {
|
113 |
+
return elements;
|
114 |
+
}
|
115 |
+
|
116 |
+
let pagenum = 1;
|
117 |
+
let page = alm.page;
|
118 |
+
let querystring = window.location.search;
|
119 |
+
|
120 |
+
if (alm.addons.filters_startpage > 1) {
|
121 |
+
// Create pages
|
122 |
+
let posts_per_page = parseInt(alm.posts_per_page);
|
123 |
+
let return_data = [];
|
124 |
+
|
125 |
+
// Slice data array into individual pages
|
126 |
+
for (let i = 0; i < elements.length; i += posts_per_page) {
|
127 |
+
return_data.push(elements.slice(i, posts_per_page + i));
|
128 |
+
}
|
129 |
+
|
130 |
+
// Loop new data array
|
131 |
+
for (let k = 0; k < return_data.length; k++) {
|
132 |
+
let target = k > 0 ? k * posts_per_page : 0;
|
133 |
+
pagenum = k + 1;
|
134 |
+
|
135 |
+
if (elements[target]) {
|
136 |
+
elements[target] = masonryFiltersAtts(alm, elements[target], querystring, pagenum);
|
137 |
+
}
|
138 |
+
}
|
139 |
+
} else {
|
140 |
+
pagenum = page;
|
141 |
+
if (elements && elements[0]) {
|
142 |
+
elements[0] = masonryFiltersAtts(alm, elements[0], querystring, pagenum);
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
return elements;
|
147 |
+
}
|
148 |
+
|
149 |
+
// Create the attributes (page, url, classes) for the masonry items
|
150 |
+
function masonryFiltersAtts(alm, element, querystring, pagenum) {
|
151 |
+
element.classList.add(FILTERS_CLASSNAME);
|
152 |
+
element.dataset.page = pagenum;
|
153 |
+
if (pagenum > 1) {
|
154 |
+
element.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
|
155 |
+
} else {
|
156 |
+
let updatedQS = querystring.replace(/(pg=)[^\&]+/, ''); // Remove `pg` from querysting
|
157 |
+
updatedQS = updatedQS === '?' ? '' : updatedQS; // Remove empty querysting
|
158 |
+
|
159 |
+
element.dataset.url = alm.canonical_url + updatedQS;
|
160 |
+
}
|
161 |
+
|
162 |
+
return element;
|
163 |
+
}
|
core/src/js/addons/seo.js
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* createMasonrySEOPage
|
3 |
+
* Create data attributes for SEO paged results
|
4 |
+
*
|
5 |
+
* @param {Object} alm
|
6 |
+
* @param {Array} elements
|
7 |
+
* @since 5.3.1
|
8 |
+
*/
|
9 |
+
export function createMasonrySEOPage(alm, element) {
|
10 |
+
if (!alm.addons.seo) {
|
11 |
+
return element;
|
12 |
+
}
|
13 |
+
|
14 |
+
let querystring = window.location.search;
|
15 |
+
let seo_class = 'alm-seo';
|
16 |
+
let page = alm.page + 1;
|
17 |
+
page = alm.addons.preloaded === 'true' ? page + 1 : page;
|
18 |
+
element = masonrySEOAtts(alm, element, querystring, seo_class, page);
|
19 |
+
|
20 |
+
return element;
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* createMasonrySEOPages
|
25 |
+
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
26 |
+
*
|
27 |
+
* @param {Object} alm
|
28 |
+
* @param {Array} elements
|
29 |
+
* @since 5.3.1
|
30 |
+
*/
|
31 |
+
export function createMasonrySEOPages(alm, elements) {
|
32 |
+
if (!alm.addons.seo) {
|
33 |
+
return elements;
|
34 |
+
}
|
35 |
+
|
36 |
+
let pagenum = 1;
|
37 |
+
let page = alm.page;
|
38 |
+
let seo_class = 'alm-seo';
|
39 |
+
let querystring = window.location.search;
|
40 |
+
|
41 |
+
if (alm.start_page > 1) {
|
42 |
+
// Create pages
|
43 |
+
let posts_per_page = parseInt(alm.posts_per_page);
|
44 |
+
let return_data = [];
|
45 |
+
|
46 |
+
// Slice data array into individual pages
|
47 |
+
for (let i = 0; i < elements.length; i += posts_per_page) {
|
48 |
+
return_data.push(elements.slice(i, posts_per_page + i));
|
49 |
+
}
|
50 |
+
|
51 |
+
// Loop new data array
|
52 |
+
for (let k = 0; k < return_data.length; k++) {
|
53 |
+
let target = k > 0 ? k * posts_per_page : 0;
|
54 |
+
pagenum = k + 1;
|
55 |
+
if (elements[target]) {
|
56 |
+
elements[target] = masonrySEOAtts(
|
57 |
+
alm,
|
58 |
+
elements[target],
|
59 |
+
querystring,
|
60 |
+
seo_class,
|
61 |
+
pagenum
|
62 |
+
);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
} else {
|
66 |
+
pagenum = page;
|
67 |
+
elements[0] = masonrySEOAtts(
|
68 |
+
alm,
|
69 |
+
elements[0],
|
70 |
+
querystring,
|
71 |
+
seo_class,
|
72 |
+
pagenum
|
73 |
+
);
|
74 |
+
}
|
75 |
+
|
76 |
+
return elements;
|
77 |
+
}
|
78 |
+
|
79 |
+
// Create the attributes (page, url, classes) for the masonry items
|
80 |
+
function masonrySEOAtts(alm, element, querystring, seo_class, pagenum) {
|
81 |
+
element.classList.add(seo_class);
|
82 |
+
element.dataset.page = pagenum;
|
83 |
+
|
84 |
+
if (alm.addons.seo_permalink === 'default') {
|
85 |
+
// Default Permalinks
|
86 |
+
if (pagenum > 1) {
|
87 |
+
element.dataset.url =
|
88 |
+
alm.canonical_url + querystring + '&paged=' + pagenum;
|
89 |
+
} else {
|
90 |
+
element.dataset.url = alm.canonical_url + querystring;
|
91 |
+
}
|
92 |
+
} else {
|
93 |
+
// Pretty Permalinks
|
94 |
+
if (pagenum > 1) {
|
95 |
+
element.dataset.url =
|
96 |
+
alm.canonical_url +
|
97 |
+
alm.addons.seo_leading_slash +
|
98 |
+
'page/' +
|
99 |
+
pagenum +
|
100 |
+
alm.addons.seo_trailing_slash +
|
101 |
+
querystring;
|
102 |
+
} else {
|
103 |
+
element.dataset.url = alm.canonical_url + querystring;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
+
return element;
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* createSEOAttributes
|
112 |
+
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
113 |
+
*
|
114 |
+
* @param {Object} alm
|
115 |
+
* @param {Array} elements
|
116 |
+
* ...
|
117 |
+
* @since 5.3.1
|
118 |
+
*/
|
119 |
+
export function createSEOAttributes(
|
120 |
+
alm,
|
121 |
+
element,
|
122 |
+
querystring,
|
123 |
+
seo_class,
|
124 |
+
pagenum
|
125 |
+
) {
|
126 |
+
element.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
127 |
+
element.dataset.page = pagenum;
|
128 |
+
|
129 |
+
if (alm.addons.seo_permalink === 'default') {
|
130 |
+
// Default Permalinks
|
131 |
+
element.dataset.url =
|
132 |
+
pagenum > 1
|
133 |
+
? alm.canonical_url + querystring + '&paged=' + pagenum
|
134 |
+
: alm.canonical_url + querystring;
|
135 |
+
} else {
|
136 |
+
// Pretty Permalinks
|
137 |
+
element.dataset.url =
|
138 |
+
pagenum > 1
|
139 |
+
? alm.canonical_url +
|
140 |
+
alm.addons.seo_leading_slash +
|
141 |
+
'page/' +
|
142 |
+
pagenum +
|
143 |
+
alm.addons.seo_trailing_slash +
|
144 |
+
querystring
|
145 |
+
: alm.canonical_url + querystring;
|
146 |
+
}
|
147 |
+
|
148 |
+
return element;
|
149 |
+
}
|
core/src/js/addons/singleposts.js
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* singlePostHTML
|
3 |
+
* Create the HTML for loading Single Posts
|
4 |
+
*
|
5 |
+
* @param {Object} response Query response
|
6 |
+
* @param {HTMLElement} target The target div
|
7 |
+
* @since 5.1.8.1
|
8 |
+
*/
|
9 |
+
export function singlePostHTML(response, target = null){
|
10 |
+
let data = {
|
11 |
+
html: '',
|
12 |
+
meta: {
|
13 |
+
postcount: 1,
|
14 |
+
totalposts: 1,
|
15 |
+
debug: 'Single Posts Query',
|
16 |
+
}
|
17 |
+
}
|
18 |
+
if(response.status === 200 && response.data && target){
|
19 |
+
let div = document.createElement("div");
|
20 |
+
div.innerHTML = response.data;
|
21 |
+
let htmlTarget = div.querySelector(target);
|
22 |
+
if(htmlTarget){
|
23 |
+
data.html = htmlTarget.innerHTML;
|
24 |
+
}
|
25 |
+
}
|
26 |
+
return data;
|
27 |
+
}
|
28 |
+
|
29 |
+
export default singlePostHTML;
|
core/src/js/addons/woocommerce.js
ADDED
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import axios from 'axios';
|
2 |
+
import loadItems from '../modules/loadItems';
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Set up the instance of ALM WooCommerce
|
6 |
+
*
|
7 |
+
* @param {object} alm
|
8 |
+
* @since 5.3.0
|
9 |
+
*/
|
10 |
+
export function wooInit(alm) {
|
11 |
+
if (!alm || !alm.addons.woocommerce) {
|
12 |
+
return false;
|
13 |
+
}
|
14 |
+
|
15 |
+
alm.button.dataset.page = alm.addons.woocommerce_settings.paged + 1; // Page
|
16 |
+
|
17 |
+
// URL
|
18 |
+
let nextPage = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged];
|
19 |
+
if (nextPage) {
|
20 |
+
alm.button.dataset.url = nextPage;
|
21 |
+
} else {
|
22 |
+
alm.button.dataset.url = '';
|
23 |
+
}
|
24 |
+
|
25 |
+
// Set up URL and class parameters on first item in product listing
|
26 |
+
let container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
|
27 |
+
if (container) {
|
28 |
+
let count = getContainerCount(alm.addons.woocommerce_settings.container);
|
29 |
+
|
30 |
+
if (count > 1) {
|
31 |
+
// Display warning if multiple containers were found.
|
32 |
+
console.warn(
|
33 |
+
'ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/'
|
34 |
+
);
|
35 |
+
}
|
36 |
+
|
37 |
+
container.setAttribute('aria-live', 'polite');
|
38 |
+
container.setAttribute('aria-atomic', 'true');
|
39 |
+
|
40 |
+
alm.listing.removeAttribute('aria-live');
|
41 |
+
alm.listing.removeAttribute('aria-atomic');
|
42 |
+
|
43 |
+
let products = container.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
|
44 |
+
if (products) {
|
45 |
+
products.classList.add('alm-woocommerce');
|
46 |
+
products.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
|
47 |
+
products.dataset.page = alm.page;
|
48 |
+
products.dataset.pageTitle = document.title;
|
49 |
+
} else {
|
50 |
+
console.warn(
|
51 |
+
'ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products'
|
52 |
+
);
|
53 |
+
}
|
54 |
+
|
55 |
+
if (alm.addons.woocommerce_settings.paged > 1) {
|
56 |
+
almWooCommerceResultsTextInit(alm);
|
57 |
+
}
|
58 |
+
} else {
|
59 |
+
console.warn(
|
60 |
+
'ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container'
|
61 |
+
);
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Core ALM WooCommerce product loader
|
67 |
+
*
|
68 |
+
* @param {HTMLElement} content
|
69 |
+
* @param {object} alm
|
70 |
+
* @param {String} pageTitle
|
71 |
+
* @since 5.3.0
|
72 |
+
*/
|
73 |
+
|
74 |
+
export function woocommerce(content, alm, pageTitle = document.title) {
|
75 |
+
if (!content || !alm) {
|
76 |
+
return false;
|
77 |
+
}
|
78 |
+
|
79 |
+
return new Promise((resolve) => {
|
80 |
+
let container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
|
81 |
+
let products = content.querySelectorAll(alm.addons.woocommerce_settings.products); // Get all `.products`
|
82 |
+
let url = alm.addons.woocommerce_settings.paged_urls[alm.page];
|
83 |
+
|
84 |
+
if (container && products && url) {
|
85 |
+
// Convert NodeList to Array
|
86 |
+
products = Array.prototype.slice.call(products);
|
87 |
+
|
88 |
+
// Load the Products
|
89 |
+
(async function () {
|
90 |
+
await loadItems(container, products, alm, pageTitle, url, 'alm-woocommerce');
|
91 |
+
resolve(true);
|
92 |
+
})().catch((e) => {
|
93 |
+
console.log(e, 'There was an error with WooCommerce');
|
94 |
+
});
|
95 |
+
}
|
96 |
+
});
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Reset a WooCommerce Instance by hitting the updated site URL
|
101 |
+
*
|
102 |
+
* @since 5.3.8
|
103 |
+
*/
|
104 |
+
export function wooReset() {
|
105 |
+
return new Promise((resolve) => {
|
106 |
+
let url = window.location;
|
107 |
+
axios
|
108 |
+
.get(url)
|
109 |
+
.then((response) => {
|
110 |
+
if (response.status === 200 && response.data) {
|
111 |
+
let div = document.createElement('div');
|
112 |
+
div.innerHTML = response.data; // Add data to div
|
113 |
+
|
114 |
+
let alm = div.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance
|
115 |
+
let settings = alm ? alm.dataset.wooSettings : ''; // Get settings data
|
116 |
+
resolve(settings);
|
117 |
+
} else {
|
118 |
+
resolve(false);
|
119 |
+
}
|
120 |
+
})
|
121 |
+
.catch(function (error) {
|
122 |
+
resolve(false);
|
123 |
+
});
|
124 |
+
});
|
125 |
+
}
|
126 |
+
|
127 |
+
/**
|
128 |
+
* Get the content, title and results text from the Ajax response
|
129 |
+
*
|
130 |
+
* @param {object} alm
|
131 |
+
* @since 5.3.0
|
132 |
+
*/
|
133 |
+
export function wooGetContent(response, alm) {
|
134 |
+
let data = {
|
135 |
+
html: '',
|
136 |
+
meta: {
|
137 |
+
postcount: 1,
|
138 |
+
totalposts: alm.localize.total_posts,
|
139 |
+
debug: 'WooCommerce Query',
|
140 |
+
},
|
141 |
+
};
|
142 |
+
if (response.status === 200 && response.data) {
|
143 |
+
let div = document.createElement('div');
|
144 |
+
div.innerHTML = response.data;
|
145 |
+
|
146 |
+
// Get Page Title
|
147 |
+
let title = div.querySelector('title').innerHTML;
|
148 |
+
data.pageTitle = title;
|
149 |
+
|
150 |
+
// Get Products HTML
|
151 |
+
let products = div.querySelector(alm.addons.woocommerce_settings.container);
|
152 |
+
data.html = products ? products.innerHTML : '';
|
153 |
+
|
154 |
+
// Results Text
|
155 |
+
almWooCommerceResultsText(div, alm);
|
156 |
+
}
|
157 |
+
|
158 |
+
return data;
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Set results text for WooCommerce Add-on.
|
163 |
+
*
|
164 |
+
* @param {HTMLElement} target
|
165 |
+
* @param {Object} alm
|
166 |
+
* @since 5.3
|
167 |
+
*/
|
168 |
+
function almWooCommerceResultsText(target = '', alm) {
|
169 |
+
if (target && alm && alm.addons.woocommerce_settings.results_text) {
|
170 |
+
let currentResults = target.querySelector(alm.addons.woocommerce_settings.results);
|
171 |
+
let link = alm.addons.woocommerce_settings.settings.previous_page_link;
|
172 |
+
let label = alm.addons.woocommerce_settings.settings.previous_page_label;
|
173 |
+
let sep = alm.addons.woocommerce_settings.settings.previous_page_sep;
|
174 |
+
|
175 |
+
if (alm.addons.woocommerce_settings.results_text) {
|
176 |
+
alm.addons.woocommerce_settings.results_text.forEach((element) => {
|
177 |
+
if (link && label) {
|
178 |
+
element.innerHTML = returnButton(currentResults, link, label, sep);
|
179 |
+
} else {
|
180 |
+
element.innerHTML = currentResults.innerHTML;
|
181 |
+
}
|
182 |
+
});
|
183 |
+
}
|
184 |
+
}
|
185 |
+
}
|
186 |
+
|
187 |
+
/**
|
188 |
+
* Initiate Results text.
|
189 |
+
*
|
190 |
+
* @param {Object} alm
|
191 |
+
* @since 5.3
|
192 |
+
*/
|
193 |
+
function almWooCommerceResultsTextInit(alm) {
|
194 |
+
if (alm && alm.addons.woocommerce_settings.results_text) {
|
195 |
+
let results = document.querySelectorAll(alm.addons.woocommerce_settings.results);
|
196 |
+
if (results.length < 1) {
|
197 |
+
return false;
|
198 |
+
}
|
199 |
+
let link = alm.addons.woocommerce_settings.settings.previous_page_link;
|
200 |
+
let label = alm.addons.woocommerce_settings.settings.previous_page_label;
|
201 |
+
let sep = alm.addons.woocommerce_settings.settings.previous_page_sep;
|
202 |
+
// Loop all result text elements
|
203 |
+
results.forEach((element) => {
|
204 |
+
if (link && label) {
|
205 |
+
element.innerHTML = returnButton(element, link, label, sep);
|
206 |
+
}
|
207 |
+
});
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Create button text for returning to the first page
|
213 |
+
*
|
214 |
+
* @param {*} text
|
215 |
+
* @param {*} link
|
216 |
+
* @param {*} label
|
217 |
+
* @param {*} seperator
|
218 |
+
*/
|
219 |
+
function returnButton(text, link, label, seperator) {
|
220 |
+
let button = ` ${seperator} <a href="${link}">${label}</a>`;
|
221 |
+
return text.innerHTML + button;
|
222 |
+
}
|
223 |
+
|
224 |
+
/**
|
225 |
+
* Get total count of WooCommerce containers
|
226 |
+
*
|
227 |
+
* @param {*} container
|
228 |
+
*/
|
229 |
+
function getContainerCount(container) {
|
230 |
+
if (!container) {
|
231 |
+
return 0;
|
232 |
+
}
|
233 |
+
const containers = document.querySelectorAll(container); // Get all containers.
|
234 |
+
if (containers) {
|
235 |
+
return containers.length;
|
236 |
+
} else {
|
237 |
+
return 0;
|
238 |
+
}
|
239 |
+
}
|
core/src/js/ajax-load-more.js
ADDED
@@ -0,0 +1,2577 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Ajax Load More
|
3 |
+
* https://connekthq.com/plugins/ajax-load-more/
|
4 |
+
* Author: Darren Cooney
|
5 |
+
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
6 |
+
* Copyright Connekt Media - https://connekthq.com
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Polyfills
|
10 |
+
require('@babel/polyfill/noConflict');
|
11 |
+
require('focus-options-polyfill');
|
12 |
+
require('./helpers/polyfills.js');
|
13 |
+
|
14 |
+
// External Modules
|
15 |
+
let qs = require('qs');
|
16 |
+
let imagesLoaded = require('imagesloaded');
|
17 |
+
import axios from 'axios';
|
18 |
+
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
19 |
+
import smoothscroll from 'smoothscroll-polyfill'; // Smooth scrolling polyfill
|
20 |
+
smoothscroll.polyfill();
|
21 |
+
|
22 |
+
// ALM Modules
|
23 |
+
import './helpers/helpers';
|
24 |
+
//import commentReplyFix from './helpers/commentReplyFix';
|
25 |
+
import getParameterByName from './helpers/getParameterByName';
|
26 |
+
import almAppendChildren from './helpers/almAppendChildren';
|
27 |
+
import tableWrap from './helpers/tableWrap';
|
28 |
+
import getCacheUrl from './helpers/getCacheUrl';
|
29 |
+
import almDomParser from './helpers/almDomParser';
|
30 |
+
import stripEmptyNodes from './helpers/stripEmptyNodes';
|
31 |
+
import * as queryParams from './helpers/queryParams';
|
32 |
+
import * as resultsText from './modules/resultsText';
|
33 |
+
import { tableOfContents } from './modules/tableofcontents';
|
34 |
+
import setLocalizedVars from './modules/setLocalizedVars';
|
35 |
+
import insertScript from './modules/insertScript';
|
36 |
+
import setFocus from './modules/setFocus';
|
37 |
+
import getButtonURL from './modules/getButtonURL';
|
38 |
+
import almMasonry from './modules/masonry';
|
39 |
+
import almFadeIn from './modules/fadeIn';
|
40 |
+
import almFadeOut from './modules/fadeOut';
|
41 |
+
import almFilter from './modules/filtering';
|
42 |
+
import almNoResults from './modules/noResults';
|
43 |
+
import almDebug from './modules/almDebug';
|
44 |
+
import getScrollPercentage from './modules/getScrollPercentage';
|
45 |
+
import srcsetPolyfill from './helpers/srcsetPolyfill';
|
46 |
+
import { showPlaceholder, hidePlaceholder } from './modules/placeholder';
|
47 |
+
import { singlePostHTML } from './addons/singleposts';
|
48 |
+
import { createCacheFile } from './addons/cache';
|
49 |
+
import { wooInit, woocommerce, wooGetContent, wooReset } from './addons/woocommerce';
|
50 |
+
import { elementorCreateParams, elementorGetContent, elementorInit, elementor } from './addons/elementor';
|
51 |
+
import { buildFilterURL } from './addons/filters';
|
52 |
+
import { createSEOAttributes } from './addons/seo';
|
53 |
+
|
54 |
+
// Global filtering var
|
55 |
+
let alm_is_filtering = false;
|
56 |
+
|
57 |
+
// Start ALM
|
58 |
+
(function () {
|
59 |
+
'use strict';
|
60 |
+
|
61 |
+
/**
|
62 |
+
* ajaxloadmore
|
63 |
+
* Init Ajax Load More
|
64 |
+
*
|
65 |
+
* @param {*} el
|
66 |
+
* @param {*} e
|
67 |
+
*/
|
68 |
+
let ajaxloadmore = function (el, e) {
|
69 |
+
// Move user to top of page to prevent loading of unnessasry posts
|
70 |
+
if (alm_localize && alm_localize.scrolltop === 'true') {
|
71 |
+
window.scrollTo(0, 0);
|
72 |
+
}
|
73 |
+
|
74 |
+
//Set ALM Variables
|
75 |
+
let alm = this;
|
76 |
+
alm.AjaxLoadMore = {};
|
77 |
+
alm.addons = {};
|
78 |
+
alm.extensions = {};
|
79 |
+
alm.integration = {};
|
80 |
+
alm.window = window;
|
81 |
+
alm.page = 0;
|
82 |
+
alm.posts = 0;
|
83 |
+
alm.totalposts = 0;
|
84 |
+
alm.proceed = false;
|
85 |
+
alm.disable_ajax = false;
|
86 |
+
alm.init = true;
|
87 |
+
alm.loading = true;
|
88 |
+
alm.finished = false;
|
89 |
+
alm.timer = null;
|
90 |
+
|
91 |
+
alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent
|
92 |
+
alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
|
93 |
+
alm.isSafari = /Safari/i.test(alm.ua) && /Apple Computer/.test(alm.vendor) && !/Mobi|Android/i.test(alm.ua);
|
94 |
+
|
95 |
+
alm.master_id = el.dataset.id ? `ajax-load-more-${el.dataset.id}` : el.id; // The defined or generated ID of the ALM instance
|
96 |
+
el.classList.add('alm-' + e); // Add unique classname
|
97 |
+
el.setAttribute('data-alm-id', e); // Add unique data id
|
98 |
+
|
99 |
+
// Get localized <script/> variables
|
100 |
+
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
101 |
+
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
102 |
+
|
103 |
+
// ALM Element Containers
|
104 |
+
alm.main = el; // Top level DOM element
|
105 |
+
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
106 |
+
alm.content = alm.listing;
|
107 |
+
alm.el = alm.content;
|
108 |
+
alm.ajax = el.querySelector('.alm-ajax');
|
109 |
+
alm.container_type = alm.listing.dataset.containerType;
|
110 |
+
|
111 |
+
// Instance Params
|
112 |
+
alm.canonical_url = el.dataset.canonicalUrl;
|
113 |
+
alm.nested = el.dataset.nested ? el.dataset.nested : null;
|
114 |
+
alm.is_search = el.dataset.search;
|
115 |
+
alm.slug = el.dataset.slug;
|
116 |
+
alm.post_id = el.dataset.postId;
|
117 |
+
alm.id = el.dataset.id ? el.dataset.id : '';
|
118 |
+
|
119 |
+
// No results template
|
120 |
+
let alm_no_results = el.querySelector('.alm-no-results');
|
121 |
+
alm.no_results = alm_no_results ? alm_no_results.innerHTML : '';
|
122 |
+
|
123 |
+
// Shortcode Params
|
124 |
+
alm.repeater = alm.listing.dataset.repeater; // Repeaters
|
125 |
+
alm.theme_repeater = alm.listing.dataset.themeRepeater;
|
126 |
+
|
127 |
+
alm.post_type = alm.listing.dataset.postType ? alm.listing.dataset.postType : 'post';
|
128 |
+
alm.sticky_posts = alm.listing.dataset.stickyPosts ? alm.listing.dataset.stickyPosts : null;
|
129 |
+
|
130 |
+
alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs
|
131 |
+
alm.btnWrap = Array.prototype.slice.call(alm.btnWrap); // Convert NodeList to array
|
132 |
+
alm.btnWrap[alm.btnWrap.length - 1].style.visibility = 'visible'; // Get last element (used for nesting)
|
133 |
+
alm.trigger = alm.btnWrap[alm.btnWrap.length - 1];
|
134 |
+
alm.button = alm.trigger.querySelector('button.alm-load-more-btn');
|
135 |
+
|
136 |
+
alm.button_label = alm.listing.dataset.buttonLabel;
|
137 |
+
alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
|
138 |
+
alm.button_done_label = alm.listing.dataset.buttonDoneLabel;
|
139 |
+
|
140 |
+
alm.placeholder = alm.main.querySelector('.alm-placeholder');
|
141 |
+
|
142 |
+
alm.scroll_distance = alm.listing.dataset.scrollDistance;
|
143 |
+
alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
|
144 |
+
alm.scroll_container = alm.listing.dataset.scrollContainer;
|
145 |
+
alm.scroll_direction = alm.listing.dataset.scrollDirection;
|
146 |
+
alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
|
147 |
+
alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
|
148 |
+
alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
|
149 |
+
alm.transition = alm.listing.dataset.transition; // Transition
|
150 |
+
alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
|
151 |
+
alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
|
152 |
+
alm.speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
153 |
+
alm.images_loaded = alm.listing.dataset.imagesLoaded ? alm.listing.dataset.imagesLoaded : false;
|
154 |
+
alm.destroy_after = alm.listing.dataset.destroyAfter ? alm.listing.dataset.destroyAfter : '';
|
155 |
+
alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on
|
156 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
157 |
+
alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
|
158 |
+
alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
|
159 |
+
alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
|
160 |
+
alm.is_search = alm.is_search === undefined ? false : alm.is_search;
|
161 |
+
alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
162 |
+
|
163 |
+
// Add-on Shortcode Params
|
164 |
+
|
165 |
+
// Elementor add-on
|
166 |
+
alm.addons.elementor = alm.listing.dataset.elementor === 'posts' && alm.listing.dataset.elementorSettings ? true : false;
|
167 |
+
if (alm.addons.elementor) {
|
168 |
+
alm = elementorCreateParams(alm);
|
169 |
+
}
|
170 |
+
|
171 |
+
// WooCommerce add-on
|
172 |
+
alm.addons.woocommerce = alm.listing.dataset.woo && alm.listing.dataset.woo === 'true' ? true : false;
|
173 |
+
if (alm.addons.woocommerce && alm.listing.dataset.wooSettings) {
|
174 |
+
alm.addons.woocommerce_settings = JSON.parse(alm.listing.dataset.wooSettings);
|
175 |
+
alm.addons.woocommerce_settings.results_text = document.querySelectorAll(alm.addons.woocommerce_settings.results); // Add Results Text
|
176 |
+
alm.page = parseInt(alm.page) + parseInt(alm.addons.woocommerce_settings.paged);
|
177 |
+
}
|
178 |
+
|
179 |
+
// Cache add-on
|
180 |
+
alm.addons.cache = alm.listing.dataset.cache;
|
181 |
+
alm.addons.cache = alm.addons.cache === undefined ? false : alm.addons.cache;
|
182 |
+
if (alm.addons.cache === 'true') {
|
183 |
+
alm.addons.cache_id = alm.listing.dataset.cacheId;
|
184 |
+
alm.addons.cache_path = alm.listing.dataset.cachePath;
|
185 |
+
alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
186 |
+
alm.addons.cache_logged_in = alm.addons.cache_logged_in === undefined ? false : alm.addons.cache_logged_in;
|
187 |
+
}
|
188 |
+
|
189 |
+
// CTA add-on
|
190 |
+
alm.addons.cta = alm.listing.dataset.cta ? alm.listing.dataset.cta : false;
|
191 |
+
if (alm.addons.cta === 'true') {
|
192 |
+
alm.addons.cta_position = alm.listing.dataset.ctaPosition;
|
193 |
+
alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
|
194 |
+
alm.addons.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
195 |
+
}
|
196 |
+
|
197 |
+
// Nextpage add-on
|
198 |
+
alm.addons.nextpage = alm.listing.dataset.nextpage;
|
199 |
+
if (alm.addons.nextpage === 'true') {
|
200 |
+
alm.addons.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
201 |
+
alm.addons.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
202 |
+
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
203 |
+
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
204 |
+
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
205 |
+
alm.addons.nextpage_title_template = alm.listing.dataset.nextpageTitleTemplate;
|
206 |
+
}
|
207 |
+
|
208 |
+
// Single Posts add-on
|
209 |
+
alm.addons.single_post = alm.listing.dataset.singlePost;
|
210 |
+
if (alm.addons.single_post === 'true') {
|
211 |
+
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
212 |
+
alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
|
213 |
+
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder === undefined ? 'previous' : alm.listing.dataset.singlePostOrder;
|
214 |
+
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
215 |
+
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy === undefined ? '' : alm.listing.dataset.singlePostTaxonomy;
|
216 |
+
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms === undefined ? '' : alm.listing.dataset.singlePostExcludedTerms;
|
217 |
+
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar === undefined ? '' : alm.listing.dataset.singlePostProgressBar;
|
218 |
+
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget === undefined ? '' : alm.listing.dataset.singlePostTarget;
|
219 |
+
alm.addons.single_post_preview = alm.listing.dataset.singlePostPreview === undefined ? false : true;
|
220 |
+
if (alm.addons.single_post_preview) {
|
221 |
+
const singlePostPreviewData = alm.listing.dataset.singlePostPreview.split(':');
|
222 |
+
alm.addons.single_post_preview_data = {
|
223 |
+
button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading',
|
224 |
+
height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500,
|
225 |
+
element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default',
|
226 |
+
className: 'alm-single-post--preview',
|
227 |
+
};
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
// Comments add-on
|
232 |
+
alm.addons.comments = alm.listing.dataset.comments ? alm.listing.dataset.comments : false;
|
233 |
+
if (alm.addons.comments === 'true') {
|
234 |
+
alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
235 |
+
alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
|
236 |
+
alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;
|
237 |
+
alm.addons.comments_type = alm.listing.dataset.comments_type;
|
238 |
+
alm.addons.comments_style = alm.listing.dataset.comments_style;
|
239 |
+
alm.addons.comments_template = alm.listing.dataset.comments_template;
|
240 |
+
alm.addons.comments_callback = alm.listing.dataset.comments_callback;
|
241 |
+
}
|
242 |
+
|
243 |
+
alm.addons.tabs = alm.listing.dataset.tabs;
|
244 |
+
|
245 |
+
alm.addons.filters = alm.listing.dataset.filters;
|
246 |
+
|
247 |
+
alm.addons.seo = alm.listing.dataset.seo;
|
248 |
+
|
249 |
+
// Preloaded
|
250 |
+
alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
251 |
+
alm.addons.preloaded_amount = alm.listing.dataset.preloadedAmount ? alm.listing.dataset.preloadedAmount : 0;
|
252 |
+
alm.is_preloaded = alm.listing.dataset.isPreloaded === 'true' ? true : false;
|
253 |
+
|
254 |
+
// Users
|
255 |
+
alm.addons.users = alm.listing.dataset.users === 'true' ? true : false; // Users add-on
|
256 |
+
if (alm.addons.users) {
|
257 |
+
// Override paging params for users
|
258 |
+
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
259 |
+
alm.posts_per_page = alm.listing.dataset.usersPerPage;
|
260 |
+
}
|
261 |
+
|
262 |
+
// Extension Shortcode Params
|
263 |
+
alm.extensions.restapi = alm.listing.dataset.restapi; // REST API
|
264 |
+
alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
|
265 |
+
alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;
|
266 |
+
alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
|
267 |
+
alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId;
|
268 |
+
alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;
|
269 |
+
|
270 |
+
alm.extensions.acf = alm.listing.dataset.acf; // ACF
|
271 |
+
alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
|
272 |
+
alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
|
273 |
+
alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;
|
274 |
+
alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
|
275 |
+
alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
|
276 |
+
// if field type, name or post ID is empty
|
277 |
+
if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) {
|
278 |
+
alm.extensions.acf = false;
|
279 |
+
}
|
280 |
+
|
281 |
+
// Term Query
|
282 |
+
alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
|
283 |
+
alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;
|
284 |
+
alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;
|
285 |
+
alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
|
286 |
+
alm.extensions.term_query = alm.extensions.term_query === 'true' ? true : false;
|
287 |
+
|
288 |
+
// Paging
|
289 |
+
alm.addons.paging = alm.listing.dataset.paging; // Paging add-on
|
290 |
+
if (alm.addons.paging === 'true') {
|
291 |
+
alm.addons.paging = true;
|
292 |
+
alm.addons.paging_init = true;
|
293 |
+
alm.addons.paging_controls = alm.listing.dataset.pagingControls === 'true' ? true : false;
|
294 |
+
alm.addons.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
|
295 |
+
alm.addons.paging_classes = alm.listing.dataset.pagingClasses;
|
296 |
+
alm.addons.paging_show_at_most = alm.addons.paging_show_at_most === undefined ? 7 : alm.addons.paging_show_at_most;
|
297 |
+
|
298 |
+
alm.addons.paging_first_label = alm.listing.dataset.pagingFirstLabel;
|
299 |
+
alm.addons.paging_previous_label = alm.listing.dataset.pagingPreviousLabel;
|
300 |
+
alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
|
301 |
+
alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
|
302 |
+
|
303 |
+
alm.addons.paging_scroll = alm.listing.dataset.pagingScroll ? alm.listing.dataset.pagingScroll : false;
|
304 |
+
alm.addons.paging_scrolltop = alm.listing.dataset.pagingScrolltop ? parseInt(alm.listing.dataset.pagingScrolltop) : 100;
|
305 |
+
|
306 |
+
// If preloaded, pause ALM
|
307 |
+
alm.pause = alm.addons.preloaded === 'true' ? true : alm.pause;
|
308 |
+
} else {
|
309 |
+
alm.addons.paging = false;
|
310 |
+
}
|
311 |
+
/* End Paging */
|
312 |
+
|
313 |
+
/* Filters */
|
314 |
+
if (alm.addons.filters === 'true') {
|
315 |
+
alm.addons.filters = true;
|
316 |
+
|
317 |
+
alm.addons.filters_url = alm.listing.dataset.filtersUrl === 'true' ? true : false;
|
318 |
+
alm.addons.filters_paging = alm.listing.dataset.filtersPaging === 'true' ? true : false;
|
319 |
+
alm.addons.filters_scroll = alm.listing.dataset.filtersScroll === 'true' ? true : false;
|
320 |
+
alm.addons.filters_scrolltop = alm.listing.dataset.filtersScrolltop ? alm.listing.dataset.filtersScrolltop : '30';
|
321 |
+
alm.addons.filters_analtyics = alm.listing.dataset.filtersAnalytics;
|
322 |
+
alm.addons.filters_debug = alm.listing.dataset.filtersDebug;
|
323 |
+
alm.addons.filters_startpage = 0;
|
324 |
+
|
325 |
+
// Get Paged Querystring Val
|
326 |
+
let page = getParameterByName('pg');
|
327 |
+
alm.addons.filters_startpage = page !== null ? parseInt(page) : 0;
|
328 |
+
|
329 |
+
// If not Paging add-on
|
330 |
+
if (!alm.addons.paging && alm.addons.filters_startpage > 0) {
|
331 |
+
alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;
|
332 |
+
alm.isPaged = alm.addons.filters_startpage > 0 ? true : false;
|
333 |
+
}
|
334 |
+
} else {
|
335 |
+
alm.addons.filters = false;
|
336 |
+
}
|
337 |
+
/* End Filters */
|
338 |
+
|
339 |
+
/* TABS */
|
340 |
+
if (alm.addons.tabs === 'true') {
|
341 |
+
alm.addons.tabs = true;
|
342 |
+
alm.addons.tab_template = alm.listing.dataset.tabTemplate ? alm.listing.dataset.tabTemplate : '';
|
343 |
+
alm.addons.tab_onload = alm.listing.dataset.tabOnload ? alm.listing.dataset.tabOnload : '';
|
344 |
+
alm.addons.tabs_resturl = alm.listing.dataset.tabsRestUrl ? alm.listing.dataset.tabsRestUrl : '';
|
345 |
+
|
346 |
+
// Locate active template (deeplinks)
|
347 |
+
if (alm.addons.tab_onload !== '') {
|
348 |
+
let tabNav = document.querySelector(`.alm-tab-nav li [data-tab-url=${alm.addons.tab_onload}]`);
|
349 |
+
alm.addons.tab_template = tabNav ? tabNav.dataset.tabTemplate : alm.addons.tab_template;
|
350 |
+
alm.listing.dataset.tabOnload = ''; // Clear tabOnload param
|
351 |
+
// Set selected tab
|
352 |
+
if (tabNav) {
|
353 |
+
let activeTab = document.querySelector(`.alm-tab-nav li .active`);
|
354 |
+
if (activeTab) {
|
355 |
+
activeTab.classList.remove('active');
|
356 |
+
}
|
357 |
+
}
|
358 |
+
}
|
359 |
+
} else {
|
360 |
+
alm.addons.tabs = false;
|
361 |
+
}
|
362 |
+
/* End TABS */
|
363 |
+
|
364 |
+
/* REST API */
|
365 |
+
if (alm.extensions.restapi === 'true') {
|
366 |
+
alm.extensions.restapi = true;
|
367 |
+
alm.extensions.restapi_debug = alm.extensions.restapi_debug === undefined ? false : alm.extensions.restapi_debug;
|
368 |
+
alm.extensions.restapi = alm.extensions.restapi_template_id === '' ? false : alm.extensions.restapi;
|
369 |
+
} else {
|
370 |
+
alm.extensions.restapi = false;
|
371 |
+
}
|
372 |
+
/* End REST API */
|
373 |
+
|
374 |
+
/* Preloaded */
|
375 |
+
if (alm.addons.preloaded === 'true') {
|
376 |
+
// Preloaded Amount
|
377 |
+
alm.addons.preloaded_amount = alm.addons.preloaded_amount === undefined ? alm.posts_per_page : alm.addons.preloaded_amount;
|
378 |
+
// Disable ALM if total_posts is less than or equal to preloaded_amount
|
379 |
+
if (alm.localize && alm.localize.total_posts) {
|
380 |
+
if (parseInt(alm.localize.total_posts) <= parseInt(alm.addons.preloaded_amount)) {
|
381 |
+
alm.addons.preloaded_total_posts = alm.localize.total_posts;
|
382 |
+
alm.disable_ajax = true;
|
383 |
+
}
|
384 |
+
}
|
385 |
+
} else {
|
386 |
+
alm.addons.preloaded = 'false';
|
387 |
+
}
|
388 |
+
/* End Preloaded */
|
389 |
+
|
390 |
+
/* SEO */
|
391 |
+
alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
|
392 |
+
alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
|
393 |
+
|
394 |
+
if (alm.addons.seo) {
|
395 |
+
alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
|
396 |
+
alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
|
397 |
+
alm.addons.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
|
398 |
+
alm.addons.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
|
399 |
+
}
|
400 |
+
alm.start_page = alm.listing.dataset.seoStartPage;
|
401 |
+
|
402 |
+
if (alm.start_page) {
|
403 |
+
alm.addons.seo_scroll = alm.listing.dataset.seoScroll;
|
404 |
+
alm.addons.seo_scrolltop = alm.listing.dataset.seoScrolltop;
|
405 |
+
alm.addons.seo_controls = alm.listing.dataset.seoControls;
|
406 |
+
alm.isPaged = false;
|
407 |
+
if (alm.start_page > 1) {
|
408 |
+
alm.isPaged = true; // Is this a paged page > 1 ?
|
409 |
+
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
410 |
+
}
|
411 |
+
if (alm.addons.paging) {
|
412 |
+
// If paging, reset posts_per_page
|
413 |
+
alm.posts_per_page = alm.orginal_posts_per_page;
|
414 |
+
}
|
415 |
+
} else {
|
416 |
+
alm.start_page = 1;
|
417 |
+
}
|
418 |
+
/* End SEO */
|
419 |
+
|
420 |
+
/* Nextpage */
|
421 |
+
if (alm.addons.nextpage === 'true') {
|
422 |
+
alm.addons.nextpage = true;
|
423 |
+
alm.posts_per_page = 1;
|
424 |
+
|
425 |
+
if (alm.addons.nextpage_urls === undefined) {
|
426 |
+
alm.addons.nextpage_urls = 'true';
|
427 |
+
}
|
428 |
+
if (alm.addons.nextpage_scroll === undefined) {
|
429 |
+
alm.addons.nextpage_scroll = 'false:30';
|
430 |
+
}
|
431 |
+
if (alm.addons.nextpage_pageviews === undefined) {
|
432 |
+
alm.addons.nextpage_pageviews = 'true';
|
433 |
+
}
|
434 |
+
if (alm.addons.nextpage_post_id === undefined) {
|
435 |
+
alm.addons.nextpage = false;
|
436 |
+
alm.addons.nextpage_post_id = null;
|
437 |
+
}
|
438 |
+
if (alm.addons.nextpage_startpage === undefined) {
|
439 |
+
alm.addons.nextpage_startpage = 1;
|
440 |
+
}
|
441 |
+
if (alm.addons.nextpage_startpage > 1) {
|
442 |
+
alm.isPaged = true;
|
443 |
+
}
|
444 |
+
alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;
|
445 |
+
} else {
|
446 |
+
alm.addons.nextpage = false;
|
447 |
+
}
|
448 |
+
/* End Nextpage */
|
449 |
+
|
450 |
+
/* Single Post */
|
451 |
+
if (alm.addons.single_post === 'true') {
|
452 |
+
alm.addons.single_post = true;
|
453 |
+
alm.addons.single_post_permalink = '';
|
454 |
+
alm.addons.single_post_title = '';
|
455 |
+
alm.addons.single_post_slug = '';
|
456 |
+
alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
457 |
+
alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
458 |
+
alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
459 |
+
alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
|
460 |
+
alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
|
461 |
+
alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
|
462 |
+
alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
|
463 |
+
alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
|
464 |
+
} else {
|
465 |
+
alm.addons.single_post = false;
|
466 |
+
}
|
467 |
+
if (alm.addons.single_post && alm.addons.single_post_id === undefined) {
|
468 |
+
alm.addons.single_post_id = '';
|
469 |
+
alm.addons.single_post_init_id = '';
|
470 |
+
}
|
471 |
+
/* End Single Post */
|
472 |
+
|
473 |
+
/* Pause */
|
474 |
+
if (alm.pause === undefined || (alm.addons.seo && alm.start_page > 1)) {
|
475 |
+
// SEO only
|
476 |
+
alm.pause = false;
|
477 |
+
}
|
478 |
+
if (alm.addons.preloaded === 'true' && alm.addons.seo && alm.start_page > 0) {
|
479 |
+
// SEO + Preloaded
|
480 |
+
alm.pause = false;
|
481 |
+
}
|
482 |
+
if (alm.addons.filters && alm.addons.filters_startpage > 0) {
|
483 |
+
// Filters
|
484 |
+
alm.pause = false;
|
485 |
+
}
|
486 |
+
if (alm.addons.preloaded === 'true' && alm.addons.paging) {
|
487 |
+
alm.pause = true;
|
488 |
+
}
|
489 |
+
|
490 |
+
/* Repeater and Theme Repeater */
|
491 |
+
alm.repeater = alm.repeater === undefined ? 'default' : alm.repeater;
|
492 |
+
alm.theme_repeater = alm.theme_repeater === undefined ? false : alm.theme_repeater;
|
493 |
+
|
494 |
+
/* Max Pages (while scrolling) */
|
495 |
+
alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
|
496 |
+
|
497 |
+
/* Scroll Distance */
|
498 |
+
alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance;
|
499 |
+
alm.scroll_distance_perc = false;
|
500 |
+
if (alm.scroll_distance.toString().indexOf('%') == -1) {
|
501 |
+
// Standard scroll_distance
|
502 |
+
alm.scroll_distance = parseInt(alm.scroll_distance);
|
503 |
+
} else {
|
504 |
+
// Percentage scroll_distance
|
505 |
+
alm.scroll_distance_perc = true;
|
506 |
+
alm.scroll_distance_orig = parseInt(alm.scroll_distance);
|
507 |
+
alm.scroll_distance = getScrollPercentage(alm);
|
508 |
+
}
|
509 |
+
|
510 |
+
/* Scroll Container */
|
511 |
+
alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
|
512 |
+
|
513 |
+
/* Scroll Direction */
|
514 |
+
alm.scroll_direction = alm.scroll_direction === undefined ? 'vertical' : alm.scroll_direction;
|
515 |
+
|
516 |
+
/* Transition */
|
517 |
+
alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
|
518 |
+
|
519 |
+
/* Transition Container Class */
|
520 |
+
alm.tcc = alm.tcc === undefined ? '' : alm.tcc;
|
521 |
+
|
522 |
+
/* Masonry */
|
523 |
+
alm.is_masonry_preloaded = false;
|
524 |
+
if (alm.transition === 'masonry') {
|
525 |
+
alm.masonry_init = true;
|
526 |
+
if (alm.msnry) {
|
527 |
+
alm.msnry.destroy(); // destroy masonry if it currently exists
|
528 |
+
} else {
|
529 |
+
alm.msnry = '';
|
530 |
+
}
|
531 |
+
alm.masonry_selector = alm.listing.dataset.masonrySelector;
|
532 |
+
alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
|
533 |
+
alm.masonry_animation = alm.listing.dataset.masonryAnimation;
|
534 |
+
alm.masonry_animation = alm.masonry_animation === undefined ? 'standard' : alm.masonry_animation;
|
535 |
+
alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
|
536 |
+
alm.masonry_horizontalorder = alm.masonry_horizontalorder === undefined ? 'true' : alm.masonry_horizontalorder;
|
537 |
+
alm.transition_container = false;
|
538 |
+
alm.images_loaded = false;
|
539 |
+
alm.is_masonry_preloaded = alm.addons.preloaded === 'true' ? true : alm.is_masonry_preloaded;
|
540 |
+
}
|
541 |
+
|
542 |
+
/* Scroll */
|
543 |
+
if (alm.listing.dataset.scroll === undefined) {
|
544 |
+
alm.scroll = true;
|
545 |
+
} else if (alm.listing.dataset.scroll === 'false') {
|
546 |
+
alm.scroll = false;
|
547 |
+
} else {
|
548 |
+
alm.scroll = true;
|
549 |
+
}
|
550 |
+
|
551 |
+
/* Transition Container */
|
552 |
+
alm.transition_container = alm.transition_container === undefined || alm.transition_container === 'true' ? true : false;
|
553 |
+
|
554 |
+
/* Button Labels */
|
555 |
+
alm.button_label = alm.button_label === undefined ? 'Load More' : alm.button_label;
|
556 |
+
alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
|
557 |
+
alm.button_done_label = alm.button_done_label === undefined ? false : alm.button_done_label;
|
558 |
+
|
559 |
+
/* Paging */
|
560 |
+
if (alm.addons.paging) {
|
561 |
+
alm.main.classList.add('loading'); // add loading class to main container
|
562 |
+
} else {
|
563 |
+
let almChildren = el.childNodes; // Get child nodes of instance [nodeList]
|
564 |
+
if (almChildren) {
|
565 |
+
let almChildArray = Array.prototype.slice.call(almChildren); // Convert nodeList to array
|
566 |
+
|
567 |
+
// Filter array to find the `.alm-btn-wrap` div
|
568 |
+
let btnWrap = almChildArray.filter(function (element) {
|
569 |
+
if (!element.classList) {
|
570 |
+
// If not element (#text node)
|
571 |
+
return false;
|
572 |
+
}
|
573 |
+
return element.classList.contains('alm-btn-wrap');
|
574 |
+
});
|
575 |
+
alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
576 |
+
} else {
|
577 |
+
alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
578 |
+
}
|
579 |
+
|
580 |
+
// Reset button state
|
581 |
+
alm.button.disabled = false;
|
582 |
+
alm.button.style.display = '';
|
583 |
+
}
|
584 |
+
|
585 |
+
// Results Text
|
586 |
+
// Render "Showing x of y results" text.
|
587 |
+
// If woocommerce, get the default woocommerce results block
|
588 |
+
if (alm.integration.woocommerce) {
|
589 |
+
alm.resultsText = document.querySelectorAll('.woocommerce-result-count');
|
590 |
+
if (alm.resultsText.length < 1) {
|
591 |
+
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
592 |
+
}
|
593 |
+
} else {
|
594 |
+
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
595 |
+
}
|
596 |
+
if (alm.resultsText) {
|
597 |
+
alm.resultsText.forEach(function (results) {
|
598 |
+
results.setAttribute('aria-live', 'polite');
|
599 |
+
results.setAttribute('aria-atomic', 'true');
|
600 |
+
});
|
601 |
+
} else {
|
602 |
+
alm.resultsText = false;
|
603 |
+
}
|
604 |
+
|
605 |
+
// Table of Contents
|
606 |
+
// Render 1, 2, 3 etc. when pages are loaded
|
607 |
+
alm.tableofcontents = document.querySelector('.alm-toc');
|
608 |
+
if (alm.tableofcontents) {
|
609 |
+
alm.tableofcontents.setAttribute('aria-live', 'polite');
|
610 |
+
alm.tableofcontents.setAttribute('aria-atomic', 'true');
|
611 |
+
} else {
|
612 |
+
alm.tableofcontents = false;
|
613 |
+
}
|
614 |
+
|
615 |
+
/**
|
616 |
+
* The function to get posts via Ajax
|
617 |
+
*
|
618 |
+
* @since 2.0.0
|
619 |
+
*/
|
620 |
+
alm.AjaxLoadMore.loadPosts = function () {
|
621 |
+
if (typeof almOnChange === 'function') {
|
622 |
+
window.almOnChange(alm);
|
623 |
+
}
|
624 |
+
|
625 |
+
showPlaceholder(alm);
|
626 |
+
|
627 |
+
if (!alm.disable_ajax) {
|
628 |
+
// Check for ajax blocker
|
629 |
+
if (!alm.addons.paging) {
|
630 |
+
alm.button.classList.add('loading');
|
631 |
+
if (alm.button_loading_label !== false) {
|
632 |
+
alm.button.innerHTML = alm.button_loading_label;
|
633 |
+
}
|
634 |
+
}
|
635 |
+
alm.main.classList.add('alm-loading');
|
636 |
+
alm.loading = true;
|
637 |
+
if (alm.addons.cache === 'true' && !alm.addons.cache_logged_in) {
|
638 |
+
// Cache
|
639 |
+
let cache_page = getCacheUrl(alm);
|
640 |
+
|
641 |
+
if (cache_page) {
|
642 |
+
// Load `.html` page
|
643 |
+
axios
|
644 |
+
.get(cache_page)
|
645 |
+
.then((response) => {
|
646 |
+
// Exists
|
647 |
+
alm.AjaxLoadMore.success(response.data, true);
|
648 |
+
})
|
649 |
+
.catch(function (error) {
|
650 |
+
// Error || Page does not yet exist
|
651 |
+
alm.AjaxLoadMore.ajax('standard');
|
652 |
+
});
|
653 |
+
} else {
|
654 |
+
// Standard ALM query
|
655 |
+
alm.AjaxLoadMore.ajax('standard');
|
656 |
+
}
|
657 |
+
} else {
|
658 |
+
// Standard ALM query
|
659 |
+
alm.AjaxLoadMore.ajax('standard');
|
660 |
+
}
|
661 |
+
}
|
662 |
+
};
|
663 |
+
|
664 |
+
/**
|
665 |
+
* Ajax Load Moe Ajax function
|
666 |
+
*
|
667 |
+
* @param {string} queryType The type of Ajax request (standard/totalposts).
|
668 |
+
* @since 2.6.0
|
669 |
+
*/
|
670 |
+
alm.AjaxLoadMore.ajax = function (queryType) {
|
671 |
+
// Default ALM action
|
672 |
+
let action = 'alm_get_posts';
|
673 |
+
|
674 |
+
// ACF Params
|
675 |
+
alm.acf_array = '';
|
676 |
+
if (alm.extensions.acf) {
|
677 |
+
// Custom query for the Repeater / Gallery / Flexible Content field types
|
678 |
+
if (alm.extensions.acf_field_type !== 'relationship') {
|
679 |
+
action = 'alm_acf';
|
680 |
+
}
|
681 |
+
alm.acf_array = {
|
682 |
+
acf: 'true',
|
683 |
+
post_id: alm.extensions.acf_post_id,
|
684 |
+
field_type: alm.extensions.acf_field_type,
|
685 |
+
field_name: alm.extensions.acf_field_name,
|
686 |
+
parent_field_name: alm.extensions.acf_parent_field_name,
|
687 |
+
};
|
688 |
+
}
|
689 |
+
|
690 |
+
// Term Query Params
|
691 |
+
alm.term_query_array = '';
|
692 |
+
if (alm.extensions.term_query) {
|
693 |
+
action = 'alm_get_terms';
|
694 |
+
alm.term_query_array = {
|
695 |
+
term_query: 'true',
|
696 |
+
taxonomy: alm.extensions.term_query_taxonomy,
|
697 |
+
hide_empty: alm.extensions.term_query_hide_empty,
|
698 |
+
number: alm.extensions.term_query_number,
|
699 |
+
};
|
700 |
+
}
|
701 |
+
|
702 |
+
// Nextpage Params
|
703 |
+
alm.nextpage_array = '';
|
704 |
+
if (alm.addons.nextpage) {
|
705 |
+
action = 'alm_nextpage';
|
706 |
+
alm.nextpage_array = {
|
707 |
+
nextpage: 'true',
|
708 |
+
urls: alm.addons.nextpage_urls,
|
709 |
+
scroll: alm.addons.nextpage_scroll,
|
710 |
+
pageviews: alm.addons.nextpage_pageviews,
|
711 |
+
post_id: alm.addons.nextpage_post_id,
|
712 |
+
startpage: alm.addons.nextpage_startpage,
|
713 |
+
nested: alm.nested,
|
714 |
+
};
|
715 |
+
}
|
716 |
+
|
717 |
+
// Previous Post Params
|
718 |
+
alm.single_post_array = '';
|
719 |
+
if (alm.addons.single_post) {
|
720 |
+
alm.single_post_array = {
|
721 |
+
single_post: 'true',
|
722 |
+
id: alm.addons.single_post_id,
|
723 |
+
slug: alm.addons.single_post_slug,
|
724 |
+
};
|
725 |
+
}
|
726 |
+
|
727 |
+
// Comment Params
|
728 |
+
alm.comments_array = '';
|
729 |
+
if (alm.addons.comments === 'true') {
|
730 |
+
action = 'alm_comments';
|
731 |
+
alm.posts_per_page = alm.addons.comments_per_page;
|
732 |
+
alm.comments_array = {
|
733 |
+
comments: 'true',
|
734 |
+
post_id: alm.addons.comments_post_id,
|
735 |
+
per_page: alm.addons.comments_per_page,
|
736 |
+
type: alm.addons.comments_type,
|
737 |
+
style: alm.addons.comments_style,
|
738 |
+
template: alm.addons.comments_template,
|
739 |
+
callback: alm.addons.comments_callback,
|
740 |
+
};
|
741 |
+
}
|
742 |
+
|
743 |
+
// Users Params
|
744 |
+
alm.users_array = '';
|
745 |
+
if (alm.addons.users) {
|
746 |
+
action = 'alm_users';
|
747 |
+
alm.users_array = {
|
748 |
+
users: 'true',
|
749 |
+
role: alm.listing.dataset.usersRole,
|
750 |
+
include: alm.listing.dataset.usersInclude,
|
751 |
+
exclude: alm.listing.dataset.usersExclude,
|
752 |
+
per_page: alm.posts_per_page,
|
753 |
+
order: alm.listing.dataset.usersOrder,
|
754 |
+
orderby: alm.listing.dataset.usersOrderby,
|
755 |
+
};
|
756 |
+
}
|
757 |
+
|
758 |
+
// CTA Params
|
759 |
+
alm.cta_array = '';
|
760 |
+
if (alm.addons.cta === 'true') {
|
761 |
+
alm.cta_array = {
|
762 |
+
cta: 'true',
|
763 |
+
cta_position: alm.addons.cta_position,
|
764 |
+
cta_repeater: alm.addons.cta_repeater,
|
765 |
+
cta_theme_repeater: alm.addons.cta_theme_repeater,
|
766 |
+
};
|
767 |
+
}
|
768 |
+
|
769 |
+
// REST API
|
770 |
+
if (alm.extensions.restapi) {
|
771 |
+
alm.AjaxLoadMore.restapi(alm, action, queryType);
|
772 |
+
}
|
773 |
+
// Tabs
|
774 |
+
else if (alm.addons.tabs) {
|
775 |
+
alm.AjaxLoadMore.tabs(alm);
|
776 |
+
}
|
777 |
+
// Standard ALM
|
778 |
+
else {
|
779 |
+
alm.AjaxLoadMore.adminajax(alm, action, queryType);
|
780 |
+
}
|
781 |
+
};
|
782 |
+
|
783 |
+
/**
|
784 |
+
* Send request to the admin-ajax.php
|
785 |
+
*
|
786 |
+
* @param {*} alm | ALm object
|
787 |
+
* @param {*} action | Ajax action
|
788 |
+
* @param {*} queryType
|
789 |
+
* @since 5.0.0
|
790 |
+
*/
|
791 |
+
alm.AjaxLoadMore.adminajax = function (alm, action, queryType) {
|
792 |
+
if (alm.page != 1 && !alm.addons.paging) {
|
793 |
+
alm.button.classList.add('loading');
|
794 |
+
}
|
795 |
+
|
796 |
+
// Axios Interceptor for nested data objects
|
797 |
+
axios.interceptors.request.use((config) => {
|
798 |
+
config.paramsSerializer = (params) => {
|
799 |
+
// Qs is already included in the Axios package
|
800 |
+
return qs.stringify(params, {
|
801 |
+
arrayFormat: 'brackets',
|
802 |
+
encode: false,
|
803 |
+
});
|
804 |
+
};
|
805 |
+
return config;
|
806 |
+
});
|
807 |
+
|
808 |
+
// Get Ajax URL
|
809 |
+
let ajaxURL = alm_localize.ajaxurl;
|
810 |
+
|
811 |
+
// Get data params
|
812 |
+
let params = queryParams.almGetAjaxParams(alm, action, queryType); // [./helpers/queryParams.js
|
813 |
+
|
814 |
+
// Single Posts Add-on
|
815 |
+
// If has `single_post_target`, adjust the Ajax URL to the post URL.
|
816 |
+
if (alm.addons.single_post && alm.addons.single_post_target) {
|
817 |
+
ajaxURL = `${alm.addons.single_post_permalink}?id=${alm.addons.single_post_id}&alm_page=${parseInt(alm.page) + 1}`;
|
818 |
+
params = '';
|
819 |
+
}
|
820 |
+
|
821 |
+
// WooCommerce Add-on
|
822 |
+
if (alm.addons.woocommerce) {
|
823 |
+
ajaxURL = getButtonURL(alm);
|
824 |
+
params = '';
|
825 |
+
}
|
826 |
+
|
827 |
+
// Elementor Add-on
|
828 |
+
if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
|
829 |
+
ajaxURL = getButtonURL(alm);
|
830 |
+
params = '';
|
831 |
+
}
|
832 |
+
|
833 |
+
// Send HTTP request via axios
|
834 |
+
axios
|
835 |
+
.get(ajaxURL, { params })
|
836 |
+
.then(function (response) {
|
837 |
+
// Success
|
838 |
+
let data = '';
|
839 |
+
|
840 |
+
if (alm.addons.single_post && alm.addons.single_post_target) {
|
841 |
+
// Single Posts
|
842 |
+
data = singlePostHTML(response, alm.addons.single_post_target);
|
843 |
+
createCacheFile(alm, data.html, 'single');
|
844 |
+
} else if (alm.addons.woocommerce) {
|
845 |
+
// WooCommerce
|
846 |
+
data = wooGetContent(response, alm);
|
847 |
+
createCacheFile(alm, data.html, 'woocommerce');
|
848 |
+
} else if (alm.addons.elementor) {
|
849 |
+
// Elementor
|
850 |
+
data = elementorGetContent(response, alm);
|
851 |
+
createCacheFile(alm, data.html, 'elementor');
|
852 |
+
} else {
|
853 |
+
// Get data from response
|
854 |
+
data = response.data;
|
855 |
+
}
|
856 |
+
|
857 |
+
// Standard Query
|
858 |
+
if (queryType === 'standard') {
|
859 |
+
alm.AjaxLoadMore.success(data, false);
|
860 |
+
} else if (queryType === 'totalpages' && alm.addons.paging && alm.addons.nextpage) {
|
861 |
+
// Next Page and Paging
|
862 |
+
if (typeof almBuildPagination === 'function') {
|
863 |
+
window.almBuildPagination(data.totalpages, alm);
|
864 |
+
alm.totalpages = data.totalpages;
|
865 |
+
}
|
866 |
+
} else if (queryType === 'totalposts' && alm.addons.paging) {
|
867 |
+
// Paging
|
868 |
+
if (typeof almBuildPagination === 'function') {
|
869 |
+
window.almBuildPagination(data.totalposts, alm);
|
870 |
+
}
|
871 |
+
}
|
872 |
+
})
|
873 |
+
.catch(function (error) {
|
874 |
+
// Error
|
875 |
+
alm.AjaxLoadMore.error(error, 'adminajax');
|
876 |
+
});
|
877 |
+
};
|
878 |
+
|
879 |
+
/**
|
880 |
+
* Send request to the WP REST API.
|
881 |
+
*
|
882 |
+
* @param {*} alm | ALm object
|
883 |
+
* @since 5.2.0
|
884 |
+
*/
|
885 |
+
alm.AjaxLoadMore.tabs = function (alm) {
|
886 |
+
let alm_rest_url = `${alm.addons.tabs_resturl}ajaxloadmore/tab`;
|
887 |
+
|
888 |
+
let params = {
|
889 |
+
post_id: alm.post_id,
|
890 |
+
template: alm.addons.tab_template,
|
891 |
+
};
|
892 |
+
|
893 |
+
// Axios Interceptor for nested data objects
|
894 |
+
axios.interceptors.request.use((config) => {
|
895 |
+
config.paramsSerializer = (params) => {
|
896 |
+
// Qs is already included in the Axios package
|
897 |
+
return qs.stringify(params, {
|
898 |
+
arrayFormat: 'brackets',
|
899 |
+
encode: false,
|
900 |
+
});
|
901 |
+
};
|
902 |
+
return config;
|
903 |
+
});
|
904 |
+
|
905 |
+
// Send Ajax request
|
906 |
+
axios
|
907 |
+
.get(alm_rest_url, { params })
|
908 |
+
.then(function (response) {
|
909 |
+
// Success
|
910 |
+
let results = response.data; // Get data from response
|
911 |
+
let html = results.html;
|
912 |
+
|
913 |
+
// Create object to pass to success()
|
914 |
+
let obj = {
|
915 |
+
html: html,
|
916 |
+
meta: {
|
917 |
+
postcount: 1,
|
918 |
+
totalposts: 1,
|
919 |
+
},
|
920 |
+
};
|
921 |
+
alm.AjaxLoadMore.success(obj, false); // Send data
|
922 |
+
|
923 |
+
// Callback to Tabs add-on
|
924 |
+
if (typeof almTabLoaded === 'function') {
|
925 |
+
window.almTabLoaded(alm);
|
926 |
+
}
|
927 |
+
})
|
928 |
+
.catch(function (error) {
|
929 |
+
// Error
|
930 |
+
alm.AjaxLoadMore.error(error, 'restapi');
|
931 |
+
});
|
932 |
+
};
|
933 |
+
|
934 |
+
/**
|
935 |
+
* Send request to the WP REST API
|
936 |
+
*
|
937 |
+
* @param {*} alm | ALm object
|
938 |
+
* @param {*} action | Ajax action
|
939 |
+
* @param {*} queryType
|
940 |
+
* @since 5.0.0
|
941 |
+
*/
|
942 |
+
alm.AjaxLoadMore.restapi = function (alm, action, queryType) {
|
943 |
+
let alm_rest_template = wp.template(alm.extensions.restapi_template_id);
|
944 |
+
let alm_rest_url = `${alm.extensions.restapi_base_url}/${alm.extensions.restapi_namespace}/${alm.extensions.restapi_endpoint}`;
|
945 |
+
let params = queryParams.almGetRestParams(alm); // [./helpers/queryParams.js]
|
946 |
+
|
947 |
+
// Axios Interceptor for nested data objects
|
948 |
+
axios.interceptors.request.use((config) => {
|
949 |
+
config.paramsSerializer = (params) => {
|
950 |
+
// Qs is already included in the Axios package
|
951 |
+
return qs.stringify(params, {
|
952 |
+
arrayFormat: 'brackets',
|
953 |
+
encode: false,
|
954 |
+
});
|
955 |
+
};
|
956 |
+
return config;
|
957 |
+
});
|
958 |
+
|
959 |
+
// Send Ajax request
|
960 |
+
axios
|
961 |
+
.get(alm_rest_url, { params })
|
962 |
+
.then(function (response) {
|
963 |
+
// Success
|
964 |
+
let results = response.data; // Get data from response
|
965 |
+
let data = '',
|
966 |
+
html = results.html,
|
967 |
+
meta = results.meta,
|
968 |
+
postcount = meta.postcount,
|
969 |
+
totalposts = meta.totalposts;
|
970 |
+
|
971 |
+
// loop results to get data from each
|
972 |
+
for (let i = 0; i < html.length; i++) {
|
973 |
+
let result = html[i];
|
974 |
+
if (alm.restapi_debug === 'true') {
|
975 |
+
// If debug
|
976 |
+
console.log(result);
|
977 |
+
}
|
978 |
+
data += alm_rest_template(result);
|
979 |
+
}
|
980 |
+
|
981 |
+
// Create object to pass to success()
|
982 |
+
let obj = {
|
983 |
+
html: data,
|
984 |
+
meta: {
|
985 |
+
postcount: postcount,
|
986 |
+
totalposts: totalposts,
|
987 |
+
},
|
988 |
+
};
|
989 |
+
alm.AjaxLoadMore.success(obj, false); // Send data
|
990 |
+
})
|
991 |
+
.catch(function (error) {
|
992 |
+
// Error
|
993 |
+
alm.AjaxLoadMore.error(error, 'restapi');
|
994 |
+
});
|
995 |
+
};
|
996 |
+
|
997 |
+
// If pagination enabled, run totalposts query
|
998 |
+
if (alm.addons.paging) {
|
999 |
+
if (alm.addons.nextpage) {
|
1000 |
+
alm.AjaxLoadMore.ajax('totalpages'); // Create paging menu and query for total pages
|
1001 |
+
} else {
|
1002 |
+
alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
|
1003 |
+
}
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
/**
|
1007 |
+
* Success function after loading data.
|
1008 |
+
*
|
1009 |
+
* @param {object} data The results of the Ajax request
|
1010 |
+
* @param {boolean} is_cache Are results of the Ajax request coming from cache
|
1011 |
+
* @since 2.6.0
|
1012 |
+
*/
|
1013 |
+
alm.AjaxLoadMore.success = function (data, is_cache) {
|
1014 |
+
if (alm.addons.single_post) {
|
1015 |
+
// Get previous page data
|
1016 |
+
alm.AjaxLoadMore.getSinglePost();
|
1017 |
+
}
|
1018 |
+
|
1019 |
+
let isPaged = false;
|
1020 |
+
|
1021 |
+
// Create `.alm-reveal` element
|
1022 |
+
//let reveal = document.createElement('div');
|
1023 |
+
let reveal = alm.container_type === 'table' ? document.createElement('tbody') : document.createElement('div');
|
1024 |
+
alm.el = reveal;
|
1025 |
+
reveal.style.opacity = 0;
|
1026 |
+
reveal.style.height = 0;
|
1027 |
+
reveal.style.outline = 'none';
|
1028 |
+
|
1029 |
+
// Paging container
|
1030 |
+
let pagingContent = alm.listing.querySelector('.alm-paging-content');
|
1031 |
+
|
1032 |
+
var html, meta, total, totalLoaded;
|
1033 |
+
|
1034 |
+
if (is_cache) {
|
1035 |
+
// If Cache, do not look for json data as we won't be querying the DB.
|
1036 |
+
html = data;
|
1037 |
+
} else {
|
1038 |
+
// Standard ALM query results
|
1039 |
+
html = data.html;
|
1040 |
+
meta = data.meta;
|
1041 |
+
alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
|
1042 |
+
total = meta.postcount;
|
1043 |
+
alm.totalposts = meta.totalposts;
|
1044 |
+
alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
|
1045 |
+
alm.debug = meta.debug ? meta.debug : '';
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
// Set alm.html as plain text return
|
1049 |
+
alm.html = html;
|
1050 |
+
|
1051 |
+
// If cache, get the length of the html object
|
1052 |
+
total = is_cache ? almDomParser(html).length : total;
|
1053 |
+
|
1054 |
+
// First Run Only
|
1055 |
+
if (alm.init) {
|
1056 |
+
// Set Meta
|
1057 |
+
if (meta) {
|
1058 |
+
alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0;
|
1059 |
+
}
|
1060 |
+
// Paging
|
1061 |
+
if (alm.addons.paging && total > 0) {
|
1062 |
+
// Add paging containers and content
|
1063 |
+
alm.AjaxLoadMore.pagingInit(html, 'alm-reveal');
|
1064 |
+
}
|
1065 |
+
// ALM Empty
|
1066 |
+
if (total === 0) {
|
1067 |
+
if (alm.addons.paging) {
|
1068 |
+
if (typeof almPagingEmpty === 'function') {
|
1069 |
+
window.almPagingEmpty(alm);
|
1070 |
+
}
|
1071 |
+
}
|
1072 |
+
if (typeof almEmpty === 'function') {
|
1073 |
+
window.almEmpty(alm);
|
1074 |
+
}
|
1075 |
+
if (alm.no_results) {
|
1076 |
+
setTimeout(function () {
|
1077 |
+
almNoResults(alm.content, alm.no_results);
|
1078 |
+
}, alm.speed + 10);
|
1079 |
+
}
|
1080 |
+
}
|
1081 |
+
|
1082 |
+
// isPaged
|
1083 |
+
if (alm.isPaged) {
|
1084 |
+
// Reset the posts_per_page parameter
|
1085 |
+
alm.posts_per_page = alm.addons.users ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage; // Users
|
1086 |
+
alm.posts_per_page = alm.addons.nextpage ? 1 : alm.posts_per_page; // NextPage
|
1087 |
+
|
1088 |
+
// SEO add-on
|
1089 |
+
alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
|
1090 |
+
|
1091 |
+
// Filters add-on
|
1092 |
+
if (alm.addons.filters) {
|
1093 |
+
if (alm.addons.filters_startpage > 0) {
|
1094 |
+
alm.page = alm.addons.filters_startpage - 1; // Set new page #
|
1095 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage; // Reset `filters-startpage` data after the first run
|
1096 |
+
}
|
1097 |
+
}
|
1098 |
+
}
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
/*
|
1102 |
+
* Display alm_debug results
|
1103 |
+
*/
|
1104 |
+
|
1105 |
+
almDebug(alm);
|
1106 |
+
|
1107 |
+
/*
|
1108 |
+
* Set localized variables and Results Text
|
1109 |
+
*/
|
1110 |
+
|
1111 |
+
(async () => {
|
1112 |
+
await setLocalizedVars(alm);
|
1113 |
+
})();
|
1114 |
+
|
1115 |
+
/*
|
1116 |
+
* Render results
|
1117 |
+
*/
|
1118 |
+
|
1119 |
+
if (total > 0) {
|
1120 |
+
// We have results!
|
1121 |
+
|
1122 |
+
if (!alm.addons.paging) {
|
1123 |
+
// Single Posts.
|
1124 |
+
if (alm.addons.single_post) {
|
1125 |
+
reveal.setAttribute('class', `alm-reveal alm-single-post post-${alm.addons.single_post_id}${alm.tcc ? ` ${alm.tcc}` : ''}`);
|
1126 |
+
reveal.dataset.url = alm.addons.single_post_permalink;
|
1127 |
+
if (alm.addons.single_post_target) {
|
1128 |
+
reveal.dataset.page = parseInt(alm.page) + 1;
|
1129 |
+
} else {
|
1130 |
+
reveal.dataset.page = alm.page;
|
1131 |
+
}
|
1132 |
+
reveal.dataset.id = alm.addons.single_post_id;
|
1133 |
+
reveal.dataset.title = alm.addons.single_post_title;
|
1134 |
+
reveal.innerHTML = alm.html;
|
1135 |
+
|
1136 |
+
// Single Post Preview
|
1137 |
+
if (alm.addons.single_post_preview && alm.addons.single_post_preview_data && typeof almSinglePostCreatePreview === 'function') {
|
1138 |
+
const singlePreview = window.almSinglePostCreatePreview(reveal, alm.addons.single_post_id, alm.addons.single_post_preview_data);
|
1139 |
+
reveal.replaceChildren(singlePreview ? singlePreview : reveal);
|
1140 |
+
}
|
1141 |
+
} else {
|
1142 |
+
if (!alm.transition_container) {
|
1143 |
+
// No transition container
|
1144 |
+
|
1145 |
+
alm.el = alm.html;
|
1146 |
+
reveal = alm.container_type === 'table' ? tableWrap(alm.html) : stripEmptyNodes(almDomParser(alm.html, 'text/html'));
|
1147 |
+
} else {
|
1148 |
+
// Standard container
|
1149 |
+
|
1150 |
+
let pagenum;
|
1151 |
+
let querystring = window.location.search;
|
1152 |
+
let seo_class = alm.addons.seo ? ' alm-seo' : '';
|
1153 |
+
let filters_class = alm.addons.filters ? ' alm-filters' : '';
|
1154 |
+
let preloaded_class = alm.is_preloaded ? ' alm-preloaded' : '';
|
1155 |
+
|
1156 |
+
// Init, SEO and Filter Paged
|
1157 |
+
if (alm.init && (alm.start_page > 1 || alm.addons.filters_startpage > 0)) {
|
1158 |
+
// loop through items and break into separate .alm-reveal divs for paging
|
1159 |
+
|
1160 |
+
let return_data = [];
|
1161 |
+
let container_array = [];
|
1162 |
+
let posts_per_page = parseInt(alm.posts_per_page);
|
1163 |
+
let pages = Math.ceil(total / posts_per_page);
|
1164 |
+
isPaged = true;
|
1165 |
+
|
1166 |
+
// Call to Actions
|
1167 |
+
if (alm.addons.cta === 'true') {
|
1168 |
+
posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
|
1169 |
+
pages = Math.ceil(total / posts_per_page); // Update pages var with new posts_per_page
|
1170 |
+
total = pages + total; // Get new total w/ CTAs added
|
1171 |
+
}
|
1172 |
+
|
1173 |
+
// Parse returned HTML and strip empty nodes
|
1174 |
+
let data = stripEmptyNodes(almDomParser(alm.html, 'text/html'));
|
1175 |
+
|
1176 |
+
// Slice data array into individual pages (array)
|
1177 |
+
for (let i = 0; i < total; i += posts_per_page) {
|
1178 |
+
return_data.push(data.slice(i, posts_per_page + i));
|
1179 |
+
}
|
1180 |
+
|
1181 |
+
// Loop return_data array to build .alm-reveal containers
|
1182 |
+
for (let k = 0; k < return_data.length; k++) {
|
1183 |
+
let p = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1184 |
+
let alm_reveal = document.createElement('div');
|
1185 |
+
|
1186 |
+
if (k > 0 || alm.addons.preloaded === 'true') {
|
1187 |
+
pagenum = k + 1 + p; // > Paged
|
1188 |
+
|
1189 |
+
if (alm.addons.seo) {
|
1190 |
+
// SEO
|
1191 |
+
alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, pagenum);
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
if (alm.addons.filters) {
|
1195 |
+
// Filters
|
1196 |
+
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1197 |
+
alm_reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
|
1198 |
+
alm_reveal.dataset.page = pagenum;
|
1199 |
+
}
|
1200 |
+
} else {
|
1201 |
+
// First Page
|
1202 |
+
if (alm.addons.seo) {
|
1203 |
+
// SEO
|
1204 |
+
alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, 1);
|
1205 |
+
}
|
1206 |
+
if (alm.addons.filters) {
|
1207 |
+
// Filters
|
1208 |
+
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
|
1209 |
+
alm_reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, 0);
|
1210 |
+
alm_reveal.dataset.page = '1';
|
1211 |
+
}
|
1212 |
+
}
|
1213 |
+
|
1214 |
+
// Append children to `.alm-reveal` element
|
1215 |
+
almAppendChildren(alm_reveal, return_data[k]);
|
1216 |
+
|
1217 |
+
// Run srcSet polyfill
|
1218 |
+
srcsetPolyfill(alm_reveal, alm.ua);
|
1219 |
+
|
1220 |
+
// Push alm_reveal elements into container_array
|
1221 |
+
container_array.push(alm_reveal);
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
// Set opacity and height of .alm-listing div to allow for fadein.
|
1225 |
+
alm.listing.style.opacity = 0;
|
1226 |
+
alm.listing.style.height = 0;
|
1227 |
+
|
1228 |
+
// Append container_array to `.alm-listing`
|
1229 |
+
almAppendChildren(alm.listing, container_array);
|
1230 |
+
|
1231 |
+
reveal = alm.listing;
|
1232 |
+
alm.el = reveal;
|
1233 |
+
}
|
1234 |
+
// End Init & SEO
|
1235 |
+
else {
|
1236 |
+
// Preloaded OR SEO (and Paged)
|
1237 |
+
if ((alm.addons.seo && alm.page > 0) || alm.addons.preloaded === 'true') {
|
1238 |
+
let p2 = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1239 |
+
|
1240 |
+
// SEO [Paged]
|
1241 |
+
pagenum = alm.page + 1 + p2;
|
1242 |
+
|
1243 |
+
if (alm.addons.seo) {
|
1244 |
+
// SEO
|
1245 |
+
reveal = createSEOAttributes(alm, reveal, querystring, seo_class, pagenum);
|
1246 |
+
} else if (alm.addons.filters) {
|
1247 |
+
// Filters
|
1248 |
+
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1249 |
+
reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
|
1250 |
+
reveal.dataset.page = pagenum;
|
1251 |
+
} else {
|
1252 |
+
// Basic ALM
|
1253 |
+
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
1254 |
+
}
|
1255 |
+
} else if (alm.addons.filters) {
|
1256 |
+
// Filters
|
1257 |
+
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1258 |
+
reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, parseInt(alm.page) + 1);
|
1259 |
+
reveal.dataset.page = parseInt(alm.page) + 1;
|
1260 |
+
} else {
|
1261 |
+
if (alm.addons.seo) {
|
1262 |
+
// SEO [Page 1]
|
1263 |
+
reveal = createSEOAttributes(alm, reveal, querystring, seo_class, 1);
|
1264 |
+
} else {
|
1265 |
+
// Basic ALM
|
1266 |
+
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
1267 |
+
}
|
1268 |
+
}
|
1269 |
+
|
1270 |
+
reveal.innerHTML = alm.html;
|
1271 |
+
}
|
1272 |
+
}
|
1273 |
+
}
|
1274 |
+
|
1275 |
+
// WooCommerce Add-on
|
1276 |
+
if (alm.addons.woocommerce) {
|
1277 |
+
(async function () {
|
1278 |
+
await woocommerce(reveal, alm, data.pageTitle);
|
1279 |
+
|
1280 |
+
let nextPageNum = alm.page + 2;
|
1281 |
+
|
1282 |
+
// Set button data attributes
|
1283 |
+
alm.button.dataset.page = nextPageNum; // Page
|
1284 |
+
let nextPage = alm.addons.woocommerce_settings.paged_urls[nextPageNum - 1]; // URL
|
1285 |
+
alm.button.dataset.url = nextPage ? nextPage : '';
|
1286 |
+
|
1287 |
+
alm.AjaxLoadMore.transitionEnd();
|
1288 |
+
|
1289 |
+
// almComplete
|
1290 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1291 |
+
window.almComplete(alm);
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
// ALM Done
|
1295 |
+
if (nextPageNum > parseInt(alm.addons.woocommerce_settings.pages)) {
|
1296 |
+
alm.AjaxLoadMore.triggerDone();
|
1297 |
+
}
|
1298 |
+
})().catch((e) => {
|
1299 |
+
console.log(e);
|
1300 |
+
console.log('There was an error loading woocommerce products');
|
1301 |
+
});
|
1302 |
+
|
1303 |
+
alm.init = false;
|
1304 |
+
|
1305 |
+
return;
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
// Elementor Add-on
|
1309 |
+
if (alm.addons.elementor) {
|
1310 |
+
(async function () {
|
1311 |
+
await elementor(reveal, alm, data.pageTitle);
|
1312 |
+
|
1313 |
+
let nextPageNum = alm.page + 1;
|
1314 |
+
|
1315 |
+
// Set button data attributes
|
1316 |
+
alm.button.dataset.page = nextPageNum; // Page
|
1317 |
+
let nextPage = alm.addons.elementor_next_page_url; // URL
|
1318 |
+
alm.button.dataset.url = nextPage ? nextPage : '';
|
1319 |
+
|
1320 |
+
alm.AjaxLoadMore.transitionEnd();
|
1321 |
+
|
1322 |
+
// almComplete
|
1323 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1324 |
+
window.almComplete(alm);
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
// ALM Done
|
1328 |
+
if (!nextPage) {
|
1329 |
+
alm.AjaxLoadMore.triggerDone();
|
1330 |
+
}
|
1331 |
+
})().catch((e) => {
|
1332 |
+
console.log(e);
|
1333 |
+
console.log('There was an error loading Elementor Post Widget items');
|
1334 |
+
});
|
1335 |
+
|
1336 |
+
alm.init = false;
|
1337 |
+
|
1338 |
+
return;
|
1339 |
+
}
|
1340 |
+
|
1341 |
+
// Append `reveal` div to ALM Listing container
|
1342 |
+
// Do not append when transtion == masonry OR init and !preloaded
|
1343 |
+
if (alm.transition !== 'masonry' || (alm.init && !alm.is_masonry_preloaded)) {
|
1344 |
+
if (!isPaged) {
|
1345 |
+
if (!alm.transition_container) {
|
1346 |
+
// No transition container
|
1347 |
+
if (alm.images_loaded === 'true') {
|
1348 |
+
imagesLoaded(reveal, function () {
|
1349 |
+
almAppendChildren(alm.listing, reveal);
|
1350 |
+
|
1351 |
+
// Run srcSet polyfill
|
1352 |
+
srcsetPolyfill(alm.listing, alm.ua);
|
1353 |
+
});
|
1354 |
+
} else {
|
1355 |
+
almAppendChildren(alm.listing, reveal);
|
1356 |
+
|
1357 |
+
// Run srcSet polyfill
|
1358 |
+
srcsetPolyfill(alm.listing, alm.ua);
|
1359 |
+
}
|
1360 |
+
} else {
|
1361 |
+
// Standard container
|
1362 |
+
alm.listing.appendChild(reveal);
|
1363 |
+
}
|
1364 |
+
}
|
1365 |
+
}
|
1366 |
+
|
1367 |
+
// *****
|
1368 |
+
// Transitions
|
1369 |
+
// *****
|
1370 |
+
|
1371 |
+
// Masonry
|
1372 |
+
if (alm.transition === 'masonry') {
|
1373 |
+
alm.el = alm.listing;
|
1374 |
+
|
1375 |
+
// Wrap almMasonry in anonymous async/await function
|
1376 |
+
(async function () {
|
1377 |
+
await almMasonry(alm, alm.init, alm_is_filtering);
|
1378 |
+
alm.masonry_init = false;
|
1379 |
+
|
1380 |
+
alm.AjaxLoadMore.triggerWindowResize();
|
1381 |
+
alm.AjaxLoadMore.transitionEnd();
|
1382 |
+
if (typeof almComplete === 'function') {
|
1383 |
+
window.almComplete(alm);
|
1384 |
+
}
|
1385 |
+
})().catch((e) => {
|
1386 |
+
console.log('There was an error with ALM Masonry');
|
1387 |
+
});
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
// None
|
1391 |
+
else if (alm.transition === 'none') {
|
1392 |
+
if (alm.images_loaded === 'true') {
|
1393 |
+
imagesLoaded(reveal, function () {
|
1394 |
+
almFadeIn(reveal, 0);
|
1395 |
+
alm.AjaxLoadMore.transitionEnd();
|
1396 |
+
});
|
1397 |
+
} else {
|
1398 |
+
almFadeIn(reveal, 0);
|
1399 |
+
alm.AjaxLoadMore.transitionEnd();
|
1400 |
+
}
|
1401 |
+
}
|
1402 |
+
|
1403 |
+
// Default(Fade)
|
1404 |
+
else {
|
1405 |
+
if (alm.images_loaded === 'true') {
|
1406 |
+
imagesLoaded(reveal, function () {
|
1407 |
+
if (alm.transition_container) {
|
1408 |
+
almFadeIn(reveal, alm.speed);
|
1409 |
+
}
|
1410 |
+
alm.AjaxLoadMore.transitionEnd();
|
1411 |
+
});
|
1412 |
+
} else {
|
1413 |
+
if (alm.transition_container) {
|
1414 |
+
almFadeIn(reveal, alm.speed);
|
1415 |
+
}
|
1416 |
+
alm.AjaxLoadMore.transitionEnd();
|
1417 |
+
}
|
1418 |
+
}
|
1419 |
+
|
1420 |
+
// TABS - Trigger almTabsSetHeight callback in Tabs add-on
|
1421 |
+
if (alm.addons.tabs && typeof almTabsSetHeight === 'function') {
|
1422 |
+
imagesLoaded(reveal, function () {
|
1423 |
+
almFadeIn(alm.listing, alm.speed);
|
1424 |
+
setTimeout(function () {
|
1425 |
+
window.almTabsSetHeight(alm);
|
1426 |
+
}, alm.speed);
|
1427 |
+
});
|
1428 |
+
}
|
1429 |
+
} else {
|
1430 |
+
// Paging
|
1431 |
+
if (!alm.init) {
|
1432 |
+
if (pagingContent) {
|
1433 |
+
almFadeOut(pagingContent, alm.speed);
|
1434 |
+
pagingContent.style.outline = 'none';
|
1435 |
+
alm.main.classList.remove('alm-loading');
|
1436 |
+
|
1437 |
+
setTimeout(function () {
|
1438 |
+
pagingContent.style.opacity = 0;
|
1439 |
+
pagingContent.innerHTML = alm.html;
|
1440 |
+
|
1441 |
+
imagesLoaded(pagingContent, function () {
|
1442 |
+
// Delay for effect
|
1443 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
1444 |
+
almFadeIn(pagingContent, alm.speed);
|
1445 |
+
|
1446 |
+
// Remove opacity on element to fix CSS transition
|
1447 |
+
setTimeout(function () {
|
1448 |
+
pagingContent.style.opacity = '';
|
1449 |
+
|
1450 |
+
// Insert Script
|
1451 |
+
insertScript.init(pagingContent);
|
1452 |
+
}, parseInt(alm.speed) + 10);
|
1453 |
+
|
1454 |
+
// Paging addon
|
1455 |
+
if (typeof almOnPagingComplete === 'function') {
|
1456 |
+
window.almOnPagingComplete(alm);
|
1457 |
+
}
|
1458 |
+
});
|
1459 |
+
}, parseInt(alm.speed) + 25);
|
1460 |
+
}
|
1461 |
+
} else {
|
1462 |
+
setTimeout(function () {
|
1463 |
+
alm.main.classList.remove('alm-loading');
|
1464 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
1465 |
+
}, alm.speed);
|
1466 |
+
}
|
1467 |
+
// End Paging
|
1468 |
+
}
|
1469 |
+
|
1470 |
+
// ALM Loaded, run complete callbacks
|
1471 |
+
imagesLoaded(reveal, function () {
|
1472 |
+
// Nested
|
1473 |
+
alm.AjaxLoadMore.nested(reveal);
|
1474 |
+
|
1475 |
+
// Insert Script
|
1476 |
+
insertScript.init(alm.el);
|
1477 |
+
|
1478 |
+
// almComplete
|
1479 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1480 |
+
window.almComplete(alm);
|
1481 |
+
}
|
1482 |
+
|
1483 |
+
// Filters Add-on Complete
|
1484 |
+
if (alm_is_filtering && alm.addons.filters) {
|
1485 |
+
if (typeof almFiltersAddonComplete === 'function') {
|
1486 |
+
// Filters Add-on
|
1487 |
+
window.almFiltersAddonComplete(el);
|
1488 |
+
}
|
1489 |
+
}
|
1490 |
+
alm_is_filtering = false;
|
1491 |
+
|
1492 |
+
// Tabs Complete
|
1493 |
+
if (alm.addons.tabs) {
|
1494 |
+
// Tabs Complete
|
1495 |
+
if (typeof almTabsComplete === 'function') {
|
1496 |
+
// Standard Filtering
|
1497 |
+
window.almTabsComplete();
|
1498 |
+
}
|
1499 |
+
}
|
1500 |
+
|
1501 |
+
// ALM Done
|
1502 |
+
if (!alm.addons.cache) {
|
1503 |
+
// Not Cache & Single Post
|
1504 |
+
if (alm.posts >= alm.totalposts && !alm.addons.single_post) {
|
1505 |
+
alm.AjaxLoadMore.triggerDone();
|
1506 |
+
}
|
1507 |
+
} else {
|
1508 |
+
// Cache
|
1509 |
+
if (alm.addons.nextpage && alm.localize) {
|
1510 |
+
// Nextpage
|
1511 |
+
if (parseInt(alm.localize.page) === parseInt(alm.localize.total_posts)) {
|
1512 |
+
alm.AjaxLoadMore.triggerDone();
|
1513 |
+
}
|
1514 |
+
} else {
|
1515 |
+
if (total < parseInt(alm.posts_per_page)) {
|
1516 |
+
alm.AjaxLoadMore.triggerDone();
|
1517 |
+
}
|
1518 |
+
}
|
1519 |
+
}
|
1520 |
+
// End ALM Done
|
1521 |
+
});
|
1522 |
+
// End ALM Loaded
|
1523 |
+
|
1524 |
+
// Filters onLoad
|
1525 |
+
if (typeof almFiltersOnload === 'function' && alm.init) {
|
1526 |
+
window.almFiltersOnload(alm);
|
1527 |
+
}
|
1528 |
+
} else {
|
1529 |
+
/*
|
1530 |
+
* No results from Ajax
|
1531 |
+
*/
|
1532 |
+
alm.AjaxLoadMore.noresults();
|
1533 |
+
}
|
1534 |
+
|
1535 |
+
// Destroy After
|
1536 |
+
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
1537 |
+
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1538 |
+
currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
|
1539 |
+
if (currentPage == alm.destroy_after) {
|
1540 |
+
// Disable ALM if page = alm.destroy_after val
|
1541 |
+
alm.AjaxLoadMore.destroyed();
|
1542 |
+
}
|
1543 |
+
}
|
1544 |
+
|
1545 |
+
/*
|
1546 |
+
* Display tableOfContents
|
1547 |
+
*/
|
1548 |
+
|
1549 |
+
tableOfContents(alm, alm.init);
|
1550 |
+
|
1551 |
+
// Set Focus for A11y
|
1552 |
+
if (alm.transition !== 'masonry') {
|
1553 |
+
setFocus(alm, reveal, total, alm_is_filtering);
|
1554 |
+
}
|
1555 |
+
|
1556 |
+
// Remove filtering class
|
1557 |
+
if (alm.main.classList.contains('alm-is-filtering')) {
|
1558 |
+
alm.main.classList.remove('alm-is-filtering');
|
1559 |
+
}
|
1560 |
+
|
1561 |
+
// Set init flag
|
1562 |
+
alm.init = false;
|
1563 |
+
};
|
1564 |
+
|
1565 |
+
/**
|
1566 |
+
* noresults
|
1567 |
+
* Functions run when no results are returned.
|
1568 |
+
*
|
1569 |
+
* @since 5.3.1
|
1570 |
+
*/
|
1571 |
+
alm.AjaxLoadMore.noresults = function () {
|
1572 |
+
if (!alm.addons.paging) {
|
1573 |
+
// Add .done class, reset btn text
|
1574 |
+
setTimeout(function () {
|
1575 |
+
alm.button.classList.remove('loading');
|
1576 |
+
alm.button.classList.add('done');
|
1577 |
+
}, alm.speed);
|
1578 |
+
alm.AjaxLoadMore.resetBtnText();
|
1579 |
+
}
|
1580 |
+
|
1581 |
+
// almComplete
|
1582 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1583 |
+
window.almComplete(alm);
|
1584 |
+
}
|
1585 |
+
|
1586 |
+
// Filters Add-on Complete
|
1587 |
+
if (alm_is_filtering && alm.addons.filters) {
|
1588 |
+
if (typeof almFiltersAddonComplete === 'function') {
|
1589 |
+
// Filters Add-on
|
1590 |
+
almFiltersAddonComplete(el);
|
1591 |
+
}
|
1592 |
+
alm_is_filtering = false;
|
1593 |
+
}
|
1594 |
+
|
1595 |
+
// Tabs Complete
|
1596 |
+
if (alm.addons.tabs) {
|
1597 |
+
// Tabs Complete
|
1598 |
+
if (typeof almTabsComplete === 'function') {
|
1599 |
+
// Standard Filtering
|
1600 |
+
almTabsComplete();
|
1601 |
+
}
|
1602 |
+
}
|
1603 |
+
|
1604 |
+
// Masonry, clear `alm-listing` height
|
1605 |
+
if (alm.transition === 'masonry') {
|
1606 |
+
alm.content.style.height = 'auto';
|
1607 |
+
}
|
1608 |
+
|
1609 |
+
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
1610 |
+
};
|
1611 |
+
|
1612 |
+
/**
|
1613 |
+
* pagingPreloadedInit
|
1614 |
+
* First run for Paging + Preloaded add-ons
|
1615 |
+
* Moves preloaded content into ajax container
|
1616 |
+
*
|
1617 |
+
* @param {data} Results of the Ajax request
|
1618 |
+
* @since 2.11.3
|
1619 |
+
*/
|
1620 |
+
alm.AjaxLoadMore.pagingPreloadedInit = function (data) {
|
1621 |
+
data = data == null ? '' : data; // Check for null data object
|
1622 |
+
|
1623 |
+
// Add paging containers and content
|
1624 |
+
alm.AjaxLoadMore.pagingInit(data, 'alm-reveal');
|
1625 |
+
|
1626 |
+
if (data === '') {
|
1627 |
+
if (typeof almPagingEmpty === 'function') {
|
1628 |
+
window.almPagingEmpty(alm);
|
1629 |
+
}
|
1630 |
+
if (typeof almEmpty === 'function') {
|
1631 |
+
window.almEmpty(alm);
|
1632 |
+
}
|
1633 |
+
if (alm.no_results) {
|
1634 |
+
almNoResults(alm.content, alm.no_results);
|
1635 |
+
}
|
1636 |
+
}
|
1637 |
+
};
|
1638 |
+
|
1639 |
+
/**
|
1640 |
+
* pagingNextpageInit
|
1641 |
+
* First run for Paging + Next Page add-ons
|
1642 |
+
* Moves .alm-nextpage content into ajax container
|
1643 |
+
*
|
1644 |
+
* @param {data} Results of Ajax request
|
1645 |
+
* @since 2.14.0
|
1646 |
+
*/
|
1647 |
+
alm.AjaxLoadMore.pagingNextpageInit = function (data) {
|
1648 |
+
data = data == null ? '' : data; // Check for null data object
|
1649 |
+
|
1650 |
+
// Add paging containers and content
|
1651 |
+
alm.AjaxLoadMore.pagingInit(data, 'alm-reveal alm-nextpage');
|
1652 |
+
|
1653 |
+
// Set up Nextpage Vars
|
1654 |
+
if (typeof almSetNextPageVars === 'function') {
|
1655 |
+
window.almSetNextPageVars(alm); // Next Page Add-on
|
1656 |
+
}
|
1657 |
+
};
|
1658 |
+
|
1659 |
+
/**
|
1660 |
+
* pagingInit
|
1661 |
+
* First run for Paging + (Preloaded & Next Page) add-ons. Create required containers.
|
1662 |
+
*
|
1663 |
+
* @param {data} Ajax results
|
1664 |
+
* @param {classes} added classes
|
1665 |
+
* @since 5.0
|
1666 |
+
*/
|
1667 |
+
alm.AjaxLoadMore.pagingInit = function (data, classes = 'alm-reveal') {
|
1668 |
+
data = data == null ? '' : data; // Check for null data object
|
1669 |
+
|
1670 |
+
// Create `alm-reveal` container
|
1671 |
+
let reveal = document.createElement('div');
|
1672 |
+
reveal.setAttribute('class', classes);
|
1673 |
+
|
1674 |
+
// Create `alm-paging-loading` container
|
1675 |
+
let content = document.createElement('div');
|
1676 |
+
content.setAttribute('class', 'alm-paging-content' + alm.tcc);
|
1677 |
+
content.innerHTML = data;
|
1678 |
+
reveal.appendChild(content);
|
1679 |
+
|
1680 |
+
// Create `alm-paging-content` container
|
1681 |
+
let loader = document.createElement('div');
|
1682 |
+
loader.setAttribute('class', 'alm-paging-loading');
|
1683 |
+
reveal.appendChild(loader);
|
1684 |
+
|
1685 |
+
// Add div to container
|
1686 |
+
alm.listing.appendChild(reveal);
|
1687 |
+
|
1688 |
+
// Get/Set height of .alm-listing div
|
1689 |
+
let styles = window.getComputedStyle(alm.listing);
|
1690 |
+
let pTop = parseInt(styles.getPropertyValue('padding-top').replace('px', ''));
|
1691 |
+
let pBtm = parseInt(styles.getPropertyValue('padding-bottom').replace('px', ''));
|
1692 |
+
let h = reveal.offsetHeight;
|
1693 |
+
|
1694 |
+
// Set initial `.alm-listing` height
|
1695 |
+
alm.listing.style.height = h + pTop + pBtm + 'px';
|
1696 |
+
|
1697 |
+
// Insert Script
|
1698 |
+
insertScript.init(reveal);
|
1699 |
+
|
1700 |
+
// Reset button text
|
1701 |
+
alm.AjaxLoadMore.resetBtnText();
|
1702 |
+
|
1703 |
+
// Delay reveal of paging to avoid positioning issues
|
1704 |
+
setTimeout(function () {
|
1705 |
+
if (typeof almFadePageControls === 'function') {
|
1706 |
+
window.almFadePageControls(alm.btnWrap);
|
1707 |
+
}
|
1708 |
+
if (typeof almOnWindowResize === 'function') {
|
1709 |
+
window.almOnWindowResize(alm);
|
1710 |
+
}
|
1711 |
+
// Remove loading class from main container
|
1712 |
+
alm.main.classList.remove('loading');
|
1713 |
+
}, alm.speed);
|
1714 |
+
};
|
1715 |
+
|
1716 |
+
/**
|
1717 |
+
* nested
|
1718 |
+
* Automatically trigger nested ALM instances (Requies `.alm-reveal` container
|
1719 |
+
*
|
1720 |
+
* @param {object} instance
|
1721 |
+
* @since 5.0
|
1722 |
+
*/
|
1723 |
+
alm.AjaxLoadMore.nested = function (reveal) {
|
1724 |
+
if (!reveal || !alm.transition_container) {
|
1725 |
+
return false; // Exit if not `transition_container`
|
1726 |
+
}
|
1727 |
+
let nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances
|
1728 |
+
if (nested) {
|
1729 |
+
nested.forEach(function (element) {
|
1730 |
+
window.almInit(element);
|
1731 |
+
});
|
1732 |
+
}
|
1733 |
+
};
|
1734 |
+
|
1735 |
+
/**
|
1736 |
+
* Get the Single Posts post ID via ajax.
|
1737 |
+
*
|
1738 |
+
* @since 2.7.4
|
1739 |
+
*/
|
1740 |
+
if (alm.addons.single_post_id) {
|
1741 |
+
alm.fetchingPreviousPost = false;
|
1742 |
+
alm.addons.single_post_init = true;
|
1743 |
+
}
|
1744 |
+
|
1745 |
+
alm.AjaxLoadMore.getSinglePost = function () {
|
1746 |
+
let action = 'alm_get_single';
|
1747 |
+
|
1748 |
+
if (alm.fetchingPreviousPost) {
|
1749 |
+
return false;
|
1750 |
+
}
|
1751 |
+
alm.fetchingPreviousPost = true;
|
1752 |
+
|
1753 |
+
// Get Ajax URL.
|
1754 |
+
let ajaxURL = alm_localize.ajaxurl;
|
1755 |
+
|
1756 |
+
// Get data params
|
1757 |
+
let params = {
|
1758 |
+
id: alm.addons.single_post_id,
|
1759 |
+
initial_id: alm.addons.single_post_init_id,
|
1760 |
+
order: alm.addons.single_post_order,
|
1761 |
+
taxonomy: alm.addons.single_post_taxonomy,
|
1762 |
+
excluded_terms: alm.addons.single_post_excluded_terms,
|
1763 |
+
post_type: alm.post_type,
|
1764 |
+
init: alm.addons.single_post_init,
|
1765 |
+
action: action,
|
1766 |
+
};
|
1767 |
+
|
1768 |
+
// Send HTTP request via Axios
|
1769 |
+
axios
|
1770 |
+
.get(ajaxURL, { params })
|
1771 |
+
.then(function (response) {
|
1772 |
+
// Success
|
1773 |
+
let data = response.data; // Get data from response
|
1774 |
+
|
1775 |
+
if (data.has_previous_post) {
|
1776 |
+
alm.listing.dataset.singlePostId = data.prev_id; // Update single-post-id on instance
|
1777 |
+
alm.addons.single_post_id = data.prev_id;
|
1778 |
+
alm.addons.single_post_permalink = data.prev_permalink;
|
1779 |
+
alm.addons.single_post_title = data.prev_title;
|
1780 |
+
alm.addons.single_post_slug = data.prev_slug;
|
1781 |
+
} else {
|
1782 |
+
if (!data.has_previous_post) {
|
1783 |
+
alm.AjaxLoadMore.triggerDone();
|
1784 |
+
}
|
1785 |
+
}
|
1786 |
+
if (typeof window.almSetSinglePost === 'function') {
|
1787 |
+
window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
|
1788 |
+
}
|
1789 |
+
alm.fetchingPreviousPost = false;
|
1790 |
+
alm.addons.single_post_init = false;
|
1791 |
+
})
|
1792 |
+
.catch(function (error) {
|
1793 |
+
// Error
|
1794 |
+
alm.AjaxLoadMore.error(error, 'getSinglePost');
|
1795 |
+
alm.fetchingPreviousPost = false;
|
1796 |
+
});
|
1797 |
+
};
|
1798 |
+
|
1799 |
+
/**
|
1800 |
+
* Triggers various add-on functions (if available) after load complete.
|
1801 |
+
*
|
1802 |
+
* @since 2.14.0
|
1803 |
+
*/
|
1804 |
+
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
1805 |
+
if (typeof almSetNextPage === 'function' && alm.addons.nextpage) {
|
1806 |
+
// Next Page
|
1807 |
+
window.almSetNextPage(alm);
|
1808 |
+
}
|
1809 |
+
if (typeof almSEO === 'function' && alm.addons.seo) {
|
1810 |
+
// SEO
|
1811 |
+
window.almSEO(alm, false);
|
1812 |
+
}
|
1813 |
+
if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) {
|
1814 |
+
// WooCommerce
|
1815 |
+
window.almWooCommerce(alm);
|
1816 |
+
}
|
1817 |
+
if (typeof almElementor === 'function' && alm.addons.elementor) {
|
1818 |
+
// Elementor
|
1819 |
+
window.almElementor(alm);
|
1820 |
+
}
|
1821 |
+
};
|
1822 |
+
|
1823 |
+
/**
|
1824 |
+
* Fires a set of actions and functions when ALM has no other posts to load.
|
1825 |
+
*
|
1826 |
+
* @since 2.11.3
|
1827 |
+
*/
|
1828 |
+
alm.AjaxLoadMore.triggerDone = function () {
|
1829 |
+
alm.loading = false;
|
1830 |
+
alm.finished = true;
|
1831 |
+
hidePlaceholder(alm);
|
1832 |
+
|
1833 |
+
if (!alm.addons.paging) {
|
1834 |
+
// Update button text
|
1835 |
+
if (alm.button_done_label !== false) {
|
1836 |
+
setTimeout(function () {
|
1837 |
+
alm.button.innerHTML = alm.button_done_label;
|
1838 |
+
}, 75);
|
1839 |
+
}
|
1840 |
+
|
1841 |
+
alm.button.classList.add('done');
|
1842 |
+
alm.button.disabled = true;
|
1843 |
+
}
|
1844 |
+
|
1845 |
+
// almDone
|
1846 |
+
if (typeof almDone === 'function') {
|
1847 |
+
// Delay done until animations complete
|
1848 |
+
setTimeout(function () {
|
1849 |
+
window.almDone(alm);
|
1850 |
+
}, alm.speed + 10);
|
1851 |
+
}
|
1852 |
+
};
|
1853 |
+
|
1854 |
+
/**
|
1855 |
+
* Resets the loading button text after loading has completed.
|
1856 |
+
*
|
1857 |
+
* @since 2.8.4
|
1858 |
+
*/
|
1859 |
+
alm.AjaxLoadMore.resetBtnText = function () {
|
1860 |
+
if (alm.button_loading_label !== false && !alm.addons.paging) {
|
1861 |
+
// Reset button text
|
1862 |
+
alm.button.innerHTML = alm.button_label;
|
1863 |
+
}
|
1864 |
+
};
|
1865 |
+
|
1866 |
+
/**
|
1867 |
+
* Error function after failed data attempt.
|
1868 |
+
*
|
1869 |
+
* @since 2.6.0
|
1870 |
+
*/
|
1871 |
+
alm.AjaxLoadMore.error = function (error, location = null) {
|
1872 |
+
alm.loading = false;
|
1873 |
+
if (!alm.addons.paging) {
|
1874 |
+
alm.button.classList.remove('loading');
|
1875 |
+
alm.AjaxLoadMore.resetBtnText();
|
1876 |
+
}
|
1877 |
+
|
1878 |
+
console.log('Error: ', error);
|
1879 |
+
if (error.response) {
|
1880 |
+
// The request was made and the server responded with a status code
|
1881 |
+
// that falls out of the range of 2xx
|
1882 |
+
//console.log(error.response.data);
|
1883 |
+
//console.log(error.response.status);
|
1884 |
+
//console.log(error.response.headers);
|
1885 |
+
console.log('Error Msg: ', error.message);
|
1886 |
+
} else if (error.request) {
|
1887 |
+
// The request was made but no response was received
|
1888 |
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
1889 |
+
// http.ClientRequest in node.js
|
1890 |
+
console.log(error.request);
|
1891 |
+
} else {
|
1892 |
+
// Something happened in setting up the request that triggered an Error
|
1893 |
+
console.log('Error Msg: ', error.message);
|
1894 |
+
}
|
1895 |
+
|
1896 |
+
if (location) {
|
1897 |
+
console.log('ALM Error started in ' + location);
|
1898 |
+
}
|
1899 |
+
|
1900 |
+
if (error.config) {
|
1901 |
+
console.log('ALM Error Debug: ', error.config);
|
1902 |
+
}
|
1903 |
+
};
|
1904 |
+
|
1905 |
+
/**
|
1906 |
+
* Button click handler to load posts.
|
1907 |
+
*
|
1908 |
+
* @since 4.2.0
|
1909 |
+
*/
|
1910 |
+
alm.AjaxLoadMore.click = function (e) {
|
1911 |
+
let button = e.target || e.currentTarget;
|
1912 |
+
if (alm.pause === 'true') {
|
1913 |
+
alm.pause = false;
|
1914 |
+
alm.pause_override = false;
|
1915 |
+
alm.AjaxLoadMore.loadPosts();
|
1916 |
+
}
|
1917 |
+
if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
|
1918 |
+
alm.loading = true;
|
1919 |
+
alm.page++;
|
1920 |
+
alm.AjaxLoadMore.loadPosts();
|
1921 |
+
}
|
1922 |
+
button.blur(); // Remove button focus
|
1923 |
+
};
|
1924 |
+
|
1925 |
+
/**
|
1926 |
+
* Load More button click event handler.
|
1927 |
+
*
|
1928 |
+
* @since 1.0.0
|
1929 |
+
*/
|
1930 |
+
if (!alm.addons.paging && !alm.fetchingPreviousPost) {
|
1931 |
+
alm.button.onclick = alm.AjaxLoadMore.click;
|
1932 |
+
}
|
1933 |
+
|
1934 |
+
/**
|
1935 |
+
* Window resize functions for Paging, Scroll Distance Percentage, Tabs etc.
|
1936 |
+
*
|
1937 |
+
* @since 2.1.2
|
1938 |
+
* @updated 5.2
|
1939 |
+
*/
|
1940 |
+
if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') {
|
1941 |
+
let resize;
|
1942 |
+
alm.window.onresize = function () {
|
1943 |
+
clearTimeout(resize);
|
1944 |
+
resize = setTimeout(function (e) {
|
1945 |
+
if (alm.addons.tabs) {
|
1946 |
+
// Tabs
|
1947 |
+
if (typeof almOnTabsWindowResize === 'function') {
|
1948 |
+
window.almOnTabsWindowResize(alm);
|
1949 |
+
}
|
1950 |
+
}
|
1951 |
+
if (alm.addons.paging) {
|
1952 |
+
// Paging
|
1953 |
+
if (typeof almOnWindowResize === 'function') {
|
1954 |
+
window.almOnWindowResize(alm);
|
1955 |
+
}
|
1956 |
+
}
|
1957 |
+
if (alm.scroll_distance_perc) {
|
1958 |
+
alm.scroll_distance = getScrollPercentage(alm);
|
1959 |
+
}
|
1960 |
+
if (alm.scroll_direction === 'horizontal') {
|
1961 |
+
alm.AjaxLoadMore.horizontal();
|
1962 |
+
}
|
1963 |
+
}, alm.speed);
|
1964 |
+
};
|
1965 |
+
}
|
1966 |
+
|
1967 |
+
/**
|
1968 |
+
* Check to see if element is visible before loading posts.
|
1969 |
+
*
|
1970 |
+
* @since 2.1.2
|
1971 |
+
*/
|
1972 |
+
alm.AjaxLoadMore.isVisible = function () {
|
1973 |
+
// Check for a width and height to determine visibility
|
1974 |
+
alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false;
|
1975 |
+
return alm.visible;
|
1976 |
+
};
|
1977 |
+
|
1978 |
+
/**
|
1979 |
+
* Trigger a window resize browser function.
|
1980 |
+
*
|
1981 |
+
* @since 5.3.1
|
1982 |
+
*/
|
1983 |
+
alm.AjaxLoadMore.triggerWindowResize = function () {
|
1984 |
+
if (typeof Event === 'function') {
|
1985 |
+
// modern browsers
|
1986 |
+
window.dispatchEvent(new Event('resize'));
|
1987 |
+
} else {
|
1988 |
+
//This will be executed on old browsers and especially IE
|
1989 |
+
var resizeEvent = window.document.createEvent('UIEvents');
|
1990 |
+
resizeEvent.initUIEvent('resize', true, false, window, 0);
|
1991 |
+
window.dispatchEvent(resizeEvent);
|
1992 |
+
}
|
1993 |
+
};
|
1994 |
+
|
1995 |
+
/**
|
1996 |
+
* Load posts as user scrolls the page.
|
1997 |
+
*
|
1998 |
+
* @since 1.0
|
1999 |
+
* @updated 4.2.0
|
2000 |
+
*/
|
2001 |
+
alm.AjaxLoadMore.scroll = function () {
|
2002 |
+
if (alm.timer) {
|
2003 |
+
clearTimeout(alm.timer);
|
2004 |
+
}
|
2005 |
+
|
2006 |
+
alm.timer = setTimeout(function () {
|
2007 |
+
if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
|
2008 |
+
let trigger = alm.trigger.getBoundingClientRect();
|
2009 |
+
let btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
|
2010 |
+
let scrollTrigger = btnPos <= 0 ? true : false;
|
2011 |
+
|
2012 |
+
// Scroll Container
|
2013 |
+
if (alm.window !== window) {
|
2014 |
+
let scrollHeight = alm.main.offsetHeight; // ALM height
|
2015 |
+
let scrollWidth = alm.main.offsetWidth; // ALM Width
|
2016 |
+
let scrollPosition = '';
|
2017 |
+
|
2018 |
+
if (alm.scroll_direction === 'horizontal') {
|
2019 |
+
// Left/Right
|
2020 |
+
alm.AjaxLoadMore.horizontal();
|
2021 |
+
scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled
|
2022 |
+
scrollTrigger = scrollWidth <= scrollPosition ? true : false;
|
2023 |
+
} else {
|
2024 |
+
// Up/Down
|
2025 |
+
scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
|
2026 |
+
scrollTrigger = scrollHeight <= scrollPosition ? true : false;
|
2027 |
+
}
|
2028 |
+
}
|
2029 |
+
|
2030 |
+
// If Pause && Pause Override
|
2031 |
+
if (
|
2032 |
+
!alm.loading &&
|
2033 |
+
!alm.finished &&
|
2034 |
+
scrollTrigger &&
|
2035 |
+
alm.page < alm.max_pages - 1 &&
|
2036 |
+
alm.proceed &&
|
2037 |
+
alm.pause === 'true' &&
|
2038 |
+
alm.pause_override === 'true'
|
2039 |
+
) {
|
2040 |
+
alm.button.click();
|
2041 |
+
}
|
2042 |
+
|
2043 |
+
// Standard Scroll
|
2044 |
+
else {
|
2045 |
+
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
|
2046 |
+
alm.button.click();
|
2047 |
+
}
|
2048 |
+
}
|
2049 |
+
}
|
2050 |
+
}, 25);
|
2051 |
+
};
|
2052 |
+
|
2053 |
+
/**
|
2054 |
+
* Add scroll eventlisteners, only when needed.
|
2055 |
+
*
|
2056 |
+
* @since 5.2.0
|
2057 |
+
*/
|
2058 |
+
alm.AjaxLoadMore.scrollSetup = function () {
|
2059 |
+
if (alm.scroll && !alm.addons.paging) {
|
2060 |
+
if (alm.scroll_container !== '') {
|
2061 |
+
// Scroll Container
|
2062 |
+
alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
|
2063 |
+
setTimeout(function () {
|
2064 |
+
// Delay to allow for ALM container to resize on load.
|
2065 |
+
alm.AjaxLoadMore.horizontal();
|
2066 |
+
}, 500);
|
2067 |
+
}
|
2068 |
+
alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
|
2069 |
+
alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
|
2070 |
+
alm.window.addEventListener('wheel', function (e) {
|
2071 |
+
// Mousewheel
|
2072 |
+
let direction = Math.sign(e.deltaY);
|
2073 |
+
if (direction > 0) {
|
2074 |
+
alm.AjaxLoadMore.scroll();
|
2075 |
+
}
|
2076 |
+
});
|
2077 |
+
alm.window.addEventListener('keyup', function (e) {
|
2078 |
+
// End, Page Down
|
2079 |
+
let code = e.keyCode ? e.keyCode : e.which;
|
2080 |
+
switch (code) {
|
2081 |
+
case 35:
|
2082 |
+
case 34:
|
2083 |
+
alm.AjaxLoadMore.scroll();
|
2084 |
+
break;
|
2085 |
+
}
|
2086 |
+
});
|
2087 |
+
}
|
2088 |
+
};
|
2089 |
+
|
2090 |
+
/**
|
2091 |
+
* Configure horizontal scroll settings.
|
2092 |
+
*
|
2093 |
+
* @since 5.3.6
|
2094 |
+
*/
|
2095 |
+
alm.AjaxLoadMore.horizontal = function () {
|
2096 |
+
if (alm.scroll_direction === 'horizontal') {
|
2097 |
+
alm.main.style.width = `${alm.listing.offsetWidth}px`;
|
2098 |
+
}
|
2099 |
+
};
|
2100 |
+
|
2101 |
+
/**
|
2102 |
+
* Destroy Ajax Load More functionality.
|
2103 |
+
*
|
2104 |
+
* @since 3.4.2
|
2105 |
+
*/
|
2106 |
+
alm.AjaxLoadMore.destroyed = function () {
|
2107 |
+
alm.disable_ajax = true;
|
2108 |
+
if (!alm.addons.paging) {
|
2109 |
+
alm.button.style.display = 'none';
|
2110 |
+
alm.AjaxLoadMore.triggerDone();
|
2111 |
+
if (typeof almDestroyed === 'function') {
|
2112 |
+
window.almDestroyed(alm);
|
2113 |
+
}
|
2114 |
+
}
|
2115 |
+
};
|
2116 |
+
|
2117 |
+
/**
|
2118 |
+
* Set variables after loading transiton completes.
|
2119 |
+
*
|
2120 |
+
* @since 3.5
|
2121 |
+
*/
|
2122 |
+
alm.AjaxLoadMore.transitionEnd = function () {
|
2123 |
+
setTimeout(function () {
|
2124 |
+
alm.AjaxLoadMore.resetBtnText();
|
2125 |
+
alm.main.classList.remove('alm-loading');
|
2126 |
+
alm.button.classList.remove('loading'); // Loading button
|
2127 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
2128 |
+
if (!alm.addons.paging) {
|
2129 |
+
setTimeout(function () {
|
2130 |
+
alm.loading = false; // Delay to prevent loading to fast
|
2131 |
+
}, alm.speed * 3);
|
2132 |
+
}
|
2133 |
+
}, 50);
|
2134 |
+
hidePlaceholder(alm);
|
2135 |
+
};
|
2136 |
+
|
2137 |
+
/**
|
2138 |
+
* Set individual localized variable.
|
2139 |
+
*
|
2140 |
+
* @param {string} name
|
2141 |
+
* @param {string} value
|
2142 |
+
* @since 4.1
|
2143 |
+
*/
|
2144 |
+
alm.AjaxLoadMore.setLocalizedVar = function (name = '', value = '') {
|
2145 |
+
if (alm.localize && name !== '' && value !== '') {
|
2146 |
+
alm.localize[name] = value.toString(); // Set ALM localize var
|
2147 |
+
window[alm.master_id + '_vars'][name] = value.toString(); // Update global window obj vars
|
2148 |
+
}
|
2149 |
+
};
|
2150 |
+
|
2151 |
+
/**
|
2152 |
+
* Init Ajax load More functionality and add-ons.
|
2153 |
+
*
|
2154 |
+
* @since 2.0
|
2155 |
+
*/
|
2156 |
+
alm.AjaxLoadMore.init = function () {
|
2157 |
+
// Preloaded and destroy_after is 1
|
2158 |
+
if (alm.addons.preloaded === 'true' && alm.destroy_after == 1) {
|
2159 |
+
alm.AjaxLoadMore.destroyed();
|
2160 |
+
}
|
2161 |
+
|
2162 |
+
if (!alm.addons.paging && !alm.addons.single_post) {
|
2163 |
+
if (alm.disable_ajax) {
|
2164 |
+
alm.finished = true;
|
2165 |
+
alm.button.classList.add('done');
|
2166 |
+
} else {
|
2167 |
+
if (alm.pause === 'true') {
|
2168 |
+
alm.button.innerHTML = alm.button_label;
|
2169 |
+
alm.loading = false;
|
2170 |
+
} else {
|
2171 |
+
alm.AjaxLoadMore.loadPosts();
|
2172 |
+
}
|
2173 |
+
}
|
2174 |
+
}
|
2175 |
+
|
2176 |
+
// Single Post Add-on
|
2177 |
+
if (alm.addons.single_post) {
|
2178 |
+
alm.AjaxLoadMore.getSinglePost(); // Set next post on load
|
2179 |
+
alm.loading = false;
|
2180 |
+
|
2181 |
+
// Trigger done if custom query and no posts to render
|
2182 |
+
if (alm.addons.single_post_query && alm.addons.single_post_order === '') {
|
2183 |
+
alm.AjaxLoadMore.triggerDone();
|
2184 |
+
}
|
2185 |
+
|
2186 |
+
/*
|
2187 |
+
* Display tableOfContents
|
2188 |
+
*/
|
2189 |
+
|
2190 |
+
tableOfContents(alm, true, true);
|
2191 |
+
}
|
2192 |
+
|
2193 |
+
// Preloaded + SEO && !Paging
|
2194 |
+
if (alm.addons.preloaded === 'true' && alm.addons.seo && !alm.addons.paging) {
|
2195 |
+
// Delay for scripts to load
|
2196 |
+
setTimeout(function () {
|
2197 |
+
if (typeof almSEO === 'function' && alm.start_page < 1) {
|
2198 |
+
window.almSEO(alm, true);
|
2199 |
+
}
|
2200 |
+
}, alm.speed);
|
2201 |
+
}
|
2202 |
+
|
2203 |
+
// Preloaded && !Paging
|
2204 |
+
if (alm.addons.preloaded === 'true' && !alm.addons.paging) {
|
2205 |
+
// Delay for scripts to load
|
2206 |
+
setTimeout(function () {
|
2207 |
+
// triggerDone
|
2208 |
+
if (alm.addons.preloaded_total_posts <= parseInt(alm.addons.preloaded_amount)) {
|
2209 |
+
alm.AjaxLoadMore.triggerDone();
|
2210 |
+
}
|
2211 |
+
// almEmpty
|
2212 |
+
if (alm.addons.preloaded_total_posts == 0) {
|
2213 |
+
if (typeof almEmpty === 'function') {
|
2214 |
+
window.almEmpty(alm);
|
2215 |
+
}
|
2216 |
+
if (alm.no_results) {
|
2217 |
+
almNoResults(alm.content, alm.no_results);
|
2218 |
+
}
|
2219 |
+
}
|
2220 |
+
}, alm.speed);
|
2221 |
+
}
|
2222 |
+
|
2223 |
+
// Preloaded Add-on ONLY
|
2224 |
+
if (alm.addons.preloaded === 'true') {
|
2225 |
+
if (alm.resultsText) {
|
2226 |
+
resultsText.almInitResultsText(alm, 'preloaded');
|
2227 |
+
}
|
2228 |
+
|
2229 |
+
/*
|
2230 |
+
* Display tableOfContents
|
2231 |
+
*/
|
2232 |
+
|
2233 |
+
tableOfContents(alm, alm.init, true);
|
2234 |
+
}
|
2235 |
+
|
2236 |
+
// Next Page Add-on
|
2237 |
+
if (alm.addons.nextpage) {
|
2238 |
+
// Check that posts remain on load
|
2239 |
+
if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) {
|
2240 |
+
let nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items
|
2241 |
+
|
2242 |
+
if (nextpage_pages) {
|
2243 |
+
let nextpage_first = nextpage_pages[0];
|
2244 |
+
let nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : alm.localize.total_posts;
|
2245 |
+
|
2246 |
+
// Disable if last page loaded
|
2247 |
+
if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
|
2248 |
+
alm.AjaxLoadMore.triggerDone();
|
2249 |
+
}
|
2250 |
+
}
|
2251 |
+
}
|
2252 |
+
|
2253 |
+
if (alm.resultsText) {
|
2254 |
+
resultsText.almInitResultsText(alm, 'nextpage');
|
2255 |
+
}
|
2256 |
+
|
2257 |
+
/*
|
2258 |
+
* Display tableOfContents
|
2259 |
+
*/
|
2260 |
+
|
2261 |
+
tableOfContents(alm, alm.init, true);
|
2262 |
+
}
|
2263 |
+
|
2264 |
+
// WooCommerce Add-on
|
2265 |
+
if (alm.addons.woocommerce) {
|
2266 |
+
wooInit(alm);
|
2267 |
+
|
2268 |
+
// Trigger `Done` if `paged is less than `pages`
|
2269 |
+
if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {
|
2270 |
+
alm.AjaxLoadMore.triggerDone();
|
2271 |
+
}
|
2272 |
+
}
|
2273 |
+
|
2274 |
+
// Elementor Add-on
|
2275 |
+
if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
|
2276 |
+
elementorInit(alm);
|
2277 |
+
|
2278 |
+
// Trigger `Done` if `elementor_next_page_url` is empty
|
2279 |
+
if (alm.addons.elementor_next_page_url === '') {
|
2280 |
+
alm.AjaxLoadMore.triggerDone();
|
2281 |
+
}
|
2282 |
+
}
|
2283 |
+
|
2284 |
+
// Window Load (Masonry + Preloaded)
|
2285 |
+
alm.window.addEventListener('load', function () {
|
2286 |
+
if (alm.is_masonry_preloaded) {
|
2287 |
+
// Wrap almMasonry in anonymous async/await function
|
2288 |
+
(async function () {
|
2289 |
+
await almMasonry(alm, true, false);
|
2290 |
+
alm.masonry_init = false;
|
2291 |
+
})().catch((e) => {
|
2292 |
+
console.log('There was an error with ALM Masonry');
|
2293 |
+
});
|
2294 |
+
}
|
2295 |
+
if (typeof almOnLoad === 'function') {
|
2296 |
+
window.almOnLoad(alm);
|
2297 |
+
}
|
2298 |
+
});
|
2299 |
+
};
|
2300 |
+
|
2301 |
+
/**
|
2302 |
+
* Update current page - triggered from paging add-on.
|
2303 |
+
*
|
2304 |
+
* @since 2.7.0
|
2305 |
+
*/
|
2306 |
+
window.almUpdateCurrentPage = function (current, obj, alm) {
|
2307 |
+
alm.page = current;
|
2308 |
+
alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on
|
2309 |
+
|
2310 |
+
let data = '';
|
2311 |
+
let target = '';
|
2312 |
+
|
2313 |
+
if (alm.addons.paging_init && alm.addons.preloaded === 'true') {
|
2314 |
+
// Paging + Preloaded Firstrun
|
2315 |
+
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
2316 |
+
if (target) {
|
2317 |
+
data = target.innerHTML; // Get content
|
2318 |
+
target.parentNode.removeChild(target); // Remove target
|
2319 |
+
alm.addons.preloaded_amount = 0; // Reset preloaded
|
2320 |
+
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
2321 |
+
}
|
2322 |
+
alm.addons.paging_init = false;
|
2323 |
+
alm.init = false;
|
2324 |
+
} else if (alm.addons.paging_init && alm.addons.nextpage) {
|
2325 |
+
// Paging + Next Page on firstrun
|
2326 |
+
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
2327 |
+
if (target) {
|
2328 |
+
data = target.innerHTML; // Get content
|
2329 |
+
target.parentNode.removeChild(target); // Remove target
|
2330 |
+
alm.AjaxLoadMore.pagingNextpageInit(data);
|
2331 |
+
}
|
2332 |
+
alm.addons.paging_init = false;
|
2333 |
+
alm.init = false;
|
2334 |
+
} else {
|
2335 |
+
// Standard Paging
|
2336 |
+
alm.AjaxLoadMore.loadPosts();
|
2337 |
+
}
|
2338 |
+
};
|
2339 |
+
|
2340 |
+
/**
|
2341 |
+
* Get the parent ALM container.
|
2342 |
+
*
|
2343 |
+
* @since 2.7.0
|
2344 |
+
* @return element
|
2345 |
+
*/
|
2346 |
+
window.almGetParentContainer = function () {
|
2347 |
+
return alm.listing;
|
2348 |
+
};
|
2349 |
+
|
2350 |
+
/**
|
2351 |
+
* Returns the current ALM obj.
|
2352 |
+
*
|
2353 |
+
* @param {string} specific obj
|
2354 |
+
* @since 2.7.0
|
2355 |
+
* @return object
|
2356 |
+
*/
|
2357 |
+
window.almGetObj = function (obj = '') {
|
2358 |
+
if (obj !== '') {
|
2359 |
+
return alm[obj]; // Return specific param
|
2360 |
+
} else {
|
2361 |
+
return alm; // Return the entire alm object
|
2362 |
+
}
|
2363 |
+
};
|
2364 |
+
|
2365 |
+
/**
|
2366 |
+
* Trigger ajaxloadmore from any element on page.
|
2367 |
+
*
|
2368 |
+
* @since 2.12.0
|
2369 |
+
*/
|
2370 |
+
window.almTriggerClick = function () {
|
2371 |
+
alm.button.click();
|
2372 |
+
};
|
2373 |
+
|
2374 |
+
// Flag to prevent loading of posts on initial page load.
|
2375 |
+
setTimeout(function () {
|
2376 |
+
alm.proceed = true;
|
2377 |
+
alm.AjaxLoadMore.scrollSetup();
|
2378 |
+
}, 500);
|
2379 |
+
|
2380 |
+
// Init Ajax Load More
|
2381 |
+
alm.AjaxLoadMore.init();
|
2382 |
+
};
|
2383 |
+
|
2384 |
+
// End ajaxloadmore
|
2385 |
+
|
2386 |
+
/**
|
2387 |
+
* Initiate instance of Ajax load More
|
2388 |
+
*
|
2389 |
+
* @since 5.0
|
2390 |
+
*/
|
2391 |
+
window.almInit = function (el, id = 0) {
|
2392 |
+
new ajaxloadmore(el, id);
|
2393 |
+
};
|
2394 |
+
|
2395 |
+
/**
|
2396 |
+
* Initiate Ajax load More if div is present on screen
|
2397 |
+
*
|
2398 |
+
* @since 2.1.2
|
2399 |
+
*/
|
2400 |
+
let alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
2401 |
+
if (alm_instances.length) {
|
2402 |
+
[...alm_instances].forEach((alm, e) => {
|
2403 |
+
new ajaxloadmore(alm, e);
|
2404 |
+
});
|
2405 |
+
}
|
2406 |
+
})();
|
2407 |
+
|
2408 |
+
/**
|
2409 |
+
* Filter an Ajax Load More instance.
|
2410 |
+
*
|
2411 |
+
* @since 5.0
|
2412 |
+
* @param {*} transition
|
2413 |
+
* @param {*} speed
|
2414 |
+
* @param {*} data
|
2415 |
+
*/
|
2416 |
+
let filter = function (transition = 'fade', speed = '200', data = '') {
|
2417 |
+
if (!transition || !speed || !data) {
|
2418 |
+
return false;
|
2419 |
+
}
|
2420 |
+
alm_is_filtering = true;
|
2421 |
+
almFilter(transition, speed, data, 'filter');
|
2422 |
+
};
|
2423 |
+
export { filter };
|
2424 |
+
|
2425 |
+
/**
|
2426 |
+
* Reset an Ajax Load More instance.
|
2427 |
+
*
|
2428 |
+
* @since 5.3.8
|
2429 |
+
* @param {*} target
|
2430 |
+
*/
|
2431 |
+
let reset = function (props = {}) {
|
2432 |
+
let data = {};
|
2433 |
+
alm_is_filtering = true;
|
2434 |
+
|
2435 |
+
if (props && props.target) {
|
2436 |
+
data = {
|
2437 |
+
target: target,
|
2438 |
+
};
|
2439 |
+
}
|
2440 |
+
|
2441 |
+
if (props && props.type === 'woocommerce') {
|
2442 |
+
// WooCommerce
|
2443 |
+
(async function () {
|
2444 |
+
let instance = document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance
|
2445 |
+
let settings = await wooReset(); // Get WooCommerce `settings` via Ajax
|
2446 |
+
if (settings) {
|
2447 |
+
instance.dataset.wooSettings = settings; // Update data atts
|
2448 |
+
almFilter('fade', '100', data, 'filter');
|
2449 |
+
}
|
2450 |
+
})().catch((e) => {
|
2451 |
+
console.log('There was an resetting the Ajax Load More instance.');
|
2452 |
+
});
|
2453 |
+
} else {
|
2454 |
+
// Standard ALM
|
2455 |
+
almFilter('fade', '200', data, 'filter');
|
2456 |
+
}
|
2457 |
+
};
|
2458 |
+
export { reset };
|
2459 |
+
|
2460 |
+
/**
|
2461 |
+
* Tabbed content for Ajax Load More instance.
|
2462 |
+
*
|
2463 |
+
* @since 5.2
|
2464 |
+
* @param {*} data
|
2465 |
+
* @param {*} url
|
2466 |
+
*/
|
2467 |
+
let tab = function (data = '', url = false) {
|
2468 |
+
let transition = 'fade';
|
2469 |
+
let speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
2470 |
+
|
2471 |
+
if (!data) {
|
2472 |
+
return false;
|
2473 |
+
}
|
2474 |
+
|
2475 |
+
alm_is_filtering = true;
|
2476 |
+
almFilter(transition, speed, data, 'tab');
|
2477 |
+
};
|
2478 |
+
export { tab };
|
2479 |
+
|
2480 |
+
/**
|
2481 |
+
* Track Page Views in Google Analytics.
|
2482 |
+
*
|
2483 |
+
* @since 5.0
|
2484 |
+
* @param {*} path
|
2485 |
+
*/
|
2486 |
+
let tracking = function (path) {
|
2487 |
+
if (typeof gtag === 'function') {
|
2488 |
+
// Gtag GA Tracking
|
2489 |
+
gtag('event', 'page_view', {
|
2490 |
+
page_path: path,
|
2491 |
+
});
|
2492 |
+
if (alm_localize.ga_debug) {
|
2493 |
+
console.log('Pageview sent to Google Analytics (gtag)');
|
2494 |
+
}
|
2495 |
+
}
|
2496 |
+
if (typeof ga === 'function') {
|
2497 |
+
// Deprecated GA Tracking
|
2498 |
+
ga('send', 'pageview', path);
|
2499 |
+
if (alm_localize.ga_debug) {
|
2500 |
+
console.log('Pageview sent to Google Analytics (ga)');
|
2501 |
+
}
|
2502 |
+
}
|
2503 |
+
if (typeof __gaTracker === 'function') {
|
2504 |
+
// Monster Insights
|
2505 |
+
__gaTracker('send', 'pageview', path);
|
2506 |
+
if (alm_localize.ga_debug) {
|
2507 |
+
console.log('Pageview sent to Google Analytics (__gaTracker)');
|
2508 |
+
}
|
2509 |
+
}
|
2510 |
+
|
2511 |
+
// Dispatch global Analytics callback
|
2512 |
+
if (typeof almAnalytics === 'function') {
|
2513 |
+
window.almAnalytics(path);
|
2514 |
+
}
|
2515 |
+
};
|
2516 |
+
export { tracking };
|
2517 |
+
|
2518 |
+
/**
|
2519 |
+
* Trigger Ajax Load More from other events.
|
2520 |
+
*
|
2521 |
+
* @since 5.0
|
2522 |
+
* @param {*} el
|
2523 |
+
*/
|
2524 |
+
let start = function (el) {
|
2525 |
+
if (!el) {
|
2526 |
+
return false;
|
2527 |
+
}
|
2528 |
+
window.almInit(el);
|
2529 |
+
};
|
2530 |
+
export { start };
|
2531 |
+
|
2532 |
+
/**
|
2533 |
+
* Scroll window to position (global function).
|
2534 |
+
*
|
2535 |
+
* @since 5.0
|
2536 |
+
* @param {*} position
|
2537 |
+
*/
|
2538 |
+
let almScroll = function (position) {
|
2539 |
+
if (!position) {
|
2540 |
+
return false;
|
2541 |
+
}
|
2542 |
+
window.scrollTo({
|
2543 |
+
top: position,
|
2544 |
+
behavior: 'smooth',
|
2545 |
+
});
|
2546 |
+
};
|
2547 |
+
export { almScroll };
|
2548 |
+
|
2549 |
+
/**
|
2550 |
+
* Get the current top/left coordinates of an element relative to the document.
|
2551 |
+
*
|
2552 |
+
* @since 5.0
|
2553 |
+
* @param {*} el
|
2554 |
+
*/
|
2555 |
+
let getOffset = function (el = null) {
|
2556 |
+
if (!el) {
|
2557 |
+
return false;
|
2558 |
+
}
|
2559 |
+
let rect = el.getBoundingClientRect(),
|
2560 |
+
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
|
2561 |
+
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
2562 |
+
return { top: rect.top + scrollTop, left: rect.left + scrollLeft };
|
2563 |
+
};
|
2564 |
+
export { getOffset };
|
2565 |
+
|
2566 |
+
/**
|
2567 |
+
* ALM Render (in progress)
|
2568 |
+
*
|
2569 |
+
* @since 5.0
|
2570 |
+
*/
|
2571 |
+
let render = function (el, options = null) {
|
2572 |
+
if (!el) {
|
2573 |
+
return false;
|
2574 |
+
}
|
2575 |
+
// console.log(el, options);
|
2576 |
+
};
|
2577 |
+
export { render };
|
core/src/js/helpers/almAppendChild.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Append a child element to a container
|
3 |
+
*
|
4 |
+
* @param {*} target | Target element to append items
|
5 |
+
* @param {*} element | The element to append
|
6 |
+
* @param {*} transition | The transiton
|
7 |
+
* @since 5.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
let nodeNameArray = ['#text', '#comment'];
|
11 |
+
|
12 |
+
let almAppendChild = function( target = null, element = null, transition = 'fade' ) {
|
13 |
+
if(!target || !element){
|
14 |
+
return false;
|
15 |
+
}
|
16 |
+
|
17 |
+
// Do not append elements that are not actual element nodes (i.e. #text node)
|
18 |
+
// Add item if not in exclude array
|
19 |
+
if(nodeNameArray.indexOf(element.nodeName.toLowerCase()) === -1){
|
20 |
+
if(transition === 'masonry'){ // If Masonry, opacity = zero
|
21 |
+
element.style.opacity = 0;
|
22 |
+
}
|
23 |
+
target.appendChild(element);
|
24 |
+
}
|
25 |
+
};
|
26 |
+
export default almAppendChild;
|
core/src/js/helpers/almAppendChildren.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import almAppendChild from './almAppendChild';
|
2 |
+
/**
|
3 |
+
* Loop array of elements and append to target
|
4 |
+
*
|
5 |
+
* @param {*} target | Target element to append items
|
6 |
+
* @param {*} array | An array of elements
|
7 |
+
* @param {*} transition | The transiton
|
8 |
+
* @since 5.0
|
9 |
+
*/
|
10 |
+
|
11 |
+
let almAppendChildren = function( target = null, array = null, transition = 'fade' ) {
|
12 |
+
if(!target || !array){
|
13 |
+
return false;
|
14 |
+
}
|
15 |
+
for (var i = 0; i < array.length; i++) {
|
16 |
+
let element = array[i];
|
17 |
+
almAppendChild(target, element, transition);
|
18 |
+
}
|
19 |
+
};
|
20 |
+
export default almAppendChildren;
|
core/src/js/helpers/almDomParser.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Convert a plain text string into an array of HTML nodes
|
3 |
+
*
|
4 |
+
* @param {*} html | The HTML string
|
5 |
+
* @param {*} type
|
6 |
+
* @return array
|
7 |
+
* @since 5.0
|
8 |
+
*/
|
9 |
+
let almDomParser = function( html = '', type = 'text/html' ) {
|
10 |
+
if(!html){
|
11 |
+
return false;
|
12 |
+
}
|
13 |
+
let parser = new DOMParser();
|
14 |
+
let data = parser.parseFromString(html, type);
|
15 |
+
return (data) ? Array.prototype.slice.call(data.body.childNodes) : data;
|
16 |
+
};
|
17 |
+
export default almDomParser;
|
core/src/js/helpers/commentReplyFix.js
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* commentReplyFix
|
3 |
+
* Hotfix for Reply links not working in WordPress 5.1+
|
4 |
+
*
|
5 |
+
* @param comments string
|
6 |
+
* @param listing object
|
7 |
+
* @since 5.1
|
8 |
+
*/
|
9 |
+
let commentReplyFix = function(comments = false, listing = null) {
|
10 |
+
|
11 |
+
if(comments !== 'true'){
|
12 |
+
// Exit if not comments
|
13 |
+
return false;
|
14 |
+
}
|
15 |
+
|
16 |
+
// Get all `Reply` links.
|
17 |
+
let replyLinks = listing.querySelectorAll('.comment-reply-link');
|
18 |
+
if(!replyLinks){
|
19 |
+
return false;
|
20 |
+
}
|
21 |
+
// Loop links
|
22 |
+
replyLinks.forEach(function(link){
|
23 |
+
// Add custom click handler
|
24 |
+
link.onclick = function(e) {
|
25 |
+
e.preventDefault();
|
26 |
+
let commId = link.dataset.belowelement,
|
27 |
+
parentId = link.dataset.commentid,
|
28 |
+
respondId = link.dataset.respondelement,
|
29 |
+
postId = link.dataset.postid,
|
30 |
+
follow;
|
31 |
+
if ( ! commId || ! parentId || ! respondId || ! postId ) {
|
32 |
+
/*
|
33 |
+
* Theme or plugin defines own link via custom `wp_list_comments()` callback
|
34 |
+
* and calls `moveForm()` either directly or via a custom event hook.
|
35 |
+
*/
|
36 |
+
return;
|
37 |
+
}
|
38 |
+
|
39 |
+
// Move reply form
|
40 |
+
follow = window.addComment.moveForm(commId, parentId, respondId, postId);
|
41 |
+
if (false === follow) {
|
42 |
+
event.preventDefault();
|
43 |
+
}
|
44 |
+
};
|
45 |
+
});
|
46 |
+
};
|
47 |
+
export default commentReplyFix;
|
core/src/js/helpers/getCacheUrl.js
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { parseQuerystring } from '../addons/filters';
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Generate the cache page URL for GET request
|
5 |
+
*
|
6 |
+
* @param {*} alm
|
7 |
+
* @since 5.0
|
8 |
+
* @supports Standard, SEO, Filters, Nextpage, Single Posts
|
9 |
+
*/
|
10 |
+
let getCacheUrl = function (alm) {
|
11 |
+
if (!alm) {
|
12 |
+
return false;
|
13 |
+
}
|
14 |
+
|
15 |
+
let firstpage = '1';
|
16 |
+
let cache_url = '';
|
17 |
+
let ext = '.html';
|
18 |
+
let path = alm.addons.cache_path + alm.addons.cache_id;
|
19 |
+
|
20 |
+
// SEO Add-on
|
21 |
+
if (alm.init && alm.addons.seo && alm.isPaged) {
|
22 |
+
// If request is a paged URL (e.g. /page/3/)
|
23 |
+
cache_url = path + '/page-' + firstpage + '-' + alm.start_page + ext;
|
24 |
+
}
|
25 |
+
|
26 |
+
// Filters
|
27 |
+
else if (alm.addons.filters) {
|
28 |
+
let filtersPath = parseQuerystring(path);
|
29 |
+
|
30 |
+
if (alm.init && alm.isPaged) {
|
31 |
+
// First run & Paged
|
32 |
+
cache_url = filtersPath + '/page-' + firstpage + '-' + alm.addons.filters_startpage + ext;
|
33 |
+
} else {
|
34 |
+
let page = alm.page + 1;
|
35 |
+
|
36 |
+
if (alm.addons.preloaded === 'true') {
|
37 |
+
// Preloaded + Filters
|
38 |
+
page = alm.page + 2;
|
39 |
+
}
|
40 |
+
cache_url = filtersPath + '/page-' + page + ext;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
// Nextpage
|
45 |
+
else if (alm.addons.nextpage) {
|
46 |
+
let nextpage_cache_url;
|
47 |
+
if (alm.addons.paging) {
|
48 |
+
nextpage_cache_url = parseInt(alm.page) + 1;
|
49 |
+
} else {
|
50 |
+
nextpage_cache_url = parseInt(alm.page) + 2;
|
51 |
+
if (alm.isPaged) {
|
52 |
+
// If the request a paged URL (/page/3/)
|
53 |
+
nextpage_cache_url = parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1;
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
cache_url = path + '/page-' + nextpage_cache_url + ext;
|
58 |
+
}
|
59 |
+
|
60 |
+
// Single Post
|
61 |
+
else if (alm.addons.single_post) {
|
62 |
+
cache_url = path + '/' + alm.addons.single_post_id + ext;
|
63 |
+
}
|
64 |
+
|
65 |
+
// Comments & Preloaded
|
66 |
+
else if (alm.addons.comments === 'true' && alm.addons.preloaded === 'true') {
|
67 |
+
// When using comments we need to increase the current page by 2
|
68 |
+
cache_url = path + '/page-' + (alm.page + 2) + ext;
|
69 |
+
}
|
70 |
+
|
71 |
+
// Standard URL request
|
72 |
+
else {
|
73 |
+
cache_url = path + '/page-' + (alm.page + 1) + ext;
|
74 |
+
}
|
75 |
+
|
76 |
+
return cache_url;
|
77 |
+
};
|
78 |
+
|
79 |
+
export default getCacheUrl;
|
core/src/js/helpers/getParameterByName.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
let getParameterByName = function( name, url ) {
|
2 |
+
if (!url) url = window.location.href;
|
3 |
+
name = name.replace(/[\[\]]/g, "\\$&");
|
4 |
+
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
5 |
+
results = regex.exec(url);
|
6 |
+
if (!results) return null;
|
7 |
+
if (!results[2]) return '';
|
8 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
9 |
+
};
|
10 |
+
export default getParameterByName;
|
core/src/js/helpers/getQueryVariable.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Get a query variable from location querystring
|
3 |
+
*
|
4 |
+
* @param {String} variable
|
5 |
+
* @since 5.3.4
|
6 |
+
*/
|
7 |
+
const getQueryVariable = function (variable) {
|
8 |
+
var query = window.location.search.substring(1);
|
9 |
+
var vars = query.split("&");
|
10 |
+
for (var i = 0; i < vars.length; i++) {
|
11 |
+
var pair = vars[i].split("=");
|
12 |
+
if (decodeURIComponent(pair[0]) == variable) {
|
13 |
+
return decodeURIComponent(pair[1]);
|
14 |
+
}
|
15 |
+
}
|
16 |
+
return false;
|
17 |
+
};
|
18 |
+
|
19 |
+
export default getQueryVariable;
|
core/src/js/helpers/helpers.js
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Prevent native browser scrolling on popstate
|
2 |
+
// https://developer.mozilla.org/en-US/docs/Web/API/History#Browser_compatibility
|
3 |
+
if ('scrollRestoration' in history) {
|
4 |
+
//history.scrollRestoration = 'manual';
|
5 |
+
}
|
6 |
+
|
7 |
+
|
8 |
+
// Object.entries
|
9 |
+
if (!Object.entries){
|
10 |
+
Object.entries = function( obj ){
|
11 |
+
var ownProps = Object.keys( obj ),
|
12 |
+
i = ownProps.length,
|
13 |
+
resArray = new Array(i); // preallocate the Array
|
14 |
+
while (i--)
|
15 |
+
resArray[i] = [ownProps[i], obj[ownProps[i]]];
|
16 |
+
|
17 |
+
return resArray;
|
18 |
+
};
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
+
// isArray
|
23 |
+
if (typeof Array.isArray === 'undefined') {
|
24 |
+
Array.isArray = function(obj) {
|
25 |
+
return Object.prototype.toString.call(obj) === '[object Array]';
|
26 |
+
}
|
27 |
+
};
|
28 |
+
|
29 |
+
|
30 |
+
// Array.from
|
31 |
+
if (!Array.from) {
|
32 |
+
Array.from = (function () {
|
33 |
+
var toStr = Object.prototype.toString;
|
34 |
+
var isCallable = function (fn) {
|
35 |
+
return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
|
36 |
+
};
|
37 |
+
var toInteger = function (value) {
|
38 |
+
var number = Number(value);
|
39 |
+
if (isNaN(number)) { return 0; }
|
40 |
+
if (number === 0 || !isFinite(number)) { return number; }
|
41 |
+
return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
|
42 |
+
};
|
43 |
+
var maxSafeInteger = Math.pow(2, 53) - 1;
|
44 |
+
var toLength = function (value) {
|
45 |
+
var len = toInteger(value);
|
46 |
+
return Math.min(Math.max(len, 0), maxSafeInteger);
|
47 |
+
};
|
48 |
+
|
49 |
+
// The length property of the from method is 1.
|
50 |
+
return function from(arrayLike/*, mapFn, thisArg */) {
|
51 |
+
// 1. Let C be the this value.
|
52 |
+
var C = this;
|
53 |
+
|
54 |
+
// 2. Let items be ToObject(arrayLike).
|
55 |
+
var items = Object(arrayLike);
|
56 |
+
|
57 |
+
// 3. ReturnIfAbrupt(items).
|
58 |
+
if (arrayLike == null) {
|
59 |
+
throw new TypeError('Array.from requires an array-like object - not null or undefined');
|
60 |
+
}
|
61 |
+
|
62 |
+
// 4. If mapfn is undefined, then let mapping be false.
|
63 |
+
var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
|
64 |
+
var T;
|
65 |
+
if (typeof mapFn !== 'undefined') {
|
66 |
+
// 5. else
|
67 |
+
// 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
|
68 |
+
if (!isCallable(mapFn)) {
|
69 |
+
throw new TypeError('Array.from: when provided, the second argument must be a function');
|
70 |
+
}
|
71 |
+
|
72 |
+
// 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
|
73 |
+
if (arguments.length > 2) {
|
74 |
+
T = arguments[2];
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
// 10. Let lenValue be Get(items, "length").
|
79 |
+
// 11. Let len be ToLength(lenValue).
|
80 |
+
var len = toLength(items.length);
|
81 |
+
|
82 |
+
// 13. If IsConstructor(C) is true, then
|
83 |
+
// 13. a. Let A be the result of calling the [[Construct]] internal method
|
84 |
+
// of C with an argument list containing the single item len.
|
85 |
+
// 14. a. Else, Let A be ArrayCreate(len).
|
86 |
+
var A = isCallable(C) ? Object(new C(len)) : new Array(len);
|
87 |
+
|
88 |
+
// 16. Let k be 0.
|
89 |
+
var k = 0;
|
90 |
+
// 17. Repeat, while k < len… (also steps a - h)
|
91 |
+
var kValue;
|
92 |
+
while (k < len) {
|
93 |
+
kValue = items[k];
|
94 |
+
if (mapFn) {
|
95 |
+
A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
|
96 |
+
} else {
|
97 |
+
A[k] = kValue;
|
98 |
+
}
|
99 |
+
k += 1;
|
100 |
+
}
|
101 |
+
// 18. Let putStatus be Put(A, "length", len, true).
|
102 |
+
A.length = len;
|
103 |
+
// 20. Return A.
|
104 |
+
return A;
|
105 |
+
};
|
106 |
+
}());
|
107 |
+
}
|
108 |
+
|
109 |
+
|
110 |
+
// Nodelist
|
111 |
+
if (window.NodeList && !NodeList.prototype.forEach) {
|
112 |
+
NodeList.prototype.forEach = function (callback, thisArg) {
|
113 |
+
thisArg = thisArg || window;
|
114 |
+
for (var i = 0; i < this.length; i++) {
|
115 |
+
callback.call(thisArg, this[i], i, this);
|
116 |
+
}
|
117 |
+
};
|
118 |
+
}
|
119 |
+
|
120 |
+
|
121 |
+
// removeChild
|
122 |
+
// https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
|
123 |
+
(function (arr) {
|
124 |
+
arr.forEach(function (item) {
|
125 |
+
if (item.hasOwnProperty('remove')) {
|
126 |
+
return;
|
127 |
+
}
|
128 |
+
Object.defineProperty(item, 'remove', {
|
129 |
+
configurable: true,
|
130 |
+
enumerable: true,
|
131 |
+
writable: true,
|
132 |
+
value: function remove() {
|
133 |
+
if (this.parentNode !== null)
|
134 |
+
this.parentNode.removeChild(this);
|
135 |
+
}
|
136 |
+
});
|
137 |
+
});
|
138 |
+
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
core/src/js/helpers/polyfills.js
ADDED
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Add dataset support to elements
|
3 |
+
* No globals, no overriding prototype with non-standard methods,
|
4 |
+
* handles CamelCase properly, attempts to use standard
|
5 |
+
* Object.defineProperty() (and Function bind()) methods,
|
6 |
+
* falls back to native implementation when existing
|
7 |
+
* Inspired by http://code.eligrey.com/html5/dataset/
|
8 |
+
* (via https://github.com/adalgiso/html5-dataset/blob/master/html5-dataset.js )
|
9 |
+
* Depends on Function.bind and Object.defineProperty/Object.getOwnPropertyDescriptor (polyfills below)
|
10 |
+
* All code below is Licensed under the X11/MIT License
|
11 |
+
*/
|
12 |
+
if (!Function.prototype.bind) {
|
13 |
+
Function.prototype.bind = function (oThis) {
|
14 |
+
'use strict';
|
15 |
+
if (typeof this !== "function") {
|
16 |
+
// closest thing possible to the ECMAScript 5 internal IsCallable function
|
17 |
+
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
|
18 |
+
}
|
19 |
+
|
20 |
+
var aArgs = Array.prototype.slice.call(arguments, 1),
|
21 |
+
fToBind = this,
|
22 |
+
FNOP = function () {},
|
23 |
+
fBound = function () {
|
24 |
+
return fToBind.apply(
|
25 |
+
this instanceof FNOP && oThis ? this : oThis,
|
26 |
+
aArgs.concat(Array.prototype.slice.call(arguments))
|
27 |
+
);
|
28 |
+
};
|
29 |
+
|
30 |
+
FNOP.prototype = this.prototype;
|
31 |
+
fBound.prototype = new FNOP();
|
32 |
+
|
33 |
+
return fBound;
|
34 |
+
};
|
35 |
+
}
|
36 |
+
|
37 |
+
/*
|
38 |
+
* Xccessors Standard: Cross-browser ECMAScript 5 accessors
|
39 |
+
* http://purl.eligrey.com/github/Xccessors
|
40 |
+
*
|
41 |
+
* 2010-06-21
|
42 |
+
*
|
43 |
+
* By Eli Grey, http://eligrey.com
|
44 |
+
*
|
45 |
+
* A shim that partially implements Object.defineProperty,
|
46 |
+
* Object.getOwnPropertyDescriptor, and Object.defineProperties in browsers that have
|
47 |
+
* legacy __(define|lookup)[GS]etter__ support.
|
48 |
+
*
|
49 |
+
* Licensed under the X11/MIT License
|
50 |
+
* See LICENSE.md
|
51 |
+
*/
|
52 |
+
|
53 |
+
(function () {
|
54 |
+
'use strict';
|
55 |
+
var ObjectProto = Object.prototype,
|
56 |
+
defineGetter = ObjectProto.__defineGetter__,
|
57 |
+
defineSetter = ObjectProto.__defineSetter__,
|
58 |
+
lookupGetter = ObjectProto.__lookupGetter__,
|
59 |
+
lookupSetter = ObjectProto.__lookupSetter__,
|
60 |
+
hasOwnProp = ObjectProto.hasOwnProperty;
|
61 |
+
|
62 |
+
if (defineGetter && defineSetter && lookupGetter && lookupSetter) {
|
63 |
+
|
64 |
+
if (!Object.defineProperty) {
|
65 |
+
Object.defineProperty = function (obj, prop, descriptor) {
|
66 |
+
if (arguments.length < 3) { // all arguments required
|
67 |
+
throw new TypeError("Arguments not optional");
|
68 |
+
}
|
69 |
+
|
70 |
+
prop += ""; // convert prop to string
|
71 |
+
|
72 |
+
if (hasOwnProp.call(descriptor, "value")) {
|
73 |
+
if (!lookupGetter.call(obj, prop) && !lookupSetter.call(obj, prop)) {
|
74 |
+
// data property defined and no pre-existing accessors
|
75 |
+
obj[prop] = descriptor.value;
|
76 |
+
}
|
77 |
+
|
78 |
+
if ((hasOwnProp.call(descriptor, "get") ||
|
79 |
+
hasOwnProp.call(descriptor, "set")))
|
80 |
+
{
|
81 |
+
// descriptor has a value prop but accessor already exists
|
82 |
+
throw new TypeError("Cannot specify an accessor and a value");
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
+
// can't switch off these features in ECMAScript 3
|
87 |
+
// so throw a TypeError if any are false
|
88 |
+
if (!(descriptor.writable && descriptor.enumerable &&
|
89 |
+
descriptor.configurable))
|
90 |
+
{
|
91 |
+
throw new TypeError(
|
92 |
+
"This implementation of Object.defineProperty does not support" +
|
93 |
+
" false for configurable, enumerable, or writable."
|
94 |
+
);
|
95 |
+
}
|
96 |
+
|
97 |
+
if (descriptor.get) {
|
98 |
+
defineGetter.call(obj, prop, descriptor.get);
|
99 |
+
}
|
100 |
+
if (descriptor.set) {
|
101 |
+
defineSetter.call(obj, prop, descriptor.set);
|
102 |
+
}
|
103 |
+
|
104 |
+
return obj;
|
105 |
+
};
|
106 |
+
}
|
107 |
+
|
108 |
+
if (!Object.getOwnPropertyDescriptor) {
|
109 |
+
Object.getOwnPropertyDescriptor = function (obj, prop) {
|
110 |
+
if (arguments.length < 2) { // all arguments required
|
111 |
+
throw new TypeError("Arguments not optional.");
|
112 |
+
}
|
113 |
+
|
114 |
+
prop += ""; // convert prop to string
|
115 |
+
|
116 |
+
var descriptor = {
|
117 |
+
configurable: true,
|
118 |
+
enumerable : true,
|
119 |
+
writable : true
|
120 |
+
},
|
121 |
+
getter = lookupGetter.call(obj, prop),
|
122 |
+
setter = lookupSetter.call(obj, prop);
|
123 |
+
|
124 |
+
if (!hasOwnProp.call(obj, prop)) {
|
125 |
+
// property doesn't exist or is inherited
|
126 |
+
return descriptor;
|
127 |
+
}
|
128 |
+
if (!getter && !setter) { // not an accessor so return prop
|
129 |
+
descriptor.value = obj[prop];
|
130 |
+
return descriptor;
|
131 |
+
}
|
132 |
+
|
133 |
+
// there is an accessor, remove descriptor.writable;
|
134 |
+
// populate descriptor.get and descriptor.set (IE's behavior)
|
135 |
+
delete descriptor.writable;
|
136 |
+
descriptor.get = descriptor.set = undefined;
|
137 |
+
|
138 |
+
if (getter) {
|
139 |
+
descriptor.get = getter;
|
140 |
+
}
|
141 |
+
if (setter) {
|
142 |
+
descriptor.set = setter;
|
143 |
+
}
|
144 |
+
|
145 |
+
return descriptor;
|
146 |
+
};
|
147 |
+
}
|
148 |
+
|
149 |
+
if (!Object.defineProperties) {
|
150 |
+
Object.defineProperties = function (obj, props) {
|
151 |
+
var prop;
|
152 |
+
for (prop in props) {
|
153 |
+
if (hasOwnProp.call(props, prop)) {
|
154 |
+
Object.defineProperty(obj, prop, props[prop]);
|
155 |
+
}
|
156 |
+
}
|
157 |
+
};
|
158 |
+
}
|
159 |
+
}
|
160 |
+
}());
|
161 |
+
|
162 |
+
// Begin dataset code
|
163 |
+
|
164 |
+
if (!document.documentElement.dataset &&
|
165 |
+
// FF is empty while IE gives empty object
|
166 |
+
(!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset') ||
|
167 |
+
!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset').get)
|
168 |
+
) {
|
169 |
+
var propDescriptor = {
|
170 |
+
enumerable: true,
|
171 |
+
get: function () {
|
172 |
+
'use strict';
|
173 |
+
var i,
|
174 |
+
that = this,
|
175 |
+
HTML5_DOMStringMap,
|
176 |
+
attrVal, attrName, propName,
|
177 |
+
attribute,
|
178 |
+
attributes = this.attributes,
|
179 |
+
attsLength = attributes.length,
|
180 |
+
toUpperCase = function (n0) {
|
181 |
+
return n0.charAt(1).toUpperCase();
|
182 |
+
},
|
183 |
+
getter = function () {
|
184 |
+
return this;
|
185 |
+
},
|
186 |
+
setter = function (attrName, value) {
|
187 |
+
return (typeof value !== 'undefined') ?
|
188 |
+
this.setAttribute(attrName, value) :
|
189 |
+
this.removeAttribute(attrName);
|
190 |
+
};
|
191 |
+
try { // Simulate DOMStringMap w/accessor support
|
192 |
+
// Test setting accessor on normal object
|
193 |
+
({}).__defineGetter__('test', function () {});
|
194 |
+
HTML5_DOMStringMap = {};
|
195 |
+
}
|
196 |
+
catch (e1) { // Use a DOM object for IE8
|
197 |
+
HTML5_DOMStringMap = document.createElement('div');
|
198 |
+
}
|
199 |
+
for (i = 0; i < attsLength; i++) {
|
200 |
+
attribute = attributes[i];
|
201 |
+
// Fix: This test really should allow any XML Name without
|
202 |
+
// colons (and non-uppercase for XHTML)
|
203 |
+
if (attribute && attribute.name &&
|
204 |
+
(/^data-\w[\w\-]*$/).test(attribute.name)) {
|
205 |
+
attrVal = attribute.value;
|
206 |
+
attrName = attribute.name;
|
207 |
+
// Change to CamelCase
|
208 |
+
propName = attrName.substr(5).replace(/-./g, toUpperCase);
|
209 |
+
try {
|
210 |
+
Object.defineProperty(HTML5_DOMStringMap, propName, {
|
211 |
+
enumerable: this.enumerable,
|
212 |
+
get: getter.bind(attrVal || ''),
|
213 |
+
set: setter.bind(that, attrName)
|
214 |
+
});
|
215 |
+
}
|
216 |
+
catch (e2) { // if accessors are not working
|
217 |
+
HTML5_DOMStringMap[propName] = attrVal;
|
218 |
+
}
|
219 |
+
}
|
220 |
+
}
|
221 |
+
return HTML5_DOMStringMap;
|
222 |
+
}
|
223 |
+
};
|
224 |
+
try {
|
225 |
+
// FF enumerates over element's dataset, but not
|
226 |
+
// Element.prototype.dataset; IE9 iterates over both
|
227 |
+
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
228 |
+
} catch (e) {
|
229 |
+
propDescriptor.enumerable = false; // IE8 does not allow setting to true
|
230 |
+
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
231 |
+
}
|
232 |
+
}
|
core/src/js/helpers/queryParams.js
ADDED
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* almGetAjaxParams
|
3 |
+
* Build the data object to send with the Ajax request
|
4 |
+
*
|
5 |
+
* @param alm object
|
6 |
+
* @param action string
|
7 |
+
* @param queryType string
|
8 |
+
* @since 3.6
|
9 |
+
*/
|
10 |
+
|
11 |
+
export function almGetAjaxParams(alm, action, queryType) {
|
12 |
+
// Defaults
|
13 |
+
let data = {
|
14 |
+
id: alm.id,
|
15 |
+
post_id: alm.post_id,
|
16 |
+
slug: alm.slug,
|
17 |
+
canonical_url: encodeURIComponent(alm.canonical_url),
|
18 |
+
posts_per_page: alm.posts_per_page,
|
19 |
+
page: alm.page,
|
20 |
+
offset: alm.offset,
|
21 |
+
post_type: alm.post_type,
|
22 |
+
repeater: alm.repeater,
|
23 |
+
seo_start_page: alm.start_page,
|
24 |
+
};
|
25 |
+
|
26 |
+
// Addons & Extensions
|
27 |
+
|
28 |
+
if (alm.theme_repeater) {
|
29 |
+
data.theme_repeater = alm.theme_repeater;
|
30 |
+
}
|
31 |
+
if (alm.addons.filters) {
|
32 |
+
data.filters = alm.addons.filters;
|
33 |
+
data.filters_startpage = alm.addons.filters_startpage;
|
34 |
+
}
|
35 |
+
if (alm.addons.paging) {
|
36 |
+
data.paging = alm.addons.paging;
|
37 |
+
}
|
38 |
+
if (alm.addons.preloaded) {
|
39 |
+
data.preloaded = alm.addons.preloaded;
|
40 |
+
data.preloaded_amount = alm.addons.preloaded_amount;
|
41 |
+
}
|
42 |
+
if (alm.addons.cache === 'true') {
|
43 |
+
data.cache_id = alm.addons.cache_id;
|
44 |
+
data.cache_logged_in = alm.addons.cache_logged_in;
|
45 |
+
}
|
46 |
+
if (alm.acf_array) {
|
47 |
+
data.acf = alm.acf_array;
|
48 |
+
}
|
49 |
+
if (alm.term_query_array) {
|
50 |
+
data.term_query = alm.term_query_array;
|
51 |
+
}
|
52 |
+
if (alm.cta_array) {
|
53 |
+
data.cta = alm.cta_array;
|
54 |
+
}
|
55 |
+
if (alm.comments_array) {
|
56 |
+
data.comments = alm.comments_array;
|
57 |
+
}
|
58 |
+
if (alm.nextpage_array) {
|
59 |
+
data.nextpage = alm.nextpage_array;
|
60 |
+
}
|
61 |
+
if (alm.single_post_array) {
|
62 |
+
data.single_post = alm.single_post_array;
|
63 |
+
}
|
64 |
+
if (alm.users_array) {
|
65 |
+
data.users = alm.users_array;
|
66 |
+
}
|
67 |
+
|
68 |
+
// Query data
|
69 |
+
if (alm.listing.dataset.lang) {
|
70 |
+
data.lang = alm.listing.dataset.lang;
|
71 |
+
}
|
72 |
+
if (alm.listing.dataset.stickyPosts) {
|
73 |
+
data.sticky_posts = alm.listing.dataset.stickyPosts;
|
74 |
+
}
|
75 |
+
if (alm.listing.dataset.postFormat) {
|
76 |
+
data.post_format = alm.listing.dataset.postFormat;
|
77 |
+
}
|
78 |
+
if (alm.listing.dataset.category) {
|
79 |
+
data.category = alm.listing.dataset.category;
|
80 |
+
}
|
81 |
+
if (alm.listing.dataset.categoryAnd) {
|
82 |
+
data.category__and = alm.listing.dataset.categoryAnd;
|
83 |
+
}
|
84 |
+
if (alm.listing.dataset.categoryNotIn) {
|
85 |
+
data.category__not_in = alm.listing.dataset.categoryNotIn;
|
86 |
+
}
|
87 |
+
if (alm.listing.dataset.tag) {
|
88 |
+
data.tag = alm.listing.dataset.tag;
|
89 |
+
}
|
90 |
+
if (alm.listing.dataset.tagAnd) {
|
91 |
+
data.tag__and = alm.listing.dataset.tagAnd;
|
92 |
+
}
|
93 |
+
if (alm.listing.dataset.tagNotIn) {
|
94 |
+
data.tag__not_in = alm.listing.dataset.tagNotIn;
|
95 |
+
}
|
96 |
+
if (alm.listing.dataset.taxonomy) {
|
97 |
+
data.taxonomy = alm.listing.dataset.taxonomy;
|
98 |
+
}
|
99 |
+
if (alm.listing.dataset.taxonomyTerms) {
|
100 |
+
data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;
|
101 |
+
}
|
102 |
+
if (alm.listing.dataset.taxonomyOperator) {
|
103 |
+
data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;
|
104 |
+
}
|
105 |
+
if (alm.listing.dataset.taxonomyRelation) {
|
106 |
+
data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;
|
107 |
+
}
|
108 |
+
if (alm.listing.dataset.metaKey) {
|
109 |
+
data.meta_key = alm.listing.dataset.metaKey;
|
110 |
+
}
|
111 |
+
if (alm.listing.dataset.metaValue) {
|
112 |
+
data.meta_value = alm.listing.dataset.metaValue;
|
113 |
+
}
|
114 |
+
if (alm.listing.dataset.metaCompare) {
|
115 |
+
data.meta_compare = alm.listing.dataset.metaCompare;
|
116 |
+
}
|
117 |
+
if (alm.listing.dataset.metaRelation) {
|
118 |
+
data.meta_relation = alm.listing.dataset.metaRelation;
|
119 |
+
}
|
120 |
+
if (alm.listing.dataset.metaType) {
|
121 |
+
data.meta_type = alm.listing.dataset.metaType;
|
122 |
+
}
|
123 |
+
if (alm.listing.dataset.author) {
|
124 |
+
data.author = alm.listing.dataset.author;
|
125 |
+
}
|
126 |
+
if (alm.listing.dataset.year) {
|
127 |
+
data.year = alm.listing.dataset.year;
|
128 |
+
}
|
129 |
+
if (alm.listing.dataset.month) {
|
130 |
+
data.month = alm.listing.dataset.month;
|
131 |
+
}
|
132 |
+
if (alm.listing.dataset.day) {
|
133 |
+
data.day = alm.listing.dataset.day;
|
134 |
+
}
|
135 |
+
if (alm.listing.dataset.order) {
|
136 |
+
data.order = alm.listing.dataset.order;
|
137 |
+
}
|
138 |
+
if (alm.listing.dataset.orderby) {
|
139 |
+
data.orderby = alm.listing.dataset.orderby;
|
140 |
+
}
|
141 |
+
if (alm.listing.dataset.postStatus) {
|
142 |
+
data.post_status = alm.listing.dataset.postStatus;
|
143 |
+
}
|
144 |
+
if (alm.listing.dataset.postIn) {
|
145 |
+
data.post__in = alm.listing.dataset.postIn;
|
146 |
+
}
|
147 |
+
if (alm.listing.dataset.postNotIn) {
|
148 |
+
data.post__not_in = alm.listing.dataset.postNotIn;
|
149 |
+
}
|
150 |
+
if (alm.listing.dataset.exclude) {
|
151 |
+
data.exclude = alm.listing.dataset.exclude;
|
152 |
+
}
|
153 |
+
if (alm.listing.dataset.search) {
|
154 |
+
data.search = alm.listing.dataset.search;
|
155 |
+
}
|
156 |
+
if (alm.listing.dataset.s) {
|
157 |
+
data.search = alm.listing.dataset.s;
|
158 |
+
}
|
159 |
+
if (alm.listing.dataset.customArgs) {
|
160 |
+
data.custom_args = escape(alm.listing.dataset.customArgs);
|
161 |
+
}
|
162 |
+
if (alm.listing.dataset.vars) {
|
163 |
+
data.vars = escape(alm.listing.dataset.vars);
|
164 |
+
}
|
165 |
+
|
166 |
+
data.action = action;
|
167 |
+
data.query_type = queryType;
|
168 |
+
|
169 |
+
return data;
|
170 |
+
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* almGetRestParams
|
174 |
+
* Build the REST API data object to send with REST API request
|
175 |
+
*
|
176 |
+
* @param alm object
|
177 |
+
* @since 3.6
|
178 |
+
*/
|
179 |
+
export function almGetRestParams(alm) {
|
180 |
+
let data = {
|
181 |
+
id: alm.id,
|
182 |
+
post_id: alm.post_id,
|
183 |
+
posts_per_page: alm.posts_per_page,
|
184 |
+
page: alm.page,
|
185 |
+
offset: alm.offset,
|
186 |
+
slug: alm.slug,
|
187 |
+
canonical_url: encodeURIComponent(alm.canonical_url),
|
188 |
+
post_type: alm.post_type,
|
189 |
+
post_format: alm.listing.dataset.postFormat,
|
190 |
+
category: alm.listing.dataset.category,
|
191 |
+
category__not_in: alm.listing.dataset.categoryNotIn,
|
192 |
+
tag: alm.listing.dataset.tag,
|
193 |
+
tag__not_in: alm.listing.dataset.tagNotIn,
|
194 |
+
taxonomy: alm.listing.dataset.taxonomy,
|
195 |
+
taxonomy_terms: alm.listing.dataset.taxonomyTerms,
|
196 |
+
taxonomy_operator: alm.listing.dataset.taxonomyOperator,
|
197 |
+
taxonomy_relation: alm.listing.dataset.taxonomyRelation,
|
198 |
+
meta_key: alm.listing.dataset.metaKey,
|
199 |
+
meta_value: alm.listing.dataset.metaValue,
|
200 |
+
meta_compare: alm.listing.dataset.metaCompare,
|
201 |
+
meta_relation: alm.listing.dataset.metaRelation,
|
202 |
+
meta_type: alm.listing.dataset.metaType,
|
203 |
+
author: alm.listing.dataset.author,
|
204 |
+
year: alm.listing.dataset.year,
|
205 |
+
month: alm.listing.dataset.month,
|
206 |
+
day: alm.listing.dataset.day,
|
207 |
+
post_status: alm.listing.dataset.postStatus,
|
208 |
+
order: alm.listing.dataset.order,
|
209 |
+
orderby: alm.listing.dataset.orderby,
|
210 |
+
post__in: alm.listing.dataset.postIn,
|
211 |
+
post__not_in: alm.listing.dataset.postNotIn,
|
212 |
+
search: alm.listing.dataset.search,
|
213 |
+
s: alm.listing.dataset.s,
|
214 |
+
custom_args: alm.listing.dataset.customArgs,
|
215 |
+
vars: alm.listing.dataset.vars,
|
216 |
+
lang: alm.lang,
|
217 |
+
preloaded: alm.addons.preloaded,
|
218 |
+
preloaded_amount: alm.addons.preloaded_amount,
|
219 |
+
seo_start_page: alm.start_page,
|
220 |
+
};
|
221 |
+
|
222 |
+
return data;
|
223 |
+
}
|
core/src/js/helpers/srcsetPolyfill.js
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* srcsetPolyfill
|
3 |
+
* A Safari srcset polyfill to get Masonry and ImagesLoaded working
|
4 |
+
*
|
5 |
+
* @param {*} container Element
|
6 |
+
* @param {*} ua String
|
7 |
+
* @since 5.0.2
|
8 |
+
*/
|
9 |
+
let srcsetPolyfill = (container = null, ua = '') => {
|
10 |
+
|
11 |
+
// Exit if no container
|
12 |
+
if( !container ){
|
13 |
+
return false;
|
14 |
+
}
|
15 |
+
|
16 |
+
// Exit if useragent is Chrome, Safari or Windows
|
17 |
+
if( (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') != -1) || (ua.indexOf('Firefox') > -1) || (ua.indexOf('Windows') > -1) ){
|
18 |
+
return false;
|
19 |
+
}
|
20 |
+
|
21 |
+
// Get the images
|
22 |
+
let imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');
|
23 |
+
|
24 |
+
// Loop images
|
25 |
+
for ( var i=0; i < imgs.length; i++ ) {
|
26 |
+
let img = imgs[i];
|
27 |
+
img.classList.add('alm-loaded');
|
28 |
+
img.outerHTML = img.outerHTML;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
export default srcsetPolyfill;
|
core/src/js/helpers/stripEmptyNodes.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Remove empty HTML nodes from array of nodes
|
3 |
+
* Remove all empty text nodes from SEO and Filters return
|
4 |
+
*
|
5 |
+
* @param {*} nodes | Array of HTML nodes
|
6 |
+
* @return array
|
7 |
+
* @since 5.1.3
|
8 |
+
*/
|
9 |
+
let stripEmptyNodes = function( nodes = '' ) {
|
10 |
+
if(!nodes){
|
11 |
+
return false;
|
12 |
+
}
|
13 |
+
|
14 |
+
// Exclude these nodeNames from being rendered
|
15 |
+
let nodeNameArray = ['#text', '#comment'];
|
16 |
+
|
17 |
+
// Filter data by nodeName
|
18 |
+
let results = nodes.filter(node => (nodeNameArray.indexOf(node.nodeName.toLowerCase()) === -1) );
|
19 |
+
|
20 |
+
// Send the results
|
21 |
+
return results;
|
22 |
+
|
23 |
+
};
|
24 |
+
export default stripEmptyNodes;
|
core/src/js/helpers/tableWrap.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Wrap `table` containers in tbody elements
|
3 |
+
* innerHTML and DOMParser do not work with <tr/> <td/> elements etc.
|
4 |
+
*
|
5 |
+
* @param {*} html | Plain text
|
6 |
+
* @since 5.0
|
7 |
+
*/
|
8 |
+
let tableWrap = function( html = null ) {
|
9 |
+
if(!html){
|
10 |
+
return false;
|
11 |
+
}
|
12 |
+
let table_reveal = document.createElement('tbody');
|
13 |
+
table_reveal.innerHTML = html;
|
14 |
+
let table_reveal_array = [table_reveal];
|
15 |
+
return table_reveal_array; // Return new array
|
16 |
+
};
|
17 |
+
export default tableWrap;
|
core/src/js/modules/almDebug.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Display alm_debug results
|
3 |
+
* https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug
|
4 |
+
*
|
5 |
+
* @param {object} alm Global alm object
|
6 |
+
* @since 5.1.6
|
7 |
+
*/
|
8 |
+
|
9 |
+
let almDebug = function(alm){
|
10 |
+
if(alm && alm.debug){
|
11 |
+
let obj = {
|
12 |
+
'query' : alm.debug,
|
13 |
+
'localize' : alm.localize
|
14 |
+
}
|
15 |
+
console.log('ALM Debug:', obj);
|
16 |
+
}
|
17 |
+
}
|
18 |
+
|
19 |
+
export default almDebug;
|
core/src/js/modules/fadeIn.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Fade element in
|
3 |
+
* @param {*} element
|
4 |
+
* @param {*} speed
|
5 |
+
*/
|
6 |
+
let almFadeIn = (element, speed) => {
|
7 |
+
if (speed == 0) {
|
8 |
+
element.style.opacity = 1;
|
9 |
+
element.style.height = 'auto';
|
10 |
+
} else {
|
11 |
+
speed = speed / 10;
|
12 |
+
let op = 0; // initial opacity
|
13 |
+
let timer = setInterval(function () {
|
14 |
+
if (op > 0.9) {
|
15 |
+
element.style.opacity = 1;
|
16 |
+
clearInterval(timer);
|
17 |
+
}
|
18 |
+
element.style.opacity = op;
|
19 |
+
op += 0.1;
|
20 |
+
}, speed);
|
21 |
+
element.style.height = 'auto';
|
22 |
+
}
|
23 |
+
};
|
24 |
+
export default almFadeIn;
|
core/src/js/modules/fadeOut.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Fade element out
|
3 |
+
* @param {*} element
|
4 |
+
* @param {*} speed
|
5 |
+
*/
|
6 |
+
let almFadeOut = (element, speed) => {
|
7 |
+
speed = speed/10;
|
8 |
+
element.style.opacity = 0.5;
|
9 |
+
let fadeEffect = setInterval(function () {
|
10 |
+
if (element.style.opacity < 0.1) {
|
11 |
+
clearInterval(fadeEffect);
|
12 |
+
} else {
|
13 |
+
element.style.opacity -= 0.1;
|
14 |
+
}
|
15 |
+
}, speed);
|
16 |
+
}
|
17 |
+
export default almFadeOut;
|
core/src/js/modules/filtering.js
ADDED
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import almFadeIn from './fadeIn';
|
2 |
+
import almFadeOut from './fadeOut';
|
3 |
+
import { clearTOC } from './tableofcontents';
|
4 |
+
|
5 |
+
/**
|
6 |
+
* almFilter(type, speed, data)
|
7 |
+
* Filter Ajax Load More
|
8 |
+
*
|
9 |
+
* @param {*} transition string;
|
10 |
+
* @param {*} speed number;
|
11 |
+
* @param {*} data obj;
|
12 |
+
* @param {*} type string;
|
13 |
+
* @since 2.6.1
|
14 |
+
*/
|
15 |
+
|
16 |
+
let almFilter = function (transition, speed, data, type = 'filter') {
|
17 |
+
if (data.target) {
|
18 |
+
// if a target has been specified
|
19 |
+
let target = document.querySelectorAll(
|
20 |
+
'.ajax-load-more-wrap[data-id="' + data.target + '"]'
|
21 |
+
);
|
22 |
+
target.forEach(function (element) {
|
23 |
+
almFilterTransition(transition, speed, data, element, type);
|
24 |
+
});
|
25 |
+
} else {
|
26 |
+
// Target not specified
|
27 |
+
let alm = document.querySelectorAll('.ajax-load-more-wrap');
|
28 |
+
alm.forEach(function (element) {
|
29 |
+
almFilterTransition(transition, speed, data, element, type);
|
30 |
+
});
|
31 |
+
}
|
32 |
+
|
33 |
+
// Clear table of contents if required
|
34 |
+
clearTOC();
|
35 |
+
};
|
36 |
+
export default almFilter;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* almFilterTransition(transition, speed, data, el)
|
40 |
+
* Transition Ajax Load More
|
41 |
+
*
|
42 |
+
* @param {*} transition string;
|
43 |
+
* @param {*} speed number;
|
44 |
+
* @param {*} data obj;
|
45 |
+
* @param {*} el element;
|
46 |
+
* @param {*} type string;
|
47 |
+
* @since 2.13.1
|
48 |
+
*/
|
49 |
+
let almFilterTransition = function (transition, speed, data, el, type) {
|
50 |
+
if (transition === 'fade' || transition === 'masonry') {
|
51 |
+
// Fade, Masonry transition
|
52 |
+
|
53 |
+
switch (type) {
|
54 |
+
case 'filter':
|
55 |
+
el.classList.add('alm-is-filtering');
|
56 |
+
almFadeOut(el, speed);
|
57 |
+
|
58 |
+
break;
|
59 |
+
|
60 |
+
case 'tab':
|
61 |
+
el.classList.add('alm-loading');
|
62 |
+
let new_el = el.querySelector('.alm-listing');
|
63 |
+
el.style.height = new_el.offsetHeight + 'px';
|
64 |
+
almFadeOut(new_el, speed);
|
65 |
+
|
66 |
+
break;
|
67 |
+
}
|
68 |
+
|
69 |
+
// Move to next function
|
70 |
+
setTimeout(function () {
|
71 |
+
almCompleteFilterTransition(speed, data, el, type);
|
72 |
+
}, speed);
|
73 |
+
} else {
|
74 |
+
// No transition
|
75 |
+
el.classList.add('alm-is-filtering');
|
76 |
+
almCompleteFilterTransition(speed, data, el, type);
|
77 |
+
}
|
78 |
+
};
|
79 |
+
|
80 |
+
/**
|
81 |
+
* almCompleteFilterTransition
|
82 |
+
* Complete the filter transition
|
83 |
+
*
|
84 |
+
* @param {*} speed number;
|
85 |
+
* @param {*} data obj;
|
86 |
+
* @param {*} el element;
|
87 |
+
* @param {*} type string;
|
88 |
+
* @since 3.3
|
89 |
+
*/
|
90 |
+
let almCompleteFilterTransition = (speed, data, el, type) => {
|
91 |
+
// Get `.alm-btn-wrap` element
|
92 |
+
let btnWrap = el.querySelector('.alm-btn-wrap');
|
93 |
+
|
94 |
+
// Get `.alm-listing` element
|
95 |
+
let listing = el.querySelectorAll('.alm-listing');
|
96 |
+
|
97 |
+
// Loop over all .alm-listing divs
|
98 |
+
[...listing].forEach(function (e) {
|
99 |
+
e.innerHTML = ''; // Clear listings
|
100 |
+
});
|
101 |
+
|
102 |
+
// Get Load More button
|
103 |
+
let button = btnWrap.querySelector('.alm-load-more-btn');
|
104 |
+
if (button) {
|
105 |
+
button.classList.remove('done'); // Reset Button
|
106 |
+
}
|
107 |
+
|
108 |
+
// Clear paging navigation
|
109 |
+
let paging = btnWrap.querySelector('.alm-paging');
|
110 |
+
if (paging) {
|
111 |
+
paging.style.opacity = 0;
|
112 |
+
}
|
113 |
+
|
114 |
+
// Reset Preloaded Amount
|
115 |
+
data.preloadedAmount = 0;
|
116 |
+
// Dispatch Filters
|
117 |
+
almSetFilters(speed, data, el, type);
|
118 |
+
};
|
119 |
+
|
120 |
+
/**
|
121 |
+
* almSetFilters
|
122 |
+
* Set filter parameters on .alm-listing element
|
123 |
+
*
|
124 |
+
* @param {*} speed number;
|
125 |
+
* @param {*} el element;
|
126 |
+
* @param {*} data string;
|
127 |
+
* @param {*} type string;
|
128 |
+
* @updated 3.3
|
129 |
+
* @since 2.6.1
|
130 |
+
*/
|
131 |
+
let almSetFilters = function (speed = 250, data, el, type) {
|
132 |
+
// Get `alm-listing` container
|
133 |
+
let listing =
|
134 |
+
el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
135 |
+
if (!listing) {
|
136 |
+
return false;
|
137 |
+
}
|
138 |
+
|
139 |
+
switch (type) {
|
140 |
+
case 'filter':
|
141 |
+
// Update data attributes
|
142 |
+
for (let [key, value] of Object.entries(data)) {
|
143 |
+
// Convert camelCase data atts back to dashes (-).
|
144 |
+
key = key
|
145 |
+
.replace(/\W+/g, '-')
|
146 |
+
.replace(/([a-z\d])([A-Z])/g, '$1-$2')
|
147 |
+
.toLowerCase();
|
148 |
+
listing.setAttribute('data-' + key, value);
|
149 |
+
}
|
150 |
+
// Fade ALM back (Filters only)
|
151 |
+
almFadeIn(el, speed);
|
152 |
+
break;
|
153 |
+
|
154 |
+
case 'tab':
|
155 |
+
// Update `data-tab-template` attribute
|
156 |
+
listing.setAttribute('data-preloaded', 'false');
|
157 |
+
listing.setAttribute('data-pause', 'false');
|
158 |
+
listing.setAttribute('data-tab-template', data.tabTemplate);
|
159 |
+
|
160 |
+
break;
|
161 |
+
}
|
162 |
+
|
163 |
+
// Re-initiate Ajax Load More
|
164 |
+
let target = '';
|
165 |
+
if (data.target) {
|
166 |
+
// Target has been specified
|
167 |
+
target = document.querySelector(
|
168 |
+
'.ajax-load-more-wrap[data-id="' + data.target + '"]'
|
169 |
+
);
|
170 |
+
if (target) {
|
171 |
+
window.almInit(target);
|
172 |
+
}
|
173 |
+
} else {
|
174 |
+
// Target not specified
|
175 |
+
target = document.querySelector('.ajax-load-more-wrap');
|
176 |
+
if (target) {
|
177 |
+
window.almInit(target);
|
178 |
+
}
|
179 |
+
}
|
180 |
+
|
181 |
+
switch (type) {
|
182 |
+
case 'filter':
|
183 |
+
// Filters Complete (not the add-on)
|
184 |
+
if (typeof almFilterComplete === 'function') {
|
185 |
+
// Standard Filtering
|
186 |
+
almFilterComplete();
|
187 |
+
}
|
188 |
+
break;
|
189 |
+
|
190 |
+
case 'tab':
|
191 |
+
// Tabs Complete
|
192 |
+
if (typeof almTabsComplete === 'function') {
|
193 |
+
// Standard Filtering
|
194 |
+
almTabsComplete();
|
195 |
+
}
|
196 |
+
break;
|
197 |
+
}
|
198 |
+
};
|
core/src/js/modules/getButtonURL.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Get the next URL for Load More button
|
3 |
+
*
|
4 |
+
* @param {object} alm
|
5 |
+
* @since 5.4.0
|
6 |
+
*/
|
7 |
+
|
8 |
+
const getButtonURL = (alm) => {
|
9 |
+
if (!alm || !alm.trigger) {
|
10 |
+
return false;
|
11 |
+
}
|
12 |
+
let button = alm.trigger.querySelector('button');
|
13 |
+
let url = button ? button.dataset.url : '';
|
14 |
+
|
15 |
+
return url ? url : '';
|
16 |
+
};
|
17 |
+
export default getButtonURL;
|
core/src/js/modules/getScrollPercentage.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* getScrollPercentage
|
3 |
+
* Get the scroll distance in pixels from a percentage
|
4 |
+
*
|
5 |
+
* @param {Object} alm
|
6 |
+
* @return {NUMBER} newdistance
|
7 |
+
* @since 5.2
|
8 |
+
*/
|
9 |
+
|
10 |
+
let getScrollPercentage = (alm) => {
|
11 |
+
if(!alm){
|
12 |
+
return false;
|
13 |
+
}
|
14 |
+
|
15 |
+
let is_negative = (alm.scroll_distance_orig.toString().indexOf("-") === -1) ? false : true; // Is this a negative number
|
16 |
+
let raw_distance = alm.scroll_distance_orig.toString().replace("-", "").replace("%", ""); // Remove - and perc
|
17 |
+
let wh = alm.window.innerHeight; // window height
|
18 |
+
|
19 |
+
let height = Math.floor((wh/100) * parseInt(raw_distance)); // Do math to get distance
|
20 |
+
|
21 |
+
let newdistance = (is_negative) ? `-${height}` : height; // Set the distance
|
22 |
+
//console.log(parseInt(newdistance));
|
23 |
+
|
24 |
+
return parseInt(newdistance);
|
25 |
+
}
|
26 |
+
export default getScrollPercentage;
|
core/src/js/modules/insertScript.js
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import almDomParser from '../helpers/almDomParser';
|
2 |
+
|
3 |
+
/**
|
4 |
+
* insertScript
|
5 |
+
* Search nodes for <script/> tags and run scripts.
|
6 |
+
* Scripts cannot run with appendChild or innerHTML so this is necessary to function.
|
7 |
+
*
|
8 |
+
* @since 5.0
|
9 |
+
*/
|
10 |
+
let insertScript = {
|
11 |
+
|
12 |
+
init: function(node){
|
13 |
+
if ( this.isScript(node) === true ) {
|
14 |
+
node.parentNode.replaceChild( this.clone(node) , node );
|
15 |
+
}
|
16 |
+
else {
|
17 |
+
let i = 0;
|
18 |
+
let children = node.childNodes;
|
19 |
+
|
20 |
+
if(children === undefined){
|
21 |
+
let parser = new DOMParser();
|
22 |
+
let data = parser.parseFromString(node, 'text/html');
|
23 |
+
if(data){
|
24 |
+
children = data.body.childNodes;
|
25 |
+
}
|
26 |
+
}
|
27 |
+
while ( i < children.length ) {
|
28 |
+
this.replace( children[i++] );
|
29 |
+
}
|
30 |
+
}
|
31 |
+
return node;
|
32 |
+
},
|
33 |
+
|
34 |
+
replace: function(node) {
|
35 |
+
if ( this.isScript(node) === true ) {
|
36 |
+
node.parentNode.replaceChild( this.clone(node) , node );
|
37 |
+
}
|
38 |
+
else {
|
39 |
+
let i = 0;
|
40 |
+
let children = node.childNodes;
|
41 |
+
while (i < children.length) {
|
42 |
+
this.replace( children[i++] );
|
43 |
+
}
|
44 |
+
}
|
45 |
+
return node;
|
46 |
+
},
|
47 |
+
|
48 |
+
isScript: function(node){
|
49 |
+
return node.tagName === 'SCRIPT';
|
50 |
+
},
|
51 |
+
|
52 |
+
clone: function(node){
|
53 |
+
let script = document.createElement("script");
|
54 |
+
script.text = node.innerHTML;
|
55 |
+
for( let i = node.attributes.length-1; i >= 0; i-- ) {
|
56 |
+
script.setAttribute( node.attributes[i].name, node.attributes[i].value );
|
57 |
+
}
|
58 |
+
return script;
|
59 |
+
}
|
60 |
+
|
61 |
+
}
|
62 |
+
export default insertScript;
|
core/src/js/modules/loadImage.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
2 |
+
let imagesLoaded = require('imagesloaded');
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Load the image with imagesLoaded
|
6 |
+
*
|
7 |
+
* @param {HTMLElement} container
|
8 |
+
* @param {HTMLElement} item
|
9 |
+
* @param {String} ua
|
10 |
+
*/
|
11 |
+
const loadImage = (container, item, ua) => {
|
12 |
+
return new Promise((resolve) => {
|
13 |
+
imagesLoaded(item, function () {
|
14 |
+
// Add CSS transition
|
15 |
+
item.style.transition = 'all 0.4s ease';
|
16 |
+
// Append to container
|
17 |
+
container.appendChild(item);
|
18 |
+
// Run srcset fix
|
19 |
+
srcsetPolyfill(item, ua);
|
20 |
+
// Send await callback
|
21 |
+
resolve(true);
|
22 |
+
});
|
23 |
+
});
|
24 |
+
};
|
25 |
+
export default loadImage;
|
core/src/js/modules/loadItems.js
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import loadImage from './loadImage';
|
2 |
+
import setFocus from './setFocus';
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Load all items
|
6 |
+
*
|
7 |
+
* @param {HTMLElement} container
|
8 |
+
* @param {HTMLElement} items
|
9 |
+
* @param {Object} alm
|
10 |
+
* @param {String} pageTitle
|
11 |
+
* @param {String} url
|
12 |
+
* @param {String} className
|
13 |
+
*/
|
14 |
+
const loadItems = (container, items, alm, pageTitle, url = window.location, className = '') => {
|
15 |
+
return new Promise((resolve) => {
|
16 |
+
let total = items.length;
|
17 |
+
let index = 0;
|
18 |
+
let count = 1;
|
19 |
+
|
20 |
+
function loadItem() {
|
21 |
+
if (count <= total) {
|
22 |
+
(async function () {
|
23 |
+
items[index].style.opacity = 0;
|
24 |
+
|
25 |
+
// First item only
|
26 |
+
if (count == 1) {
|
27 |
+
items[index].classList.add(className);
|
28 |
+
|
29 |
+
// Set URL
|
30 |
+
items[index].dataset.url = url;
|
31 |
+
|
32 |
+
// Set page num
|
33 |
+
items[index].dataset.page = alm.page + 1;
|
34 |
+
|
35 |
+
// Set page title
|
36 |
+
items[index].dataset.pageTitle = pageTitle;
|
37 |
+
}
|
38 |
+
|
39 |
+
await loadImage(container, items[index], alm.ua);
|
40 |
+
|
41 |
+
count++;
|
42 |
+
index++;
|
43 |
+
|
44 |
+
loadItem();
|
45 |
+
})().catch((e) => {
|
46 |
+
console.log('There was an error loading the items');
|
47 |
+
});
|
48 |
+
} else {
|
49 |
+
// Delay for effect only
|
50 |
+
setTimeout(function () {
|
51 |
+
items.map(function (item) {
|
52 |
+
item.style.opacity = 1;
|
53 |
+
});
|
54 |
+
if (items[0]) {
|
55 |
+
setFocus(alm, items[0], null, false);
|
56 |
+
}
|
57 |
+
}, 50);
|
58 |
+
|
59 |
+
resolve(true);
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
loadItem();
|
64 |
+
});
|
65 |
+
};
|
66 |
+
|
67 |
+
export default loadItems;
|
core/src/js/modules/masonry.js
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import almFadeIn from './fadeIn';
|
2 |
+
import almAppendChildren from '../helpers/almAppendChildren';
|
3 |
+
import almDomParser from '../helpers/almDomParser';
|
4 |
+
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
5 |
+
import stripEmptyNodes from '../helpers/stripEmptyNodes';
|
6 |
+
import {
|
7 |
+
createMasonryFiltersPages,
|
8 |
+
createMasonryFiltersPage,
|
9 |
+
} from '../addons/filters';
|
10 |
+
import { createMasonrySEOPages, createMasonrySEOPage } from '../addons/seo';
|
11 |
+
import setFocus from './setFocus';
|
12 |
+
let imagesLoaded = require('imagesloaded');
|
13 |
+
|
14 |
+
/**
|
15 |
+
* almMasonry
|
16 |
+
* Function to trigger built-in Ajax Load More Masonry
|
17 |
+
*
|
18 |
+
* @param {object} alm
|
19 |
+
* @param {boolean} init
|
20 |
+
* @param {boolean} filtering
|
21 |
+
* @since 3.1
|
22 |
+
* @updated 5.0.2
|
23 |
+
*/
|
24 |
+
let almMasonry = (alm, init, filtering) => {
|
25 |
+
return new Promise((resolve) => {
|
26 |
+
let container = alm.listing;
|
27 |
+
let html = alm.html;
|
28 |
+
|
29 |
+
let selector = alm.masonry_selector;
|
30 |
+
let columnWidth = alm.masonry_columnwidth;
|
31 |
+
let animation = alm.masonry_animation;
|
32 |
+
let horizontalOrder = alm.masonry_horizontalorder;
|
33 |
+
let speed = alm.speed;
|
34 |
+
let masonry_init = alm.masonry_init;
|
35 |
+
|
36 |
+
let duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
|
37 |
+
let hidden = 'scale(0.5)';
|
38 |
+
let visible = 'scale(1)';
|
39 |
+
|
40 |
+
if (animation === 'zoom-out') {
|
41 |
+
hidden = 'translateY(-20px) scale(1.25)';
|
42 |
+
visible = 'translateY(0) scale(1)';
|
43 |
+
}
|
44 |
+
|
45 |
+
if (animation === 'slide-up') {
|
46 |
+
hidden = 'translateY(50px)';
|
47 |
+
visible = 'translateY(0)';
|
48 |
+
}
|
49 |
+
|
50 |
+
if (animation === 'slide-down') {
|
51 |
+
hidden = 'translateY(-50px)';
|
52 |
+
visible = 'translateY(0)';
|
53 |
+
}
|
54 |
+
|
55 |
+
if (animation === 'none') {
|
56 |
+
hidden = 'translateY(0)';
|
57 |
+
visible = 'translateY(0)';
|
58 |
+
}
|
59 |
+
|
60 |
+
// columnWidth
|
61 |
+
if (columnWidth) {
|
62 |
+
if (!isNaN(columnWidth)) {
|
63 |
+
// Check if number
|
64 |
+
columnWidth = parseInt(columnWidth);
|
65 |
+
}
|
66 |
+
} else {
|
67 |
+
// No columnWidth, use the selector
|
68 |
+
columnWidth = selector;
|
69 |
+
}
|
70 |
+
|
71 |
+
// horizontalOrder
|
72 |
+
horizontalOrder = horizontalOrder === 'true' ? true : false;
|
73 |
+
|
74 |
+
if (!filtering) {
|
75 |
+
// First Run
|
76 |
+
if (masonry_init && init) {
|
77 |
+
srcsetPolyfill(container, alm.ua); // Run srcSet polyfill
|
78 |
+
|
79 |
+
imagesLoaded(container, function () {
|
80 |
+
let defaults = {
|
81 |
+
itemSelector: selector,
|
82 |
+
transitionDuration: duration,
|
83 |
+
columnWidth: columnWidth,
|
84 |
+
horizontalOrder: horizontalOrder,
|
85 |
+
hiddenStyle: {
|
86 |
+
transform: hidden,
|
87 |
+
opacity: 0,
|
88 |
+
},
|
89 |
+
visibleStyle: {
|
90 |
+
transform: visible,
|
91 |
+
opacity: 1,
|
92 |
+
},
|
93 |
+
};
|
94 |
+
|
95 |
+
// Get custom Masonry options (https://masonry.desandro.com/options.html)
|
96 |
+
let alm_masonry_vars = window.alm_masonry_vars;
|
97 |
+
if (alm_masonry_vars) {
|
98 |
+
Object.keys(alm_masonry_vars).forEach(function (key) {
|
99 |
+
// Loop object to create key:prop
|
100 |
+
defaults[key] = alm_masonry_vars[key];
|
101 |
+
});
|
102 |
+
}
|
103 |
+
|
104 |
+
let data = container.querySelectorAll(selector);
|
105 |
+
|
106 |
+
// Create Filters URL, if required
|
107 |
+
if (alm.addons.filters) {
|
108 |
+
data = createMasonryFiltersPages(
|
109 |
+
alm,
|
110 |
+
Array.prototype.slice.call(data)
|
111 |
+
);
|
112 |
+
}
|
113 |
+
|
114 |
+
// Create SEO URL, if required
|
115 |
+
if (alm.addons.seo) {
|
116 |
+
data = createMasonrySEOPages(
|
117 |
+
alm,
|
118 |
+
Array.prototype.slice.call(data)
|
119 |
+
);
|
120 |
+
}
|
121 |
+
|
122 |
+
// Init Masonry, delay to allow time for items to be added to the page
|
123 |
+
setTimeout(function () {
|
124 |
+
alm.msnry = new Masonry(container, defaults);
|
125 |
+
|
126 |
+
// Fade In
|
127 |
+
almFadeIn(container.parentNode, 125);
|
128 |
+
|
129 |
+
resolve(true);
|
130 |
+
}, 1);
|
131 |
+
});
|
132 |
+
}
|
133 |
+
|
134 |
+
// Standard / Append content
|
135 |
+
else {
|
136 |
+
// Loop all items and create array of node elements
|
137 |
+
let data = stripEmptyNodes(almDomParser(html, 'text/html'));
|
138 |
+
|
139 |
+
if (data) {
|
140 |
+
// Append elements listing
|
141 |
+
almAppendChildren(alm.listing, data, 'masonry');
|
142 |
+
|
143 |
+
// Run srcSet polyfill
|
144 |
+
srcsetPolyfill(container, alm.ua);
|
145 |
+
|
146 |
+
// imagesLoaded & append
|
147 |
+
imagesLoaded(container, function () {
|
148 |
+
alm.msnry.appended(data);
|
149 |
+
|
150 |
+
// Set Focus
|
151 |
+
setFocus(alm, data, data.length, false);
|
152 |
+
|
153 |
+
// Create Filters URL, if required
|
154 |
+
if (alm.addons.filters) {
|
155 |
+
createMasonryFiltersPage(alm, data[0]);
|
156 |
+
}
|
157 |
+
|
158 |
+
// Create SEO URL, if required
|
159 |
+
if (alm.addons.seo) {
|
160 |
+
createMasonrySEOPage(alm, data[0]);
|
161 |
+
}
|
162 |
+
|
163 |
+
resolve(true);
|
164 |
+
});
|
165 |
+
}
|
166 |
+
}
|
167 |
+
} else {
|
168 |
+
// Reset
|
169 |
+
container.parentNode.style.opacity = 0;
|
170 |
+
almMasonry(alm, true, false);
|
171 |
+
resolve(true);
|
172 |
+
}
|
173 |
+
});
|
174 |
+
};
|
175 |
+
|
176 |
+
export default almMasonry;
|
core/src/js/modules/noResults.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Set the results text if required.
|
3 |
+
*
|
4 |
+
* @param {*} target The target HTML element
|
5 |
+
* @param {*} html The HTML
|
6 |
+
* @since 5.1
|
7 |
+
*/
|
8 |
+
let almNoResults = (target, html = '') => {
|
9 |
+
if(html === ''){
|
10 |
+
return false; // exit if empty
|
11 |
+
}
|
12 |
+
|
13 |
+
// Remove empty <p/> tags
|
14 |
+
html = html.replace(/(<p><\/p>)+/g, '');
|
15 |
+
|
16 |
+
// Append to DOM
|
17 |
+
target.innerHTML = html;
|
18 |
+
}
|
19 |
+
|
20 |
+
export default almNoResults;
|
core/src/js/modules/placeholder.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import almFadeIn from './fadeIn';
|
2 |
+
import almFadeOut from './fadeOut';
|
3 |
+
|
4 |
+
export function showPlaceholder(alm){
|
5 |
+
if(!alm || !alm.main || alm.addons.paging){
|
6 |
+
return false;
|
7 |
+
}
|
8 |
+
if(alm.placeholder){
|
9 |
+
alm.placeholder.style.display = 'block';
|
10 |
+
almFadeIn(alm.placeholder, 75);
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
14 |
+
|
15 |
+
export function hidePlaceholder(alm){
|
16 |
+
if(!alm || !alm.main || alm.addons.paging){
|
17 |
+
return false;
|
18 |
+
}
|
19 |
+
if(alm.placeholder){
|
20 |
+
almFadeOut(alm.placeholder, 75);
|
21 |
+
setTimeout(function(){
|
22 |
+
alm.placeholder.style.display = 'none';
|
23 |
+
}, 75);
|
24 |
+
}
|
25 |
+
}
|
core/src/js/modules/resultsText.js
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Set the results text if required.
|
3 |
+
*
|
4 |
+
* @param {object} alm Global alm object
|
5 |
+
* @param {string} type Type of results
|
6 |
+
* @since 5.1
|
7 |
+
*/
|
8 |
+
export function almResultsText( alm, type = 'standard' ){
|
9 |
+
if(!alm.resultsText || alm.nested === 'true') return false;
|
10 |
+
let resultsType = (type === 'nextpage' || type === 'woocommerce') ? type : 'standard';
|
11 |
+
|
12 |
+
almGetResultsText(alm, resultsType);
|
13 |
+
}
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Get values for showing results text.
|
19 |
+
*
|
20 |
+
* @param {Object} alm
|
21 |
+
* @param {String} type
|
22 |
+
* @since 4.1
|
23 |
+
*/
|
24 |
+
export function almGetResultsText( alm, type = 'standard' ){
|
25 |
+
|
26 |
+
if(!alm.resultsText || !alm.localize || alm.nested === 'true'){
|
27 |
+
return false;
|
28 |
+
}
|
29 |
+
|
30 |
+
let page = 0;
|
31 |
+
let pages = 0;
|
32 |
+
let post_count = 0;
|
33 |
+
let total_posts = 0;
|
34 |
+
let preloaded = (alm.addons.preloaded === 'true') ? true : false;
|
35 |
+
let paging = (alm.addons.paging) ? true : false;
|
36 |
+
let posts_per_page = alm.orginal_posts_per_page;
|
37 |
+
|
38 |
+
switch (type) {
|
39 |
+
|
40 |
+
// Nextpage
|
41 |
+
case 'nextpage' :
|
42 |
+
|
43 |
+
page = parseInt(alm.localize.page);
|
44 |
+
post_count = page;
|
45 |
+
pages = parseInt(alm.localize.total_posts);
|
46 |
+
total_posts = parseInt(pages);
|
47 |
+
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
48 |
+
|
49 |
+
break;
|
50 |
+
|
51 |
+
// WooCommerce
|
52 |
+
case 'woocommerce' :
|
53 |
+
// Don't do anything
|
54 |
+
break;
|
55 |
+
|
56 |
+
default :
|
57 |
+
|
58 |
+
page = parseInt(alm.page) + 1;
|
59 |
+
pages = Math.ceil(alm.localize.total_posts / posts_per_page);
|
60 |
+
post_count = parseInt(alm.localize.post_count);
|
61 |
+
total_posts = parseInt(alm.localize.total_posts);
|
62 |
+
|
63 |
+
// Add 1 page if Preloaded
|
64 |
+
if(preloaded){
|
65 |
+
page = (paging) ? alm.page + 1 : page + 1;
|
66 |
+
}
|
67 |
+
|
68 |
+
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
69 |
+
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Display `Showing {x} of {y} pages` text.
|
77 |
+
*
|
78 |
+
* @param {Object} alm
|
79 |
+
* @param {String} type
|
80 |
+
* @since 4.1
|
81 |
+
*/
|
82 |
+
export function almInitResultsText( alm, type = 'standard' ){
|
83 |
+
if(!alm.resultsText || !alm.localize || alm.nested === 'true') return false;
|
84 |
+
|
85 |
+
let page = 0;
|
86 |
+
let pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);
|
87 |
+
let post_count = parseInt(alm.localize.post_count);
|
88 |
+
let total_posts = parseInt(alm.localize.total_posts);
|
89 |
+
|
90 |
+
switch (type) {
|
91 |
+
|
92 |
+
// Nextpage
|
93 |
+
case 'nextpage' :
|
94 |
+
page = alm.addons.nextpage_startpage;
|
95 |
+
post_count = page;
|
96 |
+
pages = total_posts;
|
97 |
+
almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts);
|
98 |
+
break;
|
99 |
+
|
100 |
+
// Preloaded
|
101 |
+
case 'preloaded' :
|
102 |
+
page = (alm.addons.paging && alm.addons.seo) ? parseInt(alm.start_page) + 1 : parseInt(alm.page) + 1;
|
103 |
+
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
104 |
+
break;
|
105 |
+
|
106 |
+
// WooCommerce
|
107 |
+
case 'woocommerce' :
|
108 |
+
// Don't do anything
|
109 |
+
break;
|
110 |
+
|
111 |
+
default :
|
112 |
+
|
113 |
+
console.log('No results to set.');
|
114 |
+
|
115 |
+
}
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
|
120 |
+
/**
|
121 |
+
* Render `Showing {x} of {y} results` text.
|
122 |
+
*
|
123 |
+
* @param {Element} el
|
124 |
+
* @param {String} page
|
125 |
+
* @param {String} pages
|
126 |
+
* @param {String} post_count
|
127 |
+
* @param {String} total_posts
|
128 |
+
* @since 4.1
|
129 |
+
*/
|
130 |
+
let almRenderResultsText = function( el, page, pages, post_count, total_posts ){
|
131 |
+
|
132 |
+
el.forEach(function(result){
|
133 |
+
|
134 |
+
pages = parseInt(pages);
|
135 |
+
let text = (pages > 0) ? alm_localize.results_text : alm_localize.no_results_text;
|
136 |
+
|
137 |
+
if(pages > 0){
|
138 |
+
text = text.replace('{num}', `<span class="alm-results-num">${page}</span>`); // Deprecated
|
139 |
+
text = text.replace('{page}', `<span class="alm-results-page">${page}</span>`);
|
140 |
+
text = text.replace('{total}', `<span class="alm-results-total">${pages}</span>`); // Deprecated
|
141 |
+
text = text.replace('{pages}', `<span class="alm-results-pages">${pages}</span>`);
|
142 |
+
text = text.replace('{post_count}', `<span class="alm-results-post_count">${post_count}</span>`)
|
143 |
+
text = text.replace('{total_posts}', `<span class="alm-results-total_posts">${total_posts}</span>`);
|
144 |
+
result.innerHTML = text;
|
145 |
+
} else {
|
146 |
+
result.innerHTML = text;
|
147 |
+
}
|
148 |
+
|
149 |
+
});
|
150 |
+
}
|
core/src/js/modules/setFocus.js
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* setFocus
|
3 |
+
* Set user focus to improve accessibility after load events
|
4 |
+
*
|
5 |
+
* @param {Object} alm
|
6 |
+
* @param {HTMLElement} preloaded
|
7 |
+
* @param {Number} total
|
8 |
+
* @param {Boolean} is_filtering
|
9 |
+
* @since 5.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
let setFocus = (alm, element = null, total = 0, is_filtering = false) => {
|
13 |
+
if (!alm_localize.a11y_focus) {
|
14 |
+
return false;
|
15 |
+
}
|
16 |
+
|
17 |
+
// WooCommerce Add-on
|
18 |
+
if (alm.addons.woocommerce || alm.addons.elementor) {
|
19 |
+
moveFocus(false, false, element, false, alm.isSafari);
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
|
23 |
+
// Has Total
|
24 |
+
if (alm.transition_container && total > 0) {
|
25 |
+
if (alm.addons.paging) {
|
26 |
+
// Paging
|
27 |
+
moveFocus(alm.init, alm.addons.preloaded, alm.listing, is_filtering, alm.isSafari);
|
28 |
+
} else if (alm.addons.single_post || alm.addons.nextpage) {
|
29 |
+
// Single Posts OR Next Page, set `init` to false to trigger focus
|
30 |
+
moveFocus(false, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
31 |
+
} else {
|
32 |
+
// Standard ALM
|
33 |
+
moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
34 |
+
}
|
35 |
+
} else if (!alm.transition_container) {
|
36 |
+
// Table Layout, no transition container
|
37 |
+
moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
|
38 |
+
}
|
39 |
+
};
|
40 |
+
export default setFocus;
|
41 |
+
|
42 |
+
/**
|
43 |
+
* moveFocus
|
44 |
+
* Move user focus to alm-reveal div
|
45 |
+
*
|
46 |
+
* @param {Boolean} init
|
47 |
+
* @param {String} preloaded
|
48 |
+
* @param {HTMLElement} element
|
49 |
+
* @param {Boolean} is_filtering
|
50 |
+
* @param {Boolean} isSafari
|
51 |
+
* @since 5.1
|
52 |
+
*/
|
53 |
+
|
54 |
+
let moveFocus = (init = true, preloaded = 'false', element, is_filtering = false, isSafari = false) => {
|
55 |
+
if (!is_filtering) {
|
56 |
+
if ((init || !element) && preloaded !== 'true') {
|
57 |
+
return false; // Exit if first run
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
// Check if element is an array.
|
62 |
+
// If `transition_container="false"`, `element` will be an array.
|
63 |
+
/*
|
64 |
+
let is_array = Array.isArray(element);
|
65 |
+
element = (is_array) ? element[0] : element;
|
66 |
+
*/
|
67 |
+
|
68 |
+
// Set tabIndex and style on element
|
69 |
+
element.setAttribute('tabIndex', '-1');
|
70 |
+
element.style.outline = 'none';
|
71 |
+
|
72 |
+
// Get Parent container
|
73 |
+
// If `.alm-listing` set parent to element
|
74 |
+
let parent = !element.classList.contains('alm-listing') ? element.parentNode : element;
|
75 |
+
|
76 |
+
// Scroll Container
|
77 |
+
let scrollContainer = parent.dataset.scrollContainer;
|
78 |
+
|
79 |
+
// If scroll container, move it, not the window.
|
80 |
+
if (scrollContainer) {
|
81 |
+
let container = document.querySelector(scrollContainer);
|
82 |
+
if (container) {
|
83 |
+
//let left = container.scrollLeft;
|
84 |
+
//let top = container.scrollTop;
|
85 |
+
//element.focus();
|
86 |
+
//container.scrollLeft = left;
|
87 |
+
//container.scrollTop = top;
|
88 |
+
setTimeout(function () {
|
89 |
+
element.focus({ preventScroll: true });
|
90 |
+
}, 50);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
// Move window
|
95 |
+
else {
|
96 |
+
setTimeout(function () {
|
97 |
+
element.focus({ preventScroll: true });
|
98 |
+
}, 50);
|
99 |
+
|
100 |
+
//let x = window.scrollX;
|
101 |
+
//let y = window.scrollY;
|
102 |
+
|
103 |
+
// Safari fix for window movement if Y = 0
|
104 |
+
//if(isSafari){
|
105 |
+
//window.scrollTo(x, y);
|
106 |
+
//y = (y === 0) ? 1 : y;
|
107 |
+
//}
|
108 |
+
//element.focus();
|
109 |
+
//window.scrollTo(x, y);
|
110 |
+
}
|
111 |
+
};
|
core/src/js/modules/setLocalizedVars.js
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import * as resultsText from './resultsText';
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Set localized variables
|
5 |
+
*
|
6 |
+
* @param {object} alm Global alm object
|
7 |
+
* @since 4.1
|
8 |
+
*/
|
9 |
+
|
10 |
+
let setLocalizedVars = function(alm){
|
11 |
+
|
12 |
+
return new Promise(resolve => {
|
13 |
+
|
14 |
+
let type = 'standard';
|
15 |
+
|
16 |
+
// Current Page `page`
|
17 |
+
|
18 |
+
// nextpage
|
19 |
+
if(alm.addons.nextpage){
|
20 |
+
type = 'nextpage';
|
21 |
+
if(alm.addons.paging){
|
22 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
23 |
+
} else {
|
24 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1);
|
25 |
+
}
|
26 |
+
}
|
27 |
+
// woocommerce
|
28 |
+
else if(alm.addons.woocommerce){
|
29 |
+
type = 'woocommerce';
|
30 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
31 |
+
|
32 |
+
} else {
|
33 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
34 |
+
|
35 |
+
}
|
36 |
+
|
37 |
+
// Total Posts `total_posts`.
|
38 |
+
// Only update if !preloaded && !nextpage && !woocommerce
|
39 |
+
if(alm.addons.preloaded !== 'true' && !alm.addons.nextpage && !alm.addons.woocommerce){
|
40 |
+
alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);
|
41 |
+
}
|
42 |
+
|
43 |
+
// Viewing
|
44 |
+
alm.AjaxLoadMore.setLocalizedVar('post_count', almSetPostCount(alm));
|
45 |
+
|
46 |
+
// Set Results Text (if required)
|
47 |
+
resultsText.almResultsText(alm, type);
|
48 |
+
|
49 |
+
resolve(true);
|
50 |
+
|
51 |
+
});
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
export default setLocalizedVars;
|
56 |
+
|
57 |
+
|
58 |
+
/**
|
59 |
+
* almSetViewing
|
60 |
+
* Get total post_count
|
61 |
+
*/
|
62 |
+
function almSetPostCount(alm){
|
63 |
+
let pc = parseInt(alm.posts);
|
64 |
+
let pa = parseInt(alm.addons.preloaded_amount);
|
65 |
+
let count = pc + pa;
|
66 |
+
count = (alm.start_page > 1) ? count - pa : count; // SEO
|
67 |
+
count = (alm.addons.filters_startpage > 1) ? count - pa : count; // Filters
|
68 |
+
count = (alm.addons.single_post) ? count + 1 : count; // Single Posts
|
69 |
+
count = (alm.addons.nextpage) ? count + 1 : count; // Next Page
|
70 |
+
|
71 |
+
return count;
|
72 |
+
}
|
core/src/js/modules/tableofcontents.js
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { almScroll, getOffset } from '../ajax-load-more';
|
2 |
+
import setFocus from './setFocus';
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Create a numbered table of contents navigation
|
6 |
+
*
|
7 |
+
* @param {object} alm
|
8 |
+
* @param {boolean} init
|
9 |
+
* @since 5.2
|
10 |
+
*/
|
11 |
+
export function tableOfContents(alm, init = false, from_preloaded = false) {
|
12 |
+
let totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0;
|
13 |
+
if (totalPosts == 0 && !alm.addons.single_post) {
|
14 |
+
// Exit if zero posts and not single posts
|
15 |
+
return false;
|
16 |
+
}
|
17 |
+
|
18 |
+
if (alm && alm.tableofcontents && alm.transition_container && alm.transition !== 'masonry') {
|
19 |
+
let offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30;
|
20 |
+
let startPage = alm.start_page ? parseInt(alm.start_page) : 0;
|
21 |
+
let filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0;
|
22 |
+
let nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0;
|
23 |
+
let page = parseInt(alm.page);
|
24 |
+
let preloaded = alm.addons.preloaded === 'true' ? true : false;
|
25 |
+
|
26 |
+
// Exit if Paging or Next Page
|
27 |
+
if (alm.addons.paging || alm.addons.nextpage) {
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
|
31 |
+
// Init
|
32 |
+
|
33 |
+
if (init) {
|
34 |
+
setTimeout(function () {
|
35 |
+
// Paged results
|
36 |
+
if ((alm.addons.seo && startPage > 1) || (alm.addons.filters && filterStartPage > 1) || (alm.addons.nextpage && nextpageStartPage > 1)) {
|
37 |
+
// SEO
|
38 |
+
if (alm.addons.seo && startPage > 1) {
|
39 |
+
for (let i = 0; i < startPage; i++) {
|
40 |
+
createTOCButton(alm, i, offset);
|
41 |
+
}
|
42 |
+
}
|
43 |
+
// Filters
|
44 |
+
if (alm.addons.filters && filterStartPage > 1) {
|
45 |
+
for (let i = 0; i < filterStartPage; i++) {
|
46 |
+
createTOCButton(alm, i, offset);
|
47 |
+
}
|
48 |
+
}
|
49 |
+
// Nextpage
|
50 |
+
if (alm.addons.nextpage && nextpageStartPage > 1) {
|
51 |
+
for (let i = 0; i < nextpageStartPage; i++) {
|
52 |
+
createTOCButton(alm, i, offset);
|
53 |
+
}
|
54 |
+
}
|
55 |
+
} else {
|
56 |
+
if (!from_preloaded && preloaded) {
|
57 |
+
page = page + 1;
|
58 |
+
}
|
59 |
+
createTOCButton(alm, page, offset);
|
60 |
+
}
|
61 |
+
}, 100);
|
62 |
+
} else {
|
63 |
+
// Preloaded
|
64 |
+
if (preloaded) {
|
65 |
+
if (alm.addons.seo && startPage > 0) {
|
66 |
+
page = page;
|
67 |
+
} else if (alm.addons.filters && filterStartPage > 0) {
|
68 |
+
page = page;
|
69 |
+
} else {
|
70 |
+
page = page + 1;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
createTOCButton(alm, page, offset);
|
75 |
+
}
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
// Clear table of contents
|
80 |
+
export function clearTOC() {
|
81 |
+
let toc = document.querySelector('.alm-toc');
|
82 |
+
if (toc) {
|
83 |
+
toc.innerHTML = '';
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
// Create Standard Page Button
|
88 |
+
function createTOCButton(alm, page, offset) {
|
89 |
+
if (!alm.tableofcontents) {
|
90 |
+
return false;
|
91 |
+
}
|
92 |
+
|
93 |
+
let button = document.createElement('button');
|
94 |
+
button.type = 'button';
|
95 |
+
|
96 |
+
page = parseInt(page) + 1;
|
97 |
+
button.innerHTML = getTOCLabel(alm, page);
|
98 |
+
button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page;
|
99 |
+
alm.tableofcontents.appendChild(button);
|
100 |
+
|
101 |
+
button.addEventListener('click', function (e) {
|
102 |
+
let page = this.dataset.page;
|
103 |
+
let target = document.querySelector(`.alm-reveal:nth-child(${page})`) || document.querySelector(`.alm-nextpage:nth-child(${page})`);
|
104 |
+
|
105 |
+
// Single Posts
|
106 |
+
if (alm.addons.single_post_target) {
|
107 |
+
target = document.querySelector(`.alm-reveal.alm-single-post[data-page="${page}"]`);
|
108 |
+
}
|
109 |
+
|
110 |
+
if (!target) {
|
111 |
+
return false;
|
112 |
+
}
|
113 |
+
let top = typeof getOffset === 'function' ? getOffset(target).top : target.offsetTop;
|
114 |
+
almScroll(top - offset);
|
115 |
+
|
116 |
+
// Set Focus for A11y
|
117 |
+
setTimeout(function () {
|
118 |
+
setFocus(alm, target, page, false);
|
119 |
+
}, 1000);
|
120 |
+
});
|
121 |
+
}
|
122 |
+
|
123 |
+
// Get Button Label
|
124 |
+
function getTOCLabel(alm, page) {
|
125 |
+
let label = page;
|
126 |
+
|
127 |
+
// Single Posts
|
128 |
+
if (alm.addons.single_post) {
|
129 |
+
let thePage = page - 1;
|
130 |
+
let element;
|
131 |
+
if (alm.addons.single_post_target) {
|
132 |
+
// Special functionality for Single Post with a loading target type
|
133 |
+
if (alm.init) {
|
134 |
+
thePage = thePage;
|
135 |
+
} else {
|
136 |
+
thePage = thePage + 1;
|
137 |
+
}
|
138 |
+
let posts = document.querySelectorAll(`.alm-reveal.alm-single-post`);
|
139 |
+
if (posts) {
|
140 |
+
element = posts[thePage];
|
141 |
+
}
|
142 |
+
} else {
|
143 |
+
element = document.querySelector(`.alm-reveal.alm-single-post[data-page=${page - 1}]`);
|
144 |
+
}
|
145 |
+
label = element ? element.dataset.title : label;
|
146 |
+
}
|
147 |
+
|
148 |
+
// Dynamic function name
|
149 |
+
let funcName = `almTOCLabel_${alm.id}`;
|
150 |
+
if (typeof window[funcName] === 'function') {
|
151 |
+
label = window[funcName](page, label);
|
152 |
+
}
|
153 |
+
|
154 |
+
return label;
|
155 |
+
}
|
core/src/js/vendor/imagesloaded/imagesloaded.pkgd.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* imagesLoaded PACKAGED v4.1.4
|
3 |
+
* JavaScript is all like "You images are done yet or what?"
|
4 |
+
* MIT License
|
5 |
+
*/
|
6 |
+
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
|
core/src/scss/_listing.scss
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Generic alm-listing Styles
|
3 |
+
* @since 1.0.0
|
4 |
+
*/
|
5 |
+
.alm-listing {
|
6 |
+
.alm-reveal {
|
7 |
+
outline: none;
|
8 |
+
&:after {
|
9 |
+
display: table;
|
10 |
+
clear: both;
|
11 |
+
height: 0;
|
12 |
+
width: 100%;
|
13 |
+
content: '';
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
.alm-listing {
|
19 |
+
margin: 0;
|
20 |
+
padding: 0;
|
21 |
+
.alm-reveal > li,
|
22 |
+
.alm-paging-content > li,
|
23 |
+
> li {
|
24 |
+
position: relative;
|
25 |
+
&.alm-item {
|
26 |
+
background: none;
|
27 |
+
margin: 0 0 30px;
|
28 |
+
padding: 0 0 0 80px;
|
29 |
+
position: relative;
|
30 |
+
list-style: none;
|
31 |
+
@media screen and (min-width: $sm) {
|
32 |
+
padding: 0 0 0 100px;
|
33 |
+
}
|
34 |
+
@media screen and (min-width: $md) {
|
35 |
+
padding: 0 0 0 135px;
|
36 |
+
}
|
37 |
+
@media screen and (min-width: $lg) {
|
38 |
+
padding: 0 0 0 160px;
|
39 |
+
}
|
40 |
+
h3 {
|
41 |
+
margin: 0;
|
42 |
+
}
|
43 |
+
p {
|
44 |
+
margin: 10px 0 0;
|
45 |
+
&.entry-meta {
|
46 |
+
opacity: 0.75;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
img {
|
50 |
+
position: absolute;
|
51 |
+
left: 0;
|
52 |
+
top: 0;
|
53 |
+
border-radius: 2px;
|
54 |
+
max-width: 65px;
|
55 |
+
@media screen and (min-width: $sm) {
|
56 |
+
max-width: 85px;
|
57 |
+
}
|
58 |
+
@media screen and (min-width: $md) {
|
59 |
+
max-width: 115px;
|
60 |
+
}
|
61 |
+
@media screen and (min-width: $lg) {
|
62 |
+
max-width: 140px;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
}
|
66 |
+
&.no-img {
|
67 |
+
padding: 0;
|
68 |
+
}
|
69 |
+
}
|
70 |
+
&.products {
|
71 |
+
li.product {
|
72 |
+
padding-left: inherit;
|
73 |
+
img {
|
74 |
+
position: static;
|
75 |
+
border-radius: inherit;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
}
|
79 |
+
&.stylefree {
|
80 |
+
.alm-reveal > li,
|
81 |
+
.alm-paging-content > li,
|
82 |
+
> li {
|
83 |
+
padding: inherit;
|
84 |
+
margin: inherit;
|
85 |
+
img {
|
86 |
+
padding: inherit;
|
87 |
+
margin: inherit;
|
88 |
+
position: static;
|
89 |
+
border-radius: inherit;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
// Right to left (rtl)
|
96 |
+
.alm-listing.rtl {
|
97 |
+
.alm-reveal > li,
|
98 |
+
.alm-paging-content > li {
|
99 |
+
padding: 0 170px 0 0;
|
100 |
+
text-align: right;
|
101 |
+
img {
|
102 |
+
left: auto;
|
103 |
+
right: 0;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
&.products {
|
107 |
+
li.product {
|
108 |
+
padding-right: inherit;
|
109 |
+
}
|
110 |
+
}
|
111 |
+
}
|
112 |
+
|
113 |
+
// Masonry default styles
|
114 |
+
.alm-masonry {
|
115 |
+
display: block;
|
116 |
+
overflow: hidden;
|
117 |
+
clear: both;
|
118 |
+
}
|
119 |
+
|
120 |
+
// Placeholder default styles
|
121 |
+
.alm-placeholder {
|
122 |
+
opacity: 0;
|
123 |
+
transition: opacity 0.2s ease;
|
124 |
+
display: none;
|
125 |
+
}
|
126 |
+
|
127 |
+
// Horizontal Layout
|
128 |
+
.ajax-load-more-wrap {
|
129 |
+
&.alm-horizontal {
|
130 |
+
display: flex;
|
131 |
+
flex-wrap: nowrap;
|
132 |
+
width: 100%;
|
133 |
+
.alm-listing,
|
134 |
+
.alm-listing .alm-reveal {
|
135 |
+
display: flex;
|
136 |
+
flex-wrap: nowrap;
|
137 |
+
flex-direction: row;
|
138 |
+
> li.alm-item {
|
139 |
+
padding: 0;
|
140 |
+
text-align: center;
|
141 |
+
margin: 0 2px;
|
142 |
+
padding: 20px 20px 30px;
|
143 |
+
height: auto;
|
144 |
+
background-color: #fff;
|
145 |
+
border: 1px solid #efefef;
|
146 |
+
border-radius: 4px;
|
147 |
+
width: 300px;
|
148 |
+
img {
|
149 |
+
position: static;
|
150 |
+
border-radius: 100%;
|
151 |
+
max-width: 125px;
|
152 |
+
margin: 0 auto 15px;
|
153 |
+
border-radius: 4px;
|
154 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.075);
|
155 |
+
}
|
156 |
+
}
|
157 |
+
}
|
158 |
+
.alm-listing .alm-reveal:after {
|
159 |
+
display: none;
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
core/src/scss/_loaders.scss
ADDED
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.alm-btn-wrap {
|
2 |
+
display: block;
|
3 |
+
text-align: center;
|
4 |
+
padding: 10px 0;
|
5 |
+
margin: 0 0 15px;
|
6 |
+
position: relative;
|
7 |
+
&:after {
|
8 |
+
display: table;
|
9 |
+
clear: both;
|
10 |
+
height: 0;
|
11 |
+
width: 100%;
|
12 |
+
content: '';
|
13 |
+
}
|
14 |
+
.alm-load-more-btn {
|
15 |
+
font-size: 15px;
|
16 |
+
font-weight: 500;
|
17 |
+
width: auto;
|
18 |
+
height: 43px;
|
19 |
+
line-height: 1;
|
20 |
+
background: #ed7070;
|
21 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
22 |
+
color: #fff;
|
23 |
+
border: none;
|
24 |
+
border-radius: 4px;
|
25 |
+
margin: 0;
|
26 |
+
padding: 0 20px;
|
27 |
+
display: inline-block;
|
28 |
+
position: relative;
|
29 |
+
transition: all 0.3s ease;
|
30 |
+
text-align: center;
|
31 |
+
text-decoration: none;
|
32 |
+
appearance: none;
|
33 |
+
user-select: none;
|
34 |
+
cursor: pointer;
|
35 |
+
&:hover,
|
36 |
+
&.loading {
|
37 |
+
background-color: #e06161;
|
38 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
|
39 |
+
color: #fff;
|
40 |
+
text-decoration: none;
|
41 |
+
}
|
42 |
+
&:active {
|
43 |
+
box-shadow: none;
|
44 |
+
text-decoration: none;
|
45 |
+
}
|
46 |
+
|
47 |
+
/* Loading */
|
48 |
+
&.loading {
|
49 |
+
cursor: default;
|
50 |
+
outline: none;
|
51 |
+
padding-left: 44px;
|
52 |
+
}
|
53 |
+
|
54 |
+
/* Loaded / Done */
|
55 |
+
&.done {
|
56 |
+
cursor: default;
|
57 |
+
opacity: 0.15;
|
58 |
+
background-color: #ed7070;
|
59 |
+
outline: none !important;
|
60 |
+
box-shadow: none !important;
|
61 |
+
}
|
62 |
+
|
63 |
+
/* Loading Icon */
|
64 |
+
&:before,
|
65 |
+
&.done:before {
|
66 |
+
background: none;
|
67 |
+
width: 0;
|
68 |
+
}
|
69 |
+
|
70 |
+
/* Loading :before */
|
71 |
+
&.loading:before {
|
72 |
+
background: #fff url('../../img/ajax-loader.gif') no-repeat center center;
|
73 |
+
width: 30px;
|
74 |
+
height: 31px;
|
75 |
+
margin: 6px;
|
76 |
+
border-radius: 3px;
|
77 |
+
display: inline-block;
|
78 |
+
z-index: 0;
|
79 |
+
content: '';
|
80 |
+
position: absolute;
|
81 |
+
left: 0;
|
82 |
+
top: 0;
|
83 |
+
overflow: hidden;
|
84 |
+
transition: width 0.5s ease-in-out;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
.alm-elementor-link {
|
89 |
+
display: block;
|
90 |
+
font-size: 13px;
|
91 |
+
margin: 0 0 15px;
|
92 |
+
@media screen and (min-width: $md) {
|
93 |
+
position: absolute;
|
94 |
+
left: 0;
|
95 |
+
top: 50%;
|
96 |
+
transform: translateY(-50%);
|
97 |
+
margin: 0;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
+
|
102 |
+
/* white */
|
103 |
+
.ajax-load-more-wrap.white .alm-load-more-btn {
|
104 |
+
background-color: #fff;
|
105 |
+
color: #787878;
|
106 |
+
border: 1px solid #e0e0e0;
|
107 |
+
overflow: hidden;
|
108 |
+
transition: none;
|
109 |
+
outline: none;
|
110 |
+
&:focus,
|
111 |
+
&:hover,
|
112 |
+
&.loading {
|
113 |
+
background-color: #fff;
|
114 |
+
color: #333;
|
115 |
+
border-color: #aaaaaa;
|
116 |
+
}
|
117 |
+
&.done {
|
118 |
+
background-color: #fff;
|
119 |
+
color: #444;
|
120 |
+
border-color: #ccc;
|
121 |
+
}
|
122 |
+
&.loading {
|
123 |
+
color: rgba(255, 255, 255, 0) !important;
|
124 |
+
outline: none !important;
|
125 |
+
background-color: transparent;
|
126 |
+
border-color: transparent !important;
|
127 |
+
box-shadow: none !important;
|
128 |
+
padding-left: 20px;
|
129 |
+
&:before {
|
130 |
+
margin: 0;
|
131 |
+
left: 0;
|
132 |
+
top: 0;
|
133 |
+
width: 100%;
|
134 |
+
height: 100%;
|
135 |
+
background-color: transparent;
|
136 |
+
background-image: url('../../img/ajax-loader-lg.gif');
|
137 |
+
background-size: 25px 25px;
|
138 |
+
background-position: center center;
|
139 |
+
}
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
/* light grey */
|
144 |
+
.ajax-load-more-wrap.light-grey .alm-load-more-btn {
|
145 |
+
background-color: #efefef;
|
146 |
+
color: #787878;
|
147 |
+
border: 1px solid #e0e0e0;
|
148 |
+
overflow: hidden;
|
149 |
+
transition: all 0.075s ease;
|
150 |
+
outline: none;
|
151 |
+
&:focus,
|
152 |
+
&:hover,
|
153 |
+
&.loading,
|
154 |
+
&.done {
|
155 |
+
background-color: #f1f1f1;
|
156 |
+
color: #222;
|
157 |
+
border-color: #aaaaaa;
|
158 |
+
}
|
159 |
+
&.loading {
|
160 |
+
color: rgba(255, 255, 255, 0) !important;
|
161 |
+
outline: none !important;
|
162 |
+
background-color: transparent;
|
163 |
+
border-color: transparent !important;
|
164 |
+
box-shadow: none !important;
|
165 |
+
padding-left: 20px;
|
166 |
+
&:before {
|
167 |
+
margin: 0;
|
168 |
+
left: 0;
|
169 |
+
top: 0;
|
170 |
+
width: 100%;
|
171 |
+
height: 100%;
|
172 |
+
background-color: transparent;
|
173 |
+
background-image: url('../../img/ajax-loader-lg.gif');
|
174 |
+
background-size: 25px 25px;
|
175 |
+
background-position: center center;
|
176 |
+
}
|
177 |
+
}
|
178 |
+
}
|
179 |
+
|
180 |
+
/* Blue */
|
181 |
+
.ajax-load-more-wrap.blue .alm-load-more-btn {
|
182 |
+
background-color: #1b91ca;
|
183 |
+
&:hover,
|
184 |
+
&.loading,
|
185 |
+
&.done {
|
186 |
+
background-color: #1b84b7;
|
187 |
+
}
|
188 |
+
}
|
189 |
+
|
190 |
+
/* green */
|
191 |
+
.ajax-load-more-wrap.green .alm-load-more-btn {
|
192 |
+
background-color: #80ca7a;
|
193 |
+
&:hover,
|
194 |
+
&.loading,
|
195 |
+
&.done {
|
196 |
+
background-color: #81c17b;
|
197 |
+
}
|
198 |
+
}
|
199 |
+
|
200 |
+
/* purple */
|
201 |
+
.ajax-load-more-wrap.purple .alm-load-more-btn {
|
202 |
+
background-color: #b97eca;
|
203 |
+
&:hover,
|
204 |
+
&.loading,
|
205 |
+
&.done {
|
206 |
+
background-color: #a477b1;
|
207 |
+
}
|
208 |
+
}
|
209 |
+
|
210 |
+
/* grey */
|
211 |
+
.ajax-load-more-wrap.grey .alm-load-more-btn {
|
212 |
+
background-color: #a09e9e;
|
213 |
+
&:hover,
|
214 |
+
&.loading,
|
215 |
+
&.done {
|
216 |
+
background-color: #888;
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
/* Infinite */
|
221 |
+
.ajax-load-more-wrap.infinite {
|
222 |
+
.alm-load-more-btn {
|
223 |
+
width: 100%;
|
224 |
+
background-color: transparent !important;
|
225 |
+
background-position: center center;
|
226 |
+
background-repeat: no-repeat;
|
227 |
+
background-image: url('../../img/spinner.gif');
|
228 |
+
border: none !important;
|
229 |
+
opacity: 0;
|
230 |
+
transition: opacity 0.2s ease;
|
231 |
+
box-shadow: none !important;
|
232 |
+
overflow: hidden;
|
233 |
+
text-indent: -9999px;
|
234 |
+
cursor: default !important;
|
235 |
+
outline: none !important;
|
236 |
+
&:before {
|
237 |
+
display: none !important;
|
238 |
+
}
|
239 |
+
&:focus,
|
240 |
+
&:active {
|
241 |
+
outline: none;
|
242 |
+
}
|
243 |
+
&.done {
|
244 |
+
opacity: 0;
|
245 |
+
}
|
246 |
+
&.loading {
|
247 |
+
opacity: 1;
|
248 |
+
}
|
249 |
+
}
|
250 |
+
&.skype .alm-load-more-btn {
|
251 |
+
background-image: url('../../img/spinner-skype.gif');
|
252 |
+
}
|
253 |
+
&.ring .alm-load-more-btn {
|
254 |
+
background-image: url('../../img/spinner-ring.gif');
|
255 |
+
}
|
256 |
+
&.fading-blocks .alm-load-more-btn {
|
257 |
+
background-image: url('../../img/loader-fading-blocks.gif');
|
258 |
+
}
|
259 |
+
&.fading-circles .alm-load-more-btn {
|
260 |
+
background-image: url('../../img/loader-fading-circles.gif');
|
261 |
+
}
|
262 |
+
&.chasing-arrows .alm-load-more-btn {
|
263 |
+
background-image: url('../../img/spinner-chasing-arrows.gif');
|
264 |
+
}
|
265 |
+
}
|
266 |
+
|
267 |
+
/// Horizontal
|
268 |
+
.ajax-load-more-wrap.alm-horizontal {
|
269 |
+
.alm-btn-wrap {
|
270 |
+
display: flex;
|
271 |
+
align-items: center;
|
272 |
+
padding: 0;
|
273 |
+
margin: 0;
|
274 |
+
button {
|
275 |
+
margin: 0;
|
276 |
+
&.done {
|
277 |
+
display: none;
|
278 |
+
}
|
279 |
+
}
|
280 |
+
}
|
281 |
+
}
|
core/src/scss/_tableofcontents.scss
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.alm-toc{
|
2 |
+
display: flex;
|
3 |
+
width: auto;
|
4 |
+
padding: 10px 0;
|
5 |
+
button{
|
6 |
+
background: #f7f7f7;
|
7 |
+
border-radius: 4px;
|
8 |
+
transition: all 0.15s ease;
|
9 |
+
outline: none;
|
10 |
+
border: 1px solid #efefef;
|
11 |
+
box-shadow: none;
|
12 |
+
color: #454545;
|
13 |
+
cursor: pointer;
|
14 |
+
font-size: 14px;
|
15 |
+
font-weight: 500;
|
16 |
+
padding: 7px 10px;
|
17 |
+
line-height: 1;
|
18 |
+
margin: 0 5px 0 0;
|
19 |
+
height: auto;
|
20 |
+
&:hover,
|
21 |
+
&:focus{
|
22 |
+
border-color: #ccc;
|
23 |
+
color: #222;
|
24 |
+
}
|
25 |
+
&:hover{
|
26 |
+
text-decoration: underline;
|
27 |
+
}
|
28 |
+
&:focus{
|
29 |
+
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
core/src/scss/_variables.scss
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
$sm: 480px;
|
2 |
+
$md: 768px;
|
3 |
+
$lg: 1024px;
|
core/src/scss/ajax-load-more.scss
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Ajax Load More
|
3 |
+
* http://wordpress.org/plugins/ajax-load-more/
|
4 |
+
*
|
5 |
+
* Copyright 2015-2020 Connekt Media - https://connekthq.com
|
6 |
+
* Free to use under the GPLv2 license.
|
7 |
+
* http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
*
|
9 |
+
* Author: Darren Cooney
|
10 |
+
* Twitter: @KaptonKaos
|
11 |
+
* Twitter: @ajaxloadmore
|
12 |
+
* Twitter: @connekthq
|
13 |
+
*/
|
14 |
+
|
15 |
+
@import './variables';
|
16 |
+
@import './loaders';
|
17 |
+
@import './listing';
|
18 |
+
@import './tableofcontents';
|
lang/ajax-load-more.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
-
"POT-Creation-Date: 2021-
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
@@ -57,7 +57,7 @@ msgid ""
|
|
57 |
"support. Need a license key? %sPurchase one now%s."
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: admin/admin.php:177 admin/admin.php:
|
61 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
|
62 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
|
63 |
msgid "Error - unable to verify nonce, please try again."
|
@@ -67,8 +67,8 @@ msgstr ""
|
|
67 |
msgid "Transient set successfully"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: admin/admin.php:298 admin/admin.php:463 admin/admin.php:
|
71 |
-
#: admin/admin.php:
|
72 |
msgid "You don't belong here."
|
73 |
msgstr ""
|
74 |
|
@@ -107,7 +107,7 @@ msgid "Applying layout"
|
|
107 |
msgstr ""
|
108 |
|
109 |
#: admin/admin.php:502 admin/editor/editor-build.php:72
|
110 |
-
#: admin/views/repeater-templates.php:
|
111 |
msgid "Template Updated"
|
112 |
msgstr ""
|
113 |
|
@@ -183,7 +183,7 @@ msgid ""
|
|
183 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: admin/admin.php:666 admin/admin.php:667 ajax-load-more.php:
|
187 |
msgid "Settings"
|
188 |
msgstr ""
|
189 |
|
@@ -216,133 +216,133 @@ msgstr ""
|
|
216 |
msgid "Licenses"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: admin/admin.php:
|
220 |
#: admin/views/go-pro.php:5
|
221 |
msgid "Pro"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: admin/admin.php:
|
225 |
msgid "Go Pro"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: admin/admin.php:
|
229 |
#: admin/shortcode-builder/components/cache.php:3 admin/views/settings.php:35
|
230 |
msgid "Cache"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: admin/admin.php:
|
234 |
#: admin/shortcode-builder/components/filters.php:3 admin/views/settings.php:37
|
235 |
msgid "Filters"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: admin/admin.php:
|
239 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
240 |
msgid "WooCommerce"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: admin/admin.php:
|
244 |
msgid "[Ajax Load More] Unable to open repeater template - "
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: admin/admin.php:
|
248 |
msgid "[Ajax Load More] Error saving repeater template - "
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: admin/admin.php:
|
252 |
msgid "Template Saved Successfully"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: admin/admin.php:
|
256 |
msgid "Error Writing File"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: admin/admin.php:
|
260 |
msgid "Something went wrong and the data could not be saved."
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: admin/admin.php:
|
264 |
msgid "Container Type"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: admin/admin.php:
|
268 |
msgid "Container Classes"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: admin/admin.php:
|
272 |
msgid "Disable CSS"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: admin/admin.php:
|
276 |
msgid "Button/Loading Style"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: admin/admin.php:
|
280 |
msgid "Load CSS Inline"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: admin/admin.php:
|
284 |
msgid "Button Classes"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: admin/admin.php:
|
288 |
msgid "Legacy Callbacks"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: admin/admin.php:
|
292 |
msgid "Delete on Uninstall"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: admin/admin.php:
|
296 |
msgid "Dynamic Content"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: admin/admin.php:
|
300 |
msgid "Error Notices"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: admin/admin.php:
|
304 |
msgid ""
|
305 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: admin/admin.php:
|
309 |
msgid "The following settings affect the WordPress admin area only."
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: admin/admin.php:
|
313 |
msgid "I want to use my own CSS styles."
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: admin/admin.php:
|
317 |
msgid "View Ajax Load More CSS"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: admin/admin.php:
|
321 |
msgid "Hide shortcode button in WYSIWYG editor."
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: admin/admin.php:
|
325 |
msgid ""
|
326 |
"Display error messaging regarding repeater template updates in the browser "
|
327 |
"console."
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: admin/admin.php:
|
331 |
msgid ""
|
332 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
333 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
334 |
"of categories, tags and/or authors."
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: admin/admin.php:
|
338 |
msgid "Ajax Posts Here"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: admin/admin.php:
|
342 |
msgid "You can modify the container type when building a shortcode."
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: admin/admin.php:
|
346 |
msgid ""
|
347 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
348 |
"applied globally and will appear with every instance of Ajax Load More. "
|
@@ -350,67 +350,67 @@ msgid ""
|
|
350 |
"shortcode.</span>"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: admin/admin.php:
|
354 |
msgid ""
|
355 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
356 |
"strong> or <strong>Infinite Scroll</strong>"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: admin/admin.php:
|
360 |
msgid "Button Style (Dark)"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: admin/admin.php:
|
364 |
msgid "Button Style (Light)"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: admin/admin.php:
|
368 |
msgid "Infinite Scroll (No Button)"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/admin.php:
|
372 |
msgid "Click to Preview"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/admin.php:
|
376 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
377 |
-
#: core/classes/class-alm-shortcode.php:
|
378 |
msgid "Load More"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: admin/admin.php:
|
382 |
msgid "Improve site performance by loading Ajax Load More CSS inline."
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: admin/admin.php:
|
386 |
msgid "Add classes to your <strong>Load More</strong> button."
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: admin/admin.php:
|
390 |
msgid ""
|
391 |
"On initial page load, move the user's browser window to the top of the "
|
392 |
"screen."
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: admin/admin.php:
|
396 |
msgid "This may help prevent the loading of unnecessary posts."
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: admin/admin.php:
|
400 |
msgid "Disable REST API."
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: admin/admin.php:
|
404 |
msgid ""
|
405 |
"Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
|
406 |
"requests."
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: admin/admin.php:
|
410 |
msgid "Load legacy JavaScript callback functions."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: admin/admin.php:
|
414 |
msgid ""
|
415 |
"Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
|
416 |
"callback-functions/\" target=\"_blank\">callback functions</a> were updated "
|
@@ -418,13 +418,13 @@ msgid ""
|
|
418 |
"library to maintain compatibility."
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: admin/admin.php:
|
422 |
msgid ""
|
423 |
"Check this box if Ajax Load More should remove all of its data* when the "
|
424 |
"plugin is deleted."
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: admin/admin.php:
|
428 |
msgid "* Database Tables, Options and Repeater Templates"
|
429 |
msgstr ""
|
430 |
|
@@ -463,14 +463,14 @@ msgstr ""
|
|
463 |
#: admin/includes/components/example-list.php:2
|
464 |
#: admin/shortcode-builder/shortcode-builder.php:6
|
465 |
#: admin/views/repeater-templates.php:134
|
466 |
-
#: admin/views/repeater-templates.php:
|
467 |
msgid "Collapse All"
|
468 |
msgstr ""
|
469 |
|
470 |
#: admin/includes/components/example-list.php:2
|
471 |
#: admin/shortcode-builder/shortcode-builder.php:7
|
472 |
#: admin/views/repeater-templates.php:135
|
473 |
-
#: admin/views/repeater-templates.php:
|
474 |
msgid "Expand All"
|
475 |
msgstr ""
|
476 |
|
@@ -589,11 +589,6 @@ msgstr ""
|
|
589 |
msgid "Did You Know?"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: admin/includes/cta/extend-theme-repeaters.php:23
|
593 |
-
#: admin/includes/cta/pro-hero.php:25
|
594 |
-
msgid "Upgrade Now"
|
595 |
-
msgstr ""
|
596 |
-
|
597 |
#: admin/includes/cta/extend.php:3
|
598 |
msgid ""
|
599 |
"Unlock additional templates with the <a href=\"https://connekthq.com/plugins/"
|
@@ -606,6 +601,10 @@ msgstr ""
|
|
606 |
msgid "More Info"
|
607 |
msgstr ""
|
608 |
|
|
|
|
|
|
|
|
|
609 |
#: admin/includes/cta/resources.php:2
|
610 |
msgid "Resources"
|
611 |
msgstr ""
|
@@ -727,8 +726,8 @@ msgstr ""
|
|
727 |
#: admin/shortcode-builder/components/filters.php:117
|
728 |
#: admin/shortcode-builder/components/filters.php:158
|
729 |
#: admin/shortcode-builder/components/filters.php:180
|
730 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
731 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
732 |
#: admin/shortcode-builder/components/paging.php:15
|
733 |
#: admin/shortcode-builder/components/paging.php:64
|
734 |
#: admin/shortcode-builder/components/paging.php:90
|
@@ -737,22 +736,22 @@ msgstr ""
|
|
737 |
#: admin/shortcode-builder/components/rest-api.php:105
|
738 |
#: admin/shortcode-builder/components/seo.php:15
|
739 |
#: admin/shortcode-builder/components/single-post.php:19
|
740 |
-
#: admin/shortcode-builder/components/single-post.php:
|
741 |
-
#: admin/shortcode-builder/components/single-post.php:
|
|
|
742 |
#: admin/shortcode-builder/components/term-query.php:15
|
743 |
#: admin/shortcode-builder/components/term-query.php:79
|
744 |
#: admin/shortcode-builder/components/users.php:14
|
745 |
#: admin/shortcode-builder/shortcode-builder.php:180
|
746 |
#: admin/shortcode-builder/shortcode-builder.php:217
|
747 |
#: admin/shortcode-builder/shortcode-builder.php:240
|
748 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
749 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
750 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
751 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
752 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
753 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
754 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
755 |
-
#: admin/shortcode-builder/shortcode-builder.php:1419
|
756 |
msgid "True"
|
757 |
msgstr ""
|
758 |
|
@@ -766,8 +765,8 @@ msgstr ""
|
|
766 |
#: admin/shortcode-builder/components/filters.php:121
|
767 |
#: admin/shortcode-builder/components/filters.php:162
|
768 |
#: admin/shortcode-builder/components/filters.php:184
|
769 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
770 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
771 |
#: admin/shortcode-builder/components/paging.php:19
|
772 |
#: admin/shortcode-builder/components/paging.php:65
|
773 |
#: admin/shortcode-builder/components/paging.php:94
|
@@ -776,29 +775,29 @@ msgstr ""
|
|
776 |
#: admin/shortcode-builder/components/rest-api.php:109
|
777 |
#: admin/shortcode-builder/components/seo.php:19
|
778 |
#: admin/shortcode-builder/components/single-post.php:23
|
779 |
-
#: admin/shortcode-builder/components/single-post.php:
|
780 |
-
#: admin/shortcode-builder/components/single-post.php:
|
|
|
781 |
#: admin/shortcode-builder/components/term-query.php:19
|
782 |
#: admin/shortcode-builder/components/term-query.php:80
|
783 |
#: admin/shortcode-builder/components/users.php:18
|
784 |
#: admin/shortcode-builder/shortcode-builder.php:184
|
785 |
#: admin/shortcode-builder/shortcode-builder.php:221
|
786 |
#: admin/shortcode-builder/shortcode-builder.php:244
|
787 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
788 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
789 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
790 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
791 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
792 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
793 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
794 |
-
#: admin/shortcode-builder/shortcode-builder.php:1423
|
795 |
msgid "False"
|
796 |
msgstr ""
|
797 |
|
798 |
#: admin/shortcode-builder/components/acf.php:31
|
799 |
#: admin/shortcode-builder/components/comments.php:30
|
800 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
801 |
-
#: admin/shortcode-builder/components/single-post.php:
|
802 |
msgid "Post ID"
|
803 |
msgstr ""
|
804 |
|
@@ -809,7 +808,7 @@ msgid ""
|
|
809 |
msgstr ""
|
810 |
|
811 |
#: admin/shortcode-builder/components/acf.php:32
|
812 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
813 |
msgid "The ID of the current page/post."
|
814 |
msgstr ""
|
815 |
|
@@ -901,7 +900,7 @@ msgid "Enable Ajax Load More to display blog comments."
|
|
901 |
msgstr ""
|
902 |
|
903 |
#: admin/shortcode-builder/components/comments.php:31
|
904 |
-
#: admin/shortcode-builder/components/single-post.php:
|
905 |
msgid "The ID of the current single post."
|
906 |
msgstr ""
|
907 |
|
@@ -969,8 +968,8 @@ msgid ""
|
|
969 |
msgstr ""
|
970 |
|
971 |
#: admin/shortcode-builder/components/comments.php:105
|
972 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
973 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
974 |
msgid "None"
|
975 |
msgstr ""
|
976 |
|
@@ -1008,12 +1007,12 @@ msgid ""
|
|
1008 |
msgstr ""
|
1009 |
|
1010 |
#: admin/shortcode-builder/components/comments.php:135
|
1011 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1012 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1013 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1014 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1015 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1016 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1017 |
msgid "View Docs"
|
1018 |
msgstr ""
|
1019 |
|
@@ -1081,7 +1080,7 @@ msgid "Enable filters with this Ajax Load More instance."
|
|
1081 |
msgstr ""
|
1082 |
|
1083 |
#: admin/shortcode-builder/components/filters.php:30
|
1084 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1085 |
msgid "Target"
|
1086 |
msgstr ""
|
1087 |
|
@@ -1145,7 +1144,7 @@ msgid "Automatically scroll users to the top of list after a filter update."
|
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/shortcode-builder/components/filters.php:131
|
1148 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1149 |
#: admin/shortcode-builder/components/paging.php:70
|
1150 |
msgid "Scroll Top"
|
1151 |
msgstr ""
|
@@ -1188,70 +1187,108 @@ msgid ""
|
|
1188 |
"Enable debugging of the Ajax Load More filter object in the browser console."
|
1189 |
msgstr ""
|
1190 |
|
1191 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1192 |
#: admin/shortcode-builder/components/paging.php:147
|
1193 |
msgid "Next Page"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1197 |
msgid "Enable the infinite scrolling of multipage WordPress content using the"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1201 |
msgid "Quicktag or Page Break block."
|
1202 |
msgstr ""
|
1203 |
|
1204 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1205 |
msgid "URL Rewrite"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1209 |
msgid "Update the browser address bar as pages come into view."
|
1210 |
msgstr ""
|
1211 |
|
1212 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1213 |
msgid "Yes, update the URL."
|
1214 |
msgstr ""
|
1215 |
|
1216 |
#: admin/shortcode-builder/components/nextpage.php:62
|
1217 |
-
msgid "
|
1218 |
msgstr ""
|
1219 |
|
1220 |
#: admin/shortcode-builder/components/nextpage.php:63
|
1221 |
msgid ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1222 |
"You must have a reference to your Google Analytics tracking code already on "
|
1223 |
"the page."
|
1224 |
msgstr ""
|
1225 |
|
1226 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1227 |
msgid "Each time a page is loaded it will count as a pageview."
|
1228 |
msgstr ""
|
1229 |
|
1230 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1231 |
msgid "Yes, send pageviews to Google Analytics."
|
1232 |
msgstr ""
|
1233 |
|
1234 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1235 |
msgid "Scroll to Page"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1239 |
msgid "Scroll users automatically to the next page on 'Load More' action."
|
1240 |
msgstr ""
|
1241 |
|
1242 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1243 |
#: admin/shortcode-builder/components/paging.php:62
|
1244 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1245 |
msgid "Enable Scrolling"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1249 |
msgid ""
|
1250 |
"The scrolltop position of the browser window (used with scrolling and fwd/"
|
1251 |
"back browser buttons)."
|
1252 |
msgstr ""
|
1253 |
|
1254 |
-
#: admin/shortcode-builder/components/nextpage.php:
|
1255 |
msgid ""
|
1256 |
"You must add the Next Page shortcode directly to your template file using "
|
1257 |
"the <a href=\"https://developer.wordpress.org/reference/functions/"
|
@@ -1303,7 +1340,7 @@ msgid "Show first/last and next/previous buttons in the paging navigation."
|
|
1303 |
msgstr ""
|
1304 |
|
1305 |
#: admin/shortcode-builder/components/paging.php:105
|
1306 |
-
#: core/classes/class-alm-noscript.php:
|
1307 |
msgid "First Page"
|
1308 |
msgstr ""
|
1309 |
|
@@ -1317,7 +1354,7 @@ msgid "Label for the <span>First Page</span> button."
|
|
1317 |
msgstr ""
|
1318 |
|
1319 |
#: admin/shortcode-builder/components/paging.php:119
|
1320 |
-
#: core/classes/class-alm-noscript.php:
|
1321 |
msgid "Last Page"
|
1322 |
msgstr ""
|
1323 |
|
@@ -1415,16 +1452,18 @@ msgid ""
|
|
1415 |
msgstr ""
|
1416 |
|
1417 |
#: admin/shortcode-builder/components/rest-api.php:86
|
|
|
|
|
1418 |
#: admin/shortcode-builder/shortcode-builder.php:196
|
1419 |
#: admin/shortcode-builder/shortcode-builder.php:210
|
1420 |
#: admin/shortcode-builder/shortcode-builder.php:233
|
1421 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1422 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1423 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1424 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1425 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1426 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1427 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1428 |
msgid "View Example"
|
1429 |
msgstr ""
|
1430 |
|
@@ -1459,198 +1498,221 @@ msgstr ""
|
|
1459 |
msgid "Enable the infinite scrolling of single posts."
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1463 |
msgid ""
|
1464 |
"Repeater Templates are not required when using the Target implementation."
|
1465 |
msgstr ""
|
1466 |
|
1467 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1468 |
msgid ""
|
1469 |
"Enter the ID or classname of HTML element that wraps your single post "
|
1470 |
"content."
|
1471 |
msgstr ""
|
1472 |
|
1473 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1474 |
msgid "View Guide"
|
1475 |
msgstr ""
|
1476 |
|
1477 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1478 |
msgid "Post Ordering"
|
1479 |
msgstr ""
|
1480 |
|
1481 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1482 |
msgid ""
|
1483 |
"By default, the Single Posts add-on will use the core WordPress "
|
1484 |
"`get_previous_post` function, but you can adjust that here."
|
1485 |
msgstr ""
|
1486 |
|
1487 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1488 |
msgid "Select the posts loading order."
|
1489 |
msgstr ""
|
1490 |
|
1491 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1492 |
msgid "Previous Post (by date DESC)"
|
1493 |
msgstr ""
|
1494 |
|
1495 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1496 |
msgid "Next Post (by date ASC)"
|
1497 |
msgstr ""
|
1498 |
|
1499 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1500 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1501 |
msgid "Latest Post (Start from most recent)"
|
1502 |
msgstr ""
|
1503 |
|
1504 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1505 |
msgid "Post IDs (Array)"
|
1506 |
msgstr ""
|
1507 |
|
1508 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1509 |
msgid "Custom Query"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1513 |
msgid "Custom Query Order"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1517 |
msgid "Select the post ordering of the custom query."
|
1518 |
msgstr ""
|
1519 |
|
1520 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1521 |
msgid "Previous Post (Continue by date DESC)"
|
1522 |
msgstr ""
|
1523 |
|
1524 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1525 |
msgid "Post ID Array"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1529 |
msgid "A comma separated list of post ID's to query by order."
|
1530 |
msgstr ""
|
1531 |
|
1532 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1533 |
#: admin/shortcode-builder/components/term-query.php:39
|
1534 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1535 |
msgid "Taxonomy"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1539 |
msgid ""
|
1540 |
"Selecting a taxonomy means only previous posts from the same taxonomy term "
|
1541 |
"will be returned. If a post has multiple terms attached, each term will be "
|
1542 |
"considered using an OR relationship query."
|
1543 |
msgstr ""
|
1544 |
|
1545 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1546 |
msgid "Query previous posts from the same taxonomy term(s)."
|
1547 |
msgstr ""
|
1548 |
|
1549 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1550 |
#: admin/shortcode-builder/includes/tax-query-options.php:5
|
1551 |
#: admin/shortcode-builder/includes/tax-query-options.php:62
|
1552 |
#: admin/shortcode-builder/includes/tax-query-options.php:105
|
1553 |
msgid "Select Taxonomy"
|
1554 |
msgstr ""
|
1555 |
|
1556 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1557 |
#: admin/shortcode-builder/components/term-query.php:45
|
1558 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1559 |
msgid "Category"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1563 |
#: admin/shortcode-builder/components/term-query.php:46
|
1564 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1565 |
msgid "Tag"
|
1566 |
msgstr ""
|
1567 |
|
1568 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1569 |
msgid "Excluded Terms "
|
1570 |
msgstr ""
|
1571 |
|
1572 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1573 |
msgid "A comma-separated list of excluded terms by ID."
|
1574 |
msgstr ""
|
1575 |
|
1576 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1577 |
msgid "Exclude posts by term ID from the previous post query."
|
1578 |
msgstr ""
|
1579 |
|
1580 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1581 |
-
msgid "
|
1582 |
msgstr ""
|
1583 |
|
1584 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1585 |
msgid ""
|
1586 |
-
"
|
1587 |
-
"
|
1588 |
-
msgstr ""
|
1589 |
-
|
1590 |
-
#: admin/shortcode-builder/components/single-post.php:157
|
1591 |
-
msgid "View Blog Post"
|
1592 |
msgstr ""
|
1593 |
|
1594 |
#: admin/shortcode-builder/components/single-post.php:178
|
1595 |
-
msgid "
|
1596 |
msgstr ""
|
1597 |
|
1598 |
#: admin/shortcode-builder/components/single-post.php:179
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1599 |
msgid ""
|
1600 |
"Display a reading progress bar indicator at the top or bottom of the browser "
|
1601 |
"window."
|
1602 |
msgstr ""
|
1603 |
|
1604 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1605 |
msgid "Position"
|
1606 |
msgstr ""
|
1607 |
|
1608 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1609 |
msgid "Select the window position of the progress bar."
|
1610 |
msgstr ""
|
1611 |
|
1612 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1613 |
msgid "Top"
|
1614 |
msgstr ""
|
1615 |
|
1616 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1617 |
msgid "Bottom"
|
1618 |
msgstr ""
|
1619 |
|
1620 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1621 |
-
msgid "Height"
|
1622 |
-
msgstr ""
|
1623 |
-
|
1624 |
-
#: admin/shortcode-builder/components/single-post.php:228
|
1625 |
msgid "Select the height of the progress bar in pixels."
|
1626 |
msgstr ""
|
1627 |
|
1628 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1629 |
msgid "Colors"
|
1630 |
msgstr ""
|
1631 |
|
1632 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1633 |
msgid "Enter the hex color values of the reading progress bar"
|
1634 |
msgstr ""
|
1635 |
|
1636 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1637 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1638 |
msgid "Default:"
|
1639 |
msgstr ""
|
1640 |
|
1641 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1642 |
msgid "Foreground Color:"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1646 |
msgid "Background Color:"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
-
#: admin/shortcode-builder/components/single-post.php:
|
1650 |
msgid "Leave empty for a transparent background"
|
1651 |
msgstr ""
|
1652 |
|
1653 |
-
#: admin/shortcode-builder/components/single-post.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1654 |
msgid ""
|
1655 |
"You must add the Single Post shortcode directly to your single template file "
|
1656 |
"using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
@@ -1710,9 +1772,9 @@ msgid "All Roles"
|
|
1710 |
msgstr ""
|
1711 |
|
1712 |
#: admin/shortcode-builder/components/users.php:56
|
1713 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1714 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1715 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1716 |
msgid "Include"
|
1717 |
msgstr ""
|
1718 |
|
@@ -1721,9 +1783,9 @@ msgid "A comma separated list of users to be included by ID"
|
|
1721 |
msgstr ""
|
1722 |
|
1723 |
#: admin/shortcode-builder/components/users.php:70
|
1724 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1725 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1726 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1727 |
msgid "Exclude"
|
1728 |
msgstr ""
|
1729 |
|
@@ -1748,12 +1810,12 @@ msgid "Sort users by Order and Orderby parameters"
|
|
1748 |
msgstr ""
|
1749 |
|
1750 |
#: admin/shortcode-builder/components/users.php:102
|
1751 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1752 |
msgid "Order"
|
1753 |
msgstr ""
|
1754 |
|
1755 |
#: admin/shortcode-builder/components/users.php:109
|
1756 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1757 |
msgid "Order By"
|
1758 |
msgstr ""
|
1759 |
|
@@ -1806,7 +1868,7 @@ msgid "Taxonomy Operator:"
|
|
1806 |
msgstr ""
|
1807 |
|
1808 |
#: admin/shortcode-builder/includes/tax-query-options.php:48
|
1809 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1810 |
msgid "Relation:"
|
1811 |
msgstr ""
|
1812 |
|
@@ -1845,7 +1907,7 @@ msgstr ""
|
|
1845 |
|
1846 |
#: admin/shortcode-builder/shortcode-builder.php:66
|
1847 |
#: admin/views/repeater-templates.php:151
|
1848 |
-
#: admin/views/repeater-templates.php:
|
1849 |
msgid "Learn More"
|
1850 |
msgstr ""
|
1851 |
|
@@ -1958,597 +2020,581 @@ msgid ""
|
|
1958 |
"e.g. <div class='no-results'>Sorry, nothing found in this query</div>"
|
1959 |
msgstr ""
|
1960 |
|
1961 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1962 |
-
msgid "Nested Instance"
|
1963 |
-
msgstr ""
|
1964 |
-
|
1965 |
-
#: admin/shortcode-builder/shortcode-builder.php:275
|
1966 |
-
msgid ""
|
1967 |
-
"When nesting ALM instances it's important to set this to true as it removes "
|
1968 |
-
"any problematic JavaScript functionality."
|
1969 |
-
msgstr ""
|
1970 |
-
|
1971 |
-
#: admin/shortcode-builder/shortcode-builder.php:276
|
1972 |
-
msgid ""
|
1973 |
-
"Is this instance of Ajax Load More nested inside another instance of Ajax "
|
1974 |
-
"Load More?"
|
1975 |
-
msgstr ""
|
1976 |
-
|
1977 |
-
#: admin/shortcode-builder/shortcode-builder.php:302
|
1978 |
msgid "Template Selection"
|
1979 |
msgstr ""
|
1980 |
|
1981 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1982 |
msgid "Repeater Template"
|
1983 |
msgstr ""
|
1984 |
|
1985 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1986 |
msgid ""
|
1987 |
"Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
|
1988 |
"\"_parent\">Repeater Template</a> you would like to use."
|
1989 |
msgstr ""
|
1990 |
|
1991 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1992 |
msgid "Button Labels"
|
1993 |
msgstr ""
|
1994 |
|
1995 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
1996 |
msgid "Label"
|
1997 |
msgstr ""
|
1998 |
|
1999 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2000 |
msgid "Customize the text of the <em>Load More</em> button."
|
2001 |
msgstr ""
|
2002 |
|
2003 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2004 |
msgid "Loading Label"
|
2005 |
msgstr ""
|
2006 |
|
2007 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2008 |
msgid "Leave field empty to not update button text while loading content"
|
2009 |
msgstr ""
|
2010 |
|
2011 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2012 |
msgid ""
|
2013 |
"Update the text of the <em>Load More</em> button while content is loading."
|
2014 |
msgstr ""
|
2015 |
|
2016 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2017 |
msgid "Loading Posts..."
|
2018 |
msgstr ""
|
2019 |
|
2020 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2021 |
msgid "Done Label"
|
2022 |
msgstr ""
|
2023 |
|
2024 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2025 |
msgid "Leave field empty to not update button text"
|
2026 |
msgstr ""
|
2027 |
|
2028 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2029 |
msgid ""
|
2030 |
"Update the text of the <em>Load More</em> button when no content remains to "
|
2031 |
"be loaded."
|
2032 |
msgstr ""
|
2033 |
|
2034 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2035 |
msgid "No Posts Remain..."
|
2036 |
msgstr ""
|
2037 |
|
2038 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2039 |
msgid "Scrolling"
|
2040 |
msgstr ""
|
2041 |
|
2042 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2043 |
msgid "Load more posts as the user scrolls the page."
|
2044 |
msgstr ""
|
2045 |
|
2046 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2047 |
msgid "Scroll Distance"
|
2048 |
msgstr ""
|
2049 |
|
2050 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2051 |
msgid ""
|
2052 |
"Distance is based on the position of the loading button from the bottom of "
|
2053 |
"the screen"
|
2054 |
msgstr ""
|
2055 |
|
2056 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2057 |
msgid ""
|
2058 |
"The distance from the bottom of the screen to trigger loading of posts. "
|
2059 |
"(Default = 100)"
|
2060 |
msgstr ""
|
2061 |
|
2062 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2063 |
msgid "Pro-tip"
|
2064 |
msgstr ""
|
2065 |
|
2066 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2067 |
msgid ""
|
2068 |
"Use a negative number (-200) to trigger a post load before the button is in "
|
2069 |
"view"
|
2070 |
msgstr ""
|
2071 |
|
2072 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2073 |
msgid "Maximum Pages"
|
2074 |
msgstr ""
|
2075 |
|
2076 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2077 |
msgid "If using an Infinite Scroll button style you should set this to 0"
|
2078 |
msgstr ""
|
2079 |
|
2080 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2081 |
msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2085 |
msgid "Pause Override"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2089 |
msgid ""
|
2090 |
"Override the <em>Pause</em> parameter and trigger the initial loading of "
|
2091 |
"posts on scroll."
|
2092 |
msgstr ""
|
2093 |
|
2094 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2095 |
msgid "Scroll Container"
|
2096 |
msgstr ""
|
2097 |
|
2098 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2099 |
msgid "Confine Ajax Load More scrolling to a parent container element."
|
2100 |
msgstr ""
|
2101 |
|
2102 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2103 |
msgid "Container Element"
|
2104 |
msgstr ""
|
2105 |
|
2106 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2107 |
msgid ""
|
2108 |
"Enter the ID or classname of the parent container element to be used as the "
|
2109 |
"scrolling container."
|
2110 |
msgstr ""
|
2111 |
|
2112 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2113 |
msgid "Scroll Direction"
|
2114 |
msgstr ""
|
2115 |
|
2116 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2117 |
msgid "Scroll Direction only works when using a Scroll Container."
|
2118 |
msgstr ""
|
2119 |
|
2120 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2121 |
msgid "Select the direction Ajax Load More should scroll to load posts."
|
2122 |
msgstr ""
|
2123 |
|
2124 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2125 |
msgid "Vertical"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2129 |
msgid "Horizontal"
|
2130 |
msgstr ""
|
2131 |
|
2132 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2133 |
msgid "Transition"
|
2134 |
msgstr ""
|
2135 |
|
2136 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2137 |
msgid "Type"
|
2138 |
msgstr ""
|
2139 |
|
2140 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2141 |
msgid "Select a loading transition style."
|
2142 |
msgstr ""
|
2143 |
|
2144 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2145 |
msgid "Fade In"
|
2146 |
msgstr ""
|
2147 |
|
2148 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2149 |
msgid "Masonry"
|
2150 |
msgstr ""
|
2151 |
|
2152 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2153 |
msgid "Masonry Options"
|
2154 |
msgstr ""
|
2155 |
|
2156 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2157 |
msgid "Ajax Load More does not support all available Masonry options"
|
2158 |
msgstr ""
|
2159 |
|
2160 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2161 |
msgid ""
|
2162 |
"The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
|
2163 |
"target=\"_blank\">options</a> are supported by Ajax Load More."
|
2164 |
msgstr ""
|
2165 |
|
2166 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2167 |
msgid "Item Selector"
|
2168 |
msgstr ""
|
2169 |
|
2170 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2171 |
msgid ""
|
2172 |
"Item Selector is required for Masonry to target each element loaded with "
|
2173 |
"Ajax."
|
2174 |
msgstr ""
|
2175 |
|
2176 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2177 |
msgid "Enter the target classname of each masonry item."
|
2178 |
msgstr ""
|
2179 |
|
2180 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2181 |
msgid "Column Width"
|
2182 |
msgstr ""
|
2183 |
|
2184 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2185 |
msgid ""
|
2186 |
"If columnWidth is not set, Masonry will use the outer width of the first "
|
2187 |
"Item Selector."
|
2188 |
msgstr ""
|
2189 |
|
2190 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2191 |
msgid ""
|
2192 |
"Enter the <a href=\"https://masonry.desandro.com/options.html#columnwidth\" "
|
2193 |
"target=\"_blank\">columnWidth</a> of the masonry items."
|
2194 |
msgstr ""
|
2195 |
|
2196 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2197 |
msgid "Animation Type"
|
2198 |
msgstr ""
|
2199 |
|
2200 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2201 |
msgid "All Masonry animations include a fade-in effect as items are loaded."
|
2202 |
msgstr ""
|
2203 |
|
2204 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2205 |
msgid "Select a loading transition for Masonry items."
|
2206 |
msgstr ""
|
2207 |
|
2208 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2209 |
msgid "Default (Zoom)"
|
2210 |
msgstr ""
|
2211 |
|
2212 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2213 |
msgid "Items scale up from 50% to 100% size on load."
|
2214 |
msgstr ""
|
2215 |
|
2216 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2217 |
msgid "Zoom Out"
|
2218 |
msgstr ""
|
2219 |
|
2220 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2221 |
msgid "Items scale down from 125% to 100% size on load."
|
2222 |
msgstr ""
|
2223 |
|
2224 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2225 |
msgid "Slide Up"
|
2226 |
msgstr ""
|
2227 |
|
2228 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2229 |
msgid "Items animate up as they are loaded into view."
|
2230 |
msgstr ""
|
2231 |
|
2232 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2233 |
msgid "Slide Down"
|
2234 |
msgstr ""
|
2235 |
|
2236 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2237 |
msgid "Items animate down when loaded into view."
|
2238 |
msgstr ""
|
2239 |
|
2240 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2241 |
msgid "Horizontal Order"
|
2242 |
msgstr ""
|
2243 |
|
2244 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2245 |
msgid "Lays out items to maintain left-to-right order."
|
2246 |
msgstr ""
|
2247 |
|
2248 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2249 |
msgid ""
|
2250 |
"Don't see your favorite Masonry option listed? You can always add your own!"
|
2251 |
msgstr ""
|
2252 |
|
2253 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2254 |
msgid "Transition Container Classes"
|
2255 |
msgstr ""
|
2256 |
|
2257 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2258 |
msgid "This setting is not available with the Single Post or Next Page add-ons"
|
2259 |
msgstr ""
|
2260 |
|
2261 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2262 |
msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
|
2263 |
msgstr ""
|
2264 |
|
2265 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2266 |
msgid "Transition Container"
|
2267 |
msgstr ""
|
2268 |
|
2269 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2270 |
msgid ""
|
2271 |
"Removing the transition container may have undesired results and is not "
|
2272 |
"recommended"
|
2273 |
msgstr ""
|
2274 |
|
2275 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2276 |
msgid ""
|
2277 |
"Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
|
2278 |
msgstr ""
|
2279 |
|
2280 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2281 |
msgid "Remove Container"
|
2282 |
msgstr ""
|
2283 |
|
2284 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2285 |
msgid "Progress Bar"
|
2286 |
msgstr ""
|
2287 |
|
2288 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2289 |
msgid ""
|
2290 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
2291 |
"content."
|
2292 |
msgstr ""
|
2293 |
|
2294 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2295 |
msgid "Color"
|
2296 |
msgstr ""
|
2297 |
|
2298 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2299 |
msgid "Enter the hex color of the progress bar"
|
2300 |
msgstr ""
|
2301 |
|
2302 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2303 |
msgid "Query Parameters"
|
2304 |
msgstr ""
|
2305 |
|
2306 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2307 |
msgid ""
|
2308 |
"Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load "
|
2309 |
"More shortcode values."
|
2310 |
msgstr ""
|
2311 |
|
2312 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2313 |
msgid ""
|
2314 |
"When using Ajax Load More add-ons or extensions not all Query Parameters "
|
2315 |
"will be available in the query."
|
2316 |
msgstr ""
|
2317 |
|
2318 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2319 |
msgid "Posts Per Page"
|
2320 |
msgstr ""
|
2321 |
|
2322 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2323 |
msgid "Select the number of posts to load with each Ajax request."
|
2324 |
msgstr ""
|
2325 |
|
2326 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2327 |
msgid "Post Type"
|
2328 |
msgstr ""
|
2329 |
|
2330 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2331 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
2332 |
msgstr ""
|
2333 |
|
2334 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2335 |
msgid "Any"
|
2336 |
msgstr ""
|
2337 |
|
2338 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2339 |
msgid "Sticky Posts"
|
2340 |
msgstr ""
|
2341 |
|
2342 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2343 |
msgid "Sticky posts are only available for Posts"
|
2344 |
msgstr ""
|
2345 |
|
2346 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2347 |
msgid ""
|
2348 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
2349 |
"Ajax listing."
|
2350 |
msgstr ""
|
2351 |
|
2352 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2353 |
msgid "Enable Sticky Posts"
|
2354 |
msgstr ""
|
2355 |
|
2356 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2357 |
msgid "Post Format"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2361 |
msgid "Select a Post Format to query."
|
2362 |
msgstr ""
|
2363 |
|
2364 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2365 |
msgid "Select Post Format"
|
2366 |
msgstr ""
|
2367 |
|
2368 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2369 |
msgid "Standard"
|
2370 |
msgstr ""
|
2371 |
|
2372 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2373 |
msgid "Get posts by category using a category_name or category__and query"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2377 |
msgid "Comma separated list of categories to include by"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2381 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2382 |
msgid "slug"
|
2383 |
msgstr ""
|
2384 |
|
2385 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2386 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2387 |
msgid "What's this"
|
2388 |
msgstr ""
|
2389 |
|
2390 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2391 |
msgid "Comma separated list of categories to exclude by ID."
|
2392 |
msgstr ""
|
2393 |
|
2394 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2395 |
msgid "Get posts by tags using a tag or tag__and query"
|
2396 |
msgstr ""
|
2397 |
|
2398 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2399 |
msgid "Comma separated list of tags to include by"
|
2400 |
msgstr ""
|
2401 |
|
2402 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2403 |
msgid "Comma separated list of tags to exclude by ID"
|
2404 |
msgstr ""
|
2405 |
|
2406 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2407 |
msgid "Select a taxonomy then select the terms and an operator."
|
2408 |
msgstr ""
|
2409 |
|
2410 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2411 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2412 |
msgid "Add Another"
|
2413 |
msgstr ""
|
2414 |
|
2415 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2416 |
msgid "Custom Fields (Meta_Query)"
|
2417 |
msgstr ""
|
2418 |
|
2419 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2420 |
msgid ""
|
2421 |
"Query for <a href=\"https://developer.wordpress.org/reference/classes/"
|
2422 |
"wp_query/#custom-field-post-meta-parameters\" target=\"_blank\">custom "
|
2423 |
"field</a> by entering a custom field key, value and operator."
|
2424 |
msgstr ""
|
2425 |
|
2426 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2427 |
msgid ""
|
2428 |
"The logical relationship between each custom field when there is more than "
|
2429 |
"one"
|
2430 |
msgstr ""
|
2431 |
|
2432 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2433 |
msgid "Date"
|
2434 |
msgstr ""
|
2435 |
|
2436 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2437 |
msgid "Enter a year, month(number) and day to query by date archive."
|
2438 |
msgstr ""
|
2439 |
|
2440 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2441 |
msgid "Year:"
|
2442 |
msgstr ""
|
2443 |
|
2444 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2445 |
msgid "Month:"
|
2446 |
msgstr ""
|
2447 |
|
2448 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2449 |
msgid "Day:"
|
2450 |
msgstr ""
|
2451 |
|
2452 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2453 |
msgid "Author"
|
2454 |
msgstr ""
|
2455 |
|
2456 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2457 |
msgid "Select an Author to query(by ID)."
|
2458 |
msgstr ""
|
2459 |
|
2460 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2461 |
msgid "Search"
|
2462 |
msgstr ""
|
2463 |
|
2464 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2465 |
msgid "Enter a search term to query."
|
2466 |
msgstr ""
|
2467 |
|
2468 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2469 |
msgid ""
|
2470 |
"Search uses the default WordPress search, however Ajax Load More does offer "
|
2471 |
"integrations with SearchWP and Relevanssi."
|
2472 |
msgstr ""
|
2473 |
|
2474 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2475 |
msgid "Enter search term"
|
2476 |
msgstr ""
|
2477 |
|
2478 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2479 |
msgid "Post Parameters"
|
2480 |
msgstr ""
|
2481 |
|
2482 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2483 |
msgid "A comma separated list of post ID's to query."
|
2484 |
msgstr ""
|
2485 |
|
2486 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2487 |
msgid "225, 340, 818, etc..."
|
2488 |
msgstr ""
|
2489 |
|
2490 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2491 |
msgid "A comma separated list of post ID's to exclude from query."
|
2492 |
msgstr ""
|
2493 |
|
2494 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2495 |
msgid "Post Status"
|
2496 |
msgstr ""
|
2497 |
|
2498 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2499 |
msgid ""
|
2500 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
2501 |
"logged in users will only have access to view content in a 'publish' or "
|
2502 |
"'inherit' state."
|
2503 |
msgstr ""
|
2504 |
|
2505 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2506 |
msgid "Select status of the post."
|
2507 |
msgstr ""
|
2508 |
|
2509 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2510 |
msgid "Published"
|
2511 |
msgstr ""
|
2512 |
|
2513 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2514 |
msgid "Ordering"
|
2515 |
msgstr ""
|
2516 |
|
2517 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2518 |
msgid "Sort posts by Order and Orderby parameters."
|
2519 |
msgstr ""
|
2520 |
|
2521 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2522 |
msgid "Offset"
|
2523 |
msgstr ""
|
2524 |
|
2525 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2526 |
msgid "Offset the initial query by <em>'x'</em> number of posts"
|
2527 |
msgstr ""
|
2528 |
|
2529 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2530 |
msgid "Custom Arguments"
|
2531 |
msgstr ""
|
2532 |
|
2533 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2534 |
msgid "A semicolon separated list of custom value:pair arguments."
|
2535 |
msgstr ""
|
2536 |
|
2537 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2538 |
msgid ""
|
2539 |
"Custom Arguments can be used to query by parameters not available in the "
|
2540 |
"Shortcode Builder"
|
2541 |
msgstr ""
|
2542 |
|
2543 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2544 |
msgid "event_display:upcoming"
|
2545 |
msgstr ""
|
2546 |
|
2547 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2548 |
msgid "Integrations"
|
2549 |
msgstr ""
|
2550 |
|
2551 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2552 |
msgid ""
|
2553 |
"Ajax Load More provides integration solutions for popular plugins and core "
|
2554 |
"WP functionality - when selecting an integration, Ajax Load More will "
|
@@ -2556,23 +2602,23 @@ msgid ""
|
|
2556 |
"experience for users based on the selected integration."
|
2557 |
msgstr ""
|
2558 |
|
2559 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2560 |
msgid "Archives"
|
2561 |
msgstr ""
|
2562 |
|
2563 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2564 |
msgid ""
|
2565 |
"Ajax Load More will automatically create an archive query while viewing site "
|
2566 |
"archives."
|
2567 |
msgstr ""
|
2568 |
|
2569 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2570 |
msgid ""
|
2571 |
"Taxonomy, category, tag, date (year, month, day), post type and author "
|
2572 |
"archives are currently supported."
|
2573 |
msgstr ""
|
2574 |
|
2575 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2576 |
msgid ""
|
2577 |
"<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> "
|
2578 |
"and/or <b>Post Type</b> when using the Archives integration. Ajax Load More "
|
@@ -2580,12 +2626,12 @@ msgid ""
|
|
2580 |
"archive page."
|
2581 |
msgstr ""
|
2582 |
|
2583 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2584 |
msgid ""
|
2585 |
"Ajax Load More will automatically set WooCommerce configuration options."
|
2586 |
msgstr ""
|
2587 |
|
2588 |
-
#: admin/shortcode-builder/shortcode-builder.php:
|
2589 |
msgid ""
|
2590 |
"Post type, products per page, container classes, sort order and taxonomy/tag "
|
2591 |
"archive queries will be set on the server side based on your sites "
|
@@ -2809,7 +2855,7 @@ msgid "The library of editable templates for use within your theme"
|
|
2809 |
msgstr ""
|
2810 |
|
2811 |
#: admin/views/repeater-templates.php:105
|
2812 |
-
#: admin/views/repeater-templates.php:
|
2813 |
msgid "Location"
|
2814 |
msgstr ""
|
2815 |
|
@@ -2823,23 +2869,23 @@ msgstr ""
|
|
2823 |
msgid "Manage Settings"
|
2824 |
msgstr ""
|
2825 |
|
2826 |
-
#: admin/views/repeater-templates.php:
|
2827 |
msgid "Default Template"
|
2828 |
msgstr ""
|
2829 |
|
2830 |
-
#: admin/views/repeater-templates.php:
|
2831 |
msgid "Template Code:"
|
2832 |
msgstr ""
|
2833 |
|
2834 |
-
#: admin/views/repeater-templates.php:
|
2835 |
msgid "Enter the PHP and HTML markup for this template."
|
2836 |
msgstr ""
|
2837 |
|
2838 |
-
#: admin/views/repeater-templates.php:
|
2839 |
msgid "Save Template"
|
2840 |
msgstr ""
|
2841 |
|
2842 |
-
#: admin/views/repeater-templates.php:
|
2843 |
msgid ""
|
2844 |
"It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
|
2845 |
"load-more/docs/repeater-templates/#default-template\" target=\"_blank"
|
@@ -2848,7 +2894,7 @@ msgid ""
|
|
2848 |
"your server."
|
2849 |
msgstr ""
|
2850 |
|
2851 |
-
#: admin/views/repeater-templates.php:
|
2852 |
msgid ""
|
2853 |
"Repeater Templates editing has been disabled for this instance of Ajax Load "
|
2854 |
"More. To enable the template editing, please remove the "
|
@@ -2856,19 +2902,19 @@ msgid ""
|
|
2856 |
"config.php and then re-activate this plugin."
|
2857 |
msgstr ""
|
2858 |
|
2859 |
-
#: admin/views/repeater-templates.php:
|
2860 |
msgid "Saving template..."
|
2861 |
msgstr ""
|
2862 |
|
2863 |
-
#: admin/views/repeater-templates.php:
|
2864 |
msgid "Updating template..."
|
2865 |
msgstr ""
|
2866 |
|
2867 |
-
#: admin/views/repeater-templates.php:
|
2868 |
msgid "What's a Repeater Template?"
|
2869 |
msgstr ""
|
2870 |
|
2871 |
-
#: admin/views/repeater-templates.php:
|
2872 |
msgid ""
|
2873 |
"A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
|
2874 |
"templates/\" target=\"_blank\">Repeater Template</a> is a snippet of code "
|
@@ -2940,15 +2986,15 @@ msgstr ""
|
|
2940 |
msgid "Reset"
|
2941 |
msgstr ""
|
2942 |
|
2943 |
-
#: ajax-load-more.php:
|
2944 |
msgid "Viewing {post_count} of {total_posts} results."
|
2945 |
msgstr ""
|
2946 |
|
2947 |
-
#: ajax-load-more.php:
|
2948 |
msgid "No results found."
|
2949 |
msgstr ""
|
2950 |
|
2951 |
-
#: core/classes/class-alm-noscript.php:
|
2952 |
msgid "Pages: "
|
2953 |
msgstr ""
|
2954 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
+
"POT-Creation-Date: 2021-02-11 21:49-0500\n"
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
57 |
"support. Need a license key? %sPurchase one now%s."
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: admin/admin.php:177 admin/admin.php:1327
|
61 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
|
62 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
|
63 |
msgid "Error - unable to verify nonce, please try again."
|
67 |
msgid "Transient set successfully"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: admin/admin.php:298 admin/admin.php:463 admin/admin.php:1192
|
71 |
+
#: admin/admin.php:1238 admin/admin.php:1288
|
72 |
msgid "You don't belong here."
|
73 |
msgstr ""
|
74 |
|
107 |
msgstr ""
|
108 |
|
109 |
#: admin/admin.php:502 admin/editor/editor-build.php:72
|
110 |
+
#: admin/views/repeater-templates.php:447
|
111 |
msgid "Template Updated"
|
112 |
msgstr ""
|
113 |
|
183 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: admin/admin.php:666 admin/admin.php:667 ajax-load-more.php:317
|
187 |
msgid "Settings"
|
188 |
msgstr ""
|
189 |
|
216 |
msgid "Licenses"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: admin/admin.php:738 admin/admin.php:739 admin/admin.php:747
|
220 |
#: admin/views/go-pro.php:5
|
221 |
msgid "Pro"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: admin/admin.php:748 admin/views/licenses.php:151
|
225 |
msgid "Go Pro"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: admin/admin.php:759 admin/admin.php:760
|
229 |
#: admin/shortcode-builder/components/cache.php:3 admin/views/settings.php:35
|
230 |
msgid "Cache"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: admin/admin.php:779 admin/admin.php:780
|
234 |
#: admin/shortcode-builder/components/filters.php:3 admin/views/settings.php:37
|
235 |
msgid "Filters"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: admin/admin.php:800 admin/admin.php:801
|
239 |
+
#: admin/shortcode-builder/shortcode-builder.php:1383
|
240 |
msgid "WooCommerce"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: admin/admin.php:1148
|
244 |
msgid "[Ajax Load More] Unable to open repeater template - "
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: admin/admin.php:1152
|
248 |
msgid "[Ajax Load More] Error saving repeater template - "
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: admin/admin.php:1184
|
252 |
msgid "Template Saved Successfully"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: admin/admin.php:1186
|
256 |
msgid "Error Writing File"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: admin/admin.php:1186 admin/views/repeater-templates.php:388
|
260 |
msgid "Something went wrong and the data could not be saved."
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: admin/admin.php:1388 admin/shortcode-builder/shortcode-builder.php:126
|
264 |
msgid "Container Type"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: admin/admin.php:1396 admin/shortcode-builder/shortcode-builder.php:156
|
268 |
msgid "Container Classes"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: admin/admin.php:1404
|
272 |
msgid "Disable CSS"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: admin/admin.php:1412 admin/shortcode-builder/shortcode-builder.php:84
|
276 |
msgid "Button/Loading Style"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: admin/admin.php:1420
|
280 |
msgid "Load CSS Inline"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: admin/admin.php:1428
|
284 |
msgid "Button Classes"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: admin/admin.php:1446
|
288 |
msgid "Legacy Callbacks"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: admin/admin.php:1464
|
292 |
msgid "Delete on Uninstall"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: admin/admin.php:1472
|
296 |
msgid "Dynamic Content"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: admin/admin.php:1480
|
300 |
msgid "Error Notices"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: admin/admin.php:1552
|
304 |
msgid ""
|
305 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: admin/admin.php:1565
|
309 |
msgid "The following settings affect the WordPress admin area only."
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: admin/admin.php:1596
|
313 |
msgid "I want to use my own CSS styles."
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: admin/admin.php:1596
|
317 |
msgid "View Ajax Load More CSS"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: admin/admin.php:1613
|
321 |
msgid "Hide shortcode button in WYSIWYG editor."
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: admin/admin.php:1633
|
325 |
msgid ""
|
326 |
"Display error messaging regarding repeater template updates in the browser "
|
327 |
"console."
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: admin/admin.php:1654
|
331 |
msgid ""
|
332 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
333 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
334 |
"of categories, tags and/or authors."
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: admin/admin.php:1675 admin/admin.php:1678
|
338 |
msgid "Ajax Posts Here"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: admin/admin.php:1680
|
342 |
msgid "You can modify the container type when building a shortcode."
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: admin/admin.php:1697
|
346 |
msgid ""
|
347 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
348 |
"applied globally and will appear with every instance of Ajax Load More. "
|
350 |
"shortcode.</span>"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: admin/admin.php:1762
|
354 |
msgid ""
|
355 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
356 |
"strong> or <strong>Infinite Scroll</strong>"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: admin/admin.php:1767 admin/shortcode-builder/shortcode-builder.php:90
|
360 |
msgid "Button Style (Dark)"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: admin/admin.php:1774 admin/shortcode-builder/shortcode-builder.php:97
|
364 |
msgid "Button Style (Light)"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: admin/admin.php:1779 admin/shortcode-builder/shortcode-builder.php:101
|
368 |
msgid "Infinite Scroll (No Button)"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: admin/admin.php:1796
|
372 |
msgid "Click to Preview"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/admin.php:1797 admin/shortcode-builder/shortcode-builder.php:115
|
376 |
+
#: admin/shortcode-builder/shortcode-builder.php:331
|
377 |
+
#: core/classes/class-alm-shortcode.php:208
|
378 |
msgid "Load More"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: admin/admin.php:1820
|
382 |
msgid "Improve site performance by loading Ajax Load More CSS inline."
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: admin/admin.php:1840
|
386 |
msgid "Add classes to your <strong>Load More</strong> button."
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: admin/admin.php:1884
|
390 |
msgid ""
|
391 |
"On initial page load, move the user's browser window to the top of the "
|
392 |
"screen."
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: admin/admin.php:1885
|
396 |
msgid "This may help prevent the loading of unnecessary posts."
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: admin/admin.php:1908
|
400 |
msgid "Disable REST API."
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: admin/admin.php:1909
|
404 |
msgid ""
|
405 |
"Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
|
406 |
"requests."
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: admin/admin.php:1932
|
410 |
msgid "Load legacy JavaScript callback functions."
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: admin/admin.php:1933
|
414 |
msgid ""
|
415 |
"Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
|
416 |
"callback-functions/\" target=\"_blank\">callback functions</a> were updated "
|
418 |
"library to maintain compatibility."
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: admin/admin.php:1956
|
422 |
msgid ""
|
423 |
"Check this box if Ajax Load More should remove all of its data* when the "
|
424 |
"plugin is deleted."
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: admin/admin.php:1957
|
428 |
msgid "* Database Tables, Options and Repeater Templates"
|
429 |
msgstr ""
|
430 |
|
463 |
#: admin/includes/components/example-list.php:2
|
464 |
#: admin/shortcode-builder/shortcode-builder.php:6
|
465 |
#: admin/views/repeater-templates.php:134
|
466 |
+
#: admin/views/repeater-templates.php:172
|
467 |
msgid "Collapse All"
|
468 |
msgstr ""
|
469 |
|
470 |
#: admin/includes/components/example-list.php:2
|
471 |
#: admin/shortcode-builder/shortcode-builder.php:7
|
472 |
#: admin/views/repeater-templates.php:135
|
473 |
+
#: admin/views/repeater-templates.php:173
|
474 |
msgid "Expand All"
|
475 |
msgstr ""
|
476 |
|
589 |
msgid "Did You Know?"
|
590 |
msgstr ""
|
591 |
|
|
|
|
|
|
|
|
|
|
|
592 |
#: admin/includes/cta/extend.php:3
|
593 |
msgid ""
|
594 |
"Unlock additional templates with the <a href=\"https://connekthq.com/plugins/"
|
601 |
msgid "More Info"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: admin/includes/cta/pro-hero.php:25
|
605 |
+
msgid "Upgrade Now"
|
606 |
+
msgstr ""
|
607 |
+
|
608 |
#: admin/includes/cta/resources.php:2
|
609 |
msgid "Resources"
|
610 |
msgstr ""
|
726 |
#: admin/shortcode-builder/components/filters.php:117
|
727 |
#: admin/shortcode-builder/components/filters.php:158
|
728 |
#: admin/shortcode-builder/components/filters.php:180
|
729 |
+
#: admin/shortcode-builder/components/nextpage.php:17
|
730 |
+
#: admin/shortcode-builder/components/nextpage.php:118
|
731 |
#: admin/shortcode-builder/components/paging.php:15
|
732 |
#: admin/shortcode-builder/components/paging.php:64
|
733 |
#: admin/shortcode-builder/components/paging.php:90
|
736 |
#: admin/shortcode-builder/components/rest-api.php:105
|
737 |
#: admin/shortcode-builder/components/seo.php:15
|
738 |
#: admin/shortcode-builder/components/single-post.php:19
|
739 |
+
#: admin/shortcode-builder/components/single-post.php:162
|
740 |
+
#: admin/shortcode-builder/components/single-post.php:211
|
741 |
+
#: admin/shortcode-builder/components/single-post.php:311
|
742 |
#: admin/shortcode-builder/components/term-query.php:15
|
743 |
#: admin/shortcode-builder/components/term-query.php:79
|
744 |
#: admin/shortcode-builder/components/users.php:14
|
745 |
#: admin/shortcode-builder/shortcode-builder.php:180
|
746 |
#: admin/shortcode-builder/shortcode-builder.php:217
|
747 |
#: admin/shortcode-builder/shortcode-builder.php:240
|
748 |
+
#: admin/shortcode-builder/shortcode-builder.php:378
|
749 |
+
#: admin/shortcode-builder/shortcode-builder.php:437
|
750 |
+
#: admin/shortcode-builder/shortcode-builder.php:460
|
751 |
+
#: admin/shortcode-builder/shortcode-builder.php:635
|
752 |
+
#: admin/shortcode-builder/shortcode-builder.php:711
|
753 |
+
#: admin/shortcode-builder/shortcode-builder.php:1366
|
754 |
+
#: admin/shortcode-builder/shortcode-builder.php:1397
|
|
|
755 |
msgid "True"
|
756 |
msgstr ""
|
757 |
|
765 |
#: admin/shortcode-builder/components/filters.php:121
|
766 |
#: admin/shortcode-builder/components/filters.php:162
|
767 |
#: admin/shortcode-builder/components/filters.php:184
|
768 |
+
#: admin/shortcode-builder/components/nextpage.php:21
|
769 |
+
#: admin/shortcode-builder/components/nextpage.php:119
|
770 |
#: admin/shortcode-builder/components/paging.php:19
|
771 |
#: admin/shortcode-builder/components/paging.php:65
|
772 |
#: admin/shortcode-builder/components/paging.php:94
|
775 |
#: admin/shortcode-builder/components/rest-api.php:109
|
776 |
#: admin/shortcode-builder/components/seo.php:19
|
777 |
#: admin/shortcode-builder/components/single-post.php:23
|
778 |
+
#: admin/shortcode-builder/components/single-post.php:166
|
779 |
+
#: admin/shortcode-builder/components/single-post.php:215
|
780 |
+
#: admin/shortcode-builder/components/single-post.php:315
|
781 |
#: admin/shortcode-builder/components/term-query.php:19
|
782 |
#: admin/shortcode-builder/components/term-query.php:80
|
783 |
#: admin/shortcode-builder/components/users.php:18
|
784 |
#: admin/shortcode-builder/shortcode-builder.php:184
|
785 |
#: admin/shortcode-builder/shortcode-builder.php:221
|
786 |
#: admin/shortcode-builder/shortcode-builder.php:244
|
787 |
+
#: admin/shortcode-builder/shortcode-builder.php:382
|
788 |
+
#: admin/shortcode-builder/shortcode-builder.php:441
|
789 |
+
#: admin/shortcode-builder/shortcode-builder.php:464
|
790 |
+
#: admin/shortcode-builder/shortcode-builder.php:639
|
791 |
+
#: admin/shortcode-builder/shortcode-builder.php:715
|
792 |
+
#: admin/shortcode-builder/shortcode-builder.php:1370
|
793 |
+
#: admin/shortcode-builder/shortcode-builder.php:1401
|
|
|
794 |
msgid "False"
|
795 |
msgstr ""
|
796 |
|
797 |
#: admin/shortcode-builder/components/acf.php:31
|
798 |
#: admin/shortcode-builder/components/comments.php:30
|
799 |
+
#: admin/shortcode-builder/components/nextpage.php:33
|
800 |
+
#: admin/shortcode-builder/components/single-post.php:35
|
801 |
msgid "Post ID"
|
802 |
msgstr ""
|
803 |
|
808 |
msgstr ""
|
809 |
|
810 |
#: admin/shortcode-builder/components/acf.php:32
|
811 |
+
#: admin/shortcode-builder/components/nextpage.php:34
|
812 |
msgid "The ID of the current page/post."
|
813 |
msgstr ""
|
814 |
|
900 |
msgstr ""
|
901 |
|
902 |
#: admin/shortcode-builder/components/comments.php:31
|
903 |
+
#: admin/shortcode-builder/components/single-post.php:36
|
904 |
msgid "The ID of the current single post."
|
905 |
msgstr ""
|
906 |
|
968 |
msgstr ""
|
969 |
|
970 |
#: admin/shortcode-builder/components/comments.php:105
|
971 |
+
#: admin/shortcode-builder/shortcode-builder.php:530
|
972 |
+
#: admin/shortcode-builder/shortcode-builder.php:616
|
973 |
msgid "None"
|
974 |
msgstr ""
|
975 |
|
1007 |
msgstr ""
|
1008 |
|
1009 |
#: admin/shortcode-builder/components/comments.php:135
|
1010 |
+
#: admin/shortcode-builder/components/nextpage.php:134
|
1011 |
+
#: admin/shortcode-builder/components/single-post.php:63
|
1012 |
+
#: admin/shortcode-builder/components/single-post.php:326
|
1013 |
+
#: admin/shortcode-builder/shortcode-builder.php:648
|
1014 |
+
#: admin/shortcode-builder/shortcode-builder.php:1359
|
1015 |
+
#: admin/shortcode-builder/shortcode-builder.php:1389
|
1016 |
msgid "View Docs"
|
1017 |
msgstr ""
|
1018 |
|
1080 |
msgstr ""
|
1081 |
|
1082 |
#: admin/shortcode-builder/components/filters.php:30
|
1083 |
+
#: admin/shortcode-builder/components/single-post.php:47
|
1084 |
msgid "Target"
|
1085 |
msgstr ""
|
1086 |
|
1144 |
msgstr ""
|
1145 |
|
1146 |
#: admin/shortcode-builder/components/filters.php:131
|
1147 |
+
#: admin/shortcode-builder/components/nextpage.php:124
|
1148 |
#: admin/shortcode-builder/components/paging.php:70
|
1149 |
msgid "Scroll Top"
|
1150 |
msgstr ""
|
1187 |
"Enable debugging of the Ajax Load More filter object in the browser console."
|
1188 |
msgstr ""
|
1189 |
|
1190 |
+
#: admin/shortcode-builder/components/nextpage.php:5
|
1191 |
#: admin/shortcode-builder/components/paging.php:147
|
1192 |
msgid "Next Page"
|
1193 |
msgstr ""
|
1194 |
|
1195 |
+
#: admin/shortcode-builder/components/nextpage.php:10
|
1196 |
msgid "Enable the infinite scrolling of multipage WordPress content using the"
|
1197 |
msgstr ""
|
1198 |
|
1199 |
+
#: admin/shortcode-builder/components/nextpage.php:10
|
1200 |
msgid "Quicktag or Page Break block."
|
1201 |
msgstr ""
|
1202 |
|
1203 |
+
#: admin/shortcode-builder/components/nextpage.php:45
|
1204 |
msgid "URL Rewrite"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
+
#: admin/shortcode-builder/components/nextpage.php:46
|
1208 |
msgid "Update the browser address bar as pages come into view."
|
1209 |
msgstr ""
|
1210 |
|
1211 |
+
#: admin/shortcode-builder/components/nextpage.php:53
|
1212 |
msgid "Yes, update the URL."
|
1213 |
msgstr ""
|
1214 |
|
1215 |
#: admin/shortcode-builder/components/nextpage.php:62
|
1216 |
+
msgid "Page Title Template"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
#: admin/shortcode-builder/components/nextpage.php:63
|
1220 |
msgid ""
|
1221 |
+
"The page title template is used to update the browser title each time a new "
|
1222 |
+
"page is loaded."
|
1223 |
+
msgstr ""
|
1224 |
+
|
1225 |
+
#: admin/shortcode-builder/components/nextpage.php:64
|
1226 |
+
msgid "Page title will NOT be updated if this field remains empty."
|
1227 |
+
msgstr ""
|
1228 |
+
|
1229 |
+
#: admin/shortcode-builder/components/nextpage.php:72
|
1230 |
+
msgid "Template Tags"
|
1231 |
+
msgstr ""
|
1232 |
+
|
1233 |
+
#: admin/shortcode-builder/components/nextpage.php:74
|
1234 |
+
msgid "Current Page Number"
|
1235 |
+
msgstr ""
|
1236 |
+
|
1237 |
+
#: admin/shortcode-builder/components/nextpage.php:75
|
1238 |
+
msgid "Total Number of Pages"
|
1239 |
+
msgstr ""
|
1240 |
+
|
1241 |
+
#: admin/shortcode-builder/components/nextpage.php:76
|
1242 |
+
msgid "Title of Post"
|
1243 |
+
msgstr ""
|
1244 |
+
|
1245 |
+
#: admin/shortcode-builder/components/nextpage.php:77
|
1246 |
+
msgid "Site Title"
|
1247 |
+
msgstr ""
|
1248 |
+
|
1249 |
+
#: admin/shortcode-builder/components/nextpage.php:78
|
1250 |
+
msgid "Site Tagline"
|
1251 |
+
msgstr ""
|
1252 |
+
|
1253 |
+
#: admin/shortcode-builder/components/nextpage.php:89
|
1254 |
+
msgid "Google Analytics"
|
1255 |
+
msgstr ""
|
1256 |
+
|
1257 |
+
#: admin/shortcode-builder/components/nextpage.php:90
|
1258 |
+
msgid ""
|
1259 |
"You must have a reference to your Google Analytics tracking code already on "
|
1260 |
"the page."
|
1261 |
msgstr ""
|
1262 |
|
1263 |
+
#: admin/shortcode-builder/components/nextpage.php:92
|
1264 |
msgid "Each time a page is loaded it will count as a pageview."
|
1265 |
msgstr ""
|
1266 |
|
1267 |
+
#: admin/shortcode-builder/components/nextpage.php:99
|
1268 |
msgid "Yes, send pageviews to Google Analytics."
|
1269 |
msgstr ""
|
1270 |
|
1271 |
+
#: admin/shortcode-builder/components/nextpage.php:108
|
1272 |
msgid "Scroll to Page"
|
1273 |
msgstr ""
|
1274 |
|
1275 |
+
#: admin/shortcode-builder/components/nextpage.php:110
|
1276 |
msgid "Scroll users automatically to the next page on 'Load More' action."
|
1277 |
msgstr ""
|
1278 |
|
1279 |
+
#: admin/shortcode-builder/components/nextpage.php:116
|
1280 |
#: admin/shortcode-builder/components/paging.php:62
|
1281 |
+
#: admin/shortcode-builder/shortcode-builder.php:370
|
1282 |
msgid "Enable Scrolling"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
+
#: admin/shortcode-builder/components/nextpage.php:125
|
1286 |
msgid ""
|
1287 |
"The scrolltop position of the browser window (used with scrolling and fwd/"
|
1288 |
"back browser buttons)."
|
1289 |
msgstr ""
|
1290 |
|
1291 |
+
#: admin/shortcode-builder/components/nextpage.php:134
|
1292 |
msgid ""
|
1293 |
"You must add the Next Page shortcode directly to your template file using "
|
1294 |
"the <a href=\"https://developer.wordpress.org/reference/functions/"
|
1340 |
msgstr ""
|
1341 |
|
1342 |
#: admin/shortcode-builder/components/paging.php:105
|
1343 |
+
#: core/classes/class-alm-noscript.php:159
|
1344 |
msgid "First Page"
|
1345 |
msgstr ""
|
1346 |
|
1354 |
msgstr ""
|
1355 |
|
1356 |
#: admin/shortcode-builder/components/paging.php:119
|
1357 |
+
#: core/classes/class-alm-noscript.php:177
|
1358 |
msgid "Last Page"
|
1359 |
msgstr ""
|
1360 |
|
1452 |
msgstr ""
|
1453 |
|
1454 |
#: admin/shortcode-builder/components/rest-api.php:86
|
1455 |
+
#: admin/shortcode-builder/components/single-post.php:155
|
1456 |
+
#: admin/shortcode-builder/components/single-post.php:204
|
1457 |
#: admin/shortcode-builder/shortcode-builder.php:196
|
1458 |
#: admin/shortcode-builder/shortcode-builder.php:210
|
1459 |
#: admin/shortcode-builder/shortcode-builder.php:233
|
1460 |
+
#: admin/shortcode-builder/shortcode-builder.php:704
|
1461 |
+
#: admin/shortcode-builder/shortcode-builder.php:891
|
1462 |
+
#: admin/shortcode-builder/shortcode-builder.php:985
|
1463 |
+
#: admin/shortcode-builder/shortcode-builder.php:1128
|
1464 |
+
#: admin/shortcode-builder/shortcode-builder.php:1169
|
1465 |
+
#: admin/shortcode-builder/shortcode-builder.php:1198
|
1466 |
+
#: admin/shortcode-builder/shortcode-builder.php:1229
|
1467 |
msgid "View Example"
|
1468 |
msgstr ""
|
1469 |
|
1498 |
msgid "Enable the infinite scrolling of single posts."
|
1499 |
msgstr ""
|
1500 |
|
1501 |
+
#: admin/shortcode-builder/components/single-post.php:47
|
1502 |
msgid ""
|
1503 |
"Repeater Templates are not required when using the Target implementation."
|
1504 |
msgstr ""
|
1505 |
|
1506 |
+
#: admin/shortcode-builder/components/single-post.php:48
|
1507 |
msgid ""
|
1508 |
"Enter the ID or classname of HTML element that wraps your single post "
|
1509 |
"content."
|
1510 |
msgstr ""
|
1511 |
|
1512 |
+
#: admin/shortcode-builder/components/single-post.php:50
|
1513 |
msgid "View Guide"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
+
#: admin/shortcode-builder/components/single-post.php:61
|
1517 |
msgid "Post Ordering"
|
1518 |
msgstr ""
|
1519 |
|
1520 |
+
#: admin/shortcode-builder/components/single-post.php:61
|
1521 |
msgid ""
|
1522 |
"By default, the Single Posts add-on will use the core WordPress "
|
1523 |
"`get_previous_post` function, but you can adjust that here."
|
1524 |
msgstr ""
|
1525 |
|
1526 |
+
#: admin/shortcode-builder/components/single-post.php:62
|
1527 |
msgid "Select the posts loading order."
|
1528 |
msgstr ""
|
1529 |
|
1530 |
+
#: admin/shortcode-builder/components/single-post.php:68
|
1531 |
msgid "Previous Post (by date DESC)"
|
1532 |
msgstr ""
|
1533 |
|
1534 |
+
#: admin/shortcode-builder/components/single-post.php:69
|
1535 |
msgid "Next Post (by date ASC)"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
+
#: admin/shortcode-builder/components/single-post.php:70
|
1539 |
+
#: admin/shortcode-builder/components/single-post.php:87
|
1540 |
msgid "Latest Post (Start from most recent)"
|
1541 |
msgstr ""
|
1542 |
|
1543 |
+
#: admin/shortcode-builder/components/single-post.php:71
|
1544 |
msgid "Post IDs (Array)"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
+
#: admin/shortcode-builder/components/single-post.php:72
|
1548 |
msgid "Custom Query"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: admin/shortcode-builder/components/single-post.php:81
|
1552 |
msgid "Custom Query Order"
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: admin/shortcode-builder/components/single-post.php:82
|
1556 |
msgid "Select the post ordering of the custom query."
|
1557 |
msgstr ""
|
1558 |
|
1559 |
+
#: admin/shortcode-builder/components/single-post.php:86
|
1560 |
msgid "Previous Post (Continue by date DESC)"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
+
#: admin/shortcode-builder/components/single-post.php:96
|
1564 |
msgid "Post ID Array"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
+
#: admin/shortcode-builder/components/single-post.php:97
|
1568 |
msgid "A comma separated list of post ID's to query by order."
|
1569 |
msgstr ""
|
1570 |
|
1571 |
+
#: admin/shortcode-builder/components/single-post.php:110
|
1572 |
#: admin/shortcode-builder/components/term-query.php:39
|
1573 |
+
#: admin/shortcode-builder/shortcode-builder.php:1068
|
1574 |
msgid "Taxonomy"
|
1575 |
msgstr ""
|
1576 |
|
1577 |
+
#: admin/shortcode-builder/components/single-post.php:110
|
1578 |
msgid ""
|
1579 |
"Selecting a taxonomy means only previous posts from the same taxonomy term "
|
1580 |
"will be returned. If a post has multiple terms attached, each term will be "
|
1581 |
"considered using an OR relationship query."
|
1582 |
msgstr ""
|
1583 |
|
1584 |
+
#: admin/shortcode-builder/components/single-post.php:111
|
1585 |
msgid "Query previous posts from the same taxonomy term(s)."
|
1586 |
msgstr ""
|
1587 |
|
1588 |
+
#: admin/shortcode-builder/components/single-post.php:124
|
1589 |
#: admin/shortcode-builder/includes/tax-query-options.php:5
|
1590 |
#: admin/shortcode-builder/includes/tax-query-options.php:62
|
1591 |
#: admin/shortcode-builder/includes/tax-query-options.php:105
|
1592 |
msgid "Select Taxonomy"
|
1593 |
msgstr ""
|
1594 |
|
1595 |
+
#: admin/shortcode-builder/components/single-post.php:125
|
1596 |
#: admin/shortcode-builder/components/term-query.php:45
|
1597 |
+
#: admin/shortcode-builder/shortcode-builder.php:884
|
1598 |
msgid "Category"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
+
#: admin/shortcode-builder/components/single-post.php:126
|
1602 |
#: admin/shortcode-builder/components/term-query.php:46
|
1603 |
+
#: admin/shortcode-builder/shortcode-builder.php:977
|
1604 |
msgid "Tag"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
+
#: admin/shortcode-builder/components/single-post.php:140
|
1608 |
msgid "Excluded Terms "
|
1609 |
msgstr ""
|
1610 |
|
1611 |
+
#: admin/shortcode-builder/components/single-post.php:140
|
1612 |
msgid "A comma-separated list of excluded terms by ID."
|
1613 |
msgstr ""
|
1614 |
|
1615 |
+
#: admin/shortcode-builder/components/single-post.php:141
|
1616 |
msgid "Exclude posts by term ID from the previous post query."
|
1617 |
msgstr ""
|
1618 |
|
1619 |
+
#: admin/shortcode-builder/components/single-post.php:153
|
1620 |
+
msgid "Post Preview"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
+
#: admin/shortcode-builder/components/single-post.php:154
|
1624 |
msgid ""
|
1625 |
+
"Show a preview of Ajax loaded posts and have the user click to load the "
|
1626 |
+
"remainder of the post."
|
|
|
|
|
|
|
|
|
1627 |
msgstr ""
|
1628 |
|
1629 |
#: admin/shortcode-builder/components/single-post.php:178
|
1630 |
+
msgid "Button Label"
|
1631 |
msgstr ""
|
1632 |
|
1633 |
#: admin/shortcode-builder/components/single-post.php:179
|
1634 |
+
msgid "Enter a label for the preview button."
|
1635 |
+
msgstr ""
|
1636 |
+
|
1637 |
+
#: admin/shortcode-builder/components/single-post.php:189
|
1638 |
+
#: admin/shortcode-builder/components/single-post.php:251
|
1639 |
+
msgid "Height"
|
1640 |
+
msgstr ""
|
1641 |
+
|
1642 |
+
#: admin/shortcode-builder/components/single-post.php:190
|
1643 |
+
msgid "Set the initial height of the preview in pixels."
|
1644 |
+
msgstr ""
|
1645 |
+
|
1646 |
+
#: admin/shortcode-builder/components/single-post.php:202
|
1647 |
+
msgid "Reading Progress Bar"
|
1648 |
+
msgstr ""
|
1649 |
+
|
1650 |
+
#: admin/shortcode-builder/components/single-post.php:203
|
1651 |
msgid ""
|
1652 |
"Display a reading progress bar indicator at the top or bottom of the browser "
|
1653 |
"window."
|
1654 |
msgstr ""
|
1655 |
|
1656 |
+
#: admin/shortcode-builder/components/single-post.php:230
|
1657 |
msgid "Position"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
+
#: admin/shortcode-builder/components/single-post.php:231
|
1661 |
msgid "Select the window position of the progress bar."
|
1662 |
msgstr ""
|
1663 |
|
1664 |
+
#: admin/shortcode-builder/components/single-post.php:238
|
1665 |
msgid "Top"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
+
#: admin/shortcode-builder/components/single-post.php:242
|
1669 |
msgid "Bottom"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
+
#: admin/shortcode-builder/components/single-post.php:252
|
|
|
|
|
|
|
|
|
1673 |
msgid "Select the height of the progress bar in pixels."
|
1674 |
msgstr ""
|
1675 |
|
1676 |
+
#: admin/shortcode-builder/components/single-post.php:263
|
1677 |
msgid "Colors"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
+
#: admin/shortcode-builder/components/single-post.php:264
|
1681 |
msgid "Enter the hex color values of the reading progress bar"
|
1682 |
msgstr ""
|
1683 |
|
1684 |
+
#: admin/shortcode-builder/components/single-post.php:265
|
1685 |
+
#: admin/shortcode-builder/shortcode-builder.php:730
|
1686 |
msgid "Default:"
|
1687 |
msgstr ""
|
1688 |
|
1689 |
+
#: admin/shortcode-builder/components/single-post.php:272
|
1690 |
msgid "Foreground Color:"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
+
#: admin/shortcode-builder/components/single-post.php:279
|
1694 |
msgid "Background Color:"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
+
#: admin/shortcode-builder/components/single-post.php:279
|
1698 |
msgid "Leave empty for a transparent background"
|
1699 |
msgstr ""
|
1700 |
|
1701 |
+
#: admin/shortcode-builder/components/single-post.php:302
|
1702 |
+
msgid "Elementor"
|
1703 |
+
msgstr ""
|
1704 |
+
|
1705 |
+
#: admin/shortcode-builder/components/single-post.php:303
|
1706 |
+
msgid ""
|
1707 |
+
"Set Elementor <b>true</b> if you are using Elementor templates to build "
|
1708 |
+
"single posts."
|
1709 |
+
msgstr ""
|
1710 |
+
|
1711 |
+
#: admin/shortcode-builder/components/single-post.php:304
|
1712 |
+
msgid "View Blog Post"
|
1713 |
+
msgstr ""
|
1714 |
+
|
1715 |
+
#: admin/shortcode-builder/components/single-post.php:326
|
1716 |
msgid ""
|
1717 |
"You must add the Single Post shortcode directly to your single template file "
|
1718 |
"using the <a href=\"https://developer.wordpress.org/reference/functions/"
|
1772 |
msgstr ""
|
1773 |
|
1774 |
#: admin/shortcode-builder/components/users.php:56
|
1775 |
+
#: admin/shortcode-builder/shortcode-builder.php:888
|
1776 |
+
#: admin/shortcode-builder/shortcode-builder.php:981
|
1777 |
+
#: admin/shortcode-builder/shortcode-builder.php:1216
|
1778 |
msgid "Include"
|
1779 |
msgstr ""
|
1780 |
|
1783 |
msgstr ""
|
1784 |
|
1785 |
#: admin/shortcode-builder/components/users.php:70
|
1786 |
+
#: admin/shortcode-builder/shortcode-builder.php:935
|
1787 |
+
#: admin/shortcode-builder/shortcode-builder.php:1030
|
1788 |
+
#: admin/shortcode-builder/shortcode-builder.php:1227
|
1789 |
msgid "Exclude"
|
1790 |
msgstr ""
|
1791 |
|
1810 |
msgstr ""
|
1811 |
|
1812 |
#: admin/shortcode-builder/components/users.php:102
|
1813 |
+
#: admin/shortcode-builder/shortcode-builder.php:1272
|
1814 |
msgid "Order"
|
1815 |
msgstr ""
|
1816 |
|
1817 |
#: admin/shortcode-builder/components/users.php:109
|
1818 |
+
#: admin/shortcode-builder/shortcode-builder.php:1279
|
1819 |
msgid "Order By"
|
1820 |
msgstr ""
|
1821 |
|
1868 |
msgstr ""
|
1869 |
|
1870 |
#: admin/shortcode-builder/includes/tax-query-options.php:48
|
1871 |
+
#: admin/shortcode-builder/shortcode-builder.php:1103
|
1872 |
msgid "Relation:"
|
1873 |
msgstr ""
|
1874 |
|
1907 |
|
1908 |
#: admin/shortcode-builder/shortcode-builder.php:66
|
1909 |
#: admin/views/repeater-templates.php:151
|
1910 |
+
#: admin/views/repeater-templates.php:502
|
1911 |
msgid "Learn More"
|
1912 |
msgstr ""
|
1913 |
|
2020 |
"e.g. <div class='no-results'>Sorry, nothing found in this query</div>"
|
2021 |
msgstr ""
|
2022 |
|
2023 |
+
#: admin/shortcode-builder/shortcode-builder.php:280
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024 |
msgid "Template Selection"
|
2025 |
msgstr ""
|
2026 |
|
2027 |
+
#: admin/shortcode-builder/shortcode-builder.php:285
|
2028 |
msgid "Repeater Template"
|
2029 |
msgstr ""
|
2030 |
|
2031 |
+
#: admin/shortcode-builder/shortcode-builder.php:287
|
2032 |
msgid ""
|
2033 |
"Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
|
2034 |
"\"_parent\">Repeater Template</a> you would like to use."
|
2035 |
msgstr ""
|
2036 |
|
2037 |
+
#: admin/shortcode-builder/shortcode-builder.php:321
|
2038 |
msgid "Button Labels"
|
2039 |
msgstr ""
|
2040 |
|
2041 |
+
#: admin/shortcode-builder/shortcode-builder.php:326
|
2042 |
msgid "Label"
|
2043 |
msgstr ""
|
2044 |
|
2045 |
+
#: admin/shortcode-builder/shortcode-builder.php:327
|
2046 |
msgid "Customize the text of the <em>Load More</em> button."
|
2047 |
msgstr ""
|
2048 |
|
2049 |
+
#: admin/shortcode-builder/shortcode-builder.php:338
|
2050 |
msgid "Loading Label"
|
2051 |
msgstr ""
|
2052 |
|
2053 |
+
#: admin/shortcode-builder/shortcode-builder.php:338
|
2054 |
msgid "Leave field empty to not update button text while loading content"
|
2055 |
msgstr ""
|
2056 |
|
2057 |
+
#: admin/shortcode-builder/shortcode-builder.php:339
|
2058 |
msgid ""
|
2059 |
"Update the text of the <em>Load More</em> button while content is loading."
|
2060 |
msgstr ""
|
2061 |
|
2062 |
+
#: admin/shortcode-builder/shortcode-builder.php:343
|
2063 |
msgid "Loading Posts..."
|
2064 |
msgstr ""
|
2065 |
|
2066 |
+
#: admin/shortcode-builder/shortcode-builder.php:350
|
2067 |
msgid "Done Label"
|
2068 |
msgstr ""
|
2069 |
|
2070 |
+
#: admin/shortcode-builder/shortcode-builder.php:350
|
2071 |
msgid "Leave field empty to not update button text"
|
2072 |
msgstr ""
|
2073 |
|
2074 |
+
#: admin/shortcode-builder/shortcode-builder.php:351
|
2075 |
msgid ""
|
2076 |
"Update the text of the <em>Load More</em> button when no content remains to "
|
2077 |
"be loaded."
|
2078 |
msgstr ""
|
2079 |
|
2080 |
+
#: admin/shortcode-builder/shortcode-builder.php:355
|
2081 |
msgid "No Posts Remain..."
|
2082 |
msgstr ""
|
2083 |
|
2084 |
+
#: admin/shortcode-builder/shortcode-builder.php:366
|
2085 |
msgid "Scrolling"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
+
#: admin/shortcode-builder/shortcode-builder.php:371
|
2089 |
msgid "Load more posts as the user scrolls the page."
|
2090 |
msgstr ""
|
2091 |
|
2092 |
+
#: admin/shortcode-builder/shortcode-builder.php:397
|
2093 |
msgid "Scroll Distance"
|
2094 |
msgstr ""
|
2095 |
|
2096 |
+
#: admin/shortcode-builder/shortcode-builder.php:397
|
2097 |
msgid ""
|
2098 |
"Distance is based on the position of the loading button from the bottom of "
|
2099 |
"the screen"
|
2100 |
msgstr ""
|
2101 |
|
2102 |
+
#: admin/shortcode-builder/shortcode-builder.php:398
|
2103 |
msgid ""
|
2104 |
"The distance from the bottom of the screen to trigger loading of posts. "
|
2105 |
"(Default = 100)"
|
2106 |
msgstr ""
|
2107 |
|
2108 |
+
#: admin/shortcode-builder/shortcode-builder.php:399
|
2109 |
msgid "Pro-tip"
|
2110 |
msgstr ""
|
2111 |
|
2112 |
+
#: admin/shortcode-builder/shortcode-builder.php:399
|
2113 |
msgid ""
|
2114 |
"Use a negative number (-200) to trigger a post load before the button is in "
|
2115 |
"view"
|
2116 |
msgstr ""
|
2117 |
|
2118 |
+
#: admin/shortcode-builder/shortcode-builder.php:417
|
2119 |
msgid "Maximum Pages"
|
2120 |
msgstr ""
|
2121 |
|
2122 |
+
#: admin/shortcode-builder/shortcode-builder.php:417
|
2123 |
msgid "If using an Infinite Scroll button style you should set this to 0"
|
2124 |
msgstr ""
|
2125 |
|
2126 |
+
#: admin/shortcode-builder/shortcode-builder.php:418
|
2127 |
msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
|
2128 |
msgstr ""
|
2129 |
|
2130 |
+
#: admin/shortcode-builder/shortcode-builder.php:430
|
2131 |
msgid "Pause Override"
|
2132 |
msgstr ""
|
2133 |
|
2134 |
+
#: admin/shortcode-builder/shortcode-builder.php:431
|
2135 |
msgid ""
|
2136 |
"Override the <em>Pause</em> parameter and trigger the initial loading of "
|
2137 |
"posts on scroll."
|
2138 |
msgstr ""
|
2139 |
|
2140 |
+
#: admin/shortcode-builder/shortcode-builder.php:453
|
2141 |
msgid "Scroll Container"
|
2142 |
msgstr ""
|
2143 |
|
2144 |
+
#: admin/shortcode-builder/shortcode-builder.php:454
|
2145 |
msgid "Confine Ajax Load More scrolling to a parent container element."
|
2146 |
msgstr ""
|
2147 |
|
2148 |
+
#: admin/shortcode-builder/shortcode-builder.php:478
|
2149 |
msgid "Container Element"
|
2150 |
msgstr ""
|
2151 |
|
2152 |
+
#: admin/shortcode-builder/shortcode-builder.php:479
|
2153 |
msgid ""
|
2154 |
"Enter the ID or classname of the parent container element to be used as the "
|
2155 |
"scrolling container."
|
2156 |
msgstr ""
|
2157 |
|
2158 |
+
#: admin/shortcode-builder/shortcode-builder.php:491
|
2159 |
msgid "Scroll Direction"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
+
#: admin/shortcode-builder/shortcode-builder.php:491
|
2163 |
msgid "Scroll Direction only works when using a Scroll Container."
|
2164 |
msgstr ""
|
2165 |
|
2166 |
+
#: admin/shortcode-builder/shortcode-builder.php:492
|
2167 |
msgid "Select the direction Ajax Load More should scroll to load posts."
|
2168 |
msgstr ""
|
2169 |
|
2170 |
+
#: admin/shortcode-builder/shortcode-builder.php:498
|
2171 |
msgid "Vertical"
|
2172 |
msgstr ""
|
2173 |
|
2174 |
+
#: admin/shortcode-builder/shortcode-builder.php:502
|
2175 |
msgid "Horizontal"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
+
#: admin/shortcode-builder/shortcode-builder.php:517
|
2179 |
msgid "Transition"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
+
#: admin/shortcode-builder/shortcode-builder.php:522
|
2183 |
msgid "Type"
|
2184 |
msgstr ""
|
2185 |
|
2186 |
+
#: admin/shortcode-builder/shortcode-builder.php:523
|
2187 |
msgid "Select a loading transition style."
|
2188 |
msgstr ""
|
2189 |
|
2190 |
+
#: admin/shortcode-builder/shortcode-builder.php:528
|
2191 |
msgid "Fade In"
|
2192 |
msgstr ""
|
2193 |
|
2194 |
+
#: admin/shortcode-builder/shortcode-builder.php:529
|
2195 |
msgid "Masonry"
|
2196 |
msgstr ""
|
2197 |
|
2198 |
+
#: admin/shortcode-builder/shortcode-builder.php:543
|
2199 |
msgid "Masonry Options"
|
2200 |
msgstr ""
|
2201 |
|
2202 |
+
#: admin/shortcode-builder/shortcode-builder.php:543
|
2203 |
msgid "Ajax Load More does not support all available Masonry options"
|
2204 |
msgstr ""
|
2205 |
|
2206 |
+
#: admin/shortcode-builder/shortcode-builder.php:544
|
2207 |
msgid ""
|
2208 |
"The following Masonry <a href=\"https://masonry.desandro.com/options.html\" "
|
2209 |
"target=\"_blank\">options</a> are supported by Ajax Load More."
|
2210 |
msgstr ""
|
2211 |
|
2212 |
+
#: admin/shortcode-builder/shortcode-builder.php:550
|
2213 |
msgid "Item Selector"
|
2214 |
msgstr ""
|
2215 |
|
2216 |
+
#: admin/shortcode-builder/shortcode-builder.php:550
|
2217 |
msgid ""
|
2218 |
"Item Selector is required for Masonry to target each element loaded with "
|
2219 |
"Ajax."
|
2220 |
msgstr ""
|
2221 |
|
2222 |
+
#: admin/shortcode-builder/shortcode-builder.php:551
|
2223 |
msgid "Enter the target classname of each masonry item."
|
2224 |
msgstr ""
|
2225 |
|
2226 |
+
#: admin/shortcode-builder/shortcode-builder.php:565
|
2227 |
msgid "Column Width"
|
2228 |
msgstr ""
|
2229 |
|
2230 |
+
#: admin/shortcode-builder/shortcode-builder.php:565
|
2231 |
msgid ""
|
2232 |
"If columnWidth is not set, Masonry will use the outer width of the first "
|
2233 |
"Item Selector."
|
2234 |
msgstr ""
|
2235 |
|
2236 |
+
#: admin/shortcode-builder/shortcode-builder.php:566
|
2237 |
msgid ""
|
2238 |
"Enter the <a href=\"https://masonry.desandro.com/options.html#columnwidth\" "
|
2239 |
"target=\"_blank\">columnWidth</a> of the masonry items."
|
2240 |
msgstr ""
|
2241 |
|
2242 |
+
#: admin/shortcode-builder/shortcode-builder.php:579
|
2243 |
msgid "Animation Type"
|
2244 |
msgstr ""
|
2245 |
|
2246 |
+
#: admin/shortcode-builder/shortcode-builder.php:579
|
2247 |
msgid "All Masonry animations include a fade-in effect as items are loaded."
|
2248 |
msgstr ""
|
2249 |
|
2250 |
+
#: admin/shortcode-builder/shortcode-builder.php:580
|
2251 |
msgid "Select a loading transition for Masonry items."
|
2252 |
msgstr ""
|
2253 |
|
2254 |
+
#: admin/shortcode-builder/shortcode-builder.php:588
|
2255 |
msgid "Default (Zoom)"
|
2256 |
msgstr ""
|
2257 |
|
2258 |
+
#: admin/shortcode-builder/shortcode-builder.php:589
|
2259 |
msgid "Items scale up from 50% to 100% size on load."
|
2260 |
msgstr ""
|
2261 |
|
2262 |
+
#: admin/shortcode-builder/shortcode-builder.php:595
|
2263 |
msgid "Zoom Out"
|
2264 |
msgstr ""
|
2265 |
|
2266 |
+
#: admin/shortcode-builder/shortcode-builder.php:596
|
2267 |
msgid "Items scale down from 125% to 100% size on load."
|
2268 |
msgstr ""
|
2269 |
|
2270 |
+
#: admin/shortcode-builder/shortcode-builder.php:602
|
2271 |
msgid "Slide Up"
|
2272 |
msgstr ""
|
2273 |
|
2274 |
+
#: admin/shortcode-builder/shortcode-builder.php:603
|
2275 |
msgid "Items animate up as they are loaded into view."
|
2276 |
msgstr ""
|
2277 |
|
2278 |
+
#: admin/shortcode-builder/shortcode-builder.php:609
|
2279 |
msgid "Slide Down"
|
2280 |
msgstr ""
|
2281 |
|
2282 |
+
#: admin/shortcode-builder/shortcode-builder.php:610
|
2283 |
msgid "Items animate down when loaded into view."
|
2284 |
msgstr ""
|
2285 |
|
2286 |
+
#: admin/shortcode-builder/shortcode-builder.php:626
|
2287 |
msgid "Horizontal Order"
|
2288 |
msgstr ""
|
2289 |
|
2290 |
+
#: admin/shortcode-builder/shortcode-builder.php:627
|
2291 |
msgid "Lays out items to maintain left-to-right order."
|
2292 |
msgstr ""
|
2293 |
|
2294 |
+
#: admin/shortcode-builder/shortcode-builder.php:647
|
2295 |
msgid ""
|
2296 |
"Don't see your favorite Masonry option listed? You can always add your own!"
|
2297 |
msgstr ""
|
2298 |
|
2299 |
+
#: admin/shortcode-builder/shortcode-builder.php:662
|
2300 |
msgid "Transition Container Classes"
|
2301 |
msgstr ""
|
2302 |
|
2303 |
+
#: admin/shortcode-builder/shortcode-builder.php:662
|
2304 |
msgid "This setting is not available with the Single Post or Next Page add-ons"
|
2305 |
msgstr ""
|
2306 |
|
2307 |
+
#: admin/shortcode-builder/shortcode-builder.php:663
|
2308 |
msgid "Add custom classes to the <span>.alm-reveal</span> loading container"
|
2309 |
msgstr ""
|
2310 |
|
2311 |
+
#: admin/shortcode-builder/shortcode-builder.php:675
|
2312 |
msgid "Transition Container"
|
2313 |
msgstr ""
|
2314 |
|
2315 |
+
#: admin/shortcode-builder/shortcode-builder.php:675
|
2316 |
msgid ""
|
2317 |
"Removing the transition container may have undesired results and is not "
|
2318 |
"recommended"
|
2319 |
msgstr ""
|
2320 |
|
2321 |
+
#: admin/shortcode-builder/shortcode-builder.php:676
|
2322 |
msgid ""
|
2323 |
"Remove the <span>.alm-reveal</span> loading container from Ajax Load More"
|
2324 |
msgstr ""
|
2325 |
|
2326 |
+
#: admin/shortcode-builder/shortcode-builder.php:683
|
2327 |
msgid "Remove Container"
|
2328 |
msgstr ""
|
2329 |
|
2330 |
+
#: admin/shortcode-builder/shortcode-builder.php:699
|
2331 |
msgid "Progress Bar"
|
2332 |
msgstr ""
|
2333 |
|
2334 |
+
#: admin/shortcode-builder/shortcode-builder.php:703
|
2335 |
msgid ""
|
2336 |
"Display progress bar indicator at the top of the window while loading Ajax "
|
2337 |
"content."
|
2338 |
msgstr ""
|
2339 |
|
2340 |
+
#: admin/shortcode-builder/shortcode-builder.php:728
|
2341 |
msgid "Color"
|
2342 |
msgstr ""
|
2343 |
|
2344 |
+
#: admin/shortcode-builder/shortcode-builder.php:729
|
2345 |
msgid "Enter the hex color of the progress bar"
|
2346 |
msgstr ""
|
2347 |
|
2348 |
+
#: admin/shortcode-builder/shortcode-builder.php:756
|
2349 |
msgid "Query Parameters"
|
2350 |
msgstr ""
|
2351 |
|
2352 |
+
#: admin/shortcode-builder/shortcode-builder.php:759
|
2353 |
msgid ""
|
2354 |
"Query Parameters allow you build a custom <b>WP_Query</b> based on Ajax Load "
|
2355 |
"More shortcode values."
|
2356 |
msgstr ""
|
2357 |
|
2358 |
+
#: admin/shortcode-builder/shortcode-builder.php:759
|
2359 |
msgid ""
|
2360 |
"When using Ajax Load More add-ons or extensions not all Query Parameters "
|
2361 |
"will be available in the query."
|
2362 |
msgstr ""
|
2363 |
|
2364 |
+
#: admin/shortcode-builder/shortcode-builder.php:763
|
2365 |
msgid "Posts Per Page"
|
2366 |
msgstr ""
|
2367 |
|
2368 |
+
#: admin/shortcode-builder/shortcode-builder.php:767
|
2369 |
msgid "Select the number of posts to load with each Ajax request."
|
2370 |
msgstr ""
|
2371 |
|
2372 |
+
#: admin/shortcode-builder/shortcode-builder.php:787
|
2373 |
msgid "Post Type"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: admin/shortcode-builder/shortcode-builder.php:792
|
2377 |
msgid "Select the Post Types to include in this Ajax Load More query."
|
2378 |
msgstr ""
|
2379 |
|
2380 |
+
#: admin/shortcode-builder/shortcode-builder.php:806
|
2381 |
msgid "Any"
|
2382 |
msgstr ""
|
2383 |
|
2384 |
+
#: admin/shortcode-builder/shortcode-builder.php:817
|
2385 |
msgid "Sticky Posts"
|
2386 |
msgstr ""
|
2387 |
|
2388 |
+
#: admin/shortcode-builder/shortcode-builder.php:817
|
2389 |
msgid "Sticky posts are only available for Posts"
|
2390 |
msgstr ""
|
2391 |
|
2392 |
+
#: admin/shortcode-builder/shortcode-builder.php:818
|
2393 |
msgid ""
|
2394 |
"Preserve the ordering of sticky posts by having them appear first in the "
|
2395 |
"Ajax listing."
|
2396 |
msgstr ""
|
2397 |
|
2398 |
+
#: admin/shortcode-builder/shortcode-builder.php:825
|
2399 |
msgid "Enable Sticky Posts"
|
2400 |
msgstr ""
|
2401 |
|
2402 |
+
#: admin/shortcode-builder/shortcode-builder.php:848
|
2403 |
msgid "Post Format"
|
2404 |
msgstr ""
|
2405 |
|
2406 |
+
#: admin/shortcode-builder/shortcode-builder.php:852
|
2407 |
msgid "Select a Post Format to query."
|
2408 |
msgstr ""
|
2409 |
|
2410 |
+
#: admin/shortcode-builder/shortcode-builder.php:855
|
2411 |
msgid "Select Post Format"
|
2412 |
msgstr ""
|
2413 |
|
2414 |
+
#: admin/shortcode-builder/shortcode-builder.php:856
|
2415 |
msgid "Standard"
|
2416 |
msgstr ""
|
2417 |
|
2418 |
+
#: admin/shortcode-builder/shortcode-builder.php:888
|
2419 |
msgid "Get posts by category using a category_name or category__and query"
|
2420 |
msgstr ""
|
2421 |
|
2422 |
+
#: admin/shortcode-builder/shortcode-builder.php:889
|
2423 |
msgid "Comma separated list of categories to include by"
|
2424 |
msgstr ""
|
2425 |
|
2426 |
+
#: admin/shortcode-builder/shortcode-builder.php:889
|
2427 |
+
#: admin/shortcode-builder/shortcode-builder.php:982
|
2428 |
msgid "slug"
|
2429 |
msgstr ""
|
2430 |
|
2431 |
+
#: admin/shortcode-builder/shortcode-builder.php:925
|
2432 |
+
#: admin/shortcode-builder/shortcode-builder.php:1020
|
2433 |
msgid "What's this"
|
2434 |
msgstr ""
|
2435 |
|
2436 |
+
#: admin/shortcode-builder/shortcode-builder.php:937
|
2437 |
msgid "Comma separated list of categories to exclude by ID."
|
2438 |
msgstr ""
|
2439 |
|
2440 |
+
#: admin/shortcode-builder/shortcode-builder.php:981
|
2441 |
msgid "Get posts by tags using a tag or tag__and query"
|
2442 |
msgstr ""
|
2443 |
|
2444 |
+
#: admin/shortcode-builder/shortcode-builder.php:982
|
2445 |
msgid "Comma separated list of tags to include by"
|
2446 |
msgstr ""
|
2447 |
|
2448 |
+
#: admin/shortcode-builder/shortcode-builder.php:1032
|
2449 |
msgid "Comma separated list of tags to exclude by ID"
|
2450 |
msgstr ""
|
2451 |
|
2452 |
+
#: admin/shortcode-builder/shortcode-builder.php:1072
|
2453 |
msgid "Select a taxonomy then select the terms and an operator."
|
2454 |
msgstr ""
|
2455 |
|
2456 |
+
#: admin/shortcode-builder/shortcode-builder.php:1077
|
2457 |
+
#: admin/shortcode-builder/shortcode-builder.php:1113
|
2458 |
msgid "Add Another"
|
2459 |
msgstr ""
|
2460 |
|
2461 |
+
#: admin/shortcode-builder/shortcode-builder.php:1088
|
2462 |
msgid "Custom Fields (Meta_Query)"
|
2463 |
msgstr ""
|
2464 |
|
2465 |
+
#: admin/shortcode-builder/shortcode-builder.php:1092
|
2466 |
msgid ""
|
2467 |
"Query for <a href=\"https://developer.wordpress.org/reference/classes/"
|
2468 |
"wp_query/#custom-field-post-meta-parameters\" target=\"_blank\">custom "
|
2469 |
"field</a> by entering a custom field key, value and operator."
|
2470 |
msgstr ""
|
2471 |
|
2472 |
+
#: admin/shortcode-builder/shortcode-builder.php:1103
|
2473 |
msgid ""
|
2474 |
"The logical relationship between each custom field when there is more than "
|
2475 |
"one"
|
2476 |
msgstr ""
|
2477 |
|
2478 |
+
#: admin/shortcode-builder/shortcode-builder.php:1123
|
2479 |
msgid "Date"
|
2480 |
msgstr ""
|
2481 |
|
2482 |
+
#: admin/shortcode-builder/shortcode-builder.php:1127
|
2483 |
msgid "Enter a year, month(number) and day to query by date archive."
|
2484 |
msgstr ""
|
2485 |
|
2486 |
+
#: admin/shortcode-builder/shortcode-builder.php:1134
|
2487 |
msgid "Year:"
|
2488 |
msgstr ""
|
2489 |
|
2490 |
+
#: admin/shortcode-builder/shortcode-builder.php:1138
|
2491 |
msgid "Month:"
|
2492 |
msgstr ""
|
2493 |
|
2494 |
+
#: admin/shortcode-builder/shortcode-builder.php:1142
|
2495 |
msgid "Day:"
|
2496 |
msgstr ""
|
2497 |
|
2498 |
+
#: admin/shortcode-builder/shortcode-builder.php:1163
|
2499 |
msgid "Author"
|
2500 |
msgstr ""
|
2501 |
|
2502 |
+
#: admin/shortcode-builder/shortcode-builder.php:1167
|
2503 |
msgid "Select an Author to query(by ID)."
|
2504 |
msgstr ""
|
2505 |
|
2506 |
+
#: admin/shortcode-builder/shortcode-builder.php:1192
|
2507 |
msgid "Search"
|
2508 |
msgstr ""
|
2509 |
|
2510 |
+
#: admin/shortcode-builder/shortcode-builder.php:1196
|
2511 |
msgid "Enter a search term to query."
|
2512 |
msgstr ""
|
2513 |
|
2514 |
+
#: admin/shortcode-builder/shortcode-builder.php:1197
|
2515 |
msgid ""
|
2516 |
"Search uses the default WordPress search, however Ajax Load More does offer "
|
2517 |
"integrations with SearchWP and Relevanssi."
|
2518 |
msgstr ""
|
2519 |
|
2520 |
+
#: admin/shortcode-builder/shortcode-builder.php:1202
|
2521 |
msgid "Enter search term"
|
2522 |
msgstr ""
|
2523 |
|
2524 |
+
#: admin/shortcode-builder/shortcode-builder.php:1212
|
2525 |
msgid "Post Parameters"
|
2526 |
msgstr ""
|
2527 |
|
2528 |
+
#: admin/shortcode-builder/shortcode-builder.php:1217
|
2529 |
msgid "A comma separated list of post ID's to query."
|
2530 |
msgstr ""
|
2531 |
|
2532 |
+
#: admin/shortcode-builder/shortcode-builder.php:1221
|
2533 |
msgid "225, 340, 818, etc..."
|
2534 |
msgstr ""
|
2535 |
|
2536 |
+
#: admin/shortcode-builder/shortcode-builder.php:1228
|
2537 |
msgid "A comma separated list of post ID's to exclude from query."
|
2538 |
msgstr ""
|
2539 |
|
2540 |
+
#: admin/shortcode-builder/shortcode-builder.php:1239
|
2541 |
msgid "Post Status"
|
2542 |
msgstr ""
|
2543 |
|
2544 |
+
#: admin/shortcode-builder/shortcode-builder.php:1239
|
2545 |
msgid ""
|
2546 |
"Post Status parameters are only available for logged in (admin) users. Non "
|
2547 |
"logged in users will only have access to view content in a 'publish' or "
|
2548 |
"'inherit' state."
|
2549 |
msgstr ""
|
2550 |
|
2551 |
+
#: admin/shortcode-builder/shortcode-builder.php:1240
|
2552 |
msgid "Select status of the post."
|
2553 |
msgstr ""
|
2554 |
|
2555 |
+
#: admin/shortcode-builder/shortcode-builder.php:1245
|
2556 |
msgid "Published"
|
2557 |
msgstr ""
|
2558 |
|
2559 |
+
#: admin/shortcode-builder/shortcode-builder.php:1263
|
2560 |
msgid "Ordering"
|
2561 |
msgstr ""
|
2562 |
|
2563 |
+
#: admin/shortcode-builder/shortcode-builder.php:1267
|
2564 |
msgid "Sort posts by Order and Orderby parameters."
|
2565 |
msgstr ""
|
2566 |
|
2567 |
+
#: admin/shortcode-builder/shortcode-builder.php:1302
|
2568 |
msgid "Offset"
|
2569 |
msgstr ""
|
2570 |
|
2571 |
+
#: admin/shortcode-builder/shortcode-builder.php:1306
|
2572 |
msgid "Offset the initial query by <em>'x'</em> number of posts"
|
2573 |
msgstr ""
|
2574 |
|
2575 |
+
#: admin/shortcode-builder/shortcode-builder.php:1320
|
2576 |
msgid "Custom Arguments"
|
2577 |
msgstr ""
|
2578 |
|
2579 |
+
#: admin/shortcode-builder/shortcode-builder.php:1324
|
2580 |
msgid "A semicolon separated list of custom value:pair arguments."
|
2581 |
msgstr ""
|
2582 |
|
2583 |
+
#: admin/shortcode-builder/shortcode-builder.php:1324
|
2584 |
msgid ""
|
2585 |
"Custom Arguments can be used to query by parameters not available in the "
|
2586 |
"Shortcode Builder"
|
2587 |
msgstr ""
|
2588 |
|
2589 |
+
#: admin/shortcode-builder/shortcode-builder.php:1328
|
2590 |
msgid "event_display:upcoming"
|
2591 |
msgstr ""
|
2592 |
|
2593 |
+
#: admin/shortcode-builder/shortcode-builder.php:1345
|
2594 |
msgid "Integrations"
|
2595 |
msgstr ""
|
2596 |
|
2597 |
+
#: admin/shortcode-builder/shortcode-builder.php:1349
|
2598 |
msgid ""
|
2599 |
"Ajax Load More provides integration solutions for popular plugins and core "
|
2600 |
"WP functionality - when selecting an integration, Ajax Load More will "
|
2602 |
"experience for users based on the selected integration."
|
2603 |
msgstr ""
|
2604 |
|
2605 |
+
#: admin/shortcode-builder/shortcode-builder.php:1353
|
2606 |
msgid "Archives"
|
2607 |
msgstr ""
|
2608 |
|
2609 |
+
#: admin/shortcode-builder/shortcode-builder.php:1357
|
2610 |
msgid ""
|
2611 |
"Ajax Load More will automatically create an archive query while viewing site "
|
2612 |
"archives."
|
2613 |
msgstr ""
|
2614 |
|
2615 |
+
#: admin/shortcode-builder/shortcode-builder.php:1358
|
2616 |
msgid ""
|
2617 |
"Taxonomy, category, tag, date (year, month, day), post type and author "
|
2618 |
"archives are currently supported."
|
2619 |
msgstr ""
|
2620 |
|
2621 |
+
#: admin/shortcode-builder/shortcode-builder.php:1376
|
2622 |
msgid ""
|
2623 |
"<b>Note</b>: Do not select Query Parameters other than <b>Posts Per Page</b> "
|
2624 |
"and/or <b>Post Type</b> when using the Archives integration. Ajax Load More "
|
2626 |
"archive page."
|
2627 |
msgstr ""
|
2628 |
|
2629 |
+
#: admin/shortcode-builder/shortcode-builder.php:1387
|
2630 |
msgid ""
|
2631 |
"Ajax Load More will automatically set WooCommerce configuration options."
|
2632 |
msgstr ""
|
2633 |
|
2634 |
+
#: admin/shortcode-builder/shortcode-builder.php:1388
|
2635 |
msgid ""
|
2636 |
"Post type, products per page, container classes, sort order and taxonomy/tag "
|
2637 |
"archive queries will be set on the server side based on your sites "
|
2855 |
msgstr ""
|
2856 |
|
2857 |
#: admin/views/repeater-templates.php:105
|
2858 |
+
#: admin/views/repeater-templates.php:271
|
2859 |
msgid "Location"
|
2860 |
msgstr ""
|
2861 |
|
2869 |
msgid "Manage Settings"
|
2870 |
msgstr ""
|
2871 |
|
2872 |
+
#: admin/views/repeater-templates.php:210
|
2873 |
msgid "Default Template"
|
2874 |
msgstr ""
|
2875 |
|
2876 |
+
#: admin/views/repeater-templates.php:219
|
2877 |
msgid "Template Code:"
|
2878 |
msgstr ""
|
2879 |
|
2880 |
+
#: admin/views/repeater-templates.php:220
|
2881 |
msgid "Enter the PHP and HTML markup for this template."
|
2882 |
msgstr ""
|
2883 |
|
2884 |
+
#: admin/views/repeater-templates.php:253
|
2885 |
msgid "Save Template"
|
2886 |
msgstr ""
|
2887 |
|
2888 |
+
#: admin/views/repeater-templates.php:269
|
2889 |
msgid ""
|
2890 |
"It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
|
2891 |
"load-more/docs/repeater-templates/#default-template\" target=\"_blank"
|
2894 |
"your server."
|
2895 |
msgstr ""
|
2896 |
|
2897 |
+
#: admin/views/repeater-templates.php:280
|
2898 |
msgid ""
|
2899 |
"Repeater Templates editing has been disabled for this instance of Ajax Load "
|
2900 |
"More. To enable the template editing, please remove the "
|
2902 |
"config.php and then re-activate this plugin."
|
2903 |
msgstr ""
|
2904 |
|
2905 |
+
#: admin/views/repeater-templates.php:355
|
2906 |
msgid "Saving template..."
|
2907 |
msgstr ""
|
2908 |
|
2909 |
+
#: admin/views/repeater-templates.php:426
|
2910 |
msgid "Updating template..."
|
2911 |
msgstr ""
|
2912 |
|
2913 |
+
#: admin/views/repeater-templates.php:497
|
2914 |
msgid "What's a Repeater Template?"
|
2915 |
msgstr ""
|
2916 |
|
2917 |
+
#: admin/views/repeater-templates.php:499
|
2918 |
msgid ""
|
2919 |
"A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
|
2920 |
"templates/\" target=\"_blank\">Repeater Template</a> is a snippet of code "
|
2986 |
msgid "Reset"
|
2987 |
msgstr ""
|
2988 |
|
2989 |
+
#: ajax-load-more.php:391
|
2990 |
msgid "Viewing {post_count} of {total_posts} results."
|
2991 |
msgstr ""
|
2992 |
|
2993 |
+
#: ajax-load-more.php:392
|
2994 |
msgid "No results found."
|
2995 |
msgstr ""
|
2996 |
|
2997 |
+
#: core/classes/class-alm-noscript.php:155
|
2998 |
msgid "Pages: "
|
2999 |
msgstr ""
|
3000 |
|