(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>r});const r=function(){return{text:"",subject:"",body:"",twitterInit(){document.getElementById("referral-sharing-twitter").parentElement.classList.add("inline-block")},twitterReferralLink(){var e=AFFWP.portal.core.store.get("urlGeneratorUrls").generated.url,t="&text="+encodeURIComponent(this.text),r="https://twitter.com/intent/tweet?url="+encodeURIComponent(e)+t;return window.open(r,"twitterwindow","left=20,top=20,width=600,height=300,toolbar=0,resizable=1"),!1},facebookInit(){document.getElementById("referral-sharing-facebook").parentElement.classList.add("inline-block")},fbReferralLink(){var e=AFFWP.portal.core.store.get("urlGeneratorUrls").generated.url,t="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e);return window.open(t,"facebookwindow","left=20,top=20,width=600,height=700,toolbar=0,resizable=1"),!1},emailInit(){document.getElementById("referral-sharing-email").parentElement.classList.add("inline-block")},emailReferralLink(e){e.preventDefault();var t="?subject="+encodeURIComponent(this.subject),r="&body="+encodeURIComponent(this.body)+" ",o=AFFWP.portal.core.store.get("urlGeneratorUrls").generated.url,n=document.getElementById("referral-sharing-email"),l="mailto:"+t+r+encodeURIComponent(o);window.open(l,"_self"),n.href=l,n.click(),n.href=""}}};((window.AFFWP=window.AFFWP||{}).portal=window.AFFWP.portal||{}).sharingLinks=t})();