PageSourceSearch

https://www.unifynd.com/wp-content/plugins/happy-elementor-addons/assets/js/happy-addons.min.js?ver=2.16.1

js unifynd.com collected 2026-10-02 15:35:35 UTC 15,878 bytes, 1 lines download raw bytes

1!function(t,e){"use strict";function n(t,e,n){var i;return function(){var a=this,o=arguments,s=function(){i=null,n||t.apply(a,o)},r=n&&!i;clearTimeout(i),i=setTimeout(s,e),r&&t.apply(a,o)}}function i(e,n){var i=e.find(".hajs-filter"),a=i.data("default-filter");i.length&&(i.on("click.onFilterNav","button",function(e){e.stopPropagation();var i=t(this);i.addClass("ha-filter__item--active").siblings().removeClass("ha-filter__item--active"),n(i.data("filter"))}),i.find('[data-filter="'+a+'"]').click())}function a(e){if(e.$element.on("click",e.selector,function(t){t.preventDefault()}),t.fn.magnificPopup){if(!e.isEnabled)return void t.magnificPopup.close();var n=t(window).width(),i=elementorFrontendConfig.breakpoints.md,a=elementorFrontendConfig.breakpoints.lg;e.$element.find(e.selector).magnificPopup({key:e.key,type:"image",image:{titleSrc:function(t){return t.el.attr("title")?t.el.attr("title"):t.el.find("img").attr("alt")}},gallery:{enabled:!0,preload:[1,2]},zoom:{enabled:!0,duration:300,easing:"ease-in-out",opener:function(t){return t.is("img")?t:t.find("img")}},disableOn:function(){return!(e.disableOnMobile&&n<i)&&!(e.disableOnTablet&&n>=i&&n<a)}})}}var o=t(e);t.fn.getHappySettings=function(){return this.data("happy-settings")};var s=function(t){var e=t.find(".hajs-image-comparison"),n=e.getHappySettings();n[{on_hover:"move_slider_on_hover",on_swipe:"move_with_handle_only",on_click:"click_to_move"}[n.move_handle||"on_swipe"]]=!0,delete n.move_handle,e.imagesLoaded().done(function(){e.twentytwenty(n);var t=setTimeout(function(){o.trigger("resize.twentytwenty"),clearTimeout(t)},400)})};o.on("elementor/frontend/init",function(){var e=elementorFrontend,r=elementorModules,l=r.frontend.handlers.Base.extend({onInit:function(){r.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.widgetContainer=this.$element.find(".elementor-widget-container")[0],this.initFloatingEffects(),this.initBackgroun
1dOverlay()},initBackgroundOverlay:function(){this.isEdit&&this.$element.addClass("ha-has-background-overlay")},getDefaultSettings:function(){return{targets:this.widgetContainer,loop:!0,direction:"alternate",easing:"easeInOutSine"}},onElementChange:function(t){-1!==t.indexOf("ha_floating")&&this.runOnElementChange()},runOnElementChange:n(function(){this.animation&&this.animation.restart(),this.initFloatingEffects()},200),getConfig:function(t){return this.getElementSettings("ha_floating_fx_"+t)},initFloatingEffects:function(){var t=this.getDefaultSettings();this.getConfig("translate_toggle")&&((this.getConfig("translate_x.size")||this.getConfig("translate_x.sizes.to"))&&(t.translateX={value:[this.getConfig("translate_x.sizes.from")||0,this.getConfig("translate_x.size")||this.getConfig("translate_x.sizes.to")],duration:this.getConfig("translate_duration.size"),delay:this.getConfig("translate_delay.size")||0}),(this.getConfig("translate_y.size")||this.getConfig("translate_y.sizes.to"))&&(t.translateY={value:[this.getConfig("translate_y.sizes.from")||0,this.getConfig("translate_y.size")||this.getConfig("translate_y.sizes.to")],duration:this.getConfig("translate_duration.size"),delay:this.getConfig("translate_delay.size")||0})),this.getConfig("rotate_toggle")&&((this.getConfig("rotate_x.size")||this.getConfig("rotate_x.sizes.to"))&&(t.rotateX={value:[this.getConfig("rotate_x.sizes.from")||0,this.getConfig("rotate_x.size")||this.getConfig("rotate_x.sizes.to")],duration:this.getConfig("rotate_duration.size"),delay:this.getConfig("rotate_delay.size")||0}),(this.getConfig("rotate_y.size")||this.getConfig("rotate_y.sizes.to"))&&(t.rotateY={value:[this.getConfig("rotate_y.sizes.from")||0,this.getConfig("rotate_y.size")||this.getConfig("rotate_y.sizes.to")],duration:this.getConfig("rotate_duration.size"),delay:this.getConfig("rotate_delay.size")||0}),(this.getConfig("rotate_z.size")||this.getConfig("rotate_z.sizes.to"))&&(t.rotateZ={value:[this.getConfig("rotate_z.sizes.from")||0,this.getConfig("rotate_z.size")||this.getConfig("rotate_z.sizes.to")],duration:this.getConfig("rotate_duration.size"),delay:this.getConfig("rotate_delay.size")||0})),this.getConfig("scale_toggle")&&((this.getConfig("scale_x.size")||this.getConfig("scale_x.sizes.to"))&&(t.scaleX={value:[this.getConfig("scale_x.sizes.from")||0,this.getConfig("scale_x.size")||this.getConfig("scale_x.sizes.to")],duration:this.getConfig("scale_duration.size"),delay:this.getConfig("scale_delay.size")||0}),(this.getConfig("scale_y.size")||this.getConfig("scale_y.sizes.to"))&&(t.scaleY={value:[this.getConfig("scale_y.sizes.from")||0,this.getConfig("scale_y.size")||this.getConfig("scale_y.sizes.to")],duration:this.getConfig("scale_duration.size"),delay:this.getConfig("scale_delay.size")||0})),(this.getConfig("translate_toggle")||this.getConfig("rotate_toggle")||this.getConfig("scale_toggle"))&&(this.widgetContainer.style.setProperty("will-change","transform"),this.animation=anime(t))}}),h=r.frontend.handlers.Base.extend({onInit:function(){r.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},getDefaultSettings:function(){return{selectors:{container:".hajs-slick"},arrows:!0,dots:!1,checkVisible:!1,infinite:!0,slidesToShow:1,rows:0,prevArrow:'<button type="button" class="slick-prev"><i class="fa fa-chevron-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="fa fa-chevron-right"></i></button>'}},getDefaultElements:function(){var t=this.getSettings("selectors");return{$container:this.findElement(t.container)}},onElementChange:function(){this.elements.$container.slick("unslick"),this.run()},getReadySettings:function(){var n={infinite:!!this.getElementSettings("loop"),autoplay:!!this.getElementSettings("autoplay"),autoplaySpeed:this.getElementSettings("autoplay_speed"),speed:this.getElementSettings("animation_speed"),centerMode:!!this.getElementSettings("center"),vertical:!!this.getElementSettings("vertical"),slidesToScroll:1};switch(this.getElementSettings("navigation")){case"arrow":n.arrows=!0;break;case"dots":n.dots=!0;break;case"both":n.arrows=!0,n.dots=!0}return n.slidesToShow=this.getElementSettings("slides_to_show")||1,n.responsive=[{breakpoint:e.config.breakpoints.lg,settings:{slidesToShow:this.getElementSettings("slides_to_show_tablet")||n.slidesToShow}},{breakpoint:e.config.breakpoints.md,settings:{slidesToShow:this.getElementSettings("slides_to_show_mobile")||this.getElementSettings("slides_to_show_tablet")||n.slidesToShow}}],t.extend({},this.getDefaultSettings(),n)},run:function(){this.elements.$container.slick(this.getReadySettings())}}),d=function(t){e.waypoint(t,function(){var e=t.find(".ha-number-text");e.numerator(e.data("animation"))})},g=function(n){e.waypoint(n,function(){n.find(".ha-skill-level").each(function(){var e=t(this),n=e.find(".ha-skill-level-text"),i=e.data("level");e.animate({width:i+"%"},500),n.numerator({toValue:i+"%",duration:1300,onStep:function(){n.append("%")}})})})},f=r.frontend.handlers.Base.extend({onInit:function(){r.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run(),this.runFilter(),o.on("resize",n(this.run.bind(this),100))},getLayoutMode:function(){var t=this.getElementSettings("layout");return"even"===t?"masonry":t},getDefaultSettings:function(){return{itemSelector:".ha-image-grid__item",percentPosition:!0,layoutMode:this.getLayoutMode()}},getDefaultElements:function(){return{$container:this.findElement(".hajs-isotope")}},getLightBoxSettings:function(){return{key:"imagegrid",$element:this.$element,selector:".ha-js-lightbox",isEnabled:!!this.getElementSettings("enable_popup"),disableOnTablet:!!this.getElementSettings("disable_lightbox_on_tablet"),disableOnMobile:!!this.getElementSettings("disable_lightbox_on_mobile")}},runFilter:function(){var t=this,e=this.getLightBoxSettings();i(this.$element,function(n){t.elements.$container.isotope({filter:n}),"*"!==n&&(e.selector=n),a(e)})},onElementChange:function(t){-1!==["layout","image_height","columns","image_margin","enable_popup"].indexOf(t)&&this.run()},run:function(){var t=this;t.elements.$container.isotope(t.getDefaultSettings()).imagesLoaded().progress(function(){t.elements.$container.isotope("layout")}),a(t.getLightBoxSettings())}}),c=r.frontend.handlers.Base.extend({onInit:function(){r.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run(),this.runFilter(),o.on("resize",n(this.run.bind(this),100))},getDefaultSettings:function(){return{rowHeight:+this.getElementSettings("row_height.size")||150,lastRow:this.getElementSettings("last_row"),margins:+this.getElementSettings("margins.size"),captions:!!this.getElementSettings("show_caption")}},getDefaultElements:function(){return{$container:this.findElement(".hajs-justified-grid")}},getLightBoxSettings:function(){return{key:"justifiedgallery",$element:this.$element,selector:".ha-js-lightbox",isEnabled:!!this.getElementSettings("enable_popup"),disableOnTablet:!!this.getElementSettings("disable_lightbox_on_tablet"),disableOnMobile:!!this.getElementSettings("disable_lightbox_on_mobile")}},runFilter:function(){var t=this,e=this.getLightBoxSettings(),n={lastRow:this.getElementSettings("last_row")};i(t.$element,function(i){"*"!==i&&(n.lastRow="nojustify",e.selector=i),n.filter=i,t.elements.$container.justifiedGallery(n),a(e)})},onElementChange:function(t){-1!==["row_height","last_row","margins","show_caption","enable_popup"].indexOf(t)&&this.run()},run:function(){this.elements.$container.justifiedGallery(this.getDefaultSettings()),a(this.getLightBoxSettings())}}),u=r.frontend.handlers.Base.extend({onInit:function(){r.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.wrapper=this.$element.find(".ha-news-ticker-wrapper"),this.run()},onElementChange:function(t){"item_space"!==t&&"title_typography_font_size"!==t||this.run()}
1,run:function(){var e=this.wrapper.innerHeight(),n=this.wrapper.innerWidth(),i=this.wrapper.find(".ha-news-ticker-container"),a=i.find(".ha-news-ticker-item"),o=this.wrapper.data("scroll-direction"),s="scroll"+o+e+n,r=this.wrapper.data("duration"),l="normal",h=10,d={transform:"translateX(0"+n+"px)"},g={transform:"translateX(-101%)"};"right"===o&&(l="reverse"),a.each(function(){h+=t(this).outerWidth(!0)}),i.css({width:h,display:"flex"}),t.keyframe.define([{name:s,"0%":d,"100%":g}]),i.playKeyframe({name:s,duration:r+"ms",timingFunction:"linear",delay:"0s",iterationCount:"infinite",direction:l,fillMode:"none",complete:function(){}})}}),m=function(t){e.waypoint(t,function(){var e=t.find(".ha-fun-factor__content-number");e.numerator(e.data("animation"))})},p=function(n){e.waypoint(n,function(){var e=t(this),n=e.find(".ha-bar-chart-container"),i=e.find("#ha-bar-chart"),a=n.data("settings");n.length&&new Chart(i,a)})},_=function(e){var n=e.find(".ha-twitter-load-more"),i=e.find(".ha-tweet-items");n.on("click",function(n){n.preventDefault();var a=t(this),o=a.data("settings"),s=a.data("total"),r=e.find(".ha-tweet-item").length;t.ajax({url:HappyLocalize.ajax_url,type:"POST",data:{action:"ha_twitter_feed_action",security:HappyLocalize.nonce,query_settings:o,loaded_item:r},success:function(e){s>r?t(e).appendTo(i):(a.text("All Loaded").addClass("loaded"),setTimeout(function(){a.css({display:"none"})},800))},error:function(t){}})})},y=r.frontend.handlers.Base.extend({onInit:function(){r.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.wrapper=this.$element.find(".ha-post-tab"),this.run()},run:function(){var e=this.wrapper.find(".ha-post-tab-filter"),i=e.find("li"),a=this.wrapper.data("event"),o=this.wrapper.data("query-args");i.on(a,n(function(e){e.preventDefault();var n=t(this),a=n.data("term"),s=n.closest(".ha-post-tab"),r=s.find(".ha-post-tab-content"),l=r.find(".ha-post-tab-loading"),h=r.find(".ha-post-tab-item-wrapper"),d=!1;0===l.length&&(i.removeClass("active"),h.removeClass("active"),n.addClass("active"),h.each(function(){var e=t(this),n=e.data("term");a===n&&(e.addClass("active"),d=!0)}),!1===d&&t.ajax({url:HappyLocalize.ajax_url,type:"POST",data:{action:"ha_post_tab_action",security:HappyLocalize.nonce,post_tab_query:o,term_id:a},beforeSend:function(){r.append('<span class="ha-post-tab-loading"><i class="eicon-spinner eicon-animation-spin"></i></span>')},success:function(t){r.find(".ha-post-tab-loading").remove(),r.append(t)},error:function(t){}}))},200))}}),b=function(e){var n=e.find(".ha-table__head-column-cell");e.find(".ha-table__body-row").each(function(e,i){t(i).find(".ha-table__body-row-cell").each(function(e,i){t(i).prepend('<div class="ha-table__head-column-cell">'+n.eq(e).html()+"</div>")})})},v=function(e){var n=e.find(".ha-threesixty-rotation-inner"),i=n.data("selector"),a=n.data("autoplay"),o=e.find(".ha-threesixty-rotation-magnify"),s=e.find(".ha-threesixty-rotation-360img"),r=o.data("zoom"),l=e.find(".ha-threesixty-rotation-play"),h=circlr(i,{play:!0});if("on"===a){var d=e.find(".ha-threesixty-rotation-autoplay");d.on("click",function(t){t.preventDefault(),h.play(),s.remove()}),setTimeout(function(){d.trigger("click"),d.remove()},1e3)}else l.on("click",function(e){e.preventDefault();var n=t(this),i=n.find("i");i.hasClass("hm-play-button")?(i.removeClass("hm-play-button"),i.addClass("hm-stop"),h.play()):(i.removeClass("hm-stop"),i.addClass("hm-play-button"),h.stop()),s.remove()});o.on("click",function(n){e.find("img").each(function(){-1!==t(this).attr("style").indexOf("block")&&(HappySimplaMagnify(t(this)[0],r),o.css("display","none"),s.remove())})}),t(document).on("click",function(i){var a=t(i.target),r=e.find(".ha-img-magnifier-glass"),l=o.find("i");r.length&&a[0]!==l[0]&&(r.remove(),o.removeAttr("style")),a[0]===n[0]&&s.remove()}),n.on("mouseup mousedown",function(t){s.remove()})};elementorFrontend.hooks.addAction("frontend/element_ready/ha-slider.default",function(t){elementorFrontend.elementsHandler.addHandler(h,{$element:t,selectors:{container:".ha-slick--slider"},autoplay:!0,prevArrow:'<button type="button" class="slick-prev"><i class="hm hm-arrow-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="hm hm-arrow-right"></i></button>'})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-carousel.default",function(t){elementorFrontend.elementsHandler.addHandler(h,{$element:t,selectors:{container:".ha-slick--carousel"},autoplay:!0,prevArrow:'<button type="button" class="slick-prev"><i class="hm hm-arrow-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="hm hm-arrow-right"></i></button>'})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-horizontal-timeline.default",function(t){elementorFrontend.elementsHandler.addHandler(h,{$element:t,selectors:{container:".ha-horizontal-timeline-wrapper"},autoplay:!1,prevArrow:'<button type="button" class="slick-prev"><i class="hm hm-arrow-left"></i></button>',nextArrow:'<button type="button" class="slick-next"><i class="hm hm-arrow-right"></i></button>'})}),t("[data-ha-element-link]").on("click.onWrapperLink",function(){var e,n=t(this).data("ha-element-link"),i=t(this).data("id"),a=document.createElement("a");a.id="hawl"+i,a.href=n.url,a.target=n.is_external?"_blank":"_self",a.rel=n.nofollow?"nofollow noreferer":"",a.style.display="none",document.body.appendChild(a),e=document.getElementById(a.id),e.click();var o=setTimeout(function(){document.body.removeChild(e),clearTimeout(o)})});var w={"ha-image-compare.default":s,"ha-number.default":d,"ha-skills.default":g,"ha-fun-factor.default":m,"ha-bar-chart.default":p,"ha-twitter-feed.default":_,"ha-threesixty-rotation.default":v,"ha-data-table.default":b};t.each(w,function(t,n){e.hooks.addAction("frontend/element_ready/"+t,n)});var C={"ha-image-grid.default":f,"ha-justified-gallery.default":c,"ha-news-ticker.default":u,"ha-post-tab.default":y,widget:l};t.each(C,function(t,n){e.hooks.addAction("frontend/element_ready/"+t,function(t){e.elementsHandler.addHandler(n,{$element:t})})})})}(jQuery,window);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.