1!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=7)}([function(e,t){({_products:[{Name:"IT Hit Server Engine for .NET: CalDAV / CardDAV Modules",ID:"5476927F-76C0-4A1D-8F5A-C7A594A748ED",Modules:"CalDAV, CardDAV, iCalendar, vCard, Class1"},{Name:"IT Hit Server Engine for .NET: WebDAV Class 1 / Class 2 Modules",ID:"5476927F-76C0-4A1D-8F5A-C7A594A748ED",Modules:"Class1, Class2"},{Name:"IT Hit Server Engine for .NET: G Suite Module",ID:"C4BD1763-9BEF-46F3-8DAF-D094D6F1273D",Modules:null},{Name:"IT Hit WebDAV Server Library for Java: Class 1 / Class 2 Modules",ID:"584AA0EB-6153-4BA1-A508-8D9227AB9FC9",Modules:null},{Name:"IT Hit WebDAV AJAX Library",ID:"B1B802F0-7AF8-499C-845E-628FBF43DC2B",Modules:null},{Name:"IT Hit AJAX File Browser",ID:"9719C8C0-56F3-4B74-9EF3-E9E408376695",Modules:null},{Name:"IT Hit Edit Any Document for SharePoint",ID:"2A634606-51AE-4DC5-B370-E6675B5FFA35",Modules:null,BundleDisable:!0},{Name:"IT Hit WebDAV Client Library for .NET",ID:"2660AD86-C0B1-4D0B-A2D4-5857B64414C8",Modules:null},{Name:"Milton WebDAV Server Library for Java",ID:"961F9914-AE72-4B1D-A372-983A33C40409",Modules:null,BundleDisable:!0},{Name:"IT Hit User File System",ID:"D38EA239-F394-404B-842A-E2B8ECBE502B",Modules:null},{Name:"IT Hit WebDAV Drive",ID:"FC0C7B24-C8BB-4010-AD54-461334BB4424",Modules:null,BundleDisable:!0},{Name:".NET WebDAV Integrated Bundle",ID:"26355E6E-13A8-49A9-9EC3-A5E7EE273500",Modules:null,BundleDisable:!0},{Name:"Java WebDAV Integrated Bundle",ID:"94DB11BF-0713-48BC-A4AE-FCF2A1DDF6BA",Modules:null,BundleDisable:!0}],_licenseTypes:["Server","Redistribution","Sources"],_bundleDiscounts:[],_editMode:!1,_bundleId:null,_isMiltonProject:!1,init:function(e){var t=this,n=$(".js-bundle-products"),a=$(".js-product"),i=$(".js-single-product");if(this._isMiltonProject=$(".js-milton-project").length>0,this._editMode=!!e,(n.length||a.length)&&(t.addHtmlBlocks(t._isMiltonProject),$("a[data-license-type]").attr("rel","nofollow"),this.loadProducts((function(){n.each((function(){var e=[],n=$(this),a=(n.hasClass("js-perpetual-only"),2),i=1;if(n.parent().prev().data("name")!=t.GetHashValue("bundleName"))n.find("tbody:first > tr").each((function(){var n=$(this);t._products.forEach((function(t){n.data("id").toLowerCase()==t.ID.toLowerCase()&&t.Modules==(n.data("modules")?n.data("modules"):null)&&e.push(t)}))}));else{a=parseInt(t.GetHashValue("updateType")),i=parseInt(t.GetHashValue("yearsTerm"))||1;for(var s=0;s<15;s++){var r=t.GetHashValue("id["+s+"]"),l=t.GetHashValue("module["+s+"]")?decodeURI(t.GetHashValue("module["+s+"]")):null;if(!r)break;t._products.forEach((function(t){r.toLowerCase()==t.ID.toLowerCase()&&t.Modules==l&&e.push(t)}))}
1$(window).on("load",(function(){$("html, body").animate({scrollTop:n.parent().prev().prev().offset().top-70+"px"},1e3)}))}var o=n.find(".add-license-header");if(o.find(" > a").click((function(){var e=o.find(".add-products-pnl");return e.hasClass("d-none")?($(this).find("span").text("â"),t.showListProducts(e,n.data("products"),"Server",(function(e){t.addProductToBundle(n,e)}))):(e.addClass("d-none"),$(this).find("span").text("+")),!1})),n.find(".update-types select").on("change",(function(){var e=parseInt($(this).val());t._editMode?2==$(this).val()?(t.updateBundlesTable(n,n.data("products"),e),$("#ddlPurchaseType").attr("disabled",!1)):3==$(this).val()?($("#ddlSupportYearsTerm").val("1"),t.updateBundlesTable(n,n.data("products"),e)):($("#ddlPurchaseType").val("New").change().attr("disabled",!0),t.updateBundlesTable(n,n.data("products"),e)):t.updateBundlesTable(n,n.data("products"),e)})),t._editMode&&2!=n.find(".update-types select").val()&&$("#ddlPurchaseType").val("New").attr("disabled",!0),n.find(".select-year select").on("change",(function(){var e=parseInt(n.find(".update-types select").val());t.updateBundlesTable(n,n.data("products"),e)})).val(i),n.data("default-products",JSON.parse(JSON.stringify(e))),n.find(".reset").click((function(){return t.updateBundlesTable(n,JSON.parse(JSON.stringify(n.data("default-products"))),n.data("updateType")),!1})),$("#earlyRenewalDiscount").change((function(){t.updateBundlesTable(n,n.data("products"),n.data("updateType"))})),t.updateBundlesTable(n,e,a),t._editMode&&$("#txtInitialPurchaseDiscount").length){function d(){var a=parseFloat($("#txtInitialPurchaseDiscount").val());100==a&&(a=0),e.forEach((function(e){e.InitialPurchaseDiscount=a,$("#cbExtraDiscountAppleToInitialPurchase").is(":checked")?(e.ExtraInitialRenewalPurchaseDiscount=0,e.ExtraInitialPurchaseDiscount=parseFloat($("#txtExtraDiscount").val()),$("#txtResellerDiscount").length&&$("#cbReseller").is(":checked")&&(e.ExtraInitialPurchaseDiscount+=parseFloat($("#txtResellerDiscount").val()))):(e.ExtraInitialPurchaseDiscount=0,e.ExtraInitialRenewalPurchaseDiscount=parseFloat($("#txtExtraDiscount").val()),$("#txtResellerDiscount").length&&$("#cbReseller").is(":checked")&&(e.ExtraInitialRenewalPurchaseDiscount+=parseFloat($("#txtResellerDiscount").val())))})),t.updateBundlesTable(n,e,n.data("updateType"))}function c(){var a=parseFloat($("#txtBundleDiscount").val());e.forEach((function(e,t){e.Discount=t>0?0+a:0})),t.updateBundlesTable(n,e,n.data("updateType"))}$("#txtInitialPurchaseDiscount").change((function(){d()})),$("#txtBundleDiscount, #txtYearsDiscount").change((function(){c()})),$("#ddlSupportYearsTerm").change((function(){parseInt($("#ddlSupportYearsTerm").val())>1?$("#pnlYearsDiscount").show():$("#pnlYearsDiscount").hide(),c()})),$("#txtExtraDiscount, #txtResellerDiscount").change((function(){d()}))}}
1)),a.each((function(){var e=$(this);e.find(".update-types select").on("change",(function(){t.updateProductTable(e,e.data("product"),parseInt($(this).val()))})),e.find(".select-year select").on("change",(function(){var n=parseInt(e.find(".update-types select").val());t.updateProductTable(e,e.data("product"),n)})),t.updateProductTable(e,t._products.filter((function(t){return e.data("id").toLowerCase()==t.ID.toLowerCase()&&t.Modules==(e.data("modules")?e.data("modules"):null)}))[0],(e.hasClass("js-perpetual-only"),2))}))})),this._editMode)){function s(e,t){var n=t;if(e.responseJSON&&e.responseJSON.ExceptionMessage){n=e.responseJSON.ExceptionMessage;try{var a=n.match(/\{[^}]*"Fault"[^}]*\}/);if(a){var i=JSON.parse(a[0]);if(i.Fault&&i.Fault.Error&&i.Fault.Error.length>0){var s=i.Fault.Error[0];n=s.Message+(s.Detail?"\n"+s.Detail:"")}}}catch(e){}}alert("Error: "+n)}var r=$("#bundleCreateInvoiceBtn");r.click((function(){r.attr("disabled","disabled"),$("#bundleCreateInvoiceSuccessMessage").hide(),$("#bundleCreateEstimateSuccessMessage").hide(),$("#bundleSaving").show(),$.ajax({contentType:"application/json",url:"/Umbraco/Backoffice/InvoicesEditor/Invoice/CreateAndSendToQuickBooks?memberId="+$("#selectedMember").val()+"&bundleId="+t._bundleId,dataType:"text",type:"POST",success:function(e){var n=t._stripSecurityPrefix(e);$("#bundleSaving").hide(),$("#bundleCreateInvoiceSuccessMessage").show(),r.attr("disabled",!1),n&&window.open("https://qbo.intuit.com/app/invoice?txnId="+n,"_blank")},error:function(e,t,n){$("#bundleSaving").hide(),r.attr("disabled",!1),s(e,n)}})}));var l=$("#bundleCreateEstimateBtn");l.click((function(){l.attr("disabled","disabled"),$("#bundleCreateEstimateSuccessMessage").hide(),$("#bundleCreateInvoiceSuccessMessage").hide(),$("#bundleSaving").show(),$.ajax({contentType:"application/json",url:"/Umbraco/Backoffice/InvoicesEditor/Invoice/SendEstimateToQuickBooks?memberId="+$("#selectedMember").val()+"&bundleId="+t._bundleId,dataType:"text",type:"POST",success:function(e){var n=t._stripSecurityPrefix(e);$("#bundleSaving").hide(),$("#bundleCreateEstimateSuccessMessage").show(),l.attr("disabled",!1),n&&window.open("https://qbo.intuit.com/app/estimate?txnId="+n,"_blank")},error:function(e,t,n){$("#bundleSaving").hide(),l.attr("disabled",!1),s(e,n)}})}))}i.length&&(t.addHtmlBlocksForSingle(),this.loadProducts((function(){i.each((function(){var e=$
1(this);e.find(".update-types select").on("change",(function(){t.updateProductSingle(e,e.data("product"),parseInt($(this).val()))})),e.find(".select-year select").on("change",(function(){var n=parseInt(e.find(".update-types select").val());t.updateProductSingle(e,e.data("product"),n)})),t.updateProductSingle(e,t._products.filter((function(t){return e.data("id").toLowerCase()==t.ID.toLowerCase()}))[0],2)}))})))},addHtmlBlocks:function(e){var t=e?"":'<option value="3">Subscription, Monthly</option>',n=$("table .update-types .form-group");n.html('<select class="form-control w-auto" id="firstSelectId"><option value="2" selected>Perpetual License</option><option value="4">Subscription, Yearly</option>'+t+"</select>"),n.each((function(){var e=$(this),t=e.attr("data-update-type");void 0===t&&(t=e.closest(".update-types").attr("data-update-type")),void 0===t&&(t=e.closest("tr").attr("data-update-type"));var n=null==t||""===t?"2":String(t);e.find("select").val(n)})),$("table .select-year").html('<select class="form-control"><option value="1" selected>1 year</option><option value="2">2 years (10% discount 2nd year)</option><option value="3">3 years (10% discount 2nd & 3d year)</option></select>')},addHtmlBlocksForSingle:function(){$(".js-single-product .update-types .form-group").html('<select class="form-control w-auto" id="firstSelectId"><option value="4">Subscription, Yearly</option><option value="3">Subscription, Monthly</option></select>')},updateProductSingle:function(e,t,n){e.data("product",t);var a=2==n?parseInt(e.find(".select-year select").val()):0,i=this.getTotalPrice([t],"Server",n,null,a);e.find("a.js-buy-link").attr("href",this.getBuyUrl(t,"Server",n,a)),e.find(".js-price-block").html(this.getHtmlPriceFormat(i.Current))},updateProductTable:function(e,t,n){var a=this;e.data("product",t),a._licenseTypes.forEach((function(i){if(e.find('td[data-license-type="'+i+'"]:eq(0)').length){var s=2==n?parseInt(e.find(".select-year select").val()):0,r=a.getTotalPrice([t],i,n,null,s),l=!1;if(2==n){var o=.45;e.find(".select-year select").val()>1&&(o=1),e.find('td[data-license-type="'+i+'"]:eq(0)').html(a.getHtmlPriceFormat(r.Current,r.Original)),e.find('td[data-license-type="'+i+'"]:eq(1)').html(a.getHtmlPriceFormat(r.EarlyRenewalTotal*o,r.Original-r.Current+r.EarlyRenewalTotal*o)),e.find(".early-renewal > td:eq(1) span").replaceWith((function(){return'<a href="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'"></a>'})),e.find(".early-renewal > td:eq(1) a").text("Early Renewal:"),l=!0}else"Sources"!=i||a._isMiltonProject?(e.find('td[data-license-type="'+i+'"]:eq(0)').html(a.getHtmlPriceFormat(r.Current)),e.find('td[data-license-type="'+i+'"]:eq(1)').html(a.getHtmlPriceFormat(r.Current))):(e.find('td[data-license-type="'+i+'"]:eq(0)').html("Perpetual only"),e.find('td[data-license-type="'+i+'"]:eq(1)').html("Perpetual only")),e.find(".early-renewal > td:eq(1) a").replaceWith((function(){return'<span class="text-violet" href="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'"></span>'})),e.find(".early-renewal > td:eq(1) span").text("Renewal:");var d=2==n?parseInt(e.find(".select-year select").val()):0,c=e.find('a[data-license-type="'+i+'"]').attr("href",a.getBuyUrl(t,i,n,d));2==n||"Sources"!=i||a._isMiltonProject?c.removeClass("disabled"):c.addClass("disabled"),l?e.find("[data-default-support]").each((function(){$(this).removeClass(),$(this).addClass($(this).data("default-support"))})):e.find("[data-subscription-support]").each((function(){$(this).removeClass(),$(this).addClass($(this).data("subscription-support"))}))}})),a.updateYearsSelect(e.find(".select-year .form-control"),n)},updateBundlesTable:function(e,t,n){var a=this,i=e.find("tbody:first"),s=e.find(".reset"),r=[];i.empty(),t.sort((function(e,t){var n=t.Prices.filter((function(e){return"Server"==e.LicenseType})),a=0!=n.length?n[0].Price:0,i=e.Prices.filter((function(e){return"Server"==e.LicenseType}));return a-(0!=i.length?i[0].Price:0)})),e.data("products",t),e.data("updateType",n),s.attr("disabled",this._compareProducts(t,e.data("default-products")));var l=(100-a.getBundleDiscountValue(t,t.length))/100,o=a.getBundleDiscount(t),d=e.parent().prev();e.parent().prev().hasClass("js-bundle-message")||(d=$('<span class="red js-bundle-message"></span>')).insertBefore(e.parent()),d.empty(),o&&d.text("The "+o.Discount+"% bundle discount is applied until "+o.ValidDateStr+"."),t.forEach((function(s,o){var d=$("<tr />").appendTo(i),c=$('<td colspan="2"/>').appendTo(d),u=$('<div class="d-flex align-items-center justify-content-between"/>').appendTo(c).html("<span>"+s.Name+"</span>"),p="js-"+s.ID+"-popover";if($("."+p).length&&$('<span class="glyphicon-info-sign pull-right ml-2" tabindex="-1" data-content-class="'+p+'"></span>').popover({container:"body",html:!0,placement:"bottom",trigger:"focus hover",content:function(){var e=$
1(this).attr("data-content-class"),t=$("<p></p>");return e&&(t=$("."+e)),$(this).focus(),t.html()}}).appendTo(u),a._editMode){var h=$('<td style="text-align: left;"/>').appendTo(d);s.Discount=a.getBundleDiscountValue(t,o),s.InitialPurchaseDiscount||(s.InitialPurchaseDiscount=0),s.ExtraInitialPurchaseDiscount||(s.ExtraInitialPurchaseDiscount=0),s.ExtraInitialRenewalPurchaseDiscount||(s.ExtraInitialRenewalPurchaseDiscount=0),$('<label style="margin-bottom: 0px;"/>').text("Initial purchase discount:").appendTo(h),$('<input type="number" style="margin-bottom: 10px;" class="js-initial-purchase-discount" />').appendTo(h).val(s.InitialPurchaseDiscount).change((function(){s.InitialPurchaseDiscount=parseFloat($(this).val()),a.updateBundlesTable(e,t,e.data("updateType"))})),$('<label style="margin-bottom: 0px;"/>').text("Initial and renewal discount:").appendTo(h),$('<input type="number" style="margin-bottom: 10px;" />').appendTo(h).val(s.Discount).change((function(){s.Discount=parseFloat($(this).val()),a.updateBundlesTable(e,t,e.data("updateType"))}))}else $("<td/>").appendTo(d).text(o>0?a.getBundleDiscountValue(t,o)+"%":"0%");r.push(s.Name.replace("IT Hit ","")),a._licenseTypes.forEach((function(i){var r=s.Prices.filter((function(e){return e.LicenseType==i})),c=0!=r.length?r[0]:null;if(null!=c){var u=a.getProductPrice(c.Price,o,n,s.Discount,s.InitialPurchaseDiscount,l,s.ExtraInitialPurchaseDiscount,s.ExtraInitialRenewalPurchaseDiscount,!1);if(2!=n&&"Sources"==i)$("<td/>").appendTo(d).text("Perpetual only");else{var p=$("<td/>").appendTo(d);p.html(a.getHtmlPriceFormat(u,a.getBaseProductPrice(c.Price,n,null,!1))),a._editMode&&$('<input type="number"/>').appendTo(p).val(c.Price).change((function(){c.Price=parseFloat($(this).val()),a.updateBundlesTable(e,t,e.data("updateType"))}))}}else $("<td/>").appendTo(d).text(" - ")})),$('<button type="button"></button>').appendTo($('<td class="action-pnl"/>').appendTo(d)).click((function(){a.removeProductFromBundle(e,s)}))}));var c=this.getBundleUrlHash(t,e.parent().prev().prev().data("name"),n,e.find(".select-year select").val());e.parent().prev().prev().html(r.join(" + ")+'<a class="list-link d-inline" href="#'+c+'"></a>').attr("id",c),2==n?(e.find(".early-renewal > td:eq(1) span").replaceWith((function(){return'<a href="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'"></a>'})),e.find(".early-renewal > td:eq(1) a").text("Early Renewal:")):(e.find(".early-renewal > td:eq(1) a").replaceWith((function(){return'<span class="text-violet" href="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'"></span>'})),e.find(".early-renewal > td:eq(1) span").text("Renewal:")),a._licenseTypes.forEach((function(i){var s=2==n?parseInt(e.find(".select-year select").val()):0,r=a.getTotalPrice(t,i,n,null,s),l=e.find('a[data-license-type="'+i+'"]');if(2==n){var o=.45;if(0!=$("#earlyRenewalDiscount").length&&(o=(100-parseFloat($("#earlyRenewalDiscount").val()))/100),$("#ddlSupportYearsTerm").length)parseInt($("#ddlSupportYearsTerm").val())>1&&(o=1);else e.find(".select-year select").val()>1&&(o=1);e.find('td[data-license-type="'+i+'"]:eq(0)').html(a.getHtmlPriceFormat(r.Current,r.Original)),e.find('td[data-license-type="'+i+'"]:eq(1)').html(a.getHtmlPriceFormat(r.EarlyRenewalTotal*o,s>1?r.Original-r.Current+r.EarlyRenewalTotal*o:r.Original*o))}else"Sources"==i?(e.find('td[data-license-type="'+i+'"]:eq(0)').html("Perpetual only"),e.find('td[data-license-type="'+i+'"]:eq(1)').html("Perpetual only")):(e.find('td[data-license-type="'+i+'"]:eq(0)').html(a.getHtmlPriceFormat(r.Current,r.Original)),e.find('td[data-license-type="'+i+'"]:eq(1)').html(a.getHtmlPriceFormat(r.EarlyRenewalTotal,r.Original)));if(a._editMode)l.attr("href","#").unbind().click((function(){return a.createLink(t,i,n,$(this)),!1}));else{var d=2==n?parseInt(e.find(".select-year select").val()):0;l.attr("href",a.getBundleBuyUrl(t,i,n,d))}2!=n&&"Sources"==i?l.addClass("disabled"):t.length?l.removeClass("disabled"):l.addClass("disabled")})),a.updateYearsSelect(e.find(".select-year .form-control"),n)},updateYearsSelect:function(e,t){e.length&&(2==t?(e.show(),e.attr("disabled",!1)):e.hide())},getBundleDiscount:function(e){var t=null;
1return this._bundleDiscounts.forEach((function(n){if(n.ProductIds.length<=e.length){var a=0;n.ProductIds.forEach((function(t){0!=e.filter((function(e){return e.ID.toLowerCase()==t.toLowerCase()})).length&&a++})),a==n.ProductIds.length&&(t=n)}})),t},getBundleDiscountValue:function(e,t){var n=t>0?25:0,a=this.getBundleDiscount(e);return this._editMode&&(n=t>0?parseFloat($("#txtBundleDiscount").val()):0),a&&(n=a.Discount),n},addProductToBundle:function(e,t){var n=e.data("products");if(this._editMode){var a=parseFloat($("#txtInitialPurchaseDiscount").val());100==a&&(a=0),$("#cbExtraDiscountAppleToInitialPurchase").is(":checked")?(t.ExtraInitialRenewalPurchaseDiscount=0,t.ExtraInitialPurchaseDiscount=parseFloat($("#txtExtraDiscount").val()),$("#txtResellerDiscount").length&&$("#cbReseller").is(":checked")&&(t.ExtraInitialPurchaseDiscount+=parseFloat($("#txtResellerDiscount").val()))):(t.ExtraInitialPurchaseDiscount=0,t.ExtraInitialRenewalPurchaseDiscount=parseFloat($("#txtExtraDiscount").val()),$("#txtResellerDiscount").length&&$("#cbReseller").is(":checked")&&(t.ExtraInitialRenewalPurchaseDiscount+=parseFloat($("#txtResellerDiscount").val()))),t.InitialPurchaseDiscount=a}n.push(t),this.updateBundlesTable(e,n,e.data("updateType"))},removeProductFromBundle:function(e,t){var n=e.data("products"),a=-1;if(n.some((function(e,n){if(e.ID.toLowerCase()==t.ID.toLowerCase()&&e.Modules==t.Modules)return a=n,!0})),n.splice(a,1),this._editMode&&0!=n.length){var i=parseFloat($("#txtBundleDiscount").val());n.forEach((function(e,t){e.Discount=t>0?0+i:0}))}this.updateBundlesTable(e,n,e.data("updateType"))},loadProducts:function(e){var t=this;$.ajax({contentType:"application/json, charset=utf-8",url:"/umbraco/api/productprices/getall",dataType:"json",type:"GET",success:function(n){t._bundleDiscounts=n.BundleDiscounts,n.ProductPrices.forEach((function(e){e.OriginalLicenseType=e.LicenseType,"Developer"==e.LicenseType?e.LicenseType="Server":"Enterprise"==e.LicenseType&&(e.LicenseType="Redistribution"),"2a634606-51ae-4dc5-b370-e6675b5ffa35"==e.ProductId.toLowerCase()&&("Server"==e.LicenseType?e.LicenseType="Redistribution":"Site"==e.LicenseType&&"Server"!=e.OriginalLicenseType&&(e.LicenseType="Server"))})),t._products.forEach((function(e){e.Prices=[],n.ProductPrices.filter((function(t){return t.ProductId.toLowerCase()==e.ID.toLowerCase()&&t.Modules==e.Modules})).forEach((function(t){e.Prices.push({LicenseType:t.LicenseType,Price:t.Price,OriginalLicenseType:t.OriginalLicenseType})}))})),e()}})},loadUserLicenses(e,t){var n=this,a=e.data("products");0==a.length&&$.ajax({contentType:"application/json, charset=utf-8",url:"/Umbraco/Backoffice/UserLicensesEditor/License/Get?memberId="+t,dataType:"text",type:"GET",success:function(t){t=JSON.parse(n._stripSecurityPrefix(t));for(var i=!1,s=0;s<t.length;s++){var r=t[s];if("Evaluation"!=r.Type)for(var l=0;l<n._products.length;l++){var o=n._products[l];if(r.ProductId.toLowerCase()==o.ID.toLowerCase()&&r.Modules==o.Modules){for(var d=!1,c=0;c<a.length;c++)r.ProductId.toLowerCase()==a[c].ID.toLowerCase()&&r.Modules==a[c].Modules&&(d=!0);if(!d||0==a.length){var u=1==r.UpdateType?2:r.UpdateType;e.data("updateType",u),e.find(".update-types select").val(u),n.addProductToBundle(e,o);var p=new Date;if(p.setHours(0,0,0,0),2==u){if($("#ddlPurchaseType").attr("disabled",!1),r.SupportExpirationDate){var h=new Date(r.SupportExpirationDate);$("#ddlPurchaseType").val(h<p?"LateRenewal":"EarlyRenewal"),$("#datepickerstartDate input").val(r.SupportExpirationDate.split("T")[0])}if(r.ExpirationDate){var f=new Date(r.ExpirationDate);$("#ddlPurchaseType").val(f<p?"LateRenewal":"EarlyRenewal")}}else $("#ddlPurchaseType").attr("disabled",!0);i=!0}break}}}i&&$("#ddlPurchaseType").change()}})},getBundleBuyUrl:function(e,t,n,a){var i="/product/buybundle/?";return e.forEach((function(e,n){var a=e.Prices.filter((function(e){return e.LicenseType==t}))[0].OriginalLicenseType;i+=(n>0?"&":"")+"id["+n+"]="+e.ID+(e.Modules?"&module["+n+"]="+e.Modules:"")+"&licensetype["+n+"]="+a})),i+"&updateType="+n+(a?"&yearsTerm="+a:"")},createLink:function(e,t,n,a){var i=this,s={UpdateType:n,RenewalDiscount:parseFloat($("#earlyRenewalDiscount").val()),PurchaseType:$("#ddlPurchaseType").val(),Items:[]};e.forEach((function(e,n){var a=e.Prices.filter((function(e){return e.LicenseType==t}))[0];s.Items.push({ProductId:e.ID,Modules:e.Modules,Price:a.Price,Discount:e.Discount,InitialPurchaseDiscount:e.InitialPurchaseDiscount,ExtraInitialPurchaseDiscount:e.ExtraInitialPurchaseDiscount,ExtraInitialRenewalPurchaseDiscount:e.ExtraInitialRenewalPurchaseDiscount,LicenseType:a.OriginalLicenseType})})),$("#errorResellerRequired").hide(),!$("#cbReseller").is(":checked")||$("#selectedResellerMember").val()?!$("#selectedResellerMember").val()||$("#selectedMember").val()?($("#selectedMember").val()&&(s.MemberId=$("#selectedMember").val()),"New"==s.PurchaseType||s.MemberId?($("#selectedResellerMember").val()&&(s.ResellerId=$("#selectedResellerMember").val()),$("#txtResellerDiscount").length&&$("#cbReseller").is(":checked")&&(s.ResellerDiscount=$("#txtResellerDiscount").val()),$("#txtBundleDiscount").length&&(s.BundleDiscount=$("#txtBundleDiscount").val()),$("#txtExtraDiscount").length&&(s.ExtraDiscount=$("#txtExtraDiscount").val()),$("#cbAutomaticTax").length&&(s.AutomaticTax=$("#cbAutomaticTax").is(":checked")),$("#pnlStartDate").length&&(s.StartDate=$("#pnlStartDate input").val()),$("#ddlSupportYearsTerm").length&&(s.SupportYearsTerm=$("#ddlSupportYearsTerm").val()),$("#txtYearsDiscount").length&&(s.Years
1Discount=$("#txtYearsDiscount").val()),a.addClass("disabled"),$("#bundleSaving").show(),$.ajax({contentType:"application/json",url:"/Umbraco/Backoffice/bundles/bundle/add",data:JSON.stringify(s),dataType:"text",type:"POST",success:function(e){var t=JSON.parse(i._stripSecurityPrefix(e));i._bundleId=t.BundleId,$("#bundleSaving").hide(),a.removeClass("disabled"),$("#bundleTextarea").show().val(window.location.origin+"/products/bundle/"+t.BundleId),$("#bundleLink").show().attr("href",window.location.origin+"/products/bundle/"+t.BundleId),s.MemberId?($("#bundleCreateInvoiceBtn").show(),$("#bundleCreateEstimateBtn").show()):($("#bundleCreateInvoiceBtn").hide(),$("#bundleCreateEstimateBtn").hide())},error:function(e,t,n){$("#bundleTextarea").hide(),$("#bundleLink").hide(),$("#bundleCreateInvoiceBtn").hide(),$("#bundleCreateEstimateBtn").hide(),$("#bundleSaving").hide(),alert(e.status),alert(n)}})):alert("Purchase type 'Early Renewal' or 'Late Renewal' requires a customer to be selected.")):alert("You selected a reseller, so you should select a customer as well."):$("#errorResellerRequired").show()},getBundleUrlHash:function(e,t,n,a){var i="";return e.forEach((function(e,t){i+="&id["+t+"]="+e.ID+(e.Modules?"&module["+t+"]="+e.Modules:"")})),"bundleName="+t+"&updateType="+n+(a?"&yearsTerm="+a:"")+i},getBuyUrl:function(e,t,n,a){var i=e.Prices.filter((function(e){return e.LicenseType==t}))[0].OriginalLicenseType;return"/product/buy/?id="+e.ID+(e.Modules?"&modules="+e.Modules:"")+"&licensetype="+i+"&updateType="+n+(a?"&yearsTerm="+a:"")},getProductPrice:function(e,t,n,a,i,s,r,l,o,d){e=this.getBaseProductPrice(e,n,i,o,d,10);var c=a?e*(100-a)/100:t>0?e*s:e;return r&&(c=c*(100-r)/100),l&&(c=c*(100-l)/100),c},getBaseProductPrice:function(e,t,n,a,i,s){var r=!1;if(3==t||4==t){var l=1.45*e/2.2;switch(t){case 4:e=l;break;case 3:e=l/12*1.25}if($("#ddlSupportYearsTerm").length)(o=parseInt($("#ddlSupportYearsTerm").val()))>1&&4==t&&(e=this.getBaseProductPriceSubscriptionWithYears(e,o,parseInt($("#txtYearsDiscount").val())))}else{var o;if($("#ddlSupportYearsTerm").length)(o=parseInt($("#ddlSupportYearsTerm").val()))>1&&(r=!a,e=this.getBaseProductPricePerpetualWithYears(e,o,parseInt($("#txtYearsDiscount").val()),n,a));else i&&i>1&&2==t&&(r=!a,e=this.getBaseProductPricePerpetualWithYears(e,i,s,n,a));n&&!r&&(e=e*(100-n)/100)}return e},getBaseProductPriceSubscriptionWithYears:function(e,t,n){return e+e*(t-1)*(100-n)/100},getBaseProductPricePerpetualWithYears:function(e,t,n,a,i){return i?.45*e+e*(t-1)*.45*(100-n)/100:e*(a?(100-a)/100:1)+e*(t-1)*.45*(100-n)/100},getTotalPrice:function(e,t,n,a,i){var s=this,r=0,l=0,o=0;a=(100-s.getBundleDiscountValue(e,e.length))/100;return e.forEach((function(e,d){var c=e.Prices.filter((function(e){return e.LicenseType==t})),u=0!=c.length?c[0].Price:0;l+=s.getBaseProductPrice(u,n,null,!1,i,0),o+=s.getProductPrice(u,d,n,e.Discount,null,a,null,e.ExtraInitialRenewalPurchaseDiscount,!0,i),r+=s.getProductPrice(u,d,n,e.Discount,e.InitialPurchaseDiscount,a,e.ExtraInitialPurchaseDiscount,e.ExtraInitialRenewalPurchaseDiscount,!1,i)})),{Current:r,Original:l,EarlyRenewalTotal:o}},getHtmlPriceFormat:function(e,t){var n="";function a(e){return'<span class="price-sign"></span>'+e.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")}return t&&e<t&&(n+="<sup> "+a(t)+"</sup>"),n+=a(e),$('<span class="price"/>').html(n)},showListProducts:function(e,t,n,a){var i=this,s=e.find(".list-products-pnl > ul"),r=e.find('input[type="text"]');function l(r){s.empty(),r=r.filter((function(e){return!e.BundleDisable||i._editMode}));var l=(100-i.getBundleDiscountValue(t,t.length))/100;0!=r.length?r.forEach((function(r){var o=r.Prices.filter((function(e){return e.LicenseType==n})),d=0!=o.length?o[0].Price:0,c=-1;t.some((function(e,t){if(e.ID==r.ID&&e.Modules==r.Modules)return c=t,!0}));var u=c,p=t.length?i.getProductPrice(d,0==u?0:1,1,r.Discount,r.InitialPurchaseDiscount,l,r.ExtraInitialPurchaseDiscount,r.ExtraInitialRenewalPurchaseDiscount):d,h=$('<li class="row align-items-center'+(-1!=u?" disabled":"")+'"/>').appendTo(s);$('<div class="col-6"/>').appendTo(h).text(r.Name),$('<div class="col text-right"/>').appendTo(h).html("<span>From:</span>"),$('<div class="col text-right"/>').appendTo(h).html(i.getHtmlPriceFormat(p,d)),$('<button type="button" class="btn btn-violet" />').text("Add").appendTo($('<div class="col-auto offset-xl-1 px-0"/>').appendTo(h)).click((function(){e.parent().find("span").text("+"),e.addClass("d-none"),a(r)}))}
1)):$('<li class="row"/>').appendTo(s).html("Not Found.")}e.find(".search-pnl a.close").unbind().click((function(){return e.parent().find("span").text("+"),e.addClass("d-none"),!1})),r.val(""),r.unbind().on("input",(function(){var e=this;l(i._products.filter((function(t){return!$(e).val()||-1!=t.Name.toLowerCase().indexOf($(e).val().toLowerCase())})))})),l(this._products),e.removeClass("d-none")},GetHashValue:function(e){var t=this._parseUrlHash();return t.hasOwnProperty(e)?t[e]:null},_parseUrlHash:function(){var e={};if(location.hash.length>0)for(var t=decodeURI(location.hash).substr(1).split("&"),n=0,a=t.length;n<a;n++){var i=t[n].split("=");e[i[0]]=i[1]}return e},_compareProducts:function(e,t){var n=!0;return e.length==t.length&&(e.forEach((function(e,a){e.ID==t[a].ID&&e.Modules==t[a].Modules||!n||(n=!1)})),n)},_stripSecurityPrefix:function(e){return e.replace(/^\)\]\}',?\n?/,"")}}).init()},,,,,,,function(e,t,n){n(8),n(9),n(0),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17),n(18),n(19),n(20),n(21),e.exports=n(22)},function(e,t){var n={$domainsModal:null,$rowBtn:null,domains:null,init:function(){var e=this,t=$(".js-save-domains");this.$domainsModal=$("#DomainsModal"),t.length&&(t.click((function(){$("#domainsForm").valid()&&(t.attr("disabled",!0),$.ajax({contentType:"application/json, charset=utf-8",url:t.attr("data-submit-url"),type:"POST",data:JSON.stringify({LicenseId:e.$rowBtn.attr("data-license-id"),Domain:$("#domains").val()}),success:function(n){if(!n||!0!==n.success){var a="Validation error";if(n&&n.errors){var i=Object.keys(n.errors)[0];i&&n.errors[i].length>0&&(a=n.errors[i][0])}return alert(a),void t.attr("disabled",!1)}var s=e.$rowBtn.attr("data-license-id"),r=$(".js-update-domains-required").filter((function(){return $(this).find('.js-lnk-show-domains-modal[data-license-id="'+s+'"]').length>0}));$("#domains").val()?r.hide():r.show(),t.attr("disabled",!1),e.$rowBtn.attr("data-domains",$("#domains").val()),e.$rowBtn.parent().parent().find(".js-license-domains").text($("#domains").val()),e.$domainsModal.modal("hide")},error:function(e,t,n){alert(e.status),alert(n)}}))})),$(".js-btn-show-domains-modal").click((function(){e.showModal($(this))}
1)),$(".js-lnk-show-domains-modal").click((function(){var e=$(this).attr("data-license-id");return $('.js-btn-show-domains-modal[data-license-id="'+e+'"]').click(),!1})))},showModal:function(e){n.$rowBtn=e,$("#domains").val(n.$rowBtn.attr("data-domains")),n.$domainsModal.modal("show")}};n.init()},function(e,t){({productName:null,_licenseTypes:["Server","Redistribution","Sources"],init:function(){var e=this;$(".bundle-product-panel").length&&this.loadProducts((function(t){e.addHtmlBlocks(),$(".js-product-bundle").each((function(){var n=$(this);e.getButtonsDetails(n,n.attr("data-product-id")),n.find(".update-types select").on("change",(function(){e.calculatePrices(n,t)})),n.find(".select-year select").on("change",(function(){e.calculatePrices(n,t)})),e.calculatePrices(n,t)}))}))},calculatePrices:function(e,t){var n=this;n._licenseTypes.forEach((function(a){if(e.find('td[data-license-type="'+a+'"]:eq(0)').length){var i=0,s=0,r=parseInt(e.find(".update-types select").val());t.forEach((function(t){t.ProductId==e.attr("data-product-id")&&t.LicenseType==a&&(i=t.Price)}
1)),e.find("tr[data-child-product-id]").each((function(){var e=$(this);t.forEach((function(t){t.ProductId.toLocaleLowerCase()!=e.attr("data-child-product-id").toLocaleLowerCase()||t.Modules!=e.attr("data-modules")&&e.attr("data-modules")||t.LicenseType!=a||(s+=t.Price)}))}));var l=1.45*i/2.2,o=1.45*s/2.2,d=i,c=s;switch(r){case 4:(u=1)>1?(i=l+l*(u-1)*.9,s=o+o*(u-1)):(i=l,s=o),d=i,c=s;break;case 3:d=i=l/12*1.25,c=s=o/12*1.25;break;case 2:var u;(u=parseInt(e.find(".select-year select").val()))>1?(d=.45*i+.45*i*(u-1)*.9,c=.45*s+.45*s*(u-1),i+=.45*i*(u-1)*.9,s+=.45*s*(u-1)):(d=.45*i,c=.45*s)}if(s>i&&e.find(".js-discount").html(((s-i)/s*100).toFixed(0)+"%"),"Sources"==a&&2!=r)e.find('td[data-license-type="'+a+'"]:eq(0)').html("Perpetual only"),e.find('td[data-license-type="'+a+'"]:eq(1)').html("Perpetual only"),e.find('td[data-license-type="'+a+'"] .js-link').addClass("disabled"),e.find(".early-renewal > td:eq(1) a").replaceWith((function(){return'<span class="text-violet" href="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'"></span>'})),e.find(".early-renewal > td:eq(1) span").text("Renewal:");else{var p=2==r?parseInt(e.find(".select-year select").val()):0;e.find('td[data-license-type="'+a+'"]:eq(0)').html(n.getHtmlPriceFormat(i,s)),e.find('td[data-license-type="'+a+'"]:eq(1)').html(n.getHtmlPriceFormat(d,c)),e.find('td[data-license-type="'+a+'"] .js-link').removeClass("disabled").attr("href","/product/buy/?id="+e.attr("data-product-id")+"&licensetype="+a+"&updateType="+r+"&quantity=1"+(p?"&yearsTerm="+p:"")),e.find(".early-renewal > td:eq(1) span").replaceWith((function(){return'<a href="'+$(this).attr("href")+'" title="'+$(this).attr("title")+'"></a>'})),e.find(".early-renewal > td:eq(1) a").text("Early Renewal:")}n.updateYearsSelect(e.find(".select-year"),r)}}))},updateYearsSelect:function(e,t){e.length&&(2==t?(e.show(),e.attr("disabled",!1)):e.hide())},addHtmlBlocks:function(){$(".js-product-bundle .update-types .form-group").html('<select class="form-control w-auto" id="firstSelectId"><option value="2" selected>Perpetual License</option><option value="4">Subscription, Yearly</option><option value="3">Subscription, Monthly</option></select>'),$(".js-product-bundle .select-year").html('<select class="form-control w-auto"><option value="1" selected>1 year</option><option value="2">2 years (10% discount 2nd year)</option><option value="3">3 years (10% discount 2nd & 3d year)</option></select>')},loadProducts:function(e){$.ajax({contentType:"application/json, charset=utf-8",url:"/umbraco/api/productprices/getall",dataType:"json",type:"GET",success:function(t){t.ProductPrices.forEach((function(e){e.OriginalLicenseType=e.LicenseType,"Developer"==e.LicenseType?e.LicenseType="Server":"Enterprise"==e.LicenseType&&(e.LicenseType="Redistribution")})),e(t.ProductPrices)}})},getHtmlPriceFormat:function(e,t){var n="";function a(e){return'<span class="price-sign"></span>'+e.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")}return t&&e<t&&(n+="<sup> "+a(t)+"</sup>"),n+=a(e),$('<span class="price"/>').html(n)},getButtonsDetails:function(e,t){var n=this,a=e.find(".js-product-license-buttons");a.length&&$.ajax({url:"/umbraco/surface/license/getlicensebuttonsdetails",data:JSON.stringify({productId:t}),contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(e){n.addLicenseButtons(a,t,e.TrialLicenseButtonEnabled,e.ShowLicenseButtonEnabled)},error:function(e,i,s){401==e.status&&n.addLicenseButtons(a,t,!0,!1)}})},addLicenseButtons(e,t,n,a){var i=e.find(".skeleton-row");const s=$('<button class="btn btn-outline-violet px-5 mb-2 js-trial-button" disabled="disabled">Request New Trial License</button>');a?(e.prepend('<a href="/account/licenses" class="btn btn-outline-violet px-5 mb-2 mr-5">My Licenses</a>'),s.on("click",(function(e){e.preventDefault();var n=$(".js-request-trial-license-form");n.find("input[name='productId']").val(t),n.trigger("submit"),$(this).attr("disabled",!0)}))):s.on("click",(function(e){e.preventDefault(),window.location.href="/account/licenses/"})),n&&s.attr("disabled",!1),e.append(s),i.length&&i.remove()}}).init()},function(e,t){var n={carouselId:"#selectedCustomersCarousel",$carousel:$("#selectedCustomersCarousel .carousel-inner"),widthCoef:.6,mobileWidth:750,maxSlideItems:null,init:function(){var e=this,t=$(".all-logos .item img").each((function(e){$(this).attr("index",e)})),n=$(this.carouselId).attr("data-maxslideitems");n&&(this.maxSlideItems=parseInt(n)),t.length>0&&($(window).width()>e.mobileWidth?(e.setItemsNext(t,!0,0),$(e.carouselId+" .carousel-control-next").on("click",(function(){$(window).width()>e.mobileWidth&&e.setItemsNext(t,!1,e.getIndexImgNext()),$(e.carouselId).carousel("next")})),$(e.carouselId+" .carousel-control-prev").on("click",(function(){$(window).width()>e.mobileWidth&&e.setItemsPrev(t,e.getIndexImgPrev()),$(e.carouselId).carousel("prev")})),$(e.carouselId).on("slid.bs.carousel",(function(){$(window).width()>e.mobileWidth&&e.removeAllNotActive()}
1))):e.mobileSlider(t))},setItemsNext:function(e,t,n){var a=this,i=0,s=$(window).width()*a.widthCoef;t?a.appendSlide(!0):a.appendSlide(!1),n>e.length-1&&(n=0);for(var r=0,l=n;l<e.length;l++){i+=e.get(l).width;var o=!0;if(a.maxSlideItems&&r>=a.maxSlideItems&&(o=!1),!(i<=s&&e.get(l).width>0&&o))return void a.setPaddingOnSlide(i-e.get(l).width,s);a.appendItemSlide($(e.get(l)).clone()),l==e.length-1&&(l=-1),r++}},setItemsPrev:function(e,t){var n=this,a=0,i=$(window).width()*n.widthCoef;n.appendSlide(!1),t<0&&(t=e.length-1);for(var s=0,r=t;r>=0;r--){a+=e.get(r).width;var l=!0;if(n.maxSlideItems&&s>=n.maxSlideItems&&(l=!1),!(a<=i&&e.get(r).width>0&&l))return void n.setPaddingOnSlide(a-e.get(r).width,i);n.prependItemSlide($(e.get(r)).clone()),0==r&&(r=e.length),s++}},mobileSlider:function(e){var t=this;e.each((function(e){t.appendSlide(0==e),t.appendItemSlide($(this).clone())}))},appendItemSlide:function(e){$(this.$carousel).find(".inner-slide:last").append(e)},prependItemSlide:function(e){$(this.$carousel).find(".inner-slide:last").prepend(e)},appendSlide:function(e){e?$(this.$carousel).append('<div class="carousel-item active"> <div class="inner-slide d-flex justify-content-center"></div></div>'):$(this.$carousel).append('<div class="carousel-item"> <div class="inner-slide d-flex justify-content-center"></div></div>')},getIndexImgNext:function(){return parseInt($(this.$carousel).find(".carousel-item.active img:last").attr("index"))+1},getIndexImgPrev:function(){return parseInt($(this.$carousel).find(".carousel-item.active img:first").attr("index"))-1},removeAllSlides:function(){$(this.$carousel).find(".carousel-item").remove()},removeAllNotActive:function(){$(this.$carousel).find(".carousel-item:not(.active)").remove()},setPaddingOnSlide:function(e,t){var n=$(this.$carousel).find(".inner-slide:last").children("img"),a=n.length,i=(t/this.widthCoef*.8-e)/(2*a);n.each((function(e){$(this).css("padding-left",i+"px").css("padding-right",i+"px")}))}
1,setCarouselClass:function(){var e=$(".carousels .main-carousel .carousel-item"),t=$(".cookie-block");e.length&&t.length&&e.addClass("less-h")}};$(document).ready((function(){n.setCarouselClass(),$slickSliders=$(".js-slick-slider"),$slickSliders.length>0&&$slickSliders.each((function(e){let t=$(this);t.addClass("js-slick-slider-"+e);let n=t.find(".slider-item").length;$slickForSlider=$(`<div class="slider main-slider js-slick-for-slider-${e}"></div>`).insertBefore(t),$slickForSlider.append(t.html()),$slickForSlider.find("img").addClass("slider-main-img").removeClass("slider-img"),n<3&&t.addClass("slick-slider-with-2"),$slickForSlider.slick({slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,asNavFor:".js-slick-slider-"+e,responsive:[{breakpoint:768,settings:{arrows:!0,dots:!0,fade:!1,dotsClass:"main-slider-indicators",prevArrow:' <a class="main-slider-prev" href="javascript:void(0);" role="button" data-slide="prev">\n <i class="arrow left"></i>\n <span class="sr-only">Previous</span>\n </a>',nextArrow:'<a class="main-slider-next" href="javascript:void(0);" role="button" data-slide="next">\n <i class="arrow right"></i>\n <span class="sr-only">Next</span>\n </a>'}}]}),t.slick({slidesToShow:2,slidesToScroll:1,asNavFor:".js-slick-for-slider-"+e,dots:n>2,focusOnSelect:!0})}))})),$(window).on("load",(function(){n.init()})),$(window).on("resize",(function(){n.removeAllSlides(),n.init()}))}
1,function(e,t){({init:function(){var e=$(".js-drive-store-btn");e.length&&e.attr("href",this.getInstallerFileUrl())},getOsName:function(e){switch(!0){case e.indexOf("Win")>-1:return"windows";case e.indexOf("Mac")>-1:return"mac";case e.indexOf("Linux")>-1:return"linux";default:return"other"}},getInstallerFileUrl:function(){return"windows"===this.getOsName(navigator.userAgent)?"ms-windows-store://pdp/?ProductId=9nqb82r5hmnh":"mac"===this.getOsName(navigator.userAgent)?"https://apps.apple.com/us/app/webdav-drive/id6502366145":"https://apps.microsoft.com/detail/9nqb82r5hmnh"}}).init()},function(e,t){(function(){$(window).resize((function(){$("body").css("padding-bottom",$("footer").height())})),$("body").css("padding-bottom",$("footer").height())})()},function(e,t){({init:function(){var e=this,t=$(".navbar > .container-fluid"),n=$(".navbar-collapse"),a=$(".js-more-products-menu"),i=$(".navbar-brand"),s=$(".nav-item .dropdown-menu");e.manageNavLinks(t,n,a,i,s),$(window).resize((function(){e.manageNavLinks(t,n,a,i,s)}))},manageNavLinks:function(e,t,n,a,i){window.innerWidth>992&&e.length&&t.length&&n.length?(this.popNavLinkFromMoreProducts(e,t,n,a),this.pushNavLinkToMoreProducts(e,t,n,a),i.length&&this.manageDropdown(i)):window.innerWidth<992&&this.popNavLinkFromMoreProductsMobile(t,n)},pushNavLinkToMoreProducts:function(e,t,n,a){for(var i=0,s=this.getNavbarWidth(t,a),r=t.find(".js-nav-link").length;e.width()<s;){var l=t.find(".js-nav-link").not(".d-none").last();if(!l.length)break;if(n.find(".js-more-nav-link[data-index='"+l.data("index")+"']").removeClass("d-none"),l.addClass("d-none"),s=this.getNavbarWidth(t,a),++i>r)break}},popNavLinkFromMoreProducts:function(e,t,n,a){for(var i=0,s=this.getNavbarWidth(t,a),r=t.find(".js-nav-link").length;e.width()>s;){var l=t.find(".js-nav-link.d-none").first();if(!l.length)break;if(l.removeClass("d-none"),n.find(".js-more-nav-link[data-index='"+l.data("index")+"']").addClass("d-none"),s=this.getNavbarWidth(t,a),++i>r)break}},popNavLinkFromMoreProductsMobile:function(e,t){var n=e.find(".js-nav-link.d-none");n.length&&n.each((function(e){$(this).removeClass("d-none"),t.find(".js-more-nav-link[data-index='"+$(this).data("index")+"']").addClass("d-none")}))},getNavbarWidth:function(e,t){var n=e.width();return t.length&&(n+=t.width()),n},manageDropdown:function(e){e.each((function(){var e=window.innerWidth-($(this).offset().left+$(this).outerWidth());e<0?$(this).css("left",e+"px"):$(this).css("left","")}))}}).init()},function(e,t){var n={init:function(){this.linkInHeading("h3",".text-page-column"),this.linkInHeading("h2",".text-page-column")},linkInHeading:function(e,t){var n=$(t).children(e);me=this,n.each((function(){var e=$.trim(me.replaceId($(this).text()));"nav_seealso"!=e&&$(this).attr("id",e).addClass("heading-link").append('<a class="list-link d-inline" href="#'+e+'"></a>')}))},linkInHeadingWithRightMenu:function(e,t,n){$(t).children(e).each((function(){null!=$(this).attr("id")&&$(n).append('<li class="list-item"><a class="list-link" href="#'+$(this).attr("id")+'">'+this.innerText+"</a></li>")}))},replaceId:function(e){return"nav_"+e.replace(/([\&\.,#*+?^=!:${}()|\"\'\[\]\/\\])/g,"").replace(/\s/g,"").toLowerCase()}},a={init:function(){$(".right-menu").length>0&&(this.initializeMenu(),this.scrollToId())}
1,initializeMenu:function(){var e=$(".right-menu"),t=$(".text-page-column");(me=this,e.length>0)&&(t.children("h2").length>1?($(".right-menu-header").removeClass("d-xl-none"),$(".right-menu-header").addClass("d-xl-block"),n.linkInHeadingWithRightMenu("h2",".text-page-column",".right-menu")):$(".mobile-right-nav").addClass("d-none"))},scrollToId:function(){$("#right-menu a").click((function(){$("#right-menu a.active").removeClass("active"),$(this).addClass("active"),$("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-70+"px"},1e3)}))},activeRightWhileScroll:function(){var e=$(".right-menu"),t=$(".text-page-column");e.length>0&&t.children("h2").each((function(){$(window).scrollTop()-$(this).offset().top+150>0&&($("#right-menu a.active").removeClass("active"),$('#right-menu a[href = "#'+$(this).attr("id")+'"]').addClass("active"))}))}},i={init:function(){this.addScrollBar(),this.activeLink()},activeLink:function(){$activeLink=$("#left-menu a.active"),$activeLink.length>0&&$activeLink.hasClass("dropdown")&&$($activeLink.data("target")).collapse("show");$activeLink.parentsUntil("#left-menu").each((function(e,t){$(t).hasClass("collapse")&&($(t).removeAttr("data-parent"),$(t).collapse("show"))}))},addScrollBar:function(){if(window.innerWidth>992&&($leftMenu=$("#left-menu"),$rightMenu=$("#right-menu"),$footer=$("footer"),$leftMenu.length>0)){var e=window.innerHeight-$("header").height()-170;$leftMenu.css("height",e+"px"),$leftMenu.css("overflow-y","auto");var t=this;t.diffHeightFooterAndMenu($leftMenu,$footer,e),$rightMenu.length>0&&$rightMenu.children().length>0&&window.innerWidth>=1200&&($rightMenu.css("height",e+50+"px"),$rightMenu.css("overflow-y","auto"),t.diffHeightFooterAndMenu($rightMenu,$footer,e+50)),$(window).scroll((function(){t.diffHeightFooterAndMenu($leftMenu,$footer,e),$rightMenu.length>0&&$rightMenu.children().length>0&&window.innerWidth>=1200&&(t.diffHeightFooterAndMenu($rightMenu,$footer,e+50),a.activeRightWhileScroll())}))}},diffHeightFooterAndMenu:function(e,t,n){var a=e.offset().top+e.height()-t.offset().top,i=t.offset().top-e.offset().top;if(a>0&&i<n)e.css("height",i+"px");else{e.css("height",(n<i-a?n:i-a)+"px")}}};n.init(),a.init(),i.init()},function(e,t){new MutationObserver(()=>{document.body.classList.contains("modal-open")?document.documentElement.style.overflowY="hidden":document.documentElement.style.overflowY=""}).observe(document.body,{attributes:!0,attributeFilter:["class"]})},function(e,t,n){"use strict";!function(){var e=document.querySelector(".navbar"),t=!1,n=!!e&&e.classList.contains("navbar-togglable");function a(){t&&n&&(e.classList.remove("navbar-light"),e.classList.remove("bg-white"),e.classList.remove("border-bottom"),e.classList.add("navbar-dark"),e.style.display="none",e.offsetHeight,e.style.display="block",t=!1)}function i(i){var s=window.pageYOffset;s>0&&!t?!t&&n&&(e.classList.remove("navbar-dark"),e.classList.add("navbar-light"),e.classList.add("bg-white"),e.classList.add("border-bottom"),t=!0):(0==s||s<0&&t)&&a()}e&&n&&"load scroll".split(" ").forEach((function(e){window.addEventListener(e,(function(e){e.type;i()}))}))}()},function(e,t){$(document).ready((function(){const e=$(".js-display-on-windows"),t=$(".js-display-on-mac"),n=navigator.platform.toLowerCase().includes("win"),a=navigator.platform.toLowerCase().includes("mac");n?(e.show(),t.hide()):a?(t.show(),e.hide()):(e.hide(),t.hide())}))},function(e,t){$((function(){$(".glyphicon-info-sign").attr("tabindex","-1"),$('[data-toggle="popover"].glyphicon-info-sign').popover({container:"body",html:!0,placement:"bottom",trigger:"focus hover",content:function(){var e=$
1(this).attr("data-content-class"),t=$("<p></p>");return e&&(t=$("."+e)),$(this).focus(),t.html()}}),$("body").on("mousedown",".popover",(function(e){e.preventDefault()}))}))},function(e,t){document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector(".js-request-trial-license-form");let t,n;e&&(t=e.querySelector(".license-dropdown"),n=e.querySelector(".js-request-trial-validation-error"),t&&n&&e.addEventListener("submit",(function(e){t.value?n.classList.add("d-none"):(e.preventDefault(),n.classList.remove("d-none"))})))}))},function(e,t){({$panel:null,init:function(){!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"==document.location.protocol?"https:":"http:")+"//www.google.com/cse/cse.js?cx=018426557149706350250:kalumpreopk";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),this.displayInputSearch(),this.initOfInsideElements()},initOfInsideElements:function(){$(".navbar-search-panel td.gsc-input").hide();var e=setInterval((function(){$("input.gsc-input")[0]&&($("input.gsc-input").prop("placeholder","Search").prop("type","search"),$(".desktop-search input.gsc-input").prop("type","text"),$(".search-result input.gsc-input").keyup((function(e){13===e.keyCode&&$(e.target).blur()})),clearInterval(e))}),200)},displayInputSearch:function(){this.$panel=$(".navbar-search-panel");var e=$(".navbar-search-panel"),t=e.parent().parent(),n=t.parent(),a=(this.$panel.find(".navbar-search-panel .desktop-search"),$(".search-btn")),i=this;a.click((function(){i.hideOrShowItems(e,t,n)}))},hideOrShowItems:function(e,t,n){var a=this;$(document).keyup((function(i){"Escape"===i.key&&a.showItems(e,t,n)})),$("#___gcse_0",$(e)).focusout((function(){$("input",e).val(""),a.showItems(e,t,n)})),$(e).find("td.gsc-input").is(":visible")?a.showItems(e,t,n):a.hideItems(e,t,n)},hideItems:function(e,t,n){$(e).find("td.gsc-input").is(":visible")||window.innerWidth>=992&&($(e).find("td.gsc-input").show(),$("input",$(e)).focus(),$(n).children("ul").eq(0).hide(),$(t).children("li").eq(0).hide(),$(t).children("li").eq(1).hide(),$(e).parent().addClass("w-100"),$(e).parent().parent().addClass("w-100"),$(e).css("border-bottom","1px solid #fff"))},showItems:function(e,t,n){$(e).find("td.gsc-input").is(":visible")&&window.innerWidth>=992&&($(e).find("td.gsc-input").hide(),$(n).children("ul").eq(0).show(),$(t).children("li").eq(0).show(),$(t).children("li").eq(1).show(),$(e).parent().removeClass("w-100"),$(e).parent().parent().removeClass("w-100"),$(e).css("border","0"))}}).init()}
1,function(e,t){var n=function(){var e=$(".js-shared-account-form");if(e.length){var t=$(".js-download-shared-account"),n=e.find(".js-error-message"),i=e.find(".js-message"),s=e.find("button");e.submit((function(t){t.preventDefault(),n.hide(),i.hide(),e.valid()&&(s.attr("disabled",!0),$.ajax({url:"/membercustomapi/addsharedmember",data:JSON.stringify({memberEmail:e.find("input").val(),role:parseInt(e.find("select option:selected").val())}),contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(t){t.Succeeded?(e.find("input").val(""),e.find("select option:first").attr("selected","selected"),i.show(),a.reload()):n.text(t.ErrorMessage).show(),s.attr("disabled",!1)}}))})),$(".js-invite").length&&$(".js-invite").click((function(){$(this).hide(),t.show()}))}},a={$table:null,init:function(){this.$table=$(".js-shared-accounts"),this._buildTable()},reload:function(){this._buildTable()},_buildTable:function(){var e=this;if(this.$table.length){var t=e.$table.find("tbody");t.html('<tr><td colspan="3">Loading...</td></tr>'),$.ajax({url:"/membercustomapi/getsharedmembers",contentType:"application/json; charset=utf-8",dataType:"json",type:"GET",success:function(n){if(n&&n.length){t.empty();for(var a=0;a<n.length;a++){var i=n[a].Id,s=$("<tr/>");if($("<td>"+n[a].MemberEmail+"</td>").appendTo(s),$("<td>"+n[a].Role+"</td>").appendTo(s),n[a].AcceptedInviteDate)$("<td>"+e._formatDate(e._parseDate(n[a].AcceptedInviteDate))+"</td>").appendTo(s);else{var r=$("<td> Waiting for user confirmation </td>"),l=$('<a href="#">Resend</a>');$('<span class="green"/>
1').appendTo(r),l.appendTo(r),l.click((function(){var e=$(this),t=e.parent().find(".green");return e.hide(),t.text("Sending..."),$.ajax({url:"/membercustomapi/resendinvite?id="+i,contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(){t.text("Invite was sent successfully.")}}),!1})),r.appendTo(s)}$('<button type="button" title="Remove user / Withdraw invite"></button>').appendTo($('<td class="action-pnl"></td>').appendTo(s)).click((function(){var t=$(this);confirm("Are you sure want to delete this email?")&&(t.attr("disabled",!0),$.ajax({url:"/membercustomapi/removesharedmember?id="+i,contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(n){e.reload(),t.attr("disabled",!1)}}))})),s.appendTo(t)}}else t.html('<tr><td colspan="3">No records.</td></tr>')}})}},_parseDate:function(e){var t=e.replace(/\/Date\((-?\d+)\)\//,"$1");return new Date(parseInt(t))},_formatDate:function(e){var t=new Date(e),n=""+(t.getMonth()+1),a=""+t.getDate(),i=t.getFullYear();return n.length<2&&(n="0"+n),a.length<2&&(a="0"+a),[i,n,a].join("-")}},i={init:function(){var e=this,t=$(".js-accept-invite");if(t.length){var n=t.children().first(),a=t.children().last();a.find("button").click((function(){var t=$(this);t.attr("disabled",!0),$.ajax({url:"/membercustomapi/acceptsharedmember?id="+e._getQueryParameter("id"),contentType:"application/json; charset=utf-8",dataType:"json",type:"POST",success:function(e){n.show(),a.hide(),t.attr("disabled",!1)}})}))}},_getQueryParameter:function(e,t){t||(t=location.href),e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null==n?null:n[1]}};n(),a.init(),i.init()},function(e,t){({init:function(){this.addStrongWarn()}
1,addStrongWarn:function(){var e=$("span.warn");e.length>0&&e.each((function(){$('span:contains("Important!")',this).length>0&&($('span:contains("Important!")',this).css("display","none"),$(this).addClass("strong-warn"))}))}}).init()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.