vendor: 4,358 bytes, lines 1-2
1/*! For license information please see legacy-forward.min.js.LICENSE.txt */ 2(self.webpackChunkui_toolkit=self.webpackChunkui_toolkit||[]).push([["legacy-forward"],{32394:function(e,t,r){function a(e){return a="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},a(e)}function n(){"use strict";n=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,a){var n=t&&t.prototype instanceof b?t:b,i=Object.create(n.prototype),s=new U(a||[]);return o(i,"_invoke",{value:O(e,r,s)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",h="suspendedYield",g="executing",v="completed",y={};function b(){}function x(){}function _(){}var w={};d(w,c,(function(){return this}));var C=Object.getPrototypeOf,A=C&&C(C(D([])));A&&A!==r&&i.call(A,c)&&(w=A);var S=_.prototype=b.prototype=Object.create(w);function j(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(n,o,s,c){var u=m(e[n],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==a(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var n;o(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(i,i):i()}})}function O(t,r,a){var n=p;return function(i,o){if(n===g)throw Error("Generator is already running");if(n===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var c=T(s,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===p)throw n=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=g;var u=m(t,r,a);if("normal"===u.type){if(n=a.done?v:h,u.arg===y)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(n=v,a.method="throw",a.arg=u.arg)}}}function T(t,r){var a=r.method,n=t.iterator[a];if(n===e)return r.delegate=null,"throw"===a&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var i=m(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(i.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(a(t)+" is not iterable")}return x.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:x,configurable:!0}),x.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},j(L.prototype),d(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,a,n,i){void 0===i&&(i=Prom
2ise);var o=new L(f(e,r,a,n),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},j(S),d(S,l,"Generator"),d(S,c,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,U.prototype={constructor:U,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(a,n){return s.type="throw",s.arg=t,r.next=a,n&&(r.method="next",r.arg=e),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;k(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:D(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(a,n)}var o=r(41669),s=r(45867);o((function(){var e=o("#legacy-forward-calculator"),t=e.data("legacy-forward-api"),r=e.data("product-code"),a=e.data("quote-type"),c=o("#step1"),u=o("#step2"),l=o("#calculate-btn"),d=o("#pdf-btn"),f=o("#death_benefit_boxes"),m=o("#premium_amount_boxes"),p=o("#taxable_benefit_boxes"),h=o("#tax_deferred_benefit_boxes"),g=o("#step1_premium_amount_input"),v=o("#step1_death_benefit_input"),y=o("#name"),b=o('input[name="gender"]'),x=o('input[name="tobacco_user"]'),_=o("#age"),w=o('input[name="estimate_type"]'),C=o("#premium_amount"),A=o("#death_benefit"),S=o("#premium_amount"),j=o("#death_benefit"),L=o("#taxable_rate_of_return"),O=o("#taxable_tax_rate"),T=o("#tax_deferred_rate_of_return"),P=o("#tax_deferred_tax_rate"),k=o("#step1_death_benefit_output"),U=o("#step1_death_benefit_future_value_output"),D=o("#step1_premium_amount_output"),E=o("#step1_premium_future_value_output"),F=o("#taxable_benefit_match"),R=o("#taxable_cash_value"),B=o("#tax_deferred_benefit_match"),N=o("#tax_deferred_cash_value"),I={death_benefit:"Death Benefit",premium_amount:"Premium Amount"},V=function(){switch(r){case"IFSBLS":case"LFWSUL":return 5;case"ECWLSP":return 10}}(),q={name:"",gender:"M",tobaccoUser:!1,currentAge:0,deathEstimateType:I.death_benefit,premiumAmount:0,deathBenefit:0},J={taxable:{interest_rate:1,tax_rate:22},tax_deferred:{interest_rate:2,tax_rate:22}},M=!1,G=!1,W=!1,Y={age:!1,premium:!1,benefit:!1};function z(e,t,r,a){e.rules("remove","apiunavailable"),e.rules("remove","range"),e.rules("add",{range:[t,r],messages:{range:o.validator.format(a,t,r)}})}function H(e){e.rules("remove","range"),e.rules("remove","apiunavailable"),e.rules("add",{apiunavailable:!0}),e.addClass("invalid"),e.parent().addClass("ws-material-group--theme_error"),e.valid()}function K(e){return o('input[name="'+e+'"]:checked').val()}function Q(){var e;q.name=y.val(),q.gender="M"===K("gender")?"M":"F",q.tobaccoUser="yes"===(e=K("tobacco_user"))||"true"===e,q.currentAge=parseInt(_.val()),q.deathEstimateType=K("estimate_type"),q.premiumAmount=parseInt(C.val()),q.deathBenefit=parseInt(A.val()),M=!1;var a=[];switch(Z(),q.deathEstimateType){case Object.keys(I).find((function(e){return I[e]===I.death_benefit})):g.removeClass("d-none"),v.addClass("d-none"),C.prop("required",!0),A.prop("required",!1),f.removeClass("d-none"),m.addClass("d-none"),q.
2name.length>0&&null!=q.gender&&null!=q.tobaccoUser&&q.currentAge>=0&&q.premiumAmount>0&&(M=!0);break;case Object.keys(I).find((function(e){return I[e]===I.premium_amount})):g.addClass("d-none"),v.removeClass("d-none"),C.prop("required",!1),A.prop("required",!0),f.addClass("d-none"),m.removeClass("d-none"),q.name.length>0&&null!=q.gender&&null!=q.tobaccoUser&&q.currentAge>=0&&q.deathBenefit>0&&(M=!0)}return null==q.currentAge||isNaN(q.currentAge)||a.push(fetch("".concat(t,"/AgeLimits"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({productCode:r,gender:q.gender,tobaccoUser:q.tobaccoUser})}).then((function(e){if(200!=e.status)throw new Error("Error validating age value. Please try again.");return e.json()})).then((function(e){z(_,e.minAge,e.maxAge,"Age must be between {0} and {1}."),_.valid()})).catch((function(e){_.removeAttr("data-val-range-min").removeAttr("data-val-range-max"),H(_)}))),null==q.premiumAmount||isNaN(q.premiumAmount)||a.push(fetch("".concat(t,"/PremiumLimits"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({productCode:r,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge})}).then((function(e){if(200!==e.status)throw new Error("Error validating premium value. Please try again.");return e.json()})).then((function(e){z(C,e.minPremium,e.maxPremium,"Premium Amount must be between {0} and {1}."),C.valid()})).catch((function(e){C.removeAttr("data-val-range-min").removeAttr("data-val-range-max"),H(C)}))),null==q.deathBenefit||isNaN(q.deathBenefit)||a.push(fetch("".concat(t,"/BenefitLimits"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({productCode:r,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge})}).then((function(e){if(200!==e.status)throw new Error("Error validating death benefit value. Please try again.");return e.json()})).then((function(e){z(A,e.minBenefit,e.maxBenefit,"Death Benefit must be between {0} and {1}."),A.valid()})).catch((function(e){A.removeAttr("data-val-range-min").removeAttr("data-val-range-max"),H(A)}))),Promise.all(a)}function X(){if(!M)return!1;switch(q.deathEstimateType){case Object.keys(I).find((function(e){return I[e]===I.death_benefit})):fetch("".concat(t,"/CalculateBenefit"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,premium:q.premiumAmount,taxableAsset:{interestRate:5,taxRate:19,years:V},taxDeferredAsset:{interestRate:5,taxRate:19,years:V}})}).then((function(e){return e.json()})).then((function(e){k.text(e.deathBenefit.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),U.text(e.futureCashValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),f.addClass("ws-lf__step-results--active"),f[0].scrollIntoView({behavior:"smooth",block:"center"})})).catch((function(e){return alert("Something went wrong. Please try again."),C.addClass("invalid"),M=!1,e}));break;case Object.keys(I).find((function(e){return I[e]===I.premium_amount})):fetch("".concat(t,"/CalculatePremium"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,deathBenefit:q.deathBenefit,taxableAsset:{interestRate:5,taxRate:19,years:V},taxDeferredAsset:{interestRate:5,taxRate:19,years:V}})}).then((function(e){return e.json()})).then((function(e){A.removeClass("invalid"),D&&D.text(e.premium.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),E&&E.text(e.futureCashValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),m.addClass("ws-lf__step-results--active"),m[0].scrollIntoView({behavior:"smooth",block:"center"})})).catch((function(e){return alert("Something went wrong. Please try again."),A.addClass("invalid"),M=!1,e}))}}function Z(){var e=!0;return _.val().length<1?Y.age&&(_.addClass("invalid"),_.parent().addClass("ws-material-group--theme_error"),e=!1):(_.removeClass("invalid"),_.parent().removeClass("ws-material-group--theme_error")),g.hasClass("d-none")||(S.val().length<1?Y.premium&&(S.addClass("invalid"),S.parent().addClass("ws-material-group--theme_error"),e=!1):(S.removeClass("invalid"),S.parent().removeClass("ws-material-group--theme_error"))),v.hasClass("d-none")||(j.val().length<1?Y.benefit&&(j.addClass("invalid"),j.parent().addClass("ws-material-group--theme_error"),e=!1):(j.removeClass("invalid"),j.parent().removeClass("ws-material-group--theme_error"))),e}function $(){var e;return e=n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Q().then((function(){X()}));case 1:case"end":return e.stop()}}),e)})),$=function(){var t=this,r=arguments;return new Promise((function(a,n){var o=e.apply(t,r);function s(e){i(o,a,n,s,c,"next",e)}function c(e){i(o,a,n,s,c,"throw",e)}s(void 0)}))},$.apply(this,arguments)}function ee(){var e=!0;return L.val()<=0?(L.addClass("invalid"),e=!1):L.removeClass("invalid"),O.val()<=0?(O.addClass("invalid"),e=!1):O.removeClass("invalid"),e}function te(){if(!ee())return!1;
2J.taxable.interest_rate=parseFloat(L.val()),J.taxable.tax_rate=parseFloat(O.val()),J.taxable.interest_rate>0&&J.taxable.tax_rate>0&&(G=!0)}function re(){var e=!0;return T.val()<=0?(T.addClass("invalid"),e=!1):T.removeClass("invalid"),P.val()<=0?(P.addClass("invalid"),e=!1):P.removeClass("invalid"),e}function ae(){if(!re())return!1;J.tax_deferred.interest_rate=parseFloat(T.val()),J.tax_deferred.tax_rate=parseFloat(P.val()),J.tax_deferred.interest_rate>0&&J.tax_deferred.tax_rate>0&&(W=!0)}o.validator.methods.apiunavailable||o.validator.addMethod("apiunavailable",(function(){return!1}),"Validation is temporarily unavailable. Please try again later."),w.on("change",s(Q,200)),y.on("input",s(Q,200)),b.on("change",s(Q,200)),x.on("change",s(Q,200)),_.on("input",(function(){Y.age=!0,s(Q,200)()})),C.on("input",(function(){Y.premium=!0,s(Q,200)()})),A.on("input",(function(){Y.benefit=!0,s(Q,200)()})),L.on("input",s(te,200)),O.on("input",s(te,200)),T.on("input",s(ae,200)),P.on("input",s(ae,200)),l.add(d).on("click",(function(e){e.preventDefault(),Y.age=!0,Y.benefit=!0,Y.premium=!0,[_,C,A].forEach((function(e){e.rules("remove","apiunavailable")}));var n=o("#step1form").valid(),i=Z(),s=!0,l=!0,f=!0,m=!0;u.length&&(s=o("#step2_1form").valid(),l=o("#step2_2form").valid(),f=ee(),m=re()),n&&i&&(u.length&&s&&l&&f&&m&&(ee(),te(),function(){if(!M)return Z(),c[0].scrollIntoView({behavior:"smooth",block:"center"}),y.trigger("focus"),!1;if(G&&ee())switch(q.deathEstimateType){case Object.keys(I).find((function(e){return I[e]===I.death_benefit})):fetch("".concat(t,"/CalculateBenefit"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,premium:q.premiumAmount,taxableAsset:{interestRate:J.taxable.interest_rate,taxRate:J.taxable.tax_rate,years:V},taxDeferredAsset:{interestRate:J.tax_deferred.interest_rate,taxRate:J.tax_deferred.tax_rate,years:V}})}).then((function(e){return e.json()})).then((function(e){F.text(e.taxableAsset.yearsToMatch.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),R.text(e.taxableAsset.futureValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),p.addClass("ws-lf__step-results--active"),F[0].scrollIntoView({behavior:"smooth",block:"center"})})).catch((function(e){return alert("Something went wrong. Please try again."),C.addClass("invalid"),M=!1,e}));break;case Object.keys(I).find((function(e){return I[e]===I.premium_amount})):fetch("".concat(t,"/CalculatePremium"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,deathBenefit:q.deathBenefit,taxableAsset:{interestRate:J.taxable.interest_rate,taxRate:J.taxable.tax_rate,years:V},taxDeferredAsset:{interestRate:J.tax_deferred.interest_rate,taxRate:J.tax_deferred.tax_rate,years:V}})}).then((function(e){return e.json()})).then((function(e){A.removeClass("invalid"),F&&F.text(e.taxableAsset.yearsToMatch.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),R&&R.text(e.taxableAsset.futureValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),p.addClass("ws-lf__step-results--active"),F[0].scrollIntoView({behavior:"smooth",block:"center"})})).catch((function(e){return alert("Something went wrong. Please try again."),A.addClass("invalid"),M=!1,e}))}}(),re(),ae(),function(){if(!M)return Z(),c[0].scrollIntoView({behavior:"smooth",block:"center"}),y.trigger("focus"),!1;if(W&&re())switch(q.deathEstimateType){case Object.keys(I).find((function(e){return I[e]===I.death_benefit})):fetch("".concat(t,"/CalculateBenefit"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,premium:q.premiumAmount,taxableAsset:{interestRate:J.taxable.
2interest_rate,taxRate:J.taxable.tax_rate,years:V},taxDeferredAsset:{interestRate:J.tax_deferred.interest_rate,taxRate:J.tax_deferred.tax_rate,years:V}})}).then((function(e){return e.json()})).then((function(e){B.text(e.taxDeferredAsset.yearsToMatch.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),N.text(e.taxDeferredAsset.futureValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),h.addClass("ws-lf__step-results--active"),B[0].scrollIntoView({behavior:"smooth",block:"center"})})).catch((function(e){return alert("Something went wrong. Please try again."),C.addClass("invalid"),M=!1,e}));break;case Object.keys(I).find((function(e){return I[e]===I.premium_amount})):fetch("".concat(t,"/CalculatePremium"),{redirect:"manual",method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,deathBenefit:q.deathBenefit,taxableAsset:{interestRate:J.taxable.interest_rate,taxRate:J.taxable.tax_rate,years:V},taxDeferredAsset:{interestRate:J.tax_deferred.interest_rate,taxRate:J.tax_deferred.tax_rate,years:V}})}).then((function(e){return e.json()})).then((function(e){A.removeClass("invalid"),B&&B.text(e.taxDeferredAsset.yearsToMatch.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),N&&N.text(e.taxDeferredAsset.futureValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})),h.addClass("ws-lf__step-results--active"),B[0].scrollIntoView({behavior:"smooth",block:"center"})})).catch((function(e){return alert("Something went wrong. Please try again."),A.addClass("invalid"),M=!1,e}))}}()),function(){$.apply(this,arguments)}()),o(e.currentTarget).is(d)&&function(){if(M&&(!u.length||G&&W)){var e={quoteType:a,productCode:r,name:q.name,gender:q.gender,tobaccoUser:q.tobaccoUser,age:q.currentAge,taxableAsset:{interestRate:J.taxable.interest_rate,taxRate:J.taxable.tax_rate,years:V},taxDeferredAsset:{interestRate:J.tax_deferred.interest_rate,taxRate:J.tax_deferred.tax_rate,years:V}};switch(q.deathEstimateType){case Object.keys(I).find((function(e){return I[e]===I.death_benefit})):e.premium=q.premiumAmount,e.deathBenefit=0;break;case Object.keys(I).find((function(e){return I[e]===I.premium_amount})):e.deathBenefit=q.deathBenefit,e.premium=0}fetch("".concat(t,"/Pdf"),{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){!function(e){var t=function(e){for(var t=1024,r=atob(e),a=r.length,n=Math.ceil(a/t),i=new Array(n),o=0;o<n;++o){for(var s=o*t,c=Math.min(s+t,a),u=new Array(c-s),l=s,d=0;l<c;++d,++l)u[d]=r[l].charCodeAt(0);i[o]=new Uint8Array(u)}return new Blob(i,{type:"application/pdf"})}(e);if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,"w&s_legacy_forward_calculator_results.pdf");else{var r=URL.createObjectURL(t);window.open(r)}}(e.blob)})).catch((function(e){alert("Something went wrong. Please try again. (Pdf)")}))}}()}))}))}}]); 3//# sourceMappingURL=legacy-forward.min.js.map?v=7274ebaa58ce8d634d08
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.