$$WPUtil.guaranteeExistence($$WP,"CommunityUtilities"),$$WP.CommunityUtilities.openDeepLink=function(e,t,i,n,o,a,s,r){var l,m,u,p,c=[];if(t&&"object"==typeof t){if(t.IncompleteH2GSetup)return $$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.OrganizationName,"","community.externaljump"),u=new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("IncompleteH2GPopupTitle","community.externaljump"),Message:$$WP.Strings.get("IncompleteH2GPopupText","community.externaljump"),ToolbarButtons:[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("OkayButtonText","community.externaljump"),null,"cancel","")]}),$$WPUtil.quickPopup(u),void $$WP.Strings.removeMnemonic("@MYCHART@OrganizationName@","community.externaljump");($$WPUtil.IsNullOrEmpty(s)||isNaN(s))&&(s="-1"),n||(n=$$WP.CommunityUtilities.openDeepLinkType.InPopup),t.IsSSO&&(n||(p=!0),n=$$WP.CommunityUtilities.openDeepLinkType.InNewTab);var g=!$$WP.Utilities.UI.IsMobile&&WP.DOM.Browser.isMobile&&$afe.jq(window).width()<768;if((WP.DOM.Browser.isIE||WP.DOM.Browser.isSafari||g)&&n===$$WP.CommunityUtilities.openDeepLinkType.InPopup&&(n=$$WP.CommunityUtilities.openDeepLinkType.InNewTab,p=!0,c.push({Name:"isIEOrSafari",Value:1})),!$$WPUtil.IsNullOrEmpty(i)&&"object"==typeof i)for(var y in i)c.push({Name:y,Value:i[y]});m=document.location.protocol+"//"+document.location.hostname,$$WPUtil.IsNullOrEmpty(document.location.port)||(m=m+":"+document.location.port),c.push({Name:"parentJumpGUID",Value:$$WP.CommunityUtilities.getExternalJumpGUID()},{Name:"parentDomain",Value:m},{Name:"lang",Value:$$WP.I18N.getMyChartLocale()},{Name:"launchInBrowser",Value:$$WP.Utilities.UI.IsMobile?1:0});var C={};C.mode=e,C.orgID=t.OrganizationId,C.usePayerBrandedSite=i.isPayvider,C.parameters=c,C.patientIndex=s,$$WP.Utilities.UI.IsMobile||closeAllWindows("externalJumpWindow");var success=function(e){if(e&&"string"==typeof e&&(e=JSON.parse(e)),e&&e.RedirectToSignup&&null===e.CommunityResponse)return l.hide(),void $$WP.CommunityUtilities.ShowSignupFailedMessage(t);if(e&&e.CommunityResponse&&!$$WPUtil.IsNullOrEmpty(e.CommunityResponse.RedirectURL))if(e.RedirectToSignup&&$$WP.CommunityUtilities.markCommunityLinkDirty(t.OrganizationId),n){if(l&&l._Components&&l._Components.length>0){i&&t.PayerOrgDetails&&(i.isPayvider||t.PayerOrgDetails.IsPayerOnly)?$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.PayerOrgDetails.PayerCvgName,"","community.externaljump"):$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",e.CommunityResponse.Organization.OrganizationName,"","community.externaljump");var o=[new $$WPComp.ComplexObjects.Button($$WP.Strings.getForTemplate("Continue","community.externaljump"),null,"continue","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.getForTemplate("cancel","community.externaljump"),null,"previousstep","cancel")];$$WP.Utilities.UI.IsMobile?(l._Components[0].setMessage($$WP.Strings.get("redirectMessageForMobile","community.externaljump")),e.CommunityResponse.RedirectURL=makeLink(e.CommunityResponse.RedirectURL+"&launchInBrowser=1")):l._Components[0].$content.html($$WP.Strings.get("redirectMessage","community.externaljump")),l._Components[0].CallbackArgs=[e],l._Components[0].setToolbar(o),l.setFocus(),l.$container.trigger("resize"),$$WP.Strings.clearOrganization("community.externaljump")}}else{var a=i.isPayvider||t.PayerOrgDetails&&t.PayerOrgDetails.IsPayerOnly,s=t.PayerOrgDetails?t.PayerOrgDetails.PayerCvgLogoMagicId:"";d.loadIframe(e,a,s),$$WP.CommunityUtilities.logDeepLinkAudit("3",t.OrganizationId,e.EptId)}else{var r="",m=!1,u=!1,p="";e&&e.CommunityResponse&&!$$WPUtil.IsNullOrEmpty(e.ErrorCode)&&("AlreadySignedUp"===(r=e.ErrorCode)?(u=!0,p=$$WP.Strings.get("externalLinkAlreadySignedUpTitle","community.externaljump")):m=!0),failure(r,m,u,p)}},failure=function(e,t,i,o){var a,s=null;d&&(a=d.callback,d.callback=null,n||d.dispose()),l.hide(),$$WPUtil.IsNullOrEmpty(e)?errorMessage="externalLinkErrorMessage":errorMessage="externalLink"+e+"ErrorMessage";var r=!t;t?s=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("LogoutButtonText","community.externaljump"),null,"cancel","")]:i&&(s=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("RefreshButtonText","community.externaljump"),null,"completeworkflow","")]);var m=new $$WPComp.MessageComponent({Message:$$WP.Strings.get(errorMessage,"community.externaljump"),IsClosable:r,ToolbarButtons:s,TitleText:o,callback:function(){a&&d.runCallback(a),t?CreateLogOutPopup(!0):i&&location.reload()}});new $$WPUtil.quickPopup(m).show()};if(0!==n){C.access=p?"3":"4",t.PayerOrgDetails&&i&&(i.isPayvider||t.PayerOrgDetails.IsPayerOnly)?$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.PayerOrgDetails.PayerCvgName,"","community.externaljump"):$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.OrganizationName,"","community.externaljump");var P={TitleText:$$WP.Strings.getForTemplate("RedirectPopupTitle","community.externaljump"),Html:$$WP.Templates.UI.AjaxSpinner({inline:1}),callback:function(){if("toolbarcontinue"===this.CallbackArgs[1]&&(response=this.CallbackArgs[0],"string"==typeof response&&(response=JSON.parse(response)),"object"==typeof response)){var e,i;if(n===$$WP.CommunityUtilities.openDeepLinkType.InNewTab?e="":n===$$WP.CommunityUtilities.openDeepLinkType.InNewWindow&&(e="scrollbars=1,resizable=1"),i=response.CommunityResponse.IsSSOPost?"":response.CommunityResponse.RedirectURL,response.CommunityResponse.IsSSOPost){var o=openWindow(i,"",e,"externalJumpWindow",!0);$$WPUtil.postForm(response.CommunityResponse.RedirectURL,response.CommunityResponse.SSOParams,o.name)}else openWindow(i,"",e,"externalJumpWindow",!0);$$WP.CommunityUtilities.logDeepLinkAudit("4",t.OrganizationId,response.EptId),response.RedirectToSignup&&$$WP.CommunityUtilities.markCommunityLinkDirty(t.OrganizationId)}},IsClosable:!0,ToolbarButtons:[]};l=$$WPUtil.quickPopup(new $$WPComp.MessageComponent(P),{Size:$$WPContain.Popup.SizeEnum.SMALL,Class:"sm-autosizedpopup externalJumpRequestPopup Popup"}),$$WPUtil.ShowAjaxSpinner(l.$content.find(".ajaxspinner")),$$WP.Strings.clearOrganization("community.externaljump")}else{var d;C.access="3",P={},o&&a&&(P.callback=o,P.context=a),(d=new $$WPComp.ExternalJumpPopupComponent(P)).initialize(),(l=new $$WPContain.Popup({Components:[d],positioningFunction:$$WPContain.Positions.InsideNearTop,Size:$$WPContain.Popup.SizeEnum.LARGE,Class:"externaljumppopup",CommunicationsIndicator:!1,BackButtonText:$$WP.Strings.get("ExitPopup","community.externaljump"),GetInvisibleLastFocusAnchor:function(e){return d.getLastFocusTrap(e)}})).show(!0),l.setAppropriateScrollBar(),l.firstFocus.focus()}r&&(C.access="5"),C=$$WPUtil.postify(C),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/GetExternalJumpUrl2"),type:"POST",data:C,dataType:"json",error:function(){failure(null,!1)},cache:!1,success:success})}))}else $$WP.Debug.log("Organization passed in to the function is null or not an object.")},$$WP.CommunityUtilities.openDeepLinkType={InPopup:0,InNewTab:1,InNewWindow:2},$$WP.CommunityUtilities.logDeepLinkAudit=function logDeepLinkAudit(e,t,i){var n={};n.access=e,n.orgID=t,n.eptId=i,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/LogExternalJumpAudit"),type:"POST",data:n,cache:!1})}))},$$WP.CommunityUtilities.markCommunityLinkDirty=function markCommunityLinkDirty(e){var t={};t.organizationId=e,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/MarkCommunityLinkDirty"),type:"POST",data:t,cache:!1})}))},$$WP.CommunityUtilities.refreshCommunityLink=function refreshCommunityLink(e){var t={},i=function refresh(){location.reload()};t.organizationId=e,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/RefreshCommunityLink"),type:"POST",data:t,cache:!1,error:i,success:i})}))},$$WP.CommunityUtilities.getExternalJumpGUID=function getExternalJumpGUID(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._externalJumpGUID)&&($$WP.CommunityUtilities._externalJumpGUID=$$WPUtil.generateRandomGUID()),$$WP.CommunityUtilities._externalJumpGUID},$$WP.CommunityUtilities.getParentJumpGUID=function getParentJumpGUID(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._parentJumpGUID)?"":$$WP.CommunityUtilities._parentJumpGUID},$$WP.CommunityUtilities.clearJumpGUIDs=function clearJumpGUIDs(){$$WP.CommunityUtilities._externalJumpGUID=null,$$WP.CommunityUtilities._parentJumpGUID=null},$$WP.CommunityUtilities.setJumpParameters=function setJumpGUIDs(e,t){$$WPUtil.IsNullOrEmpty(e)||($$WP.CommunityUtilities._parentJumpGUID=e),$$WPUtil.IsNullOrEmpty(t)||($$WP.CommunityUtilities._parentDomain=t)},$$WP.CommunityUtilities.getParentDomain=function getParentDomain(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._parentDomain)?"":$$WP.CommunityUtilities._parentDomain},$$WP.CommunityUtilities.closeExternalParentPopup=function closeExternalParentPopup(){var e,t={};if(t.externalGUID=$$WP.CommunityUtilities.getParentJumpGUID(),t.message="closePopup",e=$$WP.CommunityUtilities.getParentDomain(),parent)try{parent.postMessage(JSON.stringify(t),e)}catch(e){console.error("Invalid Parent Domain")}WP.Comm.logOut(),$$WP.CommunityUtilities.clearJumpGUIDs(),$$WP.CommunityUtilities._parentDomain=null,self===top&&(self.location=makeLink("home/logout"))},$$WP.CommunityUtilities.externalJumpMessageListener=function externalJumpMessageListener(e){var t=$$WP.CommunityUtilities.getParentDomain();if(e&&e.originalEvent&&e.originalEvent.origin===t&&e.originalEvent.data){var i=JSON.parse(e.originalEvent.data);"logout"===i.message?(WP.Comm.logOut(),$$WP.CommunityUtilities.clearJumpGUIDs()):"valid"===i.message&&($$WP._isExternalJumpParentValid=!0)}},$$WP.CommunityUtilities.checkIfCommunityJumpIsValid=function checkIfCommunityJumpIsValid(){var e=$afe.select("body");if(!e.hasClass("md_default")||e.hasClass("isPrelogin")||e.hasClass("PUpage")){if(self!==top){if(self.window.location.href.toLowerCase().indexOf("/err.asp?")>0)return;var t,i={};i.message="isValidContext",i.externalGUID=$$WP.CommunityUtilities.getParentJumpGUID(),t=$$WP.CommunityUtilities.getParentDomain();try{parent.postMessage(JSON.stringify(i),t)}catch(e){console.error("Parent Domain Validation failed")}setTimeout((function(){$$WP._isExternalJumpParentValid||top.location.replace(makeLink("home/logout"))}),1e3)}}else self.location=makeLink("closeExternalJumpPopup.asp")},$$WP.CommunityUtilities.openDeepLinkUrl=function(e,t,i,n,o){var a=$$WPUtil.parseQueryString(e),s=a.mode;delete a.mode,$$WP.CommunityUtilities.openDeepLink(s,t,a,i,n,o)},$$WP.CommunityUtilities.ShowSignupFailedMessage=function(e){$$WP.CommunityUtilities.__showSignupFailureMessage(e,"SignupConnectionFailedMessage")},$$WP.CommunityUtilities.ShowSignUpNotAllowedMessage=function(e){$$WP.CommunityUtilities.__showSignupFailureMessage(e,"SignupNotAllowedMessage")},$$WP.CommunityUtilities.__showSignupFailureMessage=function(e,t){var i,n;$$WP.Strings.setDefaultNamespace("community.externallinking"),$$WP.Strings.setOrganization(e),i=$$WP.Strings.get(t),n=$$WP.Strings.get("SignupErrorTitle"),$$WP.Strings.clearOrganization();var o=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("ok","cancelpopup"),null,"previousstep","cancel")];$$WPUtil.quickMessageBox(i,n,o,null,null,"SignupNotAllowed"),$afe.select(".SignupNotAllowed.component.Popup").removeClass("textlessTitle"),$$WP.Strings.clearDefaultNamespace()},$$WP.CommunityUtilities.hasCommunityLinks=function hasCommunityLinks(){return!$afe.select("body").hasClass("hasNoCommunityLinks")},$$WP.CommunityUtilities.communityChecksuccesscallback=function communityChecksuccesscallback(e){var t,i;null!=e&&(t=(i=e.isCommunityActive)?"hasCommunityLinks":"hasNoCommunityLinks",$$WP.CommunityUtilities.isNotDotNetMode()&&$.ajax({url:makeLink("session.asp?mode=updateCommunityActiveCheckFlags&IsCommunityActive="+i)}),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/UpdateCommunityActiveCheckFlags"),type:"POST"})})),$afe.select("body").removeClass("hasNoCommunityLinks hasCommunityLinks").addClass(t))},$$WP.CommunityUtilities.clearCommunityLinksSessionStatus=function clearCommunityLinksSessionStatus(){$$WP.CommunityUtilities.isNotDotNetMode()&&$.ajax({url:makeLink("session.asp?mode=clearCommunityActiveCheckFlags")}),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/ClearCommunityActiveCheckFlags"),type:"POST"})}))},$$WP.CommunityUtilities.isNotDotNetMode=function isNotDotNetMode(){return $$WPUtil.IsNullOrEmpty($$WP.Settings.DotNetOnly)||!$$WP.Settings.DotNetOnly},$$WP.CommunityUtilities.checkIfCommunityLinksAvailable=function checkIfCommunityLinksAvailable(){var e=$afe.select("body");e.hasClass("isPrelogin")||e.hasClass("termsPage")||getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/IsCommunityActive"),dataType:"JSON",type:"POST",cache:!1,success:$$WP.CommunityUtilities.communityChecksuccesscallback,failure:function(e){$$WP.Debug.log("Community Links available ajax called failed.")}})}))},$$WP.CommunityUtilities.getCommunityLinks=function(e,t,i,n){t=t||"*",e=e||function(e){},n=n||window,i=i||[];var o=$$WP.CommunityUtilities.getCommunityLinks;if(o._links[t])return i.push(o._links[t]),e.apply(n,i);o._callback=e,o._args=i,o._context=n,o._waitingFor=t,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/GetCommunityLinks?requireSecurityForMode="+t),dataType:"JSON",type:"POST",cache:!1,success:$$WP.CommunityUtilities.getCommunityLinks.callStack,failure:function(e){$$WP.CommunityUtilities.getCommunityLinks.callStack({ForMode:t,Organizations:[]})}})}))},$$WP.CommunityUtilities.getCommunityLinks.callStack=function(e){var t=$$WP.CommunityUtilities.getCommunityLinks;t._links[e.ForMode]=e.Organizations,e.ForMode===t._waitingFor&&"function"==typeof t._callback&&(t._args.push(e.Organizations),t._callback.apply(t._context,t._args)),t._waitingFor=null,t._callback=null},$$WP.CommunityUtilities.getCommunityLinks._links={},$$WP.CommunityUtilities.pickOrganization=function pickOrganization(e,t,i,n,o){$$WP.CommunityUtilities.getCommunityLinks((function getCommunityLinks(n){if(!n||0===n.length)return i.push("1"),void e.apply(this,i);if(1===n.length)return i.push(n[0]),void e.apply(this,i);var a,s,r,l=[];for((r=n.length)>3&&(r=3),s=0;s<n.length;s++)l.push(new $$WPComp.ComplexObjects.Button(new Handlebars.SafeString("<span class='orglogo roundedimage' style='background-image:url("+n[s].LogoUrl+");'></span> <span class='orgname'>"+HTMLEncode(n[s].OrganizationName)+"</span>"),null,"tertiary neutral CommunityLink community_"+r,s));a=new $$WPComp.MessageComponent({Message:t,callback:function(){"close"!==arguments[arguments.length-1]&&(arguments[arguments.length-1]=arguments[arguments.length-1].substr($$WPComp.TOOLBARIDENTIFIER.length),arguments[arguments.length-1]=this.links[arguments[arguments.length-1]],this.fun.apply(this,arguments))},TitleText:o,CallbackArgs:i,CallbackContext:{links:n,fun:e},ToolbarButtons:l}),$$WPUtil.quickPopup(a,{Size:l.length<3?$$WPContain.Popup.SizeEnum.SMALL:$$WPContain.Popup.SizeEnum.MEDIUM,Class:"PickOrganization"}).show()}),n)},$$WP.CommunityUtilities.getOrganization=function(e,t,i,n){"function"==typeof t&&(n=n||window,i=i||[],$$WP.CommunityUtilities.getCommunityLinks((function(){var e,t=arguments[0],i=arguments[1],n=arguments[2],o=arguments[3];for(e=0;e<o.length;e++)if(o[e].OrganizationId===t){n.push(o[e]);break}i.apply(this,n)}),null,[e,t,i],n))},$$WP.CommunityUtilities.getLoadingOrgNamesForHealthSummary=function getLoadingOrgNamesForHealthSummary(){var e=this;getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/Shared/GetLoadingAndErrorOrgNames"),type:"POST",cache:!1,data:{controllerType:9},dataType:"json",success:e.instantiateCommunityControllerForHealthSummary})}))},$$WP.CommunityUtilities.UpdateBannerStringWithMnem=function UpdateBannerStringWithMnem(e,t,i,n){var o;return $$WP.Strings.getNamespace("Community.Shared").addMnemonic(t,e),o=/^\d+$/.test(e)?$$WP.Strings.get(n,"Community.Shared"):$$WP.Strings.get(i,"Community.Shared"),$$WP.Strings.removeMnemonic(t,"Community.Shared"),o},$$WP.CommunityUtilities.UpdateBannerText=function UpdateBannerText(e,t,i,n){var o,a,s,r,l,m,u;return $$WP.Strings.setDefaultNamespace("Community.Shared"),""!==e&&(o=$$WP.CommunityUtilities.UpdateBannerStringWithMnem(e,"@MYCHART@LoadingOrgs@","CurrentlyLoadingOneText","CurrentlyLoadingManyText"),a=!0),u=""!==i,""!==t?(s=$$WP.CommunityUtilities.UpdateBannerStringWithMnem(t,"@MYCHART@ErrorOrgs@","ErrorLoadingOneText","ErrorLoadingManyText"),r=u?n?$$WP.CommunityUtilities.UpdateBannerStringWithMnem(i,"@MYCHART@ManualOrgs@","ErrorLoadingAndOneManualSubtext","ErrorLoadingAndManyManualSubtext"):$$WP.CommunityUtilities.UpdateBannerStringWithMnem(i,"@MYCHART@ManualOrgs@","ErrorAndOneManualSubtextForSE","ErrorAndManyManualSubtextForSE"):n?$$WP.Strings.get("ErrorLoadingSubtext","Community.Shared"):"",l=!0):u&&(m=$$WP.CommunityUtilities.UpdateBannerStringWithMnem(i,"@MYCHART@ManualOrgs@","OneNonEpicUpdateDisclaimerText","ManyNonEpicUpdateDisclaimerText")),$$WP.Strings.clearDefaultNamespace(),{loadingOrgText:o,hasOrgsLoading:a,errorOrgText:s,errorOrgSubtext:r,hasOrgsWithErrors:l,nonEpicWarningText:m,hasOrgsManual:u}},$$WP.CommunityUtilities.instantiateCommunityControllerForHealthSummary=function instantiateCommunityControllerForHealthSummary(e){var t,i,n,o,a;t=!isShareEverywhere(),i=e.loadingOrgNames,n=e.errorOrgNames,o=e.manualOrgNames,bannerText=$$WP.CommunityUtilities.UpdateBannerText(i,n,o,t),(a=$afe.select("#refresh-banner-container")).addClass("hidden"),a.safeAppend($afe.renderTemplate($$WP.Templates.Community.NonEpicPretextBanner,{ShowDxrBannerAction:t,NonEpicWarningText:bannerText.nonEpicWarningText,HasOrgsLoading:bannerText.hasOrgsLoading,LoadingOrgText:bannerText.loadingOrgText,HasOrgsWithErrors:bannerText.hasOrgsWithErrors,ErrorLoadingText:bannerText.errorOrgText,ErrorLoadingSubtext:bannerText.errorOrgSubtext,HasOrgsManual:bannerText.hasOrgsManual})),$$WP.CommunityUtilities.instantiateCommunityController("HealthSummary",!0)},$$WP.CommunityUtilities.instantiateCommunityController=function instantiateCommunityController(e,t){return t||0!==$afe.select("#refresh-banner-button").length?new $$WP.Community.CommunityController(e):null},$$WP.CommunityUtilities.createCommunityToast=function createCommunityToast(e,t){e&&$$WP.UI.Toast.CreateSimpleToast(e,$$WP.UI.Toast.ToastTypeEnum.Warning,$$WP.CommunityUtilities.__saveDismissedFailedConnections.bind(null,t),null)},$$WP.CommunityUtilities.__saveDismissedFailedConnections=function saveDismissedFailedConnections(e){$.post({url:makeLink("Community/Shared/SaveDismissedFailedConnections"),contentType:"application/json",data:JSON.stringify(e),error:function(){}})},$$WP.CommunityUtilities.autoExpandToFullSite=function autoExpandToFullSite(){var e,success=function(e){if(e&&"string"==typeof e&&(e=$.parseJSON(e)),e&&e.Redirection&&!$$WPUtil.IsNullOrEmpty(e.Redirection.RedirectURL)){var t=new $$WPComp.MessageComponent({TitleText:e.Title,Message:'<div class="center">'+e.LoadingMessage+'</div><div class="loadingHeart"></div>',IsClosable:!1});$$WPUtil.quickPopup(t),e.Redirection.IsPost?$$WPUtil.postForm(e.Redirection.RedirectURL,e.Redirection.Params,"_self"):window.location.href=e.Redirection.RedirectURL}else showPage()},showPageOnly=function(){$afe.select("#content").removeClass("hidden"),$afe.select("#footer").removeClass("hidden")},showPage=function(){if(showPageOnly(),i.Utilities.UI.StopPageLoad=!1,!0===i.Utilities.UI.PageLoaded){var e={type:"load"};i.Utilities.UI.OnPageLoad(e)}};try{e=window.self!==window.top}catch(t){e=!0}if(e)showPageOnly();else{$afe.select("#content").addClass("hidden"),$afe.select("#footer").addClass("hidden");var t=t||{};t.PatientAccess=t.PatientAccess||{};var i=i||t.PatientAccess;i.Utilities=i.Utilities||{},i.Utilities.UI=i.Utilities.UI||{},i.Utilities.UI.StopPageLoad=!0;var n=window.self.location.href,o=n.toLowerCase().indexOf("/inside.asp");if(o>0){var a={};a.relativeUrl=n.substring(o+1),a=$$WPUtil.postify(a),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/GetMyChartFullAccessUrl"),type:"POST",data:a,dataType:"json",error:showPage,cache:!1,success:success})}))}else $.ajax({url:makeLink("ExternalJump/GetMyChartFullAccessUrl"),type:"POST",dataType:"json",error:showPage,cache:!1,success:success})}};