Premium Addons for Elementor - Version 2.1.0

Version Description

  • New: Premium Grid widget.
  • Tweak: Added open marker info container on hover option for Premium Maps Widget.
  • Fix: Demos Links in Readme file.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.9 to 2.1.0

admin/assets/pa-elements-font/css/pa-elements.css CHANGED
@@ -1,13 +1,14 @@
1
  @font-face {
2
  font-family: 'pa-elements';
3
- src: url('../fonts/pa-elements.eot?1dbt8b');
4
- src: url('f../onts/pa-elements.eot?1dbt8b#iefix') format('embedded-opentype'),
5
- url('../fonts/pa-elements.ttf?1dbt8b') format('truetype'),
6
- url('../fonts/pa-elements.woff?1dbt8b') format('woff'),
7
- url('../fonts/pa-elements.svg?1dbt8b#pa-elements') format('svg');
8
  font-weight: normal;
9
  font-style: normal;
10
  }
 
11
  [class^="pa-"], [class*=" pa-"] {
12
  /* use !important to prevent issues with browser extensions that change fonts */
13
  font-family: 'pa-elements' !important;
@@ -22,6 +23,9 @@
22
  -webkit-font-smoothing: antialiased;
23
  -moz-osx-font-smoothing: grayscale;
24
  }
 
 
 
25
  .pa-pricing-table:before {
26
  content: "\e901";
27
  }
@@ -49,6 +53,9 @@
49
  .pa-image-separator:before {
50
  content: "\e90a";
51
  }
 
 
 
52
  .pa-fancy-text:before {
53
  content: "\e90c";
54
  }
1
  @font-face {
2
  font-family: 'pa-elements';
3
+ src: url('../fonts/pa-elements.eot?uo4nkm');
4
+ src: url('../fonts/pa-elements.eot?uo4nkm#iefix') format('embedded-opentype'),
5
+ url('../fonts/pa-elements.ttf?uo4nkm') format('truetype'),
6
+ url('../fonts/pa-elements.woff?uo4nkm') format('woff'),
7
+ url('../fonts/pa-elements.svg?uo4nkm#pa-elements') format('svg');
8
  font-weight: normal;
9
  font-style: normal;
10
  }
11
+
12
  [class^="pa-"], [class*=" pa-"] {
13
  /* use !important to prevent issues with browser extensions that change fonts */
14
  font-family: 'pa-elements' !important;
23
  -webkit-font-smoothing: antialiased;
24
  -moz-osx-font-smoothing: grayscale;
25
  }
26
+ .pa-grid-icon:before {
27
+ content: "\e906";
28
+ }
29
  .pa-pricing-table:before {
30
  content: "\e901";
31
  }
53
  .pa-image-separator:before {
54
  content: "\e90a";
55
  }
56
+ .pa-flip-box:before {
57
+ content: "\e90b";
58
+ }
59
  .pa-fancy-text:before {
60
  content: "\e90c";
61
  }
admin/assets/pa-elements-font/css/pafont.css CHANGED
@@ -1,10 +1,10 @@
1
  @font-face {
2
  font-family: 'pa-elements';
3
- src: url('../fonts/pa-elements.eot?1dbt8b');
4
- src: url('f../onts/pa-elements.eot?1dbt8b#iefix') format('embedded-opentype'),
5
- url('../fonts/pa-elements.ttf?1dbt8b') format('truetype'),
6
- url('../fonts/pa-elements.woff?1dbt8b') format('woff'),
7
- url('../fonts/pa-elements.svg?1dbt8b#pa-elements') format('svg');
8
  font-weight: normal;
9
  font-style: normal;
10
  }
1
  @font-face {
2
  font-family: 'pa-elements';
3
+ src: url('../fonts/pa-elements.eot?uo4nkm');
4
+ src: url('../fonts/pa-elements.eot?uo4nkm#iefix') format('embedded-opentype'),
5
+ url('../fonts/pa-elements.ttf?uo4nkm') format('truetype'),
6
+ url('../fonts/pa-elements.woff?uo4nkm') format('woff'),
7
+ url('../fonts/pa-elements.svg?uo4nkm#pa-elements') format('svg');
8
  font-weight: normal;
9
  font-style: normal;
10
  }
admin/assets/pa-elements-font/fonts/pa-elements.eot CHANGED
Binary file
admin/assets/pa-elements-font/fonts/pa-elements.svg CHANGED
@@ -13,6 +13,7 @@
13
  <glyph unicode="&#xe903;" glyph-name="title" d="M864.893 960h-705.786c-14.195 0-25.696-11.505-25.696-25.696v-117.63c0-14.191 11.502-25.696 25.696-25.696s25.696 11.505 25.696 25.696v91.934h301.501v-921.216h-63.243c-14.195 0-25.696-11.505-25.696-25.696s11.502-25.696 25.696-25.696h177.879c14.195 0 25.696 11.505 25.696 25.696s-11.502 25.696-25.696 25.696h-63.243v921.216h301.501v-91.934c0-14.191 11.502-25.696 25.696-25.696s25.696 11.505 25.696 25.696v117.63c0 14.191-11.502 25.696-25.696 25.696z" />
14
  <glyph unicode="&#xe904;" glyph-name="testimonials" d="M225.963-54.877c-2.513 0-5.058 0.621-7.354 1.862-5.027 2.7-8.161 7.975-8.161 13.653v221.060c-135.82 70.625-210.448 194.281-210.448 349.215 0 239.43 220.098 419.964 512 419.964s512-180.534 512-419.964c0-239.399-220.098-419.933-512-419.933-9.588 0-18.991 0.528-28.424 1.024l-0.621 0.031-248.46-164.336c-2.576-1.707-5.554-2.576-8.533-2.576zM512 919.847c-274.184 0-480.97-167.222-480.97-388.934 0-103.114 35.002-243.34 201.79-325.787 5.275-2.607 8.626-8.006 8.626-13.902v-201.728l228.662 151.242c2.793 1.862 6.175 2.948 9.371 2.544l5.772-0.31c8.875-0.496 17.718-0.962 26.717-0.962 274.184 0 480.97 167.191 480.97 388.903s-206.755 388.934-480.939 388.934z" />
15
  <glyph unicode="&#xe905;" glyph-name="progress-bar" d="M581.983-60.112h-559.638c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h559.638c12.334 0 22.344-10.010 22.344-22.344s-9.966-22.344-22.344-22.344zM1001.656 263.703h-979.311c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h979.311c12.334 0 22.344-10.010 22.344-22.344s-10.010-22.344-22.344-22.344zM581.983 587.563h-559.638c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h559.638c12.334 0 22.344-10.010 22.344-22.344s-9.966-22.344-22.344-22.344zM1001.656 911.423h-979.311c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h979.311c12.334 0 22.344-10.010 22.344-22.344s-10.010-22.344-22.344-22.344z" />
 
16
  <glyph unicode="&#xe907;" glyph-name="person" d="M874.095 810.074c-199.648 199.651-524.504 199.651-724.152 0-70.048-70.048-117.964-158.050-138.571-254.496-20.062-93.91-13.491-191.207 19.003-281.366 3.904-10.827 15.849-16.44 26.672-12.539 10.83 3.904 16.443 15.846 12.539 26.672-29.854 82.837-35.891 172.232-17.454 258.529 18.92 88.558 62.935 169.384 127.283 233.732 183.399 183.399 481.809 183.399 665.208 0 87.339-87.342 136.23-203.441 137.665-326.916 1.435-123.25-44.498-240.276-129.329-329.515-1.004-1.056-1.997-2.119-2.991-3.182-1.758-1.879-3.512-3.762-5.346-5.596-183.399-183.399-481.809-183.399-665.208 0-0.976 0.976-1.928 1.969-2.869 2.963-0.049 1.924-0.090 3.821-0.090 5.689 0 4.196 0.080 8.374 0.233 12.539 0.052 1.393 0.156 2.772 0.226 4.161 0.135 2.768 0.264 5.537 0.465 8.291 0.122 1.643 0.299 3.268 0.445 4.904 0.219 2.483 0.424 4.967 0.695 7.437 0.191 1.744 0.441 3.473 0.66 5.21 0.295 2.345 0.577 4.696 0.924 7.030 0.264 1.778 0.577 3.539 0.868 5.307 0.372 2.275 0.733 4.55 1.153 6.811 0.33 1.789 0.709 3.56 1.070 5.339 0.448 2.22 0.889 4.442 1.382 6.648 0.399 1.789 0.844 3.567 1.271 5.346 0.521 2.171 1.039 4.342 1.601 6.495 0.469 1.785 0.976 3.557 1.469 5.332 0.594 2.126 1.184 4.255 1.82 6.367 0.531 1.771 1.101 3.529 1.664 5.287 0.667 2.088 1.334 4.179 2.039 6.249 0.597 1.747 1.223 3.484 1.848 5.221 0.74 2.056 1.483 4.113 2.261 6.155 0.66 1.726 1.344 3.435 2.032 5.148 0.809 2.018 1.626 4.036 2.473 6.037 0.722 1.702 1.466 3.39 2.216 5.078 0.879 1.983 1.768 3.96 2.685 5.922 0.782 1.671 1.58 3.331 2.39 4.988 0.952 1.949 1.914 3.894 2.9 5.821 0.837 1.632 1.688 3.258 2.553 4.877 1.021 1.917 2.060 3.828 3.119 5.728 0.893 1.598 1.796 3.189 2.713 4.769 1.091 1.879 2.199 3.748 3.328 5.61 0.948 1.563 1.907 3.119 2.879 4.668 1.16 1.841 2.338 3.671 3.532 5.488 1 1.525 2.008 3.043 3.032 4.55 1.226 1.806 2.48 3.591 3.744 5.373 1.052 1.483 2.105 2.963 3.182 4.425 1.296 1.764 2.619 3.512 3.949 5.248 1.101 1.438 2.199 2.876 3.324 4.297 1.365 1.726 2.761 3.432 4.161 5.13 1.143 1.389 2.285 2.779 3.453 4.151 1.438 1.688 2.907 3.352 4.38 5.012 1.188 1.341 2.369 2.685 3.578 4.005 1.507 1.646 3.046 3.262 4.588 4.877 1.23 1.292 2.452 2.588 3.703 3.862 1.58 1.605 3.196 3.175 4.807 4.752 1.264 1.233 2.518 2.48 3.803 3.696 1.66 1.57 3.359 3.102 5.050 4.637 1.292 1.171 2.567 2.355 3.876 3.508 1.747 1.539 3.539 3.032 5.321 4.536 1.306 1.101 2.598 2.22 3.921 3.303 1.844 1.507 3.734 2.97 5.616 4.442 1.313 1.025 2.605 2.074 3.932 3.081 1.983 1.504 4.008 2.956 6.030 4.415 1.275 0.924 2.525 1.869 3.817 2.775 2.23 1.567 4.512 3.077 6.787 4.595 1.122 0.747 2.22 1.521 3.348 2.258 2.966 1.928 5.985 3.793 9.024 5.634 0.472 0.285 0.931 0.59 1.407 0.875 3.515 2.105 7.079 4.147 10.684 6.134 1.233 0.677 2.501 1.313 3.748 1.976 2.393 1.278 4.779 2.567 7.214 3.789 1.56 0.785 3.157 1.521 4.731 2.282 1.987 0.962 3.967 1.935 5.978 2.862 37.773-36.082 88.162-56.509 140.464-56.509s102.695 20.431 140.468 56.516c73.737-34.126 134.087-95.359 166.852-169.821 4.634-10.531 16.926-15.321 27.468-10.684 10.535 4.637 15.318 16.936 10.681 27.468-35.839 81.451-98.231 146.539-177.206 185.83 22.914 33.612 35.311 73.303 35.311 114.261 0 112.25-91.323 203.573-203.573 203.573-11.507 0-20.84-9.333-20.84-20.84s9.333-20.84 20.84-20.84c89.27 0 161.892-72.625 161.892-161.892 0-39.916-14.835-78.353-41.768-108.221-0.003-0.003-0.007-0.007-0.010-0.010-30.753-34.102-74.532-53.661-120.117-53.661s-89.367 19.559-120.117 53.661c-0.003 0.007-0.010 0.010-0.017 0.014-26.929 29.878-41.761 68.304-41.761 108.214 0 43.57 17.058 84.445 48.034 115.088 8.183 8.096 8.253 21.292 0.156 29.472-8.093 8.187-21.288 8.249-29.472 0.16-38.947-38.52-60.399-89.916-60.399-144.705 0-40.917 12.365-80.579 35.241-114.174-0.205-0.101-0.403-0.212-0.604-0.316-1.626-0.813-3.213-1.674-4.825-2.504-2.47-1.278-4.946-2.549-7.381-3.88-1.723-0.938-3.407-1.924-5.113-2.886-2.275-1.289-4.554-2.57-6.797-3.901-1.74-1.035-3.453-2.105-5.175-3.164-2.154-1.327-4.307-2.65-6.429-4.015-1.733-1.115-3.435-2.261-5.148-3.4-2.060-1.372-4.116-2.751-6.144-4.161-1.705-1.188-3.39-2.4-5.075-3.612-1.98-1.428-3.953-2.862-5.901-4.324-1.671-1.254-3.321-2.525-4.967-3.803-1.91-1.483-3.807-2.977-5.682-4.495-1.626-1.313-3.237-2.643-4.842-3.981-1.844-1.542-3.675-3.102-5.488-4.679-1.573-1.365-3.136-2.741-4.686-4.133-1.789-1.608-3.553-3.234-5.307-4.873-1.514-1.414-3.025-2.831-4.519-4.272-1.733-1.674-3.439-3.373-5.141-5.078-1.452-1.455-2.904-2.907-4.328-4.383-1.685-1.747-3.338-3.526-4.988-5.304-1.379-1.487-2.768-2.966-4.123-4.477-1.65-1.834-3.255-3.706-4.866-5.571-1.296-1.501-2.602-2.987-3.873-4.505-1.636-1.956-3.22-3.949-4.814-5.936-1.184-1.48-2.393-2.938-3.557-4.436-1.674-2.154-3.293-4.349-4.918-6.537-1.021-1.375-2.070-2.727-3.070-4.116-2.056-2.848-4.047-5.738-6.019-8.642-0.518-0.764-1.066-1.507-1.58-2.275-2.456-3.668-4.842-7.378-7.166-11.129-0.802-1.296-1.556-2.619-2.341-3.921-1.504-2.497-3.015-4.991-4.463-7.523-0.903-1.58-1.758-3.189-2.636-4.783-1.268-2.292-2.543-4.578-3.758-6.898-0.903-1.719-1.758-3.46-2.636-5.193-1.132-2.237-2.268-4.47-3.355-6.731-0.865-1.799-1.688-3.619-2.525-5.429-1.028-2.233-2.060-4.463-3.046-6.718-0.813-1.858-1.591-3.734-2.372-5.606-0.941-2.247-1.876-4.495-2.772-6.759-0.754-1.903-1.476-3.817-2.199-5.731-0.854-2.272-1.698-4.547-2.511-6.836-0.688-1.942-1.355-3.894-2.015-5.849-0.775-2.296-1.528-4.599-2.258-6.916-0.622-1.969-1.223-3.946-1.813-5.926-0.695-2.338-1.365-4.682-2.015-7.037-0.549-1.987-1.087-3.977-1.605-5.978-0.615-2.379-1.198-4.769-1.768-7.166-0.476-2.001-0.948-3.998-1.389-6.006-0.535-2.428-1.032-4.87-1.518-7.315-0.399-2.001-0.806-4.001-1.174-6.012-0.455-2.494-0.865-5.002-1.271-7.513-0.32-1.98-0.656-3.956-0.945-5.943-0.379-2.591-0.698-5.196-1.025-7.801-0.24-1.931-0.504-3.859-0.716-5.797-0.299-2.73-0.528-5.478-0.768-8.225-0.16-1.83-0.351-3.654-0.483-5.495-0.222-3.067-0.368-6.148-0.518-9.232-0.073-1.532-0.188-3.053-0.243-4.588-0.167-4.627-0.261-9.271-0.261-13.932 0-5.033 0.17-9.792 0.375-15.047 0.049-1.216 0.219-2.397 0.462-3.55 0.021-0.090 0.031-0.181 0.052-0.271 0.257-1.136 0.618-2.226 1.052-3.282 0.042-0.104 0.080-0.208 0.125-0.313 0.448-1.042 0.983-2.035 1.587-2.98 0.076-0.118 0.149-0.236 0.226-0.351 0.622-0.927 1.313-1.799 2.067-2.612 0.056-0.059 0.094-0.132 0.149-0.191l2.751-2.928c2.077-2.223 4.154-4.439 6.322-6.603 99.826-99.826 230.95-149.738 362.078-149.738s262.252 49.913 362.078 149.738c2.167 2.164 4.244 4.383 6.322 6.603l2.751 2.928c92.354 97.154 142.357 224.545 140.798 358.715-1.553 134.438-54.779 260.835-149.86 355.916z" />
17
  <glyph unicode="&#xe908;" glyph-name="modal-box" d="M158.897 748.138h706.207v-35.31h-706.207v35.31zM158.897 465.655h706.207v-35.31h-706.207v35.31zM158.897 183.172h706.207v-35.31h-706.207v35.31zM0 960v-1024h1024v1024h-1024zM988.69-28.69h-953.379v953.379h953.379v-953.379z" />
18
  <glyph unicode="&#xe909;" glyph-name="maps" d="M517.926 514.963c64.603 0 117.185 52.583 117.185 117.185s-52.583 117.185-117.185 117.185-117.185-52.583-117.185-117.185 52.566-117.185 117.185-117.185zM517.926 715.852c46.154 0 83.704-37.55 83.704-83.704s-37.55-83.704-83.704-83.704-83.704 37.55-83.704 83.704 37.55 83.704 83.704 83.704zM840.655 330.815h-119.881l51.009 73.659c96.343 128.419 82.398 339.503-29.815 451.7-60.618 60.635-141.242 94.033-227.005 94.033-85.746 0-166.37-33.398-227.005-94.033-112.213-112.197-126.159-323.298-30.2-451.197l51.361-74.178h-125.773l-183.345-385.021h1024l-183.345 385.038zM284.928 424.563c-87.035 116.064-74.563 306.691 26.718 407.956 54.307 54.307 126.527 84.223 203.334 84.223s149.010-29.916 203.334-84.223c101.282-101.265 113.754-291.909 26.333-408.458l-229.683-331.685-230.035 332.187zM204.505 297.333h127.799l182.659-263.784 182.642 263.784h121.89l151.471-318.075h-917.93l151.471 318.075z" />
13
  <glyph unicode="&#xe903;" glyph-name="title" d="M864.893 960h-705.786c-14.195 0-25.696-11.505-25.696-25.696v-117.63c0-14.191 11.502-25.696 25.696-25.696s25.696 11.505 25.696 25.696v91.934h301.501v-921.216h-63.243c-14.195 0-25.696-11.505-25.696-25.696s11.502-25.696 25.696-25.696h177.879c14.195 0 25.696 11.505 25.696 25.696s-11.502 25.696-25.696 25.696h-63.243v921.216h301.501v-91.934c0-14.191 11.502-25.696 25.696-25.696s25.696 11.505 25.696 25.696v117.63c0 14.191-11.502 25.696-25.696 25.696z" />
14
  <glyph unicode="&#xe904;" glyph-name="testimonials" d="M225.963-54.877c-2.513 0-5.058 0.621-7.354 1.862-5.027 2.7-8.161 7.975-8.161 13.653v221.060c-135.82 70.625-210.448 194.281-210.448 349.215 0 239.43 220.098 419.964 512 419.964s512-180.534 512-419.964c0-239.399-220.098-419.933-512-419.933-9.588 0-18.991 0.528-28.424 1.024l-0.621 0.031-248.46-164.336c-2.576-1.707-5.554-2.576-8.533-2.576zM512 919.847c-274.184 0-480.97-167.222-480.97-388.934 0-103.114 35.002-243.34 201.79-325.787 5.275-2.607 8.626-8.006 8.626-13.902v-201.728l228.662 151.242c2.793 1.862 6.175 2.948 9.371 2.544l5.772-0.31c8.875-0.496 17.718-0.962 26.717-0.962 274.184 0 480.97 167.191 480.97 388.903s-206.755 388.934-480.939 388.934z" />
15
  <glyph unicode="&#xe905;" glyph-name="progress-bar" d="M581.983-60.112h-559.638c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h559.638c12.334 0 22.344-10.010 22.344-22.344s-9.966-22.344-22.344-22.344zM1001.656 263.703h-979.311c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h979.311c12.334 0 22.344-10.010 22.344-22.344s-10.010-22.344-22.344-22.344zM581.983 587.563h-559.638c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h559.638c12.334 0 22.344-10.010 22.344-22.344s-9.966-22.344-22.344-22.344zM1001.656 911.423h-979.311c-12.334 0-22.344 10.010-22.344 22.344s10.010 22.344 22.344 22.344h979.311c12.334 0 22.344-10.010 22.344-22.344s-10.010-22.344-22.344-22.344z" />
16
+ <glyph unicode="&#xe906;" glyph-name="grid-icon" d="M310.857 301.714h-292.571v292.571h292.571v-292.571zM54.857 338.286h223.086v219.429h-223.086v-219.429zM658.286 301.714h-292.571v292.571h292.571v-292.571zM402.286 338.286h219.429v219.429h-219.429v-219.429zM1005.714 301.714h-292.571v292.571h292.571v-292.571zM746.057 338.286h223.086v219.429h-223.086v-219.429zM310.857 649.143h-292.571v292.571h292.571v-292.571zM54.857 682.057h223.086v223.086h-223.086v-223.086zM658.286 649.143h-292.571v292.571h292.571v-292.571zM402.286 682.057h219.429v223.086h-219.429v-223.086zM1005.714 649.143h-292.571v292.571h292.571v-292.571zM746.057 682.057h223.086v223.086h-223.086v-223.086zM310.857-45.714h-292.571v292.571h292.571v-292.571zM54.857-9.143h223.086v223.086h-223.086v-223.086zM658.286-45.714h-292.571v292.571h292.571v-292.571zM402.286-9.143h219.429v223.086h-219.429v-223.086zM1005.714-45.714h-292.571v292.571h292.571v-292.571zM746.057-9.143h223.086v223.086h-223.086v-223.086z" />
17
  <glyph unicode="&#xe907;" glyph-name="person" d="M874.095 810.074c-199.648 199.651-524.504 199.651-724.152 0-70.048-70.048-117.964-158.050-138.571-254.496-20.062-93.91-13.491-191.207 19.003-281.366 3.904-10.827 15.849-16.44 26.672-12.539 10.83 3.904 16.443 15.846 12.539 26.672-29.854 82.837-35.891 172.232-17.454 258.529 18.92 88.558 62.935 169.384 127.283 233.732 183.399 183.399 481.809 183.399 665.208 0 87.339-87.342 136.23-203.441 137.665-326.916 1.435-123.25-44.498-240.276-129.329-329.515-1.004-1.056-1.997-2.119-2.991-3.182-1.758-1.879-3.512-3.762-5.346-5.596-183.399-183.399-481.809-183.399-665.208 0-0.976 0.976-1.928 1.969-2.869 2.963-0.049 1.924-0.090 3.821-0.090 5.689 0 4.196 0.080 8.374 0.233 12.539 0.052 1.393 0.156 2.772 0.226 4.161 0.135 2.768 0.264 5.537 0.465 8.291 0.122 1.643 0.299 3.268 0.445 4.904 0.219 2.483 0.424 4.967 0.695 7.437 0.191 1.744 0.441 3.473 0.66 5.21 0.295 2.345 0.577 4.696 0.924 7.030 0.264 1.778 0.577 3.539 0.868 5.307 0.372 2.275 0.733 4.55 1.153 6.811 0.33 1.789 0.709 3.56 1.070 5.339 0.448 2.22 0.889 4.442 1.382 6.648 0.399 1.789 0.844 3.567 1.271 5.346 0.521 2.171 1.039 4.342 1.601 6.495 0.469 1.785 0.976 3.557 1.469 5.332 0.594 2.126 1.184 4.255 1.82 6.367 0.531 1.771 1.101 3.529 1.664 5.287 0.667 2.088 1.334 4.179 2.039 6.249 0.597 1.747 1.223 3.484 1.848 5.221 0.74 2.056 1.483 4.113 2.261 6.155 0.66 1.726 1.344 3.435 2.032 5.148 0.809 2.018 1.626 4.036 2.473 6.037 0.722 1.702 1.466 3.39 2.216 5.078 0.879 1.983 1.768 3.96 2.685 5.922 0.782 1.671 1.58 3.331 2.39 4.988 0.952 1.949 1.914 3.894 2.9 5.821 0.837 1.632 1.688 3.258 2.553 4.877 1.021 1.917 2.060 3.828 3.119 5.728 0.893 1.598 1.796 3.189 2.713 4.769 1.091 1.879 2.199 3.748 3.328 5.61 0.948 1.563 1.907 3.119 2.879 4.668 1.16 1.841 2.338 3.671 3.532 5.488 1 1.525 2.008 3.043 3.032 4.55 1.226 1.806 2.48 3.591 3.744 5.373 1.052 1.483 2.105 2.963 3.182 4.425 1.296 1.764 2.619 3.512 3.949 5.248 1.101 1.438 2.199 2.876 3.324 4.297 1.365 1.726 2.761 3.432 4.161 5.13 1.143 1.389 2.285 2.779 3.453 4.151 1.438 1.688 2.907 3.352 4.38 5.012 1.188 1.341 2.369 2.685 3.578 4.005 1.507 1.646 3.046 3.262 4.588 4.877 1.23 1.292 2.452 2.588 3.703 3.862 1.58 1.605 3.196 3.175 4.807 4.752 1.264 1.233 2.518 2.48 3.803 3.696 1.66 1.57 3.359 3.102 5.050 4.637 1.292 1.171 2.567 2.355 3.876 3.508 1.747 1.539 3.539 3.032 5.321 4.536 1.306 1.101 2.598 2.22 3.921 3.303 1.844 1.507 3.734 2.97 5.616 4.442 1.313 1.025 2.605 2.074 3.932 3.081 1.983 1.504 4.008 2.956 6.030 4.415 1.275 0.924 2.525 1.869 3.817 2.775 2.23 1.567 4.512 3.077 6.787 4.595 1.122 0.747 2.22 1.521 3.348 2.258 2.966 1.928 5.985 3.793 9.024 5.634 0.472 0.285 0.931 0.59 1.407 0.875 3.515 2.105 7.079 4.147 10.684 6.134 1.233 0.677 2.501 1.313 3.748 1.976 2.393 1.278 4.779 2.567 7.214 3.789 1.56 0.785 3.157 1.521 4.731 2.282 1.987 0.962 3.967 1.935 5.978 2.862 37.773-36.082 88.162-56.509 140.464-56.509s102.695 20.431 140.468 56.516c73.737-34.126 134.087-95.359 166.852-169.821 4.634-10.531 16.926-15.321 27.468-10.684 10.535 4.637 15.318 16.936 10.681 27.468-35.839 81.451-98.231 146.539-177.206 185.83 22.914 33.612 35.311 73.303 35.311 114.261 0 112.25-91.323 203.573-203.573 203.573-11.507 0-20.84-9.333-20.84-20.84s9.333-20.84 20.84-20.84c89.27 0 161.892-72.625 161.892-161.892 0-39.916-14.835-78.353-41.768-108.221-0.003-0.003-0.007-0.007-0.010-0.010-30.753-34.102-74.532-53.661-120.117-53.661s-89.367 19.559-120.117 53.661c-0.003 0.007-0.010 0.010-0.017 0.014-26.929 29.878-41.761 68.304-41.761 108.214 0 43.57 17.058 84.445 48.034 115.088 8.183 8.096 8.253 21.292 0.156 29.472-8.093 8.187-21.288 8.249-29.472 0.16-38.947-38.52-60.399-89.916-60.399-144.705 0-40.917 12.365-80.579 35.241-114.174-0.205-0.101-0.403-0.212-0.604-0.316-1.626-0.813-3.213-1.674-4.825-2.504-2.47-1.278-4.946-2.549-7.381-3.88-1.723-0.938-3.407-1.924-5.113-2.886-2.275-1.289-4.554-2.57-6.797-3.901-1.74-1.035-3.453-2.105-5.175-3.164-2.154-1.327-4.307-2.65-6.429-4.015-1.733-1.115-3.435-2.261-5.148-3.4-2.060-1.372-4.116-2.751-6.144-4.161-1.705-1.188-3.39-2.4-5.075-3.612-1.98-1.428-3.953-2.862-5.901-4.324-1.671-1.254-3.321-2.525-4.967-3.803-1.91-1.483-3.807-2.977-5.682-4.495-1.626-1.313-3.237-2.643-4.842-3.981-1.844-1.542-3.675-3.102-5.488-4.679-1.573-1.365-3.136-2.741-4.686-4.133-1.789-1.608-3.553-3.234-5.307-4.873-1.514-1.414-3.025-2.831-4.519-4.272-1.733-1.674-3.439-3.373-5.141-5.078-1.452-1.455-2.904-2.907-4.328-4.383-1.685-1.747-3.338-3.526-4.988-5.304-1.379-1.487-2.768-2.966-4.123-4.477-1.65-1.834-3.255-3.706-4.866-5.571-1.296-1.501-2.602-2.987-3.873-4.505-1.636-1.956-3.22-3.949-4.814-5.936-1.184-1.48-2.393-2.938-3.557-4.436-1.674-2.154-3.293-4.349-4.918-6.537-1.021-1.375-2.070-2.727-3.070-4.116-2.056-2.848-4.047-5.738-6.019-8.642-0.518-0.764-1.066-1.507-1.58-2.275-2.456-3.668-4.842-7.378-7.166-11.129-0.802-1.296-1.556-2.619-2.341-3.921-1.504-2.497-3.015-4.991-4.463-7.523-0.903-1.58-1.758-3.189-2.636-4.783-1.268-2.292-2.543-4.578-3.758-6.898-0.903-1.719-1.758-3.46-2.636-5.193-1.132-2.237-2.268-4.47-3.355-6.731-0.865-1.799-1.688-3.619-2.525-5.429-1.028-2.233-2.060-4.463-3.046-6.718-0.813-1.858-1.591-3.734-2.372-5.606-0.941-2.247-1.876-4.495-2.772-6.759-0.754-1.903-1.476-3.817-2.199-5.731-0.854-2.272-1.698-4.547-2.511-6.836-0.688-1.942-1.355-3.894-2.015-5.849-0.775-2.296-1.528-4.599-2.258-6.916-0.622-1.969-1.223-3.946-1.813-5.926-0.695-2.338-1.365-4.682-2.015-7.037-0.549-1.987-1.087-3.977-1.605-5.978-0.615-2.379-1.198-4.769-1.768-7.166-0.476-2.001-0.948-3.998-1.389-6.006-0.535-2.428-1.032-4.87-1.518-7.315-0.399-2.001-0.806-4.001-1.174-6.012-0.455-2.494-0.865-5.002-1.271-7.513-0.32-1.98-0.656-3.956-0.945-5.943-0.379-2.591-0.698-5.196-1.025-7.801-0.24-1.931-0.504-3.859-0.716-5.797-0.299-2.73-0.528-5.478-0.768-8.225-0.16-1.83-0.351-3.654-0.483-5.495-0.222-3.067-0.368-6.148-0.518-9.232-0.073-1.532-0.188-3.053-0.243-4.588-0.167-4.627-0.261-9.271-0.261-13.932 0-5.033 0.17-9.792 0.375-15.047 0.049-1.216 0.219-2.397 0.462-3.55 0.021-0.090 0.031-0.181 0.052-0.271 0.257-1.136 0.618-2.226 1.052-3.282 0.042-0.104 0.080-0.208 0.125-0.313 0.448-1.042 0.983-2.035 1.587-2.98 0.076-0.118 0.149-0.236 0.226-0.351 0.622-0.927 1.313-1.799 2.067-2.612 0.056-0.059 0.094-0.132 0.149-0.191l2.751-2.928c2.077-2.223 4.154-4.439 6.322-6.603 99.826-99.826 230.95-149.738 362.078-149.738s262.252 49.913 362.078 149.738c2.167 2.164 4.244 4.383 6.322 6.603l2.751 2.928c92.354 97.154 142.357 224.545 140.798 358.715-1.553 134.438-54.779 260.835-149.86 355.916z" />
18
  <glyph unicode="&#xe908;" glyph-name="modal-box" d="M158.897 748.138h706.207v-35.31h-706.207v35.31zM158.897 465.655h706.207v-35.31h-706.207v35.31zM158.897 183.172h706.207v-35.31h-706.207v35.31zM0 960v-1024h1024v1024h-1024zM988.69-28.69h-953.379v953.379h953.379v-953.379z" />
19
  <glyph unicode="&#xe909;" glyph-name="maps" d="M517.926 514.963c64.603 0 117.185 52.583 117.185 117.185s-52.583 117.185-117.185 117.185-117.185-52.583-117.185-117.185 52.566-117.185 117.185-117.185zM517.926 715.852c46.154 0 83.704-37.55 83.704-83.704s-37.55-83.704-83.704-83.704-83.704 37.55-83.704 83.704 37.55 83.704 83.704 83.704zM840.655 330.815h-119.881l51.009 73.659c96.343 128.419 82.398 339.503-29.815 451.7-60.618 60.635-141.242 94.033-227.005 94.033-85.746 0-166.37-33.398-227.005-94.033-112.213-112.197-126.159-323.298-30.2-451.197l51.361-74.178h-125.773l-183.345-385.021h1024l-183.345 385.038zM284.928 424.563c-87.035 116.064-74.563 306.691 26.718 407.956 54.307 54.307 126.527 84.223 203.334 84.223s149.010-29.916 203.334-84.223c101.282-101.265 113.754-291.909 26.333-408.458l-229.683-331.685-230.035 332.187zM204.505 297.333h127.799l182.659-263.784 182.642 263.784h121.89l151.471-318.075h-917.93l151.471 318.075z" />
admin/assets/pa-elements-font/fonts/pa-elements.ttf CHANGED
Binary file
admin/assets/pa-elements-font/fonts/pa-elements.woff CHANGED
Binary file
admin/settings-page.php CHANGED
@@ -4,7 +4,7 @@ if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
4
 
5
  class PA_admin_settings {
6
 
7
- public $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox','premium-pricing-table','premium-button','premium-contactform', 'premium-image-button', 'premium-map-api', 'premium-map-disable-api'];
8
 
9
  private $pa_default_settings;
10
 
@@ -297,6 +297,14 @@ class PA_admin_settings {
297
  <span class="slider round"></span>
298
  </label>
299
  </td>
 
 
 
 
 
 
 
 
300
  </tr>
301
  </tbody>
302
  </table>
@@ -369,6 +377,7 @@ class PA_admin_settings {
369
  'premium-button' => intval( $settings['premium-button'] ? 1 : 0),
370
  'premium-contactform' => intval( $settings['premium-contactform'] ? 1 : 0),
371
  'premium-image-button' => intval( $settings['premium-image-button'] ? 1 : 0),
 
372
  'premium-map-api' => $settings['premium-map-api'],
373
  'premium-map-disable-api' => intval( $settings['premium-map-disable-api'] ? 1 : 0),
374
  );
4
 
5
  class PA_admin_settings {
6
 
7
+ public $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox','premium-pricing-table','premium-button','premium-contactform', 'premium-image-button', 'premium-map-api', 'premium-map-disable-api','premium-grid'];
8
 
9
  private $pa_default_settings;
10
 
297
  <span class="slider round"></span>
298
  </label>
299
  </td>
300
+
301
+ <th><?php echo esc_html__('Premium Grid', 'premium-addons-for-elementor'); ?></th>
302
+ <td>
303
+ <label class="switch">
304
+ <input type="checkbox" id="premium-grid" name="premium-grid" <?php checked(1, $this->pa_get_settings['premium-grid'], true) ?>>
305
+ <span class="slider round"></span>
306
+ </label>
307
+ </td>
308
  </tr>
309
  </tbody>
310
  </table>
377
  'premium-button' => intval( $settings['premium-button'] ? 1 : 0),
378
  'premium-contactform' => intval( $settings['premium-contactform'] ? 1 : 0),
379
  'premium-image-button' => intval( $settings['premium-image-button'] ? 1 : 0),
380
+ 'premium-grid' => intval( $settings['premium-grid'] ? 1 : 0),
381
  'premium-map-api' => $settings['premium-map-api'],
382
  'premium-map-disable-api' => intval( $settings['premium-map-disable-api'] ? 1 : 0),
383
  );
assets/css/premium-addons.css CHANGED
@@ -2630,4 +2630,516 @@ button.close {
2630
  -webkit-transform: rotateX(360deg);
2631
  transform: rotateX(360deg);
2632
  }
2633
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2630
  -webkit-transform: rotateX(360deg);
2631
  transform: rotateX(360deg);
2632
  }
2633
+ }
2634
+ /**************** Premium Grid *************/
2635
+ /*************************************************/
2636
+ .premium-img-gallery-filter {
2637
+ display: flex;
2638
+ align-items: center;
2639
+ justify-content: center;
2640
+ }
2641
+ .premium-gallery-container .premium-gallery-item {
2642
+ padding: 10px;
2643
+ }
2644
+ .premium-img-gallery-filter .premium-gallery-cats-container li a.category {
2645
+ border-radius: 75px;
2646
+ margin: 15px 5px 20px;
2647
+ padding: 7px 20px;
2648
+ }
2649
+ .pa-gallery-img {
2650
+ position: relative;
2651
+ }
2652
+ .pa-gallery-img-container {
2653
+ overflow: hidden;
2654
+ }
2655
+ .pa-gallery-img-container img {
2656
+ transform: scale(1.2);
2657
+ -webkit-transition: all 0.3s ease-in-out;
2658
+ -moz-transition: all 0.3s ease-in-out;
2659
+ -ms-transition: all 0.3s ease-in-out;
2660
+ -o-transition: all 0.3s ease-in-out;
2661
+ }
2662
+ .pa-gallery-img .pa-gallery-magnific-image span,
2663
+ .pa-gallery-img .pa-gallery-img-link span {
2664
+ line-height: 1;
2665
+ display: inline-block;
2666
+ opacity: 0;
2667
+ margin: 0 5px;
2668
+ padding: 15px;
2669
+ border-radius: 50%;
2670
+ }
2671
+ .pa-gallery-img.style2 .pa-gallery-magnific-image span,
2672
+ .pa-gallery-img.style2 .pa-gallery-img-link span {
2673
+ margin: 0 5px 20px;
2674
+ }
2675
+ .pa-gallery-img:hover .pa-gallery-magnific-image span {
2676
+ -webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
2677
+ -moz-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
2678
+ -ms-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
2679
+ -o-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
2680
+ }
2681
+ .pa-gallery-img:hover .pa-gallery-img-link span {
2682
+ -webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
2683
+ -moz-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
2684
+ -ms-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
2685
+ -o-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
2686
+ }
2687
+ .pa-gallery-img:hover .pa-gallery-magnific-image span,
2688
+ .pa-gallery-img:hover .pa-gallery-img-link span {
2689
+ opacity: 1;
2690
+ }
2691
+ .premium-img-gallery-filter .premium-gallery-cats-container {
2692
+ text-align: center;
2693
+ margin: 0;
2694
+ }
2695
+ .premium-img-gallery-filter .premium-gallery-cats-container li {
2696
+ list-style: none;
2697
+ display: inline-flex;
2698
+ }
2699
+ .pa-gallery-img:hover .pa-gallery-img-container.zoomin img {
2700
+ transform: scale(1.3);
2701
+ }
2702
+ .pa-gallery-img:hover .pa-gallery-img-container.zoomout img {
2703
+ transform: scale(1.1);
2704
+ }
2705
+ .pa-gallery-img:hover .pa-gallery-img-container.scale img {
2706
+ transform: scale(1.3) rotate(5deg);
2707
+ }
2708
+ .pa-gallery-img:hover .pa-gallery-img-container.gray img {
2709
+ filter: grayscale(100%);
2710
+ }
2711
+ .pa-gallery-img:hover .pa-gallery-img-container.blur img {
2712
+ filter: blur(3px);
2713
+ }
2714
+ .pa-gallery-img .premium-gallery-caption {
2715
+ padding: 10px;
2716
+ }
2717
+ .pa-gallery-img .premium-gallery-caption .premium-gallery-img-name{
2718
+ margin-bottom: 0;
2719
+ }
2720
+ .pa-gallery-img.default .pa-gallery-icons-caption-wrapper {
2721
+ position: absolute;
2722
+ top: auto;
2723
+ bottom: 0;
2724
+ z-index: 2;
2725
+ width: 100%;
2726
+ height: 100%;
2727
+ display: table;
2728
+ text-align: center;
2729
+ }
2730
+ .pa-gallery-icons-caption-wrapper-cell {
2731
+ display: table-cell;
2732
+ vertical-align: bottom;
2733
+ -webkit-transition: all 0.3s ease-in-out;
2734
+ -moz-transition: all 0.3s ease-in-out;
2735
+ -ms-transition: all 0.3s ease-in-out;
2736
+ -o-transition: all 0.3s ease-in-out;
2737
+ }
2738
+ .pa-gallery-img.style1 {
2739
+ overflow: hidden;
2740
+ }
2741
+ .pa-gallery-img.style1 .pa-gallery-icons-wrapper,
2742
+ .pa-gallery-img.default .pa-gallery-icons-wrapper{
2743
+ position: absolute;
2744
+ top: 0;
2745
+ left: 0;
2746
+ width: 100%;
2747
+ height: 100%;
2748
+ display: flex;
2749
+ justify-content: center;
2750
+ -webkit-transition: all 0.3s ease-in-out;
2751
+ -moz-transition: all 0.3s ease-in-out;
2752
+ -ms-transition: all 0.3s ease-in-out;
2753
+ -o-transition: all 0.3s ease-in-out;
2754
+ }
2755
+ .pa-gallery-img.style1 .pa-gallery-icons-inner-container,
2756
+ .pa-gallery-img.default .pa-gallery-icons-inner-container{
2757
+ position: absolute;
2758
+ top: 33.33%;
2759
+ -webkit-transform: translateY(-50%);
2760
+ transform: translateY(-50%)
2761
+ }
2762
+ .pa-gallery-img.style1 .premium-gallery-caption {
2763
+ position: absolute;
2764
+ top: auto;
2765
+ right: 0;
2766
+ left: 0;
2767
+ width: 100%;
2768
+ -webkit-transition: all 500ms ease 0s;
2769
+ -moz-transition: all 500ms ease 0s;
2770
+ -ms-transition: all 500ms ease 0s;
2771
+ -o-transition: all 500ms ease 0s;
2772
+ transition: all 500ms ease 0s;
2773
+ -webkit-transform: translate3d(0,100%,0);
2774
+ -moz-transform: translate3d(0,100%,0);
2775
+ -ms-transform: translate3d(0,100%,0);
2776
+ -o-transform: translate3d(0,100%,0);
2777
+ transform: translate3d(0,100%,0);
2778
+ }
2779
+ .pa-gallery-img.default .premium-gallery-caption {
2780
+ position: absolute;
2781
+ top: auto;
2782
+ right: 0;
2783
+ left: 0;
2784
+ width: 100%;
2785
+ bottom: 0;
2786
+ }
2787
+ .pa-gallery-img.style1:hover .premium-gallery-caption {
2788
+ -webkit-transform: translate3d(0,0,0);
2789
+ -moz-transform: translate3d(0,0,0);
2790
+ -ms-transform: translate3d(0,0,0);
2791
+ -o-transform: translate3d(0,0,0);
2792
+ transform: translate3d(0,0,0);
2793
+ bottom: -1px !important;
2794
+ }
2795
+ .pa-gallery-img.style2 .pa-gallery-icons-caption-container{
2796
+ position: absolute;
2797
+ top: 0;
2798
+ left: 0;
2799
+ width: 100%;
2800
+ height: 100%;
2801
+ opacity: 0;
2802
+ -webkit-backface-visibility: hidden;
2803
+ -moz-backface-visibility: hidden;
2804
+ backface-visibility: hidden;
2805
+ -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
2806
+ -moz-transition: -moz-transform 0.3s, opacity 0.3s;
2807
+ transition: transform 0.3s, opacity 0.3s;
2808
+ z-index: 1;
2809
+ background-color: rgba(108,191,226,0.68);
2810
+ display: table;
2811
+ text-align: center;
2812
+ }
2813
+ .pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
2814
+ display: table-cell;
2815
+ vertical-align: middle;
2816
+ }
2817
+ .pa-gallery-img.style2:hover .pa-gallery-icons-caption-container{
2818
+ opacity: 1;
2819
+ -webkit-transform: translate(15px, 15px);
2820
+ -moz-transform: translate(15px, 15px);
2821
+ -ms-transform: translate(15px, 15px);
2822
+ transform: translate(15px, 15px);
2823
+ }
2824
+ .premium-clearfix {
2825
+ clear: both;
2826
+ }
2827
+ .premium-gallery-container .pa-gallery-item {
2828
+ padding: 10px;
2829
+ }
2830
+ /* Magnific Popup CSS */
2831
+ .mfp-bg {
2832
+ top: 0;
2833
+ left: 0;
2834
+ width: 100%;
2835
+ height: 100%;
2836
+ z-index: 1042;
2837
+ overflow: hidden;
2838
+ position: fixed;
2839
+ background: #0b0b0b;
2840
+ opacity: 0.8; }
2841
+ .mfp-wrap {
2842
+ top: 0;
2843
+ left: 0;
2844
+ width: 100%;
2845
+ height: 100%;
2846
+ z-index: 1043;
2847
+ position: fixed;
2848
+ outline: none !important;
2849
+ -webkit-backface-visibility: hidden; }
2850
+ .mfp-container {
2851
+ text-align: center;
2852
+ position: absolute;
2853
+ width: 100%;
2854
+ height: 100%;
2855
+ left: 0;
2856
+ top: 0;
2857
+ padding: 0 8px;
2858
+ box-sizing: border-box; }
2859
+ .mfp-container:before {
2860
+ content: '';
2861
+ display: inline-block;
2862
+ height: 100%;
2863
+ vertical-align: middle; }
2864
+ .mfp-align-top .mfp-container:before {
2865
+ display: none; }
2866
+ .mfp-content {
2867
+ position: relative;
2868
+ display: inline-block;
2869
+ vertical-align: middle;
2870
+ margin: 0 auto;
2871
+ text-align: left;
2872
+ z-index: 1045; }
2873
+ .mfp-inline-holder .mfp-content,
2874
+ .mfp-ajax-holder .mfp-content {
2875
+ width: 100%;
2876
+ cursor: auto; }
2877
+ .mfp-ajax-cur {
2878
+ cursor: progress; }
2879
+ .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
2880
+ cursor: -moz-zoom-out;
2881
+ cursor: -webkit-zoom-out;
2882
+ cursor: zoom-out; }
2883
+ .mfp-zoom {
2884
+ cursor: pointer;
2885
+ cursor: -webkit-zoom-in;
2886
+ cursor: -moz-zoom-in;
2887
+ cursor: zoom-in; }
2888
+ .mfp-auto-cursor .mfp-content {
2889
+ cursor: auto; }
2890
+ .mfp-close,
2891
+ .mfp-arrow,
2892
+ .mfp-preloader,
2893
+ .mfp-counter {
2894
+ -webkit-user-select: none;
2895
+ -moz-user-select: none;
2896
+ user-select: none; }
2897
+ .mfp-loading.mfp-figure {
2898
+ display: none; }
2899
+ .mfp-hide {
2900
+ display: none !important; }
2901
+ .mfp-preloader {
2902
+ color: #CCC;
2903
+ position: absolute;
2904
+ top: 50%;
2905
+ width: auto;
2906
+ text-align: center;
2907
+ margin-top: -0.8em;
2908
+ left: 8px;
2909
+ right: 8px;
2910
+ z-index: 1044; }
2911
+ .mfp-preloader a {
2912
+ color: #CCC; }
2913
+ .mfp-preloader a:hover {
2914
+ color: #FFF; }
2915
+ .mfp-s-ready .mfp-preloader {
2916
+ display: none; }
2917
+ .mfp-s-error .mfp-content {
2918
+ display: none; }
2919
+ button.mfp-close,
2920
+ button.mfp-arrow {
2921
+ overflow: visible;
2922
+ cursor: pointer;
2923
+ background: transparent;
2924
+ border: 0;
2925
+ -webkit-appearance: none;
2926
+ display: block;
2927
+ outline: none;
2928
+ padding: 0;
2929
+ z-index: 1046;
2930
+ box-shadow: none;
2931
+ touch-action: manipulation; }
2932
+ button::-moz-focus-inner {
2933
+ padding: 0;
2934
+ border: 0; }
2935
+ .mfp-close {
2936
+ width: 44px;
2937
+ height: 44px;
2938
+ line-height: 44px;
2939
+ position: absolute;
2940
+ right: 0;
2941
+ top: 0;
2942
+ text-decoration: none;
2943
+ text-align: center;
2944
+ opacity: 0.65;
2945
+ padding: 0 0 18px 10px;
2946
+ color: #FFF;
2947
+ font-style: normal;
2948
+ font-size: 28px;
2949
+ font-family: Arial, Baskerville, monospace; }
2950
+ .mfp-close:hover,
2951
+ .mfp-close:focus {
2952
+ opacity: 1; }
2953
+ .mfp-close:active {
2954
+ top: 1px; }
2955
+ .mfp-close-btn-in .mfp-close {
2956
+ color: #333; }
2957
+ .mfp-image-holder .mfp-close,
2958
+ .mfp-iframe-holder .mfp-close {
2959
+ color: #FFF;
2960
+ right: -6px;
2961
+ text-align: right;
2962
+ padding-right: 6px;
2963
+ width: 100%; }
2964
+ .mfp-counter {
2965
+ position: absolute;
2966
+ top: 0;
2967
+ right: 0;
2968
+ color: #CCC;
2969
+ font-size: 12px;
2970
+ line-height: 18px;
2971
+ white-space: nowrap; }
2972
+ .mfp-arrow {
2973
+ position: absolute;
2974
+ opacity: 0.65;
2975
+ margin: 0;
2976
+ top: 50%;
2977
+ margin-top: -55px;
2978
+ padding: 0;
2979
+ width: 90px;
2980
+ height: 110px;
2981
+ -webkit-tap-highlight-color: transparent; }
2982
+ .mfp-arrow:active {
2983
+ margin-top: -54px; }
2984
+ .mfp-arrow:hover,
2985
+ .mfp-arrow:focus {
2986
+ opacity: 1; }
2987
+ .mfp-arrow:before,
2988
+ .mfp-arrow:after {
2989
+ content: '';
2990
+ display: block;
2991
+ width: 0;
2992
+ height: 0;
2993
+ position: absolute;
2994
+ left: 0;
2995
+ top: 0;
2996
+ margin-top: 35px;
2997
+ margin-left: 35px;
2998
+ border: medium inset transparent; }
2999
+ .mfp-arrow:after {
3000
+ border-top-width: 13px;
3001
+ border-bottom-width: 13px;
3002
+ top: 8px; }
3003
+ .mfp-arrow:before {
3004
+ border-top-width: 21px;
3005
+ border-bottom-width: 21px;
3006
+ opacity: 0.7; }
3007
+ .mfp-arrow-left {
3008
+ left: 0; }
3009
+ .mfp-arrow-left:after {
3010
+ border-right: 17px solid #FFF;
3011
+ margin-left: 31px; }
3012
+ .mfp-arrow-left:before {
3013
+ margin-left: 25px;
3014
+ border-right: 27px solid #3F3F3F; }
3015
+ .mfp-arrow-right {
3016
+ right: 0; }
3017
+ .mfp-arrow-right:after {
3018
+ border-left: 17px solid #FFF;
3019
+ margin-left: 39px; }
3020
+ .mfp-arrow-right:before {
3021
+ border-left: 27px solid #3F3F3F; }
3022
+ .mfp-iframe-holder {
3023
+ padding-top: 40px;
3024
+ padding-bottom: 40px; }
3025
+ .mfp-iframe-holder .mfp-content {
3026
+ line-height: 0;
3027
+ width: 100%;
3028
+ max-width: 900px; }
3029
+ .mfp-iframe-holder .mfp-close {
3030
+ top: -40px; }
3031
+ .mfp-iframe-scaler {
3032
+ width: 100%;
3033
+ height: 0;
3034
+ overflow: hidden;
3035
+ padding-top: 56.25%; }
3036
+ .mfp-iframe-scaler iframe {
3037
+ position: absolute;
3038
+ display: block;
3039
+ top: 0;
3040
+ left: 0;
3041
+ width: 100%;
3042
+ height: 100%;
3043
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
3044
+ background: #000; }
3045
+ /* Main image in popup */
3046
+ img.mfp-img {
3047
+ width: auto;
3048
+ max-width: 100%;
3049
+ height: auto;
3050
+ display: block;
3051
+ line-height: 0;
3052
+ box-sizing: border-box;
3053
+ padding: 40px 0 40px;
3054
+ margin: 0 auto; }
3055
+ /* The shadow behind the image */
3056
+ .mfp-figure {
3057
+ line-height: 0; }
3058
+ .mfp-figure:after {
3059
+ content: '';
3060
+ position: absolute;
3061
+ left: 0;
3062
+ top: 40px;
3063
+ bottom: 40px;
3064
+ display: block;
3065
+ right: 0;
3066
+ width: auto;
3067
+ height: auto;
3068
+ z-index: -1;
3069
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
3070
+ background: #444; }
3071
+ .mfp-figure small {
3072
+ color: #BDBDBD;
3073
+ display: block;
3074
+ font-size: 12px;
3075
+ line-height: 14px; }
3076
+ .mfp-figure figure {
3077
+ margin: 0; }
3078
+ .mfp-bottom-bar {
3079
+ margin-top: -36px;
3080
+ position: absolute;
3081
+ top: 100%;
3082
+ left: 0;
3083
+ width: 100%;
3084
+ cursor: auto; }
3085
+ .mfp-title {
3086
+ text-align: left;
3087
+ line-height: 18px;
3088
+ color: #F3F3F3;
3089
+ word-wrap: break-word;
3090
+ padding-right: 36px; }
3091
+ .mfp-image-holder .mfp-content {
3092
+ max-width: 100%; }
3093
+ .mfp-gallery .mfp-image-holder .mfp-figure {
3094
+ cursor: pointer; }
3095
+ @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
3096
+ /**
3097
+ * Remove all paddings around the image on small screen
3098
+ */
3099
+ .mfp-img-mobile .mfp-image-holder {
3100
+ padding-left: 0;
3101
+ padding-right: 0; }
3102
+ .mfp-img-mobile img.mfp-img {
3103
+ padding: 0; }
3104
+ .mfp-img-mobile .mfp-figure:after {
3105
+ top: 0;
3106
+ bottom: 0; }
3107
+ .mfp-img-mobile .mfp-figure small {
3108
+ display: inline;
3109
+ margin-left: 5px; }
3110
+ .mfp-img-mobile .mfp-bottom-bar {
3111
+ background: rgba(0, 0, 0, 0.6);
3112
+ bottom: 0;
3113
+ margin: 0;
3114
+ top: auto;
3115
+ padding: 3px 5px;
3116
+ position: fixed;
3117
+ box-sizing: border-box; }
3118
+ .mfp-img-mobile .mfp-bottom-bar:empty {
3119
+ padding: 0; }
3120
+ .mfp-img-mobile .mfp-counter {
3121
+ right: 5px;
3122
+ top: 3px; }
3123
+ .mfp-img-mobile .mfp-close {
3124
+ top: 0;
3125
+ right: 0;
3126
+ width: 35px;
3127
+ height: 35px;
3128
+ line-height: 35px;
3129
+ background: rgba(0, 0, 0, 0.6);
3130
+ position: fixed;
3131
+ text-align: center;
3132
+ padding: 0; } }
3133
+ @media all and (max-width: 900px) {
3134
+ .mfp-arrow {
3135
+ -webkit-transform: scale(0.75);
3136
+ transform: scale(0.75); }
3137
+ .mfp-arrow-left {
3138
+ -webkit-transform-origin: 0;
3139
+ transform-origin: 0; }
3140
+ .mfp-arrow-right {
3141
+ -webkit-transform-origin: 100%;
3142
+ transform-origin: 100%; }
3143
+ .mfp-container {
3144
+ padding-left: 6px;
3145
+ padding-right: 6px; } }
assets/js/lib/jquery.magnific-popup.min.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*! Magnific Popup - v1.1.0 - 2016-02-20
2
+ * http://dimsemenov.com/plugins/magnific-popup/
3
+ * Copyright (c) 2016 Dmitry Semenov; */
4
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
assets/js/lib/masonry.min.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Isotope PACKAGED v3.0.3
3
+ *
4
+ * Licensed GPLv3 for open source use
5
+ * or Isotope Commercial License for commercial use
6
+ *
7
+ * http://isotope.metafizzy.co
8
+ * Copyright 2017 Metafizzy
9
+ */
10
+
11
+ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s.isBoxSizeOuter=r=200==t(o.width),i.removeChild(e)}}function s(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=n(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],m=s[f],c=parseFloat(m);a[f]=isNaN(c)?0:c}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,I=a.borderTopWidth+a.borderBottomWidth,z=d&&r,S=t(s.width);S!==!1&&(a.width=S+(z?0:p+_));var x=t(s.height);return x!==!1&&(a.height=x+(z?0:y+I)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+I),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)o.push(i[s])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,s=this;this[o]=setTimeout(function(){n.apply(s,e),delete s[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=h[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=this.layout.size,r=n.indexOf("%")!=-1?parseFloat(n)/100*s.width:parseInt(n,10),a=o.indexOf("%")!=-1?parseFloat(o)/100*s.height:parseInt(o,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]="";var u=n?"paddingTop":"paddingBottom",h=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,u=e-n,h={};h.transform=this.getTranslate(a,u),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var m={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(m)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,s){return e(t,i,n,o,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function s(t,e){var i=n.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,f[o]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=c[n]||1;return i*o}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var m=s.prototype;n.extend(m,e.prototype),m.option=function(t){n.extend(this.options,t)},m._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},m._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},m.reloadItems=function(){this.items=this._itemize(this.element.children)},m._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=e[o],r=new i(s,this);n.push(r)}return n},m._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},m.getItemElements=function(){return this.items.map(function(t){return t.element})},m.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},m._init=m.layout,m._resetLayout=function(){this.getSize()},m.getSize=function(){this.size=i(this.element)},m._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},m.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},m._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},m._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},m._getItemLayoutPosition=function(){return{x:0,y:0}},m._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},m.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},m._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},m._postLayout=function(){this.resizeContainer()},m.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},m._getContainerSize=d,m._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},m._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){r++,r==s&&i()}var o=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,n)})},m.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),h)if(this.$element=this.$element||h(this.element),e){var o=h.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},m.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},m.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},m.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},m.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},m._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},m._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},m._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},m._manageStamp=d,m._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),s={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return s},m.handleEvent=n.handleEvent,m.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},m.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},m.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),m.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},m.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},m.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},m.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},m.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},m.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},m.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},m.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},m.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},m.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},m.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},m.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},m.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(o),n.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var c={ms:1,s:1e3};return s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return o.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=Object.create(n),o.prototype.constructor=o,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,s=o/n,r=n-o%n,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),s=Math.min.apply(Math,o),r=o.indexOf(s),a={x:this.columnWidth*r,y:s},u=s+t.size.outerHeight,h=this.cols+1-o.length,d=0;d<h;d++)this.colYs[r+d]=u;return a},i.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),s=o?n.left:n.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?n.top:n.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)o[s]||(n[s]=e.prototype[s]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,o,s,r){function a(t,e){return function(i,n){for(var o=0;o<t.length;o++){var s=t[o],r=i.sortData[s],a=n.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&n&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var e,i,n,o=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],o=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?n.push(a):u||a.isHidden||o.push(a)}}return{matches:i,needReveal:n,needHide:o}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},l.updateSortData=function(t){var e;t?(t=o.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),s=o&&o[1],r=e(s,n),a=d.sortDataParsers[i[1]];
12
+ return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=o.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,o=e.length;for(i=0;i<o;i++)n=e[i],this.element.appendChild(n.element);var s=this._filter(e).matches;for(i=0;i<o;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<o;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var m=l.remove;return l.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);m.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
13
+
14
+
15
+ /*!
16
+ * imagesLoaded PACKAGED v4.1.1
17
+ * JavaScript is all like "You images are done yet or what?"
18
+ * MIT License
19
+ */
20
+
21
+ !function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,r){return this instanceof o?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(function(){this.check()}.bind(this))):new o(t,e,r)}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){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&&a&&a.log("progress: "+i,t,e)},o.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)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?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&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},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 t=this.getIsImageComplete();t&&(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(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(h=e,h.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
22
+
23
+ /*! Infinite Scroll + https://github.com/paulirish/infinite-scroll + version 2.1.0 + Documentation: http://infinite-scroll.com/ */
24
+ ;(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e,t){"use strict";e.infinitescroll=function(n,r,i){this.element=e(i);if(!this._create(n,r)){this.failed=true}};e.infinitescroll.defaults={loading:{finished:t,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2LRwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSHMzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2GiqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"<em>Loading the next set of posts...</em>",selector:null,speed:"fast",start:t},state:{isDuringAjax:false,isInvalidPage:false,isDestroyed:false,isDone:false,isPaused:false,isBeyondMaxPage:false,currPage:1},debug:false,behavior:t,binder:e(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,pathParse:t,dataType:"html",appendCallback:true,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:t,path:t,prefill:false,maxPage:t};e.infinitescroll.prototype={_binding:function(n){var r=this,i=r.options;i.v="2.0b2.120520";if(!!i.behavior&&this["_binding_"+i.behavior]!==t){this["_binding_"+i.behavior].call(this);return}if(n!=="bind"&&n!=="unbind"){this._debug("Binding value "+n+" not valid");return false}if(n==="unbind"){this.options.binder.unbind("smartscroll.infscr."+r.options.infid)}else{this.options.binder[n]("smartscroll.infscr."+r.options.infid,function(){r.scroll()})}this._debug("Binding",n)},_create:function(r,i){var s=e.extend(true,{},e.infinitescroll.defaults,r);this.options=s;var o=e(window);var u=this;if(!u._validate(r)){return false}var a=e(s.nextSelector).attr("href");if(!a){this._debug("Navigation selector not found");return false}s.path=s.path||this._determinepath(a);s.contentSelector=s.contentSelector||this.element;s.loading.selector=s.loading.selector||s.contentSelector;s.loading.msg=s.loading.msg||e('<div id="boostsed-infscr-loading"><img alt="Loading..." src="'+s.loading.img+'" /><div>'+s.loading.msgText+"</div></div>");(new Image).src=s.loading.img;if(s.pixelsFromNavToBottom===t){s.pixelsFromNavToBottom=e(document).height()-e(s.navSelector).offset().top;this._debug("pixelsFromNavToBottom: "+s.pixelsFromNavToBottom)}var f=this;s.loading.start=s.loading.start||function(){e(s.navSelector).hide();s.loading.msg.appendTo(s.loading.selector).show(s.loading.speed,e.proxy(function(){this.beginAjax(s)},f))};s.loading.finished=s.loading.finished||function(){if(!s.state.isBeyondMaxPage)s.loading.msg.fadeOut(s.loading.speed)};s.callback=function(n,r,u){if(!!s.behavior&&n["_callback_"+s.behavior]!==t){n["_callback_"+s.behavior].call(e(s.contentSelector)[0],r,u)}if(i){i.call(e(s.contentSelector)[0],r,s,u)}if(s.prefill){o.bind("resize.infinite-scroll",n._prefill)}};if(r.debug){if(Function.prototype.bind&&(typeof console==="object"||typeof console==="function")&&typeof console.log==="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(e){console[e]=this.call(console[e],console)},Function.prototype.bind)}}this._setup();if(s.prefill){this._prefill()}return true},_prefill:function(){function i(){return e(n.options.contentSelector).height()<=r.height()}var n=this;var r=e(window);this._prefill=function(){if(i()){n.scroll()}r.bind("resize.infinite-scroll",function(){if(i()){r.unbind("resize.infinite-scroll");n.scroll()}})};this._prefill()},_debug:function(){if(true!==this.options.debug){return}if(typeof console!=="undefined"&&typeof console.log==="function"){if(Array.prototype.slice.call(arguments).length===1&&typeof Array.prototype.slice.call(arguments)[0]==="string"){console.log(Array.prototype.slice.call(arguments).toString())}else{console.log(Array.prototype.slice.call(arguments))}}else if(!Function.prototype.bind&&typeof console!=="undefined"&&typeof console.log==="object"){Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))}},_determinepath:function(n){var r=this.options;if(!!r.behavior&&this["_determinepath_"+r.behavior]!==t){return this["_determinepath_"+r.behavior].call(this,n)}if(!!r.pathParse){this._debug("pathParse manual");return r.pathParse(n,this.options.state.currPage+1)}else if(n.match(/^(.*?)\b2\b(.*?$)/)){n=n.match(/^(.*?)\b2\b(.*?$)/).slice(1)}else if(n.match(/^(.*?)2(.*?$)/)){if(n.match(/^(.*?page=)2(\/.*|$)/)){n=n.match(/^(.*?page=)2(\/.*|$)/).slice(1);return n}n=n.match(/^(.*?)2(.*?$)/).slice(1)}else{if(n.match(/^(.*?page=)1(\/.*|$)/)){n=n.match(/^(.*?page=)1(\/.*|$)/).slice(1);return n}else{this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");r.state.isInvalidPage=true}}this._debug("determinePath",n);return n},_error:function(n){var r=this.options;if(!!r.behavior&&this["_error_"+r.behavior]!==t){this["_error_"+r.behavior].call(this,n);return}if(n!=="destroy"&&n!=="end"){n="unknown"}this._debug("Error",n);if(n==="end"||r.state.isBeyondMaxPage){this._showdonemsg()}r.state.isDone=true;r.state.currPage=1;r.state.isPaused=false;r.state.isBeyondMaxPage=false;this._binding("unbind")},_loadcallback:function(r,i,s){var o=this.options,u=this.options.callback,a=o.state.isDone?"done":!o.appendCallback?"no-append":"append",f;if(!!o.behavior&&this["_loadcallback_"+o.behavior]!==t){this["_loadcallback_"+o.behavior].call(this,r,i);return}switch(a){case"done":this._showdonemsg();return false;case"no-append":if(o.dataType==="html"){i="<div>"+i+"</div>";i=e(i).find(o.itemSelector)}if(i.length===0){return this._error("end")}break;case"append":var l=r.children();if(l.length===0){return this._error("end")}f=document.createDocumentFragment();while(r[0].firstChild){f.appendChild(r[0].firstChild)}this._debug("contentSelector",e(o.contentSelector)[0]);e(o.contentSelector)[0].appendChild(f);i=l.get();break}o.loading.finished.call(e(o.contentSelector)[0],o);if(o.animate){var c=e(window).scrollTop()+e(o.loading.msg).height()+o.extraScrollPx+"px";e("html,body").animate({scrollTop:c},800,function(){o.state.isDuringAjax=false})}if(!o.animate){o.state.isDuringAjax=false}u(this,i,s);if(o.prefill){this._prefill()}},_nearbottom:function(){var r=this.options,i=0+e(document).height()-r.binder.scrollTop()-e(window).height();if(!!r.behavior&&this["_nearbottom_"+r.behavior]!==t){return this["_nearbottom_"+r.behavior].call(this)}this._debug("math:",i,r.pixelsFromNavToBottom);return i-r.bufferPx<r.pixelsFromNavToBottom},_pausing:function(n){var r=this.options;if(!!r.behavior&&this["_pausing_"+r.behavior]!==t){this["_pausing_"+r.behavior].call(this,n);return}if(n!=="pause"&&n!=="resume"&&n!==null){this._debug("Invalid argument. Toggling pause value instead")}n=n&&(n==="pause"||n==="resume")?n:"toggle";switch(n){case"pause":r.state.isPaused=true;break;case"resume":r.state.isPaused=false;break;case"toggle":r.state.isPaused=!r.state.isPaused;break}this._debug("Paused",r.state.isPaused);return false},_setup:function(){var n=this.options;if(!!n.behavior&&this["_setup_"+n.behavior]!==t){this["_setup_"+n.behavior].call(this);return}this._binding("bind");return false},_showdonemsg:function(){var r=this.options;if(!!r.behavior&&this["_showdonemsg_"+r.behavior]!==t){this["_showdonemsg_"+r.behavior].call(this);return}r.loading.msg.find("img").hide().parent().find("div").html(r.loading.finishedMsg).animate({opacity:1},2e3,function(){e(this).parent().fadeOut(r.loading.speed)});r.errorCallback.call(e(r.contentSelector)[0],"done")},_validate:function(n){for(var r in n){if(r.indexOf&&r.indexOf("Selector")>-1&&e(n[r]).length===0){this._debug("Your "+r+" found no elements.");return false}}return true},bind:function(){this._binding("bind")},destroy:function(){this.options.state.isDestroyed=true;this.options.loading.finished();return this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(r){var i=this,s=r.path,o,u,a,f;r.state.currPage++;if(r.maxPage!==t&&r.state.currPage>r.maxPage){r.state.isBeyondMaxPage=true;this.destroy();return}o=e(r.contentSelector).is("table, tbody")?e("<tbody/>"):e("<div/>");u=typeof s==="function"?s(r.state.currPage):s.join(r.state.currPage);i._debug("heading into ajax",u);a=r.dataType==="html"||r.dataType==="json"?r.dataType:"html+callback";if(r.appendCallback&&r.dataType==="html"){a+="+callback"}switch(a){case"html+callback":i._debug("Using HTML via .load() method");o.load(u+" "+r.itemSelector,t,function(t){i._loadcallback(o,t,u)});break;case"html":i._debug("Using "+a.toUpperCase()+" via $.ajax() method");e.ajax({url:u,dataType:r.dataType,complete:function(t,n){f=typeof t.isResolved!=="undefined"?t.isResolved():n==="success"||n==="notmodified";if(f){i._loadcallback(o,t.responseText,u)}else{i._error("end")}}});break;case"json":i._debug("Using "+a.toUpperCase()+" via $.ajax() method");e.ajax({dataType:"json",type:"GET",url:u,success:function(e,n,s){f=typeof s.isResolved!=="undefined"?s.isResolved():n==="success"||n==="notmodified";if(r.appendCallback){if(r.template!==t){var a=r.template(e);o.append(a);if(f){i._loadcallback(o,a)}else{i._error("end")}}else{i._debug("template must be defined.");i._error("end")}}else{if(f){i._loadcallback(o,e,u)}else{i._error("end")}}},error:function(){i._debug("JSON ajax request failed.");i._error("end")}});break}},retrieve:function(r){r=r||null;var i=this,s=i.options;if(!!s.behavior&&this["retrieve_"+s.behavior]!==t){this["retrieve_"+s.behavior].call(this,r);return}if(s.state.isDestroyed){this._debug("Instance is destroyed");return false}s.state.isDuringAjax=true;s.loading.start.call(e(s.contentSelector)[0],s)},scroll:function(){var n=this.options,r=n.state;if(!!n.behavior&&this["scroll_"+n.behavior]!==t){this["scroll_"+n.behavior].call(this);return}if(r.isDuringAjax||r.isInvalidPage||r.isDone||r.isDestroyed||r.isPaused){return}if(!this._nearbottom()){return}this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(n){if(e.isPlainObject(n)){this.options=e.extend(true,this.options,n)}}};e.fn.infinitescroll=function(n,r){var i=typeof n;switch(i){case"string":var s=Array.prototype.slice.call(arguments,1);this.each(function(){var t=e.data(this,"infinitescroll");if(!t){return false}if(!e.isFunction(t[n])||n.charAt(0)==="_"){return false}t[n].apply(t,s)});break;case"object":this.each(function(){var t=e.data(this,"infinitescroll");if(t){t.update(n)}else{t=new e.infinitescroll(n,r,this);if(!t.failed){e.data(this,"infinitescroll",t)}}});break}return this};var n=e.event,r;n.special.smartscroll={setup:function(){e(this).bind("scroll",n.special.smartscroll.handler)},teardown:function(){e(this).unbind("scroll",n.special.smartscroll.handler)},handler:function(t,n){var i=this,s=arguments;t.type="smartscroll";if(r){clearTimeout(r)}r=setTimeout(function(){e(i).trigger("smartscroll",s)},n==="execAsap"?0:100)}};e.fn.smartscroll=function(e){return e?this.bind("smartscroll",e):this.trigger("smartscroll",["execAsap"])}});
assets/js/lib/mixitup.min.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**!
2
+ * MixItUp v3.3.0
3
+ * A high-performance, dependency-free library for animated filtering, sorting and more
4
+ * Build 0be05511-2264-4384-8e31-c75554304cd0
5
+ *
6
+ * @copyright Copyright 2014-2018 KunkaLabs Limited.
7
+ * @author KunkaLabs Limited.
8
+ * @link https://www.kunkalabs.com/mixitup/
9
+ *
10
+ * @license Commercial use requires a commercial license.
11
+ * https://www.kunkalabs.com/mixitup/licenses/
12
+ *
13
+ * Non-commercial use permitted under same terms as CC BY-NC 3.0 license.
14
+ * http://creativecommons.org/licenses/by-nc/3.0/
15
+ */
16
+ !function(t){"use strict";var e=null,n=null;!function(){var e=["webkit","moz","o","ms"],n=t.document.createElement("div"),a=-1;for(a=0;a<e.length&&!t.requestAnimationFrame;a++)t.requestAnimationFrame=t[e[a]+"RequestAnimationFrame"];"undefined"==typeof n.nextElementSibling&&Object.defineProperty(t.Element.prototype,"nextElementSibling",{get:function(){for(var t=this.nextSibling;t;){if(1===t.nodeType)return t;t=t.nextSibling}return null}}),function(t){t.matches=t.matches||t.machesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){return Array.prototype.indexOf.call(this.parentElement.querySelectorAll(t),this)>-1}}(t.Element.prototype),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!1,n=[],a=-1;return e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=n.length,function(i){var o=[],r="",s=-1;if("object"!=typeof i&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");for(r in i)t.call(i,r)&&o.push(r);if(e)for(s=0;s<a;s++)t.call(i,n[s])&&o.push(n[s]);return o}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.create&&(Object.create=function(t){var e=function(){};return function(n,a){if(n!==Object(n)&&null!==n)throw TypeError("Argument must be an object, or null");e.prototype=n||{};var i=new e;return e.prototype=null,a!==t&&Object.defineProperties(i,a),null===n&&(i.__proto__=null),i}}()),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e,n,a,i;if(null===this)throw new TypeError;if(a=Object(this),i=a.length>>>0,0===i)return-1;if(e=0,arguments.length>1&&(e=Number(arguments[1]),e!==e?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),e>=i)return-1;for(n=e>=0?e:Math.max(i-Math.abs(e),0);n<i;n++)if(n in a&&a[n]===t)return n;return-1}),Function.prototype.bind||(Function.prototype.bind=function(t){var e,n,a,i;if("function"!=typeof this)throw new TypeError;return e=Array.prototype.slice.call(arguments,1),n=this,a=function(){},i=function(){return n.apply(this instanceof a?this:t,e.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(a.prototype=this.prototype),i.prototype=new a,i}),t.Element.prototype.dispatchEvent||(t.Element.prototype.dispatchEvent=function(t){try{return this.fireEvent("on"+t.type,t)}catch(e){}})}(),e=function(a,i,o){var r=null,s=!1,l=null,c=null,u=null,f=null,h=[],d="",m=[],g=-1;if(u=o||t.document,(s=arguments[3])&&(s="boolean"==typeof s),"string"==typeof a)m=u.querySelectorAll(a);else if(a&&"object"==typeof a&&n.isElement(a,u))m=[a];else{if(!a||"object"!=typeof a||!a.length)throw new Error(e.messages.errorFactoryInvalidContainer());m=a}if(m.length<1)throw new Error(e.messages.errorFactoryContainerNotFound());for(g=0;(r=m[g])&&(!(g>0)||s);g++)r.id?d=r.id:(d="MixItUp"+n.randomHex(),r.id=d),e.instances[d]instanceof e.Mixer?(l=e.instances[d],(!i||i&&i.debug&&i.debug.showWarnings!==!1)&&console.warn(e.messages.warningFactoryPreexistingInstance())):(l=new e.Mixer,l.attach(r,u,d,i),e.instances[d]=l),c=new e.Facade(l),i&&i.debug&&i.debug.enable?h.push(l):h.push(c);return f=s?new e.Collection(h):h[0]},e.use=function(t){e.Base.prototype.callActions.call(e,"beforeUse",arguments),"function"==typeof t&&"mixitup-extension"===t.TYPE?"undefined"==typeof e.extensions[t.NAME]&&(t(e),e.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(e.libraries.$=t),e.Base.prototype.callActions.call(e,"afterUse",arguments)},e.instances={},e.extensions={},e.libraries={},n={hasClass:function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){this.hasClass(t,e)||(t.className+=t.className?" "+e:e)},removeClass:function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").trim()}},extend:function(t,e,n,a){var i=[],o="",r=-1;n=n||!1,a=a||!1;try{if(Array.isArray(e))for(r=0;r<e.length;r++)i.push(r);else e&&(i=Object.keys(e));for(r=0;r<i.length;r++)o=i[r],!n||"object"!=typeof e[o]||this.isElement(e[o])?t[o]=e[o]:Array.isArray(e[o])?(t[o]||(t[o]=[]),this.extend(t[o],e[o],n,a)):(t[o]||(t[o]={}),this.extend(t[o],e[o],n,a))}catch(s){if(!a)throw s;this.handleExtendError(s,t)}return t},handleExtendError:function(t,n){var a=/property "?(\w*)"?[,:] object/i,i=null,o="",r="",s="",l="",c="",u=-1,f=-1;if(t instanceof TypeError&&(i=a.exec(t.message))){o=i[1];for(c in n){for(f=0;f<o.length&&o.charAt(f)===c.charAt(f);)f++;f>u&&(u=f,l=c)}throw u>1&&(s=e.messages.errorConfigInvalidPropertySuggestion({probableMatch:l})),r=e.messages.errorConfigInvalidProperty({erroneous:o,suggestion:s}),new TypeError(r)}throw t},template:function(t){for(var e=/\${([\w]*)}/g,n={},a=null;a=e.exec(t);)n[a[1]]=new RegExp("\\${"+a[1]+"}","g");return function(e){var a="",i=t;e=e||{};for(a in n)i=i.replace(n[a],"undefined"!=typeof e[a]?e[a]:"");return i}},on:function(e,n,a,i){e&&(e.addEventListener?e.addEventListener(n,a,i):e.attachEvent&&(e["e"+n+a]=a,e[n+a]=function(){e["e"+n+a](t.event)},e.attachEvent("on"+n,e[n+a])))},off:function(t,e,n){t&&(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&(t.detachEvent("on"+e,t[e+n]),t[e+n]=null))},getCustomEvent:function(e,n,a){var i=null;return a=a||t.document,"function"==typeof t.CustomEvent?i=new t.CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):"function"==typeof a.createEvent?(i=a.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,n)):(i=a.createEventObject(),i.type=e,i.returnValue=!1,i.cancelBubble=!1,i.detail=n),i},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,e){for(var n=0;null!==(t=t.previousElementSibling);)e&&!t.matches(e)||++n;return n},camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(t){return t.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(e,n){return n=n||t.document,!!(t.HTMLElement&&e instanceof t.HTMLElement)||(!!(n.defaultView&&n.defaultView.HTMLElement&&e instanceof n.defaultView.HTMLElement)||null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)},createElement:function(e,n){var a=null,i=null;for(n=n||t.document,a=n.createDocumentFragment(),i=n.createElement("div"),i.innerHTML=e.trim();i.firstChild;)a.appendChild(i.firstChild);return a},removeWhitespace:function(t){for(var e;t&&"#text"===t.nodeName;)e=t,t=t.previousSibling,e.parentElement&&e.parentElement.removeChild(e)},isEqualArray:function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},deepEquals:function(t,e){var n;if("object"==typeof t&&t&&"object"==typeof e&&e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(n in t)if(!e.hasOwnProperty(n)||!this.deepEquals(t[n],e[n]))return!1}else if(t!==e)return!1;return!0},arrayShuffle:function(t){for(var e=t.slice(),n=e.length,a=n,i=-1,o=[];a--;)i=~~(Math.random()*n),o=e[a],e[a]=e[i],e[i]=o;return e},arrayFromList:function(t){var e,n;try{return Array.prototype.slice.call(t)}catch(a){for(e=[],n=0;n<t.length;n++)e.push(t[n]);return e}},debounce:function(t,e,n){var a;return function(){var i=this,o=arguments,r=n&&!a,s=null;s=function(){a=null,n||t.apply(i,o)},clearTimeout(a),a=setTimeout(s,e),r&&t.apply(i,o)}},position:function(t){for(var e=0,n=0,a=t;t;)e-=t.scrollLeft,n-=t.scrollTop,t===a&&(e+=t.offsetLeft,n+=t.offsetTop,a=t.offsetParent),t=t.parentElement;return{x:e,y:n}},getHypotenuse:function(t,e){var n=t.x-e.x,a=t.y-e.y;return n=n<0?n*-1:n,a=a<0?a*-1:a,Math.sqrt(Math.pow(n,2)+Math.pow(a,2))},getIntersectionRatio:function(t,e){var n=t.width*t.height,a=-1,i=-1,o=-1,r=-1;return a=Math.max(0,Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left)),i=Math.max(0,Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top)),o=i*a,r=o/n},closestParent:function(e,n,a,i){var o=e.parentNode;if(i=i||t.document,a&&e.matches(n))return e;for(;o&&o!=i.body;){if(o.matches&&o.matches(n))return o;if(!o.parentNode)return null;o=o.parentNode}return null},children:function(e,n,a){var i=[],o="";return a=a||t.doc,e&&(e.id||(o="Temp"+this.randomHexKey(),e.id=o),i=a.querySelectorAll("#"+e.id+" > "+n),o&&e.removeAttribute("id")),i},clean:function(t){var e=[],n=-1;for(n=0;n<t.length;n++)""!==t[n]&&e.push(t[n]);return e},defer:function(n){var a=null,i=null,o=null;return i=new this.Deferred,e.features.has.promises?i.promise=new Promise(function(t,e){i.resolve=t,i.reject=e}):(o=t.jQuery||n.$)&&"function"==typeof o.Deferred?(a=o.Deferred(),i.promise=a.promise(),i.resolve=a.resolve,i.reject=a.reject):t.console&&console.warn(e.messages.warningNoPromiseImplementation()),i},all:function(n,a){var i=null;return e.features.has.promises?Promise.all(n):(i=t.jQuery||a.$)&&"function"==typeof i.when?i.when.apply(i,n).done(function(){return arguments}):(t.console&&console.warn(e.messages.warningNoPromiseImplementation()),[])},getPrefix:function(t,e,a){var i=-1,o="";if(n.dashCase(e)in t.style)return"";for(i=0;o=a[i];i++)if(o+e in t.style)return o.toLowerCase();return"unsupported"},randomHex:function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()},getDocumentState:function(e){return e="object"==typeof e.body?e:t.document,{scrollTop:t.pageYOffset,scrollLeft:t.pageXOffset,docHeight:e.documentElement.scrollHeight,docWidth:e.documentElement.scrollWidth,viewportHeight:e.documentElement.clientHeight,viewportWidth:e.documentElement.clientWidth}},bind:function(t,e){return function(){return e.apply(t,arguments)}},isVisible:function(e){var n=null;return!!e.offsetParent||(n=t.getComputedStyle(e),"fixed"===n.position&&"hidden"!==n.visibility&&"0"!==n.opacity)},seal:function(t){"function"==typeof Object.seal&&Object.seal(t)},freeze:function(t){"function"==typeof Object.freeze&&Object.freeze(t)},compareVersions:function(t,e){var n=t.split("."),a=e.split("."),i=-1,o=-1,r=-1;for(r=0;r<n.length;r++){if(i=parseInt(n[r].replace(/[^\d.]/g,"")),o=parseInt(a[r].replace(/[^\d.]/g,"")||0),o<i)return!1;if(o>i)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=n.randomHex()},isEmptyObject:function(t){var e="";if("function"==typeof Object.keys)return 0===Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},getClassname:function(t,e,n){var a="";return a+=t.block,a.length&&(a+=t.delineatorElement),a+=t["element"+this.pascalCase(e)],n?(a.length&&(a+=t.delineatorModifier),a+=n):a},getProperty:function(t,e){var n=e.split("."),a=null,i="",o=0;if(!e)return t;for(a=function(t){return t?t[i]:null};o<n.length;)i=n[o],t=a(t),o++;return"undefined"!=typeof t?t:null}},e.h=n,e.Base=function(){},e.Base.prototype={constructor:e.Base,callActions:function(t,e){var a=this,i=a.constructor.actions[t],o="";if(i&&!n.isEmptyObject(i))for(o in i)i[o].apply(a,e)},callFilters:function(t,e,a){var i=this,o=i.constructor.filters[t],r=e,s="";if(!o||n.isEmptyObject(o))return r;a=a||[];for(s in o)a=n.arrayFromList(a),a.unshift(r),r=o[s].apply(i,a);return r}},e.BaseStatic=function(){this.actions={},this.filters={},this.extend=function(t){n.extend(this.prototype,t)},this.registerAction=function(t,e,n){(this.actions[t]=this.actions[t]||{})[e]=n},this.registerFilter=function(t,e,n){(this.filters[t]=this.filters[t]||{})[e]=n}},e.Features=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.boxSizingPrefix="",this.transformPrefix="",this.transitionPrefix="",this.boxSizingPrefix="",this.transformProp="",this.transformRule="",this.transitionProp="",this.perspectiveProp="",this.perspectiveOriginProp="",this.has=new e.Has,this.canary=null,this.BOX_SIZING_PROP="boxSizing",this.TRANSITION_PROP="transition",this.TRANSFORM_PROP="transform",this.PERSPECTIVE_PROP="perspective",this.PERSPECTIVE_ORIGIN_PROP="perspectiveOrigin",this.VENDORS=["Webkit","moz","O","ms"],this.TWEENABLE=["opacity","width","height","marginRight","marginBottom","x","y","scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],this.callActions("afterConstruct")},e.BaseStatic.call(e.Features),e.Features.prototype=Object.create(e.Base.prototype),n.extend(e.Features.prototype,{constructor:e.Features,init:function(){var t=this;t.callActions("beforeInit",arguments),t.canary=document.createElement("div"),t.setPrefixes(),t.runTests(),t.callActions("beforeInit",arguments)},runTests:function(){var e=this;e.callActions("beforeRunTests",arguments),e.has.promises="function"==typeof t.Promise,e.has.transitions="unsupported"!==e.transitionPrefix,e.callActions("afterRunTests",arguments),n.freeze(e.has)},setPrefixes:function(){var t=this;t.callActions("beforeSetPrefixes",arguments),t.transitionPrefix=n.getPrefix(t.canary,"Transition",t.VENDORS),t.transformPrefix=n.getPrefix(t.canary,"Transform",t.VENDORS),t.boxSizingPrefix=n.getPrefix(t.canary,"BoxSizing",t.VENDORS),t.boxSizingProp=t.boxSizingPrefix?t.boxSizingPrefix+n.pascalCase(t.BOX_SIZING_PROP):t.BOX_SIZING_PROP,t.transitionProp=t.transitionPrefix?t.transitionPrefix+n.pascalCase(t.TRANSITION_PROP):t.TRANSITION_PROP,t.transformProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.TRANSFORM_PROP):t.TRANSFORM_PROP,t.transformRule=t.transformPrefix?"-"+t.transformPrefix+"-"+t.TRANSFORM_PROP:t.TRANSFORM_PROP,t.perspectiveProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_PROP):t.PERSPECTIVE_PROP,t.perspectiveOriginProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_ORIGIN_PROP):t.PERSPECTIVE_ORIGIN_PROP,t.callActions("afterSetPrefixes",arguments)}}),e.Has=function(){this.transitions=!1,this.promises=!1,n.seal(this)},e.features=new e.Features,e.features.init(),e.ConfigAnimation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.effects="fade scale",this.effectsIn="",this.effectsOut="",this.duration=600,this.easing="ease",this.applyPerspective=!0,this.perspectiveDistance="3000px",this.perspectiveOrigin="50% 50%",this.queue=!0,this.queueLimit=3,this.animateResizeContainer=!0,this.animateResizeTargets=!1,this.staggerSequence=null,this.reverseOut=!1,this.nudge=!0,this.clampHeight=!0,this.clampWidth=!0,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigAnimation),e.ConfigAnimation.prototype=Object.create(e.Base.prototype),e.ConfigAnimation.prototype.constructor=e.ConfigAnimation,e.ConfigBehavior=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.liveSort=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigBehavior),e.ConfigBehavior.prototype=Object.create(e.Base.prototype),e.ConfigBehavior.prototype.constructor=e.ConfigBehavior,e.ConfigCallbacks=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.onMixStart=null,this.onMixBusy=null,this.onMixEnd=null,this.onMixFail=null,this.onMixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigCallbacks),e.ConfigCallbacks.prototype=Object.create(e.Base.prototype),e.ConfigCallbacks.prototype.constructor=e.ConfigCallbacks,e.ConfigControls=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.live=!1,this.scope="global",this.toggleLogic="or",this.toggleDefault="all",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigControls),e.ConfigControls.prototype=Object.create(e.Base.prototype),e.ConfigControls.prototype.constructor=e.ConfigControls,e.ConfigClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.block="mixitup",this.elementContainer="container",this.elementFilter="control",this.elementSort="control",this.elementMultimix="control",this.elementToggle="control",this.modifierActive="active",this.modifierDisabled="disabled",this.modifierFailed="failed",this.delineatorElement="-",this.delineatorModifier="-",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigClassNames),e.ConfigClassNames.prototype=Object.create(e.Base.prototype),e.ConfigClassNames.prototype.constructor=e.ConfigClassNames,e.ConfigData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.uidKey="",this.dirtyCheck=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigData),e.ConfigData.prototype=Object.create(e.Base.prototype),e.ConfigData.prototype.constructor=e.ConfigData,e.ConfigDebug=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!1,this.showWarnings=!0,this.fauxAsync=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigDebug),e.ConfigDebug.prototype=Object.create(e.Base.prototype),e.ConfigDebug.prototype.constructor=e.ConfigDebug,e.ConfigLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.allowNestedTargets=!0,this.containerClassName="",this.siblingBefore=null,this.siblingAfter=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLayout),e.ConfigLayout.prototype=Object.create(e.Base.prototype),e.ConfigLayout.prototype.constructor=e.ConfigLayout,e.ConfigLoad=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter="all",this.sort="default:asc",this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLoad),e.ConfigLoad.prototype=Object.create(e.Base.prototype),e.ConfigLoad.prototype.constructor=e.ConfigLoad,e.ConfigSelectors=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=".mix",this.control="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigSelectors),e.ConfigSelectors.prototype=Object.create(e.Base.prototype),e.ConfigSelectors.prototype.constructor=e.ConfigSelectors,e.ConfigRender=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigRender),e.ConfigRender.prototype=Object.create(e.Base.prototype),e.ConfigRender.prototype.constructor=e.ConfigRender,e.ConfigTemplates=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigTemplates),e.ConfigTemplates.prototype=Object.create(e.Base.prototype),e.ConfigTemplates.prototype.constructor=e.ConfigTemplates,e.Config=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.animation=new e.ConfigAnimation,this.behavior=new e.ConfigBehavior,this.callbacks=new e.ConfigCallbacks,this.controls=new e.ConfigControls,this.classNames=new e.ConfigClassNames,this.data=new e.ConfigData,this.debug=new e.ConfigDebug,this.layout=new e.ConfigLayout,this.load=new e.ConfigLoad,this.selectors=new e.ConfigSelectors,this.render=new e.ConfigRender,this.templates=new e.ConfigTemplates,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Config),e.Config.prototype=Object.create(e.Base.prototype),e.Config.prototype.constructor=e.Config,e.MixerDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.document=null,this.body=null,this.container=null,this.parent=null,this.targets=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.MixerDom),e.MixerDom.prototype=Object.create(e.Base.prototype),e.MixerDom.prototype.constructor=e.MixerDom,e.UiClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.base="",this.active="",this.disabled="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UiClassNames),e.UiClassNames.prototype=Object.create(e.Base.prototype),e.UiClassNames.prototype.constructor=e.UiClassNames,e.CommandDataset=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandDataset),e.CommandDataset.prototype=Object.create(e.Base.prototype),e.CommandDataset.prototype.constructor=e.CommandDataset,e.CommandMultimix=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter=null,this.sort=null,this.insert=null,this.remove=null,this.changeLayout=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandMultimix),e.CommandMultimix.prototype=Object.create(e.Base.prototype),e.CommandMultimix.prototype.constructor=e.CommandMultimix,e.CommandFilter=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.selector="",this.collection=null,this.action="show",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandFilter),e.CommandFilter.prototype=Object.create(e.Base.prototype),e.CommandFilter.prototype.constructor=e.CommandFilter,e.CommandSort=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.sortString="",this.attribute="",this.order="asc",this.collection=null,this.next=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandSort),e.CommandSort.prototype=Object.create(e.Base.prototype),e.CommandSort.prototype.constructor=e.CommandSort,e.CommandInsert=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.index=0,this.collection=[],this.position="before",this.sibling=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandInsert),e.CommandInsert.prototype=Object.create(e.Base.prototype),e.CommandInsert.prototype.constructor=e.CommandInsert,e.CommandRemove=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.targets=[],this.collection=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandRemove),e.CommandRemove.prototype=Object.create(e.Base.prototype),e.CommandRemove.prototype.constructor=e.CommandRemove,e.CommandChangeLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.containerClassName="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandChangeLayout),e.CommandChangeLayout.prototype=Object.create(e.Base.prototype),e.CommandChangeLayout.prototype.constructor=e.CommandChangeLayout,e.ControlDefinition=function(t,a,i,o){e.Base.call(this),this.callActions("beforeConstruct"),this.type=t,this.selector=a,this.live=i||!1,this.parent=o||"",this.callActions("afterConstruct"),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.ControlDefinition),e.ControlDefinition.prototype=Object.create(e.Base.prototype),e.ControlDefinition.prototype.constructor=e.ControlDefinition,e.controlDefinitions=[],e.controlDefinitions.push(new e.ControlDefinition("multimix","[data-filter][data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("filter","[data-filter]")),e.controlDefinitions.push(new e.ControlDefinition("sort","[data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("toggle","[data-toggle]")),e.Control=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.selector="",this.bound=[],this.pending=-1,this.type="",this.status="inactive",this.filter="",this.sort="",this.canDisable=!1,this.handler=null,this.classNames=new e.UiClassNames,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Control),e.Control.prototype=Object.create(e.Base.prototype),n.extend(e.Control.prototype,{constructor:e.Control,init:function(t,n,a){var i=this;if(this.callActions("beforeInit",arguments),i.el=t,i.type=n,i.selector=a,i.selector)i.status="live";else switch(i.canDisable="boolean"==typeof i.el.disable,i.type){case"filter":i.filter=i.el.getAttribute("data-filter");break;case"toggle":i.filter=i.el.getAttribute("data-toggle");break;case"sort":i.sort=i.el.getAttribute("data-sort");break;case"multimix":i.filter=i.el.getAttribute("data-filter"),i.sort=i.el.getAttribute("data-sort")}i.bindClick(),e.controls.push(i),this.callActions("afterInit",arguments)},isBound:function(t){var e=this,n=!1;return this.callActions("beforeIsBound",arguments),n=e.bound.indexOf(t)>-1,e.callFilters("afterIsBound",n,arguments)},addBinding:function(t){var e=this;this.callActions("beforeAddBinding",arguments),e.isBound()||e.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var n=this,a=-1;this.callActions("beforeRemoveBinding",arguments),(a=n.bound.indexOf(t))>-1&&n.bound.splice(a,1),n.bound.length<1&&(n.unbindClick(),a=e.controls.indexOf(n),e.controls.splice(a,1),"active"===n.status&&n.renderStatus(n.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(e){t.handleClick(e)},n.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){var t=this;this.callActions("beforeUnbindClick",arguments),n.off(t.el,"click",t.handler),t.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var a=this,i=null,o=null,r=!1,s=void 0,l={},c=null,u=[],f=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,o=a.bound[0],i=a.selector?n.closestParent(t.target,o.config.selectors.control+a.selector,!0,o.dom.document):a.el,!i)return void a.callActions("afterHandleClick",arguments);switch(a.type){case"filter":l.filter=a.filter||i.getAttribute("data-filter");break;case"sort":l.sort=a.sort||i.getAttribute("data-sort");break;case"multimix":l.filter=a.filter||i.getAttribute("data-filter"),l.sort=a.sort||i.getAttribute("data-sort");break;case"toggle":l.filter=a.filter||i.getAttribute("data-toggle"),r="live"===a.status?n.hasClass(i,a.classNames.active):"active"===a.status}for(f=0;f<a.bound.length;f++)c=new e.CommandMultimix,n.extend(c,l),u.push(c);for(u=a.callFilters("commandsHandleClick",u,arguments),a.pending=a.bound.length,f=0;o=a.bound[f];f++)l=u[f],l&&(o.lastClicked||(o.lastClicked=i),e.events.fire("mixClick",o.dom.container,{state:o.state,instance:o,originalEvent:t,control:o.lastClicked},o.dom.document),"function"==typeof o.config.callbacks.onMixClick&&(s=o.config.callbacks.onMixClick.call(o.lastClicked,o.state,t,o),s===!1)||("toggle"===a.type?r?o.toggleOff(l.filter):o.toggleOn(l.filter):o.multimix(l)));this.callActions("afterHandleClick",arguments)},update:function(t,n){var a=this,i=new e.CommandMultimix;a.callActions("beforeUpdate",arguments),a.pending--,a.pending=Math.max(0,a.pending),a.pending>0||("live"===a.status?a.updateLive(t,n):(i.sort=a.sort,i.filter=a.filter,a.callFilters("actionsUpdate",i,arguments),a.parseStatusChange(a.el,t,i,n)),a.callActions("afterUpdate",arguments))},updateLive:function(t,n){var a=this,i=null,o=null,r=null,s=-1;if(a.callActions("beforeUpdateLive",arguments),a.el){for(i=a.el.querySelectorAll(a.selector),s=0;r=i[s];s++){switch(o=new e.CommandMultimix,a.type){case"filter":o.filter=r.getAttribute("data-filter");break;case"sort":o.sort=r.getAttribute("data-sort");break;case"multimix":o.filter=r.getAttribute("data-filter"),o.sort=r.getAttribute("data-sort");break;case"toggle":o.filter=r.getAttribute("data-toggle")}o=a.callFilters("actionsUpdateLive",o,arguments),a.parseStatusChange(r,t,o,n)}a.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,e,n,a){var i=this,o="",r="",s=-1;switch(i.callActions("beforeParseStatusChange",arguments),i.type){case"filter":e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"multimix":e.sort===n.sort&&e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"sort":e.sort.match(/:asc/g)&&(o=e.sort.replace(/:asc/g,"")),e.sort===n.sort||o===n.sort?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"toggle":for(a.length<1&&i.renderStatus(t,"inactive"),e.filter===n.filter&&i.renderStatus(t,"active"),s=0;s<a.length;s++){if(r=a[s],r===n.filter){i.renderStatus(t,"active");break}i.renderStatus(t,"inactive")}}i.callActions("afterParseStatusChange",arguments)},renderStatus:function(t,e){var a=this;switch(a.callActions("beforeRenderStatus",arguments),e){case"active":n.addClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"inactive":n.removeClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"disabled":a.canDisable&&(a.el.disabled=!0),n.addClass(t,a.classNames.disabled),n.removeClass(t,a.classNames.active)}"live"!==a.status&&(a.status=e),a.callActions("afterRenderStatus",arguments)}}),e.controls=[],e.StyleData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.x=0,this.y=0,this.top=0,this.right=0,this.bottom=0,this.left=0,this.width=0,this.height=0,this.marginRight=0,this.marginBottom=0,this.opacity=0,this.scale=new e.TransformData,this.translateX=new e.TransformData,this.translateY=new e.TransformData,this.translateZ=new e.TransformData,this.rotateX=new e.TransformData,this.rotateY=new e.TransformData,this.rotateZ=new e.TransformData,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.StyleData),e.StyleData.prototype=Object.create(e.Base.prototype),e.StyleData.prototype.constructor=e.StyleData,e.TransformData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.value=0,this.unit="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformData),e.TransformData.prototype=Object.create(e.Base.prototype),e.TransformData.prototype.constructor=e.TransformData,e.TransformDefaults=function(){e.StyleData.apply(this),this.callActions("beforeConstruct"),this.scale.value=.01,this.scale.unit="",this.translateX.value=20,this.translateX.unit="px",this.translateY.value=20,this.translateY.unit="px",this.translateZ.value=20,this.translateZ.unit="px",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateY.value=90,this.rotateY.unit="deg",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateZ.value=180,this.rotateZ.unit="deg",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformDefaults),e.TransformDefaults.prototype=Object.create(e.StyleData.prototype),e.TransformDefaults.prototype.constructor=e.TransformDefaults,e.transformDefaults=new e.TransformDefaults,e.EventDetail=function(){this.state=null,this.futureState=null,this.instance=null,this.originalEvent=null},e.Events=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.mixStart=null,this.mixBusy=null,this.mixEnd=null,this.mixFail=null,this.mixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Events),e.Events.prototype=Object.create(e.Base.prototype),e.Events.prototype.constructor=e.Events,e.Events.prototype.fire=function(t,a,i,o){var r=this,s=null,l=new e.EventDetail;if(r.callActions("beforeFire",arguments),"undefined"==typeof r[t])throw new Error('Event type "'+t+'" not found.');l.state=new e.State,n.extend(l.state,i.state),i.futureState&&(l.futureState=new e.State,n.extend(l.futureState,i.futureState)),l.instance=i.instance,i.originalEvent&&(l.originalEvent=i.originalEvent),s=n.getCustomEvent(t,l,o),r.callFilters("eventFire",s,arguments),a.dispatchEvent(s)},e.events=new e.Events,e.QueueItem=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.args=[],this.instruction=null,this.triggerElement=null,this.deferred=null,this.isToggling=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.QueueItem),e.QueueItem.prototype=Object.create(e.Base.prototype),e.QueueItem.prototype.constructor=e.QueueItem,e.Mixer=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.config=new e.Config,this.id="",this.isBusy=!1,this.isToggling=!1,this.incPadding=!0,this.controls=[],this.targets=[],this.origOrder=[],this.cache={},this.toggleArray=[],this.targetsMoved=0,this.targetsImmovable=0,this.targetsBound=0,this.targetsDone=0,this.staggerDuration=0,this.effectsIn=null,this.effectsOut=null,this.transformIn=[],this.transformOut=[],this.queue=[],this.state=null,this.lastOperation=null,
17
+ this.lastClicked=null,this.userCallback=null,this.userDeferred=null,this.dom=new e.MixerDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Mixer),e.Mixer.prototype=Object.create(e.Base.prototype),n.extend(e.Mixer.prototype,{constructor:e.Mixer,attach:function(a,i,o,r){var s=this,l=null,c=-1;for(s.callActions("beforeAttach",arguments),s.id=o,r&&n.extend(s.config,r,!0,!0),s.sanitizeConfig(),s.cacheDom(a,i),s.config.layout.containerClassName&&n.addClass(s.dom.container,s.config.layout.containerClassName),e.features.has.transitions||(s.config.animation.enable=!1),"undefined"==typeof t.console&&(s.config.debug.showWarnings=!1),s.config.data.uidKey&&(s.config.controls.enable=!1),s.indexTargets(),s.state=s.getInitialState(),c=0;l=s.lastOperation.toHide[c];c++)l.hide();s.config.controls.enable&&(s.initControls(),s.buildToggleArray(null,s.state),s.updateControls({filter:s.state.activeFilter,sort:s.state.activeSort})),s.parseEffects(),s.callActions("afterAttach",arguments)},sanitizeConfig:function(){var t=this;t.callActions("beforeSanitizeConfig",arguments),t.config.controls.scope=t.config.controls.scope.toLowerCase().trim(),t.config.controls.toggleLogic=t.config.controls.toggleLogic.toLowerCase().trim(),t.config.controls.toggleDefault=t.config.controls.toggleDefault.toLowerCase().trim(),t.config.animation.effects=t.config.animation.effects.trim(),t.callActions("afterSanitizeConfig",arguments)},getInitialState:function(){var t=this,n=new e.State,a=new e.Operation;if(t.callActions("beforeGetInitialState",arguments),n.activeContainerClassName=t.config.layout.containerClassName,t.config.load.dataset){if(!t.config.data.uidKey||"string"!=typeof t.config.data.uidKey)throw new TypeError(e.messages.errorConfigDataUidKeyNotSet());a.startDataset=a.newDataset=n.activeDataset=t.config.load.dataset.slice(),a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,a.show=t.targets.slice(),n=t.callFilters("stateGetInitialState",n,arguments)}else n.activeFilter=t.parseFilterArgs([t.config.load.filter]).command,n.activeSort=t.parseSortArgs([t.config.load.sort]).command,n.totalTargets=t.targets.length,n=t.callFilters("stateGetInitialState",n,arguments),n.activeSort.collection||n.activeSort.attribute||"random"===n.activeSort.order||"desc"===n.activeSort.order?(a.newSort=n.activeSort,t.sortOperation(a),t.printSort(!1,a),t.targets=a.newOrder):a.startOrder=a.newOrder=t.targets,a.startFilter=a.newFilter=n.activeFilter,a.startSort=a.newSort=n.activeSort,a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,"all"===a.newFilter.selector?a.newFilter.selector=t.config.selectors.target:"none"===a.newFilter.selector&&(a.newFilter.selector="");return a=t.callFilters("operationGetInitialState",a,[n]),t.lastOperation=a,a.newFilter&&t.filterOperation(a),n=t.buildState(a)},cacheDom:function(t,e){var n=this;n.callActions("beforeCacheDom",arguments),n.dom.document=e,n.dom.body=n.dom.document.querySelector("body"),n.dom.container=t,n.dom.parent=t,n.callActions("afterCacheDom",arguments)},indexTargets:function(){var t=this,a=null,i=null,o=null,r=-1;if(t.callActions("beforeIndexTargets",arguments),t.dom.targets=t.config.layout.allowNestedTargets?t.dom.container.querySelectorAll(t.config.selectors.target):n.children(t.dom.container,t.config.selectors.target,t.dom.document),t.dom.targets=n.arrayFromList(t.dom.targets),t.targets=[],(o=t.config.load.dataset)&&o.length!==t.dom.targets.length)throw new Error(e.messages.errorDatasetPrerenderedMismatch());if(t.dom.targets.length){for(r=0;i=t.dom.targets[r];r++)a=new e.Target,a.init(i,t,o?o[r]:void 0),a.isInDom=!0,t.targets.push(a);t.dom.parent=t.dom.targets[0].parentElement===t.dom.container?t.dom.container:t.dom.targets[0].parentElement}t.origOrder=t.targets,t.callActions("afterIndexTargets",arguments)},initControls:function(){var t=this,n="",a=null,i=null,o=null,r=null,s=null,l=-1,c=-1;switch(t.callActions("beforeInitControls",arguments),t.config.controls.scope){case"local":o=t.dom.container;break;case"global":o=t.dom.document;break;default:throw new Error(e.messages.errorConfigInvalidControlsScope())}for(l=0;n=e.controlDefinitions[l];l++)if(t.config.controls.live||n.live){if(n.parent){if(r=t.dom[n.parent],!r||r.length<0)continue;"number"!=typeof r.length&&(r=[r])}else r=[o];for(c=0;i=r[c];c++)s=t.getControl(i,n.type,n.selector),t.controls.push(s)}else for(a=o.querySelectorAll(t.config.selectors.control+n.selector),c=0;i=a[c];c++)s=t.getControl(i,n.type,""),s&&t.controls.push(s);t.callActions("afterInitControls",arguments)},getControl:function(t,a,i){var o=this,r=null,s=-1;if(o.callActions("beforeGetControl",arguments),!i)for(s=0;r=e.controls[s];s++){if(r.el===t&&r.isBound(o))return o.callFilters("controlGetControl",null,arguments);if(r.el===t&&r.type===a&&r.selector===i)return r.addBinding(o),o.callFilters("controlGetControl",r,arguments)}return r=new e.Control,r.init(t,a,i),r.classNames.base=n.getClassname(o.config.classNames,a),r.classNames.active=n.getClassname(o.config.classNames,a,o.config.classNames.modifierActive),r.classNames.disabled=n.getClassname(o.config.classNames,a,o.config.classNames.modifierDisabled),r.addBinding(o),o.callFilters("controlGetControl",r,arguments)},getToggleSelector:function(){var t=this,e="or"===t.config.controls.toggleLogic?", ":"",a="";return t.callActions("beforeGetToggleSelector",arguments),t.toggleArray=n.clean(t.toggleArray),a=t.toggleArray.join(e),""===a&&(a=t.config.controls.toggleDefault),t.callFilters("selectorGetToggleSelector",a,arguments)},buildToggleArray:function(t,e){var a=this,i="";if(a.callActions("beforeBuildToggleArray",arguments),t&&t.filter)i=t.filter.selector.replace(/\s/g,"");else{if(!e)return;i=e.activeFilter.selector.replace(/\s/g,"")}i!==a.config.selectors.target&&"all"!==i||(i=""),"or"===a.config.controls.toggleLogic?a.toggleArray=i.split(","):a.toggleArray=a.splitCompoundSelector(i),a.toggleArray=n.clean(a.toggleArray),a.callActions("afterBuildToggleArray",arguments)},splitCompoundSelector:function(t){var e=t.split(/([\.\[])/g),n=[],a="",i=-1;for(""===e[0]&&e.shift(),i=0;i<e.length;i++)i%2===0&&(a=""),a+=e[i],i%2!==0&&n.push(a);return n},updateControls:function(t){var a=this,i=null,o=new e.CommandMultimix,r=-1;for(a.callActions("beforeUpdateControls",arguments),t.filter?o.filter=t.filter.selector:o.filter=a.state.activeFilter.selector,t.sort?o.sort=a.buildSortString(t.sort):o.sort=a.buildSortString(a.state.activeSort),o.filter===a.config.selectors.target&&(o.filter="all"),""===o.filter&&(o.filter="none"),n.freeze(o),r=0;i=a.controls[r];r++)i.update(o,a.toggleArray);a.callActions("afterUpdateControls",arguments)},buildSortString:function(t){var e=this,n="";return n+=t.sortString,t.next&&(n+=" "+e.buildSortString(t.next)),n},insertTargets:function(t,a){var i=this,o=null,r=-1,s=null,l=null,c=null,u=-1;if(i.callActions("beforeInsertTargets",arguments),"undefined"==typeof t.index&&(t.index=0),o=i.getNextSibling(t.index,t.sibling,t.position),s=i.dom.document.createDocumentFragment(),r=o?n.index(o,i.config.selectors.target):i.targets.length,t.collection){for(u=0;c=t.collection[u];u++){if(i.dom.targets.indexOf(c)>-1)throw new Error(e.messages.errorInsertPreexistingElement());c.style.display="none",s.appendChild(c),s.appendChild(i.dom.document.createTextNode(" ")),n.isElement(c,i.dom.document)&&c.matches(i.config.selectors.target)&&(l=new e.Target,l.init(c,i),l.isInDom=!0,i.targets.splice(r,0,l),r++)}i.dom.parent.insertBefore(s,o)}a.startOrder=i.origOrder=i.targets,i.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,e,n){var a=this,i=null;return t=Math.max(t,0),e&&"before"===n?i=e:e&&"after"===n?i=e.nextElementSibling||null:a.targets.length>0&&"undefined"!=typeof t?i=t<a.targets.length||!a.targets.length?a.targets[t].dom.el:a.targets[a.targets.length-1].dom.el.nextElementSibling:0===a.targets.length&&a.dom.parent.children.length>0&&(a.config.layout.siblingAfter?i=a.config.layout.siblingAfter:a.config.layout.siblingBefore?i=a.config.layout.siblingBefore.nextElementSibling:a.dom.parent.children[0]),a.callFilters("elementGetNextSibling",i,arguments)},filterOperation:function(t){var e=this,n=!1,a=-1,i="",o=null,r=-1;for(e.callActions("beforeFilterOperation",arguments),i=t.newFilter.action,r=0;o=t.newOrder[r];r++)n=t.newFilter.collection?t.newFilter.collection.indexOf(o.dom.el)>-1:""!==t.newFilter.selector&&o.dom.el.matches(t.newFilter.selector),e.evaluateHideShow(n,o,i,t);if(t.toRemove.length)for(r=0;o=t.show[r];r++)t.toRemove.indexOf(o)>-1&&(t.show.splice(r,1),(a=t.toShow.indexOf(o))>-1&&t.toShow.splice(a,1),t.toHide.push(o),t.hide.push(o),r--);t.matching=t.show.slice(),0===t.show.length&&""!==t.newFilter.selector&&0!==e.targets.length&&(t.hasFailed=!0),e.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,e,n,a){var i=this,o=!1,r=Array.prototype.slice.call(arguments,1);o=i.callFilters("testResultEvaluateHideShow",t,r),i.callActions("beforeEvaluateHideShow",arguments),o===!0&&"show"===n||o===!1&&"hide"===n?(a.show.push(e),!e.isShown&&a.toShow.push(e)):(a.hide.push(e),e.isShown&&a.toHide.push(e)),i.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var e=this;e.callActions("beforeSortOperation",arguments),t.startOrder=e.targets,t.newSort.collection?t.newOrder=t.newSort.collection:"random"===t.newSort.order?t.newOrder=n.arrayShuffle(t.startOrder):""===t.newSort.attribute?(t.newOrder=e.origOrder.slice(),"desc"===t.newSort.order&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(n,a){return e.compare(n,a,t.newSort)})),n.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),e.callActions("afterSortOperation",arguments)},compare:function(t,e,n){var a=this,i=n.order,o=a.getAttributeValue(t,n.attribute),r=a.getAttributeValue(e,n.attribute);return isNaN(1*o)||isNaN(1*r)?(o=o.toLowerCase(),r=r.toLowerCase()):(o=1*o,r=1*r),o<r?"asc"===i?-1:1:o>r?"asc"===i?1:-1:o===r&&n.next?a.compare(t,e,n.next):0},getAttributeValue:function(t,n){var a=this,i="";return i=t.dom.el.getAttribute("data-"+n),null===i&&a.config.debug.showWarnings&&console.warn(e.messages.warningInconsistentSortingAttributes({attribute:"data-"+n})),a.callFilters("valueGetAttributeValue",i||0,arguments)},printSort:function(e,a){var i=this,o=e?a.newOrder:a.startOrder,r=e?a.startOrder:a.newOrder,s=o.length?o[o.length-1].dom.el.nextElementSibling:null,l=t.document.createDocumentFragment(),c=null,u=null,f=null,h=-1;for(i.callActions("beforePrintSort",arguments),h=0;u=o[h];h++)f=u.dom.el,"absolute"!==f.style.position&&(n.removeWhitespace(f.previousSibling),f.parentElement.removeChild(f));for(c=s?s.previousSibling:i.dom.parent.lastChild,c&&"#text"===c.nodeName&&n.removeWhitespace(c),h=0;u=r[h];h++)f=u.dom.el,n.isElement(l.lastChild)&&l.appendChild(t.document.createTextNode(" ")),l.appendChild(f);i.dom.parent.firstChild&&i.dom.parent.firstChild!==s&&l.insertBefore(t.document.createTextNode(" "),l.childNodes[0]),s?(l.appendChild(t.document.createTextNode(" ")),i.dom.parent.insertBefore(l,s)):i.dom.parent.appendChild(l),i.callActions("afterPrintSort",arguments)},parseSortString:function(t,a){var i=this,o=t.split(" "),r=a,s=[],l=-1;for(l=0;l<o.length;l++){switch(s=o[l].split(":"),r.sortString=o[l],r.attribute=n.dashCase(s[0]),r.order=s[1]||"asc",r.attribute){case"default":r.attribute="";break;case"random":r.attribute="",r.order="random"}if(!r.attribute||"random"===r.order)break;l<o.length-1&&(r.next=new e.CommandSort,n.freeze(r),r=r.next)}return i.callFilters("commandsParseSort",a,arguments)},parseEffects:function(){var t=this,n="",a=t.config.animation.effectsIn||t.config.animation.effects,i=t.config.animation.effectsOut||t.config.animation.effects;t.callActions("beforeParseEffects",arguments),t.effectsIn=new e.StyleData,t.effectsOut=new e.StyleData,t.transformIn=[],t.transformOut=[],t.effectsIn.opacity=t.effectsOut.opacity=1,t.parseEffect("fade",a,t.effectsIn,t.transformIn),t.parseEffect("fade",i,t.effectsOut,t.transformOut,!0);for(n in e.transformDefaults)e.transformDefaults[n]instanceof e.TransformData&&(t.parseEffect(n,a,t.effectsIn,t.transformIn),t.parseEffect(n,i,t.effectsOut,t.transformOut,!0));t.parseEffect("stagger",a,t.effectsIn,t.transformIn),t.parseEffect("stagger",i,t.effectsOut,t.transformOut,!0),t.callActions("afterParseEffects",arguments)},parseEffect:function(t,n,a,i,o){var r=this,s=/\(([^)]+)\)/,l=-1,c="",u=[],f="",h=["%","px","em","rem","vh","vw","deg"],d="",m=-1;if(r.callActions("beforeParseEffect",arguments),"string"!=typeof n)throw new TypeError(e.messages.errorConfigInvalidAnimationEffects());if(n.indexOf(t)<0)return void("stagger"===t&&(r.staggerDuration=0));switch(l=n.indexOf(t+"("),l>-1&&(c=n.substring(l),u=s.exec(c),f=u[1]),t){case"fade":a.opacity=f?parseFloat(f):0;break;case"stagger":r.staggerDuration=f?parseFloat(f):100;break;default:if(o&&r.config.animation.reverseOut&&"scale"!==t?a[t].value=(f?parseFloat(f):e.transformDefaults[t].value)*-1:a[t].value=f?parseFloat(f):e.transformDefaults[t].value,f){for(m=0;d=h[m];m++)if(f.indexOf(d)>-1){a[t].unit=d;break}}else a[t].unit=e.transformDefaults[t].unit;i.push(t+"("+a[t].value+a[t].unit+")")}r.callActions("afterParseEffect",arguments)},buildState:function(t){var n=this,a=new e.State,i=null,o=-1;for(n.callActions("beforeBuildState",arguments),o=0;i=n.targets[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.targets.push(i.dom.el);for(o=0;i=t.matching[o];o++)a.matching.push(i.dom.el);for(o=0;i=t.show[o];o++)a.show.push(i.dom.el);for(o=0;i=t.hide[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.hide.push(i.dom.el);return a.id=n.id,a.container=n.dom.container,a.activeFilter=t.newFilter,a.activeSort=t.newSort,a.activeDataset=t.newDataset,a.activeContainerClassName=t.newContainerClassName,a.hasFailed=t.hasFailed,a.totalTargets=n.targets.length,a.totalShow=t.show.length,a.totalHide=t.hide.length,a.totalMatching=t.matching.length,a.triggerElement=t.triggerElement,n.callFilters("stateBuildState",a,arguments)},goMix:function(a,i){var o=this,r=null;return o.callActions("beforeGoMix",arguments),o.config.animation.duration&&o.config.animation.effects&&n.isVisible(o.dom.container)||(a=!1),i.toShow.length||i.toHide.length||i.willSort||i.willChangeLayout||(a=!1),i.startState.show.length||i.show.length||(a=!1),e.events.fire("mixStart",o.dom.container,{state:i.startState,futureState:i.newState,instance:o},o.dom.document),"function"==typeof o.config.callbacks.onMixStart&&o.config.callbacks.onMixStart.call(o.dom.container,i.startState,i.newState,o),n.removeClass(o.dom.container,n.getClassname(o.config.classNames,"container",o.config.classNames.modifierFailed)),r=o.userDeferred?o.userDeferred:o.userDeferred=n.defer(e.libraries),o.isBusy=!0,a&&e.features.has.transitions?(t.pageYOffset!==i.docState.scrollTop&&t.scrollTo(i.docState.scrollLeft,i.docState.scrollTop),o.config.animation.applyPerspective&&(o.dom.parent.style[e.features.perspectiveProp]=o.config.animation.perspectiveDistance,o.dom.parent.style[e.features.perspectiveOriginProp]=o.config.animation.perspectiveOrigin),o.config.animation.animateResizeContainer&&i.startHeight!==i.newHeight&&i.viewportDeltaY!==i.startHeight-i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),o.config.animation.animateResizeContainer&&i.startWidth!==i.newWidth&&i.viewportDeltaX!==i.startWidth-i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),i.startWidth===i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&i.startWidth===i.newWidth&&(o.dom.parent.style.overflow="hidden"),requestAnimationFrame(function(){o.moveTargets(i)}),o.callFilters("promiseGoMix",r.promise,arguments)):(o.config.debug.fauxAsync?setTimeout(function(){o.cleanUp(i)},o.config.animation.duration):o.cleanUp(i),o.callFilters("promiseGoMix",r.promise,arguments))},getStartMixData:function(n){var a=this,i=t.getComputedStyle(a.dom.parent),o=a.dom.parent.getBoundingClientRect(),r=null,s={},l=-1,c=i[e.features.boxSizingProp];for(a.incPadding="border-box"===c,a.callActions("beforeGetStartMixData",arguments),l=0;r=n.show[l];l++)s=r.getPosData(),n.showPosData[l]={startPosData:s};for(l=0;r=n.toHide[l];l++)s=r.getPosData(),n.toHidePosData[l]={startPosData:s};n.startX=o.left,n.startY=o.top,n.startHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),n.startWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),a.callActions("afterGetStartMixData",arguments)},setInter:function(t){var e=this,a=null,i=-1;for(e.callActions("beforeSetInter",arguments),e.config.animation.clampHeight&&(e.dom.parent.style.height=t.startHeight+"px",e.dom.parent.style.overflow="hidden"),e.config.animation.clampWidth&&(e.dom.parent.style.width=t.startWidth+"px",e.dom.parent.style.overflow="hidden"),i=0;a=t.toShow[i];i++)a.show();t.willChangeLayout&&(n.removeClass(e.dom.container,t.startContainerClassName),n.addClass(e.dom.container,t.newContainerClassName)),e.callActions("afterSetInter",arguments)},getInterMixData:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeGetInterMixData",arguments),a=0;n=t.show[a];a++)t.showPosData[a].interPosData=n.getPosData();for(a=0;n=t.toHide[a];a++)t.toHidePosData[a].interPosData=n.getPosData();e.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeSetFinal",arguments),t.willSort&&e.printSort(!1,t),a=0;n=t.toHide[a];a++)n.hide();e.callActions("afterSetFinal",arguments)},getFinalMixData:function(e){var a=this,i=null,o=null,r=null,s=-1;for(a.callActions("beforeGetFinalMixData",arguments),s=0;r=e.show[s];s++)e.showPosData[s].finalPosData=r.getPosData();for(s=0;r=e.toHide[s];s++)e.toHidePosData[s].finalPosData=r.getPosData();for((a.config.animation.clampHeight||a.config.animation.clampWidth)&&(a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=""),a.incPadding||(i=t.getComputedStyle(a.dom.parent)),o=a.dom.parent.getBoundingClientRect(),e.newX=o.left,e.newY=o.top,e.newHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),e.newWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),e.viewportDeltaX=e.docState.viewportWidth-this.dom.document.documentElement.clientWidth,e.viewportDeltaY=e.docState.viewportHeight-this.dom.document.documentElement.clientHeight,e.willSort&&a.printSort(!0,e),s=0;r=e.toShow[s];s++)r.hide();for(s=0;r=e.toHide[s];s++)r.show();e.willChangeLayout&&(n.removeClass(a.dom.container,e.newContainerClassName),n.addClass(a.dom.container,a.config.layout.containerClassName)),a.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var n=this,a=null,i=null,o=Object.getOwnPropertyNames(n.effectsIn),r="",s=null,l=-1,c=-1,u=-1,f=-1;for(n.callActions("beforeGetTweenData",arguments),u=0;a=t.show[u];u++)for(i=t.showPosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,a.isShown?(i.posIn.x=i.startPosData.x-i.interPosData.x,i.posIn.y=i.startPosData.y-i.interPosData.y):i.posIn.x=i.posIn.y=0,i.posOut.x=i.finalPosData.x-i.interPosData.x,i.posOut.y=i.finalPosData.y-i.interPosData.y,i.posIn.opacity=a.isShown?1:n.effectsIn.opacity,i.posOut.opacity=1,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,a.isShown||n.config.animation.nudge||(i.posIn.x=i.posOut.x,i.posIn.y=i.posOut.y),i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=(i.startPosData.width||i.finalPosData.width)-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=(i.startPosData.height||i.finalPosData.height)-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c,i.posOut.width=i.finalPosData.width,i.posOut.height=i.finalPosData.height,l=(i.finalPosData.width||i.startPosData.width)-i.interPosData.width,i.posOut.marginRight=i.finalPosData.marginRight-l,c=(i.finalPosData.height||i.startPosData.height)-i.interPosData.height,i.posOut.marginBottom=i.finalPosData.marginBottom-c,i.tweenData.width=i.posOut.width-i.posIn.width,i.tweenData.height=i.posOut.height-i.posIn.height,i.tweenData.marginRight=i.posOut.marginRight-i.posIn.marginRight,i.tweenData.marginBottom=i.posOut.marginBottom-i.posIn.marginBottom),f=0;r=o[f];f++)s=n.effectsIn[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=s.value,i.posOut[r].value=0,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);for(u=0;a=t.toHide[u];u++)for(i=t.toHidePosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,i.posIn.x=a.isShown?i.startPosData.x-i.interPosData.x:0,i.posIn.y=a.isShown?i.startPosData.y-i.interPosData.y:0,i.posOut.x=n.config.animation.nudge?0:i.posIn.x,i.posOut.y=n.config.animation.nudge?0:i.posIn.y,i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=i.startPosData.width-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=i.startPosData.height-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c),i.posIn.opacity=1,i.posOut.opacity=n.effectsOut.opacity,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,f=0;r=o[f];f++)s=n.effectsOut[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=0,i.posOut[r].value=s.value,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);n.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var a=this,i=null,o=null,r=null,s="",l=!1,c=-1,u=-1,f=a.checkProgress.bind(a);for(a.callActions("beforeMoveTargets",arguments),u=0;i=t.show[u];u++)o=new e.IMoveData,r=t.showPosData[u],s=i.isShown?"none":"show",l=a.willTransition(s,t.hasEffect,r.posIn,r.posOut),l&&c++,i.show(),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=c,o.operation=t,o.callback=l?f:null,i.move(o);for(u=0;i=t.toHide[u];u++)r=t.toHidePosData[u],o=new e.IMoveData,s="hide",l=a.willTransition(s,r.posIn,r.posOut),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=u,o.operation=t,o.callback=l?f:null,i.move(o);a.config.animation.animateResizeContainer&&(a.dom.parent.style[e.features.transitionProp]="height "+a.config.animation.duration+"ms ease, width "+a.config.animation.duration+"ms ease ",requestAnimationFrame(function(){t.startHeight!==t.newHeight&&t.viewportDeltaY!==t.startHeight-t.newHeight&&(a.dom.parent.style.height=t.newHeight+"px"),t.startWidth!==t.newWidth&&t.viewportDeltaX!==t.startWidth-t.newWidth&&(a.dom.parent.style.width=t.newWidth+"px")})),t.willChangeLayout&&(n.removeClass(a.dom.container,a.config.layout.ContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),a.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=this,e=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],n="",a=null,i=!1,o=-1,r=-1;if(1!==t.effectsIn.opacity)return t.callFilters("resultHasEffect",!0,arguments);for(r=0;n=e[r];r++)if(a=t.effectsIn[n],o="undefined"!==a.value?a.value:a,0!==o){i=!0;break}return t.callFilters("resultHasEffect",i,arguments)},willTransition:function(t,e,a,i){var o=this,r=!1;return r=!!n.isVisible(o.dom.container)&&(!!("none"!==t&&e||a.x!==i.x||a.y!==i.y)||!!o.config.animation.animateResizeTargets&&(a.width!==i.width||a.height!==i.height||a.marginRight!==i.marginRight||a.marginTop!==i.marginTop)),o.callFilters("resultWillTransition",r,arguments)},checkProgress:function(t){var e=this;e.targetsDone++,e.targetsBound===e.targetsDone&&e.cleanUp(t)},cleanUp:function(t){var a=this,i=null,o=null,r=null,s=null,l=-1;for(a.callActions("beforeCleanUp",arguments),a.targetsMoved=a.targetsImmovable=a.targetsBound=a.targetsDone=0,l=0;i=t.show[l];l++)i.cleanUp(),i.show();for(l=0;i=t.toHide[l];l++)i.cleanUp(),i.hide();if(t.willSort&&a.printSort(!1,t),a.dom.parent.style[e.features.transitionProp]=a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=a.dom.parent.style[e.features.perspectiveProp]=a.dom.parent.style[e.features.perspectiveOriginProp]="",t.willChangeLayout&&(n.removeClass(a.dom.container,t.startContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),t.toRemove.length){for(l=0;i=a.targets[l];l++)t.toRemove.indexOf(i)>-1&&((o=i.dom.el.previousSibling)&&"#text"===o.nodeName&&(r=i.dom.el.nextSibling)&&"#text"===r.nodeName&&n.removeWhitespace(o),t.willSort||a.dom.parent.removeChild(i.dom.el),a.targets.splice(l,1),i.isInDom=!1,l--);a.origOrder=a.targets}t.willSort&&(a.targets=t.newOrder),a.state=t.newState,a.lastOperation=t,a.dom.targets=a.state.targets,e.events.fire("mixEnd",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixEnd&&a.config.callbacks.onMixEnd.call(a.dom.container,a.state,a),t.hasFailed&&(e.events.fire("mixFail",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixFail&&a.config.callbacks.onMixFail.call(a.dom.container,a.state,a),n.addClass(a.dom.container,n.getClassname(a.config.classNames,"container",a.config.classNames.modifierFailed))),"function"==typeof a.userCallback&&a.userCallback.call(a.dom.container,a.state,a),"function"==typeof a.userDeferred.resolve&&a.userDeferred.resolve(a.state),a.userCallback=null,a.userDeferred=null,a.lastClicked=null,a.isToggling=!1,a.isBusy=!1,a.queue.length&&(a.callActions("beforeReadQueueCleanUp",arguments),s=a.queue.shift(),a.userDeferred=s.deferred,a.isToggling=s.isToggling,a.lastClicked=s.triggerElement,s.instruction.command instanceof e.CommandMultimix?a.multimix.apply(a,s.args):a.dataset.apply(a,s.args)),a.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandMultimix,r=0;r<t.length;r++)o=t[r],null!==o&&("object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));return!i.command.insert||i.command.insert instanceof e.CommandInsert||(i.command.insert=a.parseInsertArgs([i.command.insert]).command),!i.command.remove||i.command.remove instanceof e.CommandRemove||(i.command.remove=a.parseRemoveArgs([i.command.remove]).command),!i.command.filter||i.command.filter instanceof e.CommandFilter||(i.command.filter=a.parseFilterArgs([i.command.filter]).command),!i.command.sort||i.command.sort instanceof e.CommandSort||(i.command.sort=a.parseSortArgs([i.command.sort]).command),!i.command.changeLayout||i.command.changeLayout instanceof e.CommandChangeLayout||(i.command.changeLayout=a.parseChangeLayoutArgs([i.command.changeLayout]).command),i=a.callFilters("instructionParseMultimixArgs",i,arguments),n.freeze(i),i},parseFilterArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandFilter,r=0;r<t.length;r++)o=t[r],"string"==typeof o?i.command.selector=o:null===o?i.command.collection=[]:"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection=[o]:"object"==typeof o&&"undefined"!=typeof o.length?i.command.collection=n.arrayFromList(o):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o);if(i.command.selector&&i.command.collection)throw new Error(e.messages.errorFilterInvalidArguments());return i=a.callFilters("instructionParseFilterArgs",i,arguments),n.freeze(i),i},parseSortArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r="",s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandSort,s=0;s<t.length;s++)if(o=t[s],null!==o)switch(typeof o){case"string":r=o;break;case"object":o.length&&(i.command.collection=n.arrayFromList(o));break;case"boolean":i.animate=o;break;case"function":i.callback=o}return r&&(i.command=a.parseSortString(r,i.command)),i=a.callFilters("instructionParseSortArgs",i,arguments),n.freeze(i),i},parseInsertArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandInsert,r=0;r<t.length;r++)o=t[r],null!==o&&("number"==typeof o?i.command.index=o:"string"==typeof o&&["before","after"].indexOf(o)>-1?i.command.position=o:"string"==typeof o?i.command.collection=n.arrayFromList(n.createElement(o).childNodes):"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection.length?i.command.sibling=o:i.command.collection=[o]:"object"==typeof o&&o.length?i.command.collection.length?i.command.sibling=o[0]:i.command.collection=o:"object"==typeof o&&o.childNodes&&o.childNodes.length?i.command.collection.length?i.command.sibling=o.childNodes[0]:i.command.collection=n.arrayFromList(o.childNodes):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));if(i.command.index&&i.command.sibling)throw new Error(e.messages.errorInsertInvalidArguments());return!i.command.collection.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningInsertNoElements()),i=a.callFilters("instructionParseInsertArgs",i,arguments),n.freeze(i),i},parseRemoveArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=null,s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandRemove,s=0;s<t.length;s++)if(r=t[s],null!==r)switch(typeof r){case"number":a.targets[r]&&(i.command.targets[0]=a.targets[r]);break;case"string":i.command.collection=n.arrayFromList(a.dom.parent.querySelectorAll(r));break;case"object":r&&r.length?i.command.collection=r:n.isElement(r,a.dom.document)?i.command.collection=[r]:n.extend(i.command,r);break;case"boolean":i.animate=r;break;case"function":i.callback=r}if(i.command.collection.length)for(s=0;o=a.targets[s];s++)i.command.collection.indexOf(o.dom.el)>-1&&i.command.targets.push(o);return!i.command.targets.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningRemoveNoElements()),n.freeze(i),i},parseDatasetArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandDataset,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"object":Array.isArray(o)||"number"==typeof o.length?i.command.dataset=o:n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},parseChangeLayoutArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandChangeLayout,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"string":i.command.containerClassName=o;break;case"object":n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},queueMix:function(t){var a=this,i=null,o="";return a.callActions("beforeQueueMix",arguments),i=n.defer(e.libraries),a.config.animation.queue&&a.queue.length<a.config.animation.queueLimit?(t.deferred=i,a.queue.push(t),a.config.controls.enable&&(a.isToggling?(a.buildToggleArray(t.instruction.command),o=a.getToggleSelector(),a.updateControls({filter:{selector:o}})):a.updateControls(t.instruction.command))):(a.config.debug.showWarnings&&console.warn(e.messages.warningMultimixInstanceQueueFull()),i.resolve(a.state),e.events.fire("mixBusy",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixBusy&&a.config.callbacks.onMixBusy.call(a.dom.container,a.state,a)),a.callFilters("promiseQueueMix",i.promise,arguments)},getDataOperation:function(t){var a=this,i=new e.Operation,o=[];if(i=a.callFilters("operationUnmappedGetDataOperation",i,arguments),
18
+ a.dom.targets.length&&!(o=a.state.activeDataset||[]).length)throw new Error(e.messages.errorDatasetNotSet());return i.id=n.randomHex(),i.startState=a.state,i.startDataset=o,i.newDataset=t.slice(),a.diffDatasets(i),i.startOrder=a.targets,i.newOrder=i.show,a.config.animation.enable&&(a.getStartMixData(i),a.setInter(i),i.docState=n.getDocumentState(a.dom.document),a.getInterMixData(i),a.setFinal(i),a.getFinalMixData(i),a.parseEffects(),i.hasEffect=a.hasEffect(),a.getTweenData(i)),a.targets=i.show.slice(),i.newState=a.buildState(i),Array.prototype.push.apply(a.targets,i.toRemove),i=a.callFilters("operationMappedGetDataOperation",i,arguments)},diffDatasets:function(t){var a=this,i=[],o=[],r=[],s=null,l=null,c=null,u=null,f=null,h={},d="",m=-1;for(a.callActions("beforeDiffDatasets",arguments),m=0;s=t.newDataset[m];m++){if("undefined"==typeof(d=s[a.config.data.uidKey])||d.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:a.config.data.uidKey}));if(h[d])throw new Error(e.messages.errorDatasetDuplicateUid({uid:d}));h[d]=!0,(l=a.cache[d])instanceof e.Target?(a.config.data.dirtyCheck&&!n.deepEquals(s,l.data)&&(c=l.render(s),l.data=s,c!==l.dom.el&&(l.isInDom&&(l.unbindEvents(),a.dom.parent.replaceChild(c,l.dom.el)),l.isShown||(c.style.display="none"),l.dom.el=c,l.isInDom&&l.bindEvents())),c=l.dom.el):(l=new e.Target,l.init(null,a,s),l.hide()),l.isInDom?(f=l.dom.el.nextElementSibling,o.push(d),u&&(u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,l.dom.el,r),u=null)):(u||(u=a.dom.document.createDocumentFragment()),u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),u.appendChild(l.dom.el),l.isInDom=!0,l.unbindEvents(),l.bindEvents(),l.hide(),t.toShow.push(l),r.push(l)),t.show.push(l)}for(u&&(f=f||a.config.layout.siblingAfter,f&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,f,r)),m=0;s=t.startDataset[m];m++)d=s[a.config.data.uidKey],l=a.cache[d],t.show.indexOf(l)<0?(t.hide.push(l),t.toHide.push(l),t.toRemove.push(l)):i.push(d);n.isEqualArray(i,o)||(t.willSort=!0),a.callActions("afterDiffDatasets",arguments)},insertDatasetFrag:function(t,e,n){var a=this,i=e?Array.from(a.dom.parent.children).indexOf(e):a.targets.length;for(a.dom.parent.insertBefore(t,e);n.length;)a.targets.splice(i,0,n.shift()),i++},willSort:function(t,e){var n=this,a=!1;return a=!!(n.config.behavior.liveSort||"random"===t.order||t.attribute!==e.attribute||t.order!==e.order||t.collection!==e.collection||null===t.next&&e.next||t.next&&null===e.next)||!(!t.next||!e.next)&&n.willSort(t.next,e.next),n.callFilters("resultWillSort",a,arguments)},show:function(){var t=this;return t.filter("all")},hide:function(){var t=this;return t.filter("none")},isMixing:function(){var t=this;return t.isBusy},filter:function(){var t=this,e=t.parseFilterArgs(arguments);return t.multimix({filter:e.command},e.animate,e.callback)},toggleOn:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a="";return t.isToggling=!0,t.toggleArray.indexOf(n)<0&&t.toggleArray.push(n),a=t.getToggleSelector(),t.multimix({filter:a},e.animate,e.callback)},toggleOff:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a=t.toggleArray.indexOf(n),i="";return t.isToggling=!0,a>-1&&t.toggleArray.splice(a,1),i=t.getToggleSelector(),t.multimix({filter:i},e.animate,e.callback)},sort:function(){var t=this,e=t.parseSortArgs(arguments);return t.multimix({sort:e.command},e.animate,e.callback)},changeLayout:function(){var t=this,e=t.parseChangeLayoutArgs(arguments);return t.multimix({changeLayout:e.command},e.animate,e.callback)},dataset:function(){var t=this,n=t.parseDatasetArgs(arguments),a=null,i=null,o=!1;return t.callActions("beforeDataset",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=n,t.queueMix(i)):(n.callback&&(t.userCallback=n.callback),o=n.animate^t.config.animation.enable?n.animate:t.config.animation.enable,a=t.getDataOperation(n.command.dataset),t.goMix(o,a))},multimix:function(){var t=this,n=null,a=!1,i=null,o=t.parseMultimixArgs(arguments);return t.callActions("beforeMultimix",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=o,i.triggerElement=t.lastClicked,i.isToggling=t.isToggling,t.queueMix(i)):(n=t.getOperation(o.command),t.config.controls.enable&&(o.command.filter&&!t.isToggling&&(t.toggleArray.length=0,t.buildToggleArray(n.command)),t.queue.length<1&&t.updateControls(n.command)),o.callback&&(t.userCallback=o.callback),a=o.animate^t.config.animation.enable?o.animate:t.config.animation.enable,t.callFilters("operationMultimix",n,arguments),t.goMix(a,n))},getOperation:function(t){var a=this,i=t.sort,o=t.filter,r=t.changeLayout,s=t.remove,l=t.insert,c=new e.Operation;return c=a.callFilters("operationUnmappedGetOperation",c,arguments),c.id=n.randomHex(),c.command=t,c.startState=a.state,c.triggerElement=a.lastClicked,a.isBusy?(a.config.debug.showWarnings&&console.warn(e.messages.warningGetOperationInstanceBusy()),null):(l&&a.insertTargets(l,c),s&&(c.toRemove=s.targets),c.startSort=c.newSort=c.startState.activeSort,c.startOrder=c.newOrder=a.targets,i&&(c.startSort=c.startState.activeSort,c.newSort=i,c.willSort=a.willSort(i,c.startState.activeSort),c.willSort&&a.sortOperation(c)),c.startFilter=c.startState.activeFilter,o?c.newFilter=o:c.newFilter=n.extend(new e.CommandFilter,c.startFilter),"all"===c.newFilter.selector?c.newFilter.selector=a.config.selectors.target:"none"===c.newFilter.selector&&(c.newFilter.selector=""),a.filterOperation(c),c.startContainerClassName=c.startState.activeContainerClassName,r?(c.newContainerClassName=r.containerClassName,c.newContainerClassName!==c.startContainerClassName&&(c.willChangeLayout=!0)):c.newContainerClassName=c.startContainerClassName,a.config.animation.enable&&(a.getStartMixData(c),a.setInter(c),c.docState=n.getDocumentState(a.dom.document),a.getInterMixData(c),a.setFinal(c),a.getFinalMixData(c),a.parseEffects(),c.hasEffect=a.hasEffect(),a.getTweenData(c)),c.willSort&&(a.targets=c.newOrder),c.newState=a.buildState(c),a.callFilters("operationMappedGetOperation",c,arguments))},tween:function(t,e){var n=null,a=null,i=-1,o=-1;for(e=Math.min(e,1),e=Math.max(e,0),o=0;n=t.show[o];o++)a=t.showPosData[o],n.applyTween(a,e);for(o=0;n=t.hide[o];o++)n.isShown&&n.hide(),(i=t.toHide.indexOf(n))>-1&&(a=t.toHidePosData[i],n.isShown||n.show(),n.applyTween(a,e))},insert:function(){var t=this,e=t.parseInsertArgs(arguments);return t.multimix({insert:e.command},e.animate,e.callback)},insertBefore:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"before",e.command.sibling,e.animate,e.callback)},insertAfter:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"after",e.command.sibling,e.animate,e.callback)},prepend:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(0,e.command.collection,e.animate,e.callback)},append:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(t.state.totalTargets,e.command.collection,e.animate,e.callback)},remove:function(){var t=this,e=t.parseRemoveArgs(arguments);return t.multimix({remove:e.command},e.animate,e.callback)},getConfig:function(t){var e=this,a=null;return a=t?n.getProperty(e.config,t):e.config,e.callFilters("valueGetConfig",a,arguments)},configure:function(t){var e=this;e.callActions("beforeConfigure",arguments),n.extend(e.config,t,!0,!0),e.callActions("afterConfigure",arguments)},getState:function(){var t=this,a=null;return a=new e.State,n.extend(a,t.state),n.freeze(a),t.callFilters("stateGetState",a,arguments)},forceRefresh:function(){var t=this;t.indexTargets()},forceRender:function(){var t=this,e=null,n=null,a="";for(a in t.cache)e=t.cache[a],n=e.render(e.data),n!==e.dom.el&&(e.isInDom&&(e.unbindEvents(),t.dom.parent.replaceChild(n,e.dom.el)),e.isShown||(n.style.display="none"),e.dom.el=n,e.isInDom&&e.bindEvents());t.state=t.buildState(t.lastOperation)},destroy:function(t){var n=this,a=null,i=null,o=0;for(n.callActions("beforeDestroy",arguments),o=0;a=n.controls[o];o++)a.removeBinding(n);for(o=0;i=n.targets[o];o++)t&&i.show(),i.unbindEvents();n.dom.container.id.match(/^MixItUp/)&&n.dom.container.removeAttribute("id"),delete e.instances[n.id],n.callActions("afterDestroy",arguments)}}),e.IMoveData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.IMoveData),e.IMoveData.prototype=Object.create(e.Base.prototype),e.IMoveData.prototype.constructor=e.IMoveData,e.TargetDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TargetDom),e.TargetDom.prototype=Object.create(e.Base.prototype),e.TargetDom.prototype.constructor=e.TargetDom,e.Target=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new e.TargetDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Target),e.Target.prototype=Object.create(e.Base.prototype),n.extend(e.Target.prototype,{constructor:e.Target,init:function(t,n,a){var i=this,o="";if(i.callActions("beforeInit",arguments),i.mixer=n,t||(t=i.render(a)),i.cacheDom(t),i.bindEvents(),"none"!==i.dom.el.style.display&&(i.isShown=!0),a&&n.config.data.uidKey){if("undefined"==typeof(o=a[n.config.data.uidKey])||o.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:n.config.data.uidKey}));i.id=o,i.data=a,n.cache[o]=i}i.callActions("afterInit",arguments)},render:function(t){var a=this,i=null,o=null,r=null,s="";if(a.callActions("beforeRender",arguments),i=a.callFilters("renderRender",a.mixer.config.render.target,arguments),"function"!=typeof i)throw new TypeError(e.messages.errorDatasetRendererNotSet());return s=i(t),s&&"object"==typeof s&&n.isElement(s)?o=s:"string"==typeof s&&(r=document.createElement("div"),r.innerHTML=s,o=r.firstElementChild),a.callFilters("elRender",o,arguments)},cacheDom:function(t){var e=this;e.callActions("beforeCacheDom",arguments),e.dom.el=t,e.callActions("afterCacheDom",arguments)},getSortString:function(t){var e=this,n=e.dom.el.getAttribute("data-"+t)||"";e.callActions("beforeGetSortString",arguments),n=isNaN(1*n)?n.toLowerCase():1*n,e.sortString=n,e.callActions("afterGetSortString",arguments)},show:function(){var t=this;t.callActions("beforeShow",arguments),t.isShown||(t.dom.el.style.display="",t.isShown=!0),t.callActions("afterShow",arguments)},hide:function(){var t=this;t.callActions("beforeHide",arguments),t.isShown&&(t.dom.el.style.display="none",t.isShown=!1),t.callActions("afterHide",arguments)},move:function(t){var e=this;e.callActions("beforeMove",arguments),e.isExcluded||e.mixer.targetsMoved++,e.applyStylesIn(t),requestAnimationFrame(function(){e.applyStylesOut(t)}),e.callActions("afterMove",arguments)},applyTween:function(t,n){var a=this,i="",o=null,r=t.posIn,s=[],l=new e.StyleData,c=-1;for(a.callActions("beforeApplyTween",arguments),l.x=r.x,l.y=r.y,0===n?a.hide():a.isShown||a.show(),c=0;i=e.features.TWEENABLE[c];c++)if(o=t.tweenData[i],"x"===i){if(!o)continue;l.x=r.x+o*n}else if("y"===i){if(!o)continue;l.y=r.y+o*n}else if(o instanceof e.TransformData){if(!o.value)continue;l[i].value=r[i].value+o.value*n,l[i].unit=o.unit,s.push(i+"("+l[i].value+o.unit+")")}else{if(!o)continue;l[i]=r[i]+o*n,a.dom.el.style[i]=l[i]}(l.x||l.y)&&s.unshift("translate("+l.x+"px, "+l.y+"px)"),s.length&&(a.dom.el.style[e.features.transformProp]=s.join(" ")),a.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var n=this,a=t.posIn,i=1!==n.mixer.effectsIn.opacity,o=[];n.callActions("beforeApplyStylesIn",arguments),o.push("translate("+a.x+"px, "+a.y+"px)"),n.mixer.config.animation.animateResizeTargets&&("show"!==t.statusChange&&(n.dom.el.style.width=a.width+"px",n.dom.el.style.height=a.height+"px"),n.dom.el.style.marginRight=a.marginRight+"px",n.dom.el.style.marginBottom=a.marginBottom+"px"),i&&(n.dom.el.style.opacity=a.opacity),"show"===t.statusChange&&(o=o.concat(n.mixer.transformIn)),n.dom.el.style[e.features.transformProp]=o.join(" "),n.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var n=this,a=[],i=[],o=n.mixer.config.animation.animateResizeTargets,r="undefined"!=typeof n.mixer.effectsIn.opacity;if(n.callActions("beforeApplyStylesOut",arguments),a.push(n.writeTransitionRule(e.features.transformRule,t.staggerIndex)),"none"!==t.statusChange&&a.push(n.writeTransitionRule("opacity",t.staggerIndex,t.duration)),o&&(a.push(n.writeTransitionRule("width",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("height",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback)return n.mixer.targetsImmovable++,void(n.mixer.targetsMoved===n.mixer.targetsImmovable&&n.mixer.cleanUp(t.operation));switch(n.operation=t.operation,n.callback=t.callback,!n.isExcluded&&n.mixer.targetsBound++,n.isBound=!0,n.applyTransition(a),o&&t.posOut.width>0&&t.posOut.height>0&&(n.dom.el.style.width=t.posOut.width+"px",n.dom.el.style.height=t.posOut.height+"px",n.dom.el.style.marginRight=t.posOut.marginRight+"px",n.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),n.mixer.config.animation.nudge||"hide"!==t.statusChange||i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":r&&(n.dom.el.style.opacity=n.mixer.effectsOut.opacity),i=i.concat(n.mixer.transformOut);break;case"show":r&&(n.dom.el.style.opacity=1)}(n.mixer.config.animation.nudge||!n.mixer.config.animation.nudge&&"hide"!==t.statusChange)&&i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),n.dom.el.style[e.features.transformProp]=i.join(" "),n.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,e,n){var a=this,i=a.getDelay(e),o="";return o=t+" "+(n>0?n:a.mixer.config.animation.duration)+"ms "+i+"ms "+("opacity"===t?"linear":a.mixer.config.animation.easing),a.callFilters("ruleWriteTransitionRule",o,arguments)},getDelay:function(t){var e=this,n=-1;return"function"==typeof e.mixer.config.animation.staggerSequence&&(t=e.mixer.config.animation.staggerSequence.call(e,t,e.state)),n=e.mixer.staggerDuration?t*e.mixer.staggerDuration:0,e.callFilters("delayGetDelay",n,arguments)},applyTransition:function(t){var n=this,a=t.join(", ");n.callActions("beforeApplyTransition",arguments),n.dom.el.style[e.features.transitionProp]=a,n.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var e=this,n=t.propertyName,a=e.mixer.config.animation.animateResizeTargets;e.callActions("beforeHandleTransitionEnd",arguments),e.isBound&&t.target.matches(e.mixer.config.selectors.target)&&(n.indexOf("transform")>-1||n.indexOf("opacity")>-1||a&&n.indexOf("height")>-1||a&&n.indexOf("width")>-1||a&&n.indexOf("margin")>-1)&&(e.callback.call(e,e.operation),e.isBound=!1,e.callback=null,e.operation=null),e.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){var e=this;switch(e.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":e.handleTransitionEnd(t)}e.callActions("afterEventBus",arguments)},unbindEvents:function(){var t=this;t.callActions("beforeUnbindEvents",arguments),n.off(t.dom.el,"webkitTransitionEnd",t.handler),n.off(t.dom.el,"transitionend",t.handler),t.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t=this,a="";t.callActions("beforeBindEvents",arguments),a="webkit"===e.features.transitionPrefix?"webkitTransitionEnd":"transitionend",t.handler=function(e){return t.eventBus(e)},n.on(t.dom.el,a,t.handler),t.callActions("afterBindEvents",arguments)},getPosData:function(n){var a=this,i={},o=null,r=new e.StyleData;return a.callActions("beforeGetPosData",arguments),r.x=a.dom.el.offsetLeft,r.y=a.dom.el.offsetTop,(a.mixer.config.animation.animateResizeTargets||n)&&(o=a.dom.el.getBoundingClientRect(),r.top=o.top,r.right=o.right,r.bottom=o.bottom,r.left=o.left,r.width=o.width,r.height=o.height),a.mixer.config.animation.animateResizeTargets&&(i=t.getComputedStyle(a.dom.el),r.marginBottom=parseFloat(i.marginBottom),r.marginRight=parseFloat(i.marginRight)),a.callFilters("posDataGetPosData",r,arguments)},cleanUp:function(){var t=this;t.callActions("beforeCleanUp",arguments),t.dom.el.style[e.features.transformProp]="",t.dom.el.style[e.features.transitionProp]="",t.dom.el.style.opacity="",t.mixer.config.animation.animateResizeTargets&&(t.dom.el.style.width="",t.dom.el.style.height="",t.dom.el.style.marginRight="",t.dom.el.style.marginBottom=""),t.callActions("afterCleanUp",arguments)}}),e.Collection=function(t){var e=null,a=-1;for(this.callActions("beforeConstruct"),a=0;e=t[a];a++)this[a]=e;this.length=t.length,this.callActions("afterConstruct"),n.freeze(this)},e.BaseStatic.call(e.Collection),e.Collection.prototype=Object.create(e.Base.prototype),n.extend(e.Collection.prototype,{constructor:e.Collection,mixitup:function(t){var a=this,i=null,o=Array.prototype.slice.call(arguments),r=[],s=-1;for(this.callActions("beforeMixitup"),o.shift(),s=0;i=a[s];s++)r.push(i[t].apply(i,o));return a.callFilters("promiseMixitup",n.all(r,e.libraries),arguments)}}),e.Operation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.viewportDeltaX=0,this.viewportDeltaY=0,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Operation),e.Operation.prototype=Object.create(e.Base.prototype),e.Operation.prototype.constructor=e.Operation,e.State=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.State),e.State.prototype=Object.create(e.Base.prototype),e.State.prototype.constructor=e.State,e.UserInstruction=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UserInstruction),e.UserInstruction.prototype=Object.create(e.Base.prototype),e.UserInstruction.prototype.constructor=e.UserInstruction,e.Messages=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),n.seal(this)},e.BaseStatic.call(e.Messages),e.Messages.prototype=Object.create(e.Base.prototype),e.Messages.prototype.constructor=e.Messages,e.Messages.prototype.compileTemplates=function(){var t="",e="";for(t in this)"string"==typeof(e=this[t])&&(this[n.camelCase(t)]=n.template(e))},e.messages=new e.Messages,e.Facade=function(t){e.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=t.configure.bind(t),this.show=t.show.bind(t),this.hide=t.hide.bind(t),this.filter=t.filter.bind(t),this.toggleOn=t.toggleOn.bind(t),this.toggleOff=t.toggleOff.bind(t),this.sort=t.sort.bind(t),this.changeLayout=t.changeLayout.bind(t),this.multimix=t.multimix.bind(t),this.dataset=t.dataset.bind(t),this.tween=t.tween.bind(t),this.insert=t.insert.bind(t),this.insertBefore=t.insertBefore.bind(t),this.insertAfter=t.insertAfter.bind(t),this.prepend=t.prepend.bind(t),this.append=t.append.bind(t),this.remove=t.remove.bind(t),this.destroy=t.destroy.bind(t),this.forceRefresh=t.forceRefresh.bind(t),this.forceRender=t.forceRender.bind(t),this.isMixing=t.isMixing.bind(t),this.getOperation=t.getOperation.bind(t),this.getConfig=t.getConfig.bind(t),this.getState=t.getState.bind(t),this.callActions("afterConstruct",arguments),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.Facade),e.Facade.prototype=Object.create(e.Base.prototype),e.Facade.prototype.constructor=e.Facade,"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):"undefined"!=typeof t.mixitup&&"function"==typeof t.mixitup||(t.mixitup=e),e.BaseStatic.call(e.constructor),e.NAME="mixitup",e.CORE_VERSION="3.3.0"}(window);
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: This Plugin Includes Elementor Page Builder’s Premium Addon Elements.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.0.9
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -116,21 +116,26 @@ define( 'PREMIUM_ADDONS_FILE', __FILE__ );
116
  $check_component_active = get_option( 'pa_save_settings' );
117
 
118
  if( $check_component_active['premium-modalbox'] ) {
119
- wp_register_script( 'modal-js', PREMIUM_ADDONS_URL .'assets/js/lib/modal.js', array( 'jquery' ), '3.3.7', true );
120
  }
121
 
122
  if( $check_component_active['premium-carousel'] ) {
123
- wp_register_script( 'slick-carousel-js', PREMIUM_ADDONS_URL .'assets/js/lib/slickmin.js', array( 'jquery' ), '1.6.0', true );
124
  }
125
  if( $check_component_active['premium-countdown'] ) {
126
- wp_register_script( 'count-down-timer-js', PREMIUM_ADDONS_URL .'assets/js/lib/jquerycountdown.js', array( 'jquery' ), '2.1.0', true );
127
  }
128
  if( $check_component_active['premium-counter'] ) {
129
- wp_register_script( 'counter-up-js', PREMIUM_ADDONS_URL .'assets/js/lib/countUpmin.js', array( 'jquery' ), '2.1.0', true );
130
  }
131
  if( $check_component_active['premium-fancytext'] ) {
132
- wp_register_script('vticker-js', PREMIUM_ADDONS_URL .'assets/js/lib/Vticker.js', array( 'jquery' ), '1.0', true);
133
- wp_register_script('typed-js', PREMIUM_ADDONS_URL .'assets/js/lib/typedmin.js', array( 'jquery' ), '1.0', true);
 
 
 
 
 
134
  }
135
  }
136
 
@@ -141,7 +146,7 @@ define( 'PREMIUM_ADDONS_FILE', __FILE__ );
141
  }
142
 
143
  private function premium_addons_widgets_area() {
144
- $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox', 'premium-pricing-table', 'premium-contactform', 'premium-button', 'premium-image-button'];
145
 
146
  $pa_default_settings = array_fill_keys( $pa_elements_keys, true );
147
 
@@ -217,6 +222,9 @@ define( 'PREMIUM_ADDONS_FILE', __FILE__ );
217
  }
218
  if( $check_component_active['premium-image-button'] ) {
219
  require_once( PREMIUM_ADDONS_PATH. 'widgets/premium-image-button.php' );
 
 
 
220
  }
221
  }
222
 
3
  Plugin Name: Premium Addons for Elementor
4
  Description: This Plugin Includes Elementor Page Builder’s Premium Addon Elements.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.1.0
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
116
  $check_component_active = get_option( 'pa_save_settings' );
117
 
118
  if( $check_component_active['premium-modalbox'] ) {
119
+ wp_register_script( 'modal-js', PREMIUM_ADDONS_URL . 'assets/js/lib/modal.js', array( 'jquery' ), '3.3.7', true );
120
  }
121
 
122
  if( $check_component_active['premium-carousel'] ) {
123
+ wp_register_script( 'slick-carousel-js', PREMIUM_ADDONS_URL . 'assets/js/lib/slickmin.js', array( 'jquery' ), '1.6.0', true );
124
  }
125
  if( $check_component_active['premium-countdown'] ) {
126
+ wp_register_script( 'count-down-timer-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquerycountdown.js', array( 'jquery' ), '2.1.0', true );
127
  }
128
  if( $check_component_active['premium-counter'] ) {
129
+ wp_register_script( 'counter-up-js', PREMIUM_ADDONS_URL . 'assets/js/lib/countUpmin.js', array( 'jquery' ), '2.1.0', true );
130
  }
131
  if( $check_component_active['premium-fancytext'] ) {
132
+ wp_register_script('vticker-js', PREMIUM_ADDONS_URL . 'assets/js/lib/Vticker.js', array( 'jquery' ), '1.0', true);
133
+ wp_register_script('typed-js', PREMIUM_ADDONS_URL . 'assets/js/lib/typedmin.js', array( 'jquery' ), '1.0', true);
134
+ }
135
+ if( $check_component_active['premium-grid'] ) {
136
+ wp_register_script('mixitup', PREMIUM_ADDONS_URL . 'assets/js/lib/mixitup.min.js', array( 'jquery' ), '1.0', true);
137
+ wp_register_script('magnificpop', PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.magnific-popup.min.js', array( 'jquery' ), '1.0', true);
138
+ wp_register_script('masonry-js',PREMIUM_ADDONS_URL.'assets/js/lib/masonry.min.js',array('jquery'),'1.0',true);
139
  }
140
  }
141
 
146
  }
147
 
148
  private function premium_addons_widgets_area() {
149
+ $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox', 'premium-pricing-table', 'premium-contactform', 'premium-button', 'premium-image-button','premium-grid'];
150
 
151
  $pa_default_settings = array_fill_keys( $pa_elements_keys, true );
152
 
222
  }
223
  if( $check_component_active['premium-image-button'] ) {
224
  require_once( PREMIUM_ADDONS_PATH. 'widgets/premium-image-button.php' );
225
+ }
226
+ if( $check_component_active['premium-grid'] ) {
227
+ require_once( PREMIUM_ADDONS_PATH. 'widgets/premium-grid.php' );
228
  }
229
  }
230
 
readme.txt CHANGED
@@ -11,7 +11,7 @@ License URI: https://opensource.org/licenses/GPL-3.0
11
  Elementor premium addons widgets: Modal Box, Carousel, Google Maps, Pricing Tables, Countdown, Counters, Testimonials, Image Button, Blog, and much more.
12
 
13
  == Description ==
14
- 19 Elementor widgets with numerous customization options that extends Elementor Page Builder capabilities to help you build impressive websites with no coding required. Click Here to check elements’ demos.
15
 
16
  Premium Addons for elementor plugin’s widgets are cross browser compatible and also fully responsive, Your website will rock on all browsers as well as tables and mobile devices.
17
 
@@ -48,6 +48,7 @@ Premium Addons for Elementor can be used only as a complement of Elementor page
48
  17. [Premium Contact Form 7](https://premiumaddons.com/premium-contact-form-7-element-elementor-page-builder/)
49
  18. [Premium Pricing Table](https://premiumaddons.com/premium-pricing-table-element-elementor-page-builder/)
50
  19. [Premium Image Button](https://premiumaddons.com/premium-image-button-element-for-elementor-page-builder/)
 
51
 
52
  == Installation ==
53
 
@@ -77,8 +78,31 @@ Yes it will work with any WordPress theme as long as you are using Elementor as
77
 
78
  Premium Addons for Elementor is light weight and we also gave you the control to enable only the elements you actually use on your website for faster performance.
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  == Changelog ==
81
 
 
 
 
 
 
 
82
  = 2.0.9 =
83
 
84
  - Tweak: Added existing page link option for Premium Pricing Table, Button and Image Button widgets.
11
  Elementor premium addons widgets: Modal Box, Carousel, Google Maps, Pricing Tables, Countdown, Counters, Testimonials, Image Button, Blog, and much more.
12
 
13
  == Description ==
14
+ 19 Elementor widgets with numerous customization options that extends Elementor Page Builder capabilities to help you build impressive websites with no coding required. Click [Here](https://www.premiumaddons.com/) to check elements’ demos.
15
 
16
  Premium Addons for elementor plugin’s widgets are cross browser compatible and also fully responsive, Your website will rock on all browsers as well as tables and mobile devices.
17
 
48
  17. [Premium Contact Form 7](https://premiumaddons.com/premium-contact-form-7-element-elementor-page-builder/)
49
  18. [Premium Pricing Table](https://premiumaddons.com/premium-pricing-table-element-elementor-page-builder/)
50
  19. [Premium Image Button](https://premiumaddons.com/premium-image-button-element-for-elementor-page-builder/)
51
+ 20. [Premium Grid](https://www.premiumaddons.com/premium-grid-element-for-elementor-page-builder/)
52
 
53
  == Installation ==
54
 
78
 
79
  Premium Addons for Elementor is light weight and we also gave you the control to enable only the elements you actually use on your website for faster performance.
80
 
81
+ == Screenshots ==
82
+
83
+ 1. Premium Banner Widget for Elementor
84
+ 2. Premium Blog Widget for Elementor
85
+ 3. Premium Button Widget for Elementor
86
+ 4. Premium Carousel Widget for Elementor
87
+ 5. Premium Countdown Widget for Elementor
88
+ 6. Premium Counter Widget for Elementor
89
+ 7. Premium Fancy Text Widget for Elementor
90
+ 8. Premium Heading Widget for Elementor
91
+ 9. Premium Image Button Widget for Elementor
92
+ 10. Premium Image Separator Widget for Elementor
93
+ 11. Premium Maps Widget for Elementor
94
+ 12. Premium Persons Widget for Elementor
95
+ 13. Premium Pricing Table Widget for Elementor
96
+ 14. Premium Progress Bar Widget for Elementor
97
+
98
  == Changelog ==
99
 
100
+ = 2.1.0 =
101
+
102
+ - New: Premium Grid widget.
103
+ - Tweak: Added open marker info container on hover option for Premium Maps Widget.
104
+ - Fix: Demos Links in Readme file.
105
+
106
  = 2.0.9 =
107
 
108
  - Tweak: Added existing page link option for Premium Pricing Table, Button and Image Button widgets.
widgets/premium-grid.php ADDED
@@ -0,0 +1,1335 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Elementor;
4
+
5
+ if( !defined( 'ABSPATH' ) ) exit;
6
+
7
+ class Premium_Image_Gallery_Widget extends Widget_Base {
8
+
9
+ public function get_name(){
10
+ return 'premium-img-gallery';
11
+ }
12
+
13
+ public function getTemplateInstance() {
14
+ return $this->templateInstance = premium_Template_Tags::getInstance();
15
+ }
16
+
17
+ public function get_title(){
18
+ return esc_html__('Premium Grid','premium-addons-for-elementor');
19
+ }
20
+
21
+ public function get_icon(){
22
+ return 'pa-grid-icon';
23
+ }
24
+
25
+ public function get_script_depends(){
26
+ return ['magnificpop','mixitup','masonry-js'];
27
+ }
28
+
29
+ public function is_reload_preview_required(){
30
+ return true;
31
+ }
32
+
33
+ public function get_categories(){
34
+ return ['premium-elements'];
35
+ }
36
+
37
+ protected function _register_controls(){
38
+
39
+ $this->start_controls_section('premium_gallery_cats',
40
+ [
41
+ 'label' => esc_html__('Categories','premium-addons-for-elementor'),
42
+ ]);
43
+
44
+ $this->add_control('premium_gallery_cats_content',
45
+ [
46
+ 'label' => __( 'Categories', 'premium-addons-for-elementor' ),
47
+ 'type' => Controls_Manager::REPEATER,
48
+ 'default' => [
49
+ [
50
+ 'premium_gallery_img_cat' => 'Category 1',
51
+ ],
52
+ [
53
+ 'premium_gallery_img_cat' => 'Category 2',
54
+ ],
55
+ ],
56
+ 'fields' => [
57
+ [
58
+ 'name' => 'premium_gallery_img_cat',
59
+ 'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
60
+ 'type' => Controls_Manager::TEXT,
61
+ ],
62
+ ],
63
+ 'title_field' => '{{{ premium_gallery_img_cat }}}',
64
+ ]
65
+ );
66
+
67
+ $this->end_controls_section();
68
+
69
+ $this->start_controls_section('premium_gallery_content',
70
+ [
71
+ 'label' => esc_html__('Images','premium-addons-for-elementor'),
72
+ ]);
73
+
74
+ $this->add_control('premium_gallery_img_content',
75
+ [
76
+ 'label' => __( 'Images', 'premium-addons-for-elementor' ),
77
+ 'type' => Controls_Manager::REPEATER,
78
+ 'default' => [
79
+ [
80
+ 'premium_gallery_img_name' => 'Image #1',
81
+ 'premium_gallery_img_category' => 'Category 1'
82
+ ],
83
+ [
84
+ 'premium_gallery_img_name' => 'Image #2',
85
+ 'premium_gallery_img_category' => 'Category 2'
86
+ ],
87
+ ],
88
+ 'fields' => [
89
+ [
90
+ 'name' => 'premium_gallery_img',
91
+ 'label' => esc_html__( 'Upload Image', 'premium-addons-for-elementor' ),
92
+ 'type' => Controls_Manager::MEDIA,
93
+ 'default' => [
94
+ 'url' => Utils::get_placeholder_image_src(),
95
+ ],
96
+ ],
97
+ [
98
+ 'name' => 'premium_gallery_img_name',
99
+ 'label' => esc_html__( 'Name', 'premium-addons-for-elementor' ),
100
+ 'type' => Controls_Manager::TEXT,
101
+ 'label_block' => true,
102
+ ],
103
+ [
104
+ 'name' => 'premium_gallery_img_desc',
105
+ 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
106
+ 'type' => Controls_Manager::TEXTAREA,
107
+ 'label_block' => true,
108
+ ],
109
+ [
110
+ 'name' => 'premium_gallery_img_category',
111
+ 'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
112
+ 'type' => Controls_Manager::TEXT,
113
+ ],
114
+ [
115
+ 'name' => 'premium_gallery_img_link_switch',
116
+ 'label' => esc_html__( 'Enable Link', 'premium-addons-for-elementor' ),
117
+ 'type' => Controls_Manager::SWITCHER,
118
+ 'default' => 'yes'
119
+ ],
120
+ [
121
+ 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
122
+ 'name' => 'premium_gallery_img_link_type',
123
+ 'type' => Controls_Manager::SELECT,
124
+ 'options' => [
125
+ 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
126
+ 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
127
+ ],
128
+ 'default' => 'url',
129
+ 'label_block' => true,
130
+ 'condition' => [
131
+ 'premium_gallery_img_link_switch' => 'yes'
132
+ ]
133
+ ],
134
+ [
135
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
136
+ 'name' => 'premium_gallery_img_link',
137
+ 'type' => Controls_Manager::URL,
138
+ 'default' => [
139
+ 'url' => '#',
140
+ ],
141
+ 'placeholder' => 'https://premiumaddons.com/',
142
+ 'label_block' => true,
143
+ 'condition' => [
144
+ 'premium_gallery_img_link_switch'=> 'yes',
145
+ 'premium_gallery_img_link_type' => 'url'
146
+ ]
147
+ ],
148
+ [
149
+ 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
150
+ 'name' => 'premium_gallery_img_existing',
151
+ 'type' => Controls_Manager::SELECT,
152
+ 'options' => $this->getTemplateInstance()->get_all_post(),
153
+ 'condition' => [
154
+ 'premium_gallery_img_link_switch'=> 'yes',
155
+ 'premium_gallery_img_link_type'=> 'link',
156
+ ],
157
+ 'separator' => 'after',
158
+ 'label_block' => true,
159
+ ]
160
+ ],
161
+ ]
162
+ );
163
+
164
+ $this->end_controls_section();
165
+
166
+ $this->start_controls_section('premium_gallery_grid_settings',
167
+ [
168
+ 'label' => esc_html__('Grid Settings','premium-addons-for-elementor'),
169
+
170
+ ]);
171
+
172
+ $this->add_responsive_control('premium_gallery_column_number',
173
+ [
174
+ 'label' => esc_html__( 'Columns', 'boosted-elements-progression' ),
175
+ 'label_block' => true,
176
+ 'type' => Controls_Manager::SELECT,
177
+ 'desktop_default' => '50%',
178
+ 'tablet_default' => '100%',
179
+ 'mobile_default' => '100%',
180
+ 'options' => [
181
+ '100%' => esc_html__( '1 Column', 'boosted-elements-progression' ),
182
+ '50%' => esc_html__( '2 Columns', 'boosted-elements-progression' ),
183
+ '33.330%' => esc_html__( '3 Columns', 'boosted-elements-progression' ),
184
+ '25%' => esc_html__( '4 Columns', 'boosted-elements-progression' ),
185
+ '20%' => esc_html__( '5 Columns', 'boosted-elements-progression' ),
186
+ '16.67%' => esc_html__( '6 Columns', 'boosted-elements-progression' ),
187
+ ],
188
+ 'selectors' => [
189
+ '{{WRAPPER}} .premium-gallery-container .premium-gallery-item' => 'width: {{VALUE}};',
190
+ ],
191
+ 'render_type' => 'template'
192
+ ]
193
+ );
194
+
195
+ $this->add_control('premium_gallery_img_size_select',
196
+ [
197
+ 'label' => esc_html__('Grid Layout', 'premium-addons-for-elementor'),
198
+ 'type' => Controls_Manager::SELECT,
199
+ 'options' => [
200
+ 'one_size' => esc_html__('Even', 'premium-addons-for-elementor'),
201
+ 'original' => esc_html__('Masonry', 'premium-addons-for-elementor'),
202
+ ],
203
+ 'default' => 'one_size',
204
+ ]
205
+ );
206
+
207
+ $this->add_group_control(
208
+ Group_Control_Image_Size::get_type(),
209
+ [
210
+ 'name' => 'thumnail', // Actually its `image_size`.
211
+ 'default' => 'full',
212
+ 'condition' => [
213
+ 'premium_gallery_img_size_select' => 'one_size'
214
+ ]
215
+ ]
216
+ );
217
+
218
+ $this->add_responsive_control('premium_gallery_gap',
219
+ [
220
+ 'label' => esc_html__('Image Gap', 'premium-addons-for-elementor'),
221
+ 'type' => Controls_Manager::SLIDER,
222
+ 'size_units' => ['px', '%', "em"],
223
+ 'range' => [
224
+ 'px' => [
225
+ 'min' => 1,
226
+ 'max' => 200,
227
+ ],
228
+ ],
229
+ 'selectors' => [
230
+ '{{WRAPPER}} .premium-gallery-item' => 'padding: {{SIZE}}{{UNIT}};'
231
+ ]
232
+ ]
233
+ );
234
+
235
+ $this->add_control('premium_gallery_img_style',
236
+ [
237
+ 'label' => esc_html__('Skin', 'premium-addons-for-elementor'),
238
+ 'type' => Controls_Manager::SELECT,
239
+ 'description' => esc_html__('Choose a layout style for the gallery','premium-addons-for-elementor'),
240
+ 'options' => [
241
+ 'default' => esc_html__('Style 1', 'premium-addons-for-elementor'),
242
+ 'style1' => esc_html__('Style 2', 'premium-addons-for-elementor'),
243
+ 'style2' => esc_html__('Style 3', 'premium-addons-for-elementor'),
244
+ ],
245
+ 'default' => 'default',
246
+ 'label_block' => true
247
+ ]
248
+ );
249
+
250
+ $this->add_responsive_control('premium_gallery_style1_border_border',
251
+ [
252
+ 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
253
+ 'type' => Controls_Manager::SLIDER,
254
+ 'range' => [
255
+ 'px' => [
256
+ 'min' => 0,
257
+ 'max' => 700,
258
+ ]
259
+ ],
260
+ 'label_block' => true,
261
+ 'selectors' => [
262
+ '{{WRAPPER}} .pa-gallery-img.style1 .premium-gallery-caption' => 'bottom: {{SIZE}}px;',
263
+ ],
264
+ 'condition' => [
265
+ 'premium_gallery_img_style' => 'style1'
266
+ ]
267
+ ]
268
+ );
269
+
270
+ $this->add_control('premium_gallery_img_effect',
271
+ [
272
+ 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
273
+ 'type' => Controls_Manager::SELECT,
274
+ 'description' => esc_html__('Choose a hover effect for the image','premium-addons-for-elementor'),
275
+ 'options' => [
276
+ 'none' => esc_html__('None', 'premium-addons-for-elementor'),
277
+ 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
278
+ 'zoomout' => esc_html__('Zoom Out', 'premium-addons-for-elementor'),
279
+ 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
280
+ 'gray' => esc_html__('Grayscale', 'premium-addons-for-elementor'),
281
+ 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
282
+ ],
283
+ 'default' => 'zoomin',
284
+ 'label_block' => true
285
+ ]
286
+ );
287
+
288
+ $this->add_control('premium_gallery_filter',
289
+ [
290
+ 'label' => esc_html__( 'Filter', 'premium-addons-for-elementor' ),
291
+ 'type' => Controls_Manager::SWITCHER,
292
+ 'default' => 'yes'
293
+ ]
294
+ );
295
+
296
+ $this->add_control('premium_gallery_light_box',
297
+ [
298
+ 'label' => esc_html__( 'Lightbox', 'premium-addons-for-elementor' ),
299
+ 'type' => Controls_Manager::SWITCHER,
300
+ 'default' => 'yes'
301
+ ]
302
+ );
303
+
304
+ $this->add_responsive_control('premium_gallery_content_align',
305
+ [
306
+ 'label' => esc_html__( 'Content Alignment', 'elementor' ),
307
+ 'type' => Controls_Manager::CHOOSE,
308
+ 'options' => [
309
+ 'left' => [
310
+ 'title'=> esc_html__( 'Left', 'elementor' ),
311
+ 'icon' => 'fa fa-align-left',
312
+ ],
313
+ 'center' => [
314
+ 'title'=> esc_html__( 'Center', 'elementor' ),
315
+ 'icon' => 'fa fa-align-center',
316
+ ],
317
+ 'right' => [
318
+ 'title'=> esc_html__( 'Right', 'elementor' ),
319
+ 'icon' => 'fa fa-align-right',
320
+ ],
321
+ ],
322
+ 'default' => 'center',
323
+ 'selectors' => [
324
+ '{{WRAPPER}} .premium-gallery-caption' => 'text-align: {{VALUE}};',
325
+ ],
326
+ ]
327
+ );
328
+
329
+ $this->end_controls_section();
330
+
331
+ $this->start_controls_section('premium_gallery_responsive_section',
332
+ [
333
+ 'label' => esc_html__('Responsive', 'premium-addons-for-elementor'),
334
+ ]);
335
+
336
+ $this->add_control('premium_gallery_responsive_switcher',
337
+ [
338
+ 'label' => esc_html__('Responsive Controls', 'premium-addons-for-elementor'),
339
+ 'type' => Controls_Manager::SWITCHER,
340
+ 'description' => esc_html__('If the content text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor')
341
+ ]);
342
+
343
+ $this->add_control('premium_gallery_min_range',
344
+ [
345
+ 'label' => esc_html__('Minimum Size', 'premium-addons-for-elementor'),
346
+ 'type' => Controls_Manager::NUMBER,
347
+ 'description'=> esc_html__('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
348
+ 'default' => 1,
349
+ 'condition' => [
350
+ 'premium_gallery_responsive_switcher' => 'yes'
351
+ ],
352
+ ]);
353
+
354
+ $this->add_control('premium_gallery_max_range',
355
+ [
356
+ 'label' => esc_html__('Maximum Size', 'premium-addons-for-elementor'),
357
+ 'type' => Controls_Manager::NUMBER,
358
+ 'description'=> esc_html__('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
359
+ 'default' => 767,
360
+ 'condition' => [
361
+ 'premium_gallery_responsive_switcher' => 'yes'
362
+ ],
363
+ ]);
364
+
365
+ $this->end_controls_section();
366
+
367
+ $this->start_controls_section('premium_gallery_general_style',
368
+ [
369
+ 'label' => esc_html__('General','premium-addons-for-elementor'),
370
+ 'tab' => Controls_Manager::TAB_STYLE,
371
+ ]);
372
+
373
+ $this->add_group_control(
374
+ Group_Control_Background::get_type(),
375
+ [
376
+ 'name' => 'premium_gallery_general_background',
377
+ 'types' => [ 'classic', 'gradient' ],
378
+ 'selector' => '{{WRAPPER}} .premium-img-gallery',
379
+ ]
380
+ );
381
+
382
+ $this->add_group_control(
383
+ Group_Control_Border::get_type(),
384
+ [
385
+ 'name' => 'premium_gallery_general_border',
386
+ 'selector' => '{{WRAPPER}} .premium-img-gallery',
387
+ ]
388
+ );
389
+
390
+ /*First Border Radius*/
391
+ $this->add_control('premium_gallery_general_border_radius',
392
+ [
393
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
394
+ 'type' => Controls_Manager::SLIDER,
395
+ 'size_units' => ['px', '%', 'em'],
396
+ 'selectors' => [
397
+ '{{WRAPPER}} .premium-img-gallery' => 'border-radius: {{SIZE}}{{UNIT}};'
398
+ ]
399
+ ]
400
+ );
401
+
402
+ $this->add_group_control(
403
+ Group_Control_Box_Shadow::get_type(),
404
+ [
405
+ 'name' => 'premium_gallery_general_box_shadow',
406
+ 'selector' => '{{WRAPPER}} .premium-img-gallery',
407
+ ]
408
+ );
409
+
410
+ /*First Margin*/
411
+ $this->add_responsive_control('premium_gallery_general_margin',
412
+ [
413
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
414
+ 'type' => Controls_Manager::DIMENSIONS,
415
+ 'size_units' => [ 'px', 'em', '%' ],
416
+ 'selectors' => [
417
+ '{{WRAPPER}} .premium-img-gallery' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
418
+ ]
419
+ ]
420
+ );
421
+
422
+ /*First Padding*/
423
+ $this->add_responsive_control('premium_gallery_general_padding',
424
+ [
425
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
426
+ 'type' => Controls_Manager::DIMENSIONS,
427
+ 'size_units' => [ 'px', 'em', '%' ],
428
+ 'selectors' => [
429
+ '{{WRAPPER}} .premium-img-gallery' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
430
+ ]
431
+ ]
432
+ );
433
+
434
+ $this->end_controls_section();
435
+
436
+ $this->start_controls_section('premium_gallery_img_style_section',
437
+ [
438
+ 'label' => esc_html__('Image','premium-addons-for-elementor'),
439
+ 'tab' => Controls_Manager::TAB_STYLE,
440
+ ]);
441
+
442
+ $this->add_group_control(
443
+ Group_Control_Border::get_type(),
444
+ [
445
+ 'name' => 'premium_gallery_img_border',
446
+ 'selector' => '{{WRAPPER}} .pa-gallery-img-container',
447
+ ]
448
+ );
449
+
450
+ /*First Border Radius*/
451
+ $this->add_control('premium_gallery_img_border_radius',
452
+ [
453
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
454
+ 'type' => Controls_Manager::SLIDER,
455
+ 'size_units' => ['px', '%', 'em'],
456
+ 'selectors' => [
457
+ '{{WRAPPER}} .pa-gallery-img-container' => 'border-radius: {{SIZE}}{{UNIT}};'
458
+ ]
459
+ ]
460
+ );
461
+
462
+ $this->add_group_control(
463
+ Group_Control_Box_Shadow::get_type(),
464
+ [
465
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
466
+ 'name' => 'premium_gallery_img_box_shadow',
467
+ 'selector' => '{{WRAPPER}} .pa-gallery-img-container',
468
+ 'condition' => [
469
+ 'premium_gallery_img_style!' => 'style1'
470
+ ]
471
+ ]
472
+ );
473
+
474
+ /*First Margin*/
475
+ $this->add_responsive_control('premium_gallery_img_margin',
476
+ [
477
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
478
+ 'type' => Controls_Manager::DIMENSIONS,
479
+ 'size_units' => [ 'px', 'em', '%' ],
480
+ 'selectors' => [
481
+ '{{WRAPPER}} .pa-gallery-img-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
482
+ ]
483
+ ]
484
+ );
485
+
486
+ /*First Padding*/
487
+ $this->add_responsive_control('premium_gallery_img_padding',
488
+ [
489
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
490
+ 'type' => Controls_Manager::DIMENSIONS,
491
+ 'size_units' => [ 'px', 'em', '%' ],
492
+ 'selectors' => [
493
+ '{{WRAPPER}} .pa-gallery-img-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
494
+ ]
495
+ ]
496
+ );
497
+
498
+ $this->end_controls_section();
499
+
500
+ $this->start_controls_section('premium_gallery_content_style',
501
+ [
502
+ 'label' => esc_html__('Content','premium-addons-for-elementor'),
503
+ 'tab' => Controls_Manager::TAB_STYLE,
504
+ ]);
505
+
506
+ $this->add_control('premium_gallery_title_heading',
507
+ [
508
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
509
+ 'type' => Controls_Manager::HEADING,
510
+ ]
511
+ );
512
+
513
+ $this->add_control('premium_gallery_title_color',
514
+ [
515
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
516
+ 'type' => Controls_Manager::COLOR,
517
+ 'scheme' => [
518
+ 'type' => Scheme_Color::get_type(),
519
+ 'value' => Scheme_Color::COLOR_2,
520
+ ],
521
+ 'selectors' => [
522
+ '{{WRAPPER}} .premium-gallery-img-name' => 'color: {{VALUE}};',
523
+ ]
524
+ ]
525
+ );
526
+
527
+ /*Fancy Text Typography*/
528
+ $this->add_group_control(
529
+ Group_Control_Typography::get_type(),
530
+ [
531
+ 'name' => 'premium_gallery_title_typo',
532
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
533
+ 'selector' => '{{WRAPPER}} .premium-gallery-img-name',
534
+ ]
535
+ );
536
+
537
+ $this->add_control('premium_gallery_description_heading',
538
+ [
539
+ 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
540
+ 'type' => Controls_Manager::HEADING,
541
+ 'separator' => 'before',
542
+ ]
543
+ );
544
+
545
+ $this->add_control('premium_gallery_description_color',
546
+ [
547
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
548
+ 'type' => Controls_Manager::COLOR,
549
+ 'scheme' => [
550
+ 'type' => Scheme_Color::get_type(),
551
+ 'value' => Scheme_Color::COLOR_3,
552
+ ],
553
+ 'selectors' => [
554
+ '{{WRAPPER}} .premium-gallery-img-desc' => 'color: {{VALUE}};',
555
+ ]
556
+ ]
557
+ );
558
+
559
+ $this->add_group_control(
560
+ Group_Control_Typography::get_type(),
561
+ [
562
+ 'name' => 'premium_gallery_description_typo',
563
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
564
+ 'selector' => '{{WRAPPER}} .premium-gallery-img-desc',
565
+ ]
566
+ );
567
+
568
+ $this->add_group_control(
569
+ Group_Control_Background::get_type(),
570
+ [
571
+ 'name' => 'premium_gallery_content_background',
572
+ 'types' => [ 'classic', 'gradient' ],
573
+ 'selector' => '{{WRAPPER}} .premium-gallery-caption',
574
+ 'separator' => 'before',
575
+ ]
576
+ );
577
+
578
+ $this->add_group_control(
579
+ Group_Control_Border::get_type(),
580
+ [
581
+ 'name' => 'premium_gallery_content_border',
582
+ 'selector' => '{{WRAPPER}} .premium-gallery-caption',
583
+ ]
584
+ );
585
+
586
+ /*First Border Radius*/
587
+ $this->add_control('premium_gallery_content_border_radius',
588
+ [
589
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
590
+ 'type' => Controls_Manager::SLIDER,
591
+ 'size_units' => ['px', '%', 'em'],
592
+ 'selectors' => [
593
+ '{{WRAPPER}} .premium-gallery-caption' => 'border-radius: {{SIZE}}{{UNIT}};'
594
+ ]
595
+ ]
596
+ );
597
+
598
+ /*First Text Shadow*/
599
+ $this->add_group_control(
600
+ Group_Control_Text_Shadow::get_type(),
601
+ [
602
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
603
+ 'name' => 'premium_gallery_content_shadow',
604
+ 'selector' => '{{WRAPPER}} .premium-gallery-caption',
605
+ ]
606
+ );
607
+
608
+ $this->add_group_control(
609
+ Group_Control_Box_Shadow::get_type(),
610
+ [
611
+ 'name' => 'premium_gallery_content_box_shadow',
612
+ 'selector' => '{{WRAPPER}} .premium-gallery-caption',
613
+ ]
614
+ );
615
+
616
+ /*First Margin*/
617
+ $this->add_responsive_control('premium_gallery_content_margin',
618
+ [
619
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
620
+ 'type' => Controls_Manager::DIMENSIONS,
621
+ 'size_units' => [ 'px', 'em', '%' ],
622
+ 'selectors' => [
623
+ '{{WRAPPER}} .premium-gallery-caption' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
624
+ ]
625
+ ]
626
+ );
627
+
628
+ /*First Padding*/
629
+ $this->add_responsive_control('premium_gallery_content_padding',
630
+ [
631
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
632
+ 'type' => Controls_Manager::DIMENSIONS,
633
+ 'size_units' => [ 'px', 'em', '%' ],
634
+ 'selectors' => [
635
+ '{{WRAPPER}} .premium-gallery-caption' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
636
+ ]
637
+ ]
638
+ );
639
+
640
+ $this->end_controls_section();
641
+
642
+ $this->start_controls_section('premium_gallery_icons_style',
643
+ [
644
+ 'label' => esc_html__('Icons','premium-addons-for-elementor'),
645
+ 'tab' => Controls_Manager::TAB_STYLE,
646
+ ]);
647
+
648
+ $this->add_responsive_control('premium_gallery_style1_icons_position',
649
+ [
650
+ 'label' => esc_html__('Position', 'premium-addons-for-elementor'),
651
+ 'type' => Controls_Manager::SLIDER,
652
+ 'size_units' => ['px', '%', 'em'],
653
+ 'range' => [
654
+ 'px' => [
655
+ 'min' => 0,
656
+ 'max' => 300,
657
+ ]
658
+ ],
659
+ 'label_block' => true,
660
+ 'selectors' => [
661
+ '{{WRAPPER}} .pa-gallery-img.style1 .pa-gallery-icons-inner-container,{{WRAPPER}} .pa-gallery-img.default .pa-gallery-icons-inner-container' => 'top: {{SIZE}}{{UNIT}};',
662
+ ],
663
+ 'condition' => [
664
+ 'premium_gallery_img_style!' => 'style2'
665
+ ]
666
+ ]
667
+ );
668
+
669
+ $this->start_controls_tabs('premium_gallery_icons_style_tabs');
670
+
671
+ $this->start_controls_tab('premium_gallery_icons_style_normal',
672
+ [
673
+ 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
674
+ ]
675
+ );
676
+
677
+ $this->add_control('premium_gallery_icons_style_color',
678
+ [
679
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
680
+ 'type' => Controls_Manager::COLOR,
681
+ 'scheme' => [
682
+ 'type' => Scheme_Color::get_type(),
683
+ 'value' => Scheme_Color::COLOR_1,
684
+ ],
685
+ 'selectors' => [
686
+ '{{WRAPPER}} .pa-gallery-magnific-image i, {{WRAPPER}} .pa-gallery-img-link i' => 'color: {{VALUE}};',
687
+ ]
688
+ ]
689
+ );
690
+
691
+ $this->add_control('premium_gallery_icons_style_background',
692
+ [
693
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
694
+ 'type' => Controls_Manager::COLOR,
695
+ 'scheme' => [
696
+ 'type' => Scheme_Color::get_type(),
697
+ 'value' => Scheme_Color::COLOR_2,
698
+ ],
699
+ 'selectors' => [
700
+ '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'background-color: {{VALUE}};',
701
+ ]
702
+ ]
703
+ );
704
+
705
+ /*Icon Border*/
706
+ $this->add_group_control(
707
+ Group_Control_Border::get_type(),
708
+ [
709
+ 'name' => 'premium_gallery_icons_style_border',
710
+ 'selector' => '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span',
711
+ ]
712
+ );
713
+
714
+ /*Button Border Radius*/
715
+ $this->add_control('premium_gallery_icons_style_border_radius',
716
+ [
717
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
718
+ 'type' => Controls_Manager::SLIDER,
719
+ 'size_units' => ['px', 'em' , '%'],
720
+ 'selectors' => [
721
+ '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'border-radius: {{SIZE}}{{UNIT}};'
722
+ ]
723
+ ]
724
+ );
725
+
726
+ /*Button Shadow*/
727
+ $this->add_group_control(
728
+ Group_Control_Box_Shadow::get_type(),
729
+ [
730
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
731
+ 'name' => 'premium_gallery_icons_style_shadow',
732
+ 'selector' => '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span',
733
+ ]
734
+ );
735
+
736
+ /*Button Margin*/
737
+ $this->add_responsive_control('premium_gallery_icons_style_margin',
738
+ [
739
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
740
+ 'type' => Controls_Manager::DIMENSIONS,
741
+ 'size_units' => ['px', 'em', '%'],
742
+ 'selectors' => [
743
+ '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
744
+ ]
745
+ ]);
746
+
747
+ /*Button Padding*/
748
+ $this->add_responsive_control('premium_gallery_icons_style_padding',
749
+ [
750
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
751
+ 'type' => Controls_Manager::DIMENSIONS,
752
+ 'size_units' => ['px', 'em', '%'],
753
+ 'selectors' => [
754
+ '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
755
+ ]
756
+ ]);
757
+
758
+ $this->end_controls_tab();
759
+
760
+ $this->start_controls_tab('premium_gallery_icons_style_hover',
761
+ [
762
+ 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
763
+ ]
764
+ );
765
+
766
+ $this->add_control('premium_gallery_icons_style_overlay',
767
+ [
768
+ 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
769
+ 'type' => Controls_Manager::COLOR,
770
+ 'selectors' => [
771
+ '{{WRAPPER}} .pa-gallery-img.default:hover .pa-gallery-icons-wrapper, {{WRAPPER}} .pa-gallery-img:hover .pa-gallery-icons-caption-container,{{WRAPPER}} .pa-gallery-img.style1:hover .pa-gallery-icons-wrapper' => 'background-color: {{VALUE}};',
772
+ ],
773
+ ]
774
+ );
775
+
776
+ $this->add_control('premium_gallery_icons_style_color_hover',
777
+ [
778
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
779
+ 'type' => Controls_Manager::COLOR,
780
+ 'scheme' => [
781
+ 'type' => Scheme_Color::get_type(),
782
+ 'value' => Scheme_Color::COLOR_1,
783
+ ],
784
+ 'selectors' => [
785
+ '{{WRAPPER}} .pa-gallery-magnific-image:hover i, {{WRAPPER}} .pa-gallery-img-link:hover i' => 'color: {{VALUE}};',
786
+ ]
787
+ ]
788
+ );
789
+
790
+ $this->add_control('premium_gallery_icons_style_background_hover',
791
+ [
792
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
793
+ 'type' => Controls_Manager::COLOR,
794
+ 'scheme' => [
795
+ 'type' => Scheme_Color::get_type(),
796
+ 'value' => Scheme_Color::COLOR_2,
797
+ ],
798
+ 'selectors' => [
799
+ '{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'background-color: {{VALUE}};',
800
+ ]
801
+ ]
802
+ );
803
+
804
+ /*Button Border*/
805
+ $this->add_group_control(
806
+ Group_Control_Border::get_type(),
807
+ [
808
+ 'name' => 'premium_gallery_icons_style_border_hover',
809
+ 'selector' => '{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span',
810
+ ]
811
+ );
812
+
813
+ /*Button Border Radius*/
814
+ $this->add_control('premium_gallery_icons_style_border_radius_hover',
815
+ [
816
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
817
+ 'type' => Controls_Manager::SLIDER,
818
+ 'size_units' => ['px', 'em' , '%' ],
819
+ 'selectors' => [
820
+ '{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'border-radius: {{SIZE}}{{UNIT}};'
821
+ ]
822
+ ]
823
+ );
824
+
825
+ /*Button Shadow*/
826
+ $this->add_group_control(
827
+ Group_Control_Box_Shadow::get_type(),
828
+ [
829
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
830
+ 'name' => 'premium_gallery_icons_style_shadow_hover',
831
+ 'selector' => '{{WRAPPER}} {{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span',
832
+ ]
833
+ );
834
+
835
+ /*Button Margin*/
836
+ $this->add_responsive_control('premium_gallery_icons_style_margin_hover',
837
+ [
838
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
839
+ 'type' => Controls_Manager::DIMENSIONS,
840
+ 'size_units' => ['px', 'em', '%'],
841
+ 'selectors' => [
842
+ '{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
843
+ ]
844
+ ]);
845
+
846
+ /*Button Padding*/
847
+ $this->add_responsive_control('premium_gallery_icons_style_padding_hover',
848
+ [
849
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
850
+ 'type' => Controls_Manager::DIMENSIONS,
851
+ 'size_units' => ['px', 'em', '%'],
852
+ 'selectors' => [
853
+ '{{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
854
+ ]
855
+ ]);
856
+
857
+ $this->end_controls_section();
858
+
859
+ $this->start_controls_section('premium_gallery_filter_style',
860
+ [
861
+ 'label' => esc_html__('Filter','premium-addons-for-elementor'),
862
+ 'tab' => Controls_Manager::TAB_STYLE,
863
+ 'condition' => [
864
+ 'premium_gallery_filter' => 'yes'
865
+ ]
866
+ ]);
867
+
868
+ $this->add_control('premium_gallery_filter_color',
869
+ [
870
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
871
+ 'type' => Controls_Manager::COLOR,
872
+ 'scheme' => [
873
+ 'type' => Scheme_Color::get_type(),
874
+ 'value' => Scheme_Color::COLOR_2,
875
+ ],
876
+ 'selectors' => [
877
+ '{{WRAPPER}} .premium-gallery-cats-container li a.category span' => 'color: {{VALUE}};',
878
+ ]
879
+ ]
880
+ );
881
+
882
+ $this->add_control('premium_gallery_filter_active_color',
883
+ [
884
+ 'label' => esc_html__('Active Color', 'premium-addons-for-elementor'),
885
+ 'type' => Controls_Manager::COLOR,
886
+ 'scheme' => [
887
+ 'type' => Scheme_Color::get_type(),
888
+ 'value' => Scheme_Color::COLOR_1,
889
+ ],
890
+ 'selectors' => [
891
+ '{{WRAPPER}} .premium-gallery-cats-container li a.active span' => 'color: {{VALUE}};',
892
+ ]
893
+ ]
894
+ );
895
+
896
+ $this->add_group_control(
897
+ Group_Control_Typography::get_type(),
898
+ [
899
+ 'name' => 'premium_gallery_filter_typo',
900
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
901
+ 'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category',
902
+ ]
903
+ );
904
+
905
+ $this->add_control('premium_gallery_background',
906
+ [
907
+ 'label' => esc_html__( 'Background', 'premium-addons-for-elementor' ),
908
+ 'type' => Controls_Manager::SWITCHER,
909
+ 'default' => 'yes'
910
+ ]
911
+ );
912
+
913
+ $this->add_control('premium_gallery_background_color',
914
+ [
915
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
916
+ 'type' => Controls_Manager::COLOR,
917
+ 'default' => '#6ec1e4',
918
+ 'selectors' => [
919
+ '{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'background-color: {{VALUE}};',
920
+ ],
921
+ 'condition' => [
922
+ 'premium_gallery_background' => 'yes'
923
+ ]
924
+ ]
925
+ );
926
+
927
+ $this->add_control('premium_gallery_background_active_color',
928
+ [
929
+ 'label' => esc_html__('Background Active Color', 'premium-addons-for-elementor'),
930
+ 'type' => Controls_Manager::COLOR,
931
+ 'default' => '#54595f',
932
+ 'selectors' => [
933
+ '{{WRAPPER}} .premium-gallery-cats-container li a.active' => 'background-color: {{VALUE}};',
934
+ ],
935
+ 'condition' => [
936
+ 'premium_gallery_background' => 'yes'
937
+ ]
938
+ ]
939
+ );
940
+
941
+ $this->add_group_control(
942
+ Group_Control_Border::get_type(),
943
+ [
944
+ 'name' => 'premium_gallery_filter_border',
945
+ 'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category',
946
+ ]
947
+ );
948
+
949
+ /*Border Radius*/
950
+ $this->add_control('premium_gallery_filter_border_radius',
951
+ [
952
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
953
+ 'type' => Controls_Manager::SLIDER,
954
+ 'size_units' => ['px','em','%'],
955
+ 'selectors' => [
956
+ '{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'border-radius: {{SIZE}}{{UNIT}};',
957
+ ]
958
+ ]
959
+ );
960
+
961
+ $this->add_group_control(
962
+ Group_Control_Box_Shadow::get_type(),
963
+ [
964
+ 'name' => 'premium_gallery_filter_shadow',
965
+ 'selector' => '{{WRAPPER}} .premium-gallery-cats-container li a.category',
966
+ ]
967
+ );
968
+
969
+ $this->add_responsive_control('premium_gallery_filter_margin',
970
+ [
971
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
972
+ 'type' => Controls_Manager::DIMENSIONS,
973
+ 'size_units' => ['px', 'em', '%'],
974
+ 'selectors' => [
975
+ '{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
976
+ ],
977
+ ]
978
+ );
979
+
980
+ /*Front Icon Padding*/
981
+ $this->add_responsive_control('premium_gallery_filter_padding',
982
+ [
983
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
984
+ 'type' => Controls_Manager::DIMENSIONS,
985
+ 'size_units' => ['px', 'em', '%'],
986
+ 'selectors' => [
987
+ '{{WRAPPER}} .premium-gallery-cats-container li a.category' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
988
+ ],
989
+ ]
990
+ );
991
+
992
+ $this->end_controls_section();
993
+
994
+ }
995
+
996
+ public function filter_cats( $string ) {
997
+ $cat_filtered = strtolower( $string );
998
+ $cat_filtered = preg_replace("/[\s_]/", "-", $cat_filtered);
999
+ $cat_filtered = str_replace(',', ' ', $cat_filtered);
1000
+ return $cat_filtered;
1001
+ }
1002
+
1003
+ protected function render(){
1004
+ $settings = $this->get_settings();
1005
+ $filter = $settings['premium_gallery_filter'];
1006
+
1007
+ $number_columns = $settings['premium_gallery_column_number'];
1008
+
1009
+ $layout = $settings['premium_gallery_img_style'];
1010
+ $min_size = $settings['premium_gallery_min_range'].'px';
1011
+ $max_size = $settings['premium_gallery_max_range'].'px';
1012
+
1013
+ ?>
1014
+ <div id="premium-img-gallery-<?php echo esc_attr($this->get_id()); ?>" class="premium-img-gallery">
1015
+ <?php if($filter == 'yes') : ?>
1016
+ <div class="premium-img-gallery-filter">
1017
+ <ul class="premium-gallery-cats-container">
1018
+ <li><a href="javascript:;" class="category active" data-filter="*"><span>All</span></a></li>
1019
+ <?php foreach( $settings['premium_gallery_cats_content'] as $category ) : ?>
1020
+ <?php if(!empty($category['premium_gallery_img_cat'] ) ) :
1021
+ $cat_filtered = $this->filter_cats($category['premium_gallery_img_cat']);
1022
+ ?>
1023
+ <li><a href="javascript:;" class="category" data-filter=".<?php echo esc_attr( $cat_filtered ); ?>"><span><?php echo esc_attr( $category['premium_gallery_img_cat'] ); ?></span></a></li>
1024
+ <?php endif; ?>
1025
+ <?php endforeach; ?>
1026
+ </ul>
1027
+ </div>
1028
+ <div class="premium-gallery-container <?php echo esc_attr($number_columns) . ' '.esc_attr($number_columns_tabs) . ' ' . esc_attr($number_columns_mobile); ?>">
1029
+ <?php foreach( $settings['premium_gallery_img_content'] as $image ) : ?>
1030
+ <div class="premium-gallery-item <?php echo esc_attr( $this->filter_cats( $image['premium_gallery_img_category'] ) ); ?>">
1031
+ <div class="pa-gallery-img <?php echo esc_attr($layout); ?>">
1032
+ <div class="pa-gallery-img-container <?php echo esc_attr($settings['premium_gallery_img_effect']); ?>">
1033
+ <?php if($settings['premium_gallery_img_size_select'] == 'one_size'):
1034
+ $image_src = $image['premium_gallery_img'];
1035
+ $image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumnail', $settings );
1036
+ if( empty( $image_src_size ) ) : $image_src_size = $image_src['url']; else: $image_src_size = $image_src_size; endif;
1037
+ ?>
1038
+ <img src="<?php echo $image_src_size; ?>" class="pa-gallery-image">
1039
+ <?php else : ?>
1040
+ <img src="<?php echo esc_url($image['premium_gallery_img']['url']); ?>" class="pa-gallery-image">
1041
+ <?php endif; ?>
1042
+ </div>
1043
+ <?php if($layout == 'default') : ?>
1044
+ <div class="pa-gallery-icons-wrapper">
1045
+ <div class="pa-gallery-icons-inner-container">
1046
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1047
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image"><span><i class="fa fa-search-plus"></i></span></a>
1048
+ <?php endif; ?>
1049
+ <?php if( 'yes' == $image['premium_gallery_img_link_switch'] ) : ?>
1050
+ <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1051
+ $icon_link = $image['premium_gallery_img_link']['url'];
1052
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1053
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1054
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1055
+ <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1056
+ $icon_link = get_permalink($image['premium_gallery_img_existing']);
1057
+ ?>
1058
+ <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1059
+ <?php endif; ?>
1060
+ <?php endif; ?>
1061
+ </div>
1062
+ </div>
1063
+ <div class="premium-gallery-caption">
1064
+ <?php if(!empty($image['premium_gallery_img_name'])):?>
1065
+ <h4 class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></h4>
1066
+ <?php endif; ?>
1067
+ <?php if(!empty($image['premium_gallery_img_desc'])):?>
1068
+ <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1069
+ <?php endif; ?>
1070
+ </div>
1071
+ <?php elseif( $layout == 'style1' ) : ?>
1072
+ <div class="pa-gallery-icons-wrapper">
1073
+ <div class="pa-gallery-icons-inner-container">
1074
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1075
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image"><span><i class="fa fa-search-plus"></i></span></a>
1076
+ <?php endif; ?>
1077
+ <?php if( 'yes' == $image['premium_gallery_img_link_switch'] ) : ?>
1078
+ <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1079
+ $icon_link = $image['premium_gallery_img_link']['url'];
1080
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1081
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1082
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1083
+ <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1084
+ $icon_link = get_permalink($image['premium_gallery_img_existing']);
1085
+ ?>
1086
+ <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1087
+ <?php endif; ?>
1088
+ <?php endif; ?>
1089
+ </div>
1090
+ </div>
1091
+ <div class="premium-gallery-caption">
1092
+ <?php if(!empty($image['premium_gallery_img_name'])):?>
1093
+ <h4 class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></h4>
1094
+ <?php endif; ?>
1095
+ <?php if(!empty($image['premium_gallery_img_desc'])):?>
1096
+ <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1097
+ <?php endif; ?>
1098
+ </div>
1099
+ <?php else: ?>
1100
+ <div class="pa-gallery-icons-caption-container">
1101
+ <div class="pa-gallery-icons-caption-cell">
1102
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1103
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image"><span><i class="fa fa-search-plus"></i></span></a>
1104
+ <?php endif; ?>
1105
+ <?php if( 'yes' == $image['premium_gallery_img_link_switch'] ) : ?>
1106
+ <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1107
+ $icon_link = $image['premium_gallery_img_link']['url'];
1108
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1109
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1110
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1111
+ <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1112
+ $icon_link = get_permalink($image['premium_gallery_img_existing']);
1113
+ ?>
1114
+ <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1115
+ <?php endif; ?>
1116
+ <?php endif; ?>
1117
+ <div class="premium-gallery-caption">
1118
+ <?php if(!empty($image['premium_gallery_img_name'])):?>
1119
+ <h4 class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></h4>
1120
+ <?php endif; ?>
1121
+ <?php if(!empty($image['premium_gallery_img_desc'])):?>
1122
+ <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1123
+ <?php endif; ?>
1124
+ </div>
1125
+ </div>
1126
+ </div>
1127
+ <?php endif; ?>
1128
+ </div>
1129
+ </div>
1130
+ <?php endforeach; ?>
1131
+ </div>
1132
+ <?php else: ?>
1133
+ <div class="premium-gallery-container <?php echo esc_attr($number_columns) . ' '.esc_attr($number_columns_tabs) . ' ' . esc_attr($number_columns_mobile); ?>">
1134
+ <?php foreach( $settings['premium_gallery_img_content'] as $image ) : ?>
1135
+ <div class="premium-gallery-item <?php echo esc_attr( $this->filter_cats( $image['premium_gallery_img_category'] ) ); ?>">
1136
+ <div class="pa-gallery-img <?php echo esc_attr($layout); ?>">
1137
+ <div class="pa-gallery-img-container <?php echo esc_attr($settings['premium_gallery_img_effect']); ?>">
1138
+ <?php if($settings['premium_gallery_img_size_select'] == 'one_size'):
1139
+ $image_src = $image['premium_gallery_img'];
1140
+ $image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumbnail', $settings );
1141
+ if( empty( $image_src_size ) ) : $image_src_size = $image_src['url']; else: $image_src_size = $image_src_size; endif;?>
1142
+ <img src="<?php echo esc_url($image_src_size); ?>" class="pa-gallery-image">
1143
+ <?php else : ?>
1144
+ <img src="<?php echo esc_url($image['premium_gallery_img']['url']); ?>" class="pa-gallery-image">
1145
+ <?php endif; ?>
1146
+ </div>
1147
+ <?php if($layout == 'default') : ?>
1148
+ <div class="pa-gallery-icons-wrapper">
1149
+ <div class="pa-gallery-icons-inner-container">
1150
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1151
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image"><span><i class="fa fa-search-plus"></i></span></a>
1152
+ <?php endif; ?>
1153
+ <?php if( 'yes' == $image['premium_gallery_img_link_switch'] ) : ?>
1154
+ <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1155
+ $icon_link = $image['premium_gallery_img_link']['url'];
1156
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1157
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1158
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1159
+ <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1160
+ $icon_link = get_permalink($image['premium_gallery_img_existing']);
1161
+ ?>
1162
+ <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1163
+ <?php endif; ?>
1164
+ <?php endif; ?>
1165
+ </div>
1166
+ </div>
1167
+ <div class="premium-gallery-caption">
1168
+ <?php if(!empty($image['premium_gallery_img_name'])):?>
1169
+ <h4 class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></h4>
1170
+ <?php endif; ?>
1171
+ <?php if(!empty($image['premium_gallery_img_desc'])):?>
1172
+ <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1173
+ <?php endif; ?>
1174
+ </div>
1175
+ <?php elseif( $layout == 'style1' ) : ?>
1176
+ <div class="pa-gallery-icons-wrapper">
1177
+ <div class="pa-gallery-icons-inner-container">
1178
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1179
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image"><span><i class="fa fa-search-plus"></i></span></a>
1180
+ <?php endif; ?>
1181
+ <?php if( 'yes' == $image['premium_gallery_img_link_switch'] ) : ?>
1182
+ <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1183
+ $icon_link = $image['premium_gallery_img_link']['url'];
1184
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1185
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1186
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1187
+ <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1188
+ $icon_link = get_permalink($image['premium_gallery_img_existing']);
1189
+ ?>
1190
+ <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1191
+ <?php endif; ?>
1192
+ <?php endif; ?>
1193
+ </div>
1194
+ </div>
1195
+ <div class="premium-gallery-caption">
1196
+ <?php if(!empty($image['premium_gallery_img_name'])):?>
1197
+ <h4 class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></h4>
1198
+ <?php endif; ?>
1199
+ <?php if(!empty($image['premium_gallery_img_desc'])):?>
1200
+ <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1201
+ <?php endif; ?>
1202
+ </div>
1203
+ <?php else: ?>
1204
+ <div class="pa-gallery-icons-caption-container">
1205
+ <div class="pa-gallery-icons-caption-cell">
1206
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1207
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image"><span><i class="fa fa-search-plus"></i></span></a>
1208
+ <?php endif; ?>
1209
+ <?php if( 'yes' == $image['premium_gallery_img_link_switch'] ) : ?>
1210
+ <?php if( $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1211
+ $icon_link = $image['premium_gallery_img_link']['url'];
1212
+ $external = $image['premium_gallery_img_link']['is_external'] ? 'target="_blank"' : '';
1213
+ $no_follow = $image['premium_gallery_img_link']['nofollow'] ? 'rel="nofollow"' : ''; ?>
1214
+ <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1215
+ <?php elseif( $image['premium_gallery_img_link_type'] == 'link') :
1216
+ $icon_link = get_permalink($image['premium_gallery_img_existing']);
1217
+ ?>
1218
+ <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1219
+ <?php endif; ?>
1220
+ <?php endif; ?>
1221
+ <div class="premium-gallery-caption">
1222
+ <?php if(!empty($image['premium_gallery_img_name'])):?>
1223
+ <h4 class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></h4>
1224
+ <?php endif; ?>
1225
+ <?php if(!empty($image['premium_gallery_img_desc'])):?>
1226
+ <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1227
+ <?php endif; ?>
1228
+ </div>
1229
+ </div>
1230
+ </div>
1231
+ <?php endif; ?>
1232
+ </div>
1233
+ </div>
1234
+ <?php endforeach; ?>
1235
+ </div>
1236
+ <?php endif; ?>
1237
+ </div>
1238
+ <script>
1239
+ jQuery(document).ready( function($) {
1240
+ <?php if($settings['premium_gallery_img_size_select'] == 'original' && $settings['premium_gallery_filter'] == 'yes'): ?>
1241
+ var $container = $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-container').isotope();
1242
+ $container.imagesLoaded( function() {
1243
+ $container.isotope({
1244
+ filter: '*',
1245
+ itemSelector: '.premium-gallery-item',
1246
+ percentPosition: true,
1247
+ layoutMode: "masonry"
1248
+ });
1249
+ });
1250
+ $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-cats-container li a').click(function(){
1251
+ $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-cats-container li .active').removeClass('active');
1252
+ $(this).addClass('active');
1253
+ var selector = $(this).attr('data-filter');
1254
+ $container.isotope({
1255
+ filter: selector,
1256
+ percentPosition: true,
1257
+ animationOptions: {
1258
+ duration: 750,
1259
+ easing: 'linear',
1260
+ queue: false
1261
+ }
1262
+ });
1263
+ return false;
1264
+ });
1265
+ <?php elseif($settings['premium_gallery_img_size_select'] == 'one_size' && $settings['premium_gallery_filter'] == 'yes'): ?>
1266
+ var $container = $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-container').isotope();
1267
+ $container.imagesLoaded( function() {
1268
+ $container.isotope({
1269
+ filter: '*',
1270
+ itemSelector: '.premium-gallery-item',
1271
+ percentPosition: true,
1272
+ layoutMode: "fitRows"
1273
+ });
1274
+ });
1275
+ $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-cats-container li a').click(function(){
1276
+ $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-cats-container li .active').removeClass('active');
1277
+ $(this).addClass('active');
1278
+ var selector = $(this).attr('data-filter');
1279
+ $container.isotope({
1280
+ filter: selector,
1281
+ animationOptions: {
1282
+ duration: 750,
1283
+ easing: 'linear',
1284
+ queue: false
1285
+ }
1286
+ });
1287
+ return false;
1288
+ });
1289
+ <?php elseif($settings['premium_gallery_img_size_select'] == 'original' && $settings['premium_gallery_filter'] != 'yes'): ?>
1290
+ var $container = $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-container').isotope();
1291
+ $container.imagesLoaded( function() {
1292
+ $container.isotope({
1293
+ itemSelector: '.premium-gallery-item',
1294
+ percentPosition: true,
1295
+ layoutMode: "masonry"
1296
+ });
1297
+ });
1298
+ <?php elseif($settings['premium_gallery_img_size_select'] == 'one_size' && $settings['premium_gallery_filter'] != 'yes'): ?>
1299
+ var $container = $('#premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-container').isotope();
1300
+ $container.imagesLoaded( function() {
1301
+ $container.isotope({
1302
+ itemSelector: '.premium-gallery-item',
1303
+ percentPosition: true,
1304
+ layoutMode: "fitRows"
1305
+ });
1306
+ });
1307
+ <?php endif; ?>
1308
+
1309
+ <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1310
+ $('#premium-img-gallery-<?php echo esc_attr( $this->get_id() ); ?> .pa-gallery-magnific-image').magnificPopup({
1311
+ type: 'image',
1312
+ gallery:{
1313
+ enabled: true
1314
+ },
1315
+ callbacks: {
1316
+ close: function() {
1317
+ $( '#elementor-lightbox' ).hide();
1318
+ }
1319
+ }
1320
+ });
1321
+ <?php endif; ?>
1322
+ });
1323
+ </script>
1324
+ <?php if($settings['premium_gallery_responsive_switcher'] == 'yes') : ?>
1325
+ <style>
1326
+ @media(min-width: <?php echo $min_size; ?> ) and (max-width:<?php echo $max_size; ?>){
1327
+ #premium-img-gallery-<?php echo esc_attr($this->get_id()); ?> .premium-gallery-caption {
1328
+ display: none;
1329
+ }
1330
+ }
1331
+ </style>
1332
+ <?php endif; ?>
1333
+ <?php }
1334
+ }
1335
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Gallery_Widget());
widgets/premium-maps.php CHANGED
@@ -216,7 +216,24 @@ class Premium_Maps_Widget extends Widget_Base
216
  'type' => Controls_Manager::SWITCHER,
217
  ]
218
  );
219
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  $this->end_controls_section();
221
 
222
  $this->start_controls_section('premium_maps_custom_styling_section',
@@ -512,12 +529,9 @@ class Premium_Maps_Widget extends Widget_Base
512
  ?>
513
  <div id="premium-map-script-trriger-<?php echo esc_attr($this->get_id()); ?>"></div>
514
  <div class="premium-maps-container" id="premium-maps-container">
515
- <div id="premium-maps-map-<?php echo esc_attr($this->get_id()); ?>" class="premium_maps_map_height"></div>
516
- </div>
517
-
518
-
519
-
520
- <script>
521
 
522
  var premium_mapDiv = document.getElementById('premium-map-script-trriger-<?php echo esc_attr($this->get_id()); ?>');
523
  google.maps.event.addDomListener(premium_mapDiv, 'click', initMap);
@@ -562,17 +576,36 @@ class Premium_Maps_Widget extends Widget_Base
562
  infowindow.open(map, marker);
563
  }
564
  <?php endif; ?>
565
- google.maps.event.addListener(marker, 'click', (function(marker, i) {
566
- return function() {
567
- if(locations[i][0] !== '' || locations[i][1] !== '') {
568
- infowindow.setContent("<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><div class='premium-maps-info-desc'>" + locations[i][1] + "</div></div>");
569
- infowindow.open(map, marker);
570
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
571
  }
572
- })(marker, i));
573
  }
574
- }
575
- </script>
576
 
577
 
578
 
216
  'type' => Controls_Manager::SWITCHER,
217
  ]
218
  );
219
+
220
+ $this->add_control('premium_maps_marker_hover_open',
221
+ [
222
+ 'label' => esc_html__( 'Info Container Opened when Hovered', 'premium-addons-for-elementor' ),
223
+ 'type' => Controls_Manager::SWITCHER,
224
+ ]
225
+ );
226
+
227
+ $this->add_control('premium_maps_marker_mouse_out',
228
+ [
229
+ 'label' => esc_html__( 'Info Container Closed when Mouse Out', 'premium-addons-for-elementor' ),
230
+ 'type' => Controls_Manager::SWITCHER,
231
+ 'condition' => [
232
+ 'premium_maps_marker_hover_open' => 'yes'
233
+ ]
234
+ ]
235
+ );
236
+
237
  $this->end_controls_section();
238
 
239
  $this->start_controls_section('premium_maps_custom_styling_section',
529
  ?>
530
  <div id="premium-map-script-trriger-<?php echo esc_attr($this->get_id()); ?>"></div>
531
  <div class="premium-maps-container" id="premium-maps-container">
532
+ <div id="premium-maps-map-<?php echo esc_attr($this->get_id()); ?>" class="premium_maps_map_height"></div>
533
+ </div>
534
+ <script>
 
 
 
535
 
536
  var premium_mapDiv = document.getElementById('premium-map-script-trriger-<?php echo esc_attr($this->get_id()); ?>');
537
  google.maps.event.addDomListener(premium_mapDiv, 'click', initMap);
576
  infowindow.open(map, marker);
577
  }
578
  <?php endif; ?>
579
+ <?php if( $settings['premium_maps_marker_hover_open'] == 'yes' ) : ?>
580
+ google.maps.event.addListener(marker, 'mouseover', (function(marker, i) {
581
+ return function() {
582
+ if(locations[i][0] !== '' || locations[i][1] !== '') {
583
+ infowindow.setContent("<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><div class='premium-maps-info-desc'>" + locations[i][1] + "</div></div>");
584
+ infowindow.open(map, marker);
585
+ }
586
+ }
587
+ })(marker, i));
588
+ <?php if( $settings['premium_maps_marker_mouse_out'] == 'yes' ) : ?>
589
+ google.maps.event.addListener(marker, 'mouseout', (function(marker, i) {
590
+ return function() {
591
+ if(locations[i][0] !== '' || locations[i][1] !== '') {
592
+ infowindow.close(map, marker);
593
+ }
594
+ }
595
+ })(marker, i));
596
+ <?php endif; ?>
597
+ <?php endif; ?>
598
+ google.maps.event.addListener(marker, 'click', (function(marker, i) {
599
+ return function() {
600
+ if(locations[i][0] !== '' || locations[i][1] !== '') {
601
+ infowindow.setContent("<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><div class='premium-maps-info-desc'>" + locations[i][1] + "</div></div>");
602
+ infowindow.open(map, marker);
603
+ }
604
+ }
605
+ })(marker, i));
606
  }
 
607
  }
608
+ </script>
 
609
 
610
 
611
 
widgets/premium-pricing-table.php CHANGED
@@ -1825,4 +1825,4 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1825
  <?php
1826
  }
1827
  }
1828
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Pricing_Table_Widget);
1825
  <?php
1826
  }
1827
  }
1828
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Pricing_Table_Widget());