PageSourceSearch

https://www.mutualofomaha.com/js/package-core--component-emailshare.33f18b26b56209c3931a.bundle.js

js mutualofomaha.com collected 2026-10-02 02:31:26 UTC 11,286 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[30618,47172],{47172:(function(y,k,u){var p=u(59918);p.ai({onUpdating:function(){console.log("SW Event:","onUpdating")},onUpdateReady:function(){console.log("SW Event:","onUpdateReady"),p.QE()},onUpdated:function(){console.log("SW Event:","onUpdated")},onUpdateFailed:function(){console.log("SW Event:","onUpdateFailed")}})}),28961:(function(y,k,u){var p=u(72505),b=u.n(p);class m{constructor(t){this.form=t}static isValidElement(t){return t.name&&t.value}static isValidValue(t){return!["checkbox","radio"].includes(t.type)||t.checked}static isCheckbox(t){return t.type==="checkbox"}static isMultiSelect(t){return t.options&&t.multiple}static getSelectValues(t){[].reduce.call(t,(n,c)=>c.selected?n.concat(c.value):n,[])}extractFormToJSON(){return[].reduce.call(this.form.elements,(t,n)=>(m.isValidElement(n)&&m.isValidValue(n)&&(m.isCheckbox(n)?t[n.name]=(t[n.name]||[]).concat(n.value):m.isMultiSelect(n)?t[n.name]=this.getSelectValues(n):t[n.name]=n.value),t),{})}}var e=u(5562),r=u(7473);const a="u-hidden",s=document.querySelector(".Share-form--wrapper .Share-form"),o=document.querySelector(".Share-form--wrapper .Share-form .email-button"),d=200,v=()=>{const i=window.location.hostname.split(".")[0],t={localhost:"itg",moolocal:"itg",local:"itg",mooitg:"itg",itg:"itg",moocat:"cat",cat:"cat",www:"prod"};return t[i]?t[i]:"prod"};if(s){const i=document.querySelector(".Share .Share-header"),t=document.querySelector(".Share-form--wrapper .Share-thankYou"),n=document.getElementById("EmailAddress-span"),c=document.querySelector(".Share-form--wrapper .Share-errorMessage"),h=document.getElementById("shareWithAnotherFriend");h&&h.addEventListener("click",()=>{setTimeout(()=>{s.reset(),t.classList.add(a),i.classList.remove(a),s.classList.remove(a)},1)});const g=document.getElementsByClassName("fa-email");Array.from(g).forEach(A=>{A.addEventListener("keydown",function(f){f.key==="Enter"&&document.getElementById("emailShareOverlay").classList.add("is-open")})});let l=new e.O(s);o.addEventListener("click",A=>{l.run()===!0&&S(A,s)},!1);const S=(A,f)=>{A.preventDefault();const $=document.getElementById("super-article"),_=new m(f).extractFormToJSON();let R=$?$.innerHTML:E();const x=`https://www.mutualofomaha.com${window.location.pathname}`+"?utm_source=moo-email-marketing&utm_medium=email&utm_campaign=moo-content-share"+(0,r.if)(),D="/api/v2/email/insurance/message/send-response",L=R.replace(/['–]/g,w=>w==="\u2013"?"-":"'"),I={emailTemplateName:"PlanningAndAdviceSocialShare",requestParameterMap:{client_environment:v(),name:_.name,email:_.email,recipientName:_.recipientName,EmailAddress:_.EmailAddress,message:_.message,articleTitle:L,articleUrl:x,systemName:"moo",systemKey:_.email},toAddress:_.EmailAddress};b().post(D,I).then(w=>{w.status===d?(n.innerText=_.email,i.classList.add(a),s.classList.add(a),c.classList.add(a),t.classList.remove(a)):c.classList.remove(a)}).catch(w=>{console.log(w),c.classList.remove(a)})}}const E=()=>{const i=" | Mutual of Omaha Insurance";return document.title.includes(i)?document.title:document.title+i}}),7473:(function(y,k,u){u.d(k,{if:function(){return e}});var p=u(42313);const b=()=>{const i=document.getElementById("share-sticky-bar"),t=document.getElementById("share-icon");i&&(i.style.display="none"),t&&window.addEventListener("scroll",()=>{const n=t.getBoundingClientRect(),c=document.documentElement.scrollTop>n.top+window.scrollY+t.offsetHeight;i&&(i.style.display=c?"block":"none")})},m=i=>{const t=new URLSearchParams(window.location.search);return t.get(i)!==null?`${t.get(i)}_`:""},e=()=>{const i=m("utm_source"),t=m("utm_medium"),n=m("utm_campaign");return i!==""||t!==""||n!==""?`&utm_content=${i}${t}${n}`:""},r=i=>{const t=i.target.alt,n="https://www.mutualofomaha.com",c=`${n}${window.location.pathname}`,h=i.target.getAttribute("data-url"),g=`Visit the following Mutual of Omaha advice article: 
2`,l=`
3
4 Visit Mutual of Omaha for more products that will help you protect what matters most 
5`,S=document.getElementById("super-article"),A=S?S.innerHTML:document.title;if(t==="email"){a(t,c);let f=document.createElement("a");f.title=A,f.text=A,f.href=c+"?utm_source=moo-email-marketing&utm_medium=email&utm_campaign=moo-content-share"+e(),window.location.href=`
6        mailto:?subject=${A}&body=${encodeURI(g)}${escape(f)}
7        ${encodeURI(l)}${escape(n)}`}else{const f=o(t,h,c,e());a(t,f),window.open(f,"_blank")}};function a(i,t){(0,p.A)("interaction",{event_type:"click",element_name:"Planning and advice social share",click_text:i,link_url:t})}function s(i,t,n,c,h,g){let l=new URL(t);switch(l.searchParams.append("utm_source",`${n}`),l.searchParams.append("utm_medium","social_media"),l.searchParams.append("utm_campaign","moo-content-share"),l=encodeURIComponent(l.toString()),c=encodeURIComponent(c),n){case"facebook":return`${i}?u=${l}${c}`;case"xsocial":return`${i}?url=${l}&text=${h}${c}`;case"linkedin":return`https://www.linkedin.com/sharing/share-offsite/?url=${l}${c}`;case"pinterest":return`${i}?url=${l}&description=${g}${c}`}}const o=(i,t,n,c)=>{const{title:h}=document,g=encodeURI(h);let l="";switch(i){case"facebook":return l=s(t,n,"facebook",c,g,h),l;case"x":return l=s(t,n,"xsocial",c,g,h),l;case"linkedin":return l=s(t,n,"linkedin",c,g,h),l;case"pinterest":return l=s(t,n,"pinterest",c,g,h),l}},d=i=>{const t=i.target&&i.target.className==="icon-link"?i.target.getAttribute("data-hover"):i.target.src;i.target.src=t},v=i=>{const t=i.target&&i.target.className==="icon-link"?i.target.getAttribute("data-default"):i.target.src;i.target.src=t};(()=>{const i=document.getElementsByClassName("icon-link");
7Array.from(i).forEach(t=>{t.addEventListener("click",r),t.addEventListener("mouseover",d),t.addEventListener("mouseout",v),t.addEventListener("keyup",function(n){n.keyCode===13&&r(n)})})})(),b()}),5562:(function(y,k,u){u.d(k,{O:function(){return b}});class p{constructor(e){this.debug=e}querySelectorAll(e,r){return e.querySelectorAll(r)}log(e,r=!1){this.debug===!0&&(r!==!1&&console.log(r),console.log(e))}}class b{constructor(e,r={}){this.debug=r.debug||!1,this.exception=!1,this.invalids=[],this.utilities=new p(this.debug);try{if(!e)throw"form object required";if(!e.tagName)throw"object doesn't contain tagName property";if(e.tagName!=="FORM")throw"invalid form object"}catch(a){this.utilities.log(a,"Validation.constructor"),this.exception=!0;return}this.form=e,this.inputs=this.utilities.querySelectorAll(e,["input:not([type='hidden']):not([type='radio'])","textarea"]),this.radiosAndCheckboxes=this.utilities.querySelectorAll(e,["input[type='radio']","input[type='checkbox']"]),this.selectDropDowns=this.utilities.querySelectorAll(e,["select"]),Array.from(this.selectDropDowns,a=>(this.validateSelectDropDowns(a,!1),this.invalids)),Array.from(this.inputs).forEach(a=>this.validate(a,!1)),Array.from(this.inputs).forEach(a=>this.validateRadiosAndCheckboxes(a,1,!1,!1)),this.bindEvents()}updateInputFeedback(e,r=!1,a="text"){let s="is-invalid",o="is-valid";e.setAttribute("aria-invalid","true"),r===!0&&(s="is-valid",o="is-invalid",e.setAttribute("aria-invalid","false"));let d=e.closest(".Field");a==="selectDropDowns"&&(d=e.parentNode.parentNode),d.classList.add(s),d.classList.remove(o)}updateInvalids(e,r){const a=this.invalids.indexOf(e);r===!0?a>-1&&(this.invalids.splice(a,1),this.utilities.log(`removing ${e} from invalids`,"Validation.updateInvalid")):a<0&&(this.invalids.push(e),this.utilities.log(`adding ${e} to invalids`,"Validation.updateInvalids"))}validate(e,r=!0){if(e.required===!0){const a=e.getAttribute("data-valid");let s=!1;a?s=a==="true":s=this.getPattern(e).test(e.value),r===!0&&this.updateInputFeedback(e,s),this.updateInvalids(e.name,s)}}validateNotRequired(e){if(e.getAttribute("data-needvalid")&&e.required===!1){if(e.value!==""){const a=this.getPattern(e).test(e.value);this.updateInvalids(e.name,a),this.updateInputFeedback(e,a)}e.value.length<=0&&this.clearNotRequiredValue(e)}}clearNotRequiredValue(e){this.invalids.includes(e.name)&&(this.updateInvalids(e.name,!0),this.updateInputFeedback(e,!0))}validateSelectDropDowns(e,r=!0){if(e.required===!0){const a=e.getAttribute("data-valid");let s=!1;a?s=a==="true":s=this.getPattern(e).test(e.value),this.updateInvalids(e.name,s),r===!0&&this.updateInputFeedback(e,s,"selectDropDowns")}}validateRadiosAndCheckboxes(e,r=1,a=!1,s=!0){let o=0;const d=this.utilities.querySelectorAll(document,`input[name="${e.name}"]`);Array.from(d,E=>(E.checked===!0&&(o+=1),o));const v=((E,i,t)=>!(t!==!1&&E>t||E<i))(o,r,a);e.required===!0&&(this.updateInvalids(e.name,v),s===!0&&this.updateInputFeedback(e,v,"radioAndCheckbox"))}run(){const e=this.inputs,r=this.radiosAndCheckboxes,a=this.selectDropDowns;return this.exception===!1&&(Array.from(e).forEach(o=>{this.validate(o)}),Array.from(r).forEach(o=>{this.validateRadiosAndCheckboxes(o)}),Array.from(a).forEach(o=>{this.validateSelectDropDowns(o)})),this.utilities.log(this.invalids,"Validation.run"),this.invalids.length===0}phoneMask(e,r){if(!/((\(\d{3}\) ?))\d{3}-\d{4}/.test(r.target.value)){const o=r.target.value.replace(/\D/g,""),d=3,v=6,E=10,i=o.substring(0,d),t=o.substring(d,v),n=o.substring(v,E);r.target.value="("+i+") "+t+"-"+n}}bindEvents(){let e=null;const r=300;Array.from(this.inputs).forEach(a=>{a.addEventListener("blur",s=>{const o=s.target;o.name==="Phone"&&o.value!==""&&this.phoneMask(o,s),this.validate(o),this.validateNotRequired(o)}),a.onkeyup=()=>{clearTimeout(e),e=setTimeout(()=>{this.validate(a)},r)}}),Array.from(this.selectDropDowns).forEach(a=>{a.addEventListener("blur",s=>{const o=s.target;this.validateSelectDropDowns(o)})}),Array.from(this.radiosAndCheckboxes).forEach(a=>{const s=o=>{const d=o.target;this.validateRadiosAndCheckboxes(d)};a.addEventListener("blur",s),a.addEventListener("change",s)}),this.form.setAttribute("novalidate","novalidate"),this.form.addEventListener("submit",a=>this.run()===!1?(a.preventDefault(),!1):!0)}getPattern(e){const r={alpha:/(^[a-zA-Z",.'’ \-@]+$)/,alphaNum:/(^[a-zA-Z0-9"\-.,#:&!?()'’ \s]+$)/,title:/(^[a-zA-Z0-9"-.,:()'’ \s]+$)/,num:/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/,zip:/(^\d{5,9}$)|(^\d{5}-\d{4}$)/,digit2:/(\d{2})/,digit3:/(\d{3})/,digit4:/(\d{4})/,digit5:/(\d{5})/,digit7:/(\d{7})/,max2:/(^[0-9]{1,2})$/,max4:/(^[0-9]{1,4})$/,year:/(^(19|20)[0-9]{2})$/,ssn:/(^[0-9]{3}(-)?[0-9]{2}(-)?[0-9]{4})$/,phone:/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,url:/^(([http|https]+):)(\/{2})([0-9.\-A-Za-z]+)\.([0-9.\-A-Za-z]+)\.([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,filn:/^(\D{1})(\s+|\.{1}\s+)(\D+)$/,tax:/^(\d{2})(-?)(\d{7})$/,date:/^(Jan|January|Feb|February|Mar|March|Apr|April|May|Jun|June|Jul|July|Aug|August|Sep|September|Oct|October|Nov|November|Dec|December|(0?\d{1}
7)|(10|11|12))(-|\s|\/|\.)(0?[1-9]|(1|2)[0-9]|3(0|1))(-|\s|\/|\.|,\s)(19|20)?\d\d$/i,notEmpty:/.+/,cleanChars:/^[^`;]+$/,occupation:/^[-a-zA-Z0-9 ,)(]*$/},a=e.getAttribute("data-pattern")||"alphaNum";return r[a]||r.alphaNum}}})},function(y){var k=function(p){return y(y.s=p)};y.O(0,[35826,19293,40504],function(){return k(47172),k(28961)});var u=y.O()}]);

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.