Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ (a=>{a(".imagify-badge").addClass("imagify-badge-checked"),a(".imagify-toggle-label").eq(0).css("color","#c8ced5"),a(".imagify-toggle-label").eq(1).css("color","#3b3f4a"),a("#imagify-toggle-plan").change(function(){var i=a(this).is(":checked");a(".imagify-toggle-label").eq(0).css("color",i?"#c8ced5":"#3b3f4a"),a(".imagify-toggle-label").eq(1).css("color",i?"#3b3f4a":"#c8ced5"),a(".imagify-badge").toggleClass("imagify-badge-checked",i),a("#imagify_all_plan_view").toggleClass("imagify-year-selected",i).toggleClass("imagify-month-selected",!i),a(".imagify-arrow-container img").eq(0).toggle(!i),a(".imagify-arrow-container img").eq(1).toggle(i)})})(jQuery,(document,window)),((g,i,b)=>{var w={};g("#imagify-pricing-modal").length&&(w={$modal:g("#imagify-pricing-modal"),$plansView:g("#imagify-plans-selection-view"),$paymentView:g("#imagify-payment-process-view").hide(),$successView:g("#imagify-success-view").hide(),speedFadeIn:300,getHtmlPrice:function(i,a){var e,n;return a=a||null,"object"!=typeof i?((i=(i+="").split("."))[1]=1===i[1].length?i[1]+"0":(""+i[1]).substring(0,2),n=''+i[0]+" ",n+('.'+i[1])+""):(e=i.monthly+"",i=i.yearly+"",e="0"===e?["0","00"]:e.split("."),i="0"===i?["0","00"]:i.split("."),(n=(n=(n=(n='')+''+e[0]+" ")+'.'+(1===e[1].length?e[1]+"0":(""+e[1]).substring(0,2))+" ")+''+i[0]+" ")+'.'+(1===i[1].length?i[1]+"0":(""+i[1]).substring(0,2))+"")},getHtmlDiscountPrice:function(i,a){var e="";return a=a||null,e="object"==typeof i?(e=(e=(e+='$')+''+(i.monthly+"")+"")+'')+''+(i.yearly+"")+"":(e+='$')+''+(i+="")+""},populateOffer:function(i,a,e,n){var t,s=b.imagify_discount_datas,o=a.additional_gb,l=a.annual_cost,m=a.id,c=a.label,r=a.monthly_cost,f=a.quota,g=a.cost,a=a.label.replace(/_.*$/,""),y=-1===f?"Unlimited":1e3<=f?f/1e3+" GB":f+" MB",d="monthly"===e?{monthly:r,yearly:Math.round(l/12*100)/100}:g,p=d,u=[],h="",v="",u=w.getPromoAppliesTo(s);return s.is_active&&"percentage"===s.coupon_type&&"monthly"===e&&0

'+imagifyPricingModal.labels.errorPriceAPI+"

");else{if((b.imagify_discount_datas=a).is_active){if(a.applies_to instanceof Array){for(var m=[],c=[],r=0;rBest Value!')},100)),i.parent().find(".imagify-offer-line")&&i.parent().find(".imagify-offer-line").remove(),i.before(l)}w.$modal.find(".imagify-modal-loader").fadeOut(300),w.$modal.removeClass("imagify-modal-loading")}})})},getPeriod:function(){return g("#imagify_all_plan_view").hasClass("imagify-month-selected")?"monthly":"yearly"},switchToView:function(i,a){var e=i.attr("id"),n=w.$modal.children(".imagify-modal-content");i.siblings(".imagify-modal-views").hide().attr("aria-hidden","true"),a&&a.tab&&i.find('a[href="#'+a.tab+'"]').trigger("click.imagify"),"imagify-payment-process-view"===e?n.addClass("imagify-iframe-viewing"):n.removeClass("imagify-iframe-viewing"),"imagify-success-view"===e?(n.addClass("imagify-success-viewing"),w.$modal.attr("aria-labelledby","imagify-success-view")):(n.removeClass("imagify-success-viewing"),w.$modal.removeAttr("aria-labelledby")),i.fadeIn(w.speedFadeIn).attr("aria-hidden","false")},iframeSetSrc:function(i){var a=g("#imagify-payment-iframe"),e=a.attr("src"),n=a.data("src");"string"==typeof i&&""!==e?(e=e.replace("monthly"===i?"yearly":"monthly",i),a.attr("src",e)):"object"==typeof i&&(i.period?(e="yearly"===i.period?i.plan_id:0,n=n+0+"/"+("monthly"===i.period?i.plan_id:0)+"/"+e+"/none/",console.log(n),i=a.remove().attr("src",n),w.$paymentView.html(i)):b.imagify.info("No period defined"))},paymentClose:function(){g(".imagify-iframe-viewing .close-btn").trigger("click.imagify"),g(".imagify-iframe-viewing").removeClass("imagify-iframe-viewing")},paymentBack:function(){w.switchToView(w.$plansView)},paymentSuccess:function(){w.switchToView(w.$successView)},checkPluginMessage:function(i){var a=i.origin||i.originalEvent.origin;if(imagifyPricingModal.imagify_app_domain===a)switch(i.data){case"cancel":w.paymentClose();break;case"back":w.paymentBack();break;case"success":w.paymentSuccess()}},getPromoAppliesTo:function(i){var a=[];if(i.applies_to instanceof Array){for(var e=[],n=0;n