1var _typePlan="yearly";let discount=0,costFinal=0,costNoDiscount=0,escalaContactsStarter=[30,15,15,15,15,10,10,10,10,10,7,7,7,7,7,5,5,5,5,5,5,5,5,5,5],new_escalaContactsPro=[{range:[1,1],price:97},{range:[2,3],price:35},{range:[4,5],price:25},{range:[6,10],price:30},{range:[11,15],price:30},{range:[16,20],price:30},{range:[21,25],price:30},{range:[26,30],price:30},{range:[31,"infinite"],price:20}];function formula_infinite(t){t-=31;return t/=5,t=Math.floor(t),t*=20}function starter_convertUsers(t){return 1<=t._usersField?{starter:25*(t._usersField-1),pro:25*(t._usersField-1)}:{starter:0,pro:0}}function starter_calculateFinal(t){var e=starter_converContacts(t._contactsField),t=starter_convertUsers(t),t=12*(e=trimDecimals(e.starter+t.starter));jQuery(".pricingCard.starter .pricingDefaultCalcView .price .discountCost").html("<span>USD "+e+" <small>/ mes</small> </span>"),jQuery(".pricingCard.starter .pricingDefaultCalcView .price .cost .ahorro ").html("Pago total de <strong>USD "+t+" / año</strong>")}function starter_getContactScale(e){var r={starter:0,pro:0};for(let t=1;t<=e;t++){var a=calculate_contact_per_steps(t);r.pro=a}if(e<=25)for(let t=0;t<e;t++)r.starter=r.starter+escalaContactsStarter[t];if(26<=e){for(let t=0;t<25;t++)r.starter=r.starter+escalaContactsStarter[t];r.starter=r.starter+4*(e-25)}return r}function starter_getContactScale(e){var r={starter:0,pro:0};for(let t=1;t<=e;t++){var a=calculate_contact_per_steps(t);r.pro=a}if(e<=25)for(let t=0;t<e;t++)r.starter=r.starter+escalaContactsStarter[t];if(26<=e){for(let t=0;t<25;t++)r.starter=r.starter+escalaContactsStarter[t];r.starter=r.starter+4*(e-25)}return r}function starter_converContacts(t){t/=1e3,t=Math.trunc(t);return{starter:starter_getContactScale(t).starter,pro:starter_getContactScale(t).pro}}function calculate_contact_per_steps(e){let r=0;var a=new_escalaContactsPro.findIndex(t=>e>=t.range[0]&&e<=t.range[1]||e>=t.range[0]&&"infinite"===t.range[1]?t:void 0);if("infinite"!=new_escalaContactsPro[a].range[1])for(let t=0;t<=a;t++)r+=new_escalaContactsPro[t].price;else{for(let t=0;t<=a;t++)r+=new_escalaContactsPro[t].price;r+=formula_infinite(e)}return r}function getContactScale(e){var r={pro:0};for(let t=1;t<=e;t++){var a=calculate_contact_per_steps(t);r.pro=a}return r}function converContacts(t){t/=1e3;return{pro:getContactScale(Math.trunc(t)).pro}}function convertUsers(t){return 1<=t._usersField?{pro:25*(t._usersField-1)}:{pro:0}}function selectorSlizePlan(t){"monthly"==(_typePlan=t)&&(jQuery("[yearly_mode]").addClass("hideMode"),jQuery("[monthly_mode]").removeClass("hideMode")),"yearly"==_typePlan&&(jQuery("[monthly_mode]").addClass("hideMode"),jQuery("[yearly_mode]").removeClass("hideMode")),jQuery("form#formCalcGeneral_PRO").click()}function trimDecimals(t){return Number(Number(t).toFixed())==+Number(t)?Number(Number(t).toFixed()):t}function calculateFinal(r){var a=converContacts(r._contactsField),n=convertUsers(r),r=0+("Si"===r._iaField?40:0)+("Si"===r._omnicanalField?40:0)+("Si"===r._omnicanalField?25*r._whatsappField:0)+("Si"===r._omnicanalField?25*r._facebookField:0);if("monthly"==_typePlan){let t=null;costFinal=a.pro+n.pro+r,discount=0,t=trimDecimals(t=(t=12*costFinal).toFixed(2)),jQuery(".pricingCard.pro .pricingDefaultCalcView .price .cost .ahorro ").html("Pago total de USD "+t+" / año")}if("yearly"==_typePlan){let t=null;let e=null;costFinal=a.pro+n.pro+r,t=12*costFinal,e=t-.2*t,discount=.2*costFinal,costNoDiscount=costFinal,costFinal-=discount,discount=discount.toFixed(2),costNoDiscount=costNoDiscount.toFixed(2),costFinal=costFinal.toFixed(2),t=t.toFixed(2),e=e.toFixed(2),costNoDiscount=trimDecimals(costNoDiscount),discount=trimDecimals(discount),t=trimDecimals(t),e=trimDecimals(e),jQuery(".pricingCard.pro .pricingDefaultCalcView .price .cost .ahorro ").html(" Pago total de USD <span>"+t+"</span> - USD "+e+" / año")}costFinal=trimDecimals(costFinal),jQuery(".pricingCard.pro .pricingDefaultCalcView .price .discountCost").html("<span>USD "+costFinal+" <small>/ mes</small> </span>")}function openCompare(){var t=jQuery("li.itemParent");jQuery.each(t,function(t,e){"false"===jQuery("button",e).attr("aria-expanded")&&jQuery("button",e).click()})}var isSticky=!1;function rangeTableSticky(t,e,r){return e<=t&&t<=r}function sticky_headerTable(){var t=jQuery(window).scrollTop(),e=jQuery("#table-header-anchor1").offset().top-150,r=jQuery("#table-header-anchor2").offset().top,a=jQuery(".table-header");rangeTableSticky(t,100+e,r)&&a.addClass("stick"),(t<e||r<t+150)&&a.removeClass("stick")}function adjustCalculatorHeight(){jQuery(window).width()<=768?"Si"===jQuery("#omnicanalField").val()?jQuery(".calculator").css("height","415px"):jQuery(".calculator").css("height","280px"):"Si"===jQuery("#omnicanalField").val()?jQuery(".calculator").css("height","445px"):jQuery(".calculator").css("height","330px")}var PRICING_CONTACT_CONSULT_THRESHOLD=1e5;function parsePricingContactsValue(t){t=parseInt(String(null==t?"":t).replace(/[^\d]/g,""),10);return isNaN(t)?0:t}function syncPricingCardConsultThreshold(t){var e;t&&t.length&&(e=t.find('form input.contactsField[name="_contactsField"]').first()).length&&(e=parsePricingContactsValue(e.val())>=PRICING_CONTACT_CONSULT_THRESHOLD,t.toggleClass("is-over-contact-threshold",e),t.find(".pricingDefaultCalcView").attr("aria-hidden",e?"true":"false"),t.find(".pricingConsultThresholdView").attr("aria-hidden",e?"false":"true"),adjustCalculatorHeight())}function initPricingContactConsultThreshold(){jQuery("form#formCalcGeneral_STARTER, form#formCalcGeneral_PRO").each(function(){var t=jQuery(this),e=t.closest(".pricingCard");e.is(".starter, .pro")&&(t.find('input.contactsField[name="_contactsField"]').on("input change",function(){syncPricingCardConsultThreshold(e)}),syncPricingCardConsultThreshold(e))})}jQuery(document).ready(function(){jQuery(window).on("scroll",sticky_headerTable),selectorSlizePlan(_typePlan),jQuery(".field.number").each(function(){var r=jQuery(this),a=r.find('input[type="number"]'),t=r.find(".quantity-up"),e=r.find(".quantity-down"),n=a.attr("min"),i=a.attr("max");t.click(function(){var t=parseFloat(a.val()),e=a.attr("step");t=i<=t?t:t+Number(e),r.find("input").val(t),r.find("input").trigger("change")}),e.click(function(){var t=parseFloat(a.val()),e=a.attr("step");t=t<=n?t:t-Number(e),r.find("input").val(t),r.find("input").trigger("change")}),a.on("change",function(){"_contactsField"===a.attr("name")&&a.val()<1e3&&(alert("El número de contactos de marketing no puede ser inferior a 1000. Se ha restablecido a 1000."),a.val(1e3))})}),jQuery(".field.select").each(function(){var t=jQuery(this),e=(t.find("select"),t.find(".quantity-up")),t=t.find(".quantity-down");e.click(function(){}),t.click(function(){})}),jQuery("form#formCalcGeneral_PRO").on("input change click",async function(t){calculateFinal(calculate=_serializeFormToObject(t.currentTarget))}),jQuery("form#formCalcGeneral_STARTER").on("input change",async function(t){calculate=_serializeFormToObject(t.currentTarget),console.log("calculos starter",calculate),starter_calculateFinal(calculate)}),jQuery("#omnicanalField").on("change",function(){"Si"===jQuery(this).val()?(jQuery(".omnicanal-options").show(),jQuery(".omnicanal-options input").val(0),jQuery(".omniInfo2").show()):(jQuery(".omnicanal-options").hide(),jQuery(".omnicanal-options input").val(0),jQuery(".omniInfo2").hide()),jQuery("form#formCalcGeneral_PRO").trigger("change"),adjustCalculatorHeight()}),jQuery(".omnicanal-options input").on("input change",function(){jQuery("form#formCalcGeneral_PRO").trigger("change")}),initPricingContactConsultThreshold(),adjustCalculatorHeight()});
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.