/* Minification failed. Returning unminified contents.
(154,95240-95241): run-time error JS1014: Invalid character: `
(154,95259-95260): run-time error JS1193: Expected ',' or ')': $
(154,95274-95275): run-time error JS1014: Invalid character: `
(154,95275-95276): run-time error JS1195: Expected expression: )
(154,95278-95279): run-time error JS1003: Expected ':': .
(154,95302-95303): run-time error JS1014: Invalid character: `
(154,95344-95345): run-time error JS1002: Syntax error: }
(154,95415-95416): run-time error JS1002: Syntax error: }
(154,95429-95430): run-time error JS1014: Invalid character: `
(154,95439-95440): run-time error JS1014: Invalid character: `
(154,95455-95456): run-time error JS1002: Syntax error: }
(154,95456-95457): run-time error JS1014: Invalid character: `
(154,95642-95643): run-time error JS1197: Too many errors. The file might not be a JavaScript file: )
 */
/* global jQuery */
(function ($) {
    'use strict';

    var SlimStickyNav = {
        elem: $('.slimStickyNav'),
        inner: undefined,
        linkElements: [],
        posTop: undefined,
        height: undefined,
        links: undefined,
        isSticky: false,
        secondaryNavElem: $('.secondary-nav'),
        secondaryNavTop: undefined,
        stickyClass: 'sticky',

        getSecondaryNavHeight: function() {
            return SlimStickyNav.secondaryNavElem.length ? SlimStickyNav.secondaryNavElem.outerHeight() : 0;
        },
        stick: function () {
            SlimStickyNav.setTop();
            SlimStickyNav.elem.addClass(SlimStickyNav.stickyClass);
            $('.slimStickyNav .col-sm-12').addClass('animated fadeIn');
            SlimStickyNav.isSticky = true;
        },
        unstick: function () {
            SlimStickyNav.resetTop();
            SlimStickyNav.elem.removeClass(SlimStickyNav.stickyClass);
            SlimStickyNav.links.removeClass('active');
            SlimStickyNav.isSticky = false;
        },
        activateLink: function (linkElement) {
            SlimStickyNav.links.removeClass('active');
            $(linkElement).addClass('active');
        },
        setTop: function () {
            if (SlimStickyNav.secondaryNavElem.length) {
                var height = SlimStickyNav.getSecondaryNavHeight() + 'px';
                SlimStickyNav.inner.css('top', height);
            }
        },
        resetTop: function () {
            if (SlimStickyNav.secondaryNavElem.length) {
                SlimStickyNav.inner.css('top', '');
            }
        },
        clickHandler: function () {
            SlimStickyNav.activateLink(this);
            var target = $(this.hash).next();
            var top = target.offset().top - SlimStickyNav.height - SlimStickyNav.getSecondaryNavHeight();
            $('html,body').animate({
                scrollTop: top
            }, 500);

            return false;
        },
        resetHandler: function () {
            SlimStickyNav.inner.css('z-index', '19');
            var scroll = $(window).scrollTop();

            // Reset the sticky nav position (in case other elements on the
            // page are moving and its position has changed).

            SlimStickyNav.posTop = (SlimStickyNav.elem && SlimStickyNav.elem.offset() ? SlimStickyNav.elem.offset().top : 0) -
                SlimStickyNav.getSecondaryNavHeight();

            if (scroll >= SlimStickyNav.posTop) {
                SlimStickyNav.stick();
            } else {
                SlimStickyNav.unstick();
            }

            var totalHeight = 2 * SlimStickyNav.height + SlimStickyNav.getSecondaryNavHeight();
            scroll += totalHeight;
            // Set the active link
            $(SlimStickyNav.linkElements).each(function () {
                // reset the element's top and bottom (in case other elements
                // on the page are moving and its position has changed).
                var top = this.elem.offset().top;
                var bottom = top + this.elem.outerHeight();

                if (top <= scroll && scroll <= bottom) {
                    if (!this.link.hasClass('active')) {
                        this.link.addClass('active');
                    }
                } else {
                    this.link.removeClass('active');
                }
            });

            if (SlimStickyNav.isSticky === false) {
                $(SlimStickyNav.links[0]).addClass('active');
            }
            
        },
        init: function () {
            if (SlimStickyNav.elem.length) {
                SlimStickyNav.inner = SlimStickyNav.elem.children('.inner');
                if (SlimStickyNav.inner.length) {
                    SlimStickyNav.height = SlimStickyNav.inner.outerHeight();
                    SlimStickyNav.links = SlimStickyNav.elem.find('ul a');
                    SlimStickyNav.elem.height(SlimStickyNav.height);

                    //If there is a secondary nav bar get its information
                    if (SlimStickyNav.secondaryNavElem.length) {
                        SlimStickyNav.stickyClass = 'stickySecond';
                        //Make sure the menu items show over the slim sticky nav bar
                        var menuItems = SlimStickyNav.secondaryNavElem.find('.has-submenu');
                        if (menuItems.length) {
                            menuItems.hover(
                                function () {
                                    if (SlimStickyNav.isSticky) {
                                        SlimStickyNav.inner.css('z-index', '-1');
                                    }
                                },
                                function () {
                                    if (SlimStickyNav.isSticky) {
                                        SlimStickyNav.inner.css('z-index', '19');
                                    }
                                });
                        }
                    }

                    $(window).on('load', SlimStickyNav.resetHandler);
                    $(window).scroll(SlimStickyNav.resetHandler);

                    SlimStickyNav.links.each(function () {
                        var link = $(this),
                            elem = $(this.hash).next();

                        //adding pixels to width to not move links when they become bold
                        var linkWidth = link.width() + 3;
                        if (linkWidth < 200) {
                            link.css('min-width', linkWidth);
                        }
                        
                        link.click(SlimStickyNav.clickHandler);

                        if (elem.length) {
                            SlimStickyNav.linkElements.push({
                                'height': elem.outerHeight(),
                                'link': link,
                                'elem': elem
                            });
                        }
                    });
                }
            }
        }
    };

    $(SlimStickyNav.init);
})(jQuery);;
!function(){return function e(t,i,n){function r(a,s){if(!i[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[a]={exports:{}};t[a][0].call(u.exports,function(e){return r(t[a][1][e]||e)},u,u.exports,e,t,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}}()({1:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.eligible=!1}}();i.EligibleResponse=n},{}],2:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.url=null}}();i.InstallerResponse=n},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.IpLocationDataRequest=t}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{}],4:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.countryName=void 0,this.isoCountryCode=void 0}return n([t("countryName"),r("design:type",String)],e.prototype,"countryName",void 0),n([t("isoCountryCode"),r("design:type",String)],e.prototype,"isoCountryCode",void 0),e}();e.IpLocationDataResponse=i}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../../Helpers/_MapHelper":16}],5:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.PricingProductRequest=t}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{}],6:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.skuPricing=void 0}return n([t("skuPricing"),r("design:type",Array)],e.prototype,"skuPricing",void 0),e}();e.PricingProductResponse=i;var a=function(){function e(){this.amount=void 0,this.currencySign=void 0,this.pricingString=void 0,this.sku=void 0}return n([t("amount"),r("design:type",Number)],e.prototype,"amount",void 0),n([t("currencySign"),r("design:type",String)],e.prototype,"currencySign",void 0),n([t("pricingString"),r("design:type",String)],e.prototype,"pricingString",void 0),n([t("sku"),r("design:type",String)],e.prototype,"sku",void 0),e}();e.SkuPricing=a}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../../Helpers/_MapHelper":16}],7:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.domain=null,this.email=null}}();i.ProspectDataResponse=n},{}],8:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.value=null}}();i.ValueResponse=n},{}],9:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("./Models/_PricingProductResponse"),a=e("./Models/_IpLocationDataRequest"),s=e("./Models/_IpLocationDataResponse"),l=e("./Models/_ProspectDataResponse"),c=e("../Helpers/_MapHelper"),u=e("../Helpers/_IPAddressHelper"),d=e("../Caching/_SessionCache"),h=e("../Helpers/_AjaxHelper"),p=e("./Models/_InstallerResponse"),f=e("./Models/_ValueResponse"),g=e("./Models/_EligibleResponse");!function(e){var t=o.AzureFunctionAPI.PricingProductResponse,i=a.AzureFunctionAPI.IpLocationDataRequest,v=s.AzureFunctionAPI.IpLocationDataResponse,m=c.Helpers.MapHelper,y=u.Helpers.IPAddressHelper,b=d.Caching.SessionCache,w=h.Helpers.AjaxHelper,C=function(){function e(){this.ajaxUrl=window.AzureFunctionsHost,this.ajaxUrl&&0!==this.ajaxUrl.length||(this.ajaxUrl="https://api-mktdev.solarwinds.com"),this.getPricingUrl=this.ajaxUrl+"/api/getpricing",this.getIpLocationDataURL=this.ajaxUrl+"/api/getiplocationdata",this.emailIsFreeURL=this.ajaxUrl+"/api/emailisfree",this.ipAddress=y.IPAddress(),this.cache=new b}return e.prototype.decryptString=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,this.callAzureFunction(this.ajaxUrl+"/api/decryptstring",{value:e},f.ValueResponse,!1)];case 1:return[2,t.sent().value]}})})},e.prototype.getInstallerUrl=function(e,t,i,o){return n(this,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return n={dluid:e,isEval:t,packageId:i,packageFileName:o},[4,this.callAzureFunction(this.ajaxUrl+"/api/getinstallerurl",n,p.InstallerResponse,!1)];case 1:return[2,r.sent().url]}})})},e.prototype.getProductPricing=function(e){return n(this,void 0,void 0,function(){return r(this,function(i){return e.ipAddress=this.ipAddress,[2,this.callAzureFunction(this.getPricingUrl,e,t)]})})},e.prototype.getProspectData=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,this.callAzureFunction(this.ajaxUrl+"/api/getprospectdata",{email:e},l.ProspectDataResponse)]})})},e.prototype.getIpLocationData=function(){return n(this,void 0,void 0,function(){var e;return r(this,function(t){return(e=new i).ipAddress=this.ipAddress,[2,this.callAzureFunction(this.getIpLocationDataURL,e,v)]})})},e.prototype.emailIsFree=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,this.callAzureFunction(this.emailIsFreeURL,e)]})})},e.prototype.blockFreeEmails=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return e.ipAddress=this.ipAddress,[2,this.callAzureFunction(this.ajaxUrl+"/api/blockfreeemails",e)]})})},e.prototype.isDownloadEligible=function(e,t){return n(this,void 0,void 0,function(){var i;return r(this,function(n){switch(n.label){case 0:return i={registration:e,dluid:t},[4,this.callAzureFunction(this.ajaxUrl+"/api/isdownloadeligible",i,g.EligibleResponse,!1)];case 1:return[2,n.sent().eligible]}})})},e.prototype.callAzureFunction=function(e,t,i,o){return void 0===o&&(o=!0),n(this,void 0,void 0,function(){var n,a=this;return r(this,function(r){return n=w.getAPIMethodNameFromURL(e)+JSON.stringify(t),[2,new Promise(function(r,s){if(o){var l=a.cache.getCachedResponse(n,i);if(null!==l)return void r(l)}var c={contentType:"application/json",method:"POST",dataType:"json"},u=JSON.stringify(t);c.data=u,$.ajax(e,c).done(function(e){var t=i?m.deserialize(i,e):e;o&&a.cache.updateCachedValue(n,JSON.stringify(t)),r(t)}).fail(function(e,t){var i="Request failed. Returned status of "+e.status;0!==e.status&&TrackJS.track(i),s(i)})})]})})},e}();e.AzureFunction=C}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../Caching/_SessionCache":10,"../Helpers/_AjaxHelper":12,"../Helpers/_IPAddressHelper":14,"../Helpers/_MapHelper":16,"./Models/_EligibleResponse":1,"./Models/_InstallerResponse":2,"./Models/_IpLocationDataRequest":3,"./Models/_IpLocationDataResponse":4,"./Models/_PricingProductResponse":6,"./Models/_ProspectDataResponse":7,"./Models/_ValueResponse":8}],10:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Helpers/_MapHelper");!function(e){var t=n.Helpers.MapHelper,i=function(){function e(){}return e.prototype.updateCachedValue=function(e,t){if(window.sessionStorage&&t)try{window.sessionStorage.setItem(e,t)}catch(e){TrackJS.track(e)}},e.prototype.getCachedValue=function(e){if(window.sessionStorage)try{var t=window.sessionStorage.getItem(e);if(t&&t.length>0)return t}catch(e){TrackJS.track(e)}return null},e.prototype.getCachedResponse=function(e,t){var i=this.getCachedValue(e);if(null!=i)try{var n=this.deserializeResponse(i,t);if(null!=n)return n;console.warn("Warning: There was an error deserializing Azure function response from sessionStorage.")}catch(e){console.warn("Warning: There was an error deserializing Azure function response from sessionStorage. Data: "+e)}return null},e.prototype.deserializeResponse=function(e,i){var n;try{n=JSON.parse(e)}catch(t){n=e}return i?t.deserialize(i,n):n},e}();e.SessionCache=i}(i.Caching||(i.Caching={}))},{"../Helpers/_MapHelper":16}],11:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../IpGeoAPI/_IpGeo"),r=e("../Helpers/_CookieHelper");!function(e){var t=n.IpGeoAPI.IpGeo,i=r.CookieHelper,o=function(){function e(){var e=this;this.ipGeo=new t;var i=$("#EuCookieBlock");i.length&&this.ipGeo.isGdprApplicable().then(function(t){return e.initialize(i,t)}).catch(function(e){return TrackJS.track(e)})}return e.prototype.initialize=function(e,t){var n=i.getCookie("EuCookieCompliance");t&&"accepted"!==n?(e.removeClass("hidden"),$("#EuContinue",e).click(function(t){return t.preventDefault(),document.cookie="EuCookieCompliance=accepted; path=/",e.hide(),e.removeClass("features-array-redirect-adjust-cookie"),!1})):e.remove()},e}();e.IndexPageController=o}(i.EuCookieCompliance||(i.EuCookieCompliance={}))},{"../Helpers/_CookieHelper":13,"../IpGeoAPI/_IpGeo":22}],12:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getAjaxUrl=function(e,t){var i="";if(t&&this.allowedLanguagesSubfolders.indexOf(t)>=0)i="en"===t?"":"/"+t;else{var n=window.location.pathname.split("/")[1];n&&this.allowedLanguagesSubfolders.indexOf(n)>=0&&(i="/"+n)}return i+e},e.getAPIMethodNameFromURL=function(e){if(e){String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t,e.length,t)===e});var t=(e.endsWith("/")?e.substring(0,e.length-1):e).split("/");return t[t.length-1]}return""},e.allowedLanguagesSubfolders=["de","ja","es","fr","zh","ko","en"],e}();e.AjaxHelper=t}(i.Helpers||(i.Helpers={}))},{}],13:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function e(){}return e.setCookie=function(e,t,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var r="expires="+n.toUTCString();document.cookie=e+"="+t+";expires="+r+";path=/;domain=.solarwinds.com"},e.getCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var r=i[n];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return this.decodedValue(r.substring(t.length,r.length))}return""},e.handlePercent=function(e){for(var t="0123456789abcdefABCDEF",i="",n=0,r=e.length,o=e.indexOf("%");0<=o;)i+=e.substr(n,o-n),o+2<r&&0<=t.indexOf(e[o+1])&&0<=t.indexOf(e[o+2])?(i+="%"+e[o+1]+e[o+2],n=o+3):(i+="%25",n=o+1),o=e.indexOf("%",n);return n<r&&(i+=e.substr(n,r-n)),i},e.decodedValue=function(e){return null===e?"":decodeURIComponent(this.handlePercent(e))},e}();i.CookieHelper=n},{}],14:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_QueryParametersHelper");!function(e){var t=n.Helpers.QueryParametersHelper,i=function(){function e(){}return e.IPAddress=function(){return t.getUrlParameter("ipmask")},e}();e.IPAddressHelper=i}(i.Helpers||(i.Helpers={}))},{"./_QueryParametersHelper":18}],15:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getCurrentLanguage=function(){return void 0!=window.dataLayer&&null!=window.dataLayer&&void 0!=window.dataLayer.site&&null!=window.dataLayer.site&&void 0!=window.dataLayer.site.language&&null!=window.dataLayer.site.language?window.dataLayer.site.language:"en"},e}();e.LanguageHelper=t}(i.Helpers||(i.Helpers={}))},{}],16:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),e("reflect-metadata"),function(e){var t="jsonProperty";function i(e,t){return Reflect.getMetadata("design:type",e,t)}function n(e,i){return Reflect.getMetadata(t,e,i)}e.getClazz=i,e.getJsonProperty=n,e.JsonProperty=function(e){if(e instanceof String||"string"==typeof e)return Reflect.metadata(t,{name:e,clazz:void 0});var i=e;return Reflect.metadata(t,{name:i?i.name:void 0,clazz:i?i.clazz:void 0})};var r=function(){function e(){}return e.isPrimitive=function(e){switch(typeof e){case"string":case"number":case"boolean":return!0}return!!(e instanceof String||e===String||e instanceof Number||e===Number||e instanceof Boolean||e===Boolean)},e.isArray=function(e){return e===Array||("function"==typeof Array.isArray?Array.isArray(e):!!(e instanceof Array))},e.deserialize=function(t,r){if(void 0!==t&&void 0!==r){var o=new t;return Object.keys(o).forEach(function(t){var a=n(o,t);null!=a?o[t]=function(a){var s=a.name||t,l=r?r[s]:void 0,c=i(o,t);if(e.isArray(c)){var u=n(o,t);return u.clazz&&!e.isPrimitive(u.clazz)?l&&e.isArray(l)?l.map(function(t){return e.deserialize(u.clazz,t)}):void 0:l}return e.isPrimitive(c)?r?r[s]:void 0:e.deserialize(c,l)}(a):r&&void 0!==r[t]&&(o[t]=r[t])}),o}},e}();e.MapHelper=r}(i.Helpers||(i.Helpers={}))},{"reflect-metadata":32}],17:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getLocalizedPrice=function(e,t){var i="";switch(t){case"£":i=t+new Intl.NumberFormat("en-GB").format(e);break;case"€":i=new Intl.NumberFormat("it-IT").format(e)+" "+t;break;case"AUD$":i=t+new Intl.NumberFormat("en-AU").format(e);break;case"¥":i=t+new Intl.NumberFormat("ja-JP").format(e);break;default:i=t+new Intl.NumberFormat("en-US").format(e)}return i},e}();e.PriceLocalizationHelper=t}(i.Helpers||(i.Helpers={}))},{}],18:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getUrlParameter=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)","i").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},e}();e.QueryParametersHelper=t}(i.Helpers||(i.Helpers={}))},{}],19:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.ContactInfoRequest=t}(i.IpGeoAPI||(i.IpGeoAPI={}))},{}],20:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.Email=void 0,this.Phone=void 0}return n([t("email"),r("design:type",String)],e.prototype,"Email",void 0),n([t("phone"),r("design:type",String)],e.prototype,"Phone",void 0),e}();e.GeoContactInfo=i}(i.IpGeoAPI||(i.IpGeoAPI={}))},{"../../Helpers/_MapHelper":16}],21:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.CountrySelectionMapRequest=t}(i.IpGeoAPI||(i.IpGeoAPI={}))},{}],22:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../Helpers/_MapHelper"),a=e("./Models/_ContactInfoResponse"),s=e("./Models/_CountrySelectionMapRequest"),l=e("../Helpers/_IPAddressHelper"),c=e("../Caching/_SessionCache"),u=e("../Helpers/_AjaxHelper");!function(e){var t=o.Helpers.MapHelper,i=a.IpGeoAPI.GeoContactInfo,d=s.IpGeoAPI.CountrySelectionMapRequest,h=l.Helpers.IPAddressHelper,p=c.Caching.SessionCache,f=u.Helpers.AjaxHelper,g=function(){function e(){this.ajaxUrl=window.AzureFunctionsHost,this.ajaxUrl&&0!==this.ajaxUrl.length||(this.ajaxUrl="https://api-webdev.solarwinds.com"),this.ipAddress=h.IPAddress(),this.cache=new p}return e.prototype.getContactInfoIpGeo=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return e.ipAddress=this.ipAddress,[2,this.callIpGeoAPI("/api/getipgeoinfoforcountry",e,i)]})})},e.prototype.getIpGeoCountrySelectionMap=function(e){return n(this,void 0,void 0,function(){var t;return r(this,function(i){return(t=new d).ipGeos=e,t.ipAddress=this.ipAddress,[2,this.callIpGeoAPI("/api/getipgeocountryselectionmap",t)]})})},e.prototype.isGdprApplicable=function(){return n(this,void 0,void 0,function(){return r(this,function(e){return[2,this.callIpGeoAPI("/api/isgdprapplicable",{ipAddress:this.ipAddress})]})})},e.prototype.callIpGeoAPI=function(e,i,o){return n(this,void 0,void 0,function(){var n,a=this;return r(this,function(r){return n=f.getAPIMethodNameFromURL(e)+JSON.stringify(i),[2,new Promise(function(r,s){var l=a.cache.getCachedResponse(n,o);if(null==l){var c={url:a.ajaxUrl+e,method:"GET",dataType:"json",traditional:!0,data:i};$.ajax(c).done(function(e){var i=o?t.deserialize(o,e):e;a.cache.updateCachedValue(n,JSON.stringify(i)),r(i)}).fail(function(e,t){var i="Request failed. Returned status of "+e.status;0!==e.status&&TrackJS.track(i),s(i)})}else r(l)})]})})},e}();e.IpGeo=g}(i.IpGeoAPI||(i.IpGeoAPI={}))},{"../Caching/_SessionCache":10,"../Helpers/_AjaxHelper":12,"../Helpers/_IPAddressHelper":14,"../Helpers/_MapHelper":16,"./Models/_ContactInfoResponse":20,"./Models/_CountrySelectionMapRequest":21}],23:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.ContactInfoRequestElementMap=t}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{}],24:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../IpGeoAPI/_IpGeo"),r=e("../IpGeoAPI/Models/_ContactInfoRequest"),o=e("../IpGeoAPI/Models/_ContactInfoResponse"),a=e("./Models/_ContactInfoRequestElementMap"),s=e("../Helpers/_LanguageHelper");!function(e){var t=n.IpGeoAPI.IpGeo,i=r.IpGeoAPI.ContactInfoRequest,l=o.IpGeoAPI.GeoContactInfo,c=a.PlaceholderDataProcessing.ContactInfoRequestElementMap,u=s.Helpers.LanguageHelper,d=function(){function e(){this.contactPhonePlaceholderRegex=/{#Contact Phone#}/gi,this.contactEmailPlaceholderRegex=/{#Contact Email#}/gi,this.requestElementsMap=new Array,this.elements=new Array}return e.prototype.addElement=function(e){this.elements.push(e)},e.prototype.process=function(){var e=this;if(this.elements.length>0){this.ipGeoFunction=new t;for(var i=0,n=this.elements;i<n.length;i++){var r=n[i],o=this.prepareContactInfoRequest(r);this.addRequestToMap(o,r)}for(var a=function(t){s.ipGeoFunction.getContactInfoIpGeo(t.request).then(function(i){e.processContactInfoPlaceholders(t.elements,i)}).catch(function(i){console.warn("There was an error getting ContactInfo details. Data: "+i),e.processContactInfoPlaceholders(t.elements,new l)})},s=this,c=0,u=this.requestElementsMap;c<u.length;c++){a(u[c])}}},e.prototype.addRequestToMap=function(e,t){var i=this.requestElementsMap.find(function(t){return t.request.geoType===e.geoType&&t.request.profile===e.profile});if(i)i.elements.push(t);else{var n=new c;n.request=e,n.elements=new Array,n.elements.push(t),this.requestElementsMap.push(n)}},e.prototype.prepareContactInfoRequest=function(e){var t=new i;return t.geoType=e.getAttribute("data-service-geoType"),t.geoType=null==t.geoType||0===t.geoType.length?"local":t.geoType,t.profile=e.getAttribute("data-service-profile"),t.profile=null==t.profile||0===t.profile.length?"main":t.profile,t.lang=u.getCurrentLanguage(),t},e.prototype.processContactInfoPlaceholders=function(e,t){if(t)for(var i=0,n=e;i<n.length;i++){var r=n[i],o=void 0===t.Email?r.getAttribute("data-service-default-email"):t.Email.toLowerCase();r.innerHTML=r.innerHTML.replace(this.contactEmailPlaceholderRegex,o);var a=void 0===t.Phone?r.getAttribute("data-service-default-phone"):t.Phone;r.innerHTML=r.innerHTML.replace(this.contactPhonePlaceholderRegex,a),r.style.visibility="visible"}},e}();e.ContactInfoPlaceholderProcessor=d}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{"../Helpers/_LanguageHelper":15,"../IpGeoAPI/Models/_ContactInfoRequest":19,"../IpGeoAPI/Models/_ContactInfoResponse":20,"../IpGeoAPI/_IpGeo":22,"./Models/_ContactInfoRequestElementMap":23}],25:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_PricingPlaceholderProcessor"),r=e("./_ContactInfoPlaceholderProcessor");!function(e){var t=n.PlaceholderDataProcessing.PricingPlaceholderProcessor,i=r.PlaceholderDataProcessing.ContactInfoPlaceholderProcessor,o=function(){function e(){this.placeholderProcessors=new Array;var e=document.querySelectorAll("[data-service-placeholder-id]");e.length>0&&(this.elementsWithPlaceholder=e,this.pricingPlaceholderProcessor=new t,this.contactInfoPlaceholderProcessor=new i,this.placeholderProcessors.push(this.pricingPlaceholderProcessor),this.placeholderProcessors.push(this.contactInfoPlaceholderProcessor),this.init())}return e.prototype.init=function(){var e=this;this.elementsWithPlaceholder&&window.addEventListener("DOMContentLoaded",function(){e.processPlaceHolders()})},e.prototype.processPlaceHolders=function(){var e=this;Array.prototype.forEach.call(this.elementsWithPlaceholder,function(t){switch(t.getAttribute("data-service-placeholder-id")){case"ProductPrice":e.pricingPlaceholderProcessor.addElement(t);break;case"ContactInfo":e.contactInfoPlaceholderProcessor.addElement(t)}});for(var t=0,i=this.placeholderProcessors;t<i.length;t++){i[t].process()}},e}();e.PlaceholderDataProcessor=o}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{"./_ContactInfoPlaceholderProcessor":24,"./_PricingPlaceholderProcessor":26}],26:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../AzureFunctionAPI/Models/_PricingProductRequest"),r=e("../AzureFunctionAPI/_AzureFunction"),o=e("../Helpers/_PriceLocalizationHelper");!function(e){var t=n.AzureFunctionAPI.PricingProductRequest,i=r.AzureFunctionAPI.AzureFunction,a=o.Helpers.PriceLocalizationHelper,s=function(){function e(){this.placeholderRegex=/{#Product Price#}/gi,this.skuElements={},this.allPageProductsSkus=new Array,this.elements=new Array}return e.prototype.addElement=function(e){this.elements.push(e)},e.prototype.process=function(){var e=this;if(this.elements.length>0&&(this.azureFunction=new i,this.getAllPageSkus(),this.allPageProductsSkus&&this.allPageProductsSkus.length>0)){var n=new t;n.skus=this.allPageProductsSkus,this.azureFunction.getProductPricing(n).then(function(t){if(t&&t.skuPricing&&t.skuPricing.length>0)for(var i=0,n=t.skuPricing;i<n.length;i++){var r=n[i];e.processSku(r)}else e.processFallbackPrice()}).catch(function(t){console.error("Error: There was an error getting pricing details. Data: "+t),e.processFallbackPrice()})}},e.prototype.getAllPageSkus=function(){for(var e=0,t=this.elements;e<t.length;e++){var i=t[e],n=i.getAttribute("data-service-sku");n?(this.allPageProductsSkus.indexOf(n)<0&&this.allPageProductsSkus.push(n),this.skuElements[n]||(this.skuElements[n]=new Array),this.skuElements[n].push(i)):i.style.visibility="visible"}},e.prototype.processSku=function(e){var t=this.skuElements[e.sku];if(t&&t.length>0)for(var i=a.getLocalizedPrice(e.amount,e.currencySign),n=0,r=t;n<r.length;n++){var o=r[n];o.innerHTML=o.innerHTML.replace(this.placeholderRegex,i),o.style.visibility="visible"}},e.prototype.processFallbackPrice=function(){for(var e=0,t=this.allPageProductsSkus;e<t.length;e++){var i=t[e],n=this.skuElements[i];if(n&&n.length>0)for(var r=0,o=n;r<o.length;r++){var a=o[r],s=a.getAttribute("data-service-default");a.innerHTML=a.innerHTML.replace(this.placeholderRegex,s),a.style.visibility="visible"}}},e}();e.PricingPlaceholderProcessor=s}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":5,"../AzureFunctionAPI/_AzureFunction":9,"../Helpers/_PriceLocalizationHelper":17}],27:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../AzureFunctionAPI/Models/_PricingProductRequest"),r=e("../AzureFunctionAPI/_AzureFunction");!function(e){var t=r.AzureFunctionAPI.AzureFunction,i=n.AzureFunctionAPI.PricingProductRequest,o=function(){function e(){this.pricingTableContainers=$(".pricing-table-container"),this.elementsWithSkuAttributes=$('.pricing-table-container [data-sku]:not([data-sku=""])'),this.azureFunction=new t,this.loadPricing()}return e.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.elementsWithSkuAttributes.length;t++){var i=$(this.elementsWithSkuAttributes[t]).attr("data-sku");i&&e.indexOf(i)<0&&e.push(i)}return e},e.prototype.setPriceValues=function(e){if(e&&e.length>0)for(var t=0;t<this.elementsWithSkuAttributes.length;t++){var i=$(this.elementsWithSkuAttributes[t]).attr("data-sku");if(i){var n=e.filter(function(e){return e.sku===i});n.length>0&&$(this.elementsWithSkuAttributes[t]).text(n[0].pricingString)}}},e.prototype.loadPricing=function(){var e=this,t=this.getUsedSkus();if(t.length>0){var n=new i;n.skus=t,this.azureFunction.getProductPricing(n).then(function(t){t&&t.skuPricing&&e.setPriceValues(t.skuPricing)}).catch(function(e){console.error("Error: There was an error getting pricing details. Data: "+e)}),this.elementsWithSkuAttributes.removeClass("invisible")}},e}();e.LegacyIndexPageController=o}(i.ProductPricingModule||(i.ProductPricingModule={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":5,"../AzureFunctionAPI/_AzureFunction":9}],28:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Helpers/_QueryParametersHelper"),r=function(){function e(){this.parameters={cmp:"KNC",placeholder:"{#replacement#}",keyword:"keyword"},this.heroTitleOverride=document.querySelector(".title-override-content"),this.heroTitleOriginal=document.querySelectorAll(".hero-title-default")}return e.prototype.init=function(){var e=this;this.heroTitleOverride&&window.addEventListener("DOMContentLoaded",function(){if(e.isKncRequest()){var t=e.getKeyword();t&&e.heroTitleOriginal.length>0&&[].forEach.call(e.heroTitleOriginal,function(e){e.innerHTML=t})}e.heroTitleOverride.remove(),e.heroTitleOriginal.length>0&&[].forEach.call(e.heroTitleOriginal,function(e){e.classList.remove("hidden")})})},e.prototype.isKncRequest=function(){if(this.heroTitleOverride){var e=n.Helpers.QueryParametersHelper.getUrlParameter("CMP");if(e){var t=e.split("-");return!(!t||t[0].toUpperCase()!==this.parameters.cmp)}return!1}return!1},e.prototype.getKeyword=function(){var e=n.Helpers.QueryParametersHelper.getUrlParameter(this.parameters.keyword);return e?this.heroTitleOverride.getAttribute("value").replace(this.parameters.placeholder,e):""},e}();i.ProductHeroTitleOverride=r},{"../Helpers/_QueryParametersHelper":18}],29:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../AzureFunctionAPI/_AzureFunction"),a=e("../IpGeoAPI/_IpGeo");!function(e){var t=o.AzureFunctionAPI.AzureFunction,i=a.IpGeoAPI.IpGeo,s=function(){function e(){var e=this;this.azureFunction=new t,this.ipGeo=new i,this.containers=$(".helpBox .helpBox-container"),0!==this.containers.length&&this.filterByIpGeo($(".helpBox .helpBox-container > div")).then(function(t){return e.initialize()}).catch(function(e){return TrackJS.track(e)})}return e.prototype.filterByIpGeo=function(e){return n(this,void 0,void 0,function(){var t,i;return r(this,function(n){switch(n.label){case 0:return t=Array.from(e,function(e){return $(e).data("ipgeo")}),[4,this.ipGeo.getIpGeoCountrySelectionMap(t)];case 1:return i=n.sent(),e.each(function(e,n){!i[e]&&t[e]&&$(n).remove()}),[2]}})})},e.prototype.initialize=function(){this.containers.each(function(e,t){var i=$(t),n=i.closest(".helpBox"),r=i.closest(".adjust-helpBox").find(".adjust-helpBox").addBack(),o=$("> div",i).first().html();o?(i.replaceWith(o),n.removeClass("remove-if-empty"),r.addClass("withHelpBox")):n.hasClass("remove-if-empty")&&n.remove(),r.removeClass("adjust-helpBox")})},e}();e.IndexPageController=s}(i.RightRailAd||(i.RightRailAd={}))},{"../AzureFunctionAPI/_AzureFunction":9,"../IpGeoAPI/_IpGeo":22}],30:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./PlaceholdersDataProcessing/_PlaceholderDataProcessor"),r=e("./ProductPricing/_LegacyIndexPageController"),o=e("./EuCookieCompliance/_IndexPageController"),a=e("./Product/_ProductHeroTitleOverride"),s=e("./RightRailAd/_IndexPageController");new n.PlaceholderDataProcessing.PlaceholderDataProcessor,new r.ProductPricingModule.LegacyIndexPageController,new o.EuCookieCompliance.IndexPageController,(new a.ProductHeroTitleOverride).init(),new s.RightRailAd.IndexPageController},{"./EuCookieCompliance/_IndexPageController":11,"./PlaceholdersDataProcessing/_PlaceholderDataProcessor":25,"./Product/_ProductHeroTitleOverride":28,"./ProductPricing/_LegacyIndexPageController":27,"./RightRailAd/_IndexPageController":29}],31:[function(e,t,i){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var c,u=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!d){var e=l(p);d=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];u.push(new g(e,t)),1!==u.length||d||l(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],32:[function(e,t,i){(function(e,t){(function(){var i;!function(i){!function(n){var r="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(i);function a(e,t){return function(i,n){"function"!=typeof e[i]&&Object.defineProperty(e,i,{configurable:!0,writable:!0,value:n}),t&&t(i,n)}}void 0===r.Reflect?r.Reflect=i:o=a(r.Reflect,o),function(t){var i=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,l=!a&&!s,c={create:a?function(){return T(Object.create(null))}:s?function(){return T({__proto__:null})}:function(){return T({})},has:l?function(e,t){return i.call(e,t)}:function(e,t){return t in e},get:l?function(e,t){return i.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,h=d||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],i=function(){function e(e,t,i){this._index=0,this._keys=e,this._values=t,this._selector=i}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var i=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:i,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var i=this._find(e,!0);return this._values[i]=t,this},t.prototype.delete=function(t){var i=this._find(t,!1);if(i>=0){for(var n=this._keys.length,r=i+1;r<n;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new i(this._keys,this._values,n)},t.prototype.values=function(){return new i(this._keys,this._values,r)},t.prototype.entries=function(){return new i(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function r(e,t){return t}function a(e,t){return[e,t]}}():Map,p=d||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new h}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}():Set,f=new(d||"function"!=typeof WeakMap?function(){var e=16,t=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){var i=o(e,!0);return i[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var e;do{e="@@WeakMap@@"+s()}while(c.has(t,e));return t[e]=!0,e}function o(e,t){if(!i.call(e,n)){if(!t)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function a(e,t){for(var i=0;i<t;++i)e[i]=255*Math.random()|0;return e}function s(){var t=function(e){if("function"==typeof Uint8Array)return"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):a(new Uint8Array(e),e);return a(new Array(e),e)}(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var i="",n=0;n<e;++n){var r=t[n];4!==n&&6!==n&&8!==n||(i+="-"),r<16&&(i+="0"),i+=r.toString(16).toLowerCase()}return i}}():WeakMap);function g(e,t,i){var n=f.get(e);if(C(n)){if(!i)return;n=new h,f.set(e,n)}var r=n.get(t);if(C(r)){if(!i)return;r=new h,n.set(t,r)}return r}function v(e,t,i){var n=g(t,i,!1);return!C(n)&&!!n.has(e)}function m(e,t,i){var n=g(t,i,!1);if(!C(n))return n.get(e)}function y(e,t,i,n){var r=g(i,n,!0);r.set(e,t)}function b(e,t){var i=[],n=g(e,t,!1);if(C(n))return i;for(var r=n.keys(),a=function(e){var t=I(e,o);if(!M(t))throw new TypeError;var i=t.call(e);if(!k(i))throw new TypeError;return i}(r),s=0;;){var l=F(a);if(!l)return i.length=s,i;var c=l.value;try{i[s]=c}catch(e){try{R(a)}finally{throw e}}s++}}function w(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function C(e){return void 0===e}function P(e){return null===e}function k(e){return"object"==typeof e?null!==e:"function"==typeof e}function S(e,t){switch(w(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var i=3===t?"string":5===t?"number":"default",n=I(e,r);if(void 0!==n){var o=n.call(e,i);if(k(o))throw new TypeError;return o}return function(e,t){if("string"===t){var i=e.toString;if(M(i)){var n=i.call(e);if(!k(n))return n}var r=e.valueOf;if(M(r)){var n=r.call(e);if(!k(n))return n}}else{var r=e.valueOf;if(M(r)){var n=r.call(e);if(!k(n))return n}var o=e.toString;if(M(o)){var n=o.call(e);if(!k(n))return n}}throw new TypeError}(e,"default"===i?"number":i)}function $(e){var t=S(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function _(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function M(e){return"function"==typeof e}function x(e){return"function"==typeof e}function I(e,t){var i=e[t];if(void 0!==i&&null!==i){if(!M(i))throw new TypeError;return i}}function F(e){var t=e.next();return!t.done&&t}function R(e){var t=e.return;t&&t.call(e)}function A(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var i=e.prototype,n=i&&Object.getPrototypeOf(i);if(null==n||n===Object.prototype)return t;var r=n.constructor;return"function"!=typeof r?t:r===e?t:r}function T(e){return e.__=void 0,delete e.__,e}t("decorate",function(e,t,i,n){if(C(i)){if(!_(e))throw new TypeError;if(!x(t))throw new TypeError;return function(e,t){for(var i=e.length-1;i>=0;--i){var n=e[i],r=n(t);if(!C(r)&&!P(r)){if(!x(r))throw new TypeError;t=r}}return t}(e,t)}if(!_(e))throw new TypeError;if(!k(t))throw new TypeError;if(!k(n)&&!C(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),i=$(i),function(e,t,i,n){for(var r=e.length-1;r>=0;--r){var o=e[r],a=o(t,i,n);if(!C(a)&&!P(a)){if(!k(a))throw new TypeError;n=a}}return n}(e,t,i,n)}),t("metadata",function(e,t){return function(i,n){if(!k(i))throw new TypeError;if(!C(n)&&!function(e){switch(w(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;y(e,t,i,n)}}),t("defineMetadata",function(e,t,i,n){if(!k(i))throw new TypeError;C(n)||(n=$(n));return y(e,t,i,n)}),t("hasMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return function e(t,i,n){var r=v(t,i,n);if(r)return!0;var o=A(i);if(!P(o))return e(t,o,n);return!1}(e,t,i)}),t("hasOwnMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return v(e,t,i)}),t("getMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return function e(t,i,n){var r=v(t,i,n);if(r)return m(t,i,n);var o=A(i);if(!P(o))return e(t,o,n);return}(e,t,i)}),t("getOwnMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return m(e,t,i)}),t("getMetadataKeys",function(e,t){if(!k(e))throw new TypeError;C(t)||(t=$(t));return function e(t,i){var n=b(t,i);var r=A(t);if(null===r)return n;var o=e(r,i);if(o.length<=0)return n;if(n.length<=0)return o;var a=new p;var s=[];for(var l=0,c=n;l<c.length;l++){var u=c[l],d=a.has(u);d||(a.add(u),s.push(u))}for(var h=0,f=o;h<f.length;h++){var u=f[h],d=a.has(u);d||(a.add(u),s.push(u))}return s}(e,t)}),t("getOwnMetadataKeys",function(e,t){if(!k(e))throw new TypeError;C(t)||(t=$(t));return b(e,t)}),t("deleteMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));var n=g(t,i,!1);if(C(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var r=f.get(t);return r.delete(i),r.size>0||(f.delete(t),!0)})}(o)}()}(i||(i={}))}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:31}]},{},[30]),$(document).ready(function(){($(".navbarUltra.brandsite-global-nav").length||$(".navbar-gov").length)&&$("a.icon-menu-headline").click(function(e){e.stopPropagation(),$(this).parent("li").toggleClass("open")})});var globalFooter={};function getCookie(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var r=i[n];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return decodedValue(r.substring(t.length,r.length))}return""}function checkCookie(e){return""!==getCookie(e)}function setCookie(e,t,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var r="expires="+n.toUTCString();document.cookie=e+"="+t+";expires="+r+";path=/;domain=.solarwinds.com"}function setCookiesFor(e,t){(""!==e||""!==t)&&document.getElementById(e)&&document.getElementById(t)&&$.ajax({url:"/solarapi/cookies/setregistrationcookies",type:"POST",async:!1,dataType:"json",data:{firstName:document.getElementById(e).value,lastName:document.getElementById(t).value}})}function deleteCookie(e){document.cookie=e+"='';expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.solarwinds.com"}function setRegistrationCookieForEmail(e){e&&""!==e&&$.ajax({url:"/solarapi/cookies/setregistrationcookieforemail",type:"POST",async:!1,dataType:"json",data:{email:e}})}function hideElement(e){null!==document.getElementById&&(document.getElementById(e).style.visibility="hidden")}function checkForCookieHideInputs(){!0===checkCookie("RegistrationDetails")&&(hideElement("CTAFirstName"),hideElement("CTALastName"),hideElement("CTATFirstName"),hideElement("CTATLastName"),hideElement("SNFirstName"),hideElement("SNLastName"),hideElement("CTAFirstNameM"),hideElement("CTALastNameM"),hideElement("CTATFirstNameM"),hideElement("CTATLastNameM"),hideElement("SNFirstNameM"),hideElement("SNLastNameM"))}function handlePercent(e){for(var t="0123456789abcdefABCDEF",i="",n=0,r=e.length,o=e.indexOf("%");0<=o;)i+=e.substr(n,o-n),o+2<r&&0<=t.indexOf(e[o+1])&&0<=t.indexOf(e[o+2])?(i+="%"+e[o+1]+e[o+2],n=o+3):(i+="%25",n=o+1),o=e.indexOf("%",n);return n<r&&(i+=e.substr(n,r-n)),i}function decodedValue(e){return null===e?"":decodeURIComponent(handlePercent(e))}globalFooter.showSubItems=function(){$("footer .ul-wrapper").each(function(){$(this).removeAttr("style")})},globalFooter.resetContactTileSize=function(){$(".footersection .tile").first().css("height","auto")},globalFooter.setContactTileSize=function(){$(".tile").first().css("height",$(".footersection>.row").height())},globalFooter.debounce=function(e,t){var i=null;return function(){var n=this,r=arguments;clearTimeout(i),i=setTimeout(function(){e.apply(n,r)},t)}},globalFooter.resize=function(){var e=$(window).width();e>=992&&(globalFooter.showSubItems(),globalFooter.resetContactTileSize()),e<768&&globalFooter.resetContactTileSize(),e>=768&&e<992&&globalFooter.setContactTileSize()},$(document).ready(function(){$(".expand-icon").click(function(){$(this).toggleClass("swap-expand-icon"),$(this).parent().next(".ul-wrapper").toggle();var e=$(window).width();e>=768&&e<992&&globalFooter.setContactTileSize()}),$(window).resize(globalFooter.debounce(function(){globalFooter.resize()},150)),globalFooter.resize()}),function(e){var t={el:e(".buy-now"),link:e(".buy-now-link"),submit:e(".buy-now .submit"),URL:e(".buy-now .submit").attr("href"),products:{},init:function(){e(".quantity input").keydown(function(t){var i=t.which||t.keyCode,n=e(this).val();return(48!==i&&96!==i||!(n<1))&&(!t.shiftKey&&!t.altKey&&!t.ctrlKey&&i>=48&&i<=57||i>=96&&i<=105||8===i||9===i||13===i||35===i||36===i||37===i||39===i||46===i||45===i)}),t.el.length&&(t.licenses=t.el.find(".licenses"),t.options=t.el.find(".options"),t.link.click(function(e){t.open(),e.preventDefault()}),t.el.find("header .close").click(function(e){t.close(),e.preventDefault()}),e(".buy-now").click(function(i){if(e(i.target).is(".buy-now"))return t.close(),!1}),t.initType()),e("#buynow-submit").click(function(e){t.updateURL()})},initType:function(){switch(t.type=t.el.find(".inner").attr("class").replace("inner ",""),t.type){case"tier":t.initTables(),t.initInputs();break;case"seat":t.skus=t.el.find('.buttons input[type="hidden"]'),t.updateSeat(t.el.find("#quantity")),t.el.find("#quantity").blur(function(){t.updateSeat(e(this))});break;case"autoseat":break;case"serv-u mftp":case"serv-u ftp":t.options.each(function(){t.initTable(e(this),"options")}),t.el.find(".quantity input").on("blur input",t.updateLicense),t.el.find(".select > input").on("click",function(i){e(i.target).parents("tr").trigger("click"),t.updateLicense()}),t.updateLicense()}},open:function(){t.el.addClass("open")},close:function(){t.resetInvalidValue(),t.el.removeClass("open")},initTables:function(){t.licenses.each(function(){t.initTable(e(this),"licenses"),t.initQuantity()}),t.options.each(function(){t.initTable(e(this),"options")})},initTable:function(i,n){var r={rows:i.find("tr"),selected:i.find("tr.selected")};r.rows.click(function(i){e(i.target).parents("tr").hasClass("selected")&&("options"!==n||e(i.target).parents(".quantity").length||e(i.target).hasClass("quantity"))||("licenses"===n&&(r.selected.removeClass("selected"),t.submit.hasClass("disabled")&&t.submit.removeClass("disabled")),r.selected=e(this),r.selected.addClass("selected"),"options"===n&&e(i.target).is("label")||r.selected.find(".select > input").trigger("click"),"options"===n&&(e(i.target).is("input")&&!e(i.target).is(":checked")&&r.selected.removeClass("selected"),t.updateLicense()))}),"options"===n&&r.rows.find(".quantity input").on("blur",function(){t.updateLicense()})},initQuantity:function(){e('input[name="quantity"]').on("blur",function(){var i=t.legalizeValue(e(this).val());e(this).val(i),t.updateLicense()})},legalizeValue:function(e){var t=Math.floor(parseInt(e,10));return t>1?t:1},initInputs:function(){t.el.find(".select > input").on("change",t.updateLicense)},updateLicense:function(){var i,n;switch(t.type){case"tier":case"seat":case"autoseat":i=e(".licenses tr.selected .select > input"),n=e(".licenses tr.selected .select .quantity input").val();break;case"serv-u ftp":case"serv-u mftp":t.validateQuantity();var r=e(".licenses tr .price input"),o=e(".licenses + .quantity input");n=parseInt(e(".quantity input").val()),r.length>1?(r.each(function(){var t=parseInt(e(this).attr("data-maxunits"),10);if(o.val()<=t)return i=e(this),e(".licenses .selected").removeClass("selected"),e(this).parents("tr").addClass("selected"),!1}),void 0===i&&(i=e(".licenses tr:last-child .price input"),o.val(i.attr("data-maxunits")))):(n=parseInt(o.val()),i=e(".licenses").find(".price input"))}t.products=[{sku:i.attr("data-sku"),qty:n}]},addErrorClass:function(e){e&&(e.addClass("error"),t.submit.addClass("disabled"))},removeErrorClass:function(e){e&&(e.removeClass("error"),t.submit.removeClass("disabled"))},validateQuantity:function(){var e=t.el.find(".quantity input"),i=parseInt(e.val());if(!i||i<1)return t.addErrorClass(e.parents("div.quantity")),!1;t.removeErrorClass(e.parents("div.quantity"));var n=t.options.find('input[type="checkbox"]');if(n){var r=n.parents("tr").find(".quantity input").val();if(!r||r>i){if(n[0].checked)return t.addErrorClass(n.parents("tr")),!1;n.parents("tr").find(".quantity input").val(1)}t.removeErrorClass(n.parents("tr"))}},resetInvalidValue:function(){t.el.find(".error").each(function(){e(this).find("#quantity").val(1),t.removeErrorClass(e(this))})},updateSeat:function(i){var n,r=i.val();t.skus.each(function(){if(r<=parseInt(e(this).attr("data-maxunits"),10))return n=e(this).attr("data-sku"),!1}),t.products=[{sku:n,qty:r}]},updateURL:function(){t.options.find('input[type="checkbox"]:checked').each(function(){var i=e(this).parents("tr").find(".quantity input");i&&i.val()&&i.val()>0&&t.products.push({sku:i.attr("data-sku"),qty:i.val()})});for(var i="",n="",r=!1,o=0;o<t.products.length;o++)o>0&&(i+=",",n+=",",r=!0),i+=t.products[o].sku,n+=t.products[o].qty,"13078"===i&&(n=1);var a=e("#country-code").val();if(void 0===a&&(a="us"),r){var s=e(".buy-now .submit")[0],l=s.protocol+"//"+s.hostname+"/shoppingcart";t.submit.attr("href",l+"?sku="+i+"&qty="+n+"&country="+a)}else t.submit.attr("href",t.URL+"?sku="+i+"&qty="+n+"&country="+a)}};e(t.init)}(jQuery),$(document).ready(function(){$("a.right.carousel-control.reviews").on("click",function(){var e=$(".nav-dot.filled");e.removeClass("filled");var t=e.next();0!==t.length?t.addClass("filled"):$(".nav-dot").first().addClass("filled")}),$("a.left.carousel-control.reviews").on("click",function(){var e=$(".nav-dot.filled");e.removeClass("filled");var t=e.prev();0!==t.length?t.addClass("filled"):$(".nav-dot").last().addClass("filled")})}),$(document).ready(function(){$("#toll-number-select").change(function(){var e=$("#toll-number-select").val();$(".toll-free-number").addClass("hidden"),$("#"+e).removeClass("hidden")}),0===document.location.pathname.indexOf("/de/")&&($("#govContactUs .registration_form #formPhone").removeClass("smallWrap").addClass("largeWrap"),$("#govContactUs .registration_form #formPhone input").removeClass("inputSmall").addClass("inputLarge"))}),window.EmailDomainForm={Init:function(){for(var e=$(".email-domain-form"),t=0;t<e.length;t++)window.EmailDomainForm._initSeparateForm(e[t])},_initSeparateForm:function(e){var t=$(e).find(".email-domain-form-email"),i=new RegExp($(e).find("#ff-email_regex").val(),""),n=new RegExp($(e).find("#email_regex_s").val(),""),r=$(e).find(".email-domain-form-submit"),o=$(t).attr("data-error-text"),a=$(t).attr("data-format-error-text"),s={email:{required:!0,feederEmailFormat:!0}},l={};l.email={required:o,feederEmailFormat:a},$.validator.addMethod("feederEmailFormat",function(e,t){return this.optional(t)||0===e.length||i.test(e)&&n.test(e)},""),$(e).validate({rules:s,messages:l,errorClass:"error-label",onfocusout:function(e){$(e).valid()},errorPlacement:function(e,t){e.attr("data-automation-id","error-label"),e.insertAfter(t)}}),$(r).click(function(t){t.preventDefault(),$(e).valid()&&window.EmailDomainForm.checkEmailDomain(e)}),$(e).on("submit",function(e){e.preventDefault(),$(r).click()})},checkEmailDomain:function(e){var t=$(e).find(".email-domain-form-email");$.ajax({url:"/solarapi/registration/iscompromiseddomain",type:"POST",async:!0,data:{email:$(t).val()},success:function(i){setRegistrationCookieForEmail($(t).val()),window.location.href=i?$(e).find("#compromisedUrl").val():$(e).find("#nonCompromisedUrl").val()},error:function(){console.log("IsCompromisedDomain method failed!")}})}},$(document).ready(function(){window.EmailDomainForm.Init()}),$(document).ready(function(){if($(".confirmation-hero").length){$(".confirmation-hero span.form-control.filter-title").click(function(){$(".confirmation-hero .options-panel-wrapper").css("display","block")}),$(".confirmation-hero .options-panel-wrapper .options-panel label").click(function(){$(".confirmation-hero .filter-title").addClass("selected"),$(".confirmation-hero .filter-title span").text($(this).text()),$(".confirmation-hero .options-panel-wrapper").hide(),$(".confirmation-hero .download-button").removeClass("inactive");var e=$(".confirmation-hero .download-button a");e.attr("href",$(this).attr("data-download-url")),e.attr("_target",$(this).attr("data-download-target")),e.attr("data-linkdetail",$(this).attr("data-linkdetail")),e.text($(this).attr("data-download-display-text"))}),$(document).mouseup(function(e){var t=$(".confirmation-hero .options-panel-wrapper");t.is(e.target)||0!==t.has(e.target).length||t.hide()})}}),$(document).ready(function(){$(".content-strip").length&&$(".content-strip-view-all-button").click(function(e){var t,i=$(this),n=$(i.parent().siblings(".content-strip-items")[0]),r=n.attr("data-show-all"),o=n.attr("data-default-shown-items");"false"==r?((t=n.children()).removeClass("content-strip-hidden"),t.removeClass("content-strip-shown-last"),t[t.length-1].classList.add("content-strip-shown-last"),i[0].innerText="-"+i[0].innerText.substr(1),n.attr("data-show-all",!0)):((t=n.children()).slice(o).addClass("content-strip-hidden"),t.removeClass("content-strip-shown-last"),t[o-1].classList.add("content-strip-shown-last"),i[0].innerText="+"+i[0].innerText.substr(1),n.attr("data-show-all",!1))})}),$(function(){if($(".grid")&&$(".grid").length>0){var e=$(".grid").masonry({itemSelector:".grid-item",columnWidth:250,fitWidth:!0,gutter:3,isResizeBound:!0});e.on("click",".grid-item-content",function(t){$(".grid-item").removeClass("active is-expanded").addClass("inactive"),$(".grid-item.inactive img.Outerlogo").show(),$(t.currentTarget).parent(".grid-item.inactive").addClass("active is-expanded").removeClass("inactive"),e.masonry(),$(".grid-item.is-expanded img.Outerlogo").hide()}),$(document).ready(function(){$(".grid-item-content").first().trigger("click")}),$(".grid-item.inactive").hover(function(){$(this).find("img.Outerlogo").addClass("animated bounce")},function(){$(this).find("img.Outerlogo").removeClass("animated bounce")}),$(".grid-item-content").click(function(){1!==$(this).parent().find(".headShot").length&&$(this).addClass("short")})}}),window.cvetEmail={cvetHeroEmailHref:$(".cvet-hero .cvet-hero-shadow .cvet-hero-links .email-link").attr("href"),htmlBreakline:"%0D%0A",amp:"%26",viewMoreText:"... "+$("#cvet-hero-view-more-email").val()+" "+window.location,hrefLimit:1400,addBreakline:function(e){var t=this.htmlBreakline;if(e>1){for(var i=0;i<e-1;i++)t+=this.htmlBreakline;return t}return t},getMainBodyDetails:function(){var e="",t=$(".cvet-email-body");if(t&&t.length>0)for(var i=0;i<t.length;i++)e+=t[i].innerText.replace(/\n/g,this.addBreakline(1))+this.addBreakline(2);return e},buildEmailBody:function(){var e=$(".cvet-hero .cvet-hero-headline").html();this.cvetHeroEmailHref+="&body="+e+this.addBreakline(2);var t=this.getMainBodyDetails().replace(/&/g,this.amp);if(t.length>this.hrefLimit){var i=t.substring(0,this.hrefLimit),n=i.lastIndexOf(".");this.cvetHeroEmailHref+=i.substring(0,n)+this.viewMoreText}else this.cvetHeroEmailHref+=t;$(".cvet-hero .cvet-hero-shadow .cvet-hero-links .email-link").attr("href",this.cvetHeroEmailHref)}},$(document).ready(function(){$(".cvet-hero .cvet-hero-shadow .cvet-hero-links .email-link")&&window.cvetEmail.buildEmailBody()}),$(document).ready(function(){function e(){var e=$(".detailed-tab .desktop .tab-panel").height();$(".detailed-tab .desktop .content-panel").css("min-height",e)}$(".detailed-tab").length&&($(".detailed-tab .desktop .tab-panel .nav-link").click(function(){$(".detailed-tab .desktop .tab-panel .nav-link").removeClass("active"),$(this).addClass("active")}),$(".detailed-tab .mobile .card-header").click(function(){$(this).find(".indicator").toggleClass("fa-minus")}),e(),$(window).resize(e()))}),$(document).ready(function(){var e=$("table.downloadbits-checksum-table tbody tr"),t={DESC:"desc",ASC:"asc"};function i(e,i){e.sort(function(e,n){return i===t.ASC?new Date(e.getElementsByTagName("td")[2].innerText)-new Date(n.getElementsByTagName("td")[2].innerText):new Date(n.getElementsByTagName("td")[2].innerText)-new Date(e.getElementsByTagName("td")[2].innerText)})}function n(){$("table.downloadbits-checksum-table tbody").empty(),$("table.downloadbits-checksum-table tbody").append(e)}$("table.downloadbits-checksum-table .glyphicon.glyphicon-triangle-top").on("click",function(r){i(e,t.ASC),n()}),$("table.downloadbits-checksum-table .glyphicon.glyphicon-triangle-bottom").on("click",function(r){i(e,t.DESC),n()})});var dynTrack={multiTrack:function(e,t,i){if(e&&t){e=e.replace(/ /g,"_"),t=t.replace(/ /g,"_");var n=$("#__trackingGroup_"+e);if(n.length){var r=n.children("#__trackingEl_"+t);r.length&&dynTrack.track(r.val(),i)}}else i&&dynTrack.track(null,i)},track:function(e,t){var i=t;e&&e.length?$.ajax({url:"/solarapi/personalization/dynamicpersonalization",type:"POST",dataType:"json",data:{itemId:e,url:window.document.URL},success:function(e){i&&(window.location.href=i)}}):i&&(window.location.href=i)},trackItem:function(e,t){var i=$("#"+e).attr("data-tracking-id");dynTrack.track(i,t)}};$(document).ready(function(){function e(){return $("#EuCookieBlock.alert").length&&$("#EuCookieBlock.alert").is(":visible")&&"fixed"===$("#EuCookieBlock.alert").css("position")}var t={elem:$(".event-tabs"),linkElements:[],posTop:void 0,height:void 0,links:void 0,stick:function(){$(window).width()>1024&&e()&&$(".inner.download").css("top",$("#EuCookieBlock.alert").outerHeight()+"px"),t.elem.addClass("sticky")},unstick:function(){t.elem.removeClass("sticky"),t.links.removeClass("active")},activateLink:function(e){var i=e;t.links.removeClass("active"),$(i).addClass("active")},clickHandler:function(){t.activateLink(this);var i=0;return $(window).width()>1024&&e()&&(i=$("#EuCookieBlock.alert").outerHeight()),$("html,body").animate({scrollTop:$(this.hash).next().offset().top-t.height-i},500),!1},resetHandler:function(){var i=$(window).scrollTop(),n=$(window).width()>1024&&e()?$("#EuCookieBlock.alert").outerHeight(!0):0;t.posTop=t.elem&&t.elem.offset()?t.elem.offset().top:0,i+n>=t.posTop?(t.stick(),$(".event-tabs .links a:eq(0)").removeClass("targetActive"),$(".event-tabs .hide-button .col-sm-12 .buttons").show(),$(".event-tabs .col-sm-12").addClass("animated fadeIn"),i+=t.height):i-n<=t.posTop&&(t.unstick(),$(".event-tabs .links a:eq(0)").addClass("targetActive"),$(".event-tabs .hide-button .col-sm-12 .buttons").hide()),$(t.linkElements).each(function(){this.top=this.elem.offset().top,this.bottom=this.elem.offset().top+this.elem.outerHeight(),i>=this.top-t.height&&i<=this.bottom+t.height?this.link.hasClass("active")||t.activateLink(this.link):this.link.removeClass("active")})},init:function(){t.height=t.elem.children(".inner").outerHeight(),t.links=t.elem.find("ul a"),t.elem.height(t.height),$(window).on("load",t.resetHandler),$(window).scroll(t.resetHandler),t.elem.length&&t.links.each(function(){var e=$(this),i=$(this.hash).next(),n=e.width()+3;n<200&&e.css("min-width",n),e.click(t.clickHandler),i.length&&t.linkElements.push({top:i.offset().top,bottom:i.offset().top+i.outerHeight(),link:e,elem:i})}),$(function(){$(".callToActionStrip input").focus(function(){$(this).prev(".callToActionStrip label.name").show()}).blur(function(){$(".callToActionStrip input").each(function(){0===$.trim($(this).val()).length?$(this).prev(".callToActionStrip label.name").hide():$(this).prev(".callToActionStrip label.name").show()})})}),$("#EuContinue").bind("click",function(){$(".inner.download").css("top",0)}),$(".events-expandible").on("click",function(){var e=$(this).attr("data-expanded"),t=$(this).text();t=t.substring(1,t.length);var i=$(this).closest(".container").find(".default-hidden");"true"===e?($(this).text("+ "+t),$(this).attr("data-expanded",!1),i.fadeOut(300)):($(this).text("- "+t),$(this).attr("data-expanded",!0),i.fadeIn(300))}),$(".mobile-category-icon").on("click",function(){var e=$(this).attr("data-expanded"),t=$(this).children(".fa"),i=$(this).closest(".container").find(".mobile-hidden"),n=$(this).closest(".container").find(".default-hidden");if("true"===e){t.removeClass("fa-minus-circle"),t.addClass("fa-plus-circle"),$(this).attr("data-expanded",!1);var r=$(this).closest(".container").find(".events-expandible");r.attr("data-expanded",!1);var o=r.text().substring(1,r.text().length);r.text("+"+o),i.fadeOut(300),n.fadeOut(300)}else t.removeClass("fa-plus-circle"),t.addClass("fa-minus-circle"),$(this).attr("data-expanded",!0),i.fadeIn(300)})}};$(t.init)});var heightControl={};function getCookie(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var r=i[n];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return decodedValue(r.substring(t.length,r.length))}return""}function getQueryParameter(e){for(var t=window.location.search.substring(1).split("&"),i=0;i<t.length;i++){var n=t[i].split("=");if(n[0]==e)return n[1]}return""}heightControl.debounce=function(e,t){var i=null;return function(){var n=this,r=arguments;clearTimeout(i),i=setTimeout(function(){e.apply(n,r)},t)}},heightControl.resize=function(){var e=document.querySelectorAll(".container--full-height");if(1===e.length){var t=0;document.querySelectorAll(".container--full-height-exclude").forEach(function(e){"none"!==e.style.display&&(t+=$(e).outerHeight(!0))}),e[0].style.minHeight=0!==t?"calc(100vh - "+t+"px)":"100vh"}},$(document).ready(function(){$(window).resize(heightControl.debounce(function(){heightControl.resize()},100)),$("#EuContinue").length>0&&$("#EuContinue").click(function(){heightControl.resize()}),heightControl.resize()});var irclickid=getQueryParameter("irclickid");if(""!==irclickid&&(irclickid=irclickid.slice(0,128),""===getCookie("sw_imp_irclickid"))){var d=new Date,expirationTimeInMinutes=30;d.setTime(d.getTime()+60*expirationTimeInMinutes*1e3);var expires=d.toUTCString();document.cookie="sw_imp_irclickid="+irclickid+";expires="+expires+";path=/;secure;"}!function(e){e().ready(function(){var t={config:{featuresCarousel:'<div class="features-carousel product-cards"></div>'},init:function(e){t.initializeSlick(e)},initializeSlick:function(t){e(".features-carousel-home").slick({dots:!0,speed:300,slidesToShow:4,slidesToScroll:1,infinite:!0,arrows:!0,rows:0,prevArrow:'<span class="left features-carousel-home-arrow" style=""><span data-linktype="Features Carousel" data-linkdetail="Feature Tab Built-in remote admin tools" class="fort fort-sw-hero-arrow-left"></span></span>',nextArrow:'<span class="right features-carousel-home-arrow" style=""><span data-linktype="Features Carousel" data-linkdetail="Feature Tab Built-in remote admin tools" class="fort fort-sw-hero-arrow-right"></span></span>',responsive:[{breakpoint:1075,settings:{slidesToShow:3,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:700,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}}]})}};e.prototype.slick&&e(".features-carousel-home").length>0&&t.init()})}(jQuery),function(e){function t(t){var i=e(t),n=i.parent().prev().prev();n.css("position","absolute").css("right","-1000px");var r,o=i.parent().prev();o.show(),o.val(n.text()),i.parent().next().show(),i.hide(),(r=e("a.install-help-btn")).on("click",function(e){e.preventDefault()}),r.css("cursor","default"),r.css("pointer-events","none"),r.css("opacity","0.5")}function i(t){var i=e(t),n=i.prev().prev();if(""===n.val())return!1;var r,o=i.prev().prev().prev();o.css("position","static"),n.hide(),o.text(n.val()),i.prev().find("a").show(),i.hide(),(r=e("a.install-help-btn")).off("click"),r.css("cursor","pointer"),r.css("pointer-events","auto"),r.css("opacity","1")}e("a.install-help-selections-edit").on("click",function(e){e.preventDefault(),t(e.currentTarget)}),e("a.install-help-btn-save").on("click",function(e){e.preventDefault(),i(e.currentTarget)})}(jQuery),$(document).ready(function(){function e(){$(".integration-card.thumbnail").each(function(){"null"!=$(this).find("img").attr("src")&&0!=$(this).find("img").length||($(this).find("img").hide(),$(this).wrapInner('<div style="display:table;height:100%;width:100%;" />'),$(this).find(".card-title").css({top:"0%","vertical-align":"middle",display:"table-cell"}))}),$(".integration-card.thumbnail").hover(function(){""==$(this).find("a.overlay").attr("href")||"null"==$(this).find("a.overlay").attr("href")?($(this).css("cursor","default"),$(this).find(".overlay").hide()):$(this).find(".overlay").show()})}var t=$(".integration-card");t.promise().done(function(){setTimeout(function(){e()},600)}),$("body").one("DOMSubtreeModified",".integration-cards-holder",function(){e()}),$(".integration-index .filters-section input").change(function(){this.checked,e()}),$("body, .form-control.filter-title").click(function(){t.promise().done(function(){setTimeout(function(){e()},10)})})});var LB={el:{lightboxName:"targetModalLightBox",targetClose:".lightBoxClose"},init:function(){LB.bindUIActions()},bindUIActions:function(){$(LB.el.targetClose).click(LB.closeLightbox);var e=document.getElementById("targetModalLightBox");window.onclick=function(t){t.target==e&&LB.closeLightbox()}},closeLightbox:function(){$("#"+LB.el.lightboxName).hide(),dynTrack.trackItem("lightBoxClose","")},clickLink:function(e,t){dynTrack.track(e,t)}};function defer(e){window.jQuery?e():setTimeout(function(){defer(e)},50)}$(document).ready(function(){if($("#targetModalLightBox").length){LB.init();var e=$("#targetModalLightBox").attr("data-delay");e?e*=1e3:e=0,setTimeout(function(){$("#targetModalLightBox").show()},e)}}),function(e){"use strict";window.Project={bindEvents:function(){},loadPlugins:function(){},initRegistrationClassInjection:function(){},initCarousels:function(){if(e(".fdi-Carousel .item").each(function(){var t=e(this).next();t.length||(t=e(this).siblings(":first"));var i,n=t.children(":first-child").clone();null!==n.children("img").attr("data-src")&&n.children("img").attr("src",n.children("img").attr("data-src")),n.appendTo(e(this)),null!==(i=t.next().length>0?t.next().children(":first-child").clone():e(this).siblings(":first").children(":first-child").clone()).children("img").attr("data-src")&&i.children("img").attr("src",i.children("img").attr("data-src")),i.appendTo(e(this))}),e.prototype.carousel){var t=e('[id*="-carousel"], [id$="-carousel"]');t.length>0&&(t.find(".item").removeClass("active"),t.each(function(t,i){e(i).find(".item").first().addClass("active")}),t.carousel()),e(".carousel").carousel({interval:0})}},initSlickCarousels:function(){e.prototype.slick&&e(".customer-reviews-carousel").length>0&&e(".customer-reviews-carousel").slick({slidesToShow:3,prevArrow:e(".left.carousel-control.reviews"),nextArrow:e(".right.carousel-control.reviews"),responsive:[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:996,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1,dots:!0,dotsClass:"nav-dots"}}]}),e(".slick-track .slick-slide").length<3&&e(".slick-track").css("margin","0 auto")},destroyCustomerReviewsCarousel:function(){e.prototype.slick&&e(".customer-reviews-carousel").slick("unslick")},initLightbox:function(){if(e.prototype.magnificPopup){var t={type:"image",gallery:{enabled:!0,arrowMarkup:'<a class="%dir% carousel-control modal hidden-xs"><img class="hidden-xs arrow mfp-prevent-close" src="/images/arrow.png" alt=""><img class="hidden-xs mfp-prevent-close" src="/images/circle.png" alt=""></a>'},image:{titleSrc:function(e){return e.el.attr("data-title")}},zoom:!1,closeMarkup:i},i='<button class="close-icon mfp-close"><div class="mfp-close">Close</div> <img class="mfp-close" src="/images/close_icon_new.png"></button>';e(".popup-image.hidden-md").length>0&&e(".popup-image.hidden-md").magnificPopup(t),e(".popup-image.hidden-lg").length>0&&e(".popup-image.hidden-lg").magnificPopup(t),e(".popup-video-youtube").length>0&&e(".popup-video-youtube").magnificPopup({disableOn:function(){return!(e(".gatedResource").length&&!window.submitted)},type:"iframe",removalDelay:160,preloader:!1,fixedContentPos:!1,iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-title hidden-xs">Some caption</div></div>',patterns:{youtube:{index:"youtube.com/",id:function(e){var t=e.match(/[\\?\\&]v=([^\\?\\&]+)/);return t&&t[1]?t[1]:null},src:"//www.youtube.com/embed/%id%?autoplay=1"}}},callbacks:{markupParse:function(e,t,i){t.title=i.el.attr("data-title")}},closeMarkup:i}),e(".popup-inline").length>0&&e(".popup-inline").magnificPopup({type:"inline",closeMarkup:i})}},init:function(){if(Project.bindEvents(),Project.loadPlugins(),Project.initCarousels(),Project.initSlickCarousels(),Project.initLightbox(),Project.initRegistrationClassInjection(),e(".popup-video-youtube").length>0){var t=document.createElement("script");t.id="iframe-demo",t.src="https://www.youtube.com/iframe_api";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)}}},e(function(){Project.init()})}(jQuery);var $modallightbox={},ModalLightbox={updateModal:function(e){$modallightbox.find(".overlay-title h4").html(e.title),void 0!==e.captionTitle?$modallightbox.find(".caption-content h3").html(e.captionTitle).show():$modallightbox.find(".caption-content h3").hide(),void 0!==e.captionDescription?$modallightbox.find(".caption-content p").html(e.captionDescription).show():$modallightbox.find(".caption-content p").hide(),void 0!==!e.captionTitle&&void 0!==!e.captionDescription&&$modallightbox.find(".caption-content").hide(),$modallightbox.find(".static-content .inner").html(e.content)},applyModal:function(e){if($(window).width()>768){if($("#modal_content_"+e.id).length){var t=$("#mobile_video_"+e.id).html();t=t.replace(/"/g,"&quot;"),$("#hidden_overlay_"+e.id).val(t),$("#mobile_video_"+e.id).html(""),$modallightbox.find(".video-content").html(e.content)}else{$modallightbox.find("#lightbox").html(e.content);var i=$("#lightbox > .carousel-inner");i.find(".item").removeClass("active"),i.find('.item > img[data-id="'+e.id+'"]').parent().addClass("active")}$modallightbox.fadeIn()}$modallightbox.find(".overlay-title").on("click",function(t){ModalLightbox.resetModal(e.id),t.preventDefault()}),$(".close").on("click",function(t){ModalLightbox.resetModal(e.id),t.preventDefault()}),$(document).keyup(function(t){27===t.keyCode&&this.resetModal(e.id)})},buildModalCarousel:function(){var e=$(".modal-overlay-carousel").not(".video"),t='<div class="carousel-inner">';return e.each(function(e,i){var n,r=$(i).attr("data-title"),o=($(i).attr("data-caption-title"),$(i).attr("data-caption-description"),$(i).attr("data-id"),'<img src="'+$(i).attr("data-fullsize-image")+'" alt="'+$(i).attr("data-caption-title")+'" class="img-responsive" data-id="'+$(i).attr("data-id")+'"/>');n=0===e?'<div class="item active">':'<div class="item">',n+='<div class="overlay-title">',n+="<h4>"+r+"</h4>",n+="</div>",n+=o,t+=n+="</div>"}),e.length>1&&(t+='</div><a class="left carousel-control modal hidden-xs" href="#lightbox" data-slide="prev"><img class="hidden-xs arrow" src="/images/arrow.png" alt=""><img class="hidden-xs" src="/images/circle.png" alt=""></a><a class="right carousel-control modal hidden-xs" href="#lightbox" data-slide="next"><img class="hidden-xs arrow" src="/images/arrow.png" alt=""><img class="hidden-xs" src="/images/circle.png" alt=""></a>'),t},buildVideoModal:function(e){var t=$("#modal_content_"+e.id).text(),i="";return i+="<div>",i+='<div class="overlay-title">',i+="<h4>"+e.title+"</h4>",i+="</div>",i+=t,i+="</div>"},enableScroll:function(){$("html, body").css("overflow","auto")},disableScroll:function(){$("hmtl, body").css("overflow","hidden")},initModal:function(e,t){t=void 0!==t?t:"static";var i={title:e.attr("data-title"),captionTitle:e.attr("data-caption-title"),captionDescription:e.attr("data-caption-description"),content:e.attr("data-fullsize-image"),type:t,id:e.attr("data-id")};$("#modal_content_"+i.id).length?i.content=ModalLightbox.buildVideoModal(i):i.content=ModalLightbox.buildModalCarousel(),"gallery"===i.type&&$modallightbox.is(":visible")&&ModalLightbox.updateModal(i),e.on("click",function(e){$(window).width()>768?(ModalLightbox.applyModal(i),e.preventDefault()):$(window).width()<768&&void 0===i.id&&(ModalLightbox.applyModal(i),e.preventDefault()),ModalLightbox.disableScroll()}),$(e).find("img").each(function(){this.complete?$(this).addClass("loaded"):$(this).on("load",function(){$(this).addClass("loaded")})}),$(e).find("img").length||$(e).addClass("no-image")},resetModal:function(e){$modallightbox.fadeOut(400,function(){$modallightbox.find("#lightbox").html(""),$modallightbox.find(".video-content").html("");var t=$("#hidden_overlay_"+e).val();t&&(t=t.replace("&quot;",/"/g),$("#hidden_overlay_"+e).val(""),$("#mobile_video_"+e).html(t))}),$(".modal-nav").fadeOut(),ModalLightbox.enableScroll()}};$(document).ready(function(){function e(){$modallightbox=$(".full-screen-overlay-carousel"),$(".modal-overlay-carousel").each(function(){ModalLightbox.initModal($(this))}),$modallightbox.on("click",function(e){$(e.target).hasClass("full-screen-overlay-carousel")&&(ModalLightbox.resetModal(),e.preventDefault())})}e(),$(window).resize(function(){e()})}),$(".navbar-nav > li.view-menu-toggle > a").each(function(){$(this).text().length>20&&$(".navbar-nav > li.view-menu-toggle > a").css({display:"block","border-left":"0"})}),window.outerWidth>767&&($(".navbar-nav:not(#government-nav)>li").hover(function(){$(this).toggleClass("open").siblings().removeClass("open")}),$(".navbar-nav :not(#government-nav) > li.menu-toggle > a").removeAttr("data-toggle")),$(".navbar-brandSites .menu-toggle ul.dropdown-menu.mega-menu").parent(".navbar-nav.brandSites > li").addClass("arrow");var prevWidth=window.innerWidth,isClickEventsAttached=!1;function initClickEvents(){$(".government-ultra #hamburgerButton").click(function(){$(".government-ultra #hamburgerButton").toggleClass("open"),setTimeout(function(){$(".government-ultra #hamburgerButton").hasClass("open")?($(".government-ultra .navbar-brand .mobile").hide(),$(".government-ultra .navbar-brand .flare").show(),$(".government-ultra #custom-menu").addClass("in"),$(".government-ultra #custom-menu").css("display","block"),$(".government-ultra .language-toggle").show(),$(".government-ultra #hamburgerButton").attr("data-linkdetail","close")):($(".government-ultra .navbar-brand .mobile").show(),$(".government-ultra .navbar-brand .flare").hide(),$(".government-ultra #custom-menu").css("display","none"),$(".government-ultra #custom-menu").removeClass("in"),$(".government-ultra .language-toggle").hide(),$(".government-ultra #hamburgerButton").attr("data-linkdetail","expand"))},50)}),$("#government-nav .menu-toggle.separator #view-all-section.view-all-section a").on("click",function(e){var t=$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a"),i=$("#government-nav .menu-toggle.separator.open li.not-visible");"false"===t.attr("aria-expanded")?(i.removeClass("hide-mobile"),t.attr("aria-expanded","true"),t.attr("data-linkdetail","collapse"),$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a span").text("- ")):(i.addClass("hide-mobile"),t.attr("aria-expanded","false"),t.attr("data-linkdetail","expand"),$("#government-nav .menu-toggle.separator.open #view-all-section.view-all-section a span").text("+ ")),e.stopImmediatePropagation()})}$(document).ready(function(){initClickEvents()});var NewsAndEvents={toggleEvents:!0,toggleNews:!0,toggleNewsArchive:!0,newsHeaderToggle:function(){$(".news-header .news-archive").on("click",function(e){e.preventDefault(),$(".government-news-events.archive.hide").removeClass("hide"),$(this).parents(".government-news-events.latest").addClass("hide")}),$(".news-header .news-latest").on("click",function(e){e.preventDefault(),$(this).parents(".government-news-events.archive").addClass("hide"),$(".government-news-events.latest").removeClass("hide")})},hideItems:function(e,t){void 0!==t&&null!==t&&""!==t&&(void 0===e||null===e||isNaN(parseInt(e,10))||$(t).each(function(t){t>e-1&&$(this).hide()}))},clickFunction:function(e){var t=e.data.itemSelector,i=e.data.moreText,n=e.data.lessText,r=e.data.flagName,o=e.data.itemsToShow,a=e.data.maxItemNumber;t&&i&&n&&r&&(e.preventDefault(),NewsAndEvents[r]?null!==a&&"0"!==a&&($(t).show(),$(this).text(n)):(NewsAndEvents.hideItems(o,t),$(this).text(i)),NewsAndEvents[r]=!NewsAndEvents[r])},init:function(){var e=$(".government-news-events.latest .news .show-more-events").attr("data-num-show"),t=$(".archive .news .show-more-events").attr("data-num-show"),i=$(".archive .news .show-more-events").attr("data-max-show"),n=$(".government-news-events .events .show-more-events").attr("data-num-show");"0"===i&&$(".archive .news .show-more-events").hide();var r=$(".government-news-events .news .show-more-events").attr("data-show-more-text"),o=$(".government-news-events .news .show-more-events").attr("data-show-less-text"),a=$(".government-news-events .events .show-more-events").attr("data-show-more-text"),s=$(".government-news-events .events .show-more-events").attr("data-show-less-text");NewsAndEvents.newsHeaderToggle(),NewsAndEvents.hideItems(e,".latest .news-item"),NewsAndEvents.hideItems(n,".event-item"),NewsAndEvents.hideItems(t,".archive .news-item"),$(".government-news-events.archive .news .show-more-events").on("click",{maxItemNumber:i,itemSelector:".archive .news-item",moreText:r,lessText:o,flagName:"toggleNewsArchive",itemsToShow:t},NewsAndEvents.clickFunction),$(".government-news-events.latest .news .show-more-events").on("click",{itemSelector:".latest .news-item",moreText:r,lessText:o,flagName:"toggleNews",itemsToShow:e},NewsAndEvents.clickFunction),$(".government-news-events .events .show-more-events").on("click",{itemSelector:".event-item",moreText:a,lessText:s,flagName:"toggleEvents",itemsToShow:n},NewsAndEvents.clickFunction)}};NewsAndEvents.init(),$(document).ready(function(){if($(".paid-support-card").length){var e=$(".paid-support-card").find(".tile"),t=0,i=0;$(e).each(function(){$(this).height()>t&&(t=$(this).height());var e=$(this).find(".links-section").height();e>i&&(i=e)}),t+=17+i,$(e).each(function(){$(this).height(t),$(this).find(".links-section").height(i)})}}),$(document).ready(function(){function e(e,t){e.textContent=t?e.textContent.split("||")[1]:e.textContent.split("||")[0]}if(null!==document.getElementById("postalytics-identifier")){var t=document.querySelector(".postalytics_personalization h1");null!==t&&function(t){var i,n=(i=new RegExp("_bn_d=([^;]+)"),null!=new RegExp("_bn_d=([^&#]*)","i").exec(window.location.href)||null!=i.exec(document.cookie));if(t.textContent.indexOf("||")>=0)if(null===t.firstElementChild||void 0===t.firstElementChild)e(t,n);else for(var r=t.firstElementChild;null!==r;r=r.nextElementSibling)void 0!=r&&r.textContent.indexOf("||")>=0&&e(r,n);t.style.visibility="visible"}(t)}}),$(document).ready(function(){if($(".post-registration-gac").length){var e=$(".post-registration-gac").attr("data-azure-call-attempts-count"),t=Number.parseInt(e,10);(isNaN(t)||0===t)&&(t=3),$(".post-registration-gac .loader").show();var i=getCookie("GACRequestID");setTimeout(function(){!function e(t,i,n){$.ajax({url:t,type:"POST",dataType:"json",data:{requestId:i},success:function(r){null==r||""===r?n>1?setTimeout(function(){e(t,i,n-1)},1e4):(console.log("Attempt count:"+n),$(".post-registration-gac #error").removeClass("hide")):1===r.Status?r.Error&&r.Error.length?r.Error.forEach(function(e){"email"===e.FieldName.toLowerCase()?$(".post-registration-gac #email-validation").removeClass("hide"):"company"===e.FieldName.toLowerCase()||"company_name"===e.FieldName.toLowerCase()?$(".post-registration-gac #company-validation").removeClass("hide"):$(".post-registration-gac #error").removeClass("hide")}):$(".post-registration-gac #error").removeClass("hide"):($(".post-registration-gac #success").removeClass("hide"),$(".post-registration-gac #token-section").removeClass("hide"),$(".post-registration-gac #copy-button").removeClass("hide"),$(".post-registration-gac #token-section #token").append(r.Token),r.GACType&&"prp"===r.GACType&&r.Token&&0===r.Token.indexOf("http")&&(window.location.href=r.Token)),$(".post-registration-gac .loader").hide()},error:function(){n>1?setTimeout(function(){e(t,i,n-1)},1e4):($(".post-registration-gac #error").removeClass("hide"),$(".post-registration-gac .loader").hide())}})}("/solarapi/gac/apiresult",i,t)},1e4)}$(".post-registration-gac #copy-button").click(function(){var e=$(".post-registration-gac #token-section #token"),t=document.createElement("textarea");t.value=e.text(),document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()})});var ComparePlans={plansTitlesOffset:0,currencyId:"1"};function productProblem(){$(function(){var e=[];$("#selectTwo").find("option").each(function(){e.push($(this))}),$("#selectOne").change(function(){var t=$(this).val(),i=$("#selectTwo");i.children("option:not(:first)").remove(),$.each(e,function(e,n){n.attr("data-group")!==t&&"SHOW"!==n.attr("data-group")||(i.append(n),$("select#selectTwo").removeAttr("disabled")),$(".options").hide(),$("#selectTwo option").show(),$("#selectTwo").val("0")}),0===$("select#selectOne").prop("selectedIndex")&&$("select#selectTwo").attr("disabled","disabled")}).change()}),$("#selectTwo").change(function(){$(this).find("option:selected").each(function(){var e=$(this).attr("value");e?($(".options").not("."+e).hide(),$("."+e).show()):$(".options").hide()})}).change();var e=function(){$("#selectOne option").removeAttr("selected"),$("#selectTwo option").removeAttr("selected"),$("#selectOne option:first").attr("selected","selected"),$("#selectTwo option:first").attr("selected","selected"),$("#selectOne").val("0"),$("#selectTwo").val("0"),$("#selectTwo").attr("disabled","disabled"),$(".options").hide();var e=$("#problemModal").attr("data-tracking-group");dynTrack.multiTrack(e,"Close Lightbox",""),$(document).idleTimer("destroy"),$("#problemModal").hide(),$(".adobeHelpBox").show()};$(".targetClose").click(function(){e()}),$("body").on("click",function(t){$(t.target).is("#problemModal")&&e()})}ComparePlans.initTooltip=function(){$('.compare-features [data-toggle="tooltip"]').length>0&&($('.compare-features [data-toggle="tooltip"]').tooltip({trigger:"hover",placement:function(){return $(window).width()<768?"bottom":"right"}}),$("body").on("click",function(e){void 0!==$(e.target).data("toggle")&&"tooltip"===$(e.target).data("toggle")||ComparePlans.hideTooltips()}))},ComparePlans.hideTooltips=function(){$('.compare-features [data-toggle="tooltip"]').length>0&&$('.compare-features [data-toggle="tooltip"]').tooltip("hide")},ComparePlans.setSameRowHeight=function(){var e=$(window).width()<768,t=$(".feature");t&&$.each(t,function(t,i){if(i)if(e)$(i).css("height","auto");else{var n=Math.round($(i).children(".title").height()+1);$(i).css("height",n)}})},ComparePlans.toggleFeatures=function(){if($(".compare-features")){$(".compare-features").slideToggle();var e=$(".toggle-features span");2===e.length&&$.each(e,function(e,t){t.classList.length>0&&t.classList.contains("hide")?$(t).removeClass("hide"):$(t).addClass("hide")}),ComparePlans.hideTooltips(),$(".plans-titles").removeClass("fixed-top")}},ComparePlans.alignTileHeight=function(){var e=0,t=0;$(".wrapper-dynamic-content").height("auto"),$(".tile .title").height("auto"),$(window).width()>=768&&($(".wrapper-dynamic-content").each(function(){e=e>$(this).height()?e:$(this).height()}),$(".wrapper-dynamic-content").each(function(){$(this).height(e)}),$(".tile .title").each(function(){t=t>$(this).height()?t:$(this).height()}),$(".tile .title").each(function(){$(this).height(t)}))},ComparePlans.updatePricings=function(e){var t=pricingDetails.currencyHtml;$(".compare-plans-body .tile").each(function(){var i=this.id,n=$(this).find(".regular-price"),r=$(this).find(".promo-text"),o=$(this).find(".discount-price"),a=$(this).find(".subprice-text"),s=$(this).find(".currency-symbol"),l=pricingDetails[i][e].Standard,c=pricingDetails[i][e].Discount,u=pricingDetails[i][e].RegularPriceText,d=pricingDetails[i][e].PromoText,h=pricingDetails[i][e].SubpriceText,p=pricingDetails[i].currencyHtml;0==c&&(c=l,l=0);var f=u+" "+(l?t+l:"");n.html(f),r.text(d),o.text(c),a.text(h),s.html(p)}),ComparePlans.alignTileHeight()},ComparePlans.setState=function(){$("#monthly-plan-type").is(":checked")?($(".monthly-label").addClass("bold"),$(".annual-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!0),ComparePlans.updatePricings("Monthly")):($(".annual-label").addClass("bold"),$(".monthly-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!1),ComparePlans.updatePricings("Annual"))},ComparePlans.initGeoPricing=function(){var e=allPricingDetails.filter(function(e){return e.CurrencyId==ComparePlans.currencyId});if(e.length>0)window.pricingDetails=e[0].Data;else{var t=allPricingDetails.filter(function(e){return 1==e.CurrencyId});t.length>0&&(window.pricingDetails=t[0].Data)}},ComparePlans.InitExpand=function(){$(".comparison-chart table.table.comparison-chart-table tr td:first-child i.fa.fa-plus.expand-icon, .comparison-chart table.table tr td i.fa.fa-minus.expand-icon").on("click",function(e){$(e.target).toggleClass("fa-plus").toggleClass("fa-minus");var t=$(e.target).closest("tr"),i=$(t).attr("data-main-feature");$('.comparison-chart table.table tr[data-main-feature="'+i+'"][data-main=False]').toggle(300),0===$(".comparison-chart table.table.comparison-chart-table tr td:first-child i.fa.fa-minus.expand-icon").length?($(".comparison-chart table.table.comparison-chart-table tr th:first-child span#features-toggle-expand").show(),$(".comparison-chart table.table.comparison-chart-table tr th:first-child span#features-toggle-collapse").hide()):($(".comparison-chart table.table.comparison-chart-table tr th:first-child span#features-toggle-expand").hide(),$(".comparison-chart table.table.comparison-chart-table tr th:first-child span#features-toggle-collapse").show())}),$(".comparison-chart table.table.comparison-chart-table tr th:first-child #features-toggle-collapse").on("click",function(e){var t=e.target.closest("span#features-toggle-collapse");$(t).hide(),$(".comparison-chart table.table.comparison-chart-table tr th:first-child span#features-toggle-expand").show(),$(".comparison-chart table.table tr[data-main=False]").hide(300),$(".comparison-chart table.table.comparison-chart-table tr td i.fa.expand-icon").removeClass("fa-minus").addClass("fa-plus")}),$(".comparison-chart table.table.comparison-chart-table tr th:first-child #features-toggle-expand").on("click",function(e){var t=e.target.closest("span#features-toggle-expand");$(t).hide(),$(".comparison-chart table.table.comparison-chart-table tr th:first-child span#features-toggle-collapse").show(),$(".comparison-chart table.table tr[data-main=False]").show(300),$(".comparison-chart table.table.comparison-chart-table tr td i.fa.expand-icon").removeClass("fa-plus").addClass("fa-minus")})},ComparePlans.InitComponent=function(){var e="/solarapi/pricing/getcurrencyidbyrequest",t=new URLSearchParams(window.location.search);t.has("ipmask")&&(e+="?ipmask="+t.get("ipmask")),$.get(e,function(e){e&&(ComparePlans.currencyId=e),ComparePlans.initGeoPricing(),ComparePlans.setSameRowHeight(),ComparePlans.initTooltip(),ComparePlans.alignTileHeight(),ComparePlans.setState(),$(".toggle-wrapper .license-switch").click(function(){console.log($(this)),!0===$(this).is(":checked")?(ComparePlans.updatePricings("Monthly"),$(".monthly-label").addClass("bold"),$(".annual-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!0)):(ComparePlans.updatePricings("Annual"),$(".annual-label").addClass("bold"),$(".monthly-label").removeClass("bold"),$(".toggle-wrapper .license-switch").prop("checked",!1))}),$("#compare-plans .toggle-features a.toggle-features-link").click(function(){ComparePlans.toggleFeatures(),ComparePlans.setSameRowHeight()}),$(window).resize(function(){ComparePlans.setSameRowHeight(),ComparePlans.alignTileHeight(),ComparePlans.hideTooltips()})})},$(document).ready(function(){$(".compare-plans-wrapper").is(":visible")&&(ComparePlans.InitComponent(),ComparePlans.InitExpand())}),$("#problemModal").length>0&&window.screen.width>=992&&($(".adobeHelpBox").hide(),sessionStorage.timeOut||$(document).ready(function(){$(document).on("idle.idleTimer",function(){$("#problemModal").show(),$(".adobeHelpBox").hide()});var e=$("#problemModal").data("idle-time");$(document).idleTimer(e),sessionStorage.timeOut=1}),$(productProblem),$("#problemModal").hide(),$("#problemModal").attr("style",""),$(".adobeHelpBox").show(),$(document).delegate(".openModal","click",function(e){e.preventDefault(),$("#problemModal").toggle(),$(".adobeHelpBox").hide()}),$(document).delegate(".helpBoxClose","click",function(){var e=$("#problemModal").attr("data-tracking-group");dynTrack.multiTrack(e,"Close Slider",""),$(".adobeHelpBox").hide(),$(document).idleTimer("destroy")})),$(document).ready(function(){if($("#__p2p-slider__")){var e=$("input[data-group]");e.each(function(t){var i=$(e[t]),n="#"+i.attr("data-link-id"),r=i.attr("data-group"),o=i.attr("data-id"),a=i.val();$(n).attr("href",a),$(n).click(function(e){e.preventDefault(),dynTrack.multiTrack(r,o,a)})})}}),$(document).ready(function(){$("#1.learnMore").click(function(){$("#1.seeMoreFeatures").slideToggle(),$("#1.seeFeatures").toggleClass("hide"),$("#1.lessFeatures").toggleClass("hide"),$("#1.btn.learnMore").toggleClass("hide")}),$("#2.learnMore").click(function(){$("#2.seeMoreFeatures").slideToggle(),$("#2.seeFeatures").toggleClass("hide"),$("#2.lessFeatures").toggleClass("hide"),$("#2.btn.learnMore").toggleClass("hide")})});var quickViewModal={trackingData:{},linkTypeButton:0,normalTypeButton:1,initializeButtons:function(){var e=$(".view-modal-button");quickViewModal.initializeGivenButtons(e)},initializeGivenButtons:function(e){e&&e.length>0&&e.each(function(){var e=$(this);e.click(function(){var t=e.data("product-id");if(quickViewModal.trackingData={ButtonHeaderDLT:e.data("dlt-headerbutton"),ButtonHeaderDLD:e.data("dld-headerbutton"),IntroLinkDLT:e.data("dlt-introlink"),IntroLinkDLD:e.data("dld-introlink"),VideoDLT:e.data("dlt-video"),VideoDLD:e.data("dld-video")},void 0!==t){var i=$("html").attr("data-link-language-name"),n=quickViewModal.getLanguagePrefix();$.ajax({url:n+"/solarapi/quickviewmodal/fetchproductdata",type:"GET",async:!0,dataType:"json",data:{productId:t,linkLanguageName:i},success:function(e){void 0!==e&&quickViewModal.initializeButtonPopup(e)}})}})})},getLanguagePrefix:function(){var e="",t=$("html").attr("lang");return t&&["de","ja","es","fr","zh","ko","pt"].indexOf(t)>=0&&(e="/"+t),e},initializeButtonPopup:function(e){var t=$(".quick-view-modal"),i=$(".quick-view-header"),n=$(".quick-view-media"),r=$(".left-section"),o=$(".right-section"),a=$(".external-integrations"),s=$(".fort.quick-view-fort-icon"),l=$(".product-name");if(i.removeClass().addClass(`quick-view-header ${e.StripColor}`),s.removeClass().addClass(`fort quick-view-fort-icon ${e.ProductIcon} ${e.StripColor?e.StripColor.substring(0,e.StripColor.indexOf("-")):""} product-icon`),l.html(`${e.ProductName}`),quickViewModal.generateButtonHtml(e.HeaderButton,quickViewModal.normalTypeButton,"quick-view-header-button",".quick-view-header-button.hidden-sm",".quick-view-header-button.hidden-lg"),$(".introduction-area p").html(`${e.IntroductionParagraph}`),e.IntroductionButton&&quickViewModal.generateButtonHtml(e.IntroductionButton,quickViewModal.linkTypeButton,"introduction-area-button",".introduction-area-button.hidden-sm",".introduction-area-button.hidden-lg"),quickViewModal.generateMediaHtml(e,n),!0===e.HideIntegrations?(a.css("display","none"),o.append(quickViewModal.generateBenefitsHtml(e.Benefits))):(a.css("display","block"),r.append(quickViewModal.generateBenefitsHtml(e.Benefits)),o.append(quickViewModal.generateExternalIntegrationsHtml(e.IntegrationImages,e.IntegrationsButton,e.IntegrationsTitle))),$.magnificPopup.open({items:{src:$(t)[0],type:"inline"}}),vidyardEmbed.api.renderDOMPlayers(),$(".quick-view-media .vidyard-player-container:first").css("display","none"),$(".quick-view-vidyard-image-button-container").length>0){var c=new Vidyard.player($(".quick-view-vidyard-image-video").attr("data-uuid"));$(".quick-view-vidyard-image-button-container").click(()=>{$(".quick-view-vidyard-image-button-container").css("display","none"),$(".quick-view-media .vidyard-player-container:first").css("display","block"),c.play()})}$(".view-modal-x-button").click(function(){$.magnificPopup.close()})},generateButtonHtml:function(e,t,i="",n,r){if(null==e)return"";void 0!=e.AdditionalCSSClasses?e.AdditionalCSSClasses+=i:e.AdditionalCSSClasses=i;var o=$(n),a=$(r);t===quickViewModal.linkTypeButton?(o.removeClass().addClass(`link ${e.Color} ${i} hidden-md hidden-sm hidden-xs`),o.text(`${e.Text}`),o.attr({href:`${e.Link}`,target:`${e.Target}`,"data-tracking-id":`${e.Id}`,"data-linktype":`${quickViewModal.trackingData.IntroLinkDLT?quickViewModal.trackingData.IntroLinkDLT:e.LinkType}`,"data-linkdetail":`${quickViewModal.trackingData.IntroLinkDLD?quickViewModal.trackingData.IntroLinkDLD:e.LinkDetail+" "+$(".product-name").text()}`,onclick:`${e.OnClickJavaScriptCode}`}),a.removeClass().addClass(`link ${e.Color} ${i} hidden-lg`),a.text(`${e.TextMobile}`),a.attr({href:`${e.LinkMobile}`,target:`${e.MobileTarget}`,"data-tracking-id":`${e.Id}`,"data-linktype":`${quickViewModal.trackingData.IntroLinkDLT?quickViewModal.trackingData.IntroLinkDLT:e.LinkTypeMobile}`,"data-linkdetail":`${quickViewModal.trackingData.IntroLinkDLD?quickViewModal.trackingData.IntroLinkDLD:e.LinkDetailMobile+" "+$(".product-name").text()}`,onclick:`${e.OnClickJavaScriptCode}`})):(e.Color=e.Color?e.Color+="-button":"",o.removeClass().addClass(`button ${e.Color} ${i} hidden-md hidden-sm hidden-xs`),o.text(`${e.Text}`),o.attr({href:`${e.Link}`,target:`${e.Target}`,"data-tracking-id":`${e.Id}`,"data-linktype":`${quickViewModal.trackingData.ButtonHeaderDLT?quickViewModal.trackingData.ButtonHeaderDLT:e.LinkType}`,"data-linkdetail":`${quickViewModal.trackingData.ButtonHeaderDLT?quickViewModal.trackingData.ButtonHeaderDLT:e.LinkDetail}`,onclick:`${e.OnClickJavaScriptCode}`}),a.removeClass().addClass(`button ${e.Color} ${i} hidden-lg`),a.text(`${e.TextMobile}`),a.attr({href:`${e.LinkMobile}`,target:`${e.MobileTarget}`,"data-tracking-id":`${e.Id}`,"data-linktype":`${quickViewModal.trackingData.ButtonHeaderDLT?quickViewModal.trackingData.ButtonHeaderDLT:e.LinkTypeMobile}`,"data-linkdetail":`${quickViewModal.trackingData.ButtonHeaderDLT?quickViewModal.trackingData.ButtonHeaderDLT:e.LinkDetailMobile}`,onclick:`${e.OnClickJavaScriptCode}`}))},generateBenefitsHtml:function(e){$(".benefit-statements").length>0&&$(".benefit-statements").remove();for(var t='<div class="benefit-statements">',i=0;i<e.length;i++)t+=`\n\t\t\t\t<div>\n\t\t\t\t\t<h4 class="paragraph-title">${e[i].Title}</h4>\n\t\t\t\t\t<p>${e[i].Content}</p>\n\t\t\t\t</div>`;for(;i<3;i++)t+="<div></div>";return t+"</div>"},generateExternalIntegrationsHtml:function(e,t,i){if(void 0===e&&0===e.length)return"";$(".title-integrations").html(i);var n="";e.forEach(e=>n+=`<img src=${e}/>`),$(".body-integrations").html(n),quickViewModal.generateButtonHtml(t,quickViewModal.linkTypeButton,"external-integration-button",".external-integration-button.hidden-sm",".external-integration-button.hidden-lg")},generateMediaHtml:function(e){if(null!=e.ImageSrc){var t=`<img src="${e.ImageSrc}" class="hidden-md hidden-sm hidden-xs"/>\n\t\t\t\t\t\t<img src="${e.ImageMobileSrc}" class="hidden-lg"/>`;$(".quick-view-vidyard-image").html(t)}else null!=e.VideoId&&($(".quick-view-vidyard-image").html(`<img style="width: 100%; height: 100%; margin: auto; display: none;" \n\t\t\tsrc="https://play.vidyard.com/${e.VideoId}.jpg" class="vidyard-player-embed" data-uuid="${e.VideoId}" data-v="4" data-type="inline"/>\n\t\t\t\t<div class="quick-view-vidyard-image-button-container vidyard-player-container">\n\t\t\t\t\t<img style="width: 100%; height: 100%; margin: auto; display: block;"\n\t\t\tsrc="https://play.vidyard.com/${e.VideoId}.jpg" class="quick-view-vidyard-image-video" data-uuid="${e.VideoId}" data-v="4" data-type="inline"/>\n\t\t\t\t\t<div type="button" role="button" class="play-button" title="Play video" data-version="1" tabindex="0" style="display: block; background-color: rgb(102, 102, 102);">\n\t\t\t\t\t\t<div class="play-button-size"></div>\n\t\t\t\t\t\t<div class="arrow-size">\n\t\t\t\t\t\t\t<div class="arrow-size-ratio"></div>\n\t\t\t\t\t\t\t<div class="arrow"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>`),$(".quick-view-vidyard-image").attr({"data-linktype":`${quickViewModal.trackingData.VideoDLT?quickViewModal.trackingData.VideoDLT:e.VideoLinkType}`,"data-linkdetail":`${quickViewModal.trackingData.VideoDLT?quickViewModal.trackingData.VideoDLT:e.VideoLinkDetail}`}))},initializeEmptyPopupWindow:function(){var e=$(".quick-view-modal");if(e.length>1)for(var t=1;t<e.length;t++)e[t].remove()}};$(document).ready(function(){($(".quick-view-product-cards").length>0||$(".product-index").length>0||$(".solution-overview-tabs-wrapper .solutions-tabs-content-wrapper .view-modal-button").length>0)&&(quickViewModal.initializeButtons(),quickViewModal.initializeEmptyPopupWindow())}),$(window).on("load",function(){$(".sg-question-number").length&&""===$(".sg-question-number").text()&&($("#quizContent").hide(),$("#quizReg").show())});var mobileResolution=767;$(window).on("resize",function(){var e=$(".upsell-product-module").find(".image-wrapper");if(e&&1===e.length)if(window.innerWidth<mobileResolution){var t=$(".upsell-product-module").find(".subhead");t&&1===t.length&&$(e).insertAfter($(t))}else{var i=$(".upsell-product-module").find(".cta");i&&1===i.length&&$(i).prepend(e)}}).resize(),$(document).ready(function(){var e="",t="";[{path:"/resources/case-study/",resourceType:"ResourceCaseStudy",cssClass:"resource-link"},{path:"/resources/datasheet/",resourceType:"ResourceDatasheet",cssClass:"resource-link"},{path:"/resources/infographic/",resourceType:"ResourceInfographic",cssClass:"resource-link"},{path:"/resources/tech-tip/",resourceType:"ResourceTechTip",cssClass:"resource-link"},{path:"/resources/vpat/",resourceType:"ResourceVpat",cssClass:"resource-link"},{path:"/resources/video/",resourceType:"ResourceVideo",cssClass:"popup-video"},{path:"/resources/webcast/",resourceType:"ResourceWebcast",cssClass:"popup-video"},{path:"/resources/whitepaper/",resourceType:"ResourceWhitepaper",cssClass:"resource-link"},{path:"/resources/ebook/",resourceType:"ResourceEbook",cssClass:"resource-link"}].forEach(function(i){window.location.href.indexOf(i.path)>-1&&(e=i.cssClass,t=i.resourceType)}),""!==e&&$("a."+e).click(function(){try{var e=getCookie("ResourceInformation"),i=new Map;if(e)for(var n=e.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");2===o.length&&i.set(o[0],o[1])}var a=$("#resourceProductName").val();if(""===a||"undefined"===a)return;a=a.replace("&","and"),i.set(t,a);var s="";i.forEach(function(e,t){""!==s&&(s+="&"),s+=t+"="+e}),setCookie("ResourceInformation",s)}catch(e){console.error("Resource",e.message)}})});var isReviewsLandingPage=-1!==window.location.pathname.indexOf("/reviews/"),experienceEditorPage=-1!==window.location.search.indexOf("sc_mode=edit");function addQueryStringFilter(e){e=e.replace(" ","%");var t,i=window.location.pathname,n=window.location.search;n.includes(e)||""===n?""===n&&window.history.pushState(null,e,i+"?"+e+"=true"):(t=i.concat(n,"&",e+"=true"),window.history.pushState(null,e,t))}function removeQueryStringFilter(e){e=e.replace(" ","%")+"=true";var t=window.location.pathname,i=window.location.search;i.includes("?"+e)&&(i=i.replace("?"+e,"")),i.includes("&"+e,"")&&(i=i.replace("&"+e,"")),window.history.pushState(null,e,t+i)}function clearQueryStringFilter(){window.history.pushState(null,null,window.location.pathname)}function selectedReviewItems(e){$('[data-testimonial="'+e+'"]').addClass("selectedReview").show()}function hideSourceReviews(e){var t='[data-testimonial="'+e+'"]';$(t).hide(),$(t).removeClass("selectedReview"),0===$(".review-item").filter(".selectedReview").length&&$(".review-item").show()}function sortTopRatedReviews(e){var t=e.sort(function(e,t){return parseInt($(t).data("rating"))-parseInt($(e).data("rating"))});$(".review-item").remove(),$(".review-item-container").append(t)}function sortByDate(e){var t=e.sort(function(e,t){return new Date($(t).data("date")||"January 1, 2001")-new Date($(e).data("date")||"January 1, 2001")});$(".review-item").remove(),$(".review-item-container").append(t)}$(".filterReviews a").on("click",function(){return!1}),$('.filterReviews input[type="checkbox"]').on("click",function(){var e=$(this).attr("data-sourceFilter");$(this).hasClass("selected")?($(this).removeClass("selected"),hideSourceReviews(e),removeQueryStringFilter(e)):($(this).addClass("selected"),selectedReviewItems(e),$(".review-item").not(".selectedReview").hide(),$(".review-item .selectedReview").show(),addQueryStringFilter(e))}),isReviewsLandingPage&&!experienceEditorPage&&$(window).on("beforeunload",clearQueryStringFilter()),$("a.removeFilters").on("click",function(e){e.preventDefault(),$(".review-item").show(),$('.filterReviews input[type="checkbox"]').prop("checked",!1),clearQueryStringFilter()}),$(".sortReviews li a").on("click",function(e){e.preventDefault(),"Top Rated"===$(this).data("sort")&&sortTopRatedReviews($(".review-item")),"Most Recent"===$(this).data("sort")&&sortByDate($(".review-item"))}),$("select.reviewFilter").change(function(){var e=$(this).find(":selected").data("sourcefilter");$(".review-item").removeClass("selectedReview"),$(this).addClass("selected"),selectedReviewItems(e),$(".review-item").not(".selectedReview").hide(),$(".review-item .selectedReview").show(),void 0===e&&$(".review-item").show()}),$("select.sortReviews").change(function(){"Top Rated"===$(this).find(":selected").data("sort")&&sortTopRatedReviews($(".review-item")),"Most Recent"===$(this).find(":selected").data("sort")&&sortByDate($(".review-item"))});var screenShotCarouselModule={init:function(){var e=$(".screenshot-carousel-module");if(e&&e.length>0){var t={};t.automaticScroll=e.data("automatic-scroll"),t.rotationSpeed=e.data("rotation-speed"),$.prototype.slick&&screenShotCarouselModule.initializeSlick(t),$.prototype.magnificPopup&&screenShotCarouselModule.initializePopups(t)}},initializeSlick:function(e){var t=$("#carousel-left-arrow-dlt").val(),i=$("#carousel-left-arrow-dld").val(),n=$("#carousel-right-arrow-dlt").val(),r=$("#carousel-right-arrow-dld").val();$(".screenshot-carousel-module > .features-carousel").slick({dots:!1,speed:300,autoplay:void 0!==e.automaticScroll&&"True"===e.automaticScroll,autoplaySpeed:void 0!==e.rotationSpeed?1e3*e.rotationSpeed:5e3,slidesToShow:1,centerMode:!0,variableWidth:!0,slidesToScroll:1,infinite:!0,arrows:!0,rows:0,prevArrow:'<span class="left features-carousel-arrow" style=""><span data-linktype="'+t+'" data-linkdetail="'+i+'" class="fa fa-angle-left"></span></span>',nextArrow:'<span class="right features-carousel-arrow" style=""><span data-linktype="'+n+'" data-linkdetail="'+r+'" class="fa fa-angle-right"></span></span>',responsive:[{breakpoint:768,settings:{dots:!0}}]})},initializePopups:function(e){$(".screenshot-carousel-popup-image").magnificPopup({type:"image",gallery:{enabled:!1},image:{titleSrc:function(e){return e.el.attr("data-title")}},zoom:!1,closeMarkup:'<button class="close-icon mfp-close"><div class="mfp-close">Close</div> <img class="mfp-close" src="/images/close_icon_new.png"></button>',callbacks:{open:function(){$(".screenshot-carousel-module > .features-carousel").slick("slickPause")},close:function(){void 0!==e.automaticScroll&&"True"===e.automaticScroll&&$(".screenshot-carousel-module > .features-carousel").slick("slickPlay")}}})},setSameTitleHeight:function(){if(!($(window).width()<768)){var e=$(".screenshot-carousel-module > .features-carousel .carousel-tile"),t=$(".screenshot-carousel-module > .features-carousel .carousel-tile").children(".tile-title").map(function(){return $(this).height()}).get(),i=Math.max.apply(null,t),n=$(".screenshot-carousel-module > .features-carousel .carousel-tile").children(".tile-subheader").map(function(){return $(this).height()}).get(),r=Math.max.apply(null,n);e&&$.each(e,function(e,t){t&&($(t).children(".tile-title").css("height",i),$(t).children(".tile-subheader").css("height",r),$(t).children(".tile-title").width()<600&&$(t).children(".tile-title").css("padding-top","33px"))})}}};function setBrandTextMaxWidth(e){if(e<50){var t=$(".secondary-nav-brand-name"),i=t.width()/2;t.css("max-width",i);var n=$(".cta-button-li"),r=$(".secondary-nav .main-nav-bar-item").last().prev();setBrandTextMaxWidth(n.offset().left-(r.offset().left+r.width()))}}$(document).ready(function(){screenShotCarouselModule.init(),screenShotCarouselModule.setSameTitleHeight()}),$(document).ready(function(){$("#input-hero-query").keypress(function(e){if(13===e.which)return $(".query-hero-submit").click(),!1}),$(".query-hero-submit").click(function(){var e=document.getElementById("input-hero-query").value,t="";return t=this.href.includes("#")?this.href+"q="+e:this.href+"?q="+e,"_blank"===this.target?window.open(t,"_blank"):window.location.href=t,!1})}),$(document).ready(function(){if($(".secondary-nav").length){$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").click(function(){"true"===$(this).attr("aria-expanded")?$(this).attr("data-linkdetail","collapse"):$(this).attr("data-linkdetail","expand")});var e=$(".cta-button-li"),t=$(".secondary-nav .main-nav-bar-item").last().prev();if($(window).width()>=1200&&e.length&&t.length)setBrandTextMaxWidth(e.offset().left-(t.offset().left+t.width()));var i={wrapper:$(".secondary-nav-wrapper"),elem:void 0,posTop:void 0,height:void 0,reinitVisibleElement:function(){$(".secondary-nav-wrapper .secondary-nav-desktop").is(":visible")?i.elem=$(".secondary-nav-wrapper .secondary-nav-desktop"):$(".secondary-nav-wrapper .secondary-nav-mobile").is(":visible")&&(i.elem=$(".secondary-nav-wrapper .secondary-nav-mobile")),i.height=i.elem.height()},stick:function(){$(window).width()>=1200&&i.elem.css("position","fixed"),i.elem.addClass("sticked"),i.collapseMobileSubmenu()},unstick:function(){$(window).width()>=1200&&i.elem.css("position","relative"),i.elem.removeClass("sticked"),i.collapseMobileSubmenu()},collapseMobileSubmenu:function(){$(".secondary-nav-wrapper .secondary-nav-mobile").is(":visible")&&$(".secondary-nav-wrapper .secondary-nav-mobile").hasClass("sticked")&&("true"===$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").attr("aria-expanded")&&$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").click())},resetHandler:function(){var e=$("#custom-search-input .predictive-desktop-search");e.length>0&&"none"!==e.css("display")&&(e.hide(),$(document).click());var t=$(".integrations-filter .form-group .options-panel-wrapper");$(".integrations-filter .form-group").length>0&&"none"!==t.css("display")&&(t.hide(),$(".integrations-filter .form-group .form-control").click()),i.reinitVisibleElement();var n=$(window).scrollTop();i.posTop=i.wrapper&&i.wrapper.offset()?i.wrapper.offset().top:0;var r=$(".secondary-nav .secondary-nav-mobile .secondary-nav-toggle").attr("aria-expanded"),o=$(window).width(),a=$(".stickySubNav");o>=768&&"0px"!==a.css("height")&&a.length&&a.offset().top<n||(n>=i.posTop&&"true"!==r?i.stick():n<=i.posTop&&i.unstick())},stickyNavHandler:function(){var e,t=$(window).width();if(t>=768)if((e=t<1200?$(".secondary-nav-mobile"):$(".secondary-nav-desktop")).hasClass("sticked")){var i=$(".stickySubNav").offset().top-e.height();$(window).scrollTop()>i?(e.css("position","absolute"),e.offset({top:i})):(e.css("position","fixed"),e.css("top",0))}else e.css("position","relative")},init:function(){i.reinitVisibleElement(),$(window).on("load",i.resetHandler),$(window).resize(i.resetHandler),$(window).scroll(i.resetHandler),$(".stickySubNav").length&&$(window).scroll(i.stickyNavHandler)}};i.init(),$(".secondary-nav a.empty").removeAttr("href")}});var simpleFAQModule={showMoreFunction:function(e){var t=e.data.faqItems,i=e.data.showLessButton;t&&i&&($(t).show(),$(i).show(),$(this).hide())},showLessFunction:function(e){var t=e.data.faqItems,i=e.data.showMoreButton,n=3,r=parseInt($(this).data("max-visible"));isNaN(r)||(n=r),t&&i&&($(t).slice(n,t.lenght).hide(),$(i).show(),$(this).hide())},init:function(){$(".simple-faq").each(function(){var e=$(this).find(".faq-items .faq-item"),t=$(this).find("a.faq-button-more"),i=$(this).find("a.faq-button-less");$(t).on("click",{faqItems:e,showLessButton:i},simpleFAQModule.showMoreFunction),$(i).on("click",{faqItems:e,showMoreButton:t},simpleFAQModule.showLessFunction)})}};function handleAnchorWithStickyNav(e,t){e.href.indexOf(window.location.href)>-1&&e.href.indexOf("#")>-1&&$(e).click(function(){return $("html,body").animate({scrollTop:$(e.hash).next().offset().top-t},500),!1})}function getOffsetTop(e){return e.getBoundingClientRect().top+window.scrollY}function playVidyard(e){if(e){var t=VidyardV4.api.getPlayersByUUID(e);t.length>0&&t[0].showLightbox()}}function launchLightbox(e){e&&($("#vyLightbox").length<=0&&$("body").append('<div id="vyLightbox"></div>'),$("#vyLightbox").html('<img class="vidyard-player-embed" src="https://play.vidyard.com/'+e+'.jpg" data-uuid="'+e+'"; data-v="4" data-type="lightbox" />'),vidyardEmbed.api.renderDOMPlayers(document.getElementById("vyLightbox")),playVidyard(e))}$(document).ready(function(){simpleFAQModule.init()}),$(document).ready(function(){window.spyCloudShortForm={regFormEl:$("#spyCloudShortForm"),regFormSubmitEl:$("#short-form-submit"),statesError:!1,validateRules:{},validateMessages:{},emailEl:$("#ci_email"),emailRegex:new RegExp($("#email_regex").val(),""),emailRegexS:new RegExp($("#email_regex_s").val(),"")},$(".spy-cloud-short-form ").length&&(spyCloudShortForm.validateRules.email={required:!0,emailStrict:!0},spyCloudShortForm.validateMessages.email={required:spyCloudShortForm.emailEl.attr("data-error-text"),emailStrict:spyCloudShortForm.emailEl.attr("data-format-error-text")},$.validator.addMethod("emailStrict",function(e,t){return this.optional(t)||0===e.length||spyCloudShortForm.emailRegex.test(e)&&spyCloudShortForm.emailRegexS.test(e)},""),spyCloudShortForm.regFormEl.validate({rules:spyCloudShortForm.validateRules,messages:spyCloudShortForm.validateMessages,errorClass:"error-label",onfocusout:function(e){$(e).valid()},errorPlacement:function(e,t){e.attr("data-automation-id","error-label"),e.insertAfter(t)}}),spyCloudShortForm.regFormSubmitEl.click(function(e){e.preventDefault(),spyCloudShortForm.regFormEl.valid()&&$.ajax({url:"/solarapi/spycloud/submitshortform",type:"POST",dataType:"json",data:{email:spyCloudShortForm.emailEl.val()},success:function(e){e.Success?window.location.href=spyCloudShortForm.regFormSubmitEl.data("redirect-to"):console.log(e.ErrorMessage)},error:function(){console.log("Spy cloud short form submit failed")}})}),spyCloudShortForm.emailEl.on("keyup",function(e){13===e.keyCode&&(e.preventDefault(),spyCloudShortForm.regFormSubmitEl.click())}),spyCloudShortForm.regFormEl.on("submit",function(e){e.preventDefault(),spyCloudShortForm.regFormSubmitEl.click()}))}),$(document).ready(function(){if($(".producthero--subsection-header .start-at__link").length||$(".generic-hero .generic-hero__title-link").length){var e=0,t=0,i=0,n=0;$(".stickySubNav").length&&window.outerWidth>=768&&(e=$(".stickySubNav")[0].offsetHeight,t+=getOffsetTop($(".stickySubNav")[0])),$(".slimStickyNav").length&&window.outerWidth>=768&&(i=$(".slimStickyNav")[0].offsetHeight,n+=getOffsetTop($(".slimStickyNav")[0])),$(".producthero--subsection-header .start-at__link").length&&$(".producthero--subsection-header .start-at__link").each(function(){getOffsetTop($(this.hash)[0])<t&&(e=0),getOffsetTop($(this.hash)[0])<n&&(i=0),handleAnchorWithStickyNav(this,e+i)}),$(".generic-hero .generic-hero__title-link").length&&$(".generic-hero .generic-hero__title-link").each(function(){getOffsetTop($(this.hash)[0])<t&&(e=0),getOffsetTop($(this.hash)[0])<n&&(i=0),handleAnchorWithStickyNav(this,e+i)})}}),function(e){function t(){e(".system-requirements .requirements .requirement-text").each(function(t,i){(function(e){var t=e.style.overflow;t&&"visible"!==t||(e.style.overflow="hidden");var i=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight;return e.style.overflow=t,i})(i)&&e(i).find("p").css("font-size","10px")})}t(),e(window).resize(function(){t()})}(jQuery),$(document).ready(function(){$(".tab-component .leftTabItem").hover(function(){if(!$(this).hasClass("active")){var e=$(this).attr("id"),t=$(".leftTabItem.active").attr("id");$("#"+e+".rightTabItemContent").removeClass("hide"),$("#"+t+".rightTabItemContent").addClass("hide"),$(".leftTabItem.active").removeClass("active"),$(this).toggleClass("active")}}),$("#TabItem-0.leftTabItem p").each(function(){var e=$(this),t=$.trim(e.text()).length;t>20&&(e.addClass("longText"),$(".blueBorder").css("height","95.2%")),t>19&&e.addClass("mediumText")}),$("#TabItem-1.leftTabItem p").each(function(){var e=$(this),t=$.trim(e.text()).length;t>20&&(e.addClass("longText"),$(".blueBorder").css("height","95.2%")),t>19&&e.addClass("mediumText")}),$("#TabItem-2.leftTabItem p").each(function(){var e=$(this),t=$.trim(e.text()).length;t>20&&(e.addClass("longText"),$(".blueBorder").css("height","95.2%")),t>19&&e.addClass("mediumText")}),$("#TabItem-3.leftTabItem p").each(function(){var e=$(this),t=$.trim(e.text()).length;t>20&&(e.addClass("longText"),$(".blueBorder").css("height","95.2%")),t>19&&e.addClass("mediumText")})}),$(document).ready(function(){var e=!1;a(),$(".gatedRegForm")&&$(".gatedRegForm").css("z-index","1000"),$(".network-assesment-modal.open")&&$(".network-assesment-modal").css("z-index","1000"),$(".outerTabs ul li a.hasTab").on("click",function(e){var t=$(this).parent(),i=$(t).parent(),n=$(i).parent().parent().parent(),r=$(this).attr("href");$(i).find("li").removeClass("active"),$(t).addClass("active"),$(n).find(".dropdownMenu div.tabWrapper").hide(),$(r).show()});var t=$(".navbarUltra-nav>li.menu-with-panel .dropdown-menu .outerTabs > ul > li.nav-bottom-bar").height();if($(".navbarUltra-nav>li.menu-with-panel .dropdown-menu .outerTabs > ul").css("padding-bottom",t),$(".navbarUltra-nav>li.menu-with-panel ").on("show.bs.dropdown",function(){e=!1,0===$("#navOverlay").length&&$("body").append('<div id="navOverlay"></div>');var t=$(document).height();$("#navOverlay").height(t);var i=$(this).parent();$(i).find(".outerTabs ul li.active").length<1&&a(i)}),$(".navbarUltra-nav>li.menu-with-panel").on("hide.bs.dropdown",function(){e=!0,setTimeout(function(){e&&$("#navOverlay").remove()},10)}),$("select").on("blur",function(e){e.stopImmediatePropagation()}),$(".navbarUltra.ultraMenu .outerTabs ul li a.hasTab").click(function(){return!1}),$("button.navbar-toggle").click(function(){$(this).toggleClass("open")}),$("#searchform-input").length>0&&0===$("#search-module-navbar-flyout").length){var i={EnterKey:13},n=$(".navbarUltra-default .navbar-collapse.ultra.collapse .right-block .searchform-wrapper"),r=$(".navbarUltra-default .navbar-collapse.ultra.collapse .right-block .navbarUltra-nav>li"),o=$("#top-nav-open-search");o.click(function(e){var t=document.getElementById("searchform-input");t.value="",setTimeout(function(){t.focus()},1100),o.hide(),n.toggleClass("active"),r.removeClass("is-closed"),r.toggleClass("hidden-menu-item"),e.preventDefault()}),$("#searchform-reset").click(function(e){n.toggleClass("active"),o.show(),r.toggleClass("hidden-menu-item"),r.toggleClass("is-closed"),e.preventDefault()}),$("#searchform-input").keypress(function(e){if(e.which===i.EnterKey)return $("#searchform-submit").click(),!1}),$("#searchform-submit").click(function(){return window.location.href=$(this).data("search-url")+document.getElementById("searchform-input").value,!1}),window.onclick=function(e){$(e.target).closest(".right-block").length<1&&$("#searchform-reset").is(":visible")&&$("#searchform-reset").click()}}function a(e){$(".tabs div.tabWrapper").hide(),$(".tabs div.tabWrapper:first-child").show(),$(".outerTabs ul li",e).removeClass("active"),$(".outerTabs ul li:first-child",e).addClass("active")}}),$(window).on("load",function(){null!==document.querySelector(".popup-video.vidyard")&&(null===document.querySelector(".vidyard-player-container")&&document.querySelectorAll(".producthero--heroimage.vidyard-player-embed").forEach(function(e){e.setAttribute("src",e.getAttribute("product-image")),e.setAttribute("style","display: block !important")}))}),function(){return function e(t,i,n){function r(a,s){if(!i[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[a]={exports:{}};t[a][0].call(u.exports,function(e){return r(t[a][1][e]||e)},u,u.exports,e,t,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}}()({1:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.BlockFreeEmailsRequest=t}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{}],2:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.eligible=!1}}();i.EligibleResponse=n},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.url=null}}();i.InstallerResponse=n},{}],4:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.IpLocationDataRequest=t}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{}],5:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.countryName=void 0,this.isoCountryCode=void 0}return n([t("countryName"),r("design:type",String)],e.prototype,"countryName",void 0),n([t("isoCountryCode"),r("design:type",String)],e.prototype,"isoCountryCode",void 0),e}();e.IpLocationDataResponse=i}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../../Helpers/_MapHelper":30}],6:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.IsFreeEmailRequest=t}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{}],7:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.PricingProductRequest=t}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{}],8:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.skuPricing=void 0}return n([t("skuPricing"),r("design:type",Array)],e.prototype,"skuPricing",void 0),e}();e.PricingProductResponse=i;var a=function(){function e(){this.amount=void 0,this.currencySign=void 0,this.pricingString=void 0,this.sku=void 0}return n([t("amount"),r("design:type",Number)],e.prototype,"amount",void 0),n([t("currencySign"),r("design:type",String)],e.prototype,"currencySign",void 0),n([t("pricingString"),r("design:type",String)],e.prototype,"pricingString",void 0),n([t("sku"),r("design:type",String)],e.prototype,"sku",void 0),e}();e.SkuPricing=a}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../../Helpers/_MapHelper":30}],9:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.domain=null,this.email=null}}();i.ProspectDataResponse=n},{}],10:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){return function(){this.value=null}}();i.ValueResponse=n},{}],11:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("./Models/_PricingProductResponse"),a=e("./Models/_IpLocationDataRequest"),s=e("./Models/_IpLocationDataResponse"),l=e("./Models/_ProspectDataResponse"),c=e("../Helpers/_MapHelper"),u=e("../Helpers/_IPAddressHelper"),d=e("../Caching/_SessionCache"),h=e("../Helpers/_AjaxHelper"),p=e("./Models/_InstallerResponse"),f=e("./Models/_ValueResponse"),g=e("./Models/_EligibleResponse");!function(e){var t=o.AzureFunctionAPI.PricingProductResponse,i=a.AzureFunctionAPI.IpLocationDataRequest,v=s.AzureFunctionAPI.IpLocationDataResponse,m=c.Helpers.MapHelper,y=u.Helpers.IPAddressHelper,b=d.Caching.SessionCache,w=h.Helpers.AjaxHelper,C=function(){function e(){this.ajaxUrl=window.AzureFunctionsHost,this.ajaxUrl&&0!==this.ajaxUrl.length||(this.ajaxUrl="https://api-mktdev.solarwinds.com"),this.getPricingUrl=this.ajaxUrl+"/api/getpricing",this.getIpLocationDataURL=this.ajaxUrl+"/api/getiplocationdata",this.emailIsFreeURL=this.ajaxUrl+"/api/emailisfree",this.ipAddress=y.IPAddress(),this.cache=new b}return e.prototype.decryptString=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,this.callAzureFunction(this.ajaxUrl+"/api/decryptstring",{value:e},f.ValueResponse,!1)];case 1:return[2,t.sent().value]}})})},e.prototype.getInstallerUrl=function(e,t,i,o){return n(this,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return n={dluid:e,isEval:t,packageId:i,packageFileName:o},[4,this.callAzureFunction(this.ajaxUrl+"/api/getinstallerurl",n,p.InstallerResponse,!1)];case 1:return[2,r.sent().url]}})})},e.prototype.getProductPricing=function(e){return n(this,void 0,void 0,function(){return r(this,function(i){return e.ipAddress=this.ipAddress,[2,this.callAzureFunction(this.getPricingUrl,e,t)]})})},e.prototype.getProspectData=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,this.callAzureFunction(this.ajaxUrl+"/api/getprospectdata",{email:e},l.ProspectDataResponse)]})})},e.prototype.getIpLocationData=function(){return n(this,void 0,void 0,function(){var e;return r(this,function(t){return(e=new i).ipAddress=this.ipAddress,[2,this.callAzureFunction(this.getIpLocationDataURL,e,v)]})})},e.prototype.emailIsFree=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,this.callAzureFunction(this.emailIsFreeURL,e)]})})},e.prototype.blockFreeEmails=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return e.ipAddress=this.ipAddress,[2,this.callAzureFunction(this.ajaxUrl+"/api/blockfreeemails",e)]})})},e.prototype.isDownloadEligible=function(e,t){return n(this,void 0,void 0,function(){var i;return r(this,function(n){switch(n.label){case 0:return i={registration:e,dluid:t},[4,this.callAzureFunction(this.ajaxUrl+"/api/isdownloadeligible",i,g.EligibleResponse,!1)];case 1:return[2,n.sent().eligible]}})})},e.prototype.callAzureFunction=function(e,t,i,o){return void 0===o&&(o=!0),n(this,void 0,void 0,function(){var n,a=this;return r(this,function(r){return n=w.getAPIMethodNameFromURL(e)+JSON.stringify(t),[2,new Promise(function(r,s){if(o){var l=a.cache.getCachedResponse(n,i);if(null!==l)return void r(l)}var c={contentType:"application/json",method:"POST",dataType:"json"},u=JSON.stringify(t);c.data=u,$.ajax(e,c).done(function(e){var t=i?m.deserialize(i,e):e;o&&a.cache.updateCachedValue(n,JSON.stringify(t)),r(t)}).fail(function(e,t){var i="Request failed. Returned status of "+e.status;0!==e.status&&TrackJS.track(i),s(i)})})]})})},e}();e.AzureFunction=C}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../Caching/_SessionCache":13,"../Helpers/_AjaxHelper":25,"../Helpers/_IPAddressHelper":28,"../Helpers/_MapHelper":30,"./Models/_EligibleResponse":2,"./Models/_InstallerResponse":3,"./Models/_IpLocationDataRequest":4,"./Models/_IpLocationDataResponse":5,"./Models/_PricingProductResponse":8,"./Models/_ProspectDataResponse":9,"./Models/_ValueResponse":10}],12:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../AzureFunctionAPI/_AzureFunction");!function(e){var t=o.AzureFunctionAPI.AzureFunction,i=function(){function e(){var e=this;this.azureFunction=new t,this.buyNow=$(".buy-now"),0!==this.buyNow.length&&this.azureFunction.getIpLocationData().then(function(t){return e.addCountryCode(t.isoCountryCode)})}return e.prototype.addCountryCode=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return $(".buy-now").append('<input type="hidden" id="country-code" name="country" value="'+e+'" />'),[2]})})},e}();e.BuyNowController=i}(i.BuyNow||(i.BuyNow={}))},{"../AzureFunctionAPI/_AzureFunction":11}],13:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Helpers/_MapHelper");!function(e){var t=n.Helpers.MapHelper,i=function(){function e(){}return e.prototype.updateCachedValue=function(e,t){if(window.sessionStorage&&t)try{window.sessionStorage.setItem(e,t)}catch(e){TrackJS.track(e)}},e.prototype.getCachedValue=function(e){if(window.sessionStorage)try{var t=window.sessionStorage.getItem(e);if(t&&t.length>0)return t}catch(e){TrackJS.track(e)}return null},e.prototype.getCachedResponse=function(e,t){var i=this.getCachedValue(e);if(null!=i)try{var n=this.deserializeResponse(i,t);if(null!=n)return n;console.warn("Warning: There was an error deserializing Azure function response from sessionStorage.")}catch(e){console.warn("Warning: There was an error deserializing Azure function response from sessionStorage. Data: "+e)}return null},e.prototype.deserializeResponse=function(e,i){var n;try{n=JSON.parse(e)}catch(t){n=e}return i?t.deserialize(i,n):n},e}();e.SessionCache=i}(i.Caching||(i.Caching={}))},{"../Helpers/_MapHelper":30}],14:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){this.clock=e,this.isCountingUp=!1,this.value=0}return Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCountingUp",{get:function(){return this.up},set:function(e){this.up=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return $(".text-big",this.clock).text()},set:function(e){$(".text-big",this.clock).html(e)},enumerable:!0,configurable:!0}),e.prototype.animate=function(e,t,i){$(".clock-solid",this.clock).animate({"stroke-dashoffset":this.valueToOffset(e)},t,"linear",i)},e.prototype.update=function(){$(".clock-solid",this.clock).css("stroke-dashoffset",this.valueToOffset(this.val))},e.prototype.valueToOffset=function(t){var i=2*e.R*Math.PI;return(this.up?-1:1)*i*(1-t)},e.R=47.5,e}();e.ClockFace=t}(i.CountdownClock||(i.CountdownClock={}))},{}],15:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_ClockFace");!function(e){var t=n.CountdownClock.ClockFace,i=function(){function e(){this.container=$(".countdown-clock .clock-container"),this.container.length&&(this.date=new Date(this.container.data("date")+"Z"),this.daysClock=new t($(".clock.days",this.container)),this.hoursClock=new t($(".clock.hours",this.container)),this.minutesClock=new t($(".clock.minutes",this.container)),this.initColors(),this.update())}return e.prototype.initColors=function(){var e=$(".clock-dashed"),t=$(".clock-solid"),i=$(".text-big"),n=$(".text-small");e.css("stroke",e.css("color")),t.css("stroke",t.css("color")),i.css("fill",i.css("color")),n.css("fill",n.css("color"))},e.prototype.update=function(){var e=this,t=this.date.getTime()-Date.now();if(t<0)this.updateClocks(0,0,0,0);else{var i=t/864e5,n=t%864e5/36e5,r=t%36e5/6e4,o=t%6e4/1e3;this.updateClocks(i,n,r,o);var a=Math.min(o,5);this.minutesClock.animate((o-a)/60,1e3*a,function(){return e.update()})}},e.prototype.updateClocks=function(e,t,i,n){this.daysClock.text=Math.floor(e).toString(),this.hoursClock.text=Math.floor(t).toString(),this.minutesClock.text=Math.floor(i).toString(),this.daysClock.value=t/24,this.hoursClock.value=i/60,this.minutesClock.value=n/60},e}();e.IndexPageController=i}(i.CountdownClock||(i.CountdownClock={}))},{"./_ClockFace":14}],16:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../IpGeoAPI/_IpGeo"),r=e("../Helpers/_CookieHelper");!function(e){var t=n.IpGeoAPI.IpGeo,i=r.CookieHelper,o=function(){function e(){var e=this;this.ipGeo=new t;var i=$("#EuCookieBlock");i.length&&this.ipGeo.isGdprApplicable().then(function(t){return e.initialize(i,t)}).catch(function(e){return TrackJS.track(e)})}return e.prototype.initialize=function(e,t){var n=i.getCookie("EuCookieCompliance");t&&"accepted"!==n?(e.removeClass("hidden"),$("#EuContinue",e).click(function(t){return t.preventDefault(),document.cookie="EuCookieCompliance=accepted; path=/",e.hide(),e.removeClass("features-array-redirect-adjust-cookie"),!1})):e.remove()},e}();e.IndexPageController=o}(i.EuCookieCompliance||(i.EuCookieCompliance={}))},{"../Helpers/_CookieHelper":26,"../IpGeoAPI/_IpGeo":47}],17:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){!function(e){e[e.Category=0]="Category",e[e.Topic=1]="Topic",e[e.LocationRegion=2]="LocationRegion",e[e.LocationSubRegion=3]="LocationSubRegion",e[e.LocationCountry=4]="LocationCountry",e[e.Type=5]="Type",e[e.Format=6]="Format",e[e.Presenter=7]="Presenter"}(e.FilterType||(e.FilterType={}))}(i.EventsModule||(i.EventsModule={}))},{}],18:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){this.categories=[],this.topics=[],this.presenters=[],this.locationRegions=[],this.locationSubRegions=[],this.locationCountries=[],this.types=[],this.formats=[],this.searchTerm=""}return e.prototype.IsFiltersEmpty=function(){return 0==this.categories.length&&0==this.topics.length&&0==this.locationRegions.length&&0==this.locationSubRegions.length&&0==this.locationCountries.length&&0==this.types.length&&0==this.formats.length&&0==this.presenters.length},e}();e.RequestModel=t}(i.EventsModule||(i.EventsModule={}))},{}],19:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Shared/Filters/_Filters"),r=e("../Shared/FiltersSelection/_FiltersSelection"),o=e("../Shared/SearchBox/_SearchBox"),a=e("../Shared/Masonry/_Masonry"),s=e("./Models/_RequestModel"),l=e("./Models/_FilterType");!function(e){var t=n.Shared.Filters,i=r.Shared.FiltersSelection,c=o.Shared.SearchBox,u=a.Shared.Masonry,d=s.EventsModule.RequestModel,h=l.EventsModule.FilterType,p=function(){function e(){var e=this;if(this.indexPageComponent=$(".events-landing"),this.noOfColumns=1,this.indexPageComponent&&this.indexPageComponent.length>0){this.eventSections=this.indexPageComponent.find(".events-landing-section"),this.noOfColumns=+this.indexPageComponent.attr("data-number-columns"),this.noResultsError=this.indexPageComponent.find(".no-result-error-message"),2==this.noOfColumns&&(this.masonry=new u({componentSelector:".events-landing",enableMobile:!1,noOfColumns:this.noOfColumns,sectionSelector:".events-landing-section-items",itemSelector:".events-landing-card"})),this.filtersSelection=new i(".events-landing-filters-selection"),this.filters=new t(".events-landing-filters",this.filtersSelection),this.searchBox=new c(".events-landing-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:300}),this.filters.subscribeToFiltersUpdatedEvent(function(t){e.refreshCards(!1,!0)}),this.searchBox.subscribeToSearchExecuteEvent(function(t){e.refreshCards(!1,!0)}),$(window).on("popstate",function(t){var i=t.originalEvent.state;e.updateControlsValues(i),e.refreshCards(!1,!1)});var n=this.prepareRequest(!0);this.updateControlsValues(n),this.refreshCards(!0,!0),history.pushState(n,"",window.location.href)}}return e.prototype.refreshCards=function(e,t){var i=this.indexPageComponent.find(".events-landing-card").toArray();if(i&&0!=i.length){for(var n,r=this.prepareRequest(e),o=0,a=0;a<i.length;a++){var s=!0;(s=this.matchCardByFilter(i[a],r))&&(s=this.matchCardBySearchTerm(i[a],r.searchTerm)),s?(o++,$(i[a]).removeClass("hidden")):$(i[a]).addClass("hidden")}if(0===o?this.noResultsError.removeClass("hidden"):this.noResultsError.addClass("hidden"),0===o?(this.noResultsError.removeClass("hidden"),this.filtersSelection.hasActiveChips()?this.noResultsError.addClass("shifted"):this.noResultsError.removeClass("shifted")):(this.noResultsError.addClass("hidden"),this.noResultsError.removeClass("shifted")),this.filtersSelection.setNoOfResults(o),this.showHideSections(),o>0){var l=i.filter(function(e){return $(e).not(".hidden")});n=l[l.length-1]}else n=$(".events-landing-filters-selection")[0];if(this.scrollToElementIfNeeded(n),t){var c=window.location.href.split("?")[0]+this.prepareQueryStringBasedOnRequestModel(r);history.pushState(r,"",c)}}},e.prototype.matchCardByFilter=function(e,t){return!!e&&(!!t.IsFiltersEmpty()||this.matchSingleFilter(e,t,h.Category)&&this.matchSingleFilter(e,t,h.Topic)&&this.matchSingleFilter(e,t,h.LocationCountry)&&this.matchSingleFilter(e,t,h.LocationRegion)&&this.matchSingleFilter(e,t,h.LocationSubRegion)&&this.matchSingleFilter(e,t,h.Type)&&this.matchSingleFilter(e,t,h.Format)&&this.matchSingleFilter(e,t,h.Presenter))},e.prototype.matchCardBySearchTerm=function(e,t){if(!t)return!0;var i=t.toLowerCase(),n=$(e).find(".landing-card-content-title").text().toLowerCase(),r=$(e).find(".landing-card-description").text().toLowerCase();return n.indexOf(i)>=0||r.indexOf(i)>=0},e.prototype.prepareRequest=function(e){var t=new d;if(e){t.categories=this.parsePrametrValueFromQueryString("c"),t.topics=this.parsePrametrValueFromQueryString("t"),t.presenters=this.parsePrametrValueFromQueryString("p"),t.locationRegions=this.parsePrametrValueFromQueryString("lr"),t.locationSubRegions=this.parsePrametrValueFromQueryString("lsr"),t.locationCountries=this.parsePrametrValueFromQueryString("lc"),t.types=this.parsePrametrValueFromQueryString("ty"),t.formats=this.parsePrametrValueFromQueryString("f");var i=this.parsePrametrValueFromQueryString("searchTerm");t.searchTerm=i.length>0?i[0]:""}else{t.searchTerm=this.searchBox.getValue();for(var n=this.filters.getFilterItems(),r=0;r<n.length;r++)switch(n[r].queryKey){case"c":t.categories.push(n[r].label);break;case"t":t.topics.push(n[r].label);break;case"p":t.presenters.push(n[r].label);break;case"lr":t.locationRegions.push(n[r].label);break;case"lsr":t.locationSubRegions.push(n[r].label);break;case"lc":t.locationCountries.push(n[r].label);break;case"ty":t.types.push(n[r].label);break;case"f":t.formats.push(n[r].label)}}return t},e.prototype.matchSingleFilter=function(e,t,i){var n,r,o=!0;switch(i){case h.Category:n="event-category",r=t.categories;break;case h.Topic:n="event-topics",r=t.topics;break;case h.Presenter:n="event-presenters",r=t.presenters;break;case h.LocationCountry:n="event-location-country",r=t.locationCountries;break;case h.LocationRegion:n="event-location-region",r=t.locationRegions;break;case h.LocationSubRegion:n="event-location-subregion",r=t.locationSubRegions;break;case h.Type:n="event-type",r=t.types;break;case h.Format:n="event-format",r=t.formats}var a=$(e).data(n);if(void 0!==a&&r.length>0){var s=a.split(",");o=r.some(function(e){return s.indexOf(e)>=0})}return o},e.prototype.scrollToElementIfNeeded=function(e){if(e){var t=$(e).offset().top+$(e).outerHeight(),i=$(window).scrollTop();$(window).height();t<=i&&$(window).scrollTop(0)}},e.prototype.prepareQueryStringBasedOnRequestModel=function(e){var t="";if(e){if(e.categories&&e.categories.length>0){t+="c=";for(var i=0;i<e.categories.length;i++)t=t+(i>0?",":"")+e.categories[i]}if(e.topics&&e.topics.length>0){t=t+(t.length>0?"&":"")+"t=";for(i=0;i<e.topics.length;i++)t=t+(i>0?",":"")+e.topics[i]}if(e.presenters&&e.presenters.length>0){t=t+(t.length>0?"&":"")+"p=";for(i=0;i<e.presenters.length;i++)t=t+(i>0?",":"")+e.presenters[i]}if(e.locationRegions&&e.locationRegions.length>0){t=t+(t.length>0?"&":"")+"lr=";for(i=0;i<e.locationRegions.length;i++)t=t+(i>0?",":"")+e.locationRegions[i]}if(e.locationSubRegions&&e.locationSubRegions.length>0){t=t+(t.length>0?"&":"")+"lsr=";for(i=0;i<e.locationSubRegions.length;i++)t=t+(i>0?",":"")+e.locationSubRegions[i]}if(e.locationCountries&&e.locationCountries.length>0){t=t+(t.length>0?"&":"")+"lc=";for(i=0;i<e.locationCountries.length;i++)t=t+(i>0?",":"")+e.locationCountries[i]}if(e.types&&e.types.length>0){t=t+(t.length>0?"&":"")+"ty=";for(i=0;i<e.types.length;i++)t=t+(i>0?",":"")+e.types[i]}if(e.formats&&e.formats.length>0){t=t+(t.length>0?"&":"")+"f=";for(i=0;i<e.formats.length;i++)t=t+(i>0?",":"")+e.formats[i]}e.searchTerm&&(t=t+(t.length>0?"&":"")+"searchTerm="+e.searchTerm)}return t.length>0?"?"+t:""},e.prototype.parsePrametrValueFromQueryString=function(e){var t=[];if(e){var i=window.location.href.split("?")[1];if(i)for(var n=decodeURIComponent(i).split("&"),r=0;r<n.length;r++){var o=n[r];if(o){var a=o.split("=");if(2==a.length&&e===a[0]){if("searchTerm"===e)t.push(a[1]);else{var s=a[1].split(",");t=t.concat(s)}break}}}}return t},e.prototype.updateControlsValues=function(e){if(e){this.searchBox.setValue(e.searchTerm,!1);var t=[];e.categories&&(t=t.concat(e.categories)),e.topics&&(t=t.concat(e.topics)),e.presenters&&(t=t.concat(e.presenters)),e.locationRegions&&(t=t.concat(e.locationRegions)),e.locationSubRegions&&(t=t.concat(e.locationSubRegions)),e.locationCountries&&(t=t.concat(e.locationCountries)),e.types&&(t=t.concat(e.types)),e.formats&&(t=t.concat(e.formats)),this.filters.setCheckedCheckboxesByNames(t),this.filters.showActiveSections()}},e.prototype.showHideSections=function(){for(var e=0;e<this.eventSections.length;e++){0===$(this.eventSections[e]).find(".events-landing-section-items .events-landing-card:not(.hidden)").length?$(this.eventSections[e]).addClass("hidden"):$(this.eventSections[e]).removeClass("hidden")}},e}();e.EventsIndexController=p}(i.EventsModule||(i.EventsModule={}))},{"../Shared/Filters/_Filters":98,"../Shared/FiltersSelection/_FiltersSelection":97,"../Shared/Masonry/_Masonry":99,"../Shared/SearchBox/_SearchBox":100,"./Models/_FilterType":17,"./Models/_RequestModel":18}],20:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t){var i=this;this._items=[],this._currentSearchTerm="",this._defaultVisibleItemsCount=6,e&&(t&&(this._defaultVisibleItemsCount=t),this._sectionContainer=$(e),this._sectionContainer&&(this._showMoreLink=this._sectionContainer.find(".show-more"),this._showLessLink=this._sectionContainer.find(".show-less"),this._itemsContainer=this._sectionContainer.find(".fednews-landing-section-items"),this._items=this._sectionContainer.find(".fednews-landing-section-items .fed-event-item").toArray(),this._loader=this._sectionContainer.find(".items-loader"),$(this._showMoreLink).on("click",function(e){e.preventDefault(),i._showMore()}),$(this._showLessLink).on("click",function(e){e.preventDefault(),i._showLess(!0)}),$(window).on("load resize",function(e){i.reziseGridItems()})))}return e.prototype._showMore=function(){for(var e=0;e<this._items.length;e++)$(this._items[e]).fadeIn(500);this.reziseGridItems(),$(this._showMoreLink).hide(),$(this._showLessLink).show()},e.prototype._showLess=function(e){for(var t=this,i=0;i<this._items.length;i++)i>=this._defaultVisibleItemsCount?i!=this._items.length-1?$(this._items[i]).fadeOut(500):e&&$(this._items[i]).fadeOut(500,function(){t.scrollToViewMore()}):i!=this._items.length-1?$(this._items[i]).fadeIn(500):e&&$(this._items[i]).fadeIn(500,function(){t.scrollToViewMore()});this.reziseGridItems(),$(this._showMoreLink).show(),$(this._showLessLink).hide()},e.prototype._matchItemBySearchTerm=function(e,t){if(!t)return!0;var i=t.toLowerCase(),n=$(e).find(".fed-event-item-title").text().toLowerCase(),r=$(e).find(".fed-event-item-description").text().toLowerCase(),o=$(e).find(".fed-event-item-details .location").text().toLowerCase();return n.indexOf(i)>=0||r.indexOf(i)>=0||o.indexOf(i)>=0},e.prototype.reziseGridItems=function(){for(var e=parseInt(window.getComputedStyle(this._itemsContainer[0]).getPropertyValue("grid-auto-rows")),t=parseInt(window.getComputedStyle(this._itemsContainer[0]).getPropertyValue("grid-row-gap")),i=0;i<this._items.length;i++)if($(this._items[i]).is(":visible")){var n=Math.ceil((this._items[i].querySelector(".fed-event-item-content").getBoundingClientRect().height+t)/(e+t));this._items[i].style.gridRowEnd="span "+n}this.hideLoader()},e.prototype.hideLoader=function(){this._loader&&this._loader.hide(),this._itemsContainer.css({visibility:"visible",height:"auto"})},e.prototype.scrollToViewMore=function(){var e=this._showMoreLink.offset().top,t=this._showMoreLink.height(),i=$(window).height(),n=t<i?e-(i/2-t/2):e;$("html,body").animate({scrollTop:n},500)},e.prototype.SearchItems=function(e){var t=0;if(e){for(var i=0;i<this._items.length;i++)this._matchItemBySearchTerm(this._items[i],e)?($(this._items[i]).fadeIn(500),t++):$(this._items[i]).fadeOut(500);0===t?this._sectionContainer.hide():this._sectionContainer.show(),this.reziseGridItems(),$(this._showMoreLink).hide(),$(this._showLessLink).hide()}else this._showLess(!1),t=this._items.length,this._sectionContainer.show();return t},e}();e.FedNewsItemSection=t}(i.FedNewsItemSectionsModule||(i.FedNewsItemSectionsModule={}))},{}],21:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Shared/SearchBox/_SearchBox"),r=e("../FedNews/_FedNewsItemSections");!function(e){var t=n.Shared.SearchBox,i=r.FedNewsItemSectionsModule.FedNewsItemSection,o=function(){function e(){var e=this;if(this._component=$(".fednews-landing"),this._stickyNavLinks=[],this._sections=[],this._component){var n=void 0,r=this._component.find(".fednews-landing-main .fednews-landing-section"),o=this._component.attr("data-max-visible-elements");if(o){var a=parseInt(o,10);n=isNaN(a)?6:a}for(var s=0;s<r.length;s++)this._sections.push(new i(r[s],n));if(this._searchBox=new t(".fednews-landing-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500}),this._searchBox.subscribeToSearchExecuteEvent(function(t){e.search(t)}),this._stickySection=this._component.find(".sticky-section"),this._stickySection){this._stickyNavInner=this._stickySection.find(".inner");var l=this._stickySection.find("ul a");if(l.length>0){this._stickyNavLinks=l.toArray();for(s=0;s<this._stickyNavLinks.length;s++)$(this._stickyNavLinks[s]).on("click",function(t){t.preventDefault(),e._stickyNavLinkClickHandler(t)})}this._stickyNavScrollHandler(),$(window).on("scroll",function(t){e._stickyNavScrollHandler()})}this._noResultsSection=this._component.find(".no-results")}}return e.prototype.search=function(e){for(var t=0,i=0;i<this._sections.length;i++)t+=this._sections[i].SearchItems(e);0==t?this._noResultsSection.show():this._noResultsSection.hide()},e.prototype._stickyNavLinkClickHandler=function(e){e.preventDefault();var t=e.target;$(this._stickyNavLinks).removeClass("active"),$(t).addClass("active"),$("html,body").animate({scrollTop:$($(t).prop("hash")).offset().top-this._stickySection.outerHeight()},500)},e.prototype._stickyNavScrollHandler=function(){for(var e=$(window).scrollTop(),t=this._stickySection.outerHeight(),i=0;i<this._stickyNavLinks.length;i++){var n=$($(this._stickyNavLinks[i]).prop("hash")),r=$(n).offset().top,o=$(n).offset().top+$(n).outerHeight();e>=r-t-10&&e<=o+t?$(this._stickyNavLinks[i]).hasClass("active")||($(this._stickyNavLinks).removeClass("active"),$(this._stickyNavLinks[i]).addClass("active")):$(this._stickyNavLinks[i]).removeClass("active")}},e}();e.FedNewsLandingController=o}(i.FedNewsLandingModule||(i.FedNewsLandingModule={}))},{"../FedNews/_FedNewsItemSections":20,"../Shared/SearchBox/_SearchBox":100}],22:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.name=void 0,this.id=void 0,this.count=void 0}return n([t("Name"),r("design:type",String)],e.prototype,"name",void 0),n([t("Id"),r("design:type",String)],e.prototype,"id",void 0),n([t("Count"),r("design:type",Number)],e.prototype,"count",void 0),e}();e.FilterGeneralInfo=i}(i.Filters||(i.Filters={}))},{"../../Helpers/_MapHelper":30}],23:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Filters/Models/_FilterGeneralInfoModel"),r=e("../Helpers/_StringHelper");!function(e){var t=n.Filters.FilterGeneralInfo,i=r.Helpers.StringHelper,o=function(){function e(e,t){var i=this;this.filterChangeHandlers=[],this.urlSupportEnabled=!0,this.reset=function(){i.activeOption.prop("disabled",!1),$(".filter-items #"+i._value).remove(),i._value=null},this.name=t,this.filter=$(e),this.filterOptions=$(e+" ."+t),this.defaultSelectBoxText=this.filterOptions.find("option:first-child").val().toString(),this.filterOptions.change(function(e){i.onFilterOptionsChange(e)}),this.filterOptions.empty()}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){null!=e||this.isEmpty()?this._value=e:this.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOption",{get:function(){return $("."+this.name+" [value="+this._value+"]")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueText",{get:function(){var e=this.activeOption.text();return e=e.substring(0,e.indexOf("(")),i.sanitizeText(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.urlSupportEnabled&&!this.isEmpty()&&""!==this.valueText?"/"+this.valueText:""},enumerable:!0,configurable:!0}),e.prototype.subscribeToFilterChangeEvent=function(e){this.filterChangeHandlers.push(e)},e.prototype.hide=function(){this.filter.hide()},e.prototype.show=function(){this.filter.show()},e.prototype.isEmpty=function(){return null==this._value||void 0==this._value||""===this._value},e.prototype.initOptions=function(e){if(this.filterOptions.empty(),e&&this.filterOptions.find("option").length<=1){this.defaultSelectBoxText&&this.isEmpty()&&this.filterOptions.append(new Option(this.defaultSelectBoxText,this.defaultSelectBoxText,!0));var n=[];for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],a=new t;a.name=o.name,a.id=r,a.count=o.count,n.push(a)}for(var s=0,l=n=n.sort(function(e,t){var i=e.name.toLocaleUpperCase(),n=t.name.toLocaleUpperCase();return i<n?-1:i>n?1:0});s<l.length;s++){var c=l[s],u={value:c.id,text:c.name+" ("+c.count+")",selected:!1};(this._value===c.id||1===n.length&&window.location.href.indexOf(i.sanitizeText(c.name))>-1)&&(this.isEmpty()&&(this.value=c.id),u.selected=!0,this.addBlueFilter(c.name)),this.filterOptions.append(new Option(u.text,u.value,!1,u.selected))}}},e.prototype.filterChangeEvent=function(){this.filterChangeHandlers.slice(0).forEach(function(e){return e()})},e.prototype.onFilterOptionsChange=function(e){var t=this.filterOptions.val().toString();t&&($("."+this.name+" [value="+t+"]").prop("disabled",!0),this._value=t),this.filterChangeEvent()},e.prototype.addBlueFilter=function(e){var t=this;e||(e=this.valueText),$(".filter-items").append('<span class="filter-'+this.name+'" id='+this._value+'><i class="fa fa-times"></i> '+e+"</span>"),$(".filter-items #"+this._value+" .fa-times").on("click",function(){t.reset(),t.filterChangeEvent()})},e}();e.SelectBoxFilter=o}(i.Filters||(i.Filters={}))},{"../Filters/Models/_FilterGeneralInfoModel":22,"../Helpers/_StringHelper":34}],24:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Helpers/_StringHelper");!function(e){var t=n.Helpers.StringHelper,i=function(){function e(e,t){void 0===t&&(t=!1);var i=this;this.filterChangeHandlers=[],this.valueChangeHandlers=[],this.urlSupportEnabled=!0,this.doneTypingInterval=400,this.reset=function(){i.filterInput.val("")},this.filter=$(e),this.filterInput=$(e+" input");var n=$(e+" button.search");n.click(function(){i.updateSearchDataLinkAttribute(),i.filterChangeEvent()}),this.filterInput.on("keypress",function(e){13===e.which&&(clearTimeout(i.typingTimer),i.updateSearchDataLinkAttribute(),n.click())}),$(e+" button.clear").click(function(){i.reset(),i.filterChangeEvent()}),t&&this.filterInput.on("input propertychange keyup paste",function(e){if(13!==e.keyCode){("propertychange"!==e.type||"value"===e.originalEvent.propertyName)&&(clearTimeout(i.typingTimer),i.typingTimer=setTimeout(function(){i.valueChangedEvent()},i.doneTypingInterval))}})}return Object.defineProperty(e.prototype,"value",{get:function(){return this.valueText},set:function(e){null==e?this.reset():this.filterInput.val(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueText",{get:function(){var e=this.filterInput.val().toString();return t.sanitizeText(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return this.filterInput.val().toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.urlSupportEnabled&&!this.isEmpty()&&""!==this.valueText?"/"+this.valueText:""},enumerable:!0,configurable:!0}),e.prototype.updateSearchDataLinkAttribute=function(){$("button.search",this.filter).attr("data-linkdetail",this.valueText)},e.prototype.subscribeToFilterChangeEvent=function(e){this.filterChangeHandlers.push(e)},e.prototype.subscribeToValueChangeEvent=function(e){this.valueChangeHandlers.push(e)},e.prototype.hide=function(){this.filter.hide()},e.prototype.show=function(){this.filter.show()},e.prototype.apply=function(){this.filterChangeEvent()},e.prototype.applyValueChanged=function(){this.valueChangedEvent()},e.prototype.isEmpty=function(){var e=this.value;return null==e||""===e},e.prototype.initOptions=function(e){this.filterInput.val(e)},e.prototype.filterChangeEvent=function(){this.filterChangeHandlers.slice(0).forEach(function(e){return e()})},e.prototype.valueChangedEvent=function(){this.valueChangeHandlers.slice(0).forEach(function(e){return e()})},e}();e.TextBoxFilter=i}(i.Filters||(i.Filters={}))},{"../Helpers/_StringHelper":34}],25:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getAjaxUrl=function(e,t){var i="";if(t&&this.allowedLanguagesSubfolders.indexOf(t)>=0)i="en"===t?"":"/"+t;else{var n=window.location.pathname.split("/")[1];n&&this.allowedLanguagesSubfolders.indexOf(n)>=0&&(i="/"+n)}return i+e},e.getAPIMethodNameFromURL=function(e){if(e){String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t,e.length,t)===e});var t=(e.endsWith("/")?e.substring(0,e.length-1):e).split("/");return t[t.length-1]}return""},e.allowedLanguagesSubfolders=["de","ja","es","fr","zh","ko","en"],e}();e.AjaxHelper=t}(i.Helpers||(i.Helpers={}))},{}],26:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function e(){}return e.setCookie=function(e,t,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var r="expires="+n.toUTCString();document.cookie=e+"="+t+";expires="+r+";path=/;domain=.solarwinds.com"},e.getCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var r=i[n];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return this.decodedValue(r.substring(t.length,r.length))}return""},e.handlePercent=function(e){for(var t="0123456789abcdefABCDEF",i="",n=0,r=e.length,o=e.indexOf("%");0<=o;)i+=e.substr(n,o-n),o+2<r&&0<=t.indexOf(e[o+1])&&0<=t.indexOf(e[o+2])?(i+="%"+e[o+1]+e[o+2],n=o+3):(i+="%25",n=o+1),o=e.indexOf("%",n);return n<r&&(i+=e.substr(n,r-n)),i},e.decodedValue=function(e){return null===e?"":decodeURIComponent(this.handlePercent(e))},e}();i.CookieHelper=n},{}],27:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.isMobile=function(){return $(window).width()<768},e}();e.DeviceHelper=t}(i.Helpers||(i.Helpers={}))},{}],28:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_QueryParametersHelper");!function(e){var t=n.Helpers.QueryParametersHelper,i=function(){function e(){}return e.IPAddress=function(){return t.getUrlParameter("ipmask")},e}();e.IPAddressHelper=i}(i.Helpers||(i.Helpers={}))},{"./_QueryParametersHelper":32}],29:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getCurrentLanguage=function(){return void 0!=window.dataLayer&&null!=window.dataLayer&&void 0!=window.dataLayer.site&&null!=window.dataLayer.site&&void 0!=window.dataLayer.site.language&&null!=window.dataLayer.site.language?window.dataLayer.site.language:"en"},e}();e.LanguageHelper=t}(i.Helpers||(i.Helpers={}))},{}],30:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),e("reflect-metadata"),function(e){var t="jsonProperty";function i(e,t){return Reflect.getMetadata("design:type",e,t)}function n(e,i){return Reflect.getMetadata(t,e,i)}e.getClazz=i,e.getJsonProperty=n,e.JsonProperty=function(e){if(e instanceof String||"string"==typeof e)return Reflect.metadata(t,{name:e,clazz:void 0});var i=e;return Reflect.metadata(t,{name:i?i.name:void 0,clazz:i?i.clazz:void 0})};var r=function(){function e(){}return e.isPrimitive=function(e){switch(typeof e){case"string":case"number":case"boolean":return!0}return!!(e instanceof String||e===String||e instanceof Number||e===Number||e instanceof Boolean||e===Boolean)},e.isArray=function(e){return e===Array||("function"==typeof Array.isArray?Array.isArray(e):!!(e instanceof Array))},e.deserialize=function(t,r){if(void 0!==t&&void 0!==r){var o=new t;return Object.keys(o).forEach(function(t){var a=n(o,t);null!=a?o[t]=function(a){var s=a.name||t,l=r?r[s]:void 0,c=i(o,t);if(e.isArray(c)){var u=n(o,t);return u.clazz&&!e.isPrimitive(u.clazz)?l&&e.isArray(l)?l.map(function(t){return e.deserialize(u.clazz,t)}):void 0:l}return e.isPrimitive(c)?r?r[s]:void 0:e.deserialize(c,l)}(a):r&&void 0!==r[t]&&(o[t]=r[t])}),o}},e}();e.MapHelper=r}(i.Helpers||(i.Helpers={}))},{"reflect-metadata":121}],31:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getLocalizedPrice=function(e,t){var i="";switch(t){case"£":i=t+new Intl.NumberFormat("en-GB").format(e);break;case"€":i=new Intl.NumberFormat("it-IT").format(e)+" "+t;break;case"AUD$":i=t+new Intl.NumberFormat("en-AU").format(e);break;case"¥":i=t+new Intl.NumberFormat("ja-JP").format(e);break;default:i=t+new Intl.NumberFormat("en-US").format(e)}return i},e}();e.PriceLocalizationHelper=t}(i.Helpers||(i.Helpers={}))},{}],32:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.getUrlParameter=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)","i").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},e}();e.QueryParametersHelper=t}(i.Helpers||(i.Helpers={}))},{}],33:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function e(){}return e.IsPageEditorMode=function(){var e=window.Sitecore;return!!(e&&e.PageModes&&e.PageModes.PageEditor)},e}();i.SitecoreHelper=n},{}],34:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.sanitizeText=function(e){return e.toLowerCase().trim().replace(/[^a-zA-Z0-9_. ]+/gi,"").replace(/ /g,"-")},e}();e.StringHelper=t}(i.Helpers||(i.Helpers={}))},{}],35:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.priority=1,this.title=void 0,this.description=void 0,this.imageSrc=void 0,this.color=void 0,this.linkUrl=void 0,this.linkText=void 0,this.linkTarget=void 0,this.categories=void 0}return n([t("ImageSrc"),r("design:type",String)],e.prototype,"imageSrc",void 0),n([t("Color"),r("design:type",String)],e.prototype,"color",void 0),n([t("Title"),r("design:type",String)],e.prototype,"title",void 0),n([t("Description"),r("design:type",String)],e.prototype,"description",void 0),n([t("LinkUrl"),r("design:type",String)],e.prototype,"linkUrl",void 0),n([t("LinkText"),r("design:type",String)],e.prototype,"linkText",void 0),n([t("LinkTarget"),r("design:type",String)],e.prototype,"linkTarget",void 0),n([t({clazz:String,name:"Categories"}),r("design:type",Array)],e.prototype,"categories",void 0),e}();e.IntegrationViewModel=i}(i.IntegrationsModule||(i.IntegrationsModule={}))},{"../../Helpers/_MapHelper":30}],36:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(e,t){this.integrationsCategoriesFolder=e,this.integrationsCatalogFolder=t}}();e.RequestModel=t}(i.IntegrationsModule||(i.IntegrationsModule={}))},{}],37:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper"),a=e("./_IntegrationViewModel"),s=e("../../Filters/Models/_FilterGeneralInfoModel");!function(e){var t=o.Helpers.MapHelper,i=o.Helpers.JsonProperty,l=a.IntegrationsModule.IntegrationViewModel,c=s.Filters.FilterGeneralInfo,u=function(){function e(){this.integrationCardsItems=void 0,this.integrationsCategories=void 0,this.status=void 0,this.errorMessage=void 0}return e.parseJsonObject=function(i){return t.deserialize(e,i)},n([i("Status"),r("design:type",Number)],e.prototype,"status",void 0),n([i("ErrorMessage"),r("design:type",String)],e.prototype,"errorMessage",void 0),n([i({clazz:l,name:"IntegrationCards"}),r("design:type",Array)],e.prototype,"integrationCardsItems",void 0),n([i({clazz:c,name:"IntegrationsCategories"}),r("design:type",Array)],e.prototype,"integrationsCategories",void 0),e}();e.ResponseModel=u}(i.IntegrationsModule||(i.IntegrationsModule={}))},{"../../Filters/Models/_FilterGeneralInfoModel":22,"../../Helpers/_MapHelper":30,"./_IntegrationViewModel":35}],38:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t){var i=this;this._value=new Array,this.filterChangeHandlers=[],this.openedCheckBoxCssClass="filter-title-open",this.urlSupportEnabled=!1,this.reset=function(){if(i.activeOption.length>0)for(var e=0;e<i.activeOption.length;e++)$(i.activeOption[e]).prop("checked",!1);$(".filter-items").empty(),i._value=null},this.renderingManager=t,this.filter=$(e),this.optionPanelWrapper=this.filter.find(".options-panel-wrapper"),this.optionPanel=this.filter.find(".options-panel"),this.formControl=this.filter.find(".form-control");var n=!1;this.bindWindowEvents(),this.updatePanelHeight(),$(this.formControl).click(function(){if(!1===n)return i.optionPanelWrapper.show(),i.formControl.addClass(i.openedCheckBoxCssClass),n=!0,!1}),window.addEventListener("click",function(t){$(t.target).closest(e+" .options-panel").length<1&&n&&(i.optionPanelWrapper.hide(),i.formControl.removeClass(i.openedCheckBoxCssClass),n=!1,i.filterChangeEvent())})}return Object.defineProperty(e.prototype,"url",{get:function(){return this.urlSupportEnabled&&!this.isEmpty()&&""!==this.valueText?"/"+this.valueText:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){null!=e||this.isEmpty()?this._value=e:this.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOption",{get:function(){return this.optionPanel.find("input:checked")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueText",{get:function(){var e="";if(this.activeOption.length>0){e=$(this.activeOption[0]).parent("label").text();for(var t=1;t<this.activeOption.length;t++)e=e+", "+$(this.activeOption[t]).parent("label").text()}return e},enumerable:!0,configurable:!0}),e.prototype.subscribeToFilterChangeEvent=function(e){this.filterChangeHandlers.push(e)},e.prototype.hide=function(){this.filter.hide()},e.prototype.show=function(){this.filter.show()},e.prototype.isEmpty=function(){return null==this._value||void 0==this._value||0===this._value.length},e.prototype.initOptions=function(e){var t=this;this.renderingManager.renderFilterOptions(e),this.filterOptions=this.optionPanel.find("input"),$(this.filterOptions).change(function(e){t.onFilterOptionsChange(e)})},e.prototype.updatePanelHeight=function(){var e=window.innerHeight-($(this.formControl).offset().top+$(this.formControl).outerHeight()-$(window).scrollTop()+10);$(this.optionPanelWrapper).css("max-height",e),$(this.optionPanel).css("max-height",e-17)},e.prototype.bindWindowEvents=function(){var e=this;$(window).bind("resize scroll",function(){e.updatePanelHeight()})},e.prototype.filterChangeEvent=function(){this.updateLabelCSS(),this.updateVisibleFilterItems(),this.filterChangeHandlers.slice(0).forEach(function(e){return e()})},e.prototype.onFilterOptionsChange=function(e){$(e.target).prop("checked")?this.addFilterOption($(e.target).attr("value")):this.removeFilterOption($(e.target).attr("value")),this.filterChangeEvent()},e.prototype.removeFilterOption=function(e){this._value=this._value.filter(function(t){return t!==e})},e.prototype.addFilterOption=function(e){this._value.push(e)},e.prototype.updateVisibleFilterItems=function(){var e=this,t=$(".filter-items");if(t.find(" > .filter-category").empty(),this.isEmpty())t.hide();else{for(var i="",n=0;n<this.activeOption.length;n++){var r=document.createElement("span");r.setAttribute("class","active-filter"),r.innerHTML=$(this.activeOption[n]).parent("label").text();var o=document.createElement("i");o.setAttribute("class","fort fort-close-circle-outline"),o.setAttribute("value",$(this.activeOption[n]).prop("value")),r.appendChild(o),i+=r.outerHTML}t.find(" > .filter-category").html(i),t.show(),t.find(" > .filter-category i").click(function(t){for(var i=0;i<e.activeOption.length;i++)$(e.activeOption[i]).attr("value")===$(t.target).attr("value")&&$(e.activeOption[i]).prop("checked",!1);e.onFilterOptionsChange(t)})}},e.prototype.updateLabelCSS=function(){this.optionPanel.find("label").removeClass("category-container-selected");for(var e=0;e<this.activeOption.length;e++){$(this.activeOption[e]).parent("label").addClass("category-container-selected")}},e}();e.CheckBoxBoxFilter=t}(i.IntegrationsModule||(i.IntegrationsModule={}))},{}],39:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./Models/_ResponseModel"),r=e("./Models/_RequestModel"),o=e("../Helpers/_MapHelper"),a=e("../Helpers/_AjaxHelper"),s=e("./_RenderingManager"),l=e("./_CheckBoxFilter"),c=e("./_PredictiveSearchController"),u=e("./_SearchEngine"),d=e("./_PlaceHoldersManager");!function(e){var t=n.IntegrationsModule.ResponseModel,i=r.IntegrationsModule.RequestModel,h=o.Helpers.MapHelper,p=a.Helpers.AjaxHelper,f=s.IntegrationsModule.IntegrationsRenderingManager,g=l.IntegrationsModule.CheckBoxBoxFilter,v=c.IntegrationsModule.PredictiveSearchController,m=u.IntegrationsModule.SearchEngine,y=d.IntegrationsModule.PlaceholdersManager,b=function(){function e(){var e=this;this.integrationComponent=$(".integration-index"),this.integrationsCardsSelector=".itegration-card",this.integrationsCategoriesFolder=$("#integrations-categories-folder"),this.integrationsCatalogFolder=$("#integrations-catalog-folder"),this.filteredCards=new Array,this.onCategoryFilterChange=function(){if(e.filteredCards=e.model.integrationCardsItems,!e.categoryFilter.isEmpty()){for(var t=new Array,i=0,n=e.filteredCards;i<n.length;i++)for(var r=n[i],o=function(i){e.categoryFilter.value.some(function(e){return e===i})&&t.push(r)},a=0,s=r.categories;a<s.length;a++){o(s[a])}e.filteredCards=t}},this.onFilterChange=function(){e.onCategoryFilterChange();var t=e.predictiveSearch.value;t.length>0?(t=t.replace(/-/g," "),e.filteredCards=e.searchEngine.searchItems(e.filteredCards,t),e.filteredCards.length>0?e.placeHoldersManager.hideNoResultsMessage():(e.renderingManager.clearCards(),e.placeHoldersManager.showNoResultsMessage(t))):e.placeHoldersManager.hideNoResultsMessage(),e.placeHoldersManager.updateInputPlaceHolderField(e.filteredCards.length,t),e.placeHoldersManager.hidePredictiveSearch(e.predictiveSearch.isMobileViewActiveState),e.renderingManager.renderCards(e.filteredCards)},this.searchItems=function(t){return e.searchEngine.searchItems(e.filteredCards,t,!0)},null!=this.integrationComponent&&this.integrationComponent.length>0&&(this.placeHoldersManager=new y,this.renderingManager=new f,this.searchEngine=new m(this.renderingManager),this.categoryFilter=new g(".integrations-filter",this.renderingManager),this.categoryFilter.subscribeToFilterChangeEvent(function(){e.onFilterChange()}),this.initializeIntegrationsData(),this.predictiveSearch=new v(this.placeHoldersManager,this.onFilterChange,this.searchItems))}return e.prototype.initializeIntegrationsData=function(){var e=$(this.integrationsCategoriesFolder),t=$(this.integrationsCatalogFolder);if(e.length>0&&t.length>0){var n=this,r={method:"POST",dataType:"json"},o=new i(e[0].value,t[0].value);r.data=o,$.ajax(p.getAjaxUrl("/solarapi/globalintegrations/getintegrationcardsitems"),r).done(function(e){n.placeHoldersManager.hideLoadingSpinner(),n.onSuccessIntegrationsLoad(e)}).fail(function(e,t){n.placeHoldersManager.hideLoadingSpinner(),n.placeHoldersManager.showErrorMessage("Request failed.  Returned status of "+t)})}},e.prototype.onSuccessIntegrationsLoad=function(e){var i=h.deserialize(t,e);void 0==i||i.status<1?this.placeHoldersManager.showErrorMessage(i.errorMessage):(this.model=i,this.filteredCards=this.model.integrationCardsItems,this.renderingManager.renderCards(i.integrationCardsItems),this.initializeFilterOptions(),this.integrationCards=$(this.integrationsCardsSelector))},e.prototype.initializeFilterOptions=function(){if(void 0!=this.categoryFilter){for(var e=[],t=function(t){for(var n=0,r=i.filteredCards;n<r.length;n++){if(r[n].categories.some(function(e){return e===t.id})){e.push(t);break}}},i=this,n=0,r=this.model.integrationsCategories;n<r.length;n++){t(r[n])}this.categoryFilter.initOptions(e)}},e}();e.IndexPageController=b}(i.IntegrationsModule||(i.IntegrationsModule={}))},{"../Helpers/_AjaxHelper":25,"../Helpers/_MapHelper":30,"./Models/_RequestModel":36,"./Models/_ResponseModel":37,"./_CheckBoxFilter":38,"./_PlaceHoldersManager":40,"./_PredictiveSearchController":41,"./_RenderingManager":42,"./_SearchEngine":43}],40:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){this.pageInfoSelector=$(".page-info > span"),this.clearButton=$(".input-group-btn.clear"),this.noResults=$(".no-results"),this.inputFields=$("#custom-search-input input.form-control"),this.inputActivePlaceHolder=$(".search-active"),this.inputEmptyPlaceHolder=$(".search-empty"),this.predictiveSearch=$(".predictive-search"),this.predictiveSearchForDesktop=$(".predictive-desktop-search"),this.predictiveSearchForMobile=$(".predictive-mobile-search"),this.predictiveSearchModalForMobile=$(".predictive-mobile-search.search-modal"),this.predictiveSearchResult=$(".search-result-container",this.predictiveSearch),this.predictiveSearchResultForMobile=$(".search-result-container",this.predictiveSearchForMobile),this.predictiveSearchResultForDesktop=$(".search-result-container",this.predictiveSearchForDesktop),this.predictiveNoResultContainer=$(".predictive-no-results",this.predictiveSearch),this.predictiveNoResultContainerForMobile=$(".predictive-no-results",this.predictiveSearchForMobile),this.predictiveNoResultContainerForDesktop=$(".predictive-no-results",this.predictiveSearchForDesktop),this.predictiveSearchDescription=$(".search-description",this.predictiveSearch),this.predictiveSearchDescriptionForMobile=$(".search-description",this.predictiveSearchForMobile),this.predictiveSearchDescriptionForDesktop=$(".search-description",this.predictiveSearchForDesktop),this.initializeinputActivePlaceHolder();var e=this.noResults.find(".no-results-text");this.noResultsFoundTextTemplate=e.html(),this.predictiveSearchModalForMobile.find("input").on("focus",function(){window.scrollTo(0,0),document.body.scrollTop=0})}return e.prototype.createNoResultMessage=function(e){var t=document.createElement("span");t.setAttribute("class","blue"),t.innerHTML=e;var i=document.createElement("span");return i.innerHTML=this.productName,this.noResultsFoundTextTemplate.replace("{searchTerm}",t.outerHTML).replace("{product}",i.outerHTML)},e.prototype.showNoResultsMessage=function(e){if(this.noResults.length>0){var t=this.noResults[0],i=this.noResults.find(".no-results-text");if(i.length>0)i[0].innerHTML=this.createNoResultMessage(e);t.hidden=!1}},e.prototype.hideNoResultsMessage=function(){this.noResults.length>0&&(this.noResults[0].hidden=!0)},e.prototype.showErrorMessage=function(e){var t=$("#errorSummary");if(t.length>0){var i=t[0];i.innerHTML=e,i.hidden=!1}},e.prototype.hideLoadingSpinner=function(){var e=$(".items-loader");e.length>0&&(e[0].hidden=!0)},e.prototype.hideClearButton=function(){this.clearButton.length>0&&this.clearButton[0].setAttribute("style","display:none;")},e.prototype.showClearButton=function(){this.clearButton.length>0&&this.clearButton[0].setAttribute("style","display:block;")},e.prototype.updateInputPlaceHolderField=function(e,t){if(this.inputActivePlaceHolder.length>0&&this.inputEmptyPlaceHolder.length>0){var i=this.inputActivePlaceHolder[0],n=this.inputEmptyPlaceHolder[0];if(void 0!=t&&t.length>0){var r=i.getAttribute("data-format"),o=document.createElement("span");o.setAttribute("class","just-gray"),o.innerHTML=t,i.innerHTML=r.replace("{count}",e.toString()).replace("{searchTerm}",o.outerHTML),i.setAttribute("style","display: table-cell;"),n.setAttribute("type","hidden"),this.showClearButton()}else i.setAttribute("style","display: none;"),n.setAttribute("type","text"),this.hideClearButton()}},e.prototype.initializeinputActivePlaceHolder=function(){var e=this;this.inputActivePlaceHolder.on("click",function(){var t=e.inputActivePlaceHolder[0],i=e.inputEmptyPlaceHolder[0];t.setAttribute("style","display: none;"),i.setAttribute("type","text"),i.focus(),e.showClearButton()})},e.prototype.showPredictiveSearch=function(e){e?(this.predictiveSearchModalForMobile.show(),this.predictiveSearchModalForMobile.find("input").focus(),this.predictiveSearchModalForMobile.addClass("open")):this.predictiveSearchForDesktop.show()},e.prototype.hidePredictiveSearch=function(e){e?(this.predictiveSearchModalForMobile.hide(),this.predictiveSearchModalForMobile.removeClass("open")):this.predictiveSearchForDesktop.hide()},e.prototype.showPredictiveSearchNoResult=function(e){var t=this.createNoResultMessage(e);$(".no-results-text",this.predictiveNoResultContainer).each(function(e,i){i.innerHTML=t}),this.predictiveNoResultContainer.show(),this.predictiveSearchResult.hide()},e.prototype.showPredictiveSearchResult=function(e){e?(this.predictiveNoResultContainerForMobile.hide(),this.predictiveSearchResultForMobile.show(),this.predictiveSearchForDesktop.hide()):(this.predictiveNoResultContainerForDesktop.hide(),this.predictiveSearchResultForDesktop.show(),this.predictiveSearchForMobile.hide())},e.prototype.showPredictiveSearchDescription=function(e){e?this.predictiveSearchDescriptionForMobile.show():this.predictiveSearchDescriptionForDesktop.show()},e.prototype.hidePredictiveSearchDescription=function(e){e?this.predictiveSearchDescriptionForMobile.hide():this.predictiveSearchDescriptionForDesktop.hide()},e}();e.PlaceholdersManager=t}(i.IntegrationsModule||(i.IntegrationsModule={}))},{}],41:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Filters/_TextBoxFilter"),r=e("../Helpers/_DeviceHelper");!function(e){var t,i=n.Filters.TextBoxFilter,o=r.Helpers.DeviceHelper;!function(e){e[e.None=0]="None",e[e.Desktop=1]="Desktop",e[e.Mobile=2]="Mobile"}(t||(t={}));var a=function(){function e(e,i,n){var r=this;this.searchInput=$(".predictive-search-control #custom-search-input input"),this.isMobileViewActive=!1,this.activePredictiveSearchState=t.None,this.onMobileFilterChange=function(){r.searchFilter.initOptions(r.mobileSearchFilter.inputValue),r.placeHoldersManager.hidePredictiveSearch(!0),r.onFilterChange()},this.onValueChanged=function(){var e=r.searchFilter.value;e=e.replace(/-/g," ");var i=$(".predictive-desktop-search .search-content");r.handlePredictiveSearch(!1,e,i),r.activePredictiveSearchState=t.Desktop},this.onMobileValueChanged=function(){var e=r.mobileSearchFilter.value;e=e.replace(/-/g," ");var i=$(".predictive-mobile-search .search-content");r.handlePredictiveSearch(!0,e,i),r.activePredictiveSearchState=t.Mobile},null!=e&&void 0!=e&&(this.placeHoldersManager=e,this.bindWindowEvents(),this.initializeSearchFilter(),this.initializePredictiveSearch(),this.onFilterChange=i,this.searchItems=n)}return Object.defineProperty(e.prototype,"value",{get:function(){return this.searchFilter.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMobileViewActiveState",{get:function(){return this.isMobileViewActive},enumerable:!0,configurable:!0}),e.prototype.bindWindowEvents=function(){var e=this;this.updateMobileState(),$(window).bind("resize",function(){!e.isMobileViewActive&&o.isMobile()?(e.placeHoldersManager.hidePredictiveSearch(!1),e.mobileSearchFilter.initOptions(e.searchFilter.inputValue),e.mobileSearchFilter.applyValueChanged()):e.isMobileViewActive&&!o.isMobile()&&(e.placeHoldersManager.hidePredictiveSearch(!0),e.searchFilter.initOptions(e.mobileSearchFilter.inputValue),e.searchFilter.applyValueChanged()),e.updateMobileState()}),$(window).bind("resize scroll",function(){e.updatePredictiveSearchPanelHeight()})},e.prototype.updateMobileState=function(){this.isMobileViewActive=o.isMobile()},e.prototype.updatePredictiveSearchPanelHeight=function(){var e=window.innerHeight-($("#custom-search-input").offset().top+$("#custom-search-input").outerHeight()-$(window).scrollTop()+10);$("#custom-search-input .search-result-container").css("max-height",e>525?525:e)},e.prototype.initializeSearchFilter=function(){var e=this;this.searchFilter=new i(".predictive-search-control #custom-search-input",!0),this.searchFilter.subscribeToFilterChangeEvent(function(){e.onFilterChange()}),this.searchFilter.subscribeToValueChangeEvent(function(){e.onValueChanged()}),this.mobileSearchFilter=new i(".predictive-mobile-search #custom-search-input-mobile",!0),this.mobileSearchFilter.subscribeToFilterChangeEvent(function(){e.onMobileFilterChange()}),this.mobileSearchFilter.subscribeToValueChangeEvent(function(){e.onMobileValueChanged()})},e.prototype.closeDesktopPredictiveSearch=function(){this.activePredictiveSearchState=t.None,this.placeHoldersManager.hidePredictiveSearch(!1)},e.prototype.closeMobilePredictiveSearch=function(){this.activePredictiveSearchState=t.None,this.placeHoldersManager.hidePredictiveSearch(!0)},e.prototype.initializePredictiveSearch=function(){var e=this;this.searchInput.on("click",function(i){e.isMobileViewActive?(e.mobileSearchFilter.initOptions(e.searchFilter.inputValue),e.mobileSearchFilter.applyValueChanged()):e.activePredictiveSearchState!=t.Desktop&&e.searchFilter.applyValueChanged()}),$(".predictive-search-control .search-active").on("click",function(t){e.isMobileViewActive?(e.mobileSearchFilter.initOptions(e.searchFilter.inputValue),e.mobileSearchFilter.applyValueChanged()):e.searchFilter.applyValueChanged()}),$("#custom-search-input .predictive-desktop-search").on("click",function(e){$(e.target).is("a")||e.stopPropagation()}),$(document).on("click",function(t){e.isMobileViewActive||e.searchInput[0]==t.target||e.closeDesktopPredictiveSearch()}),$(".search-modal .modal-close button").on("click",function(t){e.closeMobilePredictiveSearch()}),$("#custom-search-input-mobile button.search").on("click",function(){e.searchFilter.initOptions(e.mobileSearchFilter.inputValue),e.searchFilter.apply(),e.closeMobilePredictiveSearch()})},e.prototype.handlePredictiveSearch=function(e,t,i){var n=this.searchItems(t);t.length>0?this.placeHoldersManager.hidePredictiveSearchDescription(e):this.placeHoldersManager.showPredictiveSearchDescription(e),0===n.length?this.placeHoldersManager.showPredictiveSearchNoResult(t):(i.empty(),n.forEach(function(e){i.append(e.html)}),this.placeHoldersManager.showPredictiveSearchResult(e)),this.placeHoldersManager.showPredictiveSearch(e)},e}();e.PredictiveSearchController=a}(i.IntegrationsModule||(i.IntegrationsModule={}))},{"../Filters/_TextBoxFilter":24,"../Helpers/_DeviceHelper":27}],42:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){this.integrationCardsPlaceHolder=$(".integration-cards-holder"),this.integrationFilterPlaceHolder=$(".integrations-filter .options-panel")}return e.prototype.renderCards=function(e){this.clearCards();for(var t=0,i=e;t<i.length;t++){var n=i[t];this.integrationCardsPlaceHolder.length>0&&this.integrationCardsPlaceHolder[0].appendChild(this.renderCard(n))}},e.prototype.renderFilterOptions=function(e){this.clearFilter();for(var t=0,i=e;t<i.length;t++){var n=i[t];this.integrationFilterPlaceHolder.length>0&&this.integrationFilterPlaceHolder[0].appendChild(this.renderOption(n))}},e.prototype.createPredictiveSearchListItem=function(e,t,i,n){var r=t.substr(0,i);return r+="<strong>"+t.substr(i,n-i)+"</strong>",r+=t.substr(n),$('<a class="list-group-item" data-linktype="Integration Card" data-linkdetail="'+t+'"></a>').attr("href",e).html(r)},e.prototype.renderOption=function(e){if(void 0!=e){var t=document.createElement("label");t.setAttribute("class","category-container");var i=document.createElement("input");i.setAttribute("type","checkbox"),i.setAttribute("name",e.id),i.setAttribute("value",e.id),i.setAttribute("data-linktype","Filter Control"),i.setAttribute("data-linkdetail",e.id),t.innerHTML=e.name,t.insertBefore(i,t.firstChild);var n=document.createElement("br");t.appendChild(n);var r=document.createElement("span");return r.setAttribute("class","checkmark"),t.appendChild(r),t}},e.prototype.clearCards=function(){this.integrationCardsPlaceHolder.empty()},e.prototype.clearFilter=function(){this.integrationFilterPlaceHolder.empty()},e.prototype.renderCard=function(e){var t=document.createElement("div");t.setAttribute("class","integration-card thumbnail col-lg-2-4 col-md-3 col-xs-6");var i=document.createElement("div");i.setAttribute("class","card-title"),i.innerHTML=e.title,t.appendChild(i);var n=document.createElement("img");n.setAttribute("src",e.imageSrc),t.appendChild(n);var r=document.createElement("a");r.setAttribute("data-linktype","Integration"),r.setAttribute("data-linkdetail",e.title),r.setAttribute("href",e.linkUrl),r.setAttribute("class","overlay "+e.color+"-background"),r.setAttribute("tabindex","0"),""!=e.linkTarget&&void 0!=e.linkTarget&&r.setAttribute("target",e.linkTarget);var o=document.createElement("div");o.setAttribute("class","headline");var a=document.createElement("div");a.setAttribute("class","title"),a.innerHTML=e.title,o.appendChild(a);var s=document.createElement("div");s.setAttribute("class","content"),s.innerHTML=e.description,o.appendChild(s);var l=document.createElement("p");return l.setAttribute("class","card-link"),l.innerHTML=e.linkText,o.appendChild(l),r.appendChild(o),t.appendChild(r),t},e}();e.IntegrationsRenderingManager=t}(i.IntegrationsModule||(i.IntegrationsModule={}))},{}],43:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){this.renderingManager=e}return e.prototype.splitToTerms=function(e){return e.replace(/ /g,"|")},e.prototype.searchItems=function(e,t,i){void 0===i&&(i=!1);var n=new Array;if(t.length>0)for(var r=new RegExp(this.splitToTerms(t)),o=0,a=e;o<a.length;o++){var s=(h=a[o]).title.toLowerCase(),l=s.indexOf(t);if(l>-1)i&&(h.html=this.renderingManager.createPredictiveSearchListItem(h.linkUrl,h.title,l,l+t.length)),0===l?(h.priority=1,n.push(h)):(h.priority=2,n.push(h));else if(r.test(s))i&&(h.html=this.renderingManager.createPredictiveSearchListItem(h.linkUrl,h.title,0,0)),h.priority=3,n.push(h);else{var c=h.description.toLowerCase();c.indexOf(t)>-1?(i&&(h.html=this.renderingManager.createPredictiveSearchListItem(h.linkUrl,h.title,0,0)),h.priority=4,n.push(h)):r.test(c)&&(i&&(h.html=this.renderingManager.createPredictiveSearchListItem(h.linkUrl,h.title,0,0)),h.priority=5,n.push(h))}}else for(var u=0,d=e;u<d.length;u++){var h=d[u];i&&(h.html=this.renderingManager.createPredictiveSearchListItem(h.linkUrl,h.title,0,0)),h.priority=1,n.push(h)}return n.sort(function(e){return e.priority})},e}();e.SearchEngine=t}(i.IntegrationsModule||(i.IntegrationsModule={}))},{}],44:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.ContactInfoRequest=t}(i.IpGeoAPI||(i.IpGeoAPI={}))},{}],45:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.Email=void 0,this.Phone=void 0}return n([t("email"),r("design:type",String)],e.prototype,"Email",void 0),n([t("phone"),r("design:type",String)],e.prototype,"Phone",void 0),e}();e.GeoContactInfo=i}(i.IpGeoAPI||(i.IpGeoAPI={}))},{"../../Helpers/_MapHelper":30}],46:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.CountrySelectionMapRequest=t}(i.IpGeoAPI||(i.IpGeoAPI={}))},{}],47:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../Helpers/_MapHelper"),a=e("./Models/_ContactInfoResponse"),s=e("./Models/_CountrySelectionMapRequest"),l=e("../Helpers/_IPAddressHelper"),c=e("../Caching/_SessionCache"),u=e("../Helpers/_AjaxHelper");!function(e){var t=o.Helpers.MapHelper,i=a.IpGeoAPI.GeoContactInfo,d=s.IpGeoAPI.CountrySelectionMapRequest,h=l.Helpers.IPAddressHelper,p=c.Caching.SessionCache,f=u.Helpers.AjaxHelper,g=function(){function e(){this.ajaxUrl=window.AzureFunctionsHost,this.ajaxUrl&&0!==this.ajaxUrl.length||(this.ajaxUrl="https://api-webdev.solarwinds.com"),this.ipAddress=h.IPAddress(),this.cache=new p}return e.prototype.getContactInfoIpGeo=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return e.ipAddress=this.ipAddress,[2,this.callIpGeoAPI("/api/getipgeoinfoforcountry",e,i)]})})},e.prototype.getIpGeoCountrySelectionMap=function(e){return n(this,void 0,void 0,function(){var t;return r(this,function(i){return(t=new d).ipGeos=e,t.ipAddress=this.ipAddress,[2,this.callIpGeoAPI("/api/getipgeocountryselectionmap",t)]})})},e.prototype.isGdprApplicable=function(){return n(this,void 0,void 0,function(){return r(this,function(e){return[2,this.callIpGeoAPI("/api/isgdprapplicable",{ipAddress:this.ipAddress})]})})},e.prototype.callIpGeoAPI=function(e,i,o){return n(this,void 0,void 0,function(){var n,a=this;return r(this,function(r){return n=f.getAPIMethodNameFromURL(e)+JSON.stringify(i),[2,new Promise(function(r,s){var l=a.cache.getCachedResponse(n,o);if(null==l){var c={url:a.ajaxUrl+e,method:"GET",dataType:"json",traditional:!0,data:i};$.ajax(c).done(function(e){var i=o?t.deserialize(o,e):e;a.cache.updateCachedValue(n,JSON.stringify(i)),r(i)}).fail(function(e,t){var i="Request failed. Returned status of "+e.status;0!==e.status&&TrackJS.track(i),s(i)})}else r(l)})]})})},e}();e.IpGeo=g}(i.IpGeoAPI||(i.IpGeoAPI={}))},{"../Caching/_SessionCache":13,"../Helpers/_AjaxHelper":25,"../Helpers/_IPAddressHelper":28,"../Helpers/_MapHelper":30,"./Models/_ContactInfoResponse":45,"./Models/_CountrySelectionMapRequest":46}],48:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.ContactInfoRequestElementMap=t}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{}],49:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../IpGeoAPI/_IpGeo"),r=e("../IpGeoAPI/Models/_ContactInfoRequest"),o=e("../IpGeoAPI/Models/_ContactInfoResponse"),a=e("./Models/_ContactInfoRequestElementMap"),s=e("../Helpers/_LanguageHelper");!function(e){var t=n.IpGeoAPI.IpGeo,i=r.IpGeoAPI.ContactInfoRequest,l=o.IpGeoAPI.GeoContactInfo,c=a.PlaceholderDataProcessing.ContactInfoRequestElementMap,u=s.Helpers.LanguageHelper,d=function(){function e(){this.contactPhonePlaceholderRegex=/{#Contact Phone#}/gi,this.contactEmailPlaceholderRegex=/{#Contact Email#}/gi,this.requestElementsMap=new Array,this.elements=new Array}return e.prototype.addElement=function(e){this.elements.push(e)},e.prototype.process=function(){var e=this;if(this.elements.length>0){this.ipGeoFunction=new t;for(var i=0,n=this.elements;i<n.length;i++){var r=n[i],o=this.prepareContactInfoRequest(r);this.addRequestToMap(o,r)}for(var a=function(t){s.ipGeoFunction.getContactInfoIpGeo(t.request).then(function(i){e.processContactInfoPlaceholders(t.elements,i)}).catch(function(i){console.warn("There was an error getting ContactInfo details. Data: "+i),e.processContactInfoPlaceholders(t.elements,new l)})},s=this,c=0,u=this.requestElementsMap;c<u.length;c++){a(u[c])}}},e.prototype.addRequestToMap=function(e,t){var i=this.requestElementsMap.find(function(t){return t.request.geoType===e.geoType&&t.request.profile===e.profile});if(i)i.elements.push(t);else{var n=new c;n.request=e,n.elements=new Array,n.elements.push(t),this.requestElementsMap.push(n)}},e.prototype.prepareContactInfoRequest=function(e){var t=new i;return t.geoType=e.getAttribute("data-service-geoType"),t.geoType=null==t.geoType||0===t.geoType.length?"local":t.geoType,t.profile=e.getAttribute("data-service-profile"),t.profile=null==t.profile||0===t.profile.length?"main":t.profile,t.lang=u.getCurrentLanguage(),t},e.prototype.processContactInfoPlaceholders=function(e,t){if(t)for(var i=0,n=e;i<n.length;i++){var r=n[i],o=void 0===t.Email?r.getAttribute("data-service-default-email"):t.Email.toLowerCase();r.innerHTML=r.innerHTML.replace(this.contactEmailPlaceholderRegex,o);var a=void 0===t.Phone?r.getAttribute("data-service-default-phone"):t.Phone;r.innerHTML=r.innerHTML.replace(this.contactPhonePlaceholderRegex,a),r.style.visibility="visible"}},e}();e.ContactInfoPlaceholderProcessor=d}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{"../Helpers/_LanguageHelper":29,"../IpGeoAPI/Models/_ContactInfoRequest":44,"../IpGeoAPI/Models/_ContactInfoResponse":45,"../IpGeoAPI/_IpGeo":47,"./Models/_ContactInfoRequestElementMap":48}],50:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_PricingPlaceholderProcessor"),r=e("./_ContactInfoPlaceholderProcessor");!function(e){var t=n.PlaceholderDataProcessing.PricingPlaceholderProcessor,i=r.PlaceholderDataProcessing.ContactInfoPlaceholderProcessor,o=function(){function e(){this.placeholderProcessors=new Array;var e=document.querySelectorAll("[data-service-placeholder-id]");e.length>0&&(this.elementsWithPlaceholder=e,this.pricingPlaceholderProcessor=new t,this.contactInfoPlaceholderProcessor=new i,this.placeholderProcessors.push(this.pricingPlaceholderProcessor),this.placeholderProcessors.push(this.contactInfoPlaceholderProcessor),this.init())}return e.prototype.init=function(){var e=this;this.elementsWithPlaceholder&&window.addEventListener("DOMContentLoaded",function(){e.processPlaceHolders()})},e.prototype.processPlaceHolders=function(){var e=this;Array.prototype.forEach.call(this.elementsWithPlaceholder,function(t){switch(t.getAttribute("data-service-placeholder-id")){case"ProductPrice":e.pricingPlaceholderProcessor.addElement(t);break;case"ContactInfo":e.contactInfoPlaceholderProcessor.addElement(t)}});for(var t=0,i=this.placeholderProcessors;t<i.length;t++){i[t].process()}},e}();e.PlaceholderDataProcessor=o}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{"./_ContactInfoPlaceholderProcessor":49,"./_PricingPlaceholderProcessor":51}],51:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../AzureFunctionAPI/Models/_PricingProductRequest"),r=e("../AzureFunctionAPI/_AzureFunction"),o=e("../Helpers/_PriceLocalizationHelper");!function(e){var t=n.AzureFunctionAPI.PricingProductRequest,i=r.AzureFunctionAPI.AzureFunction,a=o.Helpers.PriceLocalizationHelper,s=function(){function e(){this.placeholderRegex=/{#Product Price#}/gi,this.skuElements={},this.allPageProductsSkus=new Array,this.elements=new Array}return e.prototype.addElement=function(e){this.elements.push(e)},e.prototype.process=function(){var e=this;if(this.elements.length>0&&(this.azureFunction=new i,this.getAllPageSkus(),this.allPageProductsSkus&&this.allPageProductsSkus.length>0)){var n=new t;n.skus=this.allPageProductsSkus,this.azureFunction.getProductPricing(n).then(function(t){if(t&&t.skuPricing&&t.skuPricing.length>0)for(var i=0,n=t.skuPricing;i<n.length;i++){var r=n[i];e.processSku(r)}else e.processFallbackPrice()}).catch(function(t){console.error("Error: There was an error getting pricing details. Data: "+t),e.processFallbackPrice()})}},e.prototype.getAllPageSkus=function(){for(var e=0,t=this.elements;e<t.length;e++){var i=t[e],n=i.getAttribute("data-service-sku");n?(this.allPageProductsSkus.indexOf(n)<0&&this.allPageProductsSkus.push(n),this.skuElements[n]||(this.skuElements[n]=new Array),this.skuElements[n].push(i)):i.style.visibility="visible"}},e.prototype.processSku=function(e){var t=this.skuElements[e.sku];if(t&&t.length>0)for(var i=a.getLocalizedPrice(e.amount,e.currencySign),n=0,r=t;n<r.length;n++){var o=r[n];o.innerHTML=o.innerHTML.replace(this.placeholderRegex,i),o.style.visibility="visible"}},e.prototype.processFallbackPrice=function(){for(var e=0,t=this.allPageProductsSkus;e<t.length;e++){var i=t[e],n=this.skuElements[i];if(n&&n.length>0)for(var r=0,o=n;r<o.length;r++){var a=o[r],s=a.getAttribute("data-service-default");a.innerHTML=a.innerHTML.replace(this.placeholderRegex,s),a.style.visibility="visible"}}},e}();e.PricingPlaceholderProcessor=s}(i.PlaceholderDataProcessing||(i.PlaceholderDataProcessing={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":7,"../AzureFunctionAPI/_AzureFunction":11,"../Helpers/_PriceLocalizationHelper":31}],52:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.CalculatedResult=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],53:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.skus=[]}}();e.CardPricing=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],54:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.cards=[]}}();e.CardPricingConfiguration=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],55:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.skus=[]}}();e.SkuGroup=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],56:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.SkuModel=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],57:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_PricingCalculatorSimple"),r=e("./_pricingCalculatorHelper"),o=e("../AzureFunctionAPI/Models/_PricingProductRequest"),a=e("../AzureFunctionAPI/_AzureFunction"),s=e("./_PricingCalculatorMultiply");!function(e){var t=n.PricingCalculator.PricingCalculatorSimple,i=r.PricingCalculator.PricingCalculatorHelper,l=s.PricingCalculator.PricingCalculatorMultiply,c=a.AzureFunctionAPI.AzureFunction,u=o.AzureFunctionAPI.PricingProductRequest,d=function(){function e(){this.simpleCalculators=[],this.multiplyCalculators=[],this.init()}return e.prototype.init=function(){for(var e=this,n=[],r=$(".pricing-calculator--simple"),o=$(".pricing-calculator--multiple"),a=0;a<r.length;a++){var s=new t(r[a]),d=s.getUsedSkus();n=i.mergeArrays(n,d),this.simpleCalculators.push(s)}for(a=0;a<o.length;a++){var h=new l(o[a]);d=h.getUsedSkus();n=i.mergeArrays(n,d),this.multiplyCalculators.push(h)}if(n.length>0){this.azureFunction=new c;var p=new u;p.skus=n,this.azureFunction.getProductPricing(p).then(function(t){t&&t.skuPricing&&t.skuPricing.length>0?e.azureFunction.getIpLocationData().then(function(i){i&&i.isoCountryCode?e.updatePricingAndCountry(t.skuPricing,i.isoCountryCode):(console.error("Empty location response"),e.enableCalculators())}).catch(function(t){console.error("Error: There was an error countryCode. Data: "+t),e.enableCalculators()}):(console.error("Empty pricing response"),e.enableCalculators())}).catch(function(t){console.error("Error: There was an error getting pricing details. Data: "+t),e.enableCalculators()})}},e.prototype.updatePricingAndCountry=function(e,t){for(var i=0;i<this.simpleCalculators.length;i++)this.simpleCalculators[i].setPriceValuesAndCountryCode(e,t);for(i=0;i<this.multiplyCalculators.length;i++)this.multiplyCalculators[i].setPriceValue(e)},e.prototype.enableCalculators=function(){for(var e=0;e<this.simpleCalculators.length;e++)this.simpleCalculators[e].enableQuantityInput();for(e=0;e<this.multiplyCalculators.length;e++)this.multiplyCalculators[e].enableQuantityInput()},e}();e.PricingCalculatorController=d}(i.PricingCalculator||(i.PricingCalculator={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":7,"../AzureFunctionAPI/_AzureFunction":11,"./_PricingCalculatorMultiply":59,"./_PricingCalculatorSimple":60,"./_pricingCalculatorHelper":61}],58:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){var t=this;this.wrapper=$(e),this.modal=this.wrapper.find(".lightbox"),this.closeButton=this.wrapper.find(".lightbox-close"),$(this.wrapper).on("click",function(e){t.wrapper.hide()}),$(this.closeButton).on("click",function(e){t.wrapper.hide()}),$(this.modal).on("click",function(e){e.stopPropagation()})}return e.prototype.show=function(){this.wrapper.show()},e}();e.PricingCalculatorLightBox=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],59:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var PricingCalculatorLightBoxModule=require("./_PricingCalculatorLightBox"),CalculatedResultModule=require("./Models/_CalculatedResult"),SkuModelModule=require("./Models/_SkuModel"),PricingCalculatorHelperModule=require("./_pricingCalculatorHelper"),CardPricingConfigurationModule=require("./Models/_CardPricingConfiguration"),CardPricingModule=require("./Models/_CardPricing"),PricingCalculator;!function(PricingCalculator){var PricingCalculatorLightBox=PricingCalculatorLightBoxModule.PricingCalculator.PricingCalculatorLightBox,CardPricingConfiguration=CardPricingConfigurationModule.PricingCalculator.CardPricingConfiguration,CardPricing=CardPricingModule.PricingCalculator.CardPricing,SkuModel=SkuModelModule.PricingCalculator.SkuModel,CalculatedResult=CalculatedResultModule.PricingCalculator.CalculatedResult,PricingCalculatorHelper=PricingCalculatorHelperModule.PricingCalculator.PricingCalculatorHelper,PricingCalculatorMultiply=function(){function PricingCalculatorMultiply(e){var t=this,i=$(e);if(i.length>0){this.toolTipElement=$(i).find(".tool-tip-icon");var n=$(i).find(".lightbox-wrapper");this.toolTipElement.length>0&&n.length>0&&(this.lightBox=new PricingCalculatorLightBox(n[0]),$(this.toolTipElement).on("click",function(e){t.lightBox.show()})),this.inputElement=$(i).find("input[name=numberOfElements]"),this.formulaString=$(i).find("input[name=formula]").val(),this.instructions=$(i).find(".instructions-text"),this.calculatedArea=$(i).find(".row.calculated-area__cards");var r=$(i).find("input[name=cardsConfigurations]").val();this.pricingConfiguration=this.parseConfigurationFromString(r),this.currencySymbol=$(i).find("input[name=currencySymbol]").val(),$(this.inputElement).on("keyup",function(e){t.refreshPricing()})}}return PricingCalculatorMultiply.prototype.parseConfigurationFromString=function(e){var t=new CardPricingConfiguration;if(e){var i=$.parseJSON(e);if(i&&i.hasOwnProperty("cards")&&Array.isArray(i.cards))for(var n=0;n<i.cards.length;n++){var r=new CardPricing;r.id=i.cards[n].id,r.license=i.cards[n].license;for(var o=0;o<i.cards[n].skus.length;o++){var a=new SkuModel;a.sku=i.cards[n].skus[o].SKU,a.shortName=i.cards[n].skus[o].ShortName,a.description=i.cards[n].skus[o].Description,a.maintenance=i.cards[n].skus[o].Maintenance,a.price=i.cards[n].skus[o].Price,a.intPrice=i.cards[n].skus[o].IntPrice,a.maxUnits=i.cards[n].skus[o].MaxUnits,a.isUnlimitedUsersLicense=i.cards[n].skus[o].IsUnlimitedUsersLicense,a.skuType=i.cards[n].skus[o].SKUType,r.skus.push(a)}r.skus.length>0&&t.cards.push(r)}}return t},PricingCalculatorMultiply.prototype.refreshPricing=function(){var e=this.inputElement.val();if(e){for(var t=0;t<this.pricingConfiguration.cards.length;t++){var i=this.calculateBestSku(e,this.pricingConfiguration.cards[t]);this.updateCard(this.pricingConfiguration.cards[t],i)}this.toggleCalculatedArea(!0)}else this.toggleCalculatedArea(!1)},PricingCalculatorMultiply.prototype.calculateBestSku=function(value,card){if(!value||!/^-?[0-9]+$/.test(value)||!card||0===card.skus.length)return null;var inputValue=parseInt(value,10);if(inputValue>0){var preparedFormula=this.formulaString.replace("{#input#}",inputValue.toString());try{var calculatedResultValue=eval(preparedFormula);if(!isNaN(calculatedResultValue)){for(var bestSku=card.skus[0],i=1;i<card.skus.length;i++)(card.skus[i].maxUnits>=calculatedResultValue&&(bestSku.maxUnits>card.skus[i].maxUnits||bestSku.maxUnits<calculatedResultValue)||card.skus[i].maxUnits<calculatedResultValue&&bestSku.maxUnits<card.skus[i].maxUnits)&&(bestSku=card.skus[i]);var result=new CalculatedResult;return result.sku=bestSku,result.quantity="tier"===card.license.toString().toLowerCase()||bestSku.isUnlimitedUsersLicense?1:inputValue,result}}catch(e){console.log("exсeption"+e)}}return null},PricingCalculatorMultiply.prototype.updateCard=function(e,t){if(e&&t){var i=this.currencySymbol+PricingCalculatorHelper.numberWithCommas(t.quantity*t.sku.intPrice),n=this.calculatedArea.find('.calculated-area__product__card[data-product-id="'+e.id+'"]');n.length>0&&$(n).find(".price").first().text(i)}},PricingCalculatorMultiply.prototype.toggleCalculatedArea=function(e){this.calculatedArea&&this.calculatedArea.toggle(e),this.instructions&&this.instructions.toggle(!e)},PricingCalculatorMultiply.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.pricingConfiguration.cards.length;t++)for(var i=this.pricingConfiguration.cards[t].skus.map(function(e){return e.sku}),n=0;n<i.length;n++)e.indexOf(i[n])<0&&e.push(i[n]);return e},PricingCalculatorMultiply.prototype.setPriceValue=function(e){if(e&&e.length>0){this.currencySymbol=e[0].currencySign;for(var t=this,i=0;i<this.pricingConfiguration.cards.length;i++)for(var n=0;n<this.pricingConfiguration.cards[i].skus.length;n++){var r=e.filter(function(e){return e.sku===t.pricingConfiguration.cards[i].skus[n].sku});r.length>0&&(t.pricingConfiguration.cards[i].skus[n].price=r[0].pricingString,t.pricingConfiguration.cards[i].skus[n].intPrice=r[0].amount)}this.inputElement.removeClass("invisible")}},PricingCalculatorMultiply.prototype.enableQuantityInput=function(){this.inputElement.removeClass("invisible")},PricingCalculatorMultiply}();PricingCalculator.PricingCalculatorMultiply=PricingCalculatorMultiply}(PricingCalculator=exports.PricingCalculator||(exports.PricingCalculator={}))},{"./Models/_CalculatedResult":52,"./Models/_CardPricing":53,"./Models/_CardPricingConfiguration":54,"./Models/_SkuModel":56,"./_PricingCalculatorLightBox":58,"./_pricingCalculatorHelper":61}],60:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var SkuGroupModule=require("./Models/_SkuGroup"),PricingCalculatorLightBoxModule=require("./_PricingCalculatorLightBox"),CalculatedResultModule=require("./Models/_CalculatedResult"),SkuModelModule=require("./Models/_SkuModel"),PricingCalculatorHelperModule=require("./_pricingCalculatorHelper"),PricingCalculator;!function(PricingCalculator){var SkuGroup=SkuGroupModule.PricingCalculator.SkuGroup,PricingCalculatorLightBox=PricingCalculatorLightBoxModule.PricingCalculator.PricingCalculatorLightBox,CalculatedResult=CalculatedResultModule.PricingCalculator.CalculatedResult,SkuModel=SkuModelModule.PricingCalculator.SkuModel,PricingCalculatorHelper=PricingCalculatorHelperModule.PricingCalculator.PricingCalculatorHelper,PricingCalculatorSimple=function(){function PricingCalculatorSimple(e){var t=this;this.switchToMobileWidthThreshold=614,this.isBuyNow=!1,this.useOnlineQuoteDeepLink=!1;var i=$(e);if(i.length>0){this.inputElement=$(i).find("input[name=numberOfElements]"),this.instructionElement=$(i).find(".instructions-text"),this.skusGroups=this.initSkuFromString($(i).find("input[name=productSKUs]").val()),this.formulaString=$(i).find("input[name=formula]").val(),this.currencySymbol=$(i).find("input[name=currencySymbol]").val(),this.countryCode=$(i).find("input[name=countryCode]").val(),"true"===$(i).find("input[name=isBuynow]").val()&&(this.isBuyNow=!0,this.buyNowBaseUrl=$(i).find("input[name=buyNowBaseURL]").val()),this.licenseType=$(i).find("input[name=productLicenseType]").val(),"true"===$(i).find("input[name=useSKUDeeplinking]").val()&&(this.useOnlineQuoteDeepLink=!0,this.onlineQuoteBaseUrl=$(i).find("input[name=onlineQuoteBaseURL]").val(),this.productCode=$(i).find("input[name=productCode]").val()),this.toolTipElement=$(i).find(".tool-tip-icon");var n=$(i).find(".lightbox-wrapper");this.toolTipElement.length>0&&n.length>0&&(this.lightBox=new PricingCalculatorLightBox(n[0]),$(this.toolTipElement).on("click",function(e){t.lightBox.show()})),this.resultSectionElement=$(i).find(".calculated-area"),this.resultSections=$(i).find(".result-section"),$(this.inputElement).on("keyup",function(e){t.refreshPricing(),t.resizeCards()}),$(window).on("resize",function(e){t.resizeCards()})}}return PricingCalculatorSimple.prototype.initSkuFromString=function(e){var t=[];if(e){var i=$.parseJSON(e);if(i&&Array.isArray(i))for(var n=0;n<i.length;n++)if(i[n].SKUs.length>0){var r=new SkuGroup;r.skuType=i[n].SKUType;for(var o=0;o<i[n].SKUs.length;o++){var a=new SkuModel;a.sku=i[n].SKUs[o].SKU,a.shortName=i[n].SKUs[o].ShortName,a.description=i[n].SKUs[o].Description,a.maintenance=i[n].SKUs[o].Maintenance,a.price=i[n].SKUs[o].Price,a.intPrice=i[n].SKUs[o].IntPrice,a.maxUnits=i[n].SKUs[o].MaxUnits,a.isUnlimitedUsersLicense=i[n].SKUs[o].IsUnlimitedUsersLicense,a.skuType=i[n].SKUs[o].SKUType,r.skus.push(a)}t.push(r)}}return t},PricingCalculatorSimple.prototype.getOnlineQuoteUrlWithDeepLink=function(e){return e&&e.quantity>0&&e.sku&&e.sku.sku?this.onlineQuoteBaseUrl+"?productcode="+this.productCode+"&sku="+e.sku.sku+"&qty="+e.quantity:""},PricingCalculatorSimple.prototype.getResultBuyNowUrl=function(e){return e&&e.quantity>0&&e.sku&&e.sku.sku?this.buyNowBaseUrl+"?country="+this.countryCode+"&sku="+e.sku.sku+"&qty="+e.quantity:""},PricingCalculatorSimple.prototype.calculateBestSku=function(value,skuType){if(!value||isNaN(skuType)||!/^-?[0-9]+$/.test(value))return null;var specificSkuGroup=this.skusGroups.filter(function(e){return e.skuType===skuType});if(!specificSkuGroup||0===specificSkuGroup.length)return null;var inputValue=parseInt(value,10);if(inputValue>0){var preparedFormula=this.formulaString.replace("{#input#}",inputValue.toString());try{var calculatedResultValue=eval(preparedFormula);if(!isNaN(calculatedResultValue)){for(var bestSku=specificSkuGroup[0].skus[0],i=1;i<specificSkuGroup[0].skus.length;i++)(specificSkuGroup[0].skus[i].maxUnits>=calculatedResultValue&&(bestSku.maxUnits>specificSkuGroup[0].skus[i].maxUnits||bestSku.maxUnits<calculatedResultValue)||specificSkuGroup[0].skus[i].maxUnits<calculatedResultValue&&bestSku.maxUnits<specificSkuGroup[0].skus[i].maxUnits)&&(bestSku=specificSkuGroup[0].skus[i]);var result=new CalculatedResult;return result.sku=bestSku,result.quantity="Tier"===this.licenseType||bestSku.isUnlimitedUsersLicense?1:inputValue,result}}catch(e){console.log("exсeption"+e)}}return null},PricingCalculatorSimple.prototype.refreshPricing=function(){for(var e=this.inputElement.val(),t=0;t<this.resultSections.length;t++){var i=$(this.resultSections[t]).attr("data-sku-type"),n=this.calculateBestSku(e,parseInt(i,10)),r=$(this.resultSections[t]).find(".price"),o=$(this.resultSections[t]).find(".recommended-sku-name"),a=($(this.resultSections[t]).find(".instructions-text"),$(this.resultSections[t]).find(".calcResultBtn")),s=$(this.resultSections[t]).find(".get-quote-link");if(null!==n){var l=this.currencySymbol+PricingCalculatorHelper.numberWithCommas(n.quantity*n.sku.intPrice);r.text(l),"Tier"===this.licenseType?o.text(n.sku.shortName):o.text(n.sku.description),this.resultSectionElement.show(),this.instructionElement&&this.instructionElement.hide(),this.isBuyNow&&(a.attr("href",this.getResultBuyNowUrl(n)),a.removeClass("disabled")),this.useOnlineQuoteDeepLink&&s.attr("href",this.getOnlineQuoteUrlWithDeepLink(n))}else this.resultSectionElement.hide(),this.instructionElement&&this.instructionElement.show(),r.text(""),o.text(""),this.isBuyNow&&(a.attr("href",""),a.addClass("disabled")),this.useOnlineQuoteDeepLink&&s.attr("href","")}},PricingCalculatorSimple.prototype.resizeRow=function(e){if(e){var t,i=$(window).outerWidth()>this.switchToMobileWidthThreshold;(t=Math.max.apply(Math,e.map(function(){return $(this).outerHeight()}).get()))&&i?$(e).css("height",t):$(e).css("height","auto")}},PricingCalculatorSimple.prototype.resizeCards=function(){this.resizeRow(this.resultSections.find(".header-row")),this.resizeRow(this.resultSections.find(".recommended-sku-row")),this.resizeRow(this.resultSections.find(".license-decription-row")),this.resizeRow(this.resultSections.find(".price-row")),this.resizeRow(this.resultSections.find(".underbutton-link--row"))},PricingCalculatorSimple.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.skusGroups.length;t++)for(var i=this.skusGroups[t].skus.map(function(e){return e.sku}),n=0;n<i.length;n++)e.indexOf(i[n])<0&&e.push(i[n]);return e},PricingCalculatorSimple.prototype.setPriceValuesAndCountryCode=function(e,t){if(t&&(this.countryCode=t),e&&e.length>0){this.currencySymbol=e[0].currencySign;for(var i=this,n=0;n<this.skusGroups.length;n++)for(var r=0;r<this.skusGroups[n].skus.length;r++){var o=e.filter(function(e){return e.sku===i.skusGroups[n].skus[r].sku});o.length>0&&(i.skusGroups[n].skus[r].price=o[0].pricingString,i.skusGroups[n].skus[r].intPrice=o[0].amount)}this.inputElement.removeClass("invisible")}},PricingCalculatorSimple.prototype.enableQuantityInput=function(){this.inputElement.removeClass("invisible")},PricingCalculatorSimple}();PricingCalculator.PricingCalculatorSimple=PricingCalculatorSimple}(PricingCalculator=exports.PricingCalculator||(exports.PricingCalculator={}))},{"./Models/_CalculatedResult":52,"./Models/_SkuGroup":55,"./Models/_SkuModel":56,"./_PricingCalculatorLightBox":58,"./_pricingCalculatorHelper":61}],61:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){}return e.numberWithCommas=function(e){return isNaN(e)?"0":e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},e.mergeArrays=function(e,t){return e.concat(t.filter(function(t){return-1===e.indexOf(t)}))},e}();e.PricingCalculatorHelper=t}(i.PricingCalculator||(i.PricingCalculator={}))},{}],62:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){!function(e){var t=function(){function e(){this.productBenefitsComponent=$(".product-benefits-main"),this.hiddenItems=$(".benefits-items-container .benefit-item-hidden"),this.viewMoreButton=$(".benefits-view-container .benefits-view-more"),this.viewLessButton=$(".benefits-view-container .benefits-view-less"),null!=this.productBenefitsComponent&&this.productBenefitsComponent.length>0&&(console.log("benefits rendered"),this.initializeButtonEvents())}return e.prototype.initializeButtonEvents=function(){var e=this;this.viewMoreButton.click(function(){e.hiddenItems.removeClass("hidden"),e.viewMoreButton.hide(),e.viewLessButton.show()}),this.viewLessButton.click(function(){e.hiddenItems.addClass("hidden"),e.viewLessButton.hide(),e.viewMoreButton.show()})},e}();e.IndexPageController=t}(e.ProductBenefits||(e.ProductBenefits={}))}(i.ProductComparison||(i.ProductComparison={}))},{}],63:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.page=0,this.itemsPerPage=4,this.challengesNames=[],this.typesNames=[],this.deployTypesNames=[],this.integrationsNames=[],this.vendorsNames=[],this.rolesNames=[],this.industriesNames=[],this.marketplacesNames=[],this.platformsNames=[],this.searchTerm="",this.SkipFeaturedResources=!1,this.linkLanguageName=""}}();e.RequestModel=t}(i.ProductIndexComponentModule||(i.ProductIndexComponentModule={}))},{}],64:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.MapHelper,i=o.Helpers.JsonProperty,a=function(){function e(){this.nonFeaturedCards=void 0,this.featuredCards=void 0,this.totalResults=void 0,this.status=void 0,this.errorMessage=void 0}return e.parseJsonObject=function(i){return t.deserialize(e,i)},n([i("Status"),r("design:type",Number)],e.prototype,"status",void 0),n([i("ErrorMessage"),r("design:type",String)],e.prototype,"errorMessage",void 0),n([i({clazz:String,name:"NonFeaturedCards"}),r("design:type",Array)],e.prototype,"nonFeaturedCards",void 0),n([i({clazz:String,name:"FeaturedCards"}),r("design:type",Array)],e.prototype,"featuredCards",void 0),n([i("TotalResults"),r("design:type",Number)],e.prototype,"totalResults",void 0),e}();e.ResponseModel=a}(i.ProductIndexComponentModule||(i.ProductIndexComponentModule={}))},{"../../Helpers/_MapHelper":30}],65:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Shared/Filters/_Filters"),r=e("../Shared/FiltersSelection/_FiltersSelection"),o=e("../Shared/SearchBox/_SearchBox"),a=e("../Helpers/_AjaxHelper"),s=e("./Models/_ResponseModel"),l=e("./Models/_RequestModel");!function(e){var t=s.ProductIndexComponentModule.ResponseModel,i=l.ProductIndexComponentModule.RequestModel,c=n.Shared.Filters,u=r.Shared.FiltersSelection,d=o.Shared.SearchBox,h=a.Helpers.AjaxHelper,p=function(){function e(){var e=this;if(this.indexPageComponent=$(".product-index"),this._mobileBrakpoint=628,this.contentLanguageName=$("html").attr("lang"),this.linkLanguageName=$("html").data("link-language-name"),this.currentPage=0,this.itemsPerPage=10,this.stopScrolling=!1,this.currentscrollHeight=0,this.ajax=null,this.indexPageComponent&&this.indexPageComponent.length>0){this.componentId=this.indexPageComponent.data("component-id"),this.language=this.indexPageComponent.data("language"),this.spinner=this.indexPageComponent.find(".items-loader"),this.noResultsError=this.indexPageComponent.find(".no-result-error-message"),$(".sw-filters-item-expand").each(function(e,t){var i=$(t),n=i.closest(".sw-filters-category");i.attr("data-id")!==n.attr("data-id")&&i.addClass("sw-filters-category")}),this.filtersSelection=new u(".product-index-filters-selection"),this.filters=new c(".product-index-filters",this.filtersSelection),this.productSections=this.indexPageComponent.find(".product-index-section"),$(".product-index-filters .sw-filters-category-title").on("click",function(e){var t=$(".product-index-filters .sw-filters-content"),i=t.find(".sw-filters-category"),n=i.has(".sw-filters-category-title:not(.closed)");i.removeClass("open"),n.length?(t.addClass("show-back"),n.addClass("open")):t.removeClass("show-back")}),$(".product-index-filters .sw-filters-item-title").on("click",function(e){var t=$(e.target).closest(".sw-filters-items"),i=t.find(".sw-filters-item.sw-filters-item-expand"),n=i.has(".sw-filters-item-title:not(.closed)");i.removeClass("open"),n.length?(t.addClass("has-open-filter"),n.addClass("open")):t.removeClass("has-open-filter")}),$(".product-index-filters .back-button-mobile").on("click",function(e){var t=$(e.target).siblings(".open"),i=t.find("> .has-open-filter > .open");i.length?i.children(".sw-filters-item-title").click():t.children(".sw-filters-category-title").click()}),$(window).outerWidth()<this._mobileBrakpoint&&$(".sw-filters-category-title:not(.closed)").click(),$(function(){return e.resizeWindow()}),$(window).on("resize",function(){return e.resizeWindow()}),this.featuredProductsSection=this.indexPageComponent.find(".product-index-section.featured-items"),this.otherProductsSection=this.indexPageComponent.find(".product-index-section.other-items"),$(".product-index-search-box").length>0&&(this.searchBox=new d(".product-index-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500}),this.searchBox.subscribeToSearchExecuteEvent(function(t){e.fullRefresh(!0)}));var t=this.indexPageComponent.data("initial-total-results"),i=parseInt(t,10);this.filtersSelection.setNoOfResults(i),this.filters.subscribeToFiltersUpdatedEvent(function(t){e.fullRefresh(!0)}),$(window).on("scroll",function(t){var i=$(document).height();i-300<Math.floor($(window).height()+$(window).scrollTop())&&e.currentscrollHeight<i&&null===e.ajax&&(e.partialRefresh(),e.currentscrollHeight=i)}),$(window).on("popstate",function(t){var i=t.originalEvent.state;e.updateControlsValues(i),e.fullRefresh(!1)});var n=this.prepareRequest();this.updateControlsValues(n),history.pushState(n,"",window.location.href)}}return e.prototype.resizeWindow=function(){var e=this;this.productSections.find(".product-index-card").removeAttr("style"),this.productSections.find(".card-buttons-container").removeAttr("style"),this.productSections.find(".card-button-wrapper").removeAttr("style").removeClass("wrap-buttons"),this.productSections.each(function(t,i){return e.initSectionHeight($(i))})},e.prototype.initSectionHeight=function(e){var t=this,i=e.find(".product-index-card");if($(window).outerWidth()<this._mobileBrakpoint)i.each(function(e,i){return t.initRowHeight($(i))});else for(var n=0;n<i.length;n+=2){var r=i.eq(n).add(i.eq(n+1));this.initRowHeight(r)}},e.prototype.initRowHeight=function(e){var t=this,i=e.find(".card-buttons-container"),n=0;i.each(function(e,i){var r=$(i),o=r.find(".card-button-wrapper"),a=o.width()>=r.width()||$(window).outerWidth()<t._mobileBrakpoint;o.find("span").filter(function(e,t){return 0===t.innerHTML.trim().length}).remove(),o.find(".primary-button, .secondary-button").filter(function(e,t){return 0===t.innerHTML.trim().length}).remove(),a&&o.addClass("wrap-buttons"),o.css("left",20+r.width()/2-o.width()/2+"px"),r.height(o.height());var s=r.closest(".product-index-card");n=Math.max(n,s.height())}),$(window).outerWidth()>=this._mobileBrakpoint&&i.closest(".product-index-card").height(n)},e.prototype.fullRefresh=function(e){this.saveScrollOffset(),this.currentPage=0,this.featuredProductsSection.hide(),this.otherProductsSection.hide(),this.noResultsError.addClass("hidden"),this.spinner.show(),this.featuredProductsSection.find(".product-index-section-items").empty(),this.otherProductsSection.find(".product-index-section-items").empty(),this.loadProducts(!0,e),this.restoreScrollOffset()},e.prototype.partialRefresh=function(){this.stopScrolling||(this.currentPage++,this.spinner.show(),this.loadProducts(!1,!1))},e.prototype.loadProducts=function(e,t){var i=this;this.filtersSelection.setNoOfResults(0);var n=this,r={method:"GET",dataType:"json",traditional:!0},o=this.prepareRequest();if(o.SkipFeaturedResources=!e,t){var a=window.location.href.split("?")[0]+this.prepareQueryStringBasedOnRequestModel(o);history.pushState(o,"",a),null!=this.ajax&&this.ajax.abort()}r.data=o,this.ajax=$.ajax(h.getAjaxUrl("/solarapi/productindex/getproductindexcards"),r).done(function(t){n.onSuccessResourcesLoad(t,e)}).fail(function(e,t){"abort"!==t&&(alert("Request failed.  Returned status of "+t),console.error(e.toString()))}).always(function(){return i.ajax=null})},e.prototype.prepareRequest=function(){var e=new i;e.page=this.currentPage,e.itemsPerPage=this.itemsPerPage,e.language=this.language,this.searchBox&&(e.searchTerm=this.searchBox.getValue()),this.linkLanguageName&&(e.linkLanguageName=this.linkLanguageName),e.componentID=this.componentId;for(var t=this.filters.getFilterItems(),n=0;n<t.length;n++)switch(t[n].categoryId){case"challenges":e.challengesNames.push(t[n].queryKey);break;case"types":e.typesNames.push(t[n].queryKey);break;case"deployTypes":e.deployTypesNames.push(t[n].queryKey);break;case"integrations":e.integrationsNames.push(t[n].queryKey);break;case"vendors":e.vendorsNames.push(t[n].queryKey);break;case"roles":e.rolesNames.push(t[n].queryKey);break;case"industries":e.industriesNames.push(t[n].queryKey);break;case"marketplaces":e.marketplacesNames.push(t[n].queryKey);break;case"platforms":e.platformsNames.push(t[n].queryKey)}return e},e.prototype.prepareQueryStringBasedOnRequestModel=function(e){var t="";e&&(t+=[this.filterSelectionString(e.challengesNames,"challenges"),this.filterSelectionString(e.typesNames,"types"),this.filterSelectionString(e.deployTypesNames,"deployTypes"),this.filterSelectionString(e.integrationsNames,"integrations"),this.filterSelectionString(e.vendorsNames,"vendors"),this.filterSelectionString(e.rolesNames,"roles"),this.filterSelectionString(e.industriesNames,"industries"),this.filterSelectionString(e.marketplacesNames,"marketplaces"),this.filterSelectionString(e.platformsNames,"platforms")].filter(function(e){return e}).join("&"));return t.length>0?"?"+t:""},e.prototype.filterSelectionString=function(e,t){return e&&e.length>0?t+"="+e.join(","):null},e.prototype.onSuccessResourcesLoad=function(e,i){if(e){var n=t.parseJsonObject(e);if(0===n.totalResults){this.noResultsError.removeClass("hidden");var r=window.innerWidth<992?"-55px":"-40px";0===$(".sw-filters-selection-chip").length?this.noResultsError.css("margin-top","20px"):this.noResultsError.css("margin-top",r)}else this.noResultsError.addClass("hidden");if(null!=n.status&&n.status>0){i&&(this.currentscrollHeight=0),this.filtersSelection.setNoOfResults(n.totalResults);var o=$(n.featuredCards.join("")),a=$(n.nonFeaturedCards.join(""));i&&n.featuredCards.length>0&&(this.initQuickViewButtons(o),this.featuredProductsSection.find(".product-index-section-items").append(o),this.featuredProductsSection.show()),n.nonFeaturedCards.length>0&&(this.initQuickViewButtons(a),this.otherProductsSection.find(".product-index-section-items").append(a),this.otherProductsSection.show()),this.resizeWindow(),this.stopScrolling=n.totalResults-n.featuredCards.length<=(this.currentPage+1)*this.itemsPerPage}}this.spinner.hide()},e.prototype.saveScrollOffset=function(){var e=document.documentElement,t=this.indexPageComponent.position();this.scrollOffset=e.scrollTop<t.top?null:e.scrollTop+e.clientHeight-t.top-this.indexPageComponent.height()},e.prototype.restoreScrollOffset=function(){if(null!==this.scrollOffset){var e=this.indexPageComponent.position();this.scrollOffset<0?$(document).scrollTop(e.top):$(document).scrollTop(e.top+this.indexPageComponent.height()+this.scrollOffset-document.documentElement.clientHeight)}},e.prototype.initQuickViewButtons=function(e){var t=window.quickViewModal;if(e&&t){var i=$(e).find(".view-modal-button");t.initializeGivenButtons(i)}},e.prototype.updateControlsValues=function(e){if(e){var t=[];e.challengesNames&&(t=t.concat(e.challengesNames)),e.typesNames&&(t=t.concat(e.typesNames)),e.deployTypesNames&&(t=t.concat(e.deployTypesNames)),e.integrationsNames&&(t=t.concat(e.integrationsNames)),e.vendorsNames&&(t=t.concat(e.vendorsNames)),e.rolesNames&&(t=t.concat(e.rolesNames)),e.industriesNames&&(t=t.concat(e.industriesNames)),e.marketplacesNames&&(t=t.concat(e.marketplacesNames)),e.platformsNames&&(t=t.concat(e.platformsNames)),this.filters.setCheckedCheckboxesByKeys(t),this.filters.showActiveSections()}},e}();e.IndexPageController=p}(i.ProductIndexComponentModule||(i.ProductIndexComponentModule={}))},{"../Helpers/_AjaxHelper":25,"../Shared/Filters/_Filters":98,"../Shared/FiltersSelection/_FiltersSelection":97,"../Shared/SearchBox/_SearchBox":100,"./Models/_RequestModel":63,"./Models/_ResponseModel":64}],66:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../IntegrationsModule/_CheckBoxFilter"),r=e("./_RenderingManager"),o=e("../AzureFunctionAPI/Models/_PricingProductRequest"),a=e("../AzureFunctionAPI/_AzureFunction");!function(e){var t,i=n.IntegrationsModule.CheckBoxBoxFilter,s=r.ProductPricingModule.ProductPricingRenderingManager,l=a.AzureFunctionAPI.AzureFunction,c=o.AzureFunctionAPI.PricingProductRequest;!function(e){e[e.Show=0]="Show",e[e.Hide=1]="Hide"}(t||(t={}));var u=function(){function e(){var e=this;this.productPricingComponent=$(".product-pricing"),this.perpetualBtn=$(".perpetual-icon"),this.pricingTables=$(".product-pricing .pricing-table"),this.searchBtn=$(".product-pricing #search-btn"),this.searchClearBtn=$(".product-pricing #search-clear-btn"),this.searchInput=$(".product-pricing .search-input"),this.filterCategories=$(".product-pricing .check-box-box-filter .category-container>input"),this.notFoundEl=$(".product-pricing .not-found-content"),this.isSearchPerformed=!1,this.isCategorySelected=!1,this.isContentFound=!1,this.isNotFoundContentReplaced=!1,this.availableTags=new Array,this.searchDatalinkDetail=$(this.searchBtn).attr("data-linkdetail"),this.availableCategories=[],this.azureFunction=new l,this.elementsWithSkuAttributes=$('.product-pricing .pricing-table [data-sku]:not([data-sku=""])'),this.GetSelectedCategoriesNames=function(){var t="";return e.selectedFilterCategories=$(".product-pricing .check-box-box-filter .category-container-selected>input"),e.selectedFilterCategories.each(function(i,n){t+=$(n).attr("name"),i<e.selectedFilterCategories.length-1&&(t+=", ")}),t},this.makeItBold=function(e){return"<b>"+e+"</b>"},this.handleNotFountContent=function(){if(e.isContentFound)$(e.notFoundEl).hide();else{var t,i=e.makeItBold($(e.searchInput).val()),n=e.GetSelectedCategoriesNames();if(""===i?i=e.makeItBold(n):""!=n&&(i+=" in "+e.makeItBold(n)),i="<span>"+i+"</span>",e.isNotFoundContentReplaced){var r=new RegExp("<span>(.*?)</span>");t=$(e.notFoundEl).html().replace(r,i)}else t=$(e.notFoundEl).html().replace("{searchTerm}",i),e.isNotFoundContentReplaced=!0;$(e.notFoundEl).html(t),$(e.notFoundEl).show()}},this.performSearch=function(){var t=void 0==$(e.searchInput).val()?"":$(e.searchInput).val().toLowerCase();""==t?($(e.searchBtn).show(),$(e.searchClearBtn).hide()):($(e.searchBtn).hide(),$(e.searchClearBtn).show()),$(e.searchBtn).attr("data-linkdetail",e.searchDatalinkDetail+":"+t.charAt(0).toUpperCase()+t.slice(1)),e.isSearchPerformed=!0,e.isContentFound=!1,e.isCategorySelected?$(e.pricingTables).each(function(i,n){$(n).is(":visible")&&(-1===$(n).attr("product-name").indexOf(t)&&-1===$(n).attr("short-product-name").indexOf(t)?$(n).hide():e.isContentFound=!0)}):$(e.pricingTables).each(function(i,n){$(n).attr("product-name").indexOf(t)>-1||$(n).attr("short-product-name").indexOf(t)>-1?($(n).show(),e.isContentFound=!0):$(n).hide()}),e.initTags(),e.handleNotFountContent()},this.showHideAllPricingTable=function(i){switch(i){case t.Hide:$(e.pricingTables).each(function(e,t){$(t).hide()});break;case t.Show:default:$(e.pricingTables).each(function(e,t){$(t).show()})}},this.performCategorySearch=function(){if(e.selectedFilterCategories=$(".product-pricing .check-box-box-filter .category-container-selected>input"),e.isSearchPerformed){if(0==e.selectedFilterCategories.length)return e.showHideAllPricingTable(t.Hide),e.isCategorySelected=!1,void e.performSearch();e.isCategorySelected=!0,e.isContentFound=!1,e.showHideAllPricingTable(t.Hide);var i=void 0==$(e.searchInput).val()?"":$(e.searchInput).val().toLowerCase();e.selectedFilterCategories.each(function(t,n){var r=$(n).attr("name").toLowerCase();$(e.pricingTables).each(function(t,n){$(n).attr("category").indexOf(r)>-1&&($(n).attr("product-name").indexOf(i)>-1||$(n).attr("short-product-name").indexOf(i)>-1)&&($(n).show(),e.isContentFound=!0)})})}else 0==e.selectedFilterCategories.length?(e.showHideAllPricingTable(t.Show),e.isCategorySelected=!1,e.isContentFound=!0):(e.isCategorySelected=!0,e.isContentFound=!1,e.showHideAllPricingTable(t.Hide),e.selectedFilterCategories.each(function(t,i){var n=$(i).attr("name").toLowerCase();$(e.pricingTables).each(function(t,i){$(i).attr("category").indexOf(n)>-1&&($(i).show(),e.isContentFound=!0)})}));e.initTags(),e.handleNotFountContent()},this.initTags=function(){e.availableTags=[],$(e.pricingTables).each(function(t,i){$(i).is(":visible")&&e.availableTags.push($(i).attr("product-name"))}),e.initializeAutocomplete()},this.RegisterEvents=function(){$(e.searchBtn).click(function(t){e.performSearch()}),$(e.searchInput).on("change",function(){setTimeout(e.performSearch,100)}),$(e.searchInput).keyup(function(t){13===t.keyCode&&e.performSearch()}),$(e.searchClearBtn).click(function(t){$(e.searchInput).val(""),$(e.pricingTables).show(),$(e.searchBtn).show(),$(e.searchClearBtn).hide(),e.isSearchPerformed=!1,e.isCategorySelected?e.performCategorySearch():$(e.notFoundEl).hide()})},this.initializeAutocomplete=function(){if(window&&window.autocomplete)window.autocomplete(document.getElementById("search-input"),e.availableTags);else var t=setInterval(function(){window&&window.autocomplete&&(window.autocomplete(document.getElementById("search-input"),e.availableTags),clearInterval(t))},50)},null!=this.productPricingComponent&&this.productPricingComponent.length>0&&(this.renderingManager=new s,this.categoryFilter=new i(".check-box-box-filter",this.renderingManager),this.categoryFilter.subscribeToFilterChangeEvent(function(){e.performCategorySearch()}),this.GetCategories(),this.RegisterEvents(),this.initTags(),this.loadPricing(),this.togglePerpetual())}return e.prototype.GetCategories=function(){var e=this;$(".check-box-box-filter .category-container>input").each(function(t,i){e.availableCategories.push({name:$(i).attr("name"),id:$(i).attr("data-linktype"),count:void 0})}),this.categoryFilter.initOptions(this.availableCategories)},e.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.elementsWithSkuAttributes.length;t++){var i=$(this.elementsWithSkuAttributes[t]).attr("data-sku");i&&e.indexOf(i)<0&&e.push(i)}return e},e.prototype.setPriceValues=function(e){if(e&&e.length>0)for(var t=0;t<this.elementsWithSkuAttributes.length;t++){var i=$(this.elementsWithSkuAttributes[t]).attr("data-sku");if(i){var n=e.filter(function(e){return e.sku===i});n.length>0&&$(this.elementsWithSkuAttributes[t]).text(n[0].currencySign+n[0].amount)}}},e.prototype.loadPricing=function(){var e=this,t=this.getUsedSkus();if(t.length>0){var i=new c;i.skus=t,this.azureFunction.getProductPricing(i).then(function(t){t&&t.skuPricing&&e.setPriceValues(t.skuPricing)}).catch(function(e){console.error("Error: There was an error getting pricing details. Data: "+e)}),this.elementsWithSkuAttributes.removeClass("invisible")}},e.prototype.togglePerpetual=function(){this.perpetualBtn.on("click",function(e){var t=$(e.target);t.toggleClass("fa-minus fa-plus"),t.siblings().toggleClass("invisible");var i=t.attr("id").substring(3);$("."+i).toggleClass("invisible")})},e}();e.IndexPageController=u}(i.ProductPricingModule||(i.ProductPricingModule={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":7,"../AzureFunctionAPI/_AzureFunction":11,"../IntegrationsModule/_CheckBoxFilter":38,"./_RenderingManager":68}],67:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../AzureFunctionAPI/Models/_PricingProductRequest"),r=e("../AzureFunctionAPI/_AzureFunction");!function(e){var t=r.AzureFunctionAPI.AzureFunction,i=n.AzureFunctionAPI.PricingProductRequest,o=function(){function e(){this.pricingTableContainers=$(".pricing-table-container"),this.elementsWithSkuAttributes=$('.pricing-table-container [data-sku]:not([data-sku=""])'),this.azureFunction=new t,this.loadPricing()}return e.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.elementsWithSkuAttributes.length;t++){var i=$(this.elementsWithSkuAttributes[t]).attr("data-sku");i&&e.indexOf(i)<0&&e.push(i)}return e},e.prototype.setPriceValues=function(e){if(e&&e.length>0)for(var t=0;t<this.elementsWithSkuAttributes.length;t++){var i=$(this.elementsWithSkuAttributes[t]).attr("data-sku");if(i){var n=e.filter(function(e){return e.sku===i});n.length>0&&$(this.elementsWithSkuAttributes[t]).text(n[0].pricingString)}}},e.prototype.loadPricing=function(){var e=this,t=this.getUsedSkus();if(t.length>0){var n=new i;n.skus=t,this.azureFunction.getProductPricing(n).then(function(t){t&&t.skuPricing&&e.setPriceValues(t.skuPricing)}).catch(function(e){console.error("Error: There was an error getting pricing details. Data: "+e)}),this.elementsWithSkuAttributes.removeClass("invisible")}},e}();e.LegacyIndexPageController=o}(i.ProductPricingModule||(i.ProductPricingModule={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":7,"../AzureFunctionAPI/_AzureFunction":11}],68:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){this.productPricingFilterPlaceHolder=$(".integrations-filter .options-panel")}return e.prototype.renderFilterOptions=function(e){this.clearFilter();for(var t=0,i=e;t<i.length;t++){var n=i[t];this.productPricingFilterPlaceHolder.length>0&&this.productPricingFilterPlaceHolder[0].appendChild(this.renderOption(n))}},e.prototype.clearFilter=function(){this.productPricingFilterPlaceHolder.empty()},e.prototype.renderOption=function(e){if(void 0!=e){var t=document.createElement("label");t.setAttribute("class","category-container");var i=document.createElement("input");i.setAttribute("type","checkbox"),i.setAttribute("name",e.id),i.setAttribute("value",e.id),i.setAttribute("data-linktype","Filter Control"),i.setAttribute("data-linkdetail",e.id),t.innerHTML=e.name,t.insertBefore(i,t.firstChild);var n=document.createElement("br");t.appendChild(n);var r=document.createElement("span");return r.setAttribute("class","checkmark"),t.appendChild(r),t}},e}();e.ProductPricingRenderingManager=t}(i.ProductPricingModule||(i.ProductPricingModule={}))},{}],69:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Helpers/_QueryParametersHelper"),r=function(){function e(){this.parameters={cmp:"KNC",placeholder:"{#replacement#}",keyword:"keyword"},this.heroTitleOverride=document.querySelector(".title-override-content"),this.heroTitleOriginal=document.querySelectorAll(".hero-title-default")}return e.prototype.init=function(){var e=this;this.heroTitleOverride&&window.addEventListener("DOMContentLoaded",function(){if(e.isKncRequest()){var t=e.getKeyword();t&&e.heroTitleOriginal.length>0&&[].forEach.call(e.heroTitleOriginal,function(e){e.innerHTML=t})}e.heroTitleOverride.remove(),e.heroTitleOriginal.length>0&&[].forEach.call(e.heroTitleOriginal,function(e){e.classList.remove("hidden")})})},e.prototype.isKncRequest=function(){if(this.heroTitleOverride){var e=n.Helpers.QueryParametersHelper.getUrlParameter("CMP");if(e){var t=e.split("-");return!(!t||t[0].toUpperCase()!==this.parameters.cmp)}return!1}return!1},e.prototype.getKeyword=function(){var e=n.Helpers.QueryParametersHelper.getUrlParameter(this.parameters.keyword);return e?this.heroTitleOverride.getAttribute("value").replace(this.parameters.placeholder,e):""},e}();i.ProductHeroTitleOverride=r},{"../Helpers/_QueryParametersHelper":32}],70:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){var e=this;this.components=$(".quick-view-product-cards"),this.components.find(".card-price span").filter(function(e,t){return 0===t.innerHTML.trim().length}).hide(),this.resizeWindow(),$(window).on("resize",function(){return e.resizeWindow()})}return e.prototype.resizeWindow=function(){var e=this;this.components.find(".card-buttons-container").removeAttr("style"),this.components.find(".card-button-wrapper").removeAttr("style").removeClass("wrap-buttons"),this.components.each(function(t,i){return e.initContainerHeight($(i))})},e.prototype.initContainerHeight=function(e){var t=e.find(".card-buttons-container"),i=t.is(function(e,t){var i=$(t);return i.find(".card-button-wrapper").width()>=i.width()});t.each(function(e,t){var n=$(t),r=n.find(".card-button-wrapper");r.find("span").filter(function(e,t){return 0===t.innerHTML.trim().length}).remove(),i&&(r.addClass("wrap-buttons"),r.css("left",20+n.width()/2-r.width()/2+"px")),n.height(r.height())})},e}();e.IndexPageController=t}(i.QuickViewProductCard||(i.QuickViewProductCard={}))},{}],71:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.country=void 0,this.state=void 0,this.postalCode=void 0}return n([t("Country"),r("design:type",String)],e.prototype,"country",void 0),n([t("State"),r("design:type",String)],e.prototype,"state",void 0),n([t("PostalCode"),r("design:type",String)],e.prototype,"postalCode",void 0),e}();e.Location=i;var a=function(){function e(){this.code=void 0,this.number=void 0}return n([t("Code"),r("design:type",String)],e.prototype,"code",void 0),n([t("Number"),r("design:type",String)],e.prototype,"number",void 0),e}();e.Phone=a;var s=function(){function e(){this.contactName=void 0,this.subject=void 0,this.description=void 0}return n([t("ContactName"),r("design:type",String)],e.prototype,"contactName",void 0),n([t("Subject"),r("design:type",String)],e.prototype,"subject",void 0),n([t("Description"),r("design:type",String)],e.prototype,"description",void 0),e}();e.TrustCenterFormSaveModel=s;var l=function(){function e(){this.nickname=void 0,this.firstName=void 0,this.lastName=void 0,this.email=void 0,this.company=void 0,this.customerId=void 0,this.reseller=void 0,this.isOptedIn=void 0,this.vcVerification=void 0,this.location=void 0,this.phone=void 0,this.isReffered=void 0,this.trustCenterFormData=void 0}return n([t("Nickname"),r("design:type",String)],e.prototype,"nickname",void 0),n([t("FirstName"),r("design:type",String)],e.prototype,"firstName",void 0),n([t("LastName"),r("design:type",String)],e.prototype,"lastName",void 0),n([t("Email"),r("design:type",String)],e.prototype,"email",void 0),n([t("Company"),r("design:type",String)],e.prototype,"company",void 0),n([t("CustomerId"),r("design:type",String)],e.prototype,"customerId",void 0),n([t("Reseller"),r("design:type",String)],e.prototype,"reseller",void 0),n([t("IsOptedIn"),r("design:type",String)],e.prototype,"isOptedIn",void 0),n([t("VcVerification"),r("design:type",Date)],e.prototype,"vcVerification",void 0),n([t("Location"),r("design:type",i)],e.prototype,"location",void 0),n([t("Phone"),r("design:type",a)],e.prototype,"phone",void 0),n([t("IsReffered"),r("design:type",Boolean)],e.prototype,"isReffered",void 0),n([t("RegistarionQueryString"),r("design:type",String)],e.prototype,"registarionQueryString",void 0),n([t("TrustCenterFormData"),r("design:type",s)],e.prototype,"trustCenterFormData",void 0),e}();e.ContactData=l}(i.AzureFunctionAPI||(i.AzureFunctionAPI={}))},{"../../Helpers/_MapHelper":30}],72:[function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(i,"__esModule",{value:!0});var o=function(e){function t(){var t=e.call(this)||this;return t.productId=null,t.programId=null,t.campaign=null,t}return r(t,e),t}(e("./_ContactData").AzureFunctionAPI.ContactData);i.default=o},{"./_ContactData":71}],73:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./../AzureFunctionAPI/_AzureFunction"),r=e("../Helpers/_QueryParametersHelper"),o=e("../AzureFunctionAPI/Models/_BlockFreeEmailsRequest").AzureFunctionAPI.BlockFreeEmailsRequest,a=function(){return function(){var e=this;this.azureFunction=new n.AzureFunctionAPI.AzureFunction;try{var t=document.getElementsByClassName("reg-row");if((document.getElementsByClassName("registration").length>0||t.length>0)&&(this.blockFreeEmailsElement=document.getElementById("ci_Email_Block_FreeEmail"),this.blockFreeEmailsElement&&"True"!==this.blockFreeEmailsElement.value)){var i=new o;i.cmp=r.Helpers.QueryParametersHelper.getUrlParameter("CMP"),i.url=window.location.pathname,this.azureFunction.blockFreeEmails(i).then(function(t){e.blockFreeEmailsElement.value=t?"True":"False"})}}catch(e){TrackJS.track(e)}}}();i.BlockFreeEmailsController=a},{"../AzureFunctionAPI/Models/_BlockFreeEmailsRequest":1,"../Helpers/_QueryParametersHelper":32,"./../AzureFunctionAPI/_AzureFunction":11}],74:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("./../AzureFunctionAPI/_AzureFunction"),a=e("./../Helpers/_CookieHelper"),s=e("../Helpers/_MapHelper"),l=e("./Models/_ContactData"),c=s.Helpers.MapHelper,u=l.AzureFunctionAPI.ContactData,d=e("../AzureFunctionAPI/Models/_IsFreeEmailRequest").AzureFunctionAPI.IsFreeEmailRequest,h=function(){function e(){var e=this;this.azureFunction=new o.AzureFunctionAPI.AzureFunction;try{var t=document.getElementsByClassName("reg-row");(document.getElementsByClassName("registration").length>0||t.length>0)&&(this.regCookie=a.CookieHelper.getCookie("RegistrationDetails"),Promise.all([this.prepareRegistrationCookie(),this.prepareEmailCookie()]).then(function(t){e.contactData&&e.init()}),""==this.regCookie&&this.azureFunction.getIpLocationData().then(function(t){return e.selectCountry(t.isoCountryCode)}))}catch(e){TrackJS.track(e)}}return e.prototype.prepareRegistrationCookie=function(){return n(this,void 0,void 0,function(){var e=this;return r(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){e.regCookie.length>0?e.azureFunction.decryptString(e.regCookie).then(function(i){e.contactData=c.deserialize(u,JSON.parse(i)),t()}):t()})];case 1:return t.sent(),[2]}})})},e.prototype.prepareEmailCookie=function(){return n(this,void 0,void 0,function(){var e=this;return r(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t){var i=a.CookieHelper.getCookie("email");i.length>0?e.azureFunction.decryptString(i).then(function(i){e.email=i,t()}):t()})];case 1:return t.sent(),[2]}})})},e.prototype.setContactData=function(e,t){try{if(t&&e){var i=document.getElementById(e);i&&(i.value=t,$(i).trigger("focusout"))}}catch(e){TrackJS.track(e)}},e.prototype.setReferred=function(){try{this.contactData.isReffered=this.contactData.reseller&&this.contactData.reseller.length>0;var e=document.getElementById("yes"),t=document.getElementById("no");this.contactData.isReffered&&e?e.checked=!0:t&&(t.checked=!0)}catch(e){TrackJS.track(e)}},e.prototype.setEmail=function(){var e=this;try{if(this.email&&this.email.length>0)this.setContactData("ci_email",this.email);else if(this.contactData.email&&this.contactData.email.length>0){var t=new d;t.email=this.contactData.email,this.azureFunction.emailIsFree(t).then(function(t){t||e.setContactData("ci_email",e.contactData.email)}).catch(function(e){TrackJS.track("Error: There was an error executing IsFreeEmail request. Data: "+e)})}}catch(e){TrackJS.track(e)}},e.prototype.setCountry=function(){try{var e=document.getElementById("ci_country");if(e){if(this.contactData.location.country){if(this.contactData.location.country.length>2)for(var t=0;t<e.options.length;t++){var i=e.options[t];i.getAttribute("data-name")===this.contactData.location.country&&(i.selected=!0)}else e.value=this.contactData.location.country;window.contactInfo.showCountryItems(!0)}else this.azureFunction.getIpLocationData().then(function(t){t&&(e.value=t.isoCountryCode,window.contactInfo.showCountryItems(!0))}).catch(function(e){TrackJS.track("Error: There was an error executing getIpLocationData request. Data: "+e)});$(e).trigger("focusout")}}catch(e){TrackJS.track(e)}},e.prototype.setTrustCenterData=function(){this.setContactData("ci_contact_name",this.contactData.trustCenterFormData.contactName),this.setContactData("ci_subject",this.contactData.trustCenterFormData.subject),this.setContactData("ci_description",this.contactData.trustCenterFormData.description)},e.prototype.init=function(){return n(this,void 0,void 0,function(){return r(this,function(e){return this.setContactData("ci_firstName",this.contactData.firstName),this.setContactData("ci_lastName",this.contactData.lastName),this.setContactData("ci_nickname",this.contactData.nickname),this.setContactData("ci_zipCode",this.contactData.location.postalCode),this.setContactData("ci_phone",this.contactData.phone.number),this.setContactData("ci_company",this.contactData.company),this.setContactData("ci_customer_id",this.contactData.customerId),this.setContactData("ci_stdCode",this.contactData.phone.code),this.setContactData("ci_areaCode",this.contactData.phone.code),this.setContactData("ci_reseller",this.contactData.reseller),this.setEmail(),this.setReferred(),this.setCountry(),!0===window.regModule.isTrustCenterForm()&&this.setTrustCenterData(),[2]})})},e.prototype.selectCountry=function(e){return n(this,void 0,void 0,function(){return r(this,function(t){return $("#ci_country").children('option[value="'+e+'"]').attr("selected","selected"),$("#ci_country").trigger("change"),[2]})})},e}();i.ContactDataController=h},{"../AzureFunctionAPI/Models/_IsFreeEmailRequest":6,"../Helpers/_MapHelper":30,"./../AzureFunctionAPI/_AzureFunction":11,"./../Helpers/_CookieHelper":26,"./Models/_ContactData":71}],75:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./../Helpers/_QueryParametersHelper").Helpers.QueryParametersHelper,r=function(){function e(){try{this.regForm=$("#registrationForm"),0!==this.regForm.length&&(this.updateCampaignId(),this.updateProgramId())}catch(e){TrackJS.track(e)}}return e.prototype.updateCampaignId=function(){var e=n.getUrlParameter("campaign");(""===e&&(e=n.getUrlParameter("c")),""!==e)&&$("#campaignId").val(e)},e.prototype.updateProgramId=function(){var e=n.getUrlParameter("program");if(""===e&&(e=n.getUrlParameter("p")),""!==e){var t=parseInt(e,10);if(!isNaN(t))$("#programId").val(t)}},e}();i.RegistrationController=r},{"./../Helpers/_QueryParametersHelper":32}],76:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.page=0,this.itemsPerPage=4,this.productsNames=[],this.typesNames=[],this.subTypesNames=[],this.industriesNames=[],this.solutionsNames=[],this.searchTerm="",this.SkipFeaturedResources=!1,this.linkLanguageName=""}}();e.RequestModel=t}(i.ResourceCenterV2Module||(i.ResourceCenterV2Module={}))},{}],77:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.MapHelper,i=o.Helpers.JsonProperty,a=function(){function e(){this.resources=void 0,this.featuredResources=void 0,this.totalResults=void 0,this.status=void 0,this.errorMessage=void 0}return e.parseJsonObject=function(i){return t.deserialize(e,i)},n([i("Status"),r("design:type",Number)],e.prototype,"status",void 0),n([i("ErrorMessage"),r("design:type",String)],e.prototype,"errorMessage",void 0),n([i({clazz:String,name:"Resources"}),r("design:type",Array)],e.prototype,"resources",void 0),n([i({clazz:String,name:"FeaturedResources"}),r("design:type",Array)],e.prototype,"featuredResources",void 0),n([i("TotalResults"),r("design:type",Number)],e.prototype,"totalResults",void 0),e}();e.ResponseModel=a}(i.ResourceCenterV2Module||(i.ResourceCenterV2Module={}))},{"../../Helpers/_MapHelper":30}],78:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Shared/Filters/_Filters"),r=e("../Shared/FiltersSelection/_FiltersSelection"),o=e("../Shared/SearchBox/_SearchBox"),a=e("../Helpers/_AjaxHelper"),s=e("./Models/_ResponseModel"),l=e("./Models/_RequestModel"),c=e("./_NotificationSection");!function(e){var t=s.ResourceCenterV2Module.ResponseModel,i=l.ResourceCenterV2Module.RequestModel,u=n.Shared.Filters,d=r.Shared.FiltersSelection,h=o.Shared.SearchBox,p=a.Helpers.AjaxHelper,f=c.ResourceCenterV2Module.NotificationSection,g=function(){function e(){var e=this;if(this.indexPageComponent=$(".resource-center-index"),this.contentLanguageName=$("html").attr("lang"),this.linkLanguageName=$("html").data("link-language-name"),this._mobileBrakpoint=992,this.noOfColumns=2,this.currentPage=0,this.itemsPerPage=10,this.stopScrolling=!1,this.currentscrollHeight=0,this.pendingImagesCount=0,this.ajax=null,this.indexPageComponent&&this.indexPageComponent.length>0){this.notificationSection=new f(this.indexPageComponent.find(".recource-center-notification")),this.spinner=this.indexPageComponent.find(".items-loader"),this.noResultsError=this.indexPageComponent.find(".no-result-error-message"),this.filtersSelection=new d(".resource-center-filters-selection"),this.filters=new u(".resource-center-filters",this.filtersSelection),this.featuredResourcesSection=this.indexPageComponent.find(".resource-center-section.featured-resources"),this.otherResourcesSection=this.indexPageComponent.find(".resource-center-section.other-resources"),this.searchBox=new h(".resource-center-search-box",{enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500});var t=this.indexPageComponent.data("initial-total-results"),i=parseInt(t,10);this.filtersSelection.setNoOfResults(i),this.filters.subscribeToFiltersUpdatedEvent(function(t){e.fullRefresh(!0)}),this.searchBox.subscribeToSearchExecuteEvent(function(t){e.fullRefresh(!0)}),$(window).on("load resize",function(t){e.resizeAllGridItems()}),$(window).on("scroll",function(t){var i=$(document).height();i-300<Math.floor($(window).height()+$(window).scrollTop())&&e.currentscrollHeight<i&&(e.partialRefresh(),e.currentscrollHeight=i)}),$(window).on("popstate",function(t){var i=t.originalEvent.state;if(i){e.searchBox.setValue(i.searchTerm,!1);var n=[];i.typesNames&&(n=n.concat(i.typesNames)),i.subTypesNames&&(n=n.concat(i.subTypesNames)),i.productsNames&&(n=n.concat(i.productsNames)),i.industriesNames&&(n=n.concat(i.industriesNames)),i.solutionsNames&&(n=n.concat(i.solutionsNames)),e.filters.setCheckedCheckboxesByNames(n),e.fullRefresh(!1)}}),$(window).on("resize",this.changePositionNoResultsError);var n=this.prepareRequest();history.pushState(n,"",window.location.href),this.resizeAllGridItems(),this.notificationSection.toggle()}}return e.prototype.changePositionNoResultsError=function(){var e=$(".no-result-error-message");if(!e.hasClass("hidden")&&$(".sw-filters-selection-chip").length>0){var t=window.innerWidth<992?"-55px":"-40px";e.css("margin-top")!==t&&e.css("margin-top",t)}},e.prototype.resizeGridItem=function(e){var t=document.getElementsByClassName("resource-center-section-items")[0],i=parseInt(window.getComputedStyle(t).getPropertyValue("grid-auto-rows")),n=parseInt(window.getComputedStyle(t).getPropertyValue("grid-row-gap")),r=Math.ceil((e.querySelector(".resource-center-item-content").getBoundingClientRect().height+n)/(i+n));e.style.gridRowEnd="span "+r},e.prototype.resizeAllGridItems=function(){for(var e=document.getElementsByClassName("resource-center-item"),t=0;t<e.length;t++)this.resizeGridItem(e[t])},e.prototype.imageLoadHandler=function(){this.pendingImagesCount>0&&(this.pendingImagesCount-=1),0==this.pendingImagesCount&&(this.resizeAllGridItems(),this.pendingImagesCount-=1)},e.prototype.initLayout=function(e){var t=this;this.columnsHeights=Array(this.noOfColumns).fill(0),e.addClass("resource-center-section-columns"),e.find(".resource-center-item").each(function(e,i){var n=$(i).find(".resource-center-item-media").first();if(n&&n.height()<=50){var r=n.attr("data-aspect-ratio")?+n.attr("data-aspect-ratio"):.65,o=$(i).width()*r;t.columnsHeights[e%2]+=o}t.columnsHeights[e%2]+=$(i).outerHeight()+30});var i=Math.max.apply(Math,this.columnsHeights);e.css("height",i+10)},e.prototype.fullRefresh=function(e){this.saveScrollOffset(),this.currentPage=0,this.featuredResourcesSection.hide(),this.otherResourcesSection.hide(),this.noResultsError.addClass("hidden"),this.spinner.show(),this.featuredResourcesSection.find(".resource-center-section-items").empty(),this.otherResourcesSection.find(".resource-center-section-items").empty(),this.loadResourceItems(!0,e),this.notificationSection.toggle(),this.restoreScrollOffset()},e.prototype.partialRefresh=function(){this.stopScrolling||(this.currentPage++,this.spinner.show(),this.loadResourceItems(!1,!1))},e.prototype.loadResourceItems=function(e,t){this.filtersSelection.setNoOfResults(0);var i=this,n={method:"GET",dataType:"json",traditional:!0},r=this.prepareRequest();if(r.SkipFeaturedResources=!e,t){var o=window.location.href.split("?")[0]+this.prepareQueryStringBasedOnRequestModel(r);history.pushState(r,"",o)}null!=this.ajax&&this.ajax.abort(),n.data=r,this.ajax=$.ajax(p.getAjaxUrl("/solarapi/resourcecenter/getresourcecenteritems",this.contentLanguageName),n).done(function(t){i.onSuccessResourcesLoad(t,e)}).fail(function(e,t){"abort"!==t&&(alert("Request failed.  Returned status of "+t),i.onErrorResourcesLoad(e.toString()))})},e.prototype.onSuccessResourcesLoad=function(e,i){var n=this;if(e){this.pendingImagesCount=0;var r=t.parseJsonObject(e);if(0===r.totalResults){this.noResultsError.removeClass("hidden");var o=window.innerWidth<992?"-55px":"-40px";0===$(".sw-filters-selection-chip").length?this.noResultsError.css("margin-top","20px"):this.noResultsError.css("margin-top",o)}else this.noResultsError.addClass("hidden");if(null!=r.status&&r.status>0){i&&(this.currentscrollHeight=0),this.filtersSelection.setNoOfResults(r.totalResults);var a=$(r.featuredResources.join("")),s=$(r.resources.join("")),l=$(a).find("img"),c=$(s).find("img");i&&l.length>0&&(this.pendingImagesCount+=l.length,$(l).on("load",function(e){n.imageLoadHandler()})),c.length>0&&(this.pendingImagesCount+=c.length,$(c).on("load",function(e){n.imageLoadHandler()})),i&&r.featuredResources.length>0&&(this.featuredResourcesSection.find(".resource-center-section-items").append(a),this.featuredResourcesSection.show()),r.resources.length>0&&(this.otherResourcesSection.find(".resource-center-section-items").append(s),this.otherResourcesSection.show()),this.stopScrolling=r.totalResults-r.featuredResources.length<=(this.currentPage+1)*this.itemsPerPage}}this.spinner.hide(),this.resizeAllGridItems()},e.prototype.onErrorResourcesLoad=function(e){console.error(e)},e.prototype.prepareRequest=function(){var e=new i;e.page=this.currentPage,e.itemsPerPage=this.itemsPerPage,e.searchTerm=this.searchBox.getValue(),e.linkLanguageName=this.linkLanguageName;for(var t=this.filters.getFilterItems(),n=0;n<t.length;n++)switch(t[n].queryKey){case"t":e.typesNames.push(t[n].label);break;case"st":e.subTypesNames.push(t[n].label);break;case"p":e.productsNames.push(t[n].label);break;case"i":e.industriesNames.push(t[n].label);break;case"s":e.solutionsNames.push(t[n].label)}return e},e.prototype.prepareQueryStringBasedOnRequestModel=function(e){var t="";if(e){if(e.typesNames&&e.typesNames.length>0){t+="t=";for(var i=0;i<e.typesNames.length;i++)t=t+(i>0?",":"")+encodeURIComponent(e.typesNames[i])}if(e.subTypesNames&&e.subTypesNames.length>0){t=t+(t.length>0?"&":"")+"st=";for(i=0;i<e.subTypesNames.length;i++)t=t+(i>0?",":"")+encodeURIComponent(e.subTypesNames[i])}if(e.productsNames&&e.productsNames.length>0){t=t+(t.length>0?"&":"")+"p=";for(i=0;i<e.productsNames.length;i++)t=t+(i>0?",":"")+encodeURIComponent(e.productsNames[i])}if(e.industriesNames&&e.industriesNames.length>0){t=t+(t.length>0?"&":"")+"i=";for(i=0;i<e.industriesNames.length;i++)t=t+(i>0?",":"")+encodeURIComponent(e.industriesNames[i])}if(e.solutionsNames&&e.solutionsNames.length>0){t=t+(t.length>0?"&":"")+"s=";for(i=0;i<e.solutionsNames.length;i++)t=t+(i>0?",":"")+encodeURIComponent(e.solutionsNames[i])}e.searchTerm&&(t=t+(t.length>0?"&":"")+"searchTerm="+encodeURIComponent(e.searchTerm))}return t.length>0?"?"+t:""},e.prototype.saveScrollOffset=function(){var e=document.documentElement,t=this.indexPageComponent.position();this.scrollOffset=e.scrollTop<t.top?null:e.scrollTop+e.clientHeight-t.top-this.indexPageComponent.height()},e.prototype.restoreScrollOffset=function(){if(null!==this.scrollOffset){var e=this.indexPageComponent.position();this.scrollOffset<0?$(document).scrollTop(e.top):$(document).scrollTop(e.top+this.indexPageComponent.height()+this.scrollOffset-document.documentElement.clientHeight)}},e}();e.IndexPageController=g}(i.ResourceCenterV2Module||(i.ResourceCenterV2Module={}))},{"../Helpers/_AjaxHelper":25,"../Shared/Filters/_Filters":98,"../Shared/FiltersSelection/_FiltersSelection":97,"../Shared/SearchBox/_SearchBox":100,"./Models/_RequestModel":76,"./Models/_ResponseModel":77,"./_NotificationSection":79}],79:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Helpers/_QueryParametersHelper");!function(e){var t=function(){function e(e){this.isInitialized=!1,e&&(this.element=e,this.queryParameterName=this.element.attr("data-queryparameter-name"),this.queryParameterValue=this.element.attr("data-queryparameter-value"),this.queryParameterName&&this.queryParameterValue&&(this.isInitialized=!0))}return e.prototype.shouldShow=function(){return n.Helpers.QueryParametersHelper.getUrlParameter(this.queryParameterName).toLowerCase()===this.queryParameterValue},e.prototype.toggle=function(){this.isInitialized&&(this.shouldShow()?this.element.show():this.element.hide())},e}();e.NotificationSection=t}(i.ResourceCenterV2Module||(i.ResourceCenterV2Module={}))},{"../Helpers/_QueryParametersHelper":32}],80:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.page=0,this.itemsPerPage=4,this.searchTerm="",this.linkLanguageName=""}}();e.RequestModel=t}(i.ResourceCenter||(i.ResourceCenter={}))},{}],81:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper"),a=e("../../Filters/Models/_FilterGeneralInfoModel");!function(e){var t=o.Helpers.MapHelper,i=o.Helpers.JsonProperty,s=a.Filters.FilterGeneralInfo,l=function(){function e(){this.products={},this.categories={},this.types={},this.resources=void 0,this.featuredResources=void 0,this.totalResults=void 0,this.status=void 0,this.errorMessage=void 0}return e.parseJsonObject=function(i){var n=t.deserialize(e,i);for(var r in i.Products)i.Products.hasOwnProperty(r)&&(n.products[r]=t.deserialize(s,i.Products[r]));for(var r in i.Categories)i.Categories.hasOwnProperty(r)&&(n.categories[r]=t.deserialize(s,i.Categories[r]));for(var r in i.Types)i.Types.hasOwnProperty(r)&&(n.types[r]=t.deserialize(s,i.Types[r]));return n},n([i("Status"),r("design:type",Number)],e.prototype,"status",void 0),n([i("ErrorMessage"),r("design:type",String)],e.prototype,"errorMessage",void 0),n([i({clazz:String,name:"Resources"}),r("design:type",Array)],e.prototype,"resources",void 0),n([i({clazz:String,name:"FeaturedResources"}),r("design:type",Array)],e.prototype,"featuredResources",void 0),n([i("TotalResults"),r("design:type",Number)],e.prototype,"totalResults",void 0),e}();e.ResponseModel=l}(i.ResourceCenter||(i.ResourceCenter={}))},{"../../Filters/Models/_FilterGeneralInfoModel":22,"../../Helpers/_MapHelper":30}],82:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../Filters/_SelectBoxFilter"),r=e("../Filters/_TextBoxFilter"),o=e("./Models/_RequestModel");!function(e){var t=n.Filters.SelectBoxFilter,i=r.Filters.TextBoxFilter,a=o.ResourceCenter.RequestModel,s=function(){function e(e){var n=this;this._filters=new Array,this.searchResourcesRequestModel=new a,this.pageEventHandler=function(e,t){n.page=t-1;var i=n.filters;null!=i&&history.pushState(i,window.location.href,window.location.href),n.onApplyFilter(!0)},this.onFilterChange=function(){n.page=0,n.applyFilters()},this.applyFilters=function(){n.onApplyFilter(!1),n.updateUrl()},this.onApplyFilter=e,this.categoryFilter=new t(".resource-center-category","categories"),this.productFilter=new t(".resource-center-product","products"),this.typeFilter=new t(".resource-center-type","types"),this.searchTermFilter=new i(".resource-center-landing #custom-search-input"),this._filters.push(this.categoryFilter,this.productFilter,this.typeFilter,this.searchTermFilter);for(var r=0,o=this._filters;r<o.length;r++){o[r].subscribeToFilterChangeEvent(function(){n.onFilterChange()})}this.initClearFilterButton()}return Object.defineProperty(e.prototype,"filters",{get:function(){return this.searchResourcesRequestModel.categories=this.categoryFilter.isEmpty()?"":this.categoryFilter.value,this.searchResourcesRequestModel.products=this.productFilter.isEmpty()?"":this.productFilter.value,this.searchResourcesRequestModel.types=this.typeFilter.isEmpty()?"":this.typeFilter.value,this.searchResourcesRequestModel.searchTerm=this.searchTermFilter.isEmpty()?"":this.searchTermFilter.value,this.searchResourcesRequestModel},set:function(e){null!=e&&(this.categoryFilter.value=e.categories,this.productFilter.value=e.products,this.typeFilter.value=e.types,this.searchTermFilter.value=e.searchTerm,this.page=e.page)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.searchResourcesRequestModel.page},set:function(e){this.searchResourcesRequestModel.page=null!=e?e:0},enumerable:!0,configurable:!0}),e.prototype.hideFilters=function(){for(var e=0,i=this._filters;e<i.length;e++){var n=i[e];n instanceof t&&n.hide()}},e.prototype.showFilters=function(){for(var e=0,t=this._filters;e<t.length;e++){t[e].show()}},e.prototype.resetFiltersToInitial=function(){this.categoryFilter.value=this.onLoadResourcesRequestModel.categories,this.productFilter.value=this.onLoadResourcesRequestModel.products,this.typeFilter.value=this.onLoadResourcesRequestModel.types,this.searchTermFilter.value=this.onLoadResourcesRequestModel.searchTerm,this.page=0},e.prototype.areFiltersEqual=function(e){return!(e.searchTerm!==this.searchTermFilter.value||e.categories!==this.categoryFilter.value||e.products!==this.productFilter.value||e.types!==this.typeFilter.value||e.page!==this.page)},e.prototype.initFiltersOptions=function(e){$(".filter-items > span").remove(),this.categoryFilter.initOptions(e.categories),this.productFilter.initOptions(e.products),this.typeFilter.initOptions(e.types),null==this.onLoadResourcesRequestModel&&this.storeFirstLoadFilters()},e.prototype.initSeeMoreLikeThisButton=function(){var e=this;$(".view-all-resources-by-type").click(function(t){return t.stopPropagation(),e.resetFilters(),e.typeFilter.value=t.currentTarget.dataset.typeId,e.applyFilters(),!1})},e.prototype.storeFirstLoadFilters=function(){this.onLoadResourcesRequestModel=new a,this.onLoadResourcesRequestModel.categories=this.categoryFilter.value,this.onLoadResourcesRequestModel.products=this.productFilter.value,this.onLoadResourcesRequestModel.types=this.typeFilter.value,this.onLoadResourcesRequestModel.searchTerm=this.searchTermFilter.value,this.onLoadResourcesRequestModel.page=0},e.prototype.initClearFilterButton=function(){var e=this;$(".clear-filters").show(),$(".clear-filters").click(function(){e.resetFilters(),e.applyFilters()})},e.prototype.resetFilters=function(){for(var e=0,t=this._filters;e<t.length;e++){var i=t[e];i.isEmpty()||i.reset()}return this.page=0,!0},e.prototype.areFiltersEmpty=function(){for(var e=0,t=this._filters;e<t.length;e++){if(!t[e].isEmpty())return!1}return!0},e.prototype.generateFilterUrl=function(){for(var e="",t=0,i=this._filters;t<i.length;t++){var n=i[t];n.isEmpty()||(e+=n.url)}return e},e.prototype.updateUrl=function(){var e=window.location.href.substring(0,window.location.href.indexOf("/resources")+"/resources".length),t=this.generateFilterUrl();""!==t&&(e=e+"/filter"+t),history.pushState(this.filters,e,e)},e}();e.FilterManager=s}(i.ResourceCenter||(i.ResourceCenter={}))},{"../Filters/_SelectBoxFilter":23,"../Filters/_TextBoxFilter":24,"./Models/_RequestModel":80}],83:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./Models/_ResponseModel"),r=e("./_Pagination"),o=e("./_FilterManager"),a=e("./_LandingPageResourcesPlaceholder"),s=e("../Helpers/_AjaxHelper");!function(e){var t=n.ResourceCenter.ResponseModel,i=r.ResourceCenter.Pagination,l=o.ResourceCenter.FilterManager,c=a.ResourceCenter.LandingPageResourcesPlaceholder,u=s.Helpers.AjaxHelper,d=function(){function e(){var e=this;if(this.resourceLandingComponent=$(".resource-center-landing"),this.itemsPerPage=$(".resource-center-landing").data("items-per-page"),this.initialResourcesSelector="#initialResources",this.resourcePlaceholderManager=new c,this.allowedLanguagesSubfolders=["de","ja","es","fr","zh","ko"],this.contentLanguageName=$("html").attr("lang"),this.linkLanguageName=$("html").data("link-language-name"),this.loadResources=function(t){var i=!t;e.resourcePlaceholderManager.clearResourcesBuckets(i),e.resourcePlaceholderManager.resourceLoadingSpinner.show(),i&&e.pagination.hide();var n=$(e.initialResourcesSelector);if(n.length>0&&0===e.filterManager.page)return e.onSuccessResourcesLoad(JSON.parse(n.val().toString()),i),void n.remove();var r=e,o={method:"POST",dataType:"json"},a=e.filterManager.filters;a.linkLanguageName=e.linkLanguageName,o.data=a,$.ajax(u.getAjaxUrl("/solarapi/resourcecenter/getitems",e.contentLanguageName),o).done(function(e){r.onSuccessResourcesLoad(e,i),n.remove()}).fail(function(e,t){alert("Request failed.  Returned status of "+t),r.onErrorResourcesLoad(e.toString())})},null!=this.resourceLandingComponent&&this.resourceLandingComponent.length>0){this.filterManager=new l(this.loadResources),this.pagination=new i("#resource-pagination",function(t,i){e.filterManager.pageEventHandler(t,i)},this.itemsPerPage),this.initHistoryChangeEvent();var t=$(this.initialResourcesSelector);null!=history.state&&(t.length>0&&!(history.state.page>0)||(this.filterManager.filters=history.state)),this.loadResources(!1)}}return e.prototype.onSuccessResourcesLoad=function(e,i){if(null!=e){var n=t.parseJsonObject(e);null!=n.status&&n.status>0?(this.resourcePlaceholderManager.resourceLoadingSpinner.hide(),(!n.featuredResources||n.featuredResources.length<1)&&(!n.resources||n.resources.length<1)?(this.resourcePlaceholderManager.noResultsPlaceholder.show(),this.filterManager.hideFilters()):(this.filterManager.initFiltersOptions(n),this.filterManager.showFilters()),i&&(this.pagination.initPagination(n.totalResults,this.filterManager.page),this.resourcePlaceholderManager.setFeaturedResources(n.featuredResources)),this.resourcePlaceholderManager.setResources(n.resources),this.filterManager.initSeeMoreLikeThisButton()):this.onErrorResourcesLoad(e.ErrorMessage)}else this.onErrorResourcesLoad("Unhandled error occured while loading resources.")},e.prototype.onErrorResourcesLoad=function(e){this.resourcePlaceholderManager.resourceLoadingSpinner.hide(),e&&this.resourcePlaceholderManager.showError(e)},e.prototype.initHistoryChangeEvent=function(){var e=this;window.onpopstate=function(t){if(t&&$(".resource-center-landing")&&$(".resource-center-landing").length>0)if(null==t.state||void 0==t.state)e.filterManager.resetFiltersToInitial(),e.loadResources(!1);else{var i=t.state;null==i||e.filterManager.areFiltersEqual(i)||(e.filterManager.filters=i,e.loadResources(!1))}}},e}();e.LandingPageController=d}(i.ResourceCenter||(i.ResourceCenter={}))},{"../Helpers/_AjaxHelper":25,"./Models/_ResponseModel":81,"./_FilterManager":82,"./_LandingPageResourcesPlaceholder":84,"./_Pagination":85}],84:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){this.resourcePlaceholder=$(".resource-center-elements"),this.resourceItemsPlaceholder=$(".resource-center-elements .container #more-results-placeholder"),this.featuredResourcePlaceholder=$(".resource-center-featured-elements"),this.featuredResourceSlidesPlaceholderLargeScreen=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder-large-screen .carousel-inner"),this.featuredResourceSlidesPlaceholder=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder .carousel-inner"),this.featuredResourceSlidesIndicatorsLargeScreen=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder-large-screen .carousel-indicators"),this.featuredResourceSliderPlaceholderLargeScreen=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder-large-screen"),this.featuredResourceSliderPlaceholder=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder"),this.featuredResourceSlidesIndicators=$(".resource-center-featured-elements .container #featured-elements-slider-placeholder .carousel-indicators"),this.resourceLoadingErrorPlaceholder=$(".resource-center-landing #errorSummary"),this.noResultsPlaceholder=$(".resource-center-landing .resource-center-no-results"),this.resourceLoadingSpinner=$(".resource-center-landing .items-loader")}return e.prototype.showError=function(e){this.resourceLoadingErrorPlaceholder.text(e),this.resourceLoadingErrorPlaceholder.show()},e.prototype.setFeaturedResources=function(e){null!=e&&e.length>0&&(this.featuredResourcePlaceholder.show(),this.noResultsPlaceholder.hide(),this.fillFeaturedResourcesSlidesLargeScreen(e),this.fillFeaturedResourcesSlidesTabletScreen(e))},e.prototype.setResources=function(e){if(null!=e&&e.length>0){this.resourcePlaceholder.show(),this.noResultsPlaceholder.hide();for(var t=0,i=e;t<i.length;t++){var n=i[t];this.resourceItemsPlaceholder.append(n)}}},e.prototype.fillFeaturedResourcesSlidesLargeScreen=function(e){this.featuredResourceSliderPlaceholderLargeScreen.show(),e.length>4?this.featuredResourceSliderPlaceholderLargeScreen.removeClass("remove-sliding"):this.featuredResourceSliderPlaceholderLargeScreen.addClass("remove-sliding"),this.featuredResourceSliderPlaceholderLargeScreen.find(".carousel").carousel("cycle");var t='<div class="col-md-12 item active">',i='<li data-target="#FeaturedResourcesLargeScreen-carousel" data-slide-to="0" class="active"></li>',n=0,r=0;e.forEach(function(e){n<4?n++:(n=1,t+='</div><div class="col-md-12 item">',i=i+'<li data-target="#FeaturedResourcesLargeScreen-carousel" data-slide-to="'+ ++r+'"></li>'),t+=e}),t+="</div>",this.featuredResourceSlidesPlaceholderLargeScreen.append(t),this.featuredResourceSlidesIndicatorsLargeScreen.append(i)},e.prototype.fillFeaturedResourcesSlidesTabletScreen=function(e){e.length>1?this.featuredResourceSliderPlaceholder.removeClass("remove-sliding"):this.featuredResourceSliderPlaceholder.addClass("remove-sliding"),this.featuredResourceSliderPlaceholder.show(),this.featuredResourceSliderPlaceholder.find(".carousel").carousel("cycle");var t='<div class="col-sm-12 item active">',i='<li data-target="#FeaturedResources-carousel" data-slide-to="0" class="active"></li>',n=0;e.forEach(function(r){n<e.length-1?(t=t+r+'</div><div class="col-sm-12 item">',i=i+'<li data-target="#FeaturedResources-carousel" data-slide-to="'+(n+1)+'"></li>'):t=t+r+"</div>",n++}),this.featuredResourceSlidesPlaceholder.append(t),this.featuredResourceSlidesIndicators.append(i)},e.prototype.clearResourcesBuckets=function(e){this.resetResourceItemsBucket(),e&&(this.resetFeaturedResourceItemsBucket(),this.resetFeaturedResourceItemsBucketLargeScreenMode())},e.prototype.resetResourceItemsBucket=function(){this.resourceItemsPlaceholder.empty(),this.resourcePlaceholder.hide()},e.prototype.resetFeaturedResourceItemsBucket=function(){this.featuredResourcePlaceholder.find(".carousel").carousel("pause"),this.featuredResourcePlaceholder.hide(),this.featuredResourceSlidesPlaceholder.empty(),this.featuredResourceSlidesIndicators.empty(),this.featuredResourceSliderPlaceholder.hide()},e.prototype.resetFeaturedResourceItemsBucketLargeScreenMode=function(){this.featuredResourceSlidesPlaceholderLargeScreen.empty(),this.featuredResourceSlidesIndicatorsLargeScreen.empty(),this.featuredResourceSliderPlaceholderLargeScreen.hide()},e}();e.LandingPageResourcesPlaceholder=t}(i.ResourceCenter||(i.ResourceCenter={}))},{}],85:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t,i){null!=e&&""!==e?(this.pagination=$(e),this.pagination.on("page",t),this.itemsPerPage=i):console.log("Error in Pagination constructor, paginationSelector is empty.")}return e.prototype.initPagination=function(e,t){null!=e&&e>1&&Math.ceil(e/this.itemsPerPage)>1&&(this.pagination.show(),this.pagination.bootpag({total:Math.ceil(e/this.itemsPerPage),page:t+1,maxVisible:5,leaps:!0,firstLastUse:!0}))},e.prototype.hide=function(){this.pagination.hide()},e}();e.Pagination=t}(i.ResourceCenter||(i.ResourceCenter={}))},{}],86:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../AzureFunctionAPI/_AzureFunction"),a=e("../IpGeoAPI/_IpGeo");!function(e){var t=o.AzureFunctionAPI.AzureFunction,i=a.IpGeoAPI.IpGeo,s=function(){function e(){var e=this;this.azureFunction=new t,this.ipGeo=new i,this.containers=$(".helpBox .helpBox-container"),0!==this.containers.length&&this.filterByIpGeo($(".helpBox .helpBox-container > div")).then(function(t){return e.initialize()}).catch(function(e){return TrackJS.track(e)})}return e.prototype.filterByIpGeo=function(e){return n(this,void 0,void 0,function(){var t,i;return r(this,function(n){switch(n.label){case 0:return t=Array.from(e,function(e){return $(e).data("ipgeo")}),[4,this.ipGeo.getIpGeoCountrySelectionMap(t)];case 1:return i=n.sent(),e.each(function(e,n){!i[e]&&t[e]&&$(n).remove()}),[2]}})})},e.prototype.initialize=function(){this.containers.each(function(e,t){var i=$(t),n=i.closest(".helpBox"),r=i.closest(".adjust-helpBox").find(".adjust-helpBox").addBack(),o=$("> div",i).first().html();o?(i.replaceWith(o),n.removeClass("remove-if-empty"),r.addClass("withHelpBox")):n.hasClass("remove-if-empty")&&n.remove(),r.removeClass("adjust-helpBox")})},e}();e.IndexPageController=s}(i.RightRailAd||(i.RightRailAd={}))},{"../AzureFunctionAPI/_AzureFunction":11,"../IpGeoAPI/_IpGeo":47}],87:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.RequestModel=t}(i.SEDemo||(i.SEDemo={}))},{}],88:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.MapHelper,i=o.Helpers.JsonProperty,a=function(){function e(){this.demoItems=void 0,this.status=void 0,this.errorMessage=void 0}return e.parseJsonObject=function(i){return t.deserialize(e,i)},n([i("Status"),r("design:type",Number)],e.prototype,"status",void 0),n([i("ErrorMessage"),r("design:type",String)],e.prototype,"errorMessage",void 0),n([i({clazz:String,name:"SEDemoItems"}),r("design:type",Array)],e.prototype,"demoItems",void 0),e}();e.ResponseModel=a}(i.SEDemo||(i.SEDemo={}))},{"../../Helpers/_MapHelper":30}],89:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./Models/_RequestModel"),r=e("./Models/_ResponseModel");!function(e){var t=n.SEDemo.RequestModel,i=r.SEDemo.ResponseModel,o=function(){function e(){var e=this;if(this.demoLandingComponent=$(".sedemo-landing"),this.demoLoadingErrorPlaceholder=$("#demo-errorSummary"),this.demoNoResultsPlaceholder=$("#demo-noresults"),this.loadingSpinner=$(".items-loader"),this.demoItemsPlaceholder=$(".demo-items"),this.loadDemoItems=function(i,n,r,o){$(".productMenuItem").removeClass("active"),null!=i&&i.classList.toggle("active"),e.loadingSpinner.show(),e.demoItemsPlaceholder.empty(),e.demoNoResultsPlaceholder.hide();var a={method:"POST",dataType:"json"},s=new t;s.product=n,s.rootPath=e.rootPath,a.data=s;var l=e;$.ajax("/solarapi/sedemo/getitems",a).done(function(e){o&&l.updatePageUrl(n,r),l.successDemoLoad(e)}).fail(function(e){alert("Request failed. Returned status of "+e),l.showError("Request failed")}),e.loadingSpinner.hide()},$("#swisitepath").length){var i=JSON.parse($("#swisitepath").html());this.rootPath=i.rootpath}null!=this.demoLandingComponent&&this.demoLandingComponent.length>0&&(this.initializeMenuEvents(),this.initHistoryChangeEvent())}return e.prototype.initializeMenuEvents=function(){for(var e=this,t=document.getElementsByClassName("category-item"),i=0;i<t.length;i++)t[i].addEventListener("click",function(){this.classList.toggle("active");var e=this.nextElementSibling;"block"===e.style.display?$(e).slideUp():$(e).slideDown()});var n=document.getElementsByClassName("productMenuItem"),r=function(e){var t=n[e].getAttribute("data-productid"),i=n[e].textContent,r=o;n[e].addEventListener("click",function(){r.loadDemoItems(this,t,i,!0)})},o=this;for(i=0;i<n.length;i++)r(i);document.getElementById("back-to-overview").addEventListener("click",function(){e.loadDemoItems(null,"","",!0)})},e.prototype.successDemoLoad=function(e){if(null!=e){var t=i.parseJsonObject(e);if(null!==t)if(null!=t.status&&1===t.status){if(t.demoItems.length>0)for(var n=0,r=t.demoItems;n<r.length;n++){var o=r[n];this.demoItemsPlaceholder.append(o)}else this.demoNoResultsPlaceholder.show();this.scrollToFirstDemoItem()}else this.showError("Error loading demo items. Message: "+t.errorMessage)}},e.prototype.showError=function(e){this.demoLoadingErrorPlaceholder.text(e),this.demoLoadingErrorPlaceholder.show()},e.prototype.updatePageUrl=function(e,t){var i=t.trim().toLowerCase();i=i.split(" ").join("-");var n="";n=""===e&&""===t?"/sedemo":window.location.pathname.includes("sedemo/product/")?i:"sedemo/product/"+i,window.history.pushState({id:e,productName:t},null,n)},e.prototype.scrollToFirstDemoItem=function(){if(0!==$(".demo-element").length){var e=$(".demo-element")[0],t=$(e).offset().top,i=$(e).offset().top+$(e).outerHeight(!0),n=$(window).scrollTop()+$(window).height(),r=$(window).scrollTop();if(r>i&&r>t||n<t&&n<i)(e=$(".demo-element")[0]).scrollIntoView()}},e.prototype.initHistoryChangeEvent=function(){var e=this;window.onpopstate=function(t){if(t&&$(".sedemo-landing")&&$(".sedemo-landing").length>0)if(null!=t.state||void 0!=t.state){var i=$('*[data-productid="'+t.state.id+'"]')[0];e.loadDemoItems(i,t.state.id,t.state.productName,!1)}else location.reload()}},e}();e.IndexPageController=o}(i.SEDemo||(i.SEDemo={}))},{"./Models/_RequestModel":87,"./Models/_ResponseModel":88}],90:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){}}();e.SaasLicense=t}(i.SaasPricing||(i.SaasPricing={}))},{}],91:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./Models/_SaasLicense");!function(e){var t=n.SaasPricing.SaasLicense,i=function(){function e(e,t){this.switchToMobileWidthThreshold=991,this.selectedSkus=[],this.cardsSectionToResize=[".card-header-section",".card-description"],this.component=$(e),this.currencySymbol=$(e).attr("data-currency-symbol"),this.perYearText=$(e).attr("data-per-year-text"),this.componentId=$(e).attr("data-component-id"),this.calculatorResultsSection=$(e).find(".results-table"),this.mainResultSection=t,this.initCards()}return e.prototype.generateResultRow=function(e){var t=$('<tr class="sku-row" data-selected-sku-id="" data-selected-card-id=""><td class="description"><div class="product-description"></div><div class="plan-description"></div></td><td class="price"><span class="currency-symbol"></span><span class="price-value"></span><span  class="price-suffix"></span></td></tr>');return $(t).find(".sku-row").attr("data-selected-sku-id",e.skuId),$(t).find(".product-description").text(e.cardTitle),$(t).find(".plan-description").text(e.skuDescription),$(t).find(".price-value").text(e.skuMonthlyPrice),t},e.prototype.resizeRow=function(e){if(e){var t,i=$(window).outerWidth()>this.switchToMobileWidthThreshold;(t=Math.max.apply(Math,e.map(function(){return $(this).outerHeight()}).get()))&&i?$(e).css("height",t):$(e).css("height","auto")}},e.prototype.resizeCardsSections=function(){for(var e=0;e<this.cardsSectionToResize.length;e++){var t=this.component.find(" .cards .card "+this.cardsSectionToResize[e]);t.length>0&&this.resizeRow(t)}},e.prototype.refreshCalculatedResults=function(){this.selectedSkus=[];for(var e=0;e<this.cards.length;e++)if(!$(this.cards[e]).hasClass("disabled")){var i=$(this.cards[e]).find(".pricing-plans :selected");if(1===i.length){var n=$(i).attr("data-plan-sku-year-price"),r=$(i).attr("data-plan-sku-month-price"),o=$(i).attr("data-plan-sku-id"),a=new t;a.componentId=this.componentId,a.cardId=$(this.cards[e]).attr("data-card-id"),a.cardTitle=$(this.cards[e]).find(".card-header").text(),a.skuId=o,a.skuDescription=$(i).text(),a.skuYearlyPrice=parseInt(n,10),a.skuMonthlyPrice=parseFloat(r),a.colorClass=$(this.cards[e]).attr("data-card-color"),a.priceDescription=$(this.cards[e]).find(".under-price").text(),a.currencyValue=this.currencySymbol,this.selectedSkus.push(a)}}},e.prototype.refreshResultsSection=function(){var e=0;$(this.calculatorResultsSection).find("tr.sku-row").remove(),$(this.calculatorResultsSection).find(".total .currency-symbol").text(this.currencySymbol);for(var t=0;t<this.selectedSkus.length;t++){e+=this.selectedSkus[t].skuYearlyPrice;var i=this.generateResultRow(this.selectedSkus[t]);$(i).find(".currency-symbol").html(this.currencySymbol),$(i).find(".price-value").text(this.selectedSkus[t].skuYearlyPrice),$(i).find(".price-suffix").text(this.perYearText),$(this.calculatorResultsSection).find("tbody").prepend(i)}$(this.calculatorResultsSection).find("tr.total .price .price-value").text(e)},e.prototype.refreshPricing=function(){this.refreshCalculatedResults(),this.refreshResultsSection(),this.mainResultSection&&this.mainResultSection.updateLicenses(this.componentId,this.selectedSkus)},e.prototype.initCards=function(){if(this.component&&(this.cards=this.component.find(".cards .card"),this.cards.length>0)){var e=this;$.each(this.cards,function(t,i){var n=$(i).find(".license-switch");$(n).click(function(){var t=$(this).parent().parent().parent().parent();$(this).is(":checked")?$(t).removeClass("disabled"):$(t).addClass("disabled"),e.refreshPricing()});var r=$(i).find(".pricing-plans");$(r).change(function(){var t=$(this).parent().parent().parent(),i=$(t).find(".price-value"),n=$(this).find("option:selected");1===n.length&&n.attr("data-plan-sku-month-price")?$(i).text($(n).attr("data-plan-sku-month-price")):$(i).text("0"),e.refreshPricing()});var o=$(i).find(".controls");if(o.length>0){var a=$(i).find(".features-section"),s=$(a).find(".features"),l=$(o).find(".viewMore"),c=$(o).find(".viewLess");$(l).click(function(t){t.preventDefault(),$(s).find("li:gt(2)").slideToggle(),$(s).css("height","auto"),$(this).hide(),$(c).show(),e.resizeCardsSections()}),$(c).click(function(){event.preventDefault(),$(s).find("li:gt(2)").slideToggle(),$(s).css("height","auto"),$(this).hide(),$(l).show(),e.resizeCardsSections()})}})}},e.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.cards.length;t++)for(var i=$(this.cards[t]).find(".pricing-plans option"),n=0;n<i.length;n++){var r=$(i[n]).attr("data-sku");r&&e.indexOf(r)<0&&e.push(r)}return e},e.prototype.setPriceValue=function(e){if(e&&e.length>0){var t=e[0].currencySign;this.currencySymbol=t,this.component.attr("data-currency-symbol",t);for(var i=0;i<this.cards.length;i++){$(this.cards[i]).find(".currency-symbol").text(this.currencySymbol);for(var n=$(this.cards[i]).find(".pricing-plans option"),r=$(this.cards[i]).find(".pricing-plans"),o=$(this.cards[i]).find(".pricing-section"),a=!1,s=0;s<n.length;s++){var l=$(n[s]).attr("data-sku"),c=$(n[s]).attr("data-plan-sku-quantity"),u=parseInt(c,10);if(l){var d=e.filter(function(e){return e.sku===l});if(d.length>0){a=!0;var h=d[0].amount*u,p=Math.round(100*(d[0].amount*u/12+Number.EPSILON))/100;$(n[s]).attr("data-plan-sku-year-price",h),$(n[s]).attr("data-plan-sku-month-price",p),$(n[s]).prop("disabled",!1)}}}if(a){var f=n.filter(function(e){return""!==$(e).attr("data-plan-sku-year-price")});$(f[0]).prop("selected",!0),o.removeClass("invisible"),$(r).change(),this.calculatorResultsSection.removeClass("invisible")}}this.resizeCardsSections()}},e.prototype.resizeCardsSection=function(){this.resizeCardsSections()},e.prototype.showPricingSection=function(){this.refreshPricing(),this.component.find(".pricing-section").removeClass("invisible"),this.calculatorResultsSection.removeClass("invisible")},e}();e.SaasCalculator=i}(i.SaasPricing||(i.SaasPricing={}))},{"./Models/_SaasLicense":90}],92:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){var t=$(e);this.sku=t.find(".price").attr("data-sku"),this.pricePlaceholder=t.find(".price .price-value"),this.pricingSection=t.find(".pricing-section")}return e.prototype.getUsedSku=function(){return this.sku},e.prototype.setPriceValue=function(e){if(e){var t=this.sku,i=e.filter(function(e){return e.sku===t});if(i.length>0){this.pricingSection.removeClass("invisible");var n=Math.round(100*(i[0].amount/12+Number.EPSILON))/100;this.pricePlaceholder.text(i[0].currencySign+n)}}},e.prototype.showPricingSection=function(){this.pricingSection.removeClass("invisible")},e}();e.SaasCalculatorPricingCard=t}(i.SaasPricing||(i.SaasPricing={}))},{}],93:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){this.selectedLicenses=[],this.baseUrl="/solarapi/pdf/pricingcalculatorpdf";var t=$(e);this.pdfButton=$(t).find(".pdf-button a"),this.componentId=$(t).data("component-id"),this.licenseListContainer=$(t).find(".saas-product-licenses ul"),this.totalContainer=$(t).find(".total-yearly"),this.totalPriceContainer=$(t).find(".total-yearly .price .price-value"),this.currencySymbol=$(t).find(".total-yearly .price .currency-symbol").text(),this.currencySymbolContainer=$(t).find(".total-yearly .price .currency-symbol"),this.perYearText=$(t).find(".total-yearly .price-suffix").text()}return e.prototype.mergeLicense=function(e,t){for(var i=[],n=0;n<this.selectedLicenses.length;n++)this.selectedLicenses[n].componentId!==e&&i.push(this.selectedLicenses[n]);this.selectedLicenses=i;for(var r=0;r<t.length;r++)this.selectedLicenses.push(t[r])},e.prototype.rebuildPdfButton=function(){if(this.selectedLicenses.length>0){for(var e="PricingCalcGuid="+this.componentId+"&TotalPrice="+this.currencySymbol+this.totalPriceContainer.text()+"&PricingDetails=",t=0;t<this.selectedLicenses.length;t++)t>0&&(e+=encodeURIComponent("]")),e+=encodeURIComponent(this.selectedLicenses[t].cardTitle+"+"+this.selectedLicenses[t].skuDescription+"+"+this.currencySymbol+this.selectedLicenses[t].skuYearlyPrice).replace(/%20/g,"+");this.pdfButton.attr("href",this.baseUrl+"?"+e)}else this.pdfButton.attr("href","")},e.prototype.generateConfirmationResultRow=function(e){var t=$('<li><li><div class="row product-info yellow-border"><div class="col-md-4 product-name"></div><div class="col-md-5 license-description"></div><div class="col-md-3 product-pricing"><div class="row"><div class="col-sm-12"><div class="price"><span class="currency-symbol"></span><span class="price-value"></span></div><span class="price-suffix"></span></div></div><div class="row"><div class="col-sm-12"><div class="bill-type"></div></div></div></div></div></li>');return $(t).find(".product-info").addClass(e.colorClass),$(t).find(".product-name").text(e.cardTitle),$(t).find(".license-description").text(e.skuDescription),$(t).find(".currency-symbol").text(e.currencyValue),$(t).find(".price-value").text(e.skuYearlyPrice),$(t).find(".price-suffix").text(this.perYearText),$(t).find(".bill-type").text(e.priceDescription),t},e.prototype.refreshResults=function(){this.licenseListContainer.find("li").remove();for(var e=0,t=0;t<this.selectedLicenses.length;t++){e+=this.selectedLicenses[t].skuYearlyPrice;var i=this.generateConfirmationResultRow(this.selectedLicenses[t]);this.licenseListContainer.append(i)}this.totalPriceContainer.text(e),this.rebuildPdfButton()},e.prototype.updateLicenses=function(e,t){t.length>0&&(this.currencySymbol=t[0].currencyValue,this.currencySymbolContainer.text(t[0].currencyValue),this.totalContainer.removeClass("invisible")),this.mergeLicense(e,t),this.refreshResults()},e.prototype.showPricingSection=function(){},e}();e.SaasCalculatorResult=t}(i.SaasPricing||(i.SaasPricing={}))},{}],94:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../AzureFunctionAPI/Models/_PricingProductRequest"),r=e("./_SaasCalculatorResult"),o=e("./_SaasCalculatorPricingCard"),a=e("./_SaasCalculator"),s=e("../AzureFunctionAPI/_AzureFunction");!function(e){var t=r.SaasPricing.SaasCalculatorResult,i=s.AzureFunctionAPI.AzureFunction,l=a.SaasPricing.SaasCalculator,c=o.SaasPricing.SaasCalculatorPricingCard,u=n.AzureFunctionAPI.PricingProductRequest,d=function(){function e(){this.pricingCards=[],this.calculators=[],this.init(),window.SaasController=this}return e.prototype.updatePricing=function(e){for(var t=0;t<this.pricingCards.length;t++)this.pricingCards[t].setPriceValue(e);for(t=0;t<this.calculators.length;t++)this.calculators[t].setPriceValue(e);this.resultSection.showPricingSection()},e.prototype.mergeArrays=function(e,t){return e.concat(t.filter(function(t){return-1===e.indexOf(t)}))},e.prototype.showPricingSections=function(){for(var e=0;e<this.pricingCards.length;e++)this.pricingCards[e].showPricingSection();for(var t=0;t<this.calculators.length;t++)this.calculators[t].showPricingSection()},e.prototype.init=function(){var e=this,n=$(".combined-saas-calc"),r=$(".saas-product-cards .saas-product-card"),o=$(".saas-pricing-calculator");if(o.length>0){n.length>0&&(this.resultSection=new t(n[0]));for(var a=0;a<o.length;a++)this.calculators.push(new l(o[a],this.resultSection))}for(var s=0;s<r.length;s++)this.pricingCards.push(new c(r[s]));if(this.pricingCards.length>0||this.calculators.length>0){this.azureFunction=new i;for(var d=[],h=0;h<this.pricingCards.length;h++){var p=this.pricingCards[h].getUsedSku();p&&d.indexOf(p)<0&&d.push(p)}for(var f=0;f<this.calculators.length;f++){var g=this.calculators[f].getUsedSkus();d=this.mergeArrays(d,g)}var v=new u;v.skus=d,this.azureFunction.getProductPricing(v).then(function(t){t&&t.skuPricing&&t.skuPricing.length>0?e.updatePricing(Array.from(t.skuPricing)):e.showPricingSections()}).catch(function(t){console.error("Error: There was an error getting pricing details. Data: "+t),e.showPricingSections()});for(var m=0;m<this.calculators.length;m++)this.calculators[m].resizeCardsSection();$(window).on("scroll",function(t){for(var i=0;i<e.calculators.length;i++)e.calculators[i].resizeCardsSection()})}},e}();e.SaasPricingController=d}(i.SaasPricing||(i.SaasPricing={}))},{"../AzureFunctionAPI/Models/_PricingProductRequest":7,"../AzureFunctionAPI/_AzureFunction":11,"./_SaasCalculator":91,"./_SaasCalculatorPricingCard":92,"./_SaasCalculatorResult":93}],95:[function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(i,"__esModule",{value:!0});var o=function(e){function t(){var t=e.call(this)||this;return t.program=null,t.sourceUrl=null,t.parentCampaign=null,t.pageType=null,t.majorVersion=null,t.deviceType=null,t.visitNumber=0,t.operationSystem=null,t.confirmationUrl=null,t.area=t.phone?t.phone.code:null,t.workPhone=t.phone?t.phone.number:null,t.country=t.location?t.location.country:null,t.state=t.location?t.location.state:null,t.zipCode=t.location?t.location.postalCode:null,t}return r(t,e),t}(e("../../Registration/Models/_RegistrationData").default);i.default=o},{"../../Registration/Models/_RegistrationData":72}],96:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("./Models/_SilentSubmitModel"),a=e("../Helpers/_QueryParametersHelper"),s=e("../AzureFunctionAPI/_AzureFunction"),l=e("../Helpers/_CookieHelper"),c=e("../Helpers/_MapHelper"),u=function(){function e(){var e=this;this.silentSubmit=function(t){return n(e,void 0,void 0,function(){var e,i,n,s,u,d,h,p,f,g,v,m,y,b=this;return r(this,function(r){switch(r.label){case 0:if(t.preventDefault(),!((e=t.target)instanceof Element))return[3,5];if(!(n=(i=e).getAttribute("data-silent-submit"))||"true"!==n)return[2];if(!window.dataLayer)return[2];s=null,r.label=1;case 1:return r.trys.push([1,3,,4]),u=l.CookieHelper.getCookie("RegistrationDetails"),[4,this.azureFunction.decryptString(u)];case 2:return d=r.sent(),s=c.Helpers.MapHelper.deserialize(o.default,JSON.parse(d)),[3,4];case 3:return h=r.sent(),TrackJS.track(h),[3,4];case 4:if(!s)return[2];p=i.getAttribute("data-programid"),f=i.getAttribute("data-programid-silent"),s.program=f||p,s.productId=i.getAttribute("data-productid"),s.campaign=i.getAttribute("data-campaign"),s.operationSystem=i.getAttribute("data-operating-system"),s.confirmationUrl=i.getAttribute("data-confirmation-url"),s.area=s.phone?s.phone.code:null,s.workPhone=s.phone?s.phone.number:null,s.country=s.location?s.location.country:null,s.state=s.location?s.location.state:null,s.zipCode=s.location?s.location.postalCode:null,g=window.dataLayer,v=window.sitecat,s.sourceUrl=window.location.href,s.pageType=g.pageType,g.site&&(s.majorVersion=g.site.majorVersion,s.deviceType=g.site.deviceType),v&&v.eVar23&&(s.visitNumber=v.eVar23),(m=a.Helpers.QueryParametersHelper.getUrlParameter("parentCampaign"))&&(s.parentCampaign=m),(y={}).method="POST",y.dataType="json",y.data=JSON.parse(JSON.stringify(s)),$.ajax("/solarapi/registration/silentsubmissionregistration",y).done(function(e){i.classList.contains("mobile")?window.location.href=s.confirmationUrl:e&&"Error"===e.toString()||(i.classList.contains("download-btn-silent-submit")?window.location.href=i.getAttribute("href"):b.showDownloadModal(e))}),r.label=5;case 5:return[2]}})})},this.azureFunction=new s.AzureFunctionAPI.AzureFunction;for(var t=document.querySelectorAll('.product-card-silent-submit[data-silent-submit="true"]'),i=document.querySelectorAll('.download-btn-silent-submit[data-silent-submit="true"]'),u=0,d=Array.from(t);u<d.length;u++){d[u].addEventListener("click",this.silentSubmit)}for(var h=0,p=Array.from(i);h<p.length;h++){p[h].addEventListener("click",this.silentSubmit)}}return e.prototype.showDownloadModal=function(e){var t=document.createElement("div"),i=document.getElementById("downloadmodalcontent");if(null==i){var n=document.createElement("div");n.innerHTML='<div class="modal fade downloadmodal" id="downloadmodal" tabindex="-1" role="dialog" aria-labelledby="downloadmodal" aria-hidden="true"><div class="modal-dialog" role="document"><div class="iconClose" data-dismiss="modal" aria-label="Close"><span class="overlayClose">Close</span><i class="fa fa-times-circle-o" aria-hidden="true"></i></div><div class="modal-content" id="downloadmodalcontent"></div></div></div>',document.body.appendChild(n),i=document.getElementById("downloadmodalcontent")}$.get(e).done(function(e){t.innerHTML=e.toString(),i.innerHTML=t.getElementsByClassName("cDownloads")[0].outerHTML;var n=$(i).find(".productCard");if(1===n.length){var r=$(n)[0].getElementsByClassName("btnGreen")[0].getAttribute("href");window.location.href=r}else $("#downloadmodal").modal("show")})},e}();i.SilentSubmitService=u},{"../AzureFunctionAPI/_AzureFunction":11,"../Helpers/_CookieHelper":26,"../Helpers/_MapHelper":30,"../Helpers/_QueryParametersHelper":32,"./Models/_SilentSubmitModel":95}],97:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){this.filtersItems=[],this.chipRemovedHandler=[],this.removeAllFiltersHandler=[],e&&(e=0===e.indexOf(".")?e:"."+e,this.filtersSelectionContainer=$(e),this.filtersSelectionContainer&&(this.filtersSelectionComponent=this.filtersSelectionContainer.find(".sw-filters-selection"),this.filtersSelectionComponent?(this.initEvents(),this.chipsContainer=this.filtersSelectionComponent.find(".sw-filters-selection-chips"),this.noOfResultsElement=this.filtersSelectionComponent.find(".sw-filters-selection-results"),this.noOfResultsPrefix=this.noOfResultsElement.attr("data-selection-prefix"),this.noOfResultsSuffix=this.noOfResultsElement.attr("data-selection-suffix")):console.error("Filters Selection component for selector "+e+" is not rendered!")))}return e.prototype.initEvents=function(){this.removeAllFiltersEvent()},e.prototype.chipRemoveClicked=function(e){var t=this,i=$(e.target).parent(),n=this.filtersItems.findIndex(function(e){return e.item.id===i.attr("id")});this.chipRemovedHandler.slice(0).forEach(function(e){return e(t.filtersItems[n].item)}),i.remove(),this.filtersItems.splice(n,1),0===this.filtersItems.length&&this.filtersSelectionComponent.addClass("sw-filters-selection-hidden")},e.prototype.removeAllFiltersEvent=function(){var e=this;this.filtersSelectionComponent.find(".sw-selection-remove-all a").click(function(t){e.removeAllFilters(),e.removeAllFiltersHandler.slice(0).forEach(function(e){return e()})})},e.prototype.subscribeToChipRemovedEvent=function(e){this.chipRemovedHandler.push(e)},e.prototype.subscribeToRemoveAllFiltersEvent=function(e){this.removeAllFiltersHandler.push(e)},e.prototype.addChip=function(e){var t=this;if(-1==this.filtersItems.findIndex(function(t){return t.item.id===e.id})){var i=$("<div/>",{text:e.label,class:"sw-filters-selection-chip hidden-md hidden-sm hidden-xs",id:e.id,"data-linktype":"Filter Component","data-linkdetail":"Filter Component Remove "+e.label}),n=$("<div/>",{text:e.label,class:"sw-filters-selection-chip hidden-lg",id:e.id,"data-linktype":"Filter Component","data-linkdetail":"Filter Component Remove Mobile "+e.label}),r=$("<div/>",{text:"","data-linktype":"Filter Component","data-linkdetail":"Filter Component Remove "+e.label,class:"remove-icon"}),o=$("<div/>",{text:"","data-linktype":"Filter Component","data-linkdetail":"Filter Component Remove Mobile "+e.label,class:"remove-icon"});r.on("click",function(e){return t.chipRemoveClicked(e)}),o.on("click",function(e){return t.chipRemoveClicked(e)}),r.appendTo(i),o.appendTo(n),i.appendTo(this.chipsContainer),n.appendTo(this.chipsContainer),this.filtersItems.push({item:e,domElement:i})}this.filtersItems.length>0&&this.filtersSelectionComponent.removeClass("sw-filters-selection-hidden")},e.prototype.removeChip=function(e){var t=this.filtersItems.findIndex(function(t){return t.item.id===e.id});t>-1&&(this.filtersItems[t].domElement.remove(),this.filtersItems.splice(t,1)),0===this.filtersItems.length&&this.filtersSelectionComponent.addClass("sw-filters-selection-hidden")},e.prototype.removeAllFilters=function(){this.filtersItems.forEach(function(e){e.domElement.remove()}),this.filtersItems=[],this.filtersSelectionComponent.addClass("sw-filters-selection-hidden")},e.prototype.setNoOfResults=function(e){if(e){var t=this.noOfResultsPrefix?this.noOfResultsPrefix+" ":"";t+=e,t=this.noOfResultsSuffix?t+" "+this.noOfResultsSuffix:t,this.noOfResultsElement.text(t)}else this.noOfResultsElement.text("")},e.prototype.hasActiveChips=function(){return this.filtersItems.length>0},e}();e.FiltersSelection=t}(i.Shared||(i.Shared={}))},{}],98:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t){void 0===t&&(t=null);var i=this;this.selectedFiltersItem=[],this.mobileTempSelectedFiltersItemsAdd=[],this.mobileTempSelectedFiltersItemsRemove=[],this.isMobile=!1,this._mobileBreakpoint=992,this.filtersUpdatedEventHandler=[],this.applyAllMobile=!0,e&&(e=0===e.indexOf(".")?e:"."+e,this.filtersContainer=$(e),this.filtersContainer&&(this.filtersComponent=this.filtersContainer.find(".sw-filters"),this.filtersComponent||console.error("Filters component for selector "+e+" is not rendered!"),this.applyAllMobile=this.filtersComponent.attr("data-controls-mobile")?"True"==this.filtersComponent.attr("data-controls-mobile"):this.applyAllMobile,this.filtersSelection=t,this.filtersSelection&&(this.filtersSelection.subscribeToChipRemovedEvent(function(e){return i.chipRemovedFromFiltersSelection(e)}),this.filtersSelection.subscribeToRemoveAllFiltersEvent(function(){return i.removeAllFilters()})),this.initEvents()))}return e.prototype.initEvents=function(){this.initToggle(),this.initCheckboxClick(),this.initSelectAll(),this.initDeselectAll(),this.initMobileToggle(),this.initMobileCheck(),this.initMobileApplyFilters(),this.initMobileRemoveAllFilters()},e.prototype.initToggle=function(){this.filtersComponent.find(".sw-filters-category-title").on("click",function(e){var t=$(e.target);t.toggleClass("closed"),t.siblings(".sw-filters-items").toggleClass("closed")}),this.filtersComponent.find(".sw-filters-category-toggle-icon").on("click",function(e){var t=$(e.target).parent();t.toggleClass("closed"),t.siblings(".sw-filters-items").toggleClass("closed")}),this.filtersComponent.find(".sw-filters-item-title").on("click",function(e){var t=$(e.target);t.toggleClass("closed"),t.siblings(".sw-filters-items").toggleClass("closed")}),this.filtersComponent.find(".sw-filters-item-toggle-icon").on("click",function(e){var t=$(e.target).parent();t.toggleClass("closed"),t.siblings(".sw-filters-items").toggleClass("closed")})},e.prototype.initCheckboxClick=function(){var e=this;this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").change(function(t){var i=$(t.target);e.checkboxToggle(i),e.isMobile&&e.applyAllMobile||e.executeFiltersUpdatedEvent()});var t=this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox:checked");if(t.length>0){for(var i=0;i<t.length;i++){var n=$(t[i]);this.checkboxToggle(n)}this.isMobile||this.executeFiltersUpdatedEvent()}},e.prototype.checkboxToggle=function(e){var t,i=e.closest(".sw-filters-category"),n={id:e.attr("value"),label:e.attr("name"),categoryId:i.attr("data-id"),categoryLabel:i.attr("data-label"),queryKey:e.attr("data-key")};e.is(":checked")?this.isMobile&&this.applyAllMobile?this.mobileTempSelectedFiltersItemsAdd.some(function(e){return e.item.id===n.id})||this.mobileTempSelectedFiltersItemsAdd.push({item:n,domElement:e}):(this.filtersSelection&&this.filtersSelection.addChip(n),this.selectedFiltersItem.some(function(e){return e.item.id===n.id})||this.selectedFiltersItem.push({item:n,domElement:e})):this.isMobile&&this.applyAllMobile?(t=this.mobileTempSelectedFiltersItemsAdd.findIndex(function(e){return e.item.id===n.id}))>=0?this.mobileTempSelectedFiltersItemsAdd.splice(t,1):this.mobileTempSelectedFiltersItemsRemove.push({item:n,domElement:e}):(this.filtersSelection&&this.filtersSelection.removeChip(n),(t=this.selectedFiltersItem.findIndex(function(e){return e.item.id===n.id}))>=0&&this.selectedFiltersItem.splice(t,1))},e.prototype.initSelectAll=function(){var e=this;this.filtersComponent.find(".sw-filters-items-select-all>.sw-filters-items-select-all-add").on("click",function(t){$(t.target).parent().parent().find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").each(function(t,i){var n=$(i);n.is(":checked")||(n.prop("checked",!0),e.checkboxToggle(n))}),e.isMobile||e.executeFiltersUpdatedEvent()})},e.prototype.initDeselectAll=function(){var e=this;this.filtersComponent.find(".sw-filters-items-select-all>.sw-filters-items-select-all-delete").on("click",function(t){$(t.target).parent().parent().find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").each(function(t,i){var n=$(i);n.is(":checked")&&(n.prop("checked",!1),e.checkboxToggle(n))}),e.isMobile||e.executeFiltersUpdatedEvent()})},e.prototype.initMobileToggle=function(){var e=this;this.filtersComponent.find(".sw-filters-title").on("click",function(t){var i=$(t.target);e.filtersComponent.toggleClass("sw-filters-opened-mobile"),e.filtersComponent.find(".sw-filters-content").toggleClass("sw-filters-content-hidden-mobile"),i.find(".toggle-filters-mobile").toggleClass("toggle-filters-mobile-hidden"),e.mobileTempSelectedFiltersItemsAdd.forEach(function(e){e.domElement.prop("checked",!0)}),e.mobileTempSelectedFiltersItemsRemove.forEach(function(e){e.domElement.prop("checked",!1)}),e.mobileTempSelectedFiltersItemsAdd=[],e.mobileTempSelectedFiltersItemsRemove=[]})},e.prototype.initMobileCheck=function(){var e=this;$(window).on("load resize",function(t){e.isMobile=$(window).width()<=e._mobileBreakpoint})},e.prototype.initMobileApplyFilters=function(){var e=this;this.filtersComponent.find(".sw-filters-content-mobile-apply-filters").on("click",function(t){e.applyTempSelectedFiltersItems(),e.filtersComponent.find(".sw-filters-title").click(),e.executeFiltersUpdatedEvent()})},e.prototype.initMobileRemoveAllFilters=function(){var e=this;this.filtersComponent.find(".sw-filters-content-mobile-remove-filters").on("click",function(t){e.removeAllFilters(),e.filtersSelection&&e.filtersSelection.removeAllFilters(),e.filtersComponent.find(".sw-filters-title").click()})},e.prototype.chipRemovedFromFiltersSelection=function(e){var t=this.selectedFiltersItem.findIndex(function(t){return t.item.id===e.id});t>-1&&(this.selectedFiltersItem[t].domElement.prop("checked",!1),this.selectedFiltersItem.splice(t,1),this.executeFiltersUpdatedEvent())},e.prototype.removeAllFilters=function(){this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox").each(function(e,t){var i=$(t);i.is(":checked")&&i.prop("checked",!1)}),this.selectedFiltersItem=[],this.executeFiltersUpdatedEvent()},e.prototype.executeFiltersUpdatedEvent=function(){var e=this;this.filtersUpdatedEventHandler.slice(0).forEach(function(t){return t(e.selectedFiltersItem.map(function(e){return e.item}))})},e.prototype.applyTempSelectedFiltersItems=function(){var e=this;this.mobileTempSelectedFiltersItemsAdd.forEach(function(t){e.filtersSelection&&e.filtersSelection.addChip(t.item),e.selectedFiltersItem.some(function(e){return e.item.id===t.item.id})||e.selectedFiltersItem.push(t)}),this.mobileTempSelectedFiltersItemsRemove.forEach(function(t){e.filtersSelection&&e.filtersSelection.removeChip(t.item);var i=e.selectedFiltersItem.findIndex(function(e){return e.item.id===t.item.id});i>=0&&e.selectedFiltersItem.splice(i,1)}),this.mobileTempSelectedFiltersItemsAdd=[],this.mobileTempSelectedFiltersItemsRemove=[]},e.prototype.subscribeToFiltersUpdatedEvent=function(e){this.filtersUpdatedEventHandler.push(e)},e.prototype.getFilterItems=function(){return this.selectedFiltersItem.map(function(e){return e.item})},e.prototype.setCheckedCheckboxesByNames=function(e){for(var t=this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox"),i=0;i<t.length;i++){var n=$(t[i]);e.indexOf(n.attr("name"))>-1?n.prop("checked",!0):n.prop("checked",!1),this.checkboxToggle($(n)),this.applyTempSelectedFiltersItems()}},e.prototype.setCheckedCheckboxesByKeys=function(e){for(var t=this.filtersComponent.find(".sw-filters-item:not(sw-filters-item-expand) input:checkbox"),i=0;i<t.length;i++){var n=$(t[i]);e.indexOf(n.data("key"))>-1?n.prop("checked",!0):n.prop("checked",!1),this.checkboxToggle($(n)),this.applyTempSelectedFiltersItems()}},e.prototype.showActiveSections=function(){if(!this.isMobile&&!this.applyAllMobile)for(var e=this.filtersComponent.find(".sw-filters-category"),t=0;t<e.length;t++){var i=$(e[t]).find("input:checkbox:checked"),n=$(e[t]).find(".sw-filters-category-title ");i.length>0?($(n).removeClass("closed"),$(n).siblings(".sw-filters-items").removeClass("closed")):($(n).addClass("closed"),$(n).siblings(".sw-filters-items").addClass("closed"))}},e}();e.Filters=t}(i.Shared||(i.Shared={}))},{}],99:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){this._mobileBrakpoint=992,this.noOfColumns=2,this.enabledMobile=!1,e.componentSelector&&e.itemSelector&&(this.component=$(e.componentSelector),this.component&&(this.config=e,e.mobileBreakpoint&&e.mobileBreakpoint>0&&(this._mobileBrakpoint=e.mobileBreakpoint),e.noOfColumns&&e.noOfColumns>1&&(this.noOfColumns=e.noOfColumns),void 0!=e.enableMobile&&null!=e.enableMobile&&(this.enabledMobile=e.enableMobile),this.fixLayoutWatcher()))}return e.prototype.fixLayoutWatcher=function(){var e=this;$(window).on("load resize",function(t){e.noOfColumns>=2&&(e.enabledMobile||!e.enabledMobile&&$(window).outerWidth()>=e._mobileBrakpoint)?e.getMasonryContainers().each(function(t,i){e.initLayout($(i))}):e.getMasonryContainers().each(function(e,t){$(t).attr("style","")})})},e.prototype.getMasonryContainers=function(){return this.config.sectionSelector?this.component.find(this.config.sectionSelector):this.component},e.prototype.initLayout=function(e){var t=this;this.columnsHeights=Array(this.noOfColumns).fill(0),e.addClass("masonry-columns"),e.find(this.config.itemSelector).each(function(e,i){if($(i).addClass("masonry-item"),t.config.mediaSelector){var n=$(i).find(t.config.mediaSelector).first();if(n&&n.height()<=50){var r=n.attr("data-aspect-ratio")?+n.attr("data-aspect-ratio"):.65,o=$(i).width()*r;t.columnsHeights[e%2]+=o}}t.columnsHeights[e%2]+=$(i).outerHeight()+30});var i=Math.max.apply(Math,this.columnsHeights);e.css("height",i+10)},e}();e.Masonry=t}(i.Shared||(i.Shared={}))},{}],100:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e,t){void 0===t&&(t={enterKeyPressEventEnabled:!0,typingEventEnabled:!1,typingDelayTime:500}),this.searchExecutedEventHandler=[],this.config=t,e=0===e.indexOf(".")?e:"."+e,this.searchBoxContainer=$(e),this.searchBoxComponent=this.searchBoxContainer.find(".sw-search-box"),this.searchBoxInput=this.searchBoxComponent.find("input"),this.initEvents()}return e.prototype.initEvents=function(){this.initSearchButtonClicked(),this.config.enterKeyPressEventEnabled&&this.initEnterKeyPress(),this.config.typingEventEnabled&&this.initTypingEvent()},e.prototype.initSearchButtonClicked=function(){var e=this;this.searchBoxComponent.find(".sw-search-box-button").on("click",function(t){e.executeSearchEvent()})},e.prototype.initTypingEvent=function(){var e=this;this.searchBoxInput.on("keyup",function(t){13!==t.keyCode&&(clearTimeout(e.typingTimer),e.typingTimer=setTimeout(function(){e.executeSearchEvent()},e.config.typingDelayTime))})},e.prototype.initEnterKeyPress=function(){var e=this;this.searchBoxInput.on("keypress",function(t){13===t.which&&(clearTimeout(e.typingTimer),e.executeSearchEvent())})},e.prototype.executeSearchEvent=function(){var e=this;this.searchExecutedEventHandler.slice(0).forEach(function(t){return t(e.searchBoxInput.val().toString())})},e.prototype.subscribeToSearchExecuteEvent=function(e){this.searchExecutedEventHandler.push(e)},e.prototype.getValue=function(){return this.searchBoxInput.val().toString()},e.prototype.hide=function(){this.searchBoxContainer.hide()},e.prototype.show=function(){this.searchBoxContainer.show()},e.prototype.setValue=function(e,t){this.searchBoxInput.val(e),t&&this.executeSearchEvent()},e}();e.SearchBox=t}(i.Shared||(i.Shared={}))},{}],101:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../AzureFunctionAPI/_AzureFunction"),a=e("../Helpers/_CookieHelper"),s=function(){function e(){var e=this;this.azureFunction=new o.AzureFunctionAPI.AzureFunction,this.prospectElement=document.querySelector(".spy-cloud"),this.prospectElement&&(this.getEmailFromCookie().then(function(t){return e.loadProspectData(t)}),this.prospectElement.addEventListener("refreshProspect",function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.loadProspectData(t.detail.email)];case 1:return e.sent(),[2]}})})}))}return e.prototype.loadProspectData=function(e){return n(this,void 0,void 0,function(){var t;return r(this,function(i){switch(i.label){case 0:return[4,this.azureFunction.getProspectData(e)];case 1:return t=i.sent(),this.updateProspectElements(t),[2]}})})},e.prototype.getEmailFromCookie=function(){return n(this,void 0,void 0,function(){var e,t,i;return r(this,function(n){switch(n.label){case 0:return e=a.CookieHelper.getCookie("RegistrationDetails"),[4,this.azureFunction.decryptString(e)];case 1:if(t=n.sent(),i=JSON.parse(t))return[2,i.Email];throw new Error("Unable to read data from cookie.")}})})},e.prototype.updateProspectElements=function(e){if(e){var t=document.getElementById("emailRecords"),i=document.getElementById("emailLastDiscoveredDaysAgo"),n=document.getElementById("domainValue"),r=document.getElementById("domainRecords"),o=document.getElementById("domainLastDiscoveredDaysAgo"),a=document.getElementById("domainRelatedSources");console.log(e),t&&(t.innerText=parseInt(e.email.records)>0?e.email.records:t.getAttribute("data-no-record-text")),i&&(i.innerText=parseInt(e.email.last_discovered_days_ago)>0?e.email.last_discovered_days_ago+" "+i.getAttribute("data-days-ago-text"):i.getAttribute("data-no-record-text")),n&&(n.innerText=e.domain.value),r&&(r.innerText=parseInt(e.domain.records)>0?e.domain.records:r.getAttribute("data-no-record-text")),o&&(o.innerText=parseInt(e.domain.last_discovered_days_ago)>0?e.domain.last_discovered_days_ago+" "+o.getAttribute("data-days-ago-text"):o.getAttribute("data-no-record-text")),a&&(a.innerText=parseInt(e.domain.related_sources)>0?e.domain.related_sources:a.getAttribute("data-no-record-text"))}},e}();i.ProspectController=s},{"../AzureFunctionAPI/_AzureFunction":11,"../Helpers/_CookieHelper":26}],102:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(e){this.productId=e}}();e.RequestModel=t}(i.UseCases||(i.UseCases={}))},{}],103:[function(e,t,i){"use strict";var n=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Helpers/_MapHelper");!function(e){var t=o.Helpers.JsonProperty,i=function(){function e(){this.isViewed=!1,this.priority=1,this.title=void 0,this.description=void 0,this.image=void 0,this.useCaseLink=void 0,this.isNew=void 0,this.html=void 0}return n([t("Title"),r("design:type",String)],e.prototype,"title",void 0),n([t("Description"),r("design:type",String)],e.prototype,"description",void 0),n([t("Image"),r("design:type",String)],e.prototype,"image",void 0),n([t("UseCaseLink"),r("design:type",String)],e.prototype,"useCaseLink",void 0),n([t("IsNew"),r("design:type",Boolean)],e.prototype,"isNew",void 0),e}();e.UseCaseItem=i;var a=function(){function e(){this.newLabel=void 0,this.newText=void 0,this.viewedLabel=void 0,this.viewedText=void 0,this.useCases=void 0,this.status=void 0,this.errorMessage=void 0}return n([t("Status"),r("design:type",Number)],e.prototype,"status",void 0),n([t("ErrorMessage"),r("design:type",String)],e.prototype,"errorMessage",void 0),n([t("NewLabel"),r("design:type",String)],e.prototype,"newLabel",void 0),n([t("NewText"),r("design:type",String)],e.prototype,"newText",void 0),n([t("ViewedLabel"),r("design:type",String)],e.prototype,"viewedLabel",void 0),n([t("ViewedText"),r("design:type",String)],e.prototype,"viewedText",void 0),n([t({clazz:i,name:"UseCases"}),r("design:type",Array)],e.prototype,"useCases",void 0),e}();e.ResponseModel=a}(i.UseCases||(i.UseCases={}))},{"../../Helpers/_MapHelper":30}],104:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){return function(){this.viewedDateTime=new Date}}();e.ViewedUseCaseModel=t}(i.UseCases||(i.UseCases={}))},{}],105:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./Models/_ResponseModel"),r=e("./Models/_RequestModel"),o=e("../Helpers/_MapHelper"),a=e("../Helpers/_AjaxHelper"),s=e("./_RenderingManager"),l=e("./_LocalStorageManager"),c=e("./_SearchEngine"),u=e("./_PlaceHoldersManager"),d=e("../Filters/_TextBoxFilter"),h=e("../Helpers/_DeviceHelper");!function(e){var t,i=n.UseCases.ResponseModel,p=r.UseCases.RequestModel,f=o.Helpers.MapHelper,g=a.Helpers.AjaxHelper,v=s.UseCases.RenderingManager,m=l.UseCases.LocalStorageManager,y=c.UseCases.SearchEngine,b=u.UseCases.PlaceholdersManager,w=d.Filters.TextBoxFilter,C=h.Helpers.DeviceHelper;!function(e){e[e.None=0]="None",e[e.Desktop=1]="Desktop",e[e.Mobile=2]="Mobile"}(t||(t={}));var P=function(){function e(){var e=this;this.useCasesComponent=$(".use-case-landing"),this.productId=$("#productId"),this.filteredCards=new Array,this.anyViewedCards=!1,this.anyNewCards=!1,this.sortingFilter=$(".sorting-dropdown"),this.searchInput=$(".use-case-search #custom-search-input input"),this.viewedLabel=$(".use-case-landing #viewed-label").val(),this.newLabel=$(".use-case-landing #new-label").val(),this.isMobileViewActive=!1,this.activePredictiveSearchState=t.None,this.onSortingChange=function(){e.updateSortOptions()&&(e.filteredCards=e.getFilteredCards(e.searchFilter.value));var t,i=e.getActiveSortingOption();0===(t=e.searchEngine.sortItems(e.filteredCards,i)).length?(e.renderingManager.clearCards(),e.placeHoldersManager.showNoResultsMessage(e.searchFilter.value)):e.placeHoldersManager.hideNoResultsMessage(),e.placeHoldersManager.updatePagingInfo(t.length,1,t.length),e.renderingManager.renderCards(t)},this.onFilterChange=function(){var t=e.searchFilter.value,i=e.getActiveSortingOption();e.filteredCards=e.getFilteredCards(t),t.length>0&&"viewed"!==i&&"new"!==i&&e.sortingFilter.val("Best_Match"),e.onSortingChange(),e.placeHoldersManager.updateInputPlaceHolderField(e.filteredCards.length,t),e.placeHoldersManager.hidePredictiveSearch(e.isMobileViewActive),e.updateUrl()},this.onMobileFilterChange=function(){e.searchFilter.initOptions(e.mobileSearchFilter.inputValue),e.placeHoldersManager.hidePredictiveSearch(!0),e.onFilterChange()},this.onValueChanged=function(){var i=e.searchFilter.value;i=i.replace(/-/g," ");var n=$(".predictive-desktop-search .search-content");e.searchEngine.setItems(e.model.useCases),e.handlePredictiveSearch(!1,i,n),e.activePredictiveSearchState=t.Desktop},this.onMobileValueChanged=function(){var i=e.mobileSearchFilter.value;i=i.replace(/-/g," ");var n=$(".predictive-mobile-search .search-content");e.searchEngine.setItems(e.model.useCases),e.handlePredictiveSearch(!0,i,n),e.activePredictiveSearchState=t.Mobile},null!=this.useCasesComponent&&this.useCasesComponent.length>0&&(this.placeHoldersManager=new b,this.bindWindowEvents(),this.initializeUseCasesData(),this.dbManager=new m,this.dbManager.init(),this.initializeSearchFilter(),this.initHistoryChangeEvent(),this.initializePredictiveSearch())}return e.prototype.bindWindowEvents=function(){var e=this;this.updateMobileState(),$(window).bind("resize",function(){!e.isMobileViewActive&&C.isMobile()?(e.placeHoldersManager.hidePredictiveSearch(!1),e.mobileSearchFilter.initOptions(e.searchFilter.inputValue),e.mobileSearchFilter.applyValueChanged()):e.isMobileViewActive&&!C.isMobile()&&(e.placeHoldersManager.hidePredictiveSearch(!0),e.searchFilter.initOptions(e.mobileSearchFilter.inputValue),e.searchFilter.applyValueChanged()),e.updateMobileState()})},e.prototype.updateMobileState=function(){this.isMobileViewActive=C.isMobile()},e.prototype.initializeUseCasesData=function(){var e=$(this.productId);if(e.length>0){var t=this,i={method:"POST",dataType:"json"},n=new p(e[0].value);i.data=n,$.ajax(g.getAjaxUrl("/solarapi/usecases/getusecaseinfo"),i).done(function(e){t.placeHoldersManager.hideLoadingSpinner(),t.onSuccessUseCasesLoad(e)}).fail(function(e,i){t.placeHoldersManager.hideLoadingSpinner(),t.placeHoldersManager.showErrorMessage("Request failed.  Returned status of "+i)})}},e.prototype.onSuccessUseCasesLoad=function(e){var t=this,n=f.deserialize(i,e);void 0==n||n.status<1?this.placeHoldersManager.showErrorMessage(n.errorMessage):this.updateUseCases(n.useCases).then(function(e){t.model=n,t.renderingManager=new v(n),t.searchEngine=new y(n.useCases),t.placeHoldersManager.updatePagingInfo(n.useCases.length,1,n.useCases.length),t.anyNewCards=n.useCases.some(function(e){return e.isNew}),t.initializeSortingOptions(),t.searchFilter.apply()})},e.prototype.initializeSortingOptions=function(){var e=this;if(this.sortingFilter.length>0){if(this.anyNewCards){var t=document.createElement("option");t.setAttribute("data-linktype","Use Cases: Sort Control"),t.setAttribute("data-linkdetail",this.model.newText),t.setAttribute("value","new"),t.innerHTML=this.newLabel.toString(),this.sortingFilter[0].appendChild(t)}if(this.anyViewedCards){var i=document.createElement("option");i.setAttribute("data-linktype","Use Cases: Sort Control"),i.setAttribute("data-linkdetail",this.model.viewedText),i.setAttribute("value","viewed"),i.innerHTML=this.viewedLabel.toString(),this.sortingFilter[0].appendChild(i)}this.updateSortOptions(),this.sortingFilter.change(function(t){e.onSortingChange()})}},e.prototype.getActiveSortingOption=function(){return this.sortingFilter.find(" option:selected").val()},e.prototype.updateSortOptions=function(){var e=this.getActiveSortingOption(),t=this.searchFilter.value.length>0,i=this.sortingFilter.find("[value=Best_Match]"),n=!1;return"viewed"===e||"new"===e?this.sortingFilter.find("[value=View_All]").show():("View_All"===e&&(this.sortingFilter.val(t?"Best_Match":"Descending_Order"),n=!0),this.sortingFilter.find("[value=View_All]").hide()),t?i.show():(i.hide(),"Best_Match"===e&&(this.sortingFilter.val("Descending_Order"),n=!0)),n},e.prototype.initializeSearchFilter=function(){var e=this;this.searchFilter=new w(".use-case-search #custom-search-input",!0),this.searchFilter.subscribeToFilterChangeEvent(function(){e.onFilterChange()}),this.searchFilter.subscribeToValueChangeEvent(function(){e.onValueChanged()}),this.mobileSearchFilter=new w(".predictive-mobile-search #custom-search-input-mobile",!0),this.mobileSearchFilter.subscribeToFilterChangeEvent(function(){e.onMobileFilterChange()}),this.mobileSearchFilter.subscribeToValueChangeEvent(function(){e.onMobileValueChanged()})},e.prototype.getFilteredCards=function(e){return e.length>0?(e=e.replace(/-/g," "),this.searchEngine.setItems(this.model.useCases),this.searchEngine.searchItems(e)):this.model.useCases},e.prototype.closeDesktopPredictiveSearch=function(){this.activePredictiveSearchState=t.None,this.placeHoldersManager.hidePredictiveSearch(!1)},e.prototype.closeMobilePredictiveSearch=function(){this.activePredictiveSearchState=t.None,this.placeHoldersManager.hidePredictiveSearch(!0)},e.prototype.initializePredictiveSearch=function(){var e=this;this.searchInput.on("click",function(i){e.isMobileViewActive?(e.mobileSearchFilter.initOptions(e.searchFilter.inputValue),e.mobileSearchFilter.applyValueChanged()):e.activePredictiveSearchState!=t.Desktop&&e.searchFilter.applyValueChanged()}),$(".use-case-search .search-active").on("click",function(t){e.isMobileViewActive?(e.mobileSearchFilter.initOptions(e.searchFilter.inputValue),e.mobileSearchFilter.applyValueChanged()):e.searchFilter.applyValueChanged()}),$("#custom-search-input .predictive-desktop-search").on("click",function(e){$(e.target).is("a")||e.stopPropagation()}),$(document).on("click",function(t){e.isMobileViewActive||e.searchInput[0]==t.target||e.closeDesktopPredictiveSearch()}),$(".search-modal .modal-close button").on("click",function(t){e.closeMobilePredictiveSearch()}),$("#custom-search-input-mobile button.search").on("click",function(){e.searchFilter.initOptions(e.mobileSearchFilter.inputValue),e.searchFilter.apply(),e.closeMobilePredictiveSearch()})},e.prototype.createPredictiveSearchListItem=function(e,t,i,n){var r=t.substr(0,i);return r+="<strong>"+t.substr(i,n-i)+"</strong>",r+=t.substr(n),$('<a class="list-group-item" data-linktype="Use Case Card" data-linkdetail="'+t+'"></a>').attr("href",e).html(r)},e.prototype.handlePredictiveSearch=function(e,t,i){var n=this.searchEngine.searchItems(t,this.createPredictiveSearchListItem),r=this.searchEngine.sortItems(n,this.getActiveSortingOption());t.length>0?this.placeHoldersManager.hidePredictiveSearchDescription(e):this.placeHoldersManager.showPredictiveSearchDescription(e),0===r.length?this.placeHoldersManager.showPredictiveSearchNoResult(t):(i.empty(),r.forEach(function(e){i.append(e.html)}),this.placeHoldersManager.showPredictiveSearchResult(e)),this.placeHoldersManager.showPredictiveSearch(e)},e.prototype.updateUrl=function(){var e=window.location.href;window.location.href.indexOf("/usecasefilter")>0&&(e=window.location.href.substring(0,window.location.href.indexOf("/usecasefilter"))),""!==this.searchFilter.url&&(e=e+"/usecasefilter"+this.searchFilter.url),window.location.href!==e&&history.pushState(this.searchFilter.value,e,e)},e.prototype.initHistoryChangeEvent=function(){var e=this;window.onpopstate=function(t){t&&null!=e.useCasesComponent&&e.useCasesComponent.length>0&&(null==t.state||void 0==t.state?e.searchFilter.reset():e.searchFilter.value=t.state.replace(/-/g," "),e.searchFilter.apply())}},e.prototype.updateUseCases=function(e){var t=this,i=this;return new Promise(function(n,r){i.dbManager.getHistory(function(i,r){null!=i&&(r=[]),r.length>0&&e.forEach(function(e){r.indexOf(e.useCaseLink)>-1&&(e.isViewed=!0,e.isNew=!1,t.anyViewedCards=!0)}),n()})})},e}();e.IndexPageController=P}(i.UseCases||(i.UseCases={}))},{"../Filters/_TextBoxFilter":24,"../Helpers/_AjaxHelper":25,"../Helpers/_DeviceHelper":27,"../Helpers/_MapHelper":30,"./Models/_RequestModel":102,"./Models/_ResponseModel":103,"./_LocalStorageManager":106,"./_PlaceHoldersManager":107,"./_RenderingManager":108,"./_SearchEngine":109}],106:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("../_Constants"),r=e("localforage");!function(e){var t=function(){function e(){this.storeName="ViewedUseCasesStore"}return e.prototype.init=function(){return this.initDb()},e.prototype.initDb=function(){return r.config({driver:[r.INDEXEDDB,r.WEBSQL,r.LOCALSTORAGE],name:n.Constants.localstorageDbName,version:1,storeName:this.storeName}),r.ready()},e.prototype.getHistory=function(e){r.keys().then(function(t){e(null,t)}).catch(function(t){e(t,null)})},e.prototype.getItem=function(e,t){return r.getItem(e,t)},e.prototype.setItem=function(e,t,i){return r.setItem(e,t,i)},e}();e.LocalStorageManager=t}(i.UseCases||(i.UseCases={}))},{"../_Constants":111,localforage:119}],107:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(){this.pageInfoSelector=$(".page-info > span"),this.productNameSelector=$("#productName"),this.dropdownsSelector=$(".use-case-dropdowns"),this.clearButton=$(".input-group-btn.clear"),this.noResults=$(".no-results"),this.inputFields=$("#custom-search-input input.form-control"),this.inputActivePlaceHolder=$(".search-active"),this.inputEmptyPlaceHolder=$(".search-empty"),this.predictiveSearch=$(".usecase-predictive-search"),this.predictiveSearchForDesktop=$(".predictive-desktop-search"),this.predictiveSearchForMobile=$(".predictive-mobile-search"),this.predictiveSearchModalForMobile=$(".predictive-mobile-search.search-modal"),this.predictiveSearchResult=$(".search-result-container",this.predictiveSearch),this.predictiveSearchResultForMobile=$(".search-result-container",this.predictiveSearchForMobile),this.predictiveSearchResultForDesktop=$(".search-result-container",this.predictiveSearchForDesktop),this.predictiveNoResultContainer=$(".predictive-no-results",this.predictiveSearch),this.predictiveNoResultContainerForMobile=$(".predictive-no-results",this.predictiveSearchForMobile),this.predictiveNoResultContainerForDesktop=$(".predictive-no-results",this.predictiveSearchForDesktop),this.predictiveSearchDescription=$(".search-description",this.predictiveSearch),this.predictiveSearchDescriptionForMobile=$(".search-description",this.predictiveSearchForMobile),this.predictiveSearchDescriptionForDesktop=$(".search-description",this.predictiveSearchForDesktop),this.productNameSelector.length>0&&(this.productName=this.productNameSelector[0].value),this.initializeinputActivePlaceHolder();var e=this.noResults.find(".no-results-text");this.noResultsFoundTextTemplate=e.html(),this.predictiveSearchModalForMobile.find("input").on("focus",function(){window.scrollTo(0,0),document.body.scrollTop=0})}return e.prototype.createNoResultMessage=function(e){var t=document.createElement("span");t.setAttribute("class","blue"),t.innerHTML=e;var i=document.createElement("span");return i.innerHTML=this.productName,this.noResultsFoundTextTemplate.replace("{searchTerm}",t.outerHTML).replace("{product}",i.outerHTML)},e.prototype.showNoResultsMessage=function(e){if(this.dropdownsSelector.length>0&&(this.dropdownsSelector[0].hidden=!0),this.noResults.length>0){var t=this.noResults[0],i=this.noResults.find(".no-results-text");if(i.length>0)i[0].innerHTML=this.createNoResultMessage(e);t.hidden=!1}},e.prototype.hideNoResultsMessage=function(){this.noResults.length>0&&(this.noResults[0].hidden=!0),this.dropdownsSelector.length>0&&(this.dropdownsSelector[0].hidden=!1)},e.prototype.showErrorMessage=function(e){var t=$("#errorSummary");if(t.length>0){var i=t[0];i.innerHTML=e,i.hidden=!1}},e.prototype.hideLoadingSpinner=function(){var e=$(".items-loader");e.length>0&&(e[0].hidden=!0)},e.prototype.updatePagingInfo=function(e,t,i){if(this.pageInfoSelector.length>0)for(var n=0;n<this.pageInfoSelector.length;n++){var r=this.pageInfoSelector[n];if(t+i-1==0)r.hidden=!0;else{var o=r.getAttribute("data-format");o=(o=o.replace("{total}",e.toString())).replace("{range}",t.toString()+"-"+(t+i-1).toString()),r.innerHTML=o,r.hidden=!1}}},e.prototype.hideClearButton=function(){this.clearButton.length>0&&this.clearButton[0].setAttribute("style","display:none;")},e.prototype.showClearButton=function(){this.clearButton.length>0&&this.clearButton[0].setAttribute("style","display:block;")},e.prototype.updateInputPlaceHolderField=function(e,t){if(this.inputActivePlaceHolder.length>0&&this.inputEmptyPlaceHolder.length>0){var i=this.inputActivePlaceHolder[0],n=this.inputEmptyPlaceHolder[0];if(void 0!=t&&t.length>0){var r=i.getAttribute("data-format"),o=document.createElement("span");o.setAttribute("class","just-gray"),o.innerHTML=t,i.innerHTML=r.replace("{count}",e.toString()).replace("{searchTerm}",o.outerHTML),i.setAttribute("style","display: table-cell;"),n.setAttribute("type","hidden"),this.showClearButton()}else i.setAttribute("style","display: none;"),n.setAttribute("type","text"),this.hideClearButton()}},e.prototype.initializeinputActivePlaceHolder=function(){var e=this;this.inputActivePlaceHolder.on("click",function(){var t=e.inputActivePlaceHolder[0],i=e.inputEmptyPlaceHolder[0];t.setAttribute("style","display: none;"),i.setAttribute("type","text"),i.focus(),e.showClearButton()})},e.prototype.showPredictiveSearch=function(e){e?(this.predictiveSearchModalForMobile.show(),this.predictiveSearchModalForMobile.find("input").focus(),this.predictiveSearchModalForMobile.addClass("open")):this.predictiveSearchForDesktop.show()},e.prototype.hidePredictiveSearch=function(e){e?(this.predictiveSearchModalForMobile.hide(),this.predictiveSearchModalForMobile.removeClass("open")):this.predictiveSearchForDesktop.hide()},e.prototype.showPredictiveSearchNoResult=function(e){var t=this.createNoResultMessage(e);$(".no-results-text",this.predictiveNoResultContainer).each(function(e,i){i.innerHTML=t}),this.predictiveNoResultContainer.show(),this.predictiveSearchResult.hide()},e.prototype.showPredictiveSearchResult=function(e){e?(this.predictiveNoResultContainerForMobile.hide(),this.predictiveSearchResultForMobile.show(),this.predictiveSearchForDesktop.hide()):(this.predictiveNoResultContainerForDesktop.hide(),this.predictiveSearchResultForDesktop.show(),this.predictiveSearchForMobile.hide())},e.prototype.showPredictiveSearchDescription=function(e){e?this.predictiveSearchDescriptionForMobile.show():this.predictiveSearchDescriptionForDesktop.show()},e.prototype.hidePredictiveSearchDescription=function(e){e?this.predictiveSearchDescriptionForMobile.hide():this.predictiveSearchDescriptionForDesktop.hide()},e}();e.PlaceholdersManager=t}(i.UseCases||(i.UseCases={}))},{}],108:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){this.useCasesPlaceHolder=$(".use-case-elements >.container >.row"),this.isListView=!1,null!=e&&(this.newLabel=e.newLabel,this.newText=e.newText,this.viewedLabel=e.viewedLabel,this.viewedText=e.viewedText)}return e.prototype.renderCards=function(e){var t=$(".use-case-view-switchers i.block-view");null!=t&&t.length>0&&(this.isListView=t.hasClass("active")),this.clearCards();for(var i=0,n=e;i<n.length;i++){var r=n[i];this.useCasesPlaceHolder.length>0&&this.useCasesPlaceHolder[0].appendChild(this.renderCard(r))}},e.prototype.clearCards=function(){this.useCasesPlaceHolder.empty()},e.prototype.renderCard=function(e){var t=document.createElement("div");t.setAttribute("class","col-lg-4 col-md-6 use-case-card"+(this.isListView?" list-view":""));var i=document.createElement("a");i.setAttribute("data-linktype","Use Case Card"),i.setAttribute("data-linkdetail",e.title),i.setAttribute("href",e.useCaseLink),t.appendChild(i);var n=document.createElement("div");n.setAttribute("class","use-case-card-container"),i.appendChild(n);var r=document.createElement("div");r.setAttribute("class","image-container"),r.innerHTML=e.image,n.appendChild(r);var o=document.createElement("div");if(o.setAttribute("class","tag-container"),e.isNew||e.isViewed){var a=document.createElement("span");a.setAttribute("class",e.isNew?"new-label":e.isViewed?"viewed-label":"");var s=document.createElement("i");s.setAttribute("class",e.isNew?this.newLabel:e.isViewed?this.viewedLabel:""),s.setAttribute("aria-hidden","true"),a.appendChild(s);var l=e.isNew?this.newText:e.isViewed?this.viewedText:"";a.insertAdjacentHTML("beforeend",l),o.appendChild(a)}n.appendChild(o);var c=document.createElement("div");c.setAttribute("class","content"),n.appendChild(c);var u=document.createElement("h3");u.setAttribute("class","use-case-card-title"),u.insertAdjacentHTML("beforeend",e.title),c.appendChild(u);var d=document.createElement("div");return d.setAttribute("class","description"),d.insertAdjacentHTML("beforeend",e.description),c.appendChild(d),t},e}();e.RenderingManager=t}(i.UseCases||(i.UseCases={}))},{}],109:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t=function(){function e(e){null!=e&&(this.items=e)}return e.prototype.splitToTerms=function(e){return e.replace(/ /g,"|")},e.prototype.compareTitle=function(e,t){return e.title.toLowerCase().trim()<t.title.toLowerCase().trim()?-1:1},e.prototype.searchItems=function(e,t){var i=new Array;if(e.length>0)for(var n=new RegExp(this.splitToTerms(e)),r=0,o=this.items;r<o.length;r++){var a=(d=o[r]).title.toLowerCase(),s=a.indexOf(e);if(s>-1)t&&(d.html=t(d.useCaseLink,d.title,s,s+e.length)),0===s?(d.priority=1,i.push(d)):(d.priority=2,i.push(d));else if(n.test(a))t&&(d.html=t(d.useCaseLink,d.title,0,0)),d.priority=3,i.push(d);else{var l=d.description.toLowerCase();l.indexOf(e)>-1?(t&&(d.html=t(d.useCaseLink,d.title,0,0)),d.priority=4,i.push(d)):n.test(l)&&(t&&(d.html=t(d.useCaseLink,d.title,0,0)),d.priority=5,i.push(d))}}else for(var c=0,u=this.items;c<u.length;c++){var d=u[c];t&&(d.html=t(d.useCaseLink,d.title,0,0)),d.priority=1,i.push(d)}return i},e.prototype.sortItems=function(e,t){var i=this;switch(t){case"Best_Match":this.items=e.sort(function(e,t){return e.priority-t.priority||i.compareTitle(e,t)});break;case"Descending_Order":this.items=e.sort(function(e,t){return i.compareTitle(e,t)});break;case"Ascending_Order":this.items=e.sort(function(e,t){return i.compareTitle(t,e)});break;case"new":this.items=e.filter(function(e){return e.isNew});break;case"viewed":this.items=e.filter(function(e){return e.isViewed});break;default:this.items=e}return this.items},e.prototype.setItems=function(e){null!=e&&(this.items=e)},e}();e.SearchEngine=t}(i.UseCases||(i.UseCases={}))},{}],110:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./_LocalStorageManager"),r=e("./Models/_ViewUseCaseModel");!function(e){var t=n.UseCases.LocalStorageManager,i=r.UseCases.ViewedUseCaseModel,o=function(){function e(){var e=this;this.ajaxUrl="/solarapi/usecases/checkpagehasanyusecasereferrer",this.storeName="ViewedUseCasesStore",this.$pageInfoId=$("#__pageinfo_id"),this.dbManager=new t,this.dbManager.init().then(function(){var t=document.documentElement.lang,n=window.location.pathname,r=n;if("en"!==t&&(r=r.replace("/"+t,"")),r.indexOf("/use-cases")>=0){if(!e.$pageInfoId||!e.$pageInfoId.val())return;var o=e.$pageInfoId.val();e.checkPathIsUseCase(n,o,function(t,r){if(!0===r){var o=new i;o.path=n,e.dbManager.setItem(o.path,o)}})}})}return e.prototype.checkPathIsUseCase=function(e,t,i){var n=this;this.dbManager.getItem(e,function(e,r){if(null==e)if(null==r){var o={method:"GET",dataType:"json"},a=n.ajaxUrl+"?pageId="+t;$.ajax(a,o).done(function(e){i(null,e)}).fail(function(e,t){i(e,!1)})}else i(null,!0);else i(e,!1)})},e}();e.ViewHistoryController=o}(i.UseCases||(i.UseCases={}))},{"./Models/_ViewUseCaseModel":104,"./_LocalStorageManager":106}],111:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function e(){}return e.localstorageDbName="SW_DB",e}();i.Constants=n},{}],112:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=function(){function e(){this.initBackToSearchButton(),this.initGatedResources()}return e.prototype.initGatedResources=function(){$(".pdf-download").on("click","a[data-href]",function(){var e=$("#isGated");if("False"===$("#isGated").val()||null!=e.attr("reg-form-submitted")&&"True"===e.attr("reg-form-submitted")){var t=$(this).data("href");t&&window.open(t,"_blank")}})},e.prototype.initBackToSearchButton=function(){var e=this;$(".resource-video-detail .back-to-search a").on("click",function(){return history.length>1&&e.isResourceLandingUrl(document.referrer)?window.history.back():window.location.href=window.location.href.substring(0,window.location.href.indexOf("/resources")+"/resources".length),!1}),$(".sedemo-video-detail .back-to-search a").on("click",function(){return history.length>1&&e.isSeDemoUrl(document.referrer)?window.history.back():window.location.href=window.location.href.substring(0,window.location.href.indexOf("/sedemo")+"/sedemo".length),!1})},e.prototype.isResourceLandingUrl=function(e){return e.indexOf("/resources/filter")>-1||/(.+)?\/resources\/[^\/]+$/.test(e)||/(.+)?\/resources$/.test(e)},e.prototype.isSeDemoUrl=function(e){return e.indexOf("/sedemo/product")>-1||/(.+)?\/sedemo\/[^\/]+$/.test(e)||/(.+)?\/sedemo$/.test(e)},e}();i.DetailsPageController=n},{}],113:[function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(i,"__esModule",{value:!0});var o=e("./AzureFunctionAPI/_AzureFunction"),a=e("./Helpers/_CookieHelper"),s=e("./Helpers/_SitecoreHelper"),l=function(){function e(){var e=this;this.azureFunction=new o.AzureFunctionAPI.AzureFunction;var t=document.querySelectorAll('a[data-installer-package-id]:not([data-installer-package-id=""])'),i=document.querySelectorAll('a[data-download-url]:not([data-download-url=""])');if(t.length>0||i.length>0){var n=a.CookieHelper.getCookie("dluid"),r=a.CookieHelper.getCookie("RegistrationDetails");this.azureFunction.isDownloadEligible(r,n).then(function(r){r?(n.length>0&&e.azureFunction.decryptString(n).then(function(i){e.dluid=i,e.loadInstallerDownloads(t)}),e.activateDirectDownloads(i)):s.SitecoreHelper.IsPageEditorMode()||window.location.replace("./registration"+window.location.search)})}}return e.prototype.getDownloadUrl=function(e,t){return n(this,void 0,void 0,function(){var i;return r(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.azureFunction.getInstallerUrl(this.dluid,!0,e,t)];case 1:return[2,n.sent()];case 2:return i=n.sent(),TrackJS.track(i),[3,3];case 3:return[2]}})})},e.prototype.loadInstallerDownloads=function(e){return n(this,void 0,void 0,function(){var t,i,n,o,a,s;return r(this,function(r){switch(r.label){case 0:t=0,i=Array.from(e),r.label=1;case 1:return t<i.length?(n=i[t],o=n.getAttribute("data-installer-package-id"),a=n.getAttribute("data-installer-package-name"),[4,this.getDownloadUrl(o,a)]):[3,4];case 2:s=r.sent(),n.setAttribute("href",s),n.classList.remove("inactive"),r.label=3;case 3:return t++,[3,1];case 4:return[2]}})})},e.prototype.activateDirectDownloads=function(e){return n(this,void 0,void 0,function(){var t,i,n,o;return r(this,function(r){for(t=0,i=Array.from(e);t<i.length;t++)n=i[t],o=n.getAttribute("data-download-url"),n.setAttribute("href",o),n.classList.remove("inactive");return[2]})})},e}();i.PostRegistrationDownloadController=l},{"./AzureFunctionAPI/_AzureFunction":11,"./Helpers/_CookieHelper":26,"./Helpers/_SitecoreHelper":33}],114:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./AzureFunctionAPI/Models/_PricingProductRequest"),r=e("./AzureFunctionAPI/_AzureFunction");!function(e){var t=r.AzureFunctionAPI.AzureFunction,i=n.AzureFunctionAPI.PricingProductRequest,o=function(){function e(){this.azureFunction=new t,this.selector=".pricing-chart-section";var e=$(this.selector);e.length>0&&(this.skuSections=e.find(".chart-body-table span[data-sku]"),this.skuSections.length>0&&this.reloadPricing())}return e.prototype.reloadPricing=function(){var e=this,t=this.getUsedSkus();if(t.length>0){var n=new i;n.skus=t,this.azureFunction.getProductPricing(n).then(function(t){t&&t.skuPricing&&e.updatePricing(t.skuPricing)}).catch(function(e){console.error("Error: There was an error getting location details. Data: "+e)}),this.skuSections.removeClass("invisible")}},e.prototype.updatePricing=function(e){for(var t=0;t<this.skuSections.length;t++){var i=$(this.skuSections[t]).attr("data-sku"),n=e.filter(function(e){return e.sku===i});n.length>0&&$(this.skuSections[t]).text(n[0].pricingString)}},e.prototype.getUsedSkus=function(){for(var e=[],t=0;t<this.skuSections.length;t++){var i=$(this.skuSections[t]).attr("data-sku");i&&e.indexOf(i)<0&&e.push(i)}return e},e}();e.PricingChartController=o}(i.PricingChart||(i.PricingChart={}))},{"./AzureFunctionAPI/Models/_PricingProductRequest":7,"./AzureFunctionAPI/_AzureFunction":11}],115:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(t||(t={}));var i=function(){function e(e){this.position_top=0,this.position_left=0,this.isMinimized=!1,this.element=e}return Object.defineProperty(e.prototype,"sessionKey",{get:function(){return this.attachedElementId+"_promobox_closed"},enumerable:!0,configurable:!0}),e.prototype.parseParameters=function(){this.width=$(this.element).innerWidth(),this.isClosable="1"===$(this.element).attr("data-isClosable"),this.alignment="right"===$(this.element).attr("data-alignment")?t.Right:t.Left,this.appearForNewSession="1"===$(this.element).attr("data-session-appearance");var e=$("input[name='attached_element_Id']",this.element);e&&(this.attachedElementId=$(e).val());var i=$("input[name='attached_css_selector']",this.element);i&&(this.cssSelector=i.val())},e.prototype.render=function(e){this.element&&(this.parseParameters(),this.attachedElement=this.getAttachedElement(),this.attachedElement?(this.attachedElement.append(this.element),this.bindUIEvents(),this.setVisibility()):this.element.hide())},e.prototype.bindUIEvents=function(){var e=this;$(".promobox-close-button",this.element).on("click",function(){e.isMinimized=!0,e.isClosable?$(e.element).remove():($(".promobox-wrapper",e.element).addClass("collapsed"),$(e.element).css("height","")),sessionStorage.setItem(e.sessionKey,"1")}),$(".promobox-expand-button",this.element).on("click",function(){e.isMinimized=!1,$(".promobox-wrapper",e.element).removeClass("collapsed"),$(e.element).css("height",e.height+"px")})},e.prototype.setVisibility=function(){if(this.isClosable&&this.appearForNewSession){var e=sessionStorage[this.sessionKey];if(e&&"1"===e)return void this.element.hide()}switch(this.alignment){case t.Left:default:this.isMinimized=!1,this.element.animate({width:"toggle"}),this.element.css("right","unset"),this.element.css("left","0"),$(".toolbar-buttons",this.element).addClass("left-aligned");break;case t.Right:this.element.animate({width:"toggle"}),this.element.css("left","unset"),this.element.css("right","0"),$(".toolbar-buttons",this.element).addClass("right-aligned")}},e.prototype.getAttachedElement=function(){if(!this.attachedElementId||0===this.attachedElementId.length)return null;var e=$("#"+this.attachedElementId);return this.cssSelector&&(e=$(this.cssSelector,e)),e},e}(),n=function(){function e(){var e=this;this.promoBoxes=$(".promobox"),$(document).ready(function(){e.init()})}return e.prototype.init=function(){this.promoBoxes.each(function(e,t){new i($(t)).render($("body"))})},e}();e.IndexController=n}(i.PromoBox||(i.PromoBox={}))},{}],116:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),function(e){var t;!function(e){e[e.Show=0]="Show",e[e.Hide=1]="Hide"}(t||(t={}));var i=function(){function e(){var e=this;this.whatsNewCardsComponent=$(".whats-new-cards"),this.whatsNewCards=$(".whats-new-cards .card-wrapper"),this.notFoundEl=$(".whats-new-cards .not-found-content"),this.searchBtn=$(".whats-new-cards #search-btn"),this.searchClearBtn=$(".whats-new-cards #search-clear-btn"),this.searchInput=$(".whats-new-cards .search-input"),this.cardsFilter=$(".whats-new-cards .check-box-box-filter"),this.openedCheckBoxCssClass="filter-title-open",this.isContentFound=!1,this.isNotFoundContentReplaced=!1,this.isSearchPerformed=!1,this.isProductSelected=!1,this.setEvents=function(){e.optionPanelWrapper=e.cardsFilter.find(".options-panel-wrapper"),e.optionPanel=e.cardsFilter.find(".options-panel"),e.formControl=e.cardsFilter.find(".form-control");var t=!1;$(e.formControl).click(function(){return!1!==t||(e.optionPanelWrapper.show(),e.formControl.addClass(e.openedCheckBoxCssClass),t=!0,!1)}),e.filterOptions=e.optionPanel.find("input"),$(e.filterOptions).change(function(t){e.performProductFilter(),$(t.target).parent().toggleClass("product-container-selected")}),window.addEventListener("click",function(i){$(i.target).closest(".whats-new-cards .check-box-box-filter .options-panel").length<1&&t&&(e.optionPanelWrapper.hide(),e.formControl.removeClass(e.openedCheckBoxCssClass),t=!1)}),$(e.searchBtn).click(function(t){e.performSearch()}),$(e.searchInput).keyup(function(t){13===t.keyCode&&e.performSearch()}),$(e.searchInput).change(function(t){e.performSearch()}),$(e.searchClearBtn).click(function(t){$(e.searchInput).val(""),$(e.whatsNewCards).show(),$(e.searchBtn).show(),$(e.searchClearBtn).hide(),e.notFoundEl.hide(),e.isSearchPerformed=!1,e.isProductSelected&&(e.performProductFilter(),e.notFoundEl.hide())})},this.handleNotFoundContent=function(){if(e.isContentFound)$(e.notFoundEl).hide();else{var t,i=e.makeItBold($(e.searchInput).val()),n=e.getSelectedProductsNames();if(""===i?i=e.makeItBold(n):""!=n&&(i+=" in "+e.makeItBold(n)),i="<span>"+i+"</span>",e.isNotFoundContentReplaced){var r=new RegExp("<span>(.*?)</span>");t=$(e.notFoundEl).html().replace(r,i)}else t=$(e.notFoundEl).html().replace("{searchTerm}",i),e.isNotFoundContentReplaced=!0;$(e.notFoundEl).html(t),$(e.notFoundEl).show()}},this.performSearch=function(){var t=void 0==$(e.searchInput).val()?"":$(e.searchInput).val().toLowerCase();""==t?($(e.searchBtn).show(),$(e.searchClearBtn).hide()):($(e.searchBtn).hide(),$(e.searchClearBtn).show()),e.isSearchPerformed=!0,e.isContentFound=!1,e.isProductSelected?(e.selectedFilterProducts=$(".whats-new-cards .check-box-box-filter .product-container>input:checked"),e.selectedFilterProducts.each(function(i,n){var r=$(n).attr("name");$(e.whatsNewCards).each(function(i,n){if($(n).attr("product-name").indexOf(r)>-1){var o=$(n).find("h1"),a=$(n).find(".card-description");o.length&&-1!==o[0].textContent.toLowerCase().indexOf(t)||-1!==a.text().toLowerCase().indexOf(t)?(e.isContentFound=!0,$(n).show()):$(n).hide()}})})):e.whatsNewCards.each(function(i,n){var r=$(n).find("h1"),o=$(n).find(".card-description");r.length&&-1!==r[0].textContent.toLowerCase().indexOf(t)||-1!==o.text().toLowerCase().indexOf(t)?(e.isContentFound=!0,$(n).show()):$(n).hide()}),e.handleNotFoundContent()},this.performProductFilter=function(){e.selectedFilterProducts=$(".whats-new-cards .check-box-box-filter .product-container>input:checked"),0===e.selectedFilterProducts.length?(e.isProductSelected=!1,e.showHideAllCards(t.Show),e.emptyFilteredItems(),e.isSearchPerformed&&e.performSearch()):(e.showHideAllCards(t.Hide),e.selectedFilterProducts.each(function(t,i){var n=$(i).attr("name");$(e.whatsNewCards).each(function(t,i){$(i).attr("product-name").indexOf(n)>-1&&($(i).show(),e.isContentFound=!0,e.isProductSelected=!0)}),e.isSearchPerformed&&e.performSearch()}),e.updateFilteredItems(e.selectedFilterProducts))},this.updateFilteredItems=function(t){var i=$(".check-box-box-filter-items");i.find(" > .filter-product").empty();for(var n="",r=0;r<e.activeOption.length;r++){var o=document.createElement("span");o.setAttribute("class","active-filter"),o.innerHTML=$(e.activeOption[r]).parent("label").text();var a=document.createElement("i");a.setAttribute("class","fort fort-close-circle-outline"),a.setAttribute("value",$(e.activeOption[r]).prop("value")),o.appendChild(a),n+=o.outerHTML}i.find(" > .filter-product").html(n),i.show(),i.find(" > .filter-product i").click(function(t){for(var i=0;i<e.activeOption.length;i++)$(e.activeOption[i]).attr("value")===$(t.target).attr("value")&&($(e.activeOption[i]).parent().toggleClass("product-container-selected"),$(e.activeOption[i]).prop("checked",!1),e.performProductFilter())})},this.emptyFilteredItems=function(){var e=$(".check-box-box-filter-items");e.find(" > .filter-product").empty(),e.hide()},this.getSelectedProductsNames=function(){var t="";return e.selectedFilterProducts=$(".whats-new-cards .check-box-box-filter .product-container>input:checked"),e.selectedFilterProducts.each(function(i,n){t+=$(n).attr("name"),i<e.selectedFilterProducts.length-1&&(t+=", ")}),t},this.showHideAllCards=function(i){switch(i){case t.Hide:$(e.whatsNewCards).each(function(e,t){$(t).hide()});break;case t.Show:default:$(e.whatsNewCards).each(function(e,t){$(t).show()})}},this.makeItBold=function(e){return"<b>"+e+"</b>"},null!=this.whatsNewCardsComponent&&this.whatsNewCardsComponent.length>0&&this.setEvents()}return Object.defineProperty(e.prototype,"activeOption",{get:function(){return this.optionPanel.find("input:checked")},enumerable:!0,configurable:!0}),e}();e.WhatsNewCardsController=i}(i.WhatsNewCardsModule||(i.WhatsNewCardsModule={}))},{}],117:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./ResourceCenter/_LandingPageController"),r=e("./_DetailsPageController"),o=e("./SEDemo/_IndexPageController"),a=e("./UseCases/_IndexPageController"),s=e("./UseCases/_ViewHistoryController"),l=e("./_PromoBoxController"),c=e("./IntegrationsModule/_IndexPageController"),u=e("./ProductPricing/_IndexPageController"),d=e("./_WhatsNewCardsController"),h=e("./ProductComparison/ProductBenefits/_IndexPageController"),p=e("./ResourceCenterV2/_IndexPageController"),f=e("./Events/_EventsIndexController"),g=e("./FedNews/_FedNewsLandingController"),v=e("./BuyNow/_BuyNowController"),m=e("./PlaceholdersDataProcessing/_PlaceholderDataProcessor"),y=e("./SaasPricing/_SaasPricingController"),b=e("./ProductPricing/_LegacyIndexPageController"),w=e("./PricingCalculator/_PricingCalculatorController"),C=e("./_PostRegistrationDownloadController"),P=e("./EuCookieCompliance/_IndexPageController"),k=e("./Registration/_ContactDataController"),S=e("./_PricingChartController"),$=e("./SpyCloud/_ProspectController"),_=e("./Services/_SilentSubmitService"),M=e("./Registration/_RegistrationController"),x=e("./RightRailAd/_IndexPageController"),I=e("./CountdownClock/_IndexPageController"),F=e("./QuickViewProductCard/_IndexPageController"),R=e("./Product/_ProductHeroTitleOverride"),A=e("./Registration/_BlockFreeEmailsController"),T=e("./ProductIndex/_ProductIndexController"),E=function(){return function(){new n.ResourceCenter.LandingPageController,new r.DetailsPageController,new o.SEDemo.IndexPageController,new a.UseCases.IndexPageController,new s.UseCases.ViewHistoryController,new l.PromoBox.IndexController,new c.IntegrationsModule.IndexPageController,new u.ProductPricingModule.IndexPageController,new d.WhatsNewCardsModule.WhatsNewCardsController,new h.ProductComparison.ProductBenefits.IndexPageController,new p.ResourceCenterV2Module.IndexPageController,new f.EventsModule.EventsIndexController,new g.FedNewsLandingModule.FedNewsLandingController,new m.PlaceholderDataProcessing.PlaceholderDataProcessor,new y.SaasPricing.SaasPricingController,new b.ProductPricingModule.LegacyIndexPageController,new w.PricingCalculator.PricingCalculatorController,new C.PostRegistrationDownloadController,new k.ContactDataController,new v.BuyNow.BuyNowController,new P.EuCookieCompliance.IndexPageController,new S.PricingChart.PricingChartController,new $.ProspectController,new _.SilentSubmitService,new M.RegistrationController,new x.RightRailAd.IndexPageController,new I.CountdownClock.IndexPageController,new F.QuickViewProductCard.IndexPageController,(new R.ProductHeroTitleOverride).init(),new A.BlockFreeEmailsController,new T.ProductIndexComponentModule.IndexPageController}}();i.Global=E},{"./BuyNow/_BuyNowController":12,"./CountdownClock/_IndexPageController":15,"./EuCookieCompliance/_IndexPageController":16,"./Events/_EventsIndexController":19,"./FedNews/_FedNewsLandingController":21,"./IntegrationsModule/_IndexPageController":39,"./PlaceholdersDataProcessing/_PlaceholderDataProcessor":50,"./PricingCalculator/_PricingCalculatorController":57,"./Product/_ProductHeroTitleOverride":69,"./ProductComparison/ProductBenefits/_IndexPageController":62,"./ProductIndex/_ProductIndexController":65,"./ProductPricing/_IndexPageController":66,"./ProductPricing/_LegacyIndexPageController":67,"./QuickViewProductCard/_IndexPageController":70,"./Registration/_BlockFreeEmailsController":73,"./Registration/_ContactDataController":74,"./Registration/_RegistrationController":75,"./ResourceCenter/_LandingPageController":83,"./ResourceCenterV2/_IndexPageController":78,"./RightRailAd/_IndexPageController":86,"./SEDemo/_IndexPageController":89,"./SaasPricing/_SaasPricingController":94,"./Services/_SilentSubmitService":96,"./SpyCloud/_ProspectController":101,"./UseCases/_IndexPageController":105,"./UseCases/_ViewHistoryController":110,"./_DetailsPageController":112,"./_PostRegistrationDownloadController":113,"./_PricingChartController":114,"./_PromoBoxController":115,"./_WhatsNewCardsController":116}],118:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),new(e("./Global/_main").Global)},{"./Global/_main":117}],119:[function(e,t,i){(function(n){(function(){!function(e){if("object"==typeof i&&void 0!==t)t.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).localforage=e()}}(function(){return function t(i,n,r){function o(s,l){if(!n[s]){if(!i[s]){var c="function"==typeof e&&e;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};i[s][0].call(d.exports,function(e){var t=i[s][1][e];return o(t||e)},d,d.exports,t,i,n,r)}return n[s].exports}for(var a="function"==typeof e&&e,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,i){(function(e){"use strict";var i,n,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),i=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)i="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,i=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var i=c.length;i;){for(t=c,c=[],e=-1;++e<i;)t[e]();i=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||i()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,i){"use strict";var n=e(1);function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&p(this,e)}function u(e,t,i){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function d(e,t,i){n(function(){var n;try{n=t(i)}catch(t){return o.reject(e,t)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var i=!1;function n(t){i||(i=!0,o.reject(e,t))}function r(t){i||(i=!0,o.resolve(e,t))}var a=f(function(){t(r,n)});"error"===a.status&&n(a.value)}function f(e,t){var i={};try{i.value=e(t),i.status="success"}catch(e){i.status="error",i.value=e}return i}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var i=new this.constructor(r);this.state!==l?d(i,this.state===s?e:t,this.outcome):this.queue.push(new u(i,e,t));return i},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var i=f(h,t);if("error"===i.status)return o.reject(e,i.value);var n=i.value;if(n)p(e,n);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var i=-1,n=e.queue.length;++i<n;)e.queue[i].callRejected(t);return e},c.resolve=function(e){if(e instanceof this)return e;return o.resolve(new this(r),e)},c.reject=function(e){var t=new this(r);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);var a=new Array(i),s=0,l=-1,c=new this(r);for(;++l<i;)u(e[l],l);return c;function u(e,r){t.resolve(e).then(function(e){a[r]=e,++s!==i||n||(n=!0,o.resolve(c,a))},function(e){n||(n=!0,o.reject(c,e))})}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);var a=-1,s=new this(r);for(;++a<i;)l=e[a],t.resolve(l).then(function(e){n||(n=!0,o.resolve(s,e))},function(e){n||(n=!0,o.reject(s,e))});var l;return s}},{1:1}],3:[function(e,t,i){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var r=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(r){if("TypeError"!==r.name)throw r;for(var i=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)i.append(e[n]);return i.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function l(e,t,i){"function"==typeof t&&e.then(t),"function"==typeof i&&e.catch(i)}function c(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d="local-forage-detect-blob-support",h=void 0,p={},f=Object.prototype.toString,g="readonly",v="readwrite";function m(e){return"boolean"==typeof h?a.resolve(h):function(e){return new a(function(t){var i=e.transaction(d,v),n=o([""]);i.objectStore(d).put(n,"key"),i.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},i.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);t(i||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){return h=e})}function y(e){var t=p[e.name],i={};i.promise=new a(function(e,t){i.resolve=e,i.reject=t}),t.deferredOperations.push(i),t.dbReady?t.dbReady=t.dbReady.then(function(){return i.promise}):t.dbReady=i.promise}function b(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function w(e,t){var i=p[e.name].deferredOperations.pop();if(i)return i.reject(t),i.promise}function C(e,t){return new a(function(i,n){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return i(e.db);y(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=r.open.apply(r,o);t&&(a.onupgradeneeded=function(t){var i=a.result;try{i.createObjectStore(e.storeName),t.oldVersion<=1&&i.createObjectStore(d)}catch(i){if("ConstraintError"!==i.name)throw i;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){i(a.result),b(e)}})}function P(e){return C(e,!1)}function k(e){return C(e,!0)}function S(e,t){if(!e.db)return!0;var i=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,r=e.version>e.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),r||i){if(i){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function $(e){return o([function(e){for(var t=e.length,i=new ArrayBuffer(t),n=new Uint8Array(i),r=0;r<t;r++)n[r]=e.charCodeAt(r);return i}(atob(e.data))],{type:e.type})}function _(e){return e&&e.__local_forage_encoded_blob}function M(e){var t=this,i=t._initReady().then(function(){var e=p[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return l(i,e,e),i}function x(e,t,i,n){void 0===n&&(n=1);try{var r=e.db.transaction(e.storeName,t);i(null,r)}catch(r){if(n>0&&(!e.db||"InvalidStateError"===r.name||"NotFoundError"===r.name))return a.resolve().then(function(){if(!e.db||"NotFoundError"===r.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),k(e)}).then(function(){return function(e){y(e);for(var t=p[e.name],i=t.forages,n=0;n<i.length;n++){var r=i[n];r._dbInfo.db&&(r._dbInfo.db.close(),r._dbInfo.db=null)}return e.db=null,P(e).then(function(t){return e.db=t,S(e)?k(e):t}).then(function(n){e.db=t.db=n;for(var r=0;r<i.length;r++)i[r]._dbInfo.db=n}).catch(function(t){throw w(e,t),t})}(e).then(function(){x(e,t,i,n-1)})}).catch(i);i(r)}}var I={_driver:"asyncStorage",_initStorage:function(e){var t=this,i={db:null};if(e)for(var n in e)i[n]=e[n];var r=p[i.name];r||(r={forages:[],db:null,dbReady:null,deferredOperations:[]},p[i.name]=r),r.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=M);var o=[];function s(){return a.resolve()}for(var l=0;l<r.forages.length;l++){var c=r.forages[l];c!==t&&o.push(c._initReady().catch(s))}var u=r.forages.slice(0);return a.all(o).then(function(){return i.db=r.db,P(i)}).then(function(e){return i.db=e,S(i,t._defaultConfig.version)?k(i):e}).then(function(e){i.db=r.db=e,t._dbInfo=i;for(var n=0;n<u.length;n++){var o=u[n];o!==t&&(o._dbInfo.db=i.db,o._dbInfo.version=i.version)}})},_support:function(){try{if(!r)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var i=this,n=new a(function(t,n){i.ready().then(function(){x(i._dbInfo,g,function(r,o){if(r)return n(r);try{var a=o.objectStore(i._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var i=a.result;if(i){var n=i.value;_(n)&&(n=$(n));var r=e(n,i.key,s++);void 0!==r?t(r):i.continue()}else t()},a.onerror=function(){n(a.error)}}catch(e){n(e)}})}).catch(n)});return s(n,t),n},getItem:function(e,t){var i=this;e=c(e);var n=new a(function(t,n){i.ready().then(function(){x(i._dbInfo,g,function(r,o){if(r)return n(r);try{var a=o.objectStore(i._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),_(e)&&(e=$(e)),t(e)},a.onerror=function(){n(a.error)}}catch(e){n(e)}})}).catch(n)});return s(n,t),n},setItem:function(e,t,i){var n=this;e=c(e);var r=new a(function(i,r){var o;n.ready().then(function(){return o=n._dbInfo,"[object Blob]"===f.call(t)?m(o.db).then(function(e){return e?t:(i=t,new a(function(e,t){var n=new FileReader;n.onerror=t,n.onloadend=function(t){var n=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:n,type:i.type})},n.readAsBinaryString(i)}));var i}):t}).then(function(t){x(n._dbInfo,v,function(o,a){if(o)return r(o);try{var s=a.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),i(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return s(r,i),r},removeItem:function(e,t){var i=this;e=c(e);var n=new a(function(t,n){i.ready().then(function(){x(i._dbInfo,v,function(r,o){if(r)return n(r);try{var a=o.objectStore(i._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){n(a.error)},o.onabort=function(){var e=a.error?a.error:a.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return s(n,t),n},clear:function(e){var t=this,i=new a(function(e,i){t.ready().then(function(){x(t._dbInfo,v,function(n,r){if(n)return i(n);try{var o=r.objectStore(t._dbInfo.storeName).clear();r.oncomplete=function(){e()},r.onabort=r.onerror=function(){var e=o.error?o.error:o.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return s(i,e),i},length:function(e){var t=this,i=new a(function(e,i){t.ready().then(function(){x(t._dbInfo,g,function(n,r){if(n)return i(n);try{var o=r.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){i(o.error)}}catch(e){i(e)}})}).catch(i)});return s(i,e),i},key:function(e,t){var i=this,n=new a(function(t,n){e<0?t(null):i.ready().then(function(){x(i._dbInfo,g,function(r,o){if(r)return n(r);try{var a=o.objectStore(i._dbInfo.storeName),s=!1,l=a.openCursor();l.onsuccess=function(){var i=l.result;i?0===e?t(i.key):s?t(i.key):(s=!0,i.advance(e)):t(null)},l.onerror=function(){n(l.error)}}catch(e){n(e)}})}).catch(n)});return s(n,t),n},keys:function(e){var t=this,i=new a(function(e,i){t.ready().then(function(){x(t._dbInfo,g,function(n,r){if(n)return i(n);try{var o=r.objectStore(t._dbInfo.storeName).openCursor(),a=[];o.onsuccess=function(){var t=o.result;t?(a.push(t.key),t.continue()):e(a)},o.onerror=function(){i(o.error)}}catch(e){i(e)}})}).catch(i)});return s(i,e),i},dropInstance:function(e,t){t=u.apply(this,arguments);var i,n=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName),e.name){var o=e.name===n.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):P(e).then(function(t){var i=p[e.name],n=i.forages;i.db=t;for(var r=0;r<n.length;r++)n[r]._dbInfo.db=t;return t});i=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var i=t.version+1;y(e);var n=p[e.name],o=n.forages;t.close();for(var s=0;s<o.length;s++){var l=o[s];l._dbInfo.db=null,l._dbInfo.version=i}return new a(function(t,n){var o=r.open(e.name,i);o.onerror=function(e){o.result.close(),n(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}).then(function(e){n.db=e;for(var t=0;t<o.length;t++){var i=o[t];i._dbInfo.db=e,b(i._dbInfo)}}).catch(function(t){throw(w(e,t)||a.resolve()).catch(function(){}),t})}}):o.then(function(t){y(e);var i=p[e.name],n=i.forages;t.close();for(var o=0;o<n.length;o++)n[o]._dbInfo.db=null;return new a(function(t,i){var n=r.deleteDatabase(e.name);n.onerror=n.onblocked=function(e){var t=n.result;t&&t.close(),i(e)},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}}).then(function(e){i.db=e;for(var t=0;t<n.length;t++)b(n[t]._dbInfo)}).catch(function(t){throw(w(e,t)||a.resolve()).catch(function(){}),t})})}else i=a.reject("Invalid arguments");return s(i,t),i}};var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R="~~local_forage_type~",A=/^~~local_forage_type~([^~]+)~/,T="__lfsc__:",E=T.length,H="arbf",O="blob",L="si08",N="ui08",D="uic8",j="si16",z="si32",B="ur16",q="ui32",U="fl32",V="fl64",G=E+H.length,W=Object.prototype.toString;function Q(e){var t,i,n,r,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)i=F.indexOf(e[t]),n=F.indexOf(e[t+1]),r=F.indexOf(e[t+2]),o=F.indexOf(e[t+3]),u[l++]=i<<2|n>>4,u[l++]=(15&n)<<4|r>>2,u[l++]=(3&r)<<6|63&o;return c}function J(e){var t,i=new Uint8Array(e),n="";for(t=0;t<i.length;t+=3)n+=F[i[t]>>2],n+=F[(3&i[t])<<4|i[t+1]>>4],n+=F[(15&i[t+1])<<2|i[t+2]>>6],n+=F[63&i[t+2]];return i.length%3==2?n=n.substring(0,n.length-1)+"=":i.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var K={serialize:function(e,t){var i="";if(e&&(i=W.call(e)),e&&("[object ArrayBuffer]"===i||e.buffer&&"[object ArrayBuffer]"===W.call(e.buffer))){var n,r=T;e instanceof ArrayBuffer?(n=e,r+=H):(n=e.buffer,"[object Int8Array]"===i?r+=L:"[object Uint8Array]"===i?r+=N:"[object Uint8ClampedArray]"===i?r+=D:"[object Int16Array]"===i?r+=j:"[object Uint16Array]"===i?r+=B:"[object Int32Array]"===i?r+=z:"[object Uint32Array]"===i?r+=q:"[object Float32Array]"===i?r+=U:"[object Float64Array]"===i?r+=V:t(new Error("Failed to get type for BinaryArray"))),t(r+J(n))}else if("[object Blob]"===i){var o=new FileReader;o.onload=function(){var i=R+e.type+"~"+J(this.result);t(T+O+i)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(i){console.error("Couldn't convert value into a JSON string: ",e),t(null,i)}},deserialize:function(e){if(e.substring(0,E)!==T)return JSON.parse(e);var t,i=e.substring(G),n=e.substring(E,G);if(n===O&&A.test(i)){var r=i.match(A);t=r[1],i=i.substring(r[0].length)}var a=Q(i);switch(n){case H:return a;case O:return o([a],{type:t});case L:return new Int8Array(a);case N:return new Uint8Array(a);case D:return new Uint8ClampedArray(a);case j:return new Int16Array(a);case B:return new Uint16Array(a);case z:return new Int32Array(a);case q:return new Uint32Array(a);case U:return new Float32Array(a);case V:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}},stringToBuffer:Q,bufferToString:J};function Y(e,t,i,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,n)}function X(e,t,i,n,r,o){e.executeSql(i,n,r,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,s){s.rows.length?o(e,a):Y(e,t,function(){e.executeSql(i,n,r,o)},o)},o):o(e,a)},o)}var Z={_driver:"webSQLStorage",_initStorage:function(e){var t=this,i={db:null};if(e)for(var n in e)i[n]="string"!=typeof e[n]?e[n].toString():e[n];var r=new a(function(e,n){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(e){return n(e)}i.db.transaction(function(r){Y(r,i,function(){t._dbInfo=i,e()},function(e,t){n(t)})},n)});return i.serializer=K,r},_support:"function"==typeof openDatabase,iterate:function(e,t){var i=this,n=new a(function(t,n){i.ready().then(function(){var r=i._dbInfo;r.db.transaction(function(i){X(i,r,"SELECT * FROM "+r.storeName,[],function(i,n){for(var o=n.rows,a=o.length,s=0;s<a;s++){var l=o.item(s),c=l.value;if(c&&(c=r.serializer.deserialize(c)),void 0!==(c=e(c,l.key,s+1)))return void t(c)}t()},function(e,t){n(t)})})}).catch(n)});return s(n,t),n},getItem:function(e,t){var i=this;e=c(e);var n=new a(function(t,n){i.ready().then(function(){var r=i._dbInfo;r.db.transaction(function(i){X(i,r,"SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[e],function(e,i){var n=i.rows.length?i.rows.item(0).value:null;n&&(n=r.serializer.deserialize(n)),t(n)},function(e,t){n(t)})})}).catch(n)});return s(n,t),n},setItem:function(e,t,i){return function e(t,i,n,r){var o=this;t=c(t);var l=new a(function(a,s){o.ready().then(function(){void 0===i&&(i=null);var l=i,c=o._dbInfo;c.serializer.serialize(i,function(i,u){u?s(u):c.db.transaction(function(e){X(e,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[t,i],function(){a(l)},function(e,t){s(t)})},function(i){if(i.code===i.QUOTA_ERR){if(r>0)return void a(e.apply(o,[t,l,n,r-1]));s(i)}})})}).catch(s)});return s(l,n),l}.apply(this,[e,t,i,1])},removeItem:function(e,t){var i=this;e=c(e);var n=new a(function(t,n){i.ready().then(function(){var r=i._dbInfo;r.db.transaction(function(i){X(i,r,"DELETE FROM "+r.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){n(t)})})}).catch(n)});return s(n,t),n},clear:function(e){var t=this,i=new a(function(e,i){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(t){X(t,n,"DELETE FROM "+n.storeName,[],function(){e()},function(e,t){i(t)})})}).catch(i)});return s(i,e),i},length:function(e){var t=this,i=new a(function(e,i){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(t){X(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],function(t,i){var n=i.rows.item(0).c;e(n)},function(e,t){i(t)})})}).catch(i)});return s(i,e),i},key:function(e,t){var i=this,n=new a(function(t,n){i.ready().then(function(){var r=i._dbInfo;r.db.transaction(function(i){X(i,r,"SELECT key FROM "+r.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,i){var n=i.rows.length?i.rows.item(0).key:null;t(n)},function(e,t){n(t)})})}).catch(n)});return s(n,t),n},keys:function(e){var t=this,i=new a(function(e,i){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(t){X(t,n,"SELECT key FROM "+n.storeName,[],function(t,i){for(var n=[],r=0;r<i.rows.length;r++)n.push(i.rows.item(r).key);e(n)},function(e,t){i(t)})})}).catch(i)});return s(i,e),i},dropInstance:function(e,t){t=u.apply(this,arguments);var i=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||i.name,e.storeName=e.storeName||i.storeName);var n,r=this;return s(n=e.name?new a(function(t){var n;n=e.name===i.name?r._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:n,storeNames:[e.storeName]}):t(function(e){return new a(function(t,i){e.transaction(function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(i,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).name);t({db:e,storeNames:r})},function(e,t){i(t)})},function(e){i(e)})})}(n))}).then(function(e){return new a(function(t,i){e.db.transaction(function(n){function r(e){return new a(function(t,i){n.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){i(t)})})}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(r(e.storeNames[s]));a.all(o).then(function(){t()}).catch(function(e){i(e)})},function(e){i(e)})})}):a.reject("Invalid arguments"),t),n}};function ee(e,t){var i=e.name+"/";return e.storeName!==t.storeName&&(i+=e.storeName+"/"),i}function te(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0}var ie={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var i in e)t[i]=e[i];return t.keyPrefix=ee(e,this._defaultConfig),te()?(this._dbInfo=t,t.serializer=K,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var i=this,n=i.ready().then(function(){for(var t=i._dbInfo,n=t.keyPrefix,r=n.length,o=localStorage.length,a=1,s=0;s<o;s++){var l=localStorage.key(s);if(0===l.indexOf(n)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(r),a++)))return c}}});return s(n,t),n},getItem:function(e,t){var i=this;e=c(e);var n=i.ready().then(function(){var t=i._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n});return s(n,t),n},setItem:function(e,t,i){var n=this;e=c(e);var r=n.ready().then(function(){void 0===t&&(t=null);var i=t;return new a(function(r,o){var a=n._dbInfo;a.serializer.serialize(t,function(t,n){if(n)o(n);else try{localStorage.setItem(a.keyPrefix+e,t),r(i)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return s(r,i),r},removeItem:function(e,t){var i=this;e=c(e);var n=i.ready().then(function(){var t=i._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return s(n,t),n},clear:function(e){var t=this,i=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,i=localStorage.length-1;i>=0;i--){var n=localStorage.key(i);0===n.indexOf(e)&&localStorage.removeItem(n)}});return s(i,e),i},length:function(e){var t=this.keys().then(function(e){return e.length});return s(t,e),t},key:function(e,t){var i=this,n=i.ready().then(function(){var t,n=i._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t});return s(n,t),n},keys:function(e){var t=this,i=t.ready().then(function(){for(var e=t._dbInfo,i=localStorage.length,n=[],r=0;r<i;r++){var o=localStorage.key(r);0===o.indexOf(e.keyPrefix)&&n.push(o.substring(e.keyPrefix.length))}return n});return s(i,e),i},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var i=this.config();e.name=e.name||i.name,e.storeName=e.storeName||i.storeName}var n,r=this;return s(n=e.name?new a(function(t){e.storeName?t(ee(e,r._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var i=localStorage.key(t);0===i.indexOf(e)&&localStorage.removeItem(i)}}):a.reject("Invalid arguments"),t),n}},ne=function(e,t){for(var i,n,r=e.length,o=0;o<r;){if((i=e[o])===(n=t)||"number"==typeof i&&"number"==typeof n&&isNaN(i)&&isNaN(n))return!0;o++}return!1},re=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},oe={},ae={},se={INDEXEDDB:I,WEBSQL:Z,LOCALSTORAGE:ie},le=[se.INDEXEDDB._driver,se.WEBSQL._driver,se.LOCALSTORAGE._driver],ce=["dropInstance"],ue=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ce),de={description:"",driver:le.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function he(e,t){e[t]=function(){var i=arguments;return e.ready().then(function(){return e[t].apply(e,i)})}}function pe(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var i in t)t.hasOwnProperty(i)&&(re(t[i])?arguments[0][i]=t[i].slice():arguments[0][i]=t[i])}return arguments[0]}var fe=new(function(){function e(t){for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),se)if(se.hasOwnProperty(i)){var n=se[i],r=n._driver;this[i]=r,oe[r]||this.defineDriver(n)}this._defaultConfig=pe({},de),this._config=pe({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":n(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e&&e.driver)||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,i){var n=new a(function(t,i){try{var n=e._driver,r=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void i(r);for(var o=ue.concat("_initStorage"),l=0,c=o.length;l<c;l++){var u=o[l];if((!ne(ce,u)||e[u])&&"function"!=typeof e[u])return void i(r)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),i=a.reject(t);return s(i,arguments[arguments.length-1]),i}},i=0,n=ce.length;i<n;i++){var r=ce[i];e[r]||(e[r]=t(r))}}();var d=function(i){oe[n]&&console.info("Redefining LocalForage driver: "+n),oe[n]=e,ae[n]=i,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,i):d(!!e._support):d(!0)}catch(e){i(e)}});return l(n,t,i),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,i){var n=oe[e]?a.resolve(oe[e]):a.reject(new Error("Driver not found."));return l(n,t,i),n},e.prototype.getSerializer=function(e){var t=a.resolve(K);return l(t,e),t},e.prototype.ready=function(e){var t=this,i=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return l(i,e,e),i},e.prototype.setDriver=function(e,t,i){var n=this;re(e)||(e=[e]);var r=this._getSupportedDrivers(e);function o(){n._config.driver=n.driver()}function s(e){return n._extend(e),o(),n._ready=n._initStorage(n._config),n._ready}var c=null!==this._driverSet?this._driverSet.catch(function(){return a.resolve()}):a.resolve();return this._driverSet=c.then(function(){var e=r[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then(function(e){n._driver=e._driver,o(),n._wrapLibraryMethodsWithReady(),n._initDriver=function(e){return function(){var t=0;return function i(){for(;t<e.length;){var r=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(r).then(s).catch(i)}o();var l=new Error("No available storage method found.");return n._driverSet=a.reject(l),n._driverSet}()}}(r)})}).catch(function(){o();var e=new Error("No available storage method found.");return n._driverSet=a.reject(e),n._driverSet}),l(this._driverSet,t,i),this._driverSet},e.prototype.supports=function(e){return!!ae[e]},e.prototype._extend=function(e){pe(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],i=0,n=e.length;i<n;i++){var r=e[i];this.supports(r)&&t.push(r)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=ue.length;e<t;e++)he(this,ue[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=fe},{3:3}]},{},[4])(4)})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],120:[function(e,t,i){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var c,u=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!d){var e=l(p);d=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];u.push(new g(e,t)),1!==u.length||d||l(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],121:[function(e,t,i){(function(e,t){(function(){var i;!function(i){!function(n){var r="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(i);function a(e,t){return function(i,n){"function"!=typeof e[i]&&Object.defineProperty(e,i,{configurable:!0,writable:!0,value:n}),t&&t(i,n)}}void 0===r.Reflect?r.Reflect=i:o=a(r.Reflect,o),function(t){var i=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,l=!a&&!s,c={create:a?function(){return T(Object.create(null))}:s?function(){return T({__proto__:null})}:function(){return T({})},has:l?function(e,t){return i.call(e,t)}:function(e,t){return t in e},get:l?function(e,t){return i.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,h=d||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],i=function(){function e(e,t,i){this._index=0,this._keys=e,this._values=t,this._selector=i}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var i=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:i,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var i=this._find(e,!0);return this._values[i]=t,this},t.prototype.delete=function(t){var i=this._find(t,!1);if(i>=0){for(var n=this._keys.length,r=i+1;r<n;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new i(this._keys,this._values,n)},t.prototype.values=function(){return new i(this._keys,this._values,r)},t.prototype.entries=function(){return new i(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function r(e,t){return t}function a(e,t){return[e,t]}}():Map,p=d||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new h}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}():Set,f=new(d||"function"!=typeof WeakMap?function(){var e=16,t=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){var i=o(e,!0);return i[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var e;do{e="@@WeakMap@@"+s()}while(c.has(t,e));return t[e]=!0,e}function o(e,t){if(!i.call(e,n)){if(!t)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function a(e,t){for(var i=0;i<t;++i)e[i]=255*Math.random()|0;return e}function s(){var t=function(e){if("function"==typeof Uint8Array)return"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):a(new Uint8Array(e),e);return a(new Array(e),e)}(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var i="",n=0;n<e;++n){var r=t[n];4!==n&&6!==n&&8!==n||(i+="-"),r<16&&(i+="0"),i+=r.toString(16).toLowerCase()}return i}}():WeakMap);function g(e,t,i){var n=f.get(e);if(C(n)){if(!i)return;n=new h,f.set(e,n)}var r=n.get(t);if(C(r)){if(!i)return;r=new h,n.set(t,r)}return r}function v(e,t,i){var n=g(t,i,!1);return!C(n)&&!!n.has(e)}function m(e,t,i){var n=g(t,i,!1);if(!C(n))return n.get(e)}function y(e,t,i,n){var r=g(i,n,!0);r.set(e,t)}function b(e,t){var i=[],n=g(e,t,!1);if(C(n))return i;for(var r=n.keys(),a=function(e){var t=I(e,o);if(!M(t))throw new TypeError;var i=t.call(e);if(!k(i))throw new TypeError;return i}(r),s=0;;){var l=F(a);if(!l)return i.length=s,i;var c=l.value;try{i[s]=c}catch(e){try{R(a)}finally{throw e}}s++}}function w(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function C(e){return void 0===e}function P(e){return null===e}function k(e){return"object"==typeof e?null!==e:"function"==typeof e}function S(e,t){switch(w(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var i=3===t?"string":5===t?"number":"default",n=I(e,r);if(void 0!==n){var o=n.call(e,i);if(k(o))throw new TypeError;return o}return function(e,t){if("string"===t){var i=e.toString;if(M(i)){var n=i.call(e);if(!k(n))return n}var r=e.valueOf;if(M(r)){var n=r.call(e);if(!k(n))return n}}else{var r=e.valueOf;if(M(r)){var n=r.call(e);if(!k(n))return n}var o=e.toString;if(M(o)){var n=o.call(e);if(!k(n))return n}}throw new TypeError}(e,"default"===i?"number":i)}function $(e){var t=S(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function _(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function M(e){return"function"==typeof e}function x(e){return"function"==typeof e}function I(e,t){var i=e[t];if(void 0!==i&&null!==i){if(!M(i))throw new TypeError;return i}}function F(e){var t=e.next();return!t.done&&t}function R(e){var t=e.return;t&&t.call(e)}function A(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var i=e.prototype,n=i&&Object.getPrototypeOf(i);if(null==n||n===Object.prototype)return t;var r=n.constructor;return"function"!=typeof r?t:r===e?t:r}function T(e){return e.__=void 0,delete e.__,e}t("decorate",function(e,t,i,n){if(C(i)){if(!_(e))throw new TypeError;if(!x(t))throw new TypeError;return function(e,t){for(var i=e.length-1;i>=0;--i){var n=e[i],r=n(t);if(!C(r)&&!P(r)){if(!x(r))throw new TypeError;t=r}}return t}(e,t)}if(!_(e))throw new TypeError;if(!k(t))throw new TypeError;if(!k(n)&&!C(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),i=$(i),function(e,t,i,n){for(var r=e.length-1;r>=0;--r){var o=e[r],a=o(t,i,n);if(!C(a)&&!P(a)){if(!k(a))throw new TypeError;n=a}}return n}(e,t,i,n)}),t("metadata",function(e,t){return function(i,n){if(!k(i))throw new TypeError;if(!C(n)&&!function(e){switch(w(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;y(e,t,i,n)}}),t("defineMetadata",function(e,t,i,n){if(!k(i))throw new TypeError;C(n)||(n=$(n));return y(e,t,i,n)}),t("hasMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return function e(t,i,n){var r=v(t,i,n);if(r)return!0;var o=A(i);if(!P(o))return e(t,o,n);return!1}(e,t,i)}),t("hasOwnMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return v(e,t,i)}),t("getMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return function e(t,i,n){var r=v(t,i,n);if(r)return m(t,i,n);var o=A(i);if(!P(o))return e(t,o,n);return}(e,t,i)}),t("getOwnMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));return m(e,t,i)}),t("getMetadataKeys",function(e,t){if(!k(e))throw new TypeError;C(t)||(t=$(t));return function e(t,i){var n=b(t,i);var r=A(t);if(null===r)return n;var o=e(r,i);if(o.length<=0)return n;if(n.length<=0)return o;var a=new p;var s=[];for(var l=0,c=n;l<c.length;l++){var u=c[l],d=a.has(u);d||(a.add(u),s.push(u))}for(var h=0,f=o;h<f.length;h++){var u=f[h],d=a.has(u);d||(a.add(u),s.push(u))}return s}(e,t)}),t("getOwnMetadataKeys",function(e,t){if(!k(e))throw new TypeError;C(t)||(t=$(t));return b(e,t)}),t("deleteMetadata",function(e,t,i){if(!k(t))throw new TypeError;C(i)||(i=$(i));var n=g(t,i,!1);if(C(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var r=f.get(t);return r.delete(i),r.size>0||(f.delete(t),!0)})}(o)}()}(i||(i={}))}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:120}]},{},[118]);;

$(document).ready(function () {
    if (window.personalizationRules || (window.trackTarget && window.ttMETA)) {
        // example: [{"mbox":"target-global-mbox","campaign":"SW PDP Hero Get a Quote","experience":"Experience A","offer":"Default Content"},{"mbox":"target-global-mbox","campaign":"Target AA test","experience":"Experience A","offer":"Default Content"}]
        $('head').append(
            "<style>.warningbox{margin: 0 auto;background-color:red;position:fixed;display: block;width:50%;height:max-content;top: 0; left: 0;right: 0;bottom: 0;z-index: 2000;border-radius:5px;padding:15px 15px 15px 30px;}.warningbox .resize-arrow{transform: rotate(-47deg);width:10px;font-size:24px;margin-top:-10px;margin-left:-12px;}.shrink{width:45px;height:35px;opacity:.8;overflow:hidden;}</style>");

        var warningbox = "<div class='warningbox'></div>";

        $('body').prepend(warningbox);

        $('.warningbox').click(function () {
            $('.warningbox').toggleClass('shrink');
        });

        $('.warningbox').append('<div class="resize-arrow">&#8597;</div>');
        var hasTarget = false;

        if (window.trackTarget && window.ttMETA) {
            var alltests = [];
            for (i = 0; i < window.ttMETA.length; i++) {
                alltests.push(JSON.stringify(window.ttMETA[i]));
            }

            $('.warningbox').append('<div style="font-weight:bold;">TARGET TEST IS RUNNING</div>');
            $('.warningbox').append('<ul>');
            alltests.forEach(function (element) {
                var words = /global|target|mbox/g;
                var otherchars = /\W/g;
                var finalel = element.replace(otherchars, ' ').replace(words, '').replace('campaign', 'TEST: ')
                    .replace('experience', '| ').replace('offer', '| OFFER: ');
                $('.warningbox').append('<li>' + finalel + '</li>');
            });
            $('.warningbox').append('</ul>');
            hasTarget = true;
        }

        if (window.personalizationRules) {
            if (hasTarget) {
                $('.warningbox').append('<br />');
            }

            $('.warningbox').append('<div style="font-weight:bold;">This page has been personalized in Sitecore</div>');

            $('.warningbox').append('<ul>');
            window.personalizationRules.forEach(function (element) {
                var finalel = 'Component: ' +
                    element.component +
                    ', Rule Applied: ' +
                    element.ruleApplied +
                    ', Data Source: ' +
                    element.dataSourceName;
                $('.warningbox').append('<li>' + finalel + '</li>');
            });
            $('.warningbox').append('</ul>');
        }
    }
});
;
'use strict';

function toggleTextCouponCard(id) {
    var stateEl = $('#couponCardState_' + id);
    var state = stateEl.val();
    var sumElLarge = $('#SumLarge_' + id);
    var sumElSmall = $('#SumSmall_' + id);
    var detailElLarge = $('#DetailLarge_' + id);
    var detailElSmall = $('#DetailSmall_' + id);

    var label = '';
    if (state === 'more') {
        label = $('#couponCardLess_' + id).val();
        sumElLarge.hide();
        sumElSmall.hide();
        detailElLarge.show();
        detailElSmall.show();
        stateEl.val('less');
    } else {
        label = $('#couponCardMore_' + id).val();
        sumElLarge.show();
        sumElSmall.show();
        detailElLarge.hide();
        detailElSmall.hide();
        stateEl.val('more');
    }
    $('#LargeBtn_' + id).text(label);
    $('#SmallBtn_' + id).text(label);
}


//$(document).ready(function ($) {
//    $(document).on('click', '.product-card-subtitle-expandible', function (e) {

//        e.preventDefault();

//        var productCardListContainerId = $(this).attr("data-id");
//        var productCardListContainer = $('#.product-cards[data-id=' + productCardListContainerId + ']');

//        var productCardsHiddenByDefault = $('#.product-cards[data-id=' + productCardListContainerId + ']').find('.product-card-defaulthidden')

//        var isExpanded = $(this).attr("data-expanded");

//        if (isExpanded === "true") {
//            $(this).attr("data-expanded", false);
//            productCardListContainer.hide();
//        }
//        else {
//            $(this).attr("data-expanded", true);
//            productCardListContainer.show();
//        }

//    });
//});
;
function autocomplete(inp, arr) {
    /*the autocomplete function takes two arguments,
    the text field element and an array of possible autocompleted values:*/
    var currentFocus;
    /*execute a function when someone writes in the text field:*/
    inp.addEventListener("input", function (e) {
        var a, b, d, i, val = this.value;
        /*close any already open lists of autocompleted values*/
        closeAllLists();
        if (!val) { return false; }
        currentFocus = -1;
        //check if div creation is needed
        var c = false;
        /*for each item in the array...*/
        for (i = 0; i < arr.length; i++) {
            arr[i] = arr[i].toLowerCase();
            val = val.toLowerCase();
            /*check if the item starts with the same letters as the text field value:*/
            if (arr[i].indexOf(val) > -1) {
                if (c === false) {
                    /*create a DIV element that will contain the items (values):*/
                    d = document.createElement("DIV");
                    d.setAttribute("class", "autocomplete-wrapper");
                    this.parentNode.appendChild(d);
                    a = document.createElement("DIV");
                    a.setAttribute("id", this.id + "autocomplete-list");
                    a.setAttribute("class", "autocomplete-items");
                    /*append the DIV element as a child of the autocomplete container:*/
                    d.appendChild(a);
                    c = true;
                }
                /*create a DIV element for each matching element:*/
                b = document.createElement("DIV");
                /*make the matching letters bold:*/
                b.innerHTML = boldString(arr[i], val);
                /*insert a input field that will hold the current array item's value:*/
                b.innerHTML += "<input type='hidden' value='" + arr[i] + "'>";
                /*execute a function when someone clicks on the item value (DIV element):*/
                b.addEventListener("click", function (e) {
                    /*insert the value for the autocomplete text field:*/
                    inp.value = this.getElementsByTagName("input")[0].value;
                    /*close the list of autocompleted values,
                    (or any other open lists of autocompleted values:*/
                    closeAllLists();
                });
                if (c === true) { a.appendChild(b);}
            }

        }
    });
    /*execute a function presses a key on the keyboard:*/
    inp.addEventListener("keydown", function (e) {
        var x = document.getElementById(this.id + "autocomplete-list");
        if (x) x = x.getElementsByTagName("div");
        if (e.keyCode == 40) {
            /*If the arrow DOWN key is pressed,
            increase the currentFocus variable:*/
            currentFocus++;
            /*and and make the current item more visible:*/
            addActive(x);
        } else if (e.keyCode == 38) { //up
            /*If the arrow UP key is pressed,
            decrease the currentFocus variable:*/
            currentFocus--;
            /*and and make the current item more visible:*/
            addActive(x);
        } else if (e.keyCode == 13) {
            /*If the ENTER key is pressed, prevent the form from being submitted,*/
            e.preventDefault();
            if (currentFocus > -1) {
                /*and simulate a click on the "active" item:*/
                if (x) x[currentFocus].click();
            }
        }
    });
    function addActive(x) {
        /*a function to classify an item as "active":*/
        if (!x) return false;
        /*start by removing the "active" class on all items:*/
        removeActive(x);
        if (currentFocus >= x.length) currentFocus = 0;
        if (currentFocus < 0) currentFocus = (x.length - 1);
        /*add class "autocomplete-active":*/
        x[currentFocus].classList.add("autocomplete-active");
    }
    function removeActive(x) {
        /*a function to remove the "active" class from all autocomplete items:*/
        for (var i = 0; i < x.length; i++) {
            x[i].classList.remove("autocomplete-active");
        }
    }
    function closeAllLists(element) {
        /*close all autocomplete lists in the document,
        except the one passed as an argument:*/
        var x = document.getElementsByClassName("autocomplete-wrapper");
        for (var i = 0; i < x.length; i++) {
            if (element != x[i] && element != inp) {
                x[i].parentNode.removeChild(x[i]);
            }
        }
    }
    function boldString(str, find) {
        var re = new RegExp(find, 'g');
        return str.replace(re, '<b>' + find + '</b>');
    }
    /*execute a function when someone clicks in the document:*/
    document.addEventListener("click", function (e) {
        closeAllLists(e.target);
    });
};
/* global $, setUrl */

/* setUrl is a global function created within the DefaultHeader.cshtml.  It needs
   a model property written in the Razor in order to set window.location.href.
   Not an ideal solution */

'use strict';

$(function () {
    var ButtonKeys = {
        'EnterKey': 13
    };
    $('#SearchText').keypress(function (e) {
        if (e.which === ButtonKeys.EnterKey) {
            setUrl();
            return false;
        }
    });
});;
/* global jQuery */
'use strict';

var slickCarousel = {
    initializeSlick: function () {
        var configText = $('#slickCarouselConfig').attr('value');
        var config = JSON.parse(configText);
        var selector = $('#slickCarouselSelector').attr('value');
        $(selector).each(function () {
            var el = $(this);
            if (el.hasClass('slick-initialized')) {
                el.slick('unslick');
            }
            el.css('display', 'block');
            el.slick(config);
        });
    }
};
$(document).ready(function () {
    if ($('#slickCarouselConfig').length) {
        slickCarousel.initializeSlick();
    }
});;
/*! Idle Timer v1.1.0 2016-03-21 | https://github.com/thorst/jquery-idletimer | (c) 2016 Paul Irish | Licensed MIT */
!function(a){a.idleTimer=function(b,c){var d;"object"==typeof b?(d=b,b=null):"number"==typeof b&&(d={timeout:b},b=null),c=c||document,d=a.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},d);var e=a(c),f=e.data("idleTimerObj")||{},g=function(b){var d=a.data(c,"idleTimerObj")||{};d.idle=!d.idle,d.olddate=+new Date;var e=a.Event((d.idle?"idle":"active")+".idleTimer");a(c).trigger(e,[c,a.extend({},d),b])},h=function(b){var d=a.data(c,"idleTimerObj")||{};if(("storage"!==b.type||b.originalEvent.key===d.timerSyncId)&&null==d.remaining){if("mousemove"===b.type){if(b.pageX===d.pageX&&b.pageY===d.pageY)return;if("undefined"==typeof b.pageX&&"undefined"==typeof b.pageY)return;var e=+new Date-d.olddate;if(200>e)return}clearTimeout(d.tId),d.idle&&g(b),d.lastActive=+new Date,d.pageX=b.pageX,d.pageY=b.pageY,"storage"!==b.type&&d.timerSyncId&&"undefined"!=typeof localStorage&&localStorage.setItem(d.timerSyncId,d.lastActive),d.tId=setTimeout(g,d.timeout)}},i=function(){var b=a.data(c,"idleTimerObj")||{};b.idle=b.idleBackup,b.olddate=+new Date,b.lastActive=b.olddate,b.remaining=null,clearTimeout(b.tId),b.idle||(b.tId=setTimeout(g,b.timeout))},j=function(){var b=a.data(c,"idleTimerObj")||{};null==b.remaining&&(b.remaining=b.timeout-(+new Date-b.olddate),clearTimeout(b.tId))},k=function(){var b=a.data(c,"idleTimerObj")||{};null!=b.remaining&&(b.idle||(b.tId=setTimeout(g,b.remaining)),b.remaining=null)},l=function(){var b=a.data(c,"idleTimerObj")||{};clearTimeout(b.tId),e.removeData("idleTimerObj"),e.off("._idleTimer")},m=function(){var b=a.data(c,"idleTimerObj")||{};if(b.idle)return 0;if(null!=b.remaining)return b.remaining;var d=b.timeout-(+new Date-b.lastActive);return 0>d&&(d=0),d};if(null===b&&"undefined"!=typeof f.idle)return i(),e;if(null===b);else{if(null!==b&&"undefined"==typeof f.idle)return!1;if("destroy"===b)return l(),e;if("pause"===b)return j(),e;if("resume"===b)return k(),e;if("reset"===b)return i(),e;if("getRemainingTime"===b)return m();if("getElapsedTime"===b)return+new Date-f.olddate;if("getLastActiveTime"===b)return f.lastActive;if("isIdle"===b)return f.idle}return e.on(a.trim((d.events+" ").split(" ").join("._idleTimer ")),function(a){h(a)}),d.timerSyncId&&a(window).bind("storage",h),f=a.extend({},{olddate:+new Date,lastActive:+new Date,idle:d.idle,idleBackup:d.idle,timeout:d.timeout,remaining:null,timerSyncId:d.timerSyncId,tId:null,pageX:null,pageY:null}),f.idle||(f.tId=setTimeout(g,f.timeout)),a.data(c,"idleTimerObj",f),e},a.fn.idleTimer=function(b){return this[0]?a.idleTimer(b,this[0]):this}}(jQuery);;
var ServiceDeskUtilities = function () {

    /***** Private *****/

    // Intercom Constants
    var intercomAppId = 'jjix0ptg';

    // Intercom start script - run after window.intercomSettings variable is set up
    var intercomStart = function () {
        (function () { var w = window; var ic = w.Intercom; if (typeof ic === 'function') { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/' + intercomAppId; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
    };

    // Helper Methods

    var isEmpty = function (data) {
        if (typeof (data) === 'number' || typeof (data) === 'boolean') {
            return false;
        }
        if (typeof (data) === 'undefined' || data === null) {
            return true;
        }
        if (typeof (data.length) !== 'undefined') {
            return data.length === 0;
        }
        var count = 0;
        for (var i in data) {
            if (data.hasOwnProperty(i)) {
                count++;
            }
        }
        return count === 0;
    };

    var getUrlParameter = function (name) {
        name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
        var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
        var results = regex.exec(location.search);
        return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
    };

    var getCookie = function (cname) {
        var name = cname + '=';
        var cookie = document.cookie;
        var ca = cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0) === ' ') {
                c = c.substring(1);
            }
            if (c.indexOf(name) === 0) {
                return decodedValue(c.substring(name.length, c.length));
            }
        }
        return '';
    };

    var setCookie = function(cname, cvalue, exdays) {
        var d = new Date();
        d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
        var expires = 'expires=' + d.toUTCString() + '; ';
        document.cookie = cname + '=' + cvalue + '; ' + expires + 'path=/;';
    };

    var getReferrer = function() {
        var referrer = '';
        referrer = getCookie('SWI_Referral');
        return referrer;
    };

    var getSearchEngine = function() {
        if (document.referrer.includes('google')) {
            return 'GGL';
        }
        else if (document.referrer.includes('bing')) {
            return 'MSN';
        } else {
            return 'Other';
        }
    };

    var getTrackingSeg1 = function () {
        var trackingSeg1 = '';
        var referrer = getReferrer();
        if (referrer.includes('ORG')) {
            trackingSeg1 = "ORG";
        }
        else if (referrer.includes('REF')) {
            trackingSeg1 = "REF";
        } else {
            trackingSeg1 = "DIR";
        }
        return trackingSeg1;
    };

    var getTrackingSeg3 = function() {
        var trackingSeg3 = '';
        var referrer = getReferrer();
        if (referrer.includes('ORG')) {
            trackingSeg3 = getSearchEngine();
        } else {
            trackingSeg3 = "empty";
        }
        return trackingSeg3;
    };

    /***** Public *****/

    return {

        // Keep a record of the user's entry point and campaign data
        setTrackingCookies: function () {
	        var timezoneCookieName = "SW_timezone";
            var cookiename = "SW_sd_attr";

            // Set cookie if empty
            if (isEmpty(getCookie(cookiename))) {

                // Set up object for cookie data
                var model = {};

                // First Touch
                if (document.referrer === '') {
                    model.trackingFirstTouch = "direct";
                } else {
                    model.trackingFirstTouch = document.referrer;
                }

                // First Touch Domain
                var tracking_first_touch_split = model.trackingFirstTouch.split("?");
                model.trackingFirstTouchDomain = tracking_first_touch_split[0];

                // First Page
                model.trackingFirstPage = window.location.href;

                // First Page Domain
                model.trackingFirstPageDomain = window.location.host;

                if (window.location.href.includes('service-desk/registration')) {
                    model.trackingRegistrationUrl = window.location.href;
                } else {
                    model.trackingRegistrationUrl = "empty";
                }

                // Source
                if (!isEmpty(getUrlParameter('utm_source'))) {
                    model.trackingSource = getUrlParameter('utm_source');
                } else {
                    var referrer = getReferrer();
                    if (referrer.includes('ORG')) {
                        model.trackingSource = getSearchEngine();
                    } else {
                        model.trackingSource = "empty";
                    }
                }

                // Medium
                if (!isEmpty(getUrlParameter('utm_medium'))) {
                    model.trackingMedium = getUrlParameter('utm_medium');
                } else {
                    var referrer = getReferrer();
                    if (referrer.includes('ORG')) {
                        model.trackingMedium = "ORG";
                    }
                    else if (referrer.includes('REF')) {
                        model.trackingMedium = "REF";
                    } else {
                        model.trackingMedium = "DIR";
                    }
                }

                //Content
                if (!isEmpty(getUrlParameter('utm_content'))) {
                    model.trackingContent = getUrlParameter('utm_content');
                } else {
                    model.trackingContent = "empty";
                }

                // Term
                if (!isEmpty(getUrlParameter('utm_term'))) {
                    model.trackingTerm = getUrlParameter('utm_term');
                } else {
                    model.trackingTerm = "empty";
                }

                // Campaign
                if (!isEmpty(getUrlParameter('utm_campaign'))) {
                    model.trackingCampaign = getUrlParameter('utm_campaign');
                } else {
                    model.trackingCampaign = "empty";
                }

                // Product Line

                if (!isEmpty(getUrlParameter('product_line'))) {
                    model.ProductLine = getUrlParameter('product_line');
                }
                else {
                    model.ProductLine = "SSP";
                }

                // Tracking CMP
                if (!isEmpty(getUrlParameter('CMP'))) {
                    model.trackingCMP = getUrlParameter('CMP');
                    var trackingSegments = model.trackingCMP.split("-");
                    if (typeof trackingSegments[0] !== 'undefined') {
                        model.TrackingSeg1 = trackingSegments[0];
                    }
                    else {
                        model.TrackingSeg1 = getTrackingSeg1();
                    }

                    if (typeof trackingSegments[1] !== 'undefined') {
                        model.TrackingSeg2 = trackingSegments[1];
                    } else {
                        model.TrackingSeg2 = "empty";
                    }

                    if (typeof trackingSegments[2] !== 'undefined') {
                        model.TrackingSeg3 = trackingSegments[2];
                    } else {
                        model.TrackingSeg3 = getTrackingSeg3();
                    }

                    if (typeof trackingSegments[3] !== 'undefined') {
                        model.TrackingSeg4 = trackingSegments[3];
                    }
                    else {
                        model.TrackingSeg4 = "empty";
                    }

                    if (typeof trackingSegments[4] !== 'undefined') {
                        model.TrackingSeg5 = trackingSegments[4];
                    }
                    else {
                        model.TrackingSeg5 = "empty";
                    }

                    if (typeof trackingSegments[5] !== 'undefined') {
                        model.TrackingSeg6 = trackingSegments[5];
                    }
                    else {
                        model.TrackingSeg6 = "empty";
                    }

                    if (typeof trackingSegments[6] !== 'undefined') {
                        model.TrackingSeg7 = trackingSegments[6];
                    }
                    else {
                        model.TrackingSeg7 = "empty";
                    }
                } else {
                    model.trackingCMP = "empty";
                    model.TrackingSeg1 = getTrackingSeg1();
                    model.TrackingSeg2 = "empty";
                    model.TrackingSeg3 = getTrackingSeg3();
                    model.TrackingSeg4 = "empty";
                    model.TrackingSeg5 = "empty";
                    model.TrackingSeg6 = "empty";
                    model.TrackingSeg7 = "empty";
				}

                // Set the cookie
                setCookie(cookiename, JSON.stringify(model), 30);
            }
            else if (window.location.href.includes('service-desk/registration')) {
                var cookieJson = getCookie(cookiename);
                var cookieModel = JSON.parse(cookieJson);
                cookieModel.trackingRegistrationUrl = window.location.href;
                setCookie(cookiename, JSON.stringify(cookieModel), 30);
			}

			if (isEmpty(getCookie(timezoneCookieName))) {
				setCookie(timezoneCookieName, Intl.DateTimeFormat().resolvedOptions().timeZone, 30);
			}
        },

        intercomInit: function () {

            var swSdCookieModel = JSON.parse(getCookie('SW_sd_attr'));

            // Build default Intercom settings
            window.intercomSettings = {
                app_id: intercomAppId,
                lead_source: swSdCookieModel.trackingFirstTouch,
                lead_campaign: swSdCookieModel.trackingCampaign
            };

            var intercomCookie = getCookie('IntercomChat');
            var intercomCookieModel;
            if (intercomCookie !== '') {
                intercomCookieModel = JSON.parse(intercomCookie);
                window.intercomSettings.user_hash = intercomCookieModel.hash;
                window.intercomSettings.email = intercomCookieModel.email;
                //Start intercom chat with user email and hash from cookies
                intercomStart();
            }
            else if (getCookie('RegistrationDetails') !== '') {
                var serviceDeskApiUrl = '/solarapi/servicedesk/isuserhashgenerated';
                jQuery.get(serviceDeskApiUrl, function (response) {
                        if (response === 'True') {
                            // Add the user hash and email to the Intercom Settings
                            intercomCookieModel = JSON.parse(getCookie('IntercomChat'));
                            window.intercomSettings.user_hash = intercomCookieModel.hash;
                            window.intercomSettings.email = intercomCookieModel.email;
                        }
                        //Start intercom chat without user email and hash
                        intercomStart();
                    });
            } else {
                //Start intercom chat without user email and hash
                intercomStart();
            }

        }
    };
}();

// Set tracking cookies on page load
jQuery(document).ready(function () {
    ServiceDeskUtilities.setTrackingCookies();
});
;
jQuery(document).ready(function () {
    if (window.location.href.indexOf('/database-performance-monitor/registration') > -1) {
        var dpmSource = getQueryStringValue('dpm_source');
        if (dpmSource) {
            document.cookie = 'dpm_source=' + dpmSource + '; path=/';
        }
        var dpmState = getQueryStringValue('dpm_state');
        if (dpmState) {
            document.cookie = 'dpm_state=' + dpmState + '; path=/';
        }
    }
});;
window.getQueryStringValue = function (param) {
	var q = document.URL.split('?')[1];
	if (q) {
		var qs = q.split('&');
		for (var i = 0; i < qs.length; i++) {
			var parts = qs[i].split('=');
			if (parts[0] === param) {
				return decodedValue(parts[1].replace(/\+/g, ' '));
			}
		}
	}
	return '';
};

window.setQueryStringValue = function (url, param, paramVal) {
	if (typeof url !== 'undefined') {
		var parts = url.split('?');
		var baseUrl = parts[0];
		var oldQueryString = parts[1];
		var newParameters = [];
		if (oldQueryString) {
			var oldParameters = oldQueryString.split('&');
			for (var i = 0; i < oldParameters.length; i++) {
				if (oldParameters[i].split('=')[0] !== param) {
					newParameters.push(oldParameters[i]);
				}
			}
		}
		if (paramVal) {
			newParameters.push(param + '=' + encodeURIComponent(paramVal).replace(/\%20/g, '+'));
		}
		if (newParameters.length > 0) {
			return baseUrl + '?' + newParameters.join('&');
		} else {
			return baseUrl;
		}
	}
	return null;
};

window.setCrossSellQuery = function (crossSellUrl) {
	if (crossSellUrl) {
		var parentCampaign = getQueryStringValue('parentCampaign');
		if (parentCampaign) {
			crossSellUrl = setQueryStringValue(crossSellUrl, 'parentCampaign', parentCampaign);
		}
	}
	return crossSellUrl;
};;
$(document).ready(function () {
	// Click Event subscriber for Submit feature
	$('.product-card-submit').filter('[href]:not([href=""])').click(function (e) {
		e.preventDefault();
		var url = setCrossSellQuery($(this).attr('href'));
		window.location.href = url;
		return false;
	});
});;
/*! jQuery Lazy 1.7.2 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */
!function(t,e){"use strict";function r(r,a,i,l,u){function c(){L=t.devicePixelRatio>1,f(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(l.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),l.a=function(t){f(t),i.push.apply(i,t)},l.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},s(),n(a.appendScroll).on("scroll."+u+" resize."+u,l.e))}function f(t){var i=a.defaultImage,o=a.placeholder,l=a.imageBase,u=a.srcsetAttribute,c=a.loaderAttribute,f=a._f||{};t=n(t).filter(function(){var t=n(this),r=h(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(u)||t.attr(c)||f[r]!=e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;d>s;s++){var A=n(t[s]),m=h(t[s]),g=A.attr(a.imageBaseAttribute)||l;m==N&&g&&A.attr(u)&&A.attr(u,b(A.attr(u),g)),f[m]==e||A.attr(c)||A.attr(c,f[m]),m==N&&i&&!A.attr(E)?A.attr(E,i):m==N||!o||A.css(O)&&"none"!=A.css(O)||A.css(O,"url('"+o+"')")}}function s(t){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var e=!1,o=a.imageBase||"",l=a.srcsetAttribute,u=a.handledName,c=0,f=i.length;f>c;c++)(function(r){if(t||A(r)){var i=n(r),c=h(r),f=i.attr(a.attribute),s=i.attr(a.imageBaseAttribute)||o,m=i.attr(a.loaderAttribute);i.data(u)||a.visibleOnly&&!i.is(":visible")||!((f||i.attr(l))&&(c==N&&(s+f!=i.attr(E)||i.attr(l)!=i.attr(F))||c!=N&&s+f!=i.css(O))||m)||(e=!0,i.data(u,!0),d(i,c,s,m))}})(i[c]);e&&(i=n(i).filter(function(){return!n(this).data(u)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var l=a.attribute,u=a.srcsetAttribute,c=a.sizesAttribute,f=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(f);if(i){var m=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),m=n.noop};t.off(I).one(I,o).one(D,m),y(i,t,function(e){e?(t.off(D),m()):(t.off(I),o())})||t.trigger(I)}else{var g=n(new Image);g.one(I,o).one(D,function(){t.hide(),e==N?t.attr(C,g.attr(C)).attr(F,g.attr(F)).attr(E,g.attr(E)):t.css(O,"url('"+g.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(l+" "+u+" "+f+" "+a.imageBaseAttribute),c!==C&&t.removeAttr(c)),t.data(d,!0),y(T,t),g.remove(),p()});var h=(L&&A?A:t.attr(l))||"";g.attr(C,t.attr(c)).attr(F,t.attr(u)).attr(E,h?r+h:null),g.complete&&g.load()}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=g()+n>e.top&&-n<e.bottom,o=m()+n>e.left&&-n<e.right;return"vertical"==r?i:"horizontal"==r?o:i&&o}function m(){return w>=0?w:w=n(t).width()}function g(){return B>=0?B:B=n(t).height()}function h(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;n>a;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,l){function u(){i=+new Date,e.call(r,o)}var c=+new Date-i;n&&clearTimeout(n),c>t||!a.enableThrottle||l?u():n=setTimeout(u,t-c)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return(t=a[t])?(t.apply(r,[].slice.call(arguments,1)),!0):!1}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"==a.bind||o?c():n(t).on(D+"."+u,c)}function a(a,o){var l=this,u=n.extend({},l.config,o),c={},f=u.name+"-"+ ++i;return l.config=function(t,r){return r===e?u[t]:(u[t]=r,l)},l.addItems=function(t){return c.a&&c.a("string"===n.type(t)?n(t):t),l},l.getItems=function(){return c.g?c.g():{}},l.update=function(t){return c.e&&c.e({},!t),l},l.loadAll=function(){return c.e&&c.e({all:!0},!0),l},l.destroy=function(){return n(u.appendScroll).off("."+f,c.e),n(t).off("."+f),c={},e},r(l,u,a,c,f),u.chainable?a:l}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,l=o._f||(o._f={}),u=0,c=t.length;c>u;u++)(o[t[u]]===e||n.isFunction(o[t[u]]))&&(o[t[u]]=i);for(var f=0,s=r.length;s>f;f++)l[r[f]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window);;
