Premium Addons for Elementor - Version 3.11.8

Version Description

  • Tweak: Added Mouse Tilt option in Banner widget.
  • Fixed: Thousands separator can't be removed in Counter widget.
  • Fixed: Videos/Links are not embedded in Blog widget.
  • Fixed: Modal iframes duplicate issue in Modal Box widget.
Download this release

Release Info

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

Code changes from version 3.11.7 to 3.11.8

assets/frontend/js/modal.js CHANGED
@@ -1 +1,137 @@
1
- if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";var e=function(e,i){this.options=i,this.$body=t(document.body),this.$html=t(document.documentElement),this.$element=t(e),this.$dialog=this.$element.find(".premium-modal-box-modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".premium-modal-box-modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function i(i,o){return this.each(function(){var s=t(this),n=s.data("bs.modal"),r=t.extend({},e.DEFAULTS,s.data(),"object"==typeof i&&i);n||s.data("bs.modal",n=new e(this,r)),"string"==typeof i?n[i](o):r.show&&n.show(o)})}e.VERSION="3.3.7",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("premium-modal-open"),this.$html.addClass("premium-modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="premium-modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("premium-modal-fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("premium-in"),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});i.$element.trigger("focus").trigger(s)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("premium-in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("premium-modal-open"),t.$html.removeClass("premium-modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("premium-modal-fade")?"premium-modal-fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("premium-modal-backdrop "+o),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("premium-in"),!e)return;e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("premium-in");i.removeBackdrop(),e&&e()}else e&&e()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||""},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="premium-modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=i,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=o,this};var s,n=0;t(document).on("click.bs.modal.data-api",'[data-toggle="premium-modal"]',function(e){var o=t(this),r=o.attr("href"),a=t(o.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),d=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},a.data(),o.data());o.is("a")&&e.preventDefault(),a.one("show.bs.modal",function(e){0===n&&(s=t(this).find("iframe").attr("src")),e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){var e=t(this).find(".premium-video-box-container").data("type");t(this).find("iframe").attr("src",s),"self"===e&&t(this).find("video").get(0).pause(),n++,o.is(":visible")&&o.trigger("focus")})}),i.call(a,d,this)})}(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery");
2
+ ! function (t) {
3
+ "use strict";
4
+ var e = t.fn.jquery.split(" ")[0].split(".");
5
+ if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1 || e[0] > 3) throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")
6
+ }(jQuery),
7
+ function (t) {
8
+ "use strict";
9
+ var e = function (e, i) {
10
+ this.options = i, this.$body = t(document.body), this.$html = t(document.documentElement), this.$element = t(e), this.$dialog = this.$element.find(".premium-modal-box-modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".premium-modal-box-modal-content").load(this.options.remote, t.proxy(function () {
11
+ this.$element.trigger("loaded.bs.modal")
12
+ }, this))
13
+ };
14
+
15
+ function i(i, o) {
16
+ return this.each(function () {
17
+ var s = t(this),
18
+ n = s.data("bs.modal"),
19
+ r = t.extend({}, e.DEFAULTS, s.data(), "object" == typeof i && i);
20
+ n || s.data("bs.modal", n = new e(this, r)), "string" == typeof i ? n[i](o) : r.show && n.show(o)
21
+ })
22
+ }
23
+ e.VERSION = "3.3.7", e.TRANSITION_DURATION = 300, e.BACKDROP_TRANSITION_DURATION = 150, e.DEFAULTS = {
24
+ backdrop: !0,
25
+ keyboard: !0,
26
+ show: !0
27
+ }, e.prototype.toggle = function (t) {
28
+ return this.isShown ? this.hide() : this.show(t)
29
+ }, e.prototype.show = function (e) {
30
+ var i = this,
31
+ o = t.Event("show.bs.modal", {
32
+ relatedTarget: e
33
+ });
34
+ this.$element.trigger(o), this.isShown || o.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("premium-modal-open"), this.$html.addClass("premium-modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="premium-modal"]', t.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function () {
35
+ i.$element.one("mouseup.dismiss.bs.modal", function (e) {
36
+ t(e.target).is(i.$element) && (i.ignoreBackdropClick = !0)
37
+ })
38
+ }), this.backdrop(function () {
39
+ var o = t.support.transition && i.$element.hasClass("premium-modal-fade");
40
+ i.$element.parent().length || i.$element.appendTo(i.$body), i.$element.show().scrollTop(0), i.adjustDialog(), o && i.$element[0].offsetWidth, i.$element.addClass("premium-in"), i.enforceFocus();
41
+ var s = t.Event("shown.bs.modal", {
42
+ relatedTarget: e
43
+ });
44
+ i.$element.trigger("focus").trigger(s)
45
+ }))
46
+ }, e.prototype.hide = function (e) {
47
+ e && e.preventDefault(), e = t.Event("hide.bs.modal"), this.$element.trigger(e), this.isShown && !e.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), t(document).off("focusin.bs.modal"), this.$element.removeClass("premium-in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), this.hideModal())
48
+ }, e.prototype.enforceFocus = function () {
49
+ t(document).off("focusin.bs.modal").on("focusin.bs.modal", t.proxy(function (t) {
50
+ document === t.target || this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus")
51
+ }, this))
52
+ }, e.prototype.escape = function () {
53
+ this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", t.proxy(function (t) {
54
+ 27 == t.which && this.hide()
55
+ }, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal")
56
+ }, e.prototype.resize = function () {
57
+ this.isShown ? t(window).on("resize.bs.modal", t.proxy(this.handleUpdate, this)) : t(window).off("resize.bs.modal")
58
+ }, e.prototype.hideModal = function () {
59
+ var t = this;
60
+ this.$element.hide(), this.backdrop(function () {
61
+ t.$body.removeClass("premium-modal-open"), t.$html.removeClass("premium-modal-open"), t.resetAdjustments(), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal")
62
+ })
63
+ }, e.prototype.removeBackdrop = function () {
64
+ this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
65
+ }, e.prototype.backdrop = function (e) {
66
+ var i = this,
67
+ o = this.$element.hasClass("premium-modal-fade") ? "premium-modal-fade" : "";
68
+ if (this.isShown && this.options.backdrop) {
69
+ var s = t.support.transition && o;
70
+ if (this.$backdrop = t(document.createElement("div")).addClass("premium-modal-backdrop " + o), this.$element.on("click.dismiss.bs.modal", t.proxy(function (t) {
71
+ this.ignoreBackdropClick ? this.ignoreBackdropClick = !1 : t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide())
72
+ }, this)), s && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("premium-in"), !e) return;
73
+ e()
74
+ } else if (!this.isShown && this.$backdrop) {
75
+ this.$backdrop.removeClass("premium-in");
76
+ i.removeBackdrop(), e && e()
77
+ } else e && e()
78
+ }, e.prototype.handleUpdate = function () {
79
+ this.adjustDialog()
80
+ }, e.prototype.adjustDialog = function () {
81
+ var t = this.$element[0].scrollHeight > document.documentElement.clientHeight;
82
+ this.$element.css({
83
+ paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : "",
84
+ paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : ""
85
+ })
86
+ }, e.prototype.resetAdjustments = function () {
87
+ this.$element.css({
88
+ paddingLeft: "",
89
+ paddingRight: ""
90
+ })
91
+ }, e.prototype.checkScrollbar = function () {
92
+ var t = window.innerWidth;
93
+ if (!t) {
94
+ var e = document.documentElement.getBoundingClientRect();
95
+ t = e.right - Math.abs(e.left)
96
+ }
97
+ this.bodyIsOverflowing = document.body.clientWidth < t, this.scrollbarWidth = this.measureScrollbar()
98
+ }, e.prototype.setScrollbar = function () {
99
+ parseInt(this.$body.css("padding-right") || 0, 10);
100
+ this.originalBodyPad = document.body.style.paddingRight || ""
101
+ }, e.prototype.resetScrollbar = function () {
102
+ this.$body.css("padding-right", this.originalBodyPad)
103
+ }, e.prototype.measureScrollbar = function () {
104
+ var t = document.createElement("div");
105
+ t.className = "premium-modal-scrollbar-measure", this.$body.append(t);
106
+ var e = t.offsetWidth - t.clientWidth;
107
+ return this.$body[0].removeChild(t), e
108
+ };
109
+ var o = t.fn.modal;
110
+ t.fn.modal = i, t.fn.modal.Constructor = e, t.fn.modal.noConflict = function () {
111
+ return t.fn.modal = o, this
112
+ };
113
+ var s, n = 0;
114
+ t(document).on("click.bs.modal.data-api", '[data-toggle="premium-modal"]', function (e) {
115
+ var o = t(this),
116
+ r = o.attr("href"),
117
+ a = t(o.attr("data-target") || r && r.replace(/.*(?=#[^\s]+$)/, "")),
118
+ d = a.data("bs.modal") ? "toggle" : t.extend({
119
+ remote: !/#/.test(r) && r
120
+ }, a.data(), o.data());
121
+ o.is("a") && e.preventDefault(), a.one("show.bs.modal", function (e) {
122
+ t(this).find("iframe").each(function (index, elem) {
123
+ var source = t(elem).attr("src");
124
+ t(elem).attr("data-src", source);
125
+ });
126
+ 0 === n && e.isDefaultPrevented() || a.one("hidden.bs.modal", function () {
127
+ var e = t(this).find(".premium-video-box-container").data("type");
128
+ t(this).find("iframe").each(function (index, elem) {
129
+ var source = t(elem).attr("data-src");
130
+ t(elem).attr("src", source);
131
+ });
132
+
133
+ "self" === e && t(this).find("video").get(0).pause(), n++, o.is(":visible") && o.trigger("focus")
134
+ })
135
+ }), i.call(a, d, this)
136
+ })
137
+ }(jQuery);
assets/frontend/js/premium-addons.js CHANGED
@@ -23,56 +23,56 @@
23
 
24
  /****** Premium Video Box Handler ******/
25
  var PremiumVideoBoxWidgetHandler = function ($scope, $) {
26
-
27
- var $videoBoxElement = $scope.find(".premium-video-box-container"),
28
- $videoContainer = $videoBoxElement.find(".premium-video-box-video-container"),
29
- type = $videoBoxElement.data("type"),
30
  video, vidSrc, checkRel;
31
-
32
-
33
-
34
- if( "self" === type ) {
35
-
36
  video = $videoContainer.find("video");
37
  vidSrc = video.attr("src");
38
-
39
  } else {
40
-
41
  vidSrc = $videoContainer.data("src");
42
-
43
- if( -1 !== vidSrc.indexOf( "autoplay=1" ) ) {
44
  playVideo();
45
  } else {
46
  vidSrc = vidSrc + "&autoplay=1";
47
  }
48
 
49
  }
50
-
51
-
52
  function playVideo() {
53
-
54
  if ("self" === type) {
55
-
56
  $(video).get(0).play();
57
-
58
  $videoContainer.css({
59
  opacity: "1",
60
  visibility: "visible"
61
  });
62
-
63
  } else {
64
-
65
  var $iframe = $("<iframe/>");
66
-
67
  checkRel = vidSrc.indexOf("rel=0");
68
  $iframe.attr("src", vidSrc);
69
  $iframe.attr("frameborder", "0");
70
  $iframe.attr("allowfullscreen", "1");
71
  $iframe.attr("allow", "autoplay;encrypted-media;");
72
  $videoContainer.css("background", "#000");
73
- $videoContainer.html( $iframe );
74
  }
75
-
76
  $videoBoxElement.find(
77
  ".premium-video-box-image-container, .premium-video-box-play-icon-container"
78
  ).remove();
@@ -80,8 +80,8 @@
80
  if ("vimeo" === type)
81
  $videoBoxElement.find(".premium-video-box-vimeo-wrap").remove();
82
  }
83
-
84
-
85
  $videoBoxElement.on("click", function () {
86
  playVideo();
87
  });
@@ -591,6 +591,26 @@
591
  var $bannerElement = $scope.find(".premium-banner"),
592
  $bannerImg = $bannerElement.find("img");
593
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
594
  $bannerElement.find(".premium-banner-ib").hover(function () {
595
  $bannerImg.addClass("active");
596
  }, function () {
@@ -621,9 +641,9 @@
621
  carousel = $blogElement.data("carousel"),
622
  grid = $blogElement.data("grid"),
623
  layout = $blogElement.data("layout");
624
-
625
  var $metaSeparators = $blogPost.first().find(".premium-blog-meta-separator");
626
-
627
  if (1 === $metaSeparators.length) {
628
  $blogPost.find(".premium-blog-meta-separator").remove();
629
  } else {
@@ -645,8 +665,8 @@
645
  });
646
  return false;
647
  });
648
-
649
- if ("masonry" === layout && ! carousel) {
650
  $blogElement.imagesLoaded(function () {
651
  $blogElement.isotope({
652
  itemSelector: ".premium-blog-post-outer-container",
@@ -659,7 +679,7 @@
659
  });
660
  });
661
  }
662
-
663
  if (carousel && grid) {
664
  var autoPlay = $blogElement.data("play"),
665
  speed = $blogElement.data("speed"),
23
 
24
  /****** Premium Video Box Handler ******/
25
  var PremiumVideoBoxWidgetHandler = function ($scope, $) {
26
+
27
+ var $videoBoxElement = $scope.find(".premium-video-box-container"),
28
+ $videoContainer = $videoBoxElement.find(".premium-video-box-video-container"),
29
+ type = $videoBoxElement.data("type"),
30
  video, vidSrc, checkRel;
31
+
32
+
33
+
34
+ if ("self" === type) {
35
+
36
  video = $videoContainer.find("video");
37
  vidSrc = video.attr("src");
38
+
39
  } else {
40
+
41
  vidSrc = $videoContainer.data("src");
42
+
43
+ if (-1 !== vidSrc.indexOf("autoplay=1")) {
44
  playVideo();
45
  } else {
46
  vidSrc = vidSrc + "&autoplay=1";
47
  }
48
 
49
  }
50
+
51
+
52
  function playVideo() {
53
+
54
  if ("self" === type) {
55
+
56
  $(video).get(0).play();
57
+
58
  $videoContainer.css({
59
  opacity: "1",
60
  visibility: "visible"
61
  });
62
+
63
  } else {
64
+
65
  var $iframe = $("<iframe/>");
66
+
67
  checkRel = vidSrc.indexOf("rel=0");
68
  $iframe.attr("src", vidSrc);
69
  $iframe.attr("frameborder", "0");
70
  $iframe.attr("allowfullscreen", "1");
71
  $iframe.attr("allow", "autoplay;encrypted-media;");
72
  $videoContainer.css("background", "#000");
73
+ $videoContainer.html($iframe);
74
  }
75
+
76
  $videoBoxElement.find(
77
  ".premium-video-box-image-container, .premium-video-box-play-icon-container"
78
  ).remove();
80
  if ("vimeo" === type)
81
  $videoBoxElement.find(".premium-video-box-vimeo-wrap").remove();
82
  }
83
+
84
+
85
  $videoBoxElement.on("click", function () {
86
  playVideo();
87
  });
591
  var $bannerElement = $scope.find(".premium-banner"),
592
  $bannerImg = $bannerElement.find("img");
593
 
594
+
595
+ if ($bannerElement.data("box-tilt")) {
596
+ var reverse = $bannerElement.data("box-tilt-reverse");
597
+ UniversalTilt.init({
598
+ elements: $bannerElement,
599
+ settings: {
600
+ reverse: reverse
601
+ },
602
+ callbacks: {
603
+ onMouseLeave: function (el) {
604
+ el.style.boxShadow = "0 45px 100px rgba(255, 255, 255, 0)";
605
+ },
606
+ onDeviceMove: function (el) {
607
+ el.style.boxShadow = "0 45px 100px rgba(255, 255, 255, 0.3)";
608
+ }
609
+ }
610
+ });
611
+ }
612
+
613
+
614
  $bannerElement.find(".premium-banner-ib").hover(function () {
615
  $bannerImg.addClass("active");
616
  }, function () {
641
  carousel = $blogElement.data("carousel"),
642
  grid = $blogElement.data("grid"),
643
  layout = $blogElement.data("layout");
644
+
645
  var $metaSeparators = $blogPost.first().find(".premium-blog-meta-separator");
646
+
647
  if (1 === $metaSeparators.length) {
648
  $blogPost.find(".premium-blog-meta-separator").remove();
649
  } else {
665
  });
666
  return false;
667
  });
668
+
669
+ if ("masonry" === layout && !carousel) {
670
  $blogElement.imagesLoaded(function () {
671
  $blogElement.isotope({
672
  itemSelector: ".premium-blog-post-outer-container",
679
  });
680
  });
681
  }
682
+
683
  if (carousel && grid) {
684
  var autoPlay = $blogElement.data("play"),
685
  speed = $blogElement.data("speed"),
assets/frontend/js/universal-tilt.js ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! function (e, t) {
2
+ "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("UniversalTilt", [], t) : "object" == typeof exports ? exports.UniversalTilt = t() : e.UniversalTilt = t()
3
+ }("object" != typeof window ? global.window = global : window, function () {
4
+ return function (e) {
5
+ var t = {};
6
+
7
+ function n(i) {
8
+ if (t[i]) return t[i].exports;
9
+ var s = t[i] = {
10
+ i: i,
11
+ l: !1,
12
+ exports: {}
13
+ };
14
+ return e[i].call(s.exports, s, s.exports, n), s.l = !0, s.exports
15
+ }
16
+ return n.m = e, n.c = t, n.d = function (e, t, i) {
17
+ n.o(e, t) || Object.defineProperty(e, t, {
18
+ enumerable: !0,
19
+ get: i
20
+ })
21
+ }, n.r = function (e) {
22
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
23
+ value: "Module"
24
+ }), Object.defineProperty(e, "__esModule", {
25
+ value: !0
26
+ })
27
+ }, n.t = function (e, t) {
28
+ if (1 & t && (e = n(e)), 8 & t) return e;
29
+ if (4 & t && "object" == typeof e && e && e.__esModule) return e;
30
+ var i = Object.create(null);
31
+ if (n.r(i), Object.defineProperty(i, "default", {
32
+ enumerable: !0,
33
+ value: e
34
+ }), 2 & t && "string" != typeof e)
35
+ for (var s in e) n.d(i, s, function (t) {
36
+ return e[t]
37
+ }.bind(null, s));
38
+ return i
39
+ }, n.n = function (e) {
40
+ var t = e && e.__esModule ? function () {
41
+ return e.default
42
+ } : function () {
43
+ return e
44
+ };
45
+ return n.d(t, "a", t), t
46
+ }, n.o = function (e, t) {
47
+ return Object.prototype.hasOwnProperty.call(e, t)
48
+ }, n.p = "", n(n.s = 0)
49
+ }([function (e, t, n) {
50
+ "use strict";
51
+ Object.defineProperty(t, "__esModule", {
52
+ value: !0
53
+ }), t.default = void 0;
54
+ var i, s = (i = n(1)) && i.__esModule ? i : {
55
+ default: i
56
+ };
57
+ var o = s.default;
58
+ t.default = o, t.default = s.default, e.exports = t.default
59
+ }, function (e, t, n) {
60
+ "use strict";
61
+
62
+ function i(e, t) {
63
+ for (var n = 0; n < t.length; n++) {
64
+ var i = t[n];
65
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i)
66
+ }
67
+ }
68
+
69
+ function s(e, t, n) {
70
+ return t in e ? Object.defineProperty(e, t, {
71
+ value: n,
72
+ enumerable: !0,
73
+ configurable: !0,
74
+ writable: !0
75
+ }) : e[t] = n, e
76
+ }
77
+ Object.defineProperty(t, "__esModule", {
78
+ value: !0
79
+ }), t.default = void 0;
80
+ var o = function () {
81
+ function e(t) {
82
+ var n = this,
83
+ i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
84
+ o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
85
+ ! function (e, t) {
86
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
87
+ }(this, e), s(this, "onMouseEnter", function () {
88
+ n.updateElementPosition(), n.transitions(), "function" == typeof n.callbacks.onMouseEnter && n.callbacks.onMouseEnter(n.element)
89
+ }), s(this, "onMouseMove", function (e) {
90
+ null !== n.updateCall && cancelAnimationFrame(n.updateCall), n.event = e, n.updateElementPosition(), n.updateCall = requestAnimationFrame(function () {
91
+ return n.update()
92
+ }), "function" == typeof n.callbacks.onMouseMove && n.callbacks.onMouseMove(n.element)
93
+ }), s(this, "onMouseLeave", function () {
94
+ n.transitions(), requestAnimationFrame(function () {
95
+ return n.reset()
96
+ }), "function" == typeof n.callbacks.onMouseLeave && n.callbacks.onMouseLeave(n.element)
97
+ }), s(this, "onDeviceMove", function (e) {
98
+ n.event = e, n.update(), n.updateElementPosition(), n.transitions(), "function" == typeof n.callbacks.onDeviceMove && n.callbacks.onDeviceMove(n.element)
99
+ }), this.element = t, this.callbacks = o, this.settings = this.extendSettings(i), "function" == typeof this.callbacks.onInit && this.callbacks.onInit(this.element), this.reverse = this.settings.reverse ? -1 : 1, this.settings.shine && this.shine(), this.element.style.transform = "perspective(".concat(this.settings.perspective, "px)"), this.addEventListeners()
100
+ }
101
+ var t, n, o;
102
+ return t = e, o = [{
103
+ key: "init",
104
+ value: function () {
105
+ var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
106
+ n = t.elements,
107
+ i = t.settings,
108
+ s = t.callbacks;
109
+ n instanceof Node && (n = [n]), n instanceof NodeList && (n = [].slice.call(n));
110
+ var o = !0,
111
+ a = !1,
112
+ l = void 0;
113
+ try {
114
+ for (var r, c = n[Symbol.iterator](); !(o = (r = c.next()).done); o = !0) {
115
+ var u = r.value;
116
+ "universalTilt" in u || (u.universalTilt = new e(u, i, s))
117
+ }
118
+ } catch (e) {
119
+ a = !0, l = e
120
+ } finally {
121
+ try {
122
+ o || null == c.return || c.return()
123
+ } finally {
124
+ if (a) throw l
125
+ }
126
+ }
127
+ }
128
+ }], (n = [{
129
+ key: "isMobile",
130
+ value: function () {
131
+ return window.DeviceMotionEvent && "ontouchstart" in document.documentElement
132
+ }
133
+ }, {
134
+ key: "addEventListeners",
135
+ value: function () {
136
+ navigator.userAgent.match(this.settings.exclude) || (this.isMobile() ? window.addEventListener("devicemotion", this.onDeviceMove) : ("element" === this.settings.base ? this.base = this.element : "window" === this.settings.base && (this.base = window), this.base.addEventListener("mouseenter", this.onMouseEnter), this.base.addEventListener("mousemove", this.onMouseMove), this.base.addEventListener("mouseleave", this.onMouseLeave)))
137
+ }
138
+ }, {
139
+ key: "removeEventListeners",
140
+ value: function () {
141
+ window.removeEventListener("devicemotion", this.onDeviceMove), this.base.removeEventListener("mouseenter", this.onMouseEnter), this.base.removeEventListener("mousemove", this.onMouseMove), this.base.removeEventListener("mouseleave", this.onMouseLeave)
142
+ }
143
+ }, {
144
+ key: "destroy",
145
+ value: function () {
146
+ clearTimeout(this.timeout), null !== this.updateCall && cancelAnimationFrame(this.updateCall), "function" == typeof this.callbacks.onDestroy && this.callbacks.onDestroy(this.element), this.reset(), this.removeEventListeners(), this.element.universalTilt = null, delete this.element.universalTilt, this.element = null
147
+ }
148
+ }, {
149
+ key: "reset",
150
+ value: function () {
151
+ this.event = {
152
+ pageX: this.left + this.width / 2,
153
+ pageY: this.top + this.height / 2
154
+ }, this.settings.reset && (this.element.style.transform = "perspective(".concat(this.settings.perspective, "px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)")), this.settings.shine && !this.settings["shine-save"] && Object.assign(this.shineElement.style, {
155
+ transform: "rotate(180deg) translate3d(-50%, -50%, 0)",
156
+ opacity: "0"
157
+ })
158
+ }
159
+ }, {
160
+ key: "getValues",
161
+ value: function () {
162
+ var e, t, n;
163
+ this.isMobile() ? (e = this.event.accelerationIncludingGravity.x / 4, t = this.event.accelerationIncludingGravity.y / 4, 90 === window.orientation ? (n = (1 - t) / 2, t = (1 + e) / 2, e = n) : -90 === window.orientation ? (n = (1 + t) / 2, t = (1 - e) / 2, e = n) : 0 === window.orientation ? (t = n = (1 + t) / 2, e = (1 + e) / 2) : 180 === window.orientation && (t = n = (1 - t) / 2, e = (1 - e) / 2)) : "element" === this.settings.base ? (e = (this.event.clientX - this.left) / this.width, t = (this.event.clientY - this.top) / this.height) : "window" === this.settings.base && (e = this.event.clientX / window.innerWidth, t = this.event.clientY / window.innerHeight);
164
+ e = Math.min(Math.max(e, 0), 1), t = Math.min(Math.max(t, 0), 1);
165
+ var i = (this.settings.max / 2 - e * this.settings.max).toFixed(2),
166
+ s = (t * this.settings.max - this.settings.max / 2).toFixed(2),
167
+ o = Math.atan2(e - .5, .5 - t) * (180 / Math.PI);
168
+ return {
169
+ tiltX: this.reverse * i,
170
+ tiltY: this.reverse * s,
171
+ angle: o
172
+ }
173
+ }
174
+ }, {
175
+ key: "updateElementPosition",
176
+ value: function () {
177
+ var e = this.element.getBoundingClientRect();
178
+ this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, this.left = e.left, this.top = e.top
179
+ }
180
+ }, {
181
+ key: "update",
182
+ value: function () {
183
+ var e = this.getValues();
184
+ this.element.style.transform = "perspective(".concat(this.settings.perspective, "px)\n rotateX(").concat(this.settings.disabled && "X" === this.settings.disabled.toUpperCase() ? 0 : e.tiltY, "deg)\n rotateY(").concat(this.settings.disabled && "Y" === this.settings.disabled.toUpperCase() ? 0 : e.tiltX, "deg)\n scale3d(").concat(this.settings.scale, ", ").concat(this.settings.scale, ", ").concat(this.settings.scale, ")"), this.settings.shine && Object.assign(this.shineElement.style, {
185
+ transform: "rotate(".concat(e.angle, "deg) translate3d(-50%, -50%, 0)"),
186
+ opacity: "".concat(this.settings["shine-opacity"])
187
+ }), this.element.dispatchEvent(new CustomEvent("tiltChange", {
188
+ detail: e
189
+ })), this.updateCall = null
190
+ }
191
+ }, {
192
+ key: "shine",
193
+ value: function () {
194
+ var e = document.createElement("div"),
195
+ t = document.createElement("div");
196
+ e.classList.add("shine"), t.classList.add("shine-inner"), e.appendChild(t), this.element.appendChild(e), this.shineWrapper = this.element.querySelector(".shine"), this.shineElement = this.element.querySelector(".shine-inner"), Object.assign(this.shineWrapper.style, {
197
+ position: "absolute",
198
+ top: "0",
199
+ left: "0",
200
+ height: "100%",
201
+ width: "100%",
202
+ overflow: "hidden"
203
+ }), Object.assign(this.shineElement.style, {
204
+ position: "absolute",
205
+ top: "50%",
206
+ left: "50%",
207
+ "pointer-events": "none",
208
+ "background-image": "linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)",
209
+ width: "".concat(2 * this.element.offsetWidth, "px"),
210
+ height: "".concat(2 * this.element.offsetWidth, "px"),
211
+ transform: "rotate(180deg) translate3d(-50%, -50%, 0)",
212
+ "transform-origin": "0% 0%",
213
+ opacity: "0"
214
+ })
215
+ }
216
+ }, {
217
+ key: "transitions",
218
+ value: function () {
219
+ var e = this;
220
+ clearTimeout(this.timeout), this.element.style.transition = "all ".concat(this.settings.speed, "ms ").concat(this.settings.easing), this.settings.shine && (this.shineElement.style.transition = "opacity ".concat(this.settings.speed, "ms ").concat(this.settings.easing)), this.timeout = setTimeout(function () {
221
+ e.element.style.transition = "", e.settings.shine && (e.shineElement.style.transition = "")
222
+ }, this.settings.speed)
223
+ }
224
+ }, {
225
+ key: "extendSettings",
226
+ value: function (e) {
227
+ var t = {
228
+ base: "element",
229
+ disabled: null,
230
+ easing: "cubic-bezier(.03, .98, .52, .99)",
231
+ exclude: null,
232
+ max: 35,
233
+ perspective: 1e3,
234
+ reset: !0,
235
+ reverse: !1,
236
+ scale: 1,
237
+ shine: !1,
238
+ "shine-opacity": 0,
239
+ "shine-save": !1,
240
+ speed: 300
241
+ },
242
+ n = {};
243
+ for (var i in t)
244
+ if (i in e) n[i] = e[i];
245
+ else if (this.element.getAttribute("data-".concat(i))) {
246
+ var s = this.element.getAttribute("data-".concat(i));
247
+ try {
248
+ n[i] = JSON.parse(s)
249
+ } catch (e) {
250
+ n[i] = s
251
+ }
252
+ } else n[i] = t[i];
253
+ return n
254
+ }
255
+ }]) && i(t.prototype, n), o && i(t, o), e
256
+ }();
257
+ if (t.default = o, "undefined" != typeof document) {
258
+ window.UniversalTilt = o;
259
+ var a = document.querySelectorAll("[data-tilt]");
260
+ a.length && o.init({
261
+ elements: a
262
+ })
263
+ }
264
+ window.jQuery && (window.jQuery.fn.universalTilt = function () {
265
+ var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
266
+ o.init({
267
+ elements: this,
268
+ settings: e.settings || {},
269
+ callbacks: e.callbacks || {}
270
+ })
271
+ })
272
+ }])
273
+ });
assets/frontend/min-js/modal.min.js CHANGED
@@ -1 +1 @@
1
- if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(n){"use strict";function r(t,e){this.options=e,this.$body=n(document.body),this.$html=n(document.documentElement),this.$element=n(t),this.$dialog=this.$element.find(".premium-modal-box-modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".premium-modal-box-modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function a(o,s){return this.each(function(){var t=n(this),e=t.data("bs.modal"),i=n.extend({},r.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new r(this,i)),"string"==typeof o?e[o](s):i.show&&e.show(s)})}r.VERSION="3.3.7",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(i){var o=this,t=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("premium-modal-open"),this.$html.addClass("premium-modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="premium-modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=n.support.transition&&o.$element.hasClass("premium-modal-fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("premium-in"),o.enforceFocus();var e=n.Event("shown.bs.modal",{relatedTarget:i});o.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("premium-in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),this.hideModal())},r.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("premium-modal-open"),t.$html.removeClass("premium-modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this.$element.hasClass("premium-modal-fade")?"premium-modal-fade":"";if(this.isShown&&this.options.backdrop){var i=n.support.transition&&e;if(this.$backdrop=n(document.createElement("div")).addClass("premium-modal-backdrop "+e),this.$element.on("click.dismiss.bs.modal",n.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("premium-in"),!t)return;t()}else!this.isShown&&this.$backdrop&&(this.$backdrop.removeClass("premium-in"),this.removeBackdrop()),t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){parseInt(this.$body.css("padding-right")||0,10),this.originalBodyPad=document.body.style.paddingRight||""},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},r.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="premium-modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=n.fn.modal;n.fn.modal=a,n.fn.modal.Constructor=r,n.fn.modal.noConflict=function(){return n.fn.modal=t,this};var d,l=0;n(document).on("click.bs.modal.data-api",'[data-toggle="premium-modal"]',function(t){var e=n(this),i=e.attr("href"),o=n(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(i)&&i},o.data(),e.data());e.is("a")&&t.preventDefault(),o.one("show.bs.modal",function(t){0===l&&(d=n(this).find("iframe").attr("src")),t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){var t=n(this).find(".premium-video-box-container").data("type");n(this).find("iframe").attr("src",d),"self"===t&&n(this).find("video").get(0).pause(),l++,e.is(":visible")&&e.trigger("focus")})}),a.call(o,s,this)})}(jQuery);
1
+ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(n){"use strict";function r(t,e){this.options=e,this.$body=n(document.body),this.$html=n(document.documentElement),this.$element=n(t),this.$dialog=this.$element.find(".premium-modal-box-modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".premium-modal-box-modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function a(o,s){return this.each(function(){var t=n(this),e=t.data("bs.modal"),i=n.extend({},r.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new r(this,i)),"string"==typeof o?e[o](s):i.show&&e.show(s)})}r.VERSION="3.3.7",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(i){var o=this,t=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("premium-modal-open"),this.$html.addClass("premium-modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="premium-modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=n.support.transition&&o.$element.hasClass("premium-modal-fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("premium-in"),o.enforceFocus();var e=n.Event("shown.bs.modal",{relatedTarget:i});o.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("premium-in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),this.hideModal())},r.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("premium-modal-open"),t.$html.removeClass("premium-modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this.$element.hasClass("premium-modal-fade")?"premium-modal-fade":"";if(this.isShown&&this.options.backdrop){var i=n.support.transition&&e;if(this.$backdrop=n(document.createElement("div")).addClass("premium-modal-backdrop "+e),this.$element.on("click.dismiss.bs.modal",n.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("premium-in"),!t)return;t()}else!this.isShown&&this.$backdrop&&(this.$backdrop.removeClass("premium-in"),this.removeBackdrop()),t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){parseInt(this.$body.css("padding-right")||0,10),this.originalBodyPad=document.body.style.paddingRight||""},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},r.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="premium-modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=n.fn.modal;n.fn.modal=a,n.fn.modal.Constructor=r,n.fn.modal.noConflict=function(){return n.fn.modal=t,this};var d=0;n(document).on("click.bs.modal.data-api",'[data-toggle="premium-modal"]',function(t){var e=n(this),i=e.attr("href"),o=n(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(i)&&i},o.data(),e.data());e.is("a")&&t.preventDefault(),o.one("show.bs.modal",function(t){n(this).find("iframe").each(function(t,e){var i=n(e).attr("src");n(e).attr("data-src",i)}),0===d&&t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){var t=n(this).find(".premium-video-box-container").data("type");n(this).find("iframe").each(function(t,e){var i=n(e).attr("data-src");n(e).attr("src",i)}),"self"===t&&n(this).find("video").get(0).pause(),d++,e.is(":visible")&&e.trigger("focus")})}),a.call(o,s,this)})}(jQuery);
assets/frontend/min-js/premium-addons.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){function i(e,a){e.find(".premium-progressbar-progress-bar").each(function(){var e=a(this).data("settings"),t=e.progress_length,i=e.speed;a(this).animate({width:t+"%"},i)})}function t(e,t){elementorFrontend.waypoint(e,function(){i(t(this),t)},{offset:Waypoint.viewportHeight()-150,triggerOnce:!0})}function a(e,t){var i,a,n=e.find(".premium-video-box-container"),r=n.find(".premium-video-box-video-container"),o=n.data("type");function l(){if("self"===o)t(i).get(0).play(),r.css({opacity:"1",visibility:"visible"});else{var e=t("<iframe/>");a.indexOf("rel=0"),e.attr("src",a),e.attr("frameborder","0"),e.attr("allowfullscreen","1"),e.attr("allow","autoplay;encrypted-media;"),r.css("background","#000"),r.html(e)}n.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").remove(),"vimeo"===o&&n.find(".premium-video-box-vimeo-wrap").remove()}"self"===o?(i=r.find("video"),a=i.attr("src")):-1!==(a=r.data("src")).indexOf("autoplay=1")?l():a+="&autoplay=1",n.on("click",function(){l()})}function n(t,l){var a=t.find(".premium-gallery-container"),e=a.data("settings"),i=e.img_size,n=l("body").data("elementor-device-mode"),r=e.load_more,o=null,s=null,d=!1,m=e.minimum,c=e.click_images,u=m,p=e.ltr_mode,f=e.shuffle;if("metro"===i){var h="";"tablet"===n?h="_tablet":"mobile"===n&&(h="_mobile");var g=a.width(),v=Math.floor(g/12);a.find(".premium-gallery-item").each(function(e,t){var i=l(t).data("metro")["cells"+h],a=l(t).data("metro")["vcells"+h];if(""==i||null==i)i=l(t).data("metro").cells;if(""==a||null==a)a=l(t).data("metro").vcells;l(t).css({width:Math.ceil(i*v),height:Math.ceil(a*v)})}),i="masonry",o=v}if(a.imagesLoaded(function(){}).done(function(){a.isotope({itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:e.active_cat,layoutMode:i,originLeft:p,masonry:{columnWidth:o},sortBy:e.sort_by})}),r&&(a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item").length>m)){function y(e){var t=a.data("isotope");a.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");var i=t.filteredItems.slice(e,t.filteredItems.length).map(function(e){return e.element});l(i).addClass("premium-gallery-item-hidden"),a.isotope("layout"),0==i&&a.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden")}a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item:gt("+(m-1)+")").addClass("premium-gallery-item-hidden"),a.parent().on("click",".premium-gallery-load-more-btn",function(){d?(u=m,d=!1):u=u,u+=c,l.ajax({url:y(u),beforeSend:function(){a.parent().find(".premium-gallery-load-more div").removeClass("premium-gallery-item-hidden")},success:function(){a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden")}})})}"yes"!==e.light_box&&a.find(".premium-gallery-video-wrap").each(function(e,r){var o=l(r).data("type");l(r).closest(".premium-gallery-item").on("click",function(){var e=l(this);if(e.find(".pa-gallery-img").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper, .premium-gallery-caption").css("visibility","hidden"),"hosted"!==o){var t=e.find(".premium-gallery-iframe-wrap"),i=t.data("src");i=i.replace("&mute","&autoplay=1&mute");var a=l("<iframe/>");a.attr("src",i),a.attr("frameborder","0"),a.attr("allowfullscreen","1"),a.attr("allow","autoplay;encrypted-media;"),t.html(a),a.css("visibility","visible")}else{var n=l(r).find("video");n.get(0).play(),n.css("visibility","visible")}})}),t.find(".premium-gallery-cats-container li a").click(function(e){return e.preventDefault(),d=!0,t.find(".premium-gallery-cats-container li .active").removeClass("active"),l(this).addClass("active"),s=l(this).attr("data-filter"),a.isotope({filter:s}),f&&a.isotope("shuffle"),r&&y(m),!1}),"default"===e.lightbox_type&&t.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto({theme:e.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:e.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""})}function r(e,a){var n=e.find(".premium-counter");elementorFrontend.waypoint(n,function(){var e=n.data(),t=n.find(".premium-counter-init"),i=n.find(".icon");a(t).numerator(e),a(i).addClass("animated "+i.data("animation"))})}function o(e,t){var n=e.find(".premium-fancy-text-wrapper"),r=n.data("settings");if("typing"===r.effect){var i=[];r.strings.forEach(function(e){i.push(e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"))}),n.find(".premium-fancy-text").typed({strings:i,typeSpeed:r.typeSpeed,backSpeed:r.backSpeed,startDelay:r.startDelay,backDelay:r.backDelay,showCursor:r.showCursor,cursorChar:r.cursorChar,loop:r.loop})}else if("slide"===r.effect)n.find(".premium-fancy-text").vTicker({speed:r.speed,showItems:r.showItems,pause:r.pause,mousePause:r.mousePause,direction:"up"});else{!function(){var e=r.effect,t=n.find(".premium-fancy-list-items"),i=0,a=1e3*(r.delay||2.5);"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active");setInterval(function(){"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active"),t.eq(i).addClass("premium-fancy-item-visible").removeClass("premium-fancy-item-hidden"),t.filter(function(e){return e!==i}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible"),i++,t.length===i&&(i=0),"bar"===e&&setTimeout(function(){n.find(".premium-fancy-text-items-wrapper").removeClass("active")},a-100)},a)}()}}function l(e,r){e.find(".premium-countdown").each(function(){var e=r(this).data("settings"),t=e.label1,i=e.label2,a=t.split(","),n=i.split(",");"onExpiry"===e.event?r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,onExpiry:function(){r(this).html(e.text)},serverSync:function(){return new Date(e.serverSync)}}):"expiryUrl"===e.event&&r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,expiryUrl:e.text,serverSync:function(){return new Date(e.serverSync)}}),times=r(this).find(".premium-countdown-init").pre_countdown("getTimes"),times.every(function(e){return 0==e})&&("onExpiry"===e.event&&r(this).find(".premium-countdown-init").html(e.text),"expiryUrl"===e.event&&(0<r("body").find("#elementor").length?r(this).find(".premium-countdown-init").html("<h1>You can not redirect url from elementor Editor!!</h1>"):window.location.href=e.text))})}function s(e,c){var u=e.find(".premium-carousel-wrapper"),p=c(u).data("settings");if(elementorFrontend.isEditMode()&&u.find(".item-wrapper").each(function(e,i){var t=c(i).data("template");void 0!==t&&c.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:t}}).success(function(e){var t=JSON.parse(e).data;void 0!==t.template_content&&(c(i).html(t.template_content),u.find(".premium-carousel-inner").slick("refresh"))})}),u.on("init",function(e){e.preventDefault(),c(this).find("item-wrapper.slick-active").each(function(){var e=c(this);e.addClass(e.data("animation"))}),c(".slick-track").addClass("translate")}),u.find(".premium-carousel-inner").slick({vertical:p.vertical,slidesToScroll:p.slidesToScroll,slidesToShow:p.slidesToShow,responsive:[{breakpoint:p.tabletBreak,settings:{slidesToShow:p.slidesTab,slidesToScroll:p.slidesTab}},{breakpoint:p.mobileBreak,settings:{slidesToShow:p.slidesMob,slidesToScroll:p.slidesMob}}],useTransform:!0,fade:p.fade,infinite:p.infinite,speed:p.speed,autoplay:p.autoplay,autoplaySpeed:p.autoplaySpeed,draggable:p.draggable,touchMove:p.touchMove,rtl:p.rtl,adaptiveHeight:p.adaptiveHeight,pauseOnHover:p.pauseOnHover,centerMode:p.centerMode,centerPadding:p.centerPadding,arrows:p.arrows,nextArrow:p.nextArrow,prevArrow:p.prevArrow,dots:p.dots,customPaging:function(){return'<i class="'+p.customPaging+'"></i>'}}),u.on("afterChange",function(e,t,i){var a,n,r=t.options.slidesToScroll,o=(a=t.options.slidesToShow,(n=c(window).width())>p.tabletBreak&&(a=p.slidesDesk),n<=p.tabletBreak&&(a=p.slidesTab),n<=p.mobileBreak&&(a=p.slidesMob),a),l=t.options.centerMode,s=i+o-1;if(u.find(".premium-carousel-template").find(".animated").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation||i.animation;c(t).removeClass("animated "+a).addClass("elementor-invisible")}}),u.find(".slick-active .elementor-invisible").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation_delay?i._animation_delay:0,n=i._animation||i.animation;setTimeout(function(){c(t).removeClass("elementor-invisible").addClass(n+" animated")},a)}}),1===r){if(!0==!l){var d=c(this).find("[data-slick-index='"+s+"']");"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}}else for(var m=r+i;0<=m;m--)d=c(this).find("[data-slick-index='"+m+"']"),"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}),u.on("beforeChange",function(e,t,i){var a=c(this).find("[data-slick-index='"+i+"']");"null"!=p.animation&&a.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(p.animation).addClass("premium-carousel-content-hidden")}),p.vertical){var t=-1;elementorFrontend.elements.$window.on("load",function(){u.find(".slick-slide").each(function(){c(this).height()>t&&(t=c(this).height())}),u.find(".slick-slide").each(function(){c(this).height()<t&&c(this).css("margin",Math.ceil((t-c(this).height())/2)+"px 0")})})}var i={element:c("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}};i.setWidth(),i.element=c("a.carousel-arrow"),i.setWidth("horizontal")}function d(e,t){var i=e.find(".premium-banner"),a=i.find("img");i.find(".premium-banner-ib").hover(function(){a.addClass("active")},function(){a.removeClass("active")})}function m(e,t){var i=e.find(".premium-modal-box-container"),a=i.data("settings");0<i.length&&"pageload"===a.trigger&&t(document).ready(function(e){setTimeout(function(){i.find(".premium-modal-box-modal").modal()},1e3*a.delay)})}function c(i,a){var n=i.find(".premium-blog-wrap"),e=n.find(".premium-blog-post-outer-container"),t=n.data("col"),r=n.data("carousel"),o=n.data("grid"),l=n.data("layout");if(1===e.first().find(".premium-blog-meta-separator").length?e.find(".premium-blog-meta-separator").remove():e.find(".fa-user").length||e.each(function(e,t){a(t).find(".premium-blog-meta-separator").first().remove()}),i.find(".premium-blog-cats-container li a").click(function(e){e.preventDefault(),i.find(".premium-blog-cats-container li .active").removeClass("active"),a(this).addClass("active");var t=a(this).attr("data-filter");return n.isotope({filter:t,layoutMode:"even"===l?"fitRows":"masonry"}),!1}),"masonry"!==l||r||n.imagesLoaded(function(){n.isotope({itemSelector:".premium-blog-post-outer-container",percentPosition:!0,animationOptions:{duration:750,easing:"linear",queue:!1}})}),r&&o){var s=n.data("play"),d=n.data("speed"),m=n.data("fade"),c=n.data("arrows"),u=n.data("dots"),p=null,f=null;c?(p='<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',f='<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>'):p="",a(n).slick({infinite:!0,slidesToShow:t,slidesToScroll:t,responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1}}],autoplay:s,autoplaySpeed:d,nextArrow:f,prevArrow:p,fade:m,draggable:!0,dots:u,customPaging:function(){return'<i class="fas fa-circle"></i>'}})}}function u(e,t){var i=e.find(".premium-image-scroll-container"),a=i.find(".premium-image-scroll-overlay"),n=i.find(".premium-image-scroll-vertical"),r=i.data("settings"),o=i.find("img"),l=r.direction,s=r.reverse,d=null;function m(){o.css("transform",("vertical"===l?"translateY":"translateX")+"( -"+d+"px)")}function c(){o.css("transform",("vertical"===l?"translateY":"translateX")+"(0px)")}function u(){d="vertical"===l?o.height()-i.height():o.width()-i.width()}"scroll"===r.trigger?(i.addClass("premium-container-scroll"),"vertical"===l?n.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){a.css({width:o.width(),height:o.height()})})):("yes"===s&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),u(),m()}),"vertical"===l&&n.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),u(),("yes"===s?c:m)()}),i.mouseleave(function(){("yes"===s?m:c)()}))}function p(e,t){var i=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');i.wrap("<span class='wpcf7-span'>"),i.on("focus blur",function(){console.log(i),t(this).closest(".wpcf7-span").toggleClass("is-focused")})}function f(e,i){var t=e.find(".multiple-persons");if(t.length){if(t.data("carousel")){var a=t.data("play"),n=t.data("speed"),r=t.data("rtl"),o=t.data("col");t.slick({infinite:!0,slidesToShow:o,slidesToScroll:o,responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1}}],autoplay:a,autoplaySpeed:n,rtl:r,nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0})}if(e.hasClass("premium-person-widget-style2")&&"yes"===t.data("persons-equal")){var l=new Array;t.find(".premium-person-style2").each(function(e,t){i(t).imagesLoaded(function(){}).done(function(){var e=i(t).find(".premium-person-image-container").outerHeight();l.push(e)})}),t.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,l);t.find(".premium-person-image-wrap").css("height",e+"px")})}}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-video-box.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/premium-img-gallery.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-fancy-text.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/premium-counter.default",r),elementorFrontend.hooks.addAction("frontend/element_ready/premium-countdown-timer.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/premium-carousel-widget.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-banner.default",d),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-modal-box.default",m),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-blog.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/premium-image-scroll.default",u),elementorFrontend.hooks.addAction("frontend/element_ready/premium-contact-form.default",p),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-person.default",f),elementorFrontend.isEditMode()?elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",i):elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",t)})}(jQuery);
1
+ !function(e){function i(e,a){e.find(".premium-progressbar-progress-bar").each(function(){var e=a(this).data("settings"),t=e.progress_length,i=e.speed;a(this).animate({width:t+"%"},i)})}function t(e,t){elementorFrontend.waypoint(e,function(){i(t(this),t)},{offset:Waypoint.viewportHeight()-150,triggerOnce:!0})}function a(e,t){var i,a,n=e.find(".premium-video-box-container"),r=n.find(".premium-video-box-video-container"),o=n.data("type");function l(){if("self"===o)t(i).get(0).play(),r.css({opacity:"1",visibility:"visible"});else{var e=t("<iframe/>");a.indexOf("rel=0"),e.attr("src",a),e.attr("frameborder","0"),e.attr("allowfullscreen","1"),e.attr("allow","autoplay;encrypted-media;"),r.css("background","#000"),r.html(e)}n.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").remove(),"vimeo"===o&&n.find(".premium-video-box-vimeo-wrap").remove()}"self"===o?(i=r.find("video"),a=i.attr("src")):-1!==(a=r.data("src")).indexOf("autoplay=1")?l():a+="&autoplay=1",n.on("click",function(){l()})}function n(t,l){var a=t.find(".premium-gallery-container"),e=a.data("settings"),i=e.img_size,n=l("body").data("elementor-device-mode"),r=e.load_more,o=null,s=null,d=!1,m=e.minimum,c=e.click_images,u=m,p=e.ltr_mode,f=e.shuffle;if("metro"===i){var h="";"tablet"===n?h="_tablet":"mobile"===n&&(h="_mobile");var g=a.width(),v=Math.floor(g/12);a.find(".premium-gallery-item").each(function(e,t){var i=l(t).data("metro")["cells"+h],a=l(t).data("metro")["vcells"+h];if(""==i||null==i)i=l(t).data("metro").cells;if(""==a||null==a)a=l(t).data("metro").vcells;l(t).css({width:Math.ceil(i*v),height:Math.ceil(a*v)})}),i="masonry",o=v}if(a.imagesLoaded(function(){}).done(function(){a.isotope({itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:e.active_cat,layoutMode:i,originLeft:p,masonry:{columnWidth:o},sortBy:e.sort_by})}),r&&(a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item").length>m)){function y(e){var t=a.data("isotope");a.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");var i=t.filteredItems.slice(e,t.filteredItems.length).map(function(e){return e.element});l(i).addClass("premium-gallery-item-hidden"),a.isotope("layout"),0==i&&a.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden")}a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item:gt("+(m-1)+")").addClass("premium-gallery-item-hidden"),a.parent().on("click",".premium-gallery-load-more-btn",function(){d?(u=m,d=!1):u=u,u+=c,l.ajax({url:y(u),beforeSend:function(){a.parent().find(".premium-gallery-load-more div").removeClass("premium-gallery-item-hidden")},success:function(){a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden")}})})}"yes"!==e.light_box&&a.find(".premium-gallery-video-wrap").each(function(e,r){var o=l(r).data("type");l(r).closest(".premium-gallery-item").on("click",function(){var e=l(this);if(e.find(".pa-gallery-img").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper, .premium-gallery-caption").css("visibility","hidden"),"hosted"!==o){var t=e.find(".premium-gallery-iframe-wrap"),i=t.data("src");i=i.replace("&mute","&autoplay=1&mute");var a=l("<iframe/>");a.attr("src",i),a.attr("frameborder","0"),a.attr("allowfullscreen","1"),a.attr("allow","autoplay;encrypted-media;"),t.html(a),a.css("visibility","visible")}else{var n=l(r).find("video");n.get(0).play(),n.css("visibility","visible")}})}),t.find(".premium-gallery-cats-container li a").click(function(e){return e.preventDefault(),d=!0,t.find(".premium-gallery-cats-container li .active").removeClass("active"),l(this).addClass("active"),s=l(this).attr("data-filter"),a.isotope({filter:s}),f&&a.isotope("shuffle"),r&&y(m),!1}),"default"===e.lightbox_type&&t.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto({theme:e.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:e.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""})}function r(e,a){var n=e.find(".premium-counter");elementorFrontend.waypoint(n,function(){var e=n.data(),t=n.find(".premium-counter-init"),i=n.find(".icon");a(t).numerator(e),a(i).addClass("animated "+i.data("animation"))})}function o(e,t){var n=e.find(".premium-fancy-text-wrapper"),r=n.data("settings");if("typing"===r.effect){var i=[];r.strings.forEach(function(e){i.push(e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"))}),n.find(".premium-fancy-text").typed({strings:i,typeSpeed:r.typeSpeed,backSpeed:r.backSpeed,startDelay:r.startDelay,backDelay:r.backDelay,showCursor:r.showCursor,cursorChar:r.cursorChar,loop:r.loop})}else if("slide"===r.effect)n.find(".premium-fancy-text").vTicker({speed:r.speed,showItems:r.showItems,pause:r.pause,mousePause:r.mousePause,direction:"up"});else{!function(){var e=r.effect,t=n.find(".premium-fancy-list-items"),i=0,a=1e3*(r.delay||2.5);"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active");setInterval(function(){"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active"),t.eq(i).addClass("premium-fancy-item-visible").removeClass("premium-fancy-item-hidden"),t.filter(function(e){return e!==i}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible"),i++,t.length===i&&(i=0),"bar"===e&&setTimeout(function(){n.find(".premium-fancy-text-items-wrapper").removeClass("active")},a-100)},a)}()}}function l(e,r){e.find(".premium-countdown").each(function(){var e=r(this).data("settings"),t=e.label1,i=e.label2,a=t.split(","),n=i.split(",");"onExpiry"===e.event?r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,onExpiry:function(){r(this).html(e.text)},serverSync:function(){return new Date(e.serverSync)}}):"expiryUrl"===e.event&&r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,expiryUrl:e.text,serverSync:function(){return new Date(e.serverSync)}}),times=r(this).find(".premium-countdown-init").pre_countdown("getTimes"),times.every(function(e){return 0==e})&&("onExpiry"===e.event&&r(this).find(".premium-countdown-init").html(e.text),"expiryUrl"===e.event&&(0<r("body").find("#elementor").length?r(this).find(".premium-countdown-init").html("<h1>You can not redirect url from elementor Editor!!</h1>"):window.location.href=e.text))})}function s(e,c){var u=e.find(".premium-carousel-wrapper"),p=c(u).data("settings");if(elementorFrontend.isEditMode()&&u.find(".item-wrapper").each(function(e,i){var t=c(i).data("template");void 0!==t&&c.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:t}}).success(function(e){var t=JSON.parse(e).data;void 0!==t.template_content&&(c(i).html(t.template_content),u.find(".premium-carousel-inner").slick("refresh"))})}),u.on("init",function(e){e.preventDefault(),c(this).find("item-wrapper.slick-active").each(function(){var e=c(this);e.addClass(e.data("animation"))}),c(".slick-track").addClass("translate")}),u.find(".premium-carousel-inner").slick({vertical:p.vertical,slidesToScroll:p.slidesToScroll,slidesToShow:p.slidesToShow,responsive:[{breakpoint:p.tabletBreak,settings:{slidesToShow:p.slidesTab,slidesToScroll:p.slidesTab}},{breakpoint:p.mobileBreak,settings:{slidesToShow:p.slidesMob,slidesToScroll:p.slidesMob}}],useTransform:!0,fade:p.fade,infinite:p.infinite,speed:p.speed,autoplay:p.autoplay,autoplaySpeed:p.autoplaySpeed,draggable:p.draggable,touchMove:p.touchMove,rtl:p.rtl,adaptiveHeight:p.adaptiveHeight,pauseOnHover:p.pauseOnHover,centerMode:p.centerMode,centerPadding:p.centerPadding,arrows:p.arrows,nextArrow:p.nextArrow,prevArrow:p.prevArrow,dots:p.dots,customPaging:function(){return'<i class="'+p.customPaging+'"></i>'}}),u.on("afterChange",function(e,t,i){var a,n,r=t.options.slidesToScroll,o=(a=t.options.slidesToShow,(n=c(window).width())>p.tabletBreak&&(a=p.slidesDesk),n<=p.tabletBreak&&(a=p.slidesTab),n<=p.mobileBreak&&(a=p.slidesMob),a),l=t.options.centerMode,s=i+o-1;if(u.find(".premium-carousel-template").find(".animated").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation||i.animation;c(t).removeClass("animated "+a).addClass("elementor-invisible")}}),u.find(".slick-active .elementor-invisible").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation_delay?i._animation_delay:0,n=i._animation||i.animation;setTimeout(function(){c(t).removeClass("elementor-invisible").addClass(n+" animated")},a)}}),1===r){if(!0==!l){var d=c(this).find("[data-slick-index='"+s+"']");"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}}else for(var m=r+i;0<=m;m--)d=c(this).find("[data-slick-index='"+m+"']"),"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}),u.on("beforeChange",function(e,t,i){var a=c(this).find("[data-slick-index='"+i+"']");"null"!=p.animation&&a.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(p.animation).addClass("premium-carousel-content-hidden")}),p.vertical){var t=-1;elementorFrontend.elements.$window.on("load",function(){u.find(".slick-slide").each(function(){c(this).height()>t&&(t=c(this).height())}),u.find(".slick-slide").each(function(){c(this).height()<t&&c(this).css("margin",Math.ceil((t-c(this).height())/2)+"px 0")})})}var i={element:c("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}};i.setWidth(),i.element=c("a.carousel-arrow"),i.setWidth("horizontal")}function d(e,t){var i=e.find(".premium-banner"),a=i.find("img");if(i.data("box-tilt")){var n=i.data("box-tilt-reverse");UniversalTilt.init({elements:i,settings:{reverse:n},callbacks:{onMouseLeave:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})}i.find(".premium-banner-ib").hover(function(){a.addClass("active")},function(){a.removeClass("active")})}function m(e,t){var i=e.find(".premium-modal-box-container"),a=i.data("settings");0<i.length&&"pageload"===a.trigger&&t(document).ready(function(e){setTimeout(function(){i.find(".premium-modal-box-modal").modal()},1e3*a.delay)})}function c(i,a){var n=i.find(".premium-blog-wrap"),e=n.find(".premium-blog-post-outer-container"),t=n.data("col"),r=n.data("carousel"),o=n.data("grid"),l=n.data("layout");if(1===e.first().find(".premium-blog-meta-separator").length?e.find(".premium-blog-meta-separator").remove():e.find(".fa-user").length||e.each(function(e,t){a(t).find(".premium-blog-meta-separator").first().remove()}),i.find(".premium-blog-cats-container li a").click(function(e){e.preventDefault(),i.find(".premium-blog-cats-container li .active").removeClass("active"),a(this).addClass("active");var t=a(this).attr("data-filter");return n.isotope({filter:t,layoutMode:"even"===l?"fitRows":"masonry"}),!1}),"masonry"!==l||r||n.imagesLoaded(function(){n.isotope({itemSelector:".premium-blog-post-outer-container",percentPosition:!0,animationOptions:{duration:750,easing:"linear",queue:!1}})}),r&&o){var s=n.data("play"),d=n.data("speed"),m=n.data("fade"),c=n.data("arrows"),u=n.data("dots"),p=null,f=null;c?(p='<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',f='<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>'):p="",a(n).slick({infinite:!0,slidesToShow:t,slidesToScroll:t,responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1}}],autoplay:s,autoplaySpeed:d,nextArrow:f,prevArrow:p,fade:m,draggable:!0,dots:u,customPaging:function(){return'<i class="fas fa-circle"></i>'}})}}function u(e,t){var i=e.find(".premium-image-scroll-container"),a=i.find(".premium-image-scroll-overlay"),n=i.find(".premium-image-scroll-vertical"),r=i.data("settings"),o=i.find("img"),l=r.direction,s=r.reverse,d=null;function m(){o.css("transform",("vertical"===l?"translateY":"translateX")+"( -"+d+"px)")}function c(){o.css("transform",("vertical"===l?"translateY":"translateX")+"(0px)")}function u(){d="vertical"===l?o.height()-i.height():o.width()-i.width()}"scroll"===r.trigger?(i.addClass("premium-container-scroll"),"vertical"===l?n.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){a.css({width:o.width(),height:o.height()})})):("yes"===s&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),u(),m()}),"vertical"===l&&n.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),u(),("yes"===s?c:m)()}),i.mouseleave(function(){("yes"===s?m:c)()}))}function p(e,t){var i=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');i.wrap("<span class='wpcf7-span'>"),i.on("focus blur",function(){console.log(i),t(this).closest(".wpcf7-span").toggleClass("is-focused")})}function f(e,i){var t=e.find(".multiple-persons");if(t.length){if(t.data("carousel")){var a=t.data("play"),n=t.data("speed"),r=t.data("rtl"),o=t.data("col");t.slick({infinite:!0,slidesToShow:o,slidesToScroll:o,responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1}}],autoplay:a,autoplaySpeed:n,rtl:r,nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0})}if(e.hasClass("premium-person-widget-style2")&&"yes"===t.data("persons-equal")){var l=new Array;t.find(".premium-person-style2").each(function(e,t){i(t).imagesLoaded(function(){}).done(function(){var e=i(t).find(".premium-person-image-container").outerHeight();l.push(e)})}),t.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,l);t.find(".premium-person-image-wrap").css("height",e+"px")})}}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-video-box.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/premium-img-gallery.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-fancy-text.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/premium-counter.default",r),elementorFrontend.hooks.addAction("frontend/element_ready/premium-countdown-timer.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/premium-carousel-widget.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-banner.default",d),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-modal-box.default",m),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-blog.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/premium-image-scroll.default",u),elementorFrontend.hooks.addAction("frontend/element_ready/premium-contact-form.default",p),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-person.default",f),elementorFrontend.isEditMode()?elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",i):elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",t)})}(jQuery);
assets/frontend/min-js/universal-tilt.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("UniversalTilt",[],t):"object"==typeof exports?exports.UniversalTilt=t():e.UniversalTilt=t()}("object"!=typeof window?global.window=global:window,function(){return i={},s.m=n=[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,s=(i=n(1))&&i.__esModule?i:{default:i},o=s.default;t.default=o,t.default=s.default,e.exports=t.default},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,l=(a=[{key:"init",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.elements,n=e.settings,i=e.callbacks;t instanceof Node&&(t=[t]),t instanceof NodeList&&(t=[].slice.call(t));var s=!0,o=!1,a=void 0;try{for(var l,r=t[Symbol.iterator]();!(s=(l=r.next()).done);s=!0){var c=l.value;"universalTilt"in c||(c.universalTilt=new u(c,n,i))}}catch(e){o=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(o)throw a}}}}],i((o=u).prototype,[{key:"isMobile",value:function(){return window.DeviceMotionEvent&&"ontouchstart"in document.documentElement}},{key:"addEventListeners",value:function(){navigator.userAgent.match(this.settings.exclude)||(this.isMobile()?window.addEventListener("devicemotion",this.onDeviceMove):("element"===this.settings.base?this.base=this.element:"window"===this.settings.base&&(this.base=window),this.base.addEventListener("mouseenter",this.onMouseEnter),this.base.addEventListener("mousemove",this.onMouseMove),this.base.addEventListener("mouseleave",this.onMouseLeave)))}},{key:"removeEventListeners",value:function(){window.removeEventListener("devicemotion",this.onDeviceMove),this.base.removeEventListener("mouseenter",this.onMouseEnter),this.base.removeEventListener("mousemove",this.onMouseMove),this.base.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"destroy",value:function(){clearTimeout(this.timeout),null!==this.updateCall&&cancelAnimationFrame(this.updateCall),"function"==typeof this.callbacks.onDestroy&&this.callbacks.onDestroy(this.element),this.reset(),this.removeEventListeners(),this.element.universalTilt=null,delete this.element.universalTilt,this.element=null}},{key:"reset",value:function(){this.event={pageX:this.left+this.width/2,pageY:this.top+this.height/2},this.settings.reset&&(this.element.style.transform="perspective(".concat(this.settings.perspective,"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)")),this.settings.shine&&!this.settings["shine-save"]&&Object.assign(this.shineElement.style,{transform:"rotate(180deg) translate3d(-50%, -50%, 0)",opacity:"0"})}},{key:"getValues",value:function(){var e,t,n;this.isMobile()?(e=this.event.accelerationIncludingGravity.x/4,t=this.event.accelerationIncludingGravity.y/4,90===window.orientation?(n=(1-t)/2,t=(1+e)/2,e=n):-90===window.orientation?(n=(1+t)/2,t=(1-e)/2,e=n):0===window.orientation?(t=n=(1+t)/2,e=(1+e)/2):180===window.orientation&&(t=n=(1-t)/2,e=(1-e)/2)):"element"===this.settings.base?(e=(this.event.clientX-this.left)/this.width,t=(this.event.clientY-this.top)/this.height):"window"===this.settings.base&&(e=this.event.clientX/window.innerWidth,t=this.event.clientY/window.innerHeight),e=Math.min(Math.max(e,0),1),t=Math.min(Math.max(t,0),1);var i=(this.settings.max/2-e*this.settings.max).toFixed(2),s=(t*this.settings.max-this.settings.max/2).toFixed(2),o=Math.atan2(e-.5,.5-t)*(180/Math.PI);return{tiltX:this.reverse*i,tiltY:this.reverse*s,angle:o}}},{key:"updateElementPosition",value:function(){var e=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=e.left,this.top=e.top}},{key:"update",value:function(){var e=this.getValues();this.element.style.transform="perspective(".concat(this.settings.perspective,"px)\n rotateX(").concat(this.settings.disabled&&"X"===this.settings.disabled.toUpperCase()?0:e.tiltY,"deg)\n rotateY(").concat(this.settings.disabled&&"Y"===this.settings.disabled.toUpperCase()?0:e.tiltX,"deg)\n scale3d(").concat(this.settings.scale,", ").concat(this.settings.scale,", ").concat(this.settings.scale,")"),this.settings.shine&&Object.assign(this.shineElement.style,{transform:"rotate(".concat(e.angle,"deg) translate3d(-50%, -50%, 0)"),opacity:"".concat(this.settings["shine-opacity"])}),this.element.dispatchEvent(new CustomEvent("tiltChange",{detail:e})),this.updateCall=null}},{key:"shine",value:function(){var e=document.createElement("div"),t=document.createElement("div");e.classList.add("shine"),t.classList.add("shine-inner"),e.appendChild(t),this.element.appendChild(e),this.shineWrapper=this.element.querySelector(".shine"),this.shineElement=this.element.querySelector(".shine-inner"),Object.assign(this.shineWrapper.style,{position:"absolute",top:"0",left:"0",height:"100%",width:"100%",overflow:"hidden"}),Object.assign(this.shineElement.style,{position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%)",width:"".concat(2*this.element.offsetWidth,"px"),height:"".concat(2*this.element.offsetWidth,"px"),transform:"rotate(180deg) translate3d(-50%, -50%, 0)","transform-origin":"0% 0%",opacity:"0"})}},{key:"transitions",value:function(){var e=this;clearTimeout(this.timeout),this.element.style.transition="all ".concat(this.settings.speed,"ms ").concat(this.settings.easing),this.settings.shine&&(this.shineElement.style.transition="opacity ".concat(this.settings.speed,"ms ").concat(this.settings.easing)),this.timeout=setTimeout(function(){e.element.style.transition="",e.settings.shine&&(e.shineElement.style.transition="")},this.settings.speed)}},{key:"extendSettings",value:function(e){var t={base:"element",disabled:null,easing:"cubic-bezier(.03, .98, .52, .99)",exclude:null,max:35,perspective:1e3,reset:!0,reverse:!1,scale:1,shine:!1,"shine-opacity":0,"shine-save":!1,speed:300},n={};for(var i in t)if(i in e)n[i]=e[i];else if(this.element.getAttribute("data-".concat(i))){var s=this.element.getAttribute("data-".concat(i));try{n[i]=JSON.parse(s)}catch(e){n[i]=s}}else n[i]=t[i];return n}}]),i(o,a),u);function u(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}(this),s(this,"onMouseEnter",function(){t.updateElementPosition(),t.transitions(),"function"==typeof t.callbacks.onMouseEnter&&t.callbacks.onMouseEnter(t.element)}),s(this,"onMouseMove",function(e){null!==t.updateCall&&cancelAnimationFrame(t.updateCall),t.event=e,t.updateElementPosition(),t.updateCall=requestAnimationFrame(function(){return t.update()}),"function"==typeof t.callbacks.onMouseMove&&t.callbacks.onMouseMove(t.element)}),s(this,"onMouseLeave",function(){t.transitions(),requestAnimationFrame(function(){return t.reset()}),"function"==typeof t.callbacks.onMouseLeave&&t.callbacks.onMouseLeave(t.element)}),s(this,"onDeviceMove",function(e){t.event=e,t.update(),t.updateElementPosition(),t.transitions(),"function"==typeof t.callbacks.onDeviceMove&&t.callbacks.onDeviceMove(t.element)}),this.element=e,this.callbacks=i,this.settings=this.extendSettings(n),"function"==typeof this.callbacks.onInit&&this.callbacks.onInit(this.element),this.reverse=this.settings.reverse?-1:1,this.settings.shine&&this.shine(),this.element.style.transform="perspective(".concat(this.settings.perspective,"px)"),this.addEventListeners()}if(t.default=l,"undefined"!=typeof document){window.UniversalTilt=l;var r=document.querySelectorAll("[data-tilt]");r.length&&l.init({elements:r})}window.jQuery&&(window.jQuery.fn.universalTilt=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l.init({elements:this,settings:e.settings||{},callbacks:e.callbacks||{}})})}],s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0);function s(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}var n,i});
includes/class-addons-integration.php CHANGED
@@ -257,6 +257,14 @@ class Addons_Integration {
257
  true
258
  );
259
 
 
 
 
 
 
 
 
 
260
  if( $maps_settings['premium-map-cluster'] ) {
261
  wp_register_script(
262
  'google-maps-cluster',
257
  true
258
  );
259
 
260
+ wp_register_script(
261
+ 'tilt-js',
262
+ PREMIUM_ADDONS_URL . 'assets/frontend/' . $dir . '/universal-tilt' . $suffix . '.js',
263
+ array( 'jquery' ),
264
+ PREMIUM_PRO_ADDONS_VERSION,
265
+ true
266
+ );
267
+
268
  if( $maps_settings['premium-map-cluster'] ) {
269
  wp_register_script(
270
  'google-maps-cluster',
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 3.11.7
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
- define('PREMIUM_ADDONS_VERSION', '3.11.7');
18
  define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
- define('PREMIUM_ADDONS_STABLE_VERSION', '3.11.6');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.11.8
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
+ define('PREMIUM_ADDONS_VERSION', '3.11.8');
18
  define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
+ define('PREMIUM_ADDONS_STABLE_VERSION', '3.11.7');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
5
  Requires at Least: 4.5
6
  Tested Up To: 5.3.2
7
  Requires PHP: 5.4
8
- Stable Tag: 3.11.7
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -175,6 +175,13 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
 
 
178
  = 3.11.7 =
179
 
180
  - Tweak: Added `Border Radius` option for navigation dots in Vertical Scroll widget.
5
  Requires at Least: 4.5
6
  Tested Up To: 5.3.2
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.11.8
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
175
 
176
  == Changelog ==
177
 
178
+ = 3.11.8 =
179
+
180
+ - Tweak: Added `Mouse Tilt` option in Banner widget.
181
+ - Fixed: Thousands separator can't be removed in Counter widget.
182
+ - Fixed: Videos/Links are not embedded in Blog widget.
183
+ - Fixed: Modal iframes duplicate issue in Modal Box widget.
184
+
185
  = 3.11.7 =
186
 
187
  - Tweak: Added `Border Radius` option for navigation dots in Vertical Scroll widget.
widgets/dep/queries.php CHANGED
@@ -60,10 +60,10 @@ function premium_blog_get_excerpt_by_id( $source, $excerpt_length, $cta_type, $e
60
 
61
  if( 'full' === $source || empty( $excerpt ) ) {
62
 
63
- $excerpt = get_the_content();
64
 
65
  if( 'link' == $cta_type ) {
66
- $excerpt .= '<div class="premium-blog-excerpt-link-wrap"><a href="' . get_permalink() .'" class="premium-blog-excerpt-link elementor-button">' . $exceprt_text . '</a></div>';
67
  }
68
 
69
  } else {
60
 
61
  if( 'full' === $source || empty( $excerpt ) ) {
62
 
63
+ the_content();
64
 
65
  if( 'link' == $cta_type ) {
66
+ $excerpt = '<div class="premium-blog-excerpt-link-wrap"><a href="' . get_permalink() .'" class="premium-blog-excerpt-link elementor-button">' . $exceprt_text . '</a></div>';
67
  }
68
 
69
  } else {
widgets/premium-banner.php CHANGED
@@ -50,7 +50,10 @@ class Premium_Banner extends Widget_Base {
50
  }
51
 
52
  public function get_script_depends() {
53
- return ['premium-addons-js'];
 
 
 
54
  }
55
 
56
  public function get_custom_help_url() {
@@ -258,6 +261,25 @@ class Premium_Banner extends Widget_Base {
258
  ]
259
  ]
260
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
 
262
  $this->add_control('premium_banner_extra_class',
263
  [
@@ -898,6 +920,17 @@ class Premium_Banner extends Widget_Base {
898
 
899
  $settings = $this->get_settings_for_display();
900
 
 
 
 
 
 
 
 
 
 
 
 
901
  $this->add_inline_editing_attributes('premium_banner_title');
902
  $this->add_render_attribute('premium_banner_title', 'class', array(
903
  'premium-banner-ib-title',
@@ -941,7 +974,7 @@ class Premium_Banner extends Widget_Base {
941
  }
942
 
943
  ?>
944
- <div class="premium-banner" id="premium-banner-<?php echo esc_attr($this->get_id()); ?>">
945
  <div class="premium-banner-ib <?php echo $full_class; ?> premium-banner-min-height">
946
  <?php if( ! empty( $settings['premium_banner_image']['url'] ) ) : ?>
947
  <?php if( $settings['premium_banner_height'] == 'custom' ) : ?>
@@ -993,6 +1026,13 @@ class Premium_Banner extends Widget_Base {
993
  view.addRenderAttribute( 'banner', 'id', 'premium-banner-' + view.getID() );
994
  view.addRenderAttribute( 'banner', 'class', 'premium-banner' );
995
 
 
 
 
 
 
 
 
996
  var active = 'yes' === settings.premium_banner_active ? 'active' : '';
997
 
998
  view.addRenderAttribute( 'banner_inner', 'class', [
50
  }
51
 
52
  public function get_script_depends() {
53
+ return [
54
+ 'tilt-js',
55
+ 'premium-addons-js'
56
+ ];
57
  }
58
 
59
  public function get_custom_help_url() {
261
  ]
262
  ]
263
  );
264
+
265
+ $this->add_control('mouse_tilt',
266
+ [
267
+ 'label' => __('Enable Mouse Tilt', 'premium-addons-for-elementor'),
268
+ 'type' => Controls_Manager::SWITCHER,
269
+ 'return_value' => 'true'
270
+ ]
271
+ );
272
+
273
+ $this->add_control('mouse_tilt_rev',
274
+ [
275
+ 'label' => __('Reverse', 'premium-addons-for-elementor'),
276
+ 'type' => Controls_Manager::SWITCHER,
277
+ 'return_value' => 'true',
278
+ 'condition' => [
279
+ 'mouse_tilt' => 'true'
280
+ ]
281
+ ]
282
+ );
283
 
284
  $this->add_control('premium_banner_extra_class',
285
  [
920
 
921
  $settings = $this->get_settings_for_display();
922
 
923
+ $this->add_render_attribute( 'banner', 'id', 'premium-banner-' . $this->get_id() );
924
+ $this->add_render_attribute( 'banner', 'class', 'premium-banner' );
925
+
926
+ if( 'true' === $settings['mouse_tilt'] ) {
927
+ $this->add_render_attribute( 'banner', 'data-box-tilt', 'true' );
928
+ if( 'true' === $settings['mouse_tilt_rev'] ) {
929
+ $this->add_render_attribute( 'banner', 'data-box-tilt-reverse', 'true' );
930
+ }
931
+ }
932
+
933
+
934
  $this->add_inline_editing_attributes('premium_banner_title');
935
  $this->add_render_attribute('premium_banner_title', 'class', array(
936
  'premium-banner-ib-title',
974
  }
975
 
976
  ?>
977
+ <div <?php echo $this->get_render_attribute_string('banner'); ?>>
978
  <div class="premium-banner-ib <?php echo $full_class; ?> premium-banner-min-height">
979
  <?php if( ! empty( $settings['premium_banner_image']['url'] ) ) : ?>
980
  <?php if( $settings['premium_banner_height'] == 'custom' ) : ?>
1026
  view.addRenderAttribute( 'banner', 'id', 'premium-banner-' + view.getID() );
1027
  view.addRenderAttribute( 'banner', 'class', 'premium-banner' );
1028
 
1029
+ if( 'true' === settings.mouse_tilt ) {
1030
+ view.addRenderAttribute( 'banner', 'data-box-tilt', 'true' );
1031
+ if( 'true' === settings.mouse_tilt_rev ) {
1032
+ view.addRenderAttribute( 'banner', 'data-box-tilt-reverse', 'true' );
1033
+ }
1034
+ }
1035
+
1036
  var active = 'yes' === settings.premium_banner_active ? 'active' : '';
1037
 
1038
  view.addRenderAttribute( 'banner_inner', 'class', [
widgets/premium-counter.php CHANGED
@@ -619,7 +619,7 @@ class Premium_Counter extends Widget_Base {
619
  'data-duration' => $settings['premium_counter_speed'] * 1000,
620
  'data-from-value' => $settings['premium_counter_start_value'],
621
  'data-to-value' => $settings['premium_counter_end_value'],
622
- 'data-delimiter' => empty( $settings['premium_counter_t_separator'] ) ? ',' : $settings['premium_counter_t_separator'],
623
  'data-rounding' => empty ( $settings['premium_counter_d_after'] ) ? 0 : $settings['premium_counter_d_after']
624
  ]
625
  );
@@ -665,7 +665,7 @@ class Premium_Counter extends Widget_Base {
665
 
666
  left = 'left' === center ? ' left' : '';
667
 
668
- var delimiter = '' === settings.premium_counter_t_separator ? ',' : settings.premium_counter_t_separator,
669
  round = '' === settings.premium_counter_d_after ? 0 : settings.premium_counter_d_after;
670
 
671
  view.addRenderAttribute( 'counter', 'class', [ 'premium-counter', 'premium-counter-area' + center ] );
619
  'data-duration' => $settings['premium_counter_speed'] * 1000,
620
  'data-from-value' => $settings['premium_counter_start_value'],
621
  'data-to-value' => $settings['premium_counter_end_value'],
622
+ 'data-delimiter' => $settings['premium_counter_t_separator'],
623
  'data-rounding' => empty ( $settings['premium_counter_d_after'] ) ? 0 : $settings['premium_counter_d_after']
624
  ]
625
  );
665
 
666
  left = 'left' === center ? ' left' : '';
667
 
668
+ var delimiter = settings.premium_counter_t_separator,
669
  round = '' === settings.premium_counter_d_after ? 0 : settings.premium_counter_d_after;
670
 
671
  view.addRenderAttribute( 'counter', 'class', [ 'premium-counter', 'premium-counter-area' + center ] );