qlinkwireless.com Open in urlscan Pro
13.107.213.67  Public Scan

Submitted URL: http://qlw.io/346CAEC6/190
Effective URL: https://qlinkwireless.com/members/Overview.aspx?key=QLWI6UYSTKGGFVX544DONUHE4KXMM3GK3KXJFIT3PIQLW
Submission: On December 18 via api from GB — Scanned from GB

Form analysis 1 forms found in the DOM

POST ./Overview.aspx?key=QLWI6UYSTKGGFVX544DONUHE4KXMM3GK3KXJFIT3PIQLW

<form method="post" action="./Overview.aspx?key=QLWI6UYSTKGGFVX544DONUHE4KXMM3GK3KXJFIT3PIQLW" id="form1">
  <div class="aspNetHidden">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
    <input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="">
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
      value="qSjr/tWzT3DzLu+Zz7SID3p7CxcOTMaMLur/fB/fRCTvLT3hJ5XGNmoIz++MGYRAglsFht53d2Df+VeAWM3DRMfU9BsgrmwXMR8rG9MICfokwu/43seOuvmfhLonihAET50aE7mpWQxDDB3eOvIoZ5qUeZjLK0ncZL6DKkCk4msuiNIHFQP2h8/CkBCcNCria0jqY26looM4fZ+fUwFEFJR7gszEmTtiDHrrOAIEfo8=">
  </div>
  <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
      theForm = document.form1;
    }

    function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
      }
    }
    //]]>
  </script>
  <script src="/members/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZLqxyNukLR_M-in4KWKhdMxoMUvQzyLdUs3XELmJ_WRH4O2bPWeVOeB8tJ3Jg8JzYg2&amp;t=637953302901162733" type="text/javascript"></script>
  <script src="/members/ScriptResource.axd?d=NJmAwtEo3Ipnlaxl6CMhvqzftfK9C_zTUAqoekFDdsDZUXST7fF6io2BVf5r34KvbnlsSE2V0rWdwJEGYri8jxcBqMrIhiZKXkhus9fb3xWkcPGJYKdC_7Qe4e28805lPzWdbg_UxJhECMuiAoT_F7QzTtZRB2nLh1B6jWXCdQM1&amp;t=49337fe8"
    type="text/javascript"></script>
  <script src="/members/ScriptResource.axd?d=dwY9oWetJoJoVpgL6Zq8OElUnTbYfTnaky0IDO4I-adhKx-jHPWDUn19l9Lbp3duTo28T3TFlZvdY2AzbDVEgx7FRXfxBxldIBQI3zAKivoikRjBGLJWpeaf3EgigODEzJD3YfBm7rvIKwT-XN1IIotqM6xtEjPA8YjKxsIE3bA1&amp;t=49337fe8"
    type="text/javascript"></script>
  <div class="aspNetHidden">
    <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="89FE944A">
    <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
      value="bddRYRAnrHdieHIED6cmzQmeQrHkdMm/anylEV9COVejlCwUCGX3EdDfg7aC1/w48CxZ1qOHHnfC+Yiae8xrbdUluN8edYqLKrNI4e4CPYnoBe9R7vqOy5B+koOGEwj8+rXYm+9keTH85ecUm3xfivr8XFrR5lSqv364j29BhbEBJXkc8uj2wXkap2Uvy2/WznFIBSiIvKu7NiMk5hL/jw==">
  </div>
  <script type="text/javascript">
    //<![CDATA[
    Sys.WebForms.PageRequestManager._initialize('ctl00$ctl00$Toolkitscriptmanager1', 'form1', [], [], [], 90, 'ctl00$ctl00');
    //]]>
  </script>
  <!-- Use dropdown to change language or link-->
  <!-- Dropdown to change language starts-->
  <label for="ddlLanguages" id="lblLanguages" class="hidden">Language:</label>
  <select name="ctl00$ctl00$ddlLanguages" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ctl00$ddlLanguages\',\'\')', 0)" id="ddlLanguages" class="hidden">
    <option value="-1">Select</option>
    <option selected="selected" value="en-US">English</option>
    <option value="es-US">Spanish</option>
  </select>
  <!-- Use dropdown to change language ends-->
  <!-- Link to change language starts-->
  <a id="lnkLang" class="hidden" href="javascript:__doPostBack('ctl00$ctl00$lnkLang','')">Español</a>
  <!-- Link to change language ends-->
  <script type="text/template" data-template="Popup"> <div class="dynamicPopup backgroundTransparentDark">
        <div class="centerInViewPort">
            <div style="right: 0; position: absolute; padding: 10px 25px; z-index: 1000000;"><i class="closePopup fa fa-close"></i></div>
            <div id="popupContent" class="contentArea"></div>
        </div>
    </div>
</script>
  <script type="text/template" data-template="datepicker"> <span>
        ${day}
    </span> 
</script>
  <script type="text/template" data-template="datepickerMonthHeader"> <div class="monthTitle">
        <div class="prev ${prevSelectableClass}" data-target="${prev}" id="${id}-prev"><i class="fa fa-angle-left"></i></div>
        <div class="title">${long}</div>
        <div class="next ${nextSelectableClass}" data-target="${next}" id="${id}-next"><i class="fa fa-angle-right"></i></div>
    </div>
</script>
  <script type="text/template" data-template="toast"> <div class="toast ${template}">
        <span>${message}</span>
    </div>
</script>
  <script type="text/template" data-template="loadingScreen-template"> <div class="container content">
            <div class="text-center">
                <!-- <div>
        <svg class="circlesAnimation" version="1.1" x="0px" y="0px" viewBox="0 0 714 714">
            <ellipse id="west" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -148.1399 357.6414)" cx="357.6" cy="357.6" rx="42" ry="42"/>
            <ellipse id="north" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -148.1399 357.6414)" cx="357.6" cy="357.6" rx="42" ry="42"/>
            <ellipse id="east" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -148.1399 357.6414)" cx="357.6" cy="357.6" rx="42" ry="42"/>
            <ellipse id="south" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -148.1399 357.6414)" cx="357.6" cy="357.6" rx="42" ry="42"/>
        </svg>
    </div> -->
               
               <img src='https://qlw.azureedge.net/images/spinners/qlink-spinnerv3.gif' alt="Q Link Wireless" />              
               <p class="loadingText"></p>
            </div>            
        </div>                                
</script>
  <style>
    .panel-language {
      margin: 0 auto;
      width: 400px !important;
      padding: 20px;
    }

    .btn-inverse {
      position: relative;
    }

    @media (max-width: 1200px) {
      .panel-language {
        width: 320px !important;
      }

      #popupContent {
        height: auto;
      }
    }
  </style>
  <script>
    function updateCulture() {
      document.getElementById('lnkLang').click();
    }

    function delete_cookie(name) {
      document.cookie = name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
    }

    function showAutofillModal() {
      Helper.displayPopup("aboutAutoRefillModal", {}, true);
    }

    function showCultureModal() {
      delete_cookie("Culture");
      if (CommonData.Customer.FirstName) {
        var cultureCookie = Helper.getCookie("Culture");
        //get defult culture if no cookie
        Helper.displayPopup("languageSwitch", {}, true);
        showLanguage();

        function showLanguage() {
          var _culture = cultureCookie != "" ? cultureCookie : 'en-US';
          $("#language-" + _culture).show();
        }
        changeLanguage();
        $(".mobile-menu-close").click();
      } else {
        updateCulture();
      }
      //handle the language change modal button, fix for bug #1491
      function changeLanguage() {
        if ($(".lnkLang2").html() === "Español") {
          $($(".btn.btn-lg.btn-inverse")[1]).attr('disabled', 'disabled');
          $($(".btn.btn-lg.btn-inverse")[0]).removeAttr("disabled");
        } else {
          $($(".btn.btn-lg.btn-inverse")[0]).attr('disabled', 'disabled');
          $($(".btn.btn-lg.btn-inverse")[1]).removeAttr("disabled");
        }
      }
    }
  </script>
  <script type="text/template" data-template="RebillDiscount-true"> <div class="text-center p10" style="background: #faface;">
        <input type="checkbox" id="chkRebillable" />
        <b>
            Save
            $${RebillDiscountAmount}
        </b>
    
        on your order, enroll in 
        <img src="//resources.qlinkwireless.com/members/images/icons/rebill-mobile.png" alt="rebill Q LINK" /> 
        <span id="popupModal" onclick="showAutofillModal()" class="blueText underlineText ptr pb0 ml-xs">
            details
        </span>  
    </div>   
</script>
  <script type="text/template" data-template="RebillDiscount-false"> <style>
        .hidden-details {
             display: none;
         }

    </style>
    <div class="text-center p10" style="background: #faface;">
        <input type="checkbox" />
        Enroll in
        <img src="//resources.qlinkwireless.com/members/images/icons/rebill-mobile.png" alt="rebill Q LINK"  /> &amp; 
        get the Lowest Rates every month! 
        <span onclick="displayPopup('aboutAutoRefillModalnoDiscount')" class="blueText underlineText ptr pb0 ml-xs hidden-details" >
            details
        </span>
    </div>    
</script>
  <script type="text/template" data-template="AlreadyHasRebillSubscription"> <div class="br10 text-center backgroundWhite rebillSubModal">
        <div class="p20" style="max-width: 400px; margin: 0 auto;">
            <i class="closePopup fa fa-close ptr" style="float: right;"></i>
            <h2 class="fontNormal">Auto-Refill not enabled for this purchase.</h2>
            <p>We noticed you already have an auto-refill subscription. You can only have one active auto-refill, you can cancel your current auto-refill and then make this pruchase auto-refillable in your members area.</p>
        </div>

        <div class="bblr10 bbrr10 backgroundLightGrey p20">
            <div class="closePopup btn btn-primary">Continue</div>
        </div>
    </div>
</script>
  <script type="text/template" data-template="turnOffRebillSubscriptionModal"> <div class="br10 text-center backgroundWhite rebillSubModal">
        <div class="p20" style="max-width: 400px; margin: 0 auto;">
            <i class="closePopup fa fa-close ptr" style="float: right;"></i>
            <h2 class="fontNormal">Are you sure you want to<br>turn off Auto-Refill?</h2>
            <p>If you turn off auto-refill, you'll no longer receive extra minutes, extra data, or your monthly discount.<br/></p>
            <p style="font-size:.8em;"><em>You will not lose any extra data &amp; minutes you already purchased.</em></p>
        </div>

        <div class="bblr10 bbrr10 backgroundLightGrey p20">
            <div class="closePopup btn btn-grey">No, go back</div>
            <div class="btn btn-primary" onclick="deactivateSubscription('updateSubscriptionSettingsForm')">
                Yes, turn off auto-refill</div>
        </div>
    </div>
</script>
  <script type="text/template" data-template="aboutAutoRefillModal"> <div class="br10 text-center backgroundWhite rebillSubModal">
        <div class="p20">
            <i class="closePopup fa fa-close ptr" style="float: right;"></i>
            <img src="//resources.qlinkwireless.com/members/images/deatils-rebill.jpg" />

            <div style="max-width:350px; margin-top: 20px; margin: 0 auto; text-align: left;">
                <ul style="list-style: none; margin-top: 10px;">
                    <li><h3 style="margin-bottom: 10px;">Here's what you need to do:</h3></li>
                    <li><span class="bold blueText">1. </span>Click the Auto-Refill box to activate refills.</li>
                    <li><span class="bold blueText">2. </span>Start saving with your first refill.</li>
                    <li><span class="bold blueText">3. </span>Keep saving every month! </li>
                </ul>
            </div>       
        </div>
        <div class="bblr10 bbrr10 backgroundLightGrey p20">
            <div class="closePopup btn btn-primary">Continue</div>
        </div>
    </div>
</script>
  <script type="text/template" data-template="RebillOverview"> <div style="border: 1px solid #ccc; margin-top: 10px;">
        <div style="background: #edf6fc; padding: 20px 20px;">
            <h2 style="font-weight: normal; border-bottom: none; padding: 0;">Auto-Refill Plan </h2>
        </div>
        <div class="mt10 p20">
            <div class="bb-dashed">
                <p style="font-weight: normal; font-size: 35px; margin: 0;"><span class="blueText">$${PaymentAmount}</span>
                    <span style="font-size: 65%;">/${PaymentIntervals}</span></p>
                <p style="margin-top: 4px;">${Name}</p>
            </div>
            
            <div class="row m0 mt20">
                <div class="col-md-9 p0">
                    <p style="margin: 0;">
                        <span style="display: none;" id="RebillOverview-${OrderRebillSubscriptionId}-discount-${displayDiscount}">
                            Congratulations! 
                            You save $${Discount}/
                            month with Auto-Refill.</span>
                            Plan will automatically refill on <strong>${NextPaymentDate}</strong>
                    </p>
                </div>
                <div class="col-md-3 text-right-md p0">
                    <a class="btn btn-primary mt-4" href="/members/rebillsubscriptions.aspx?subscription=${OrderRebillSubscriptionId}">
                        Manage Auto-Refill</a>
                </div>
            </div>     
        </div>
    </div>
    
</script>
  <!--DO NOT CHANGE THE LANGUACE FOR THE LANGUAGE SWITCH TEMPLATE. IT DOES NOT USES THE LITERAL TO CHANGE LANGAGE.-->
  <script type="text/template" data-template="languageSwitch"> <div class="panel panel-default panel-language">
        <div class="closePopup pull-right hidden-xs"><i class="fa fa-close"></i></div>
        <div class="text-center">
            <img src="//resources.qlinkwireless.com/images/icons/language.jpg" alt="Language" width="100" class="hidden-xs"/>

            <div id="language-en-US" style="display: none;">
                     <h1 class="text-light"><span class="text-primary">LANGUAGE</span> PREFERENCE</h1>
                  <p>Changing the language will change your preferences for all <span class="text-nowrap">QLink</span> communication, including emails, text messages, etc. Please choose your preferred language. </p>

                <div class="modal-footer flex flex-justify-center">
                    <button type="button" onclick="updateCulture()" class="btn btn-lg btn-inverse" data-target="es">Español</button>
                    <button type="button" onclick="updateCulture()" class="btn btn-lg btn-inverse" data-target="language-en-US">English</button>
                </div>
         
            </div>
            <div id="language-es-US" style="display: none;">
                <h1 class="text-light"><span class="text-primary">IDIOMA</span> DE PREFERENCIA</h1>
                <p>Al cambiar el idioma, cambiará toda la comunicación enviada por <span class="text-nowrap">Q Link</span>, incluyendo: correos electrónicos, mensajes de texto, entre otros. Escoje el idioma de tu preferencia.</p>

                <div class="modal-footer flex flex-justify-center">
                    <button type="button" class="btn btn-lg btn-inverse closePopup" data-target="es">Español</button>
                    <button type="button" onclick="updateCulture()" class="btn btn-lg btn-inverse" data-target="en">English</button>
                </div>
            </div>
 
        </div>
    </div>
</script><!--<div class="title-bar">--><!-- BEGIN TITLE BAR SECTION -->
  <!--<div class="wrap">
      <span>Q Link Wireless</span>-->
  <!-- <ul class="breadcrumbs"> 
       <li><a href="http://qlinkwireless.com">Home</a> > </li>
       <li><a href="javascript:history.back()">Previous</a></li>
      </ul>-->
  <!--</div>-->
  <!--</div>-->
  <!-- END TITLE BAR SECTION -->
  <style>
    #member-banner-container {
      padding-bottom: 20px;
      width: 100vw;
      position: relative;
      left: calc(-50vw + 49%);
    }

    .mobile,
    #member-banner-container {
      display: none;
    }

    @media screen and (min-width: 320px) and (max-width: 768px) {
      .desktop {
        display: none;
      }

      .mobile {
        display: block;
      }

      #member-banner-container {
        margin: 50px 0 10px 0;
        padding: 0;
      }

      .wrap {
        position: relative;
      }
    }
  </style>
  <div class="wrap">
    <!--<div id="member-banner-container">
        <img class="img-responsive topBanner desktop" src="//resources.qlinkwireless.com/documents/Images/members_overview_free_tablet_promo_banner.gif">
        <img class="img-responsive mobile" src="//resources.qlinkwireless.com/documents/Images/members_overview_free_tablet_promo_banner_mobile.gif">
    </div>-->
    <section class="page-content">
      <!-- BEGIN LEFT MAIN CONTENT SECTION -->
      <style>
        .documents-list {
          display: none;
        }
      </style>
      <div id="members-wrapper">
        <div class="members-loginarea">
          <h3>
          </h3>
          <div class="loginDisplay"> Welcome Aleana ! [ <a href="Logout.aspx" id="A1">Log Out</a> ] </div>
          <!--warning messages-->
          <div id="info" class=""></div>
          <div id="success"></div>
          <div id="warning"></div>
          <div id="error"></div>
          <!-- Multi-Household -->
          <script>
            console.log('HHW', 0)
          </script>
          <div id="warning" style="display:block;">We need some additional information before we can ship your phone. <a href="/members/HouseholdWorksheet.aspx">Click Here</a> to complete the Household Worksheet.</div>
        </div>
        <div id="members-info">
          <div id="info-banner"></div>
          <div id="success-banner"></div>
          <div id="warning-banner"></div>
          <div id="error-banner" class="alert alert-danger" style="margin-bottom:12px;"></div>
          <style>
            .activate-ribbon {
              display: none;
              background-color: #fcf8e3;
              border-color: #faebcc;
            }

            .activate-ribbon,
            .activate-ribbon a {
              color: #fa961a;
            }

            .activate-ribbon a {
              text-decoration: underline;
            }

            .pr10 {
              padding-right: 10px
            }

            #migratedAlert {
              display: none;
            }

            #migratedAlert .fa {
              font-size: 22px;
              padding-right: 4px;
            }

            #migratedAlert .alert-migrateinfo {
              color: #fa961a;
              border: 1px solid transparent;
              border-color: #faebcc;
              background: #fcf8e3;
            }

            #migratedAlert a {
              color: orange;
              text-decoration: underline;
            }

            #updatedMigratedAlert .alert-migrateinfo {
              color: #721c24;
              border: 1px solid transparent;
              border-color: #faebcc;
              background: #f8d7da;
            }

            #updatedMigratedAlert .alert-migrateinfo a {
              color: #721c24;
              text-decoration: underline;
            }

            .acp-Date img.ribbon,
            img.tablet {
              height: auto;
            }

            .ll-Date img.ribbon {
              height: auto;
            }

            .acp-Date sup {
              display: flex;
              align-items: center;
              font-size: 12px;
            }

            .acp-confirm.header {
              display: grid;
              grid-template-columns: 80%;
              justify-content: center;
            }

            .optin-consent {
              display: grid;
              grid-template-columns: 4% 96%;
            }

            #tablet-alert-pay {
              display: flex;
              align-items: center;
              color: #fa961a;
            }

            .pl20 {
              padding-left: 20px;
            }

            .fa-exclamation-triangle {
              font-size: 20px;
            }

            #llModal {
              display: none;
            }

            @media screen and (min-width: 320px) and (max-width: 768px) {
              .acp-confirm.header {
                grid-template-columns: 100%;
              }

              .optin-consent {
                display: grid;
                grid-template-columns: 7% 93%;
              }
            }

            #ineligible-giftcard-promo-alert.alert-danger {
              color: #460F14;
              background-color: #F8D7DA;
              border: 1px solid #F5C6CB;
            }

            #ineligible-giftcard-promo-alert.alert-danger a {
              text-decoration: underline;
            }
          </style>
          <div class="overview">
            <div class="clear"></div>
            <!-- INELIGIBLE GIFTCARD ALERT -->
            <div id="ineligible-giftcard-promo-alert" style="display: none;" class="alert alert-danger mb10">
              <strong>Important Information</strong> - Unfortunately, you are not eligible to receive this offer because you have already selected one. For full details read our <a href="/terms">Terms and Conditions.</a>
            </div>
            <!-- INELIGIBLE GIFTCARD ALERT -->
            <!-- ALERT NV -->
            <div id="nv-alert" style="display: none" class="alert alert-info mb10">
              <strong>Action Needed -</strong> Please visit the National Verifier website to complete <span id="nv-alert-message"></span>. <a id="nv-alert-link" href="">Click here to continue.</a>
            </div>
            <!-- ALERT NV -->
            <div id="appointment-container">
              <style>
                #make-an-appointment {
                  padding: 0px;
                }

                #make-an-appointment .banner {
                  position: relative;
                  display: flex;
                  justify-content: space-between;
                  font-family: 'Open Sans';
                  padding: 15px 20px;
                }

                #make-an-appointment h1 {
                  color: #000000;
                  font-weight: bold;
                  font-size: 22px;
                  line-height: 30px;
                  border-bottom: none;
                  padding-bottom: 5px;
                }

                #make-an-appointment .right-container {
                  padding-left: 15px;
                  display: block;
                }

                #make-an-appointment p {
                  margin: 0px;
                  font-weight: normal;
                  font-size: 16px;
                  line-height: 22px;
                }

                #make-an-appointment .left-container {
                  color: #fff;
                  display: grid;
                  padding-right: 200px;
                }

                #make-an-appointment .make-an-appointment {
                  font-weight: 600;
                  font-size: 19px;
                }

                #make-an-appointment h2 {
                  font-size: 18px;
                  font-weight: normal;
                  line-height: 50px;
                }

                #make-an-appointment .checkmark-container {
                  font-size: 12px;
                  font-weight: normal;
                  display: grid;
                  margin-left: 5px;
                }

                #make-an-appointment button {
                  color: #1A80CC;
                  padding: 10px 35px;
                  border-radius: 25px;
                  width: 200px;
                  margin-top: 15px;
                  font-weight: 600;
                  font-size: 16px;
                  border: 1px solid #1A80CC;
                  background-color: unset;
                  line-height: 22px;
                }

                #make-an-appointment button img {
                  padding-left: 10px;
                  padding-bottom: 3px;
                }

                #make-an-appointment .trust-image-container {
                  display: grid;
                  align-items: end;
                }

                #make-an-appointment .trust-image-container img {
                  position: absolute;
                  bottom: 0px;
                  right: 20px;
                }

                #make-an-appointment .mobile {
                  display: none;
                }

                #make-an-appointment .button-container {
                  justify-content: start;
                }

                @media (max-width: 767px) {
                  #make-an-appointment h1 {
                    font-size: 18px;
                    line-height: 24px;
                  }

                  #make-an-appointment p {
                    font-size: 14px;
                    line-height: 19px;
                  }

                  #make-an-appointment .trust-image-container {
                    display: flex;
                    justify-content: center;
                    padding-top: 15px;
                  }

                  #make-an-appointment .trust-image-container img {
                    position: absolute;
                    max-width: 45%;
                    right: 5px;
                  }

                  #make-an-appointment .banner {
                    border-radius: 0px;
                  }

                  #make-an-appointment .make-an-appointment {
                    margin-top: 30px;
                    font-size: 18px;
                  }

                  #make-an-appointment .mobile {
                    display: block;
                  }

                  #make-an-appointment .desktop {
                    display: none;
                  }

                  #make-an-appointment .left-container {
                    padding-right: unset;
                  }
                }

                @media (max-width: 500px) {
                  #make-an-appointment .trust-image-container {
                    padding-top: 100px;
                  }
                }

                #make-an-appointment .button-container {
                  display: flex;
                }

                @media (max-width: 420px) {
                  #make-an-appointment .banner {
                    display: block;
                  }

                  #make-an-appointment {
                    text-align: center;
                  }

                  #make-an-appointment .button-container {
                    display: block;
                  }
                }
              </style>
              <div class="alert mb10" id="make-an-appointment">
                <div class="banner">
                  <div class="image-container">
                    <img class="" src="https://qlw.azureedge.net/images/activate/techgirl.png" alt="">
                  </div>
                  <div class="right-container">
                    <h1>Get Expert Activation Help</h1>
                    <p>Book an appointment today and get real-time, over the phone assistance from a trained specialist - with zero wait time.</p>
                    <div class="button-container">
                      <button type="button" onclick="window.location.href='/members/loginredirect.aspx'"> Book NOW <img class="" src="https://qlw.azureedge.net/images/activate/calendar-font-awesome.png" alt="">
                      </button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <!--BYON PROMO: GIFT_CARD + FREE_PHONE-->
            <style>
              /*this class affects the main container---------------------------------------------------------------------------*/
              .aj-bonus-combo-main-container {
                padding: 0px 2% 10px 2%;
                background-color: #e5f4f8;
                border-radius: 20px;
                margin: 20px auto;
              }

              /* H1 styles in first row*/
              .aj-bonus-combo-main-container h1 {
                font-size: 26px;
                margin-bottom: 20px;
                padding: 10px 0;
                text-align: center;
                border-bottom: 0;
              }

              .aj-bonus-combo-main-container .row {
                display: flex;
                justify-content: center;
              }

              /*call to action light blue columns---------------------------------------------------------------------------*/
              .aj-phone-combo {
                background-color: #b4d7df;
                border-radius: 15px;
                padding: 10px 2%;
                text-align: center;
              }

              .aj-phone-combo img {
                height: auto;
                vertical-align: middle;
                width: 60%;
              }

              .aj-phone-combo h2 {
                font-size: 14px;
                font-weight: 400;
                line-height: 16px;
                margin: 10px 0;
              }

              .aj-phone-combo img {
                width: auto;
                max-height: 84px;
              }

              .center-col {
                display: flex;
              }

              .center-img {
                width: auto;
                height: 30px;
                margin: auto;
              }

              /*"OR" middle button (image)---------------------------------------------------------------------------*/
              .middle-btn-aj {
                margin-top: 50px;
                width: 50%;
              }

              /* action buttons in the boxes---------------------------------------------------------------------------*/
              .button-aj {
                white-space: break-spaces;
                border-radius: 34px;
                background: #0185d8;
                border-style: none;
                color: white;
                padding: 8px 0;
                margin: 5px auto 0 auto;
                width: 70%;
              }

              .button-aj:hover {
                color: white;
                background: #006fb4;
                cursor: pointer;
              }

              .button-aj:focus {
                color: white;
                outline: 0px;
              }

              .button-aj:focus-visible {
                color: white;
                outline: 0px;
              }

              /*Terms and conditions at the end---------------------------------------------------------------------------*/
              .aj-terms {
                font-size: 12px;
                color: #464749;
                text-align: center;
                margin-top: 20px;
              }

              @media screen and (max-width: 767px) {}

              @media screen and (max-width: 500px) {
                .aj-bonus-combo-main-container .col-md-1 {
                  display: flex;
                  position: absolute;
                  z-index: 1;
                }

                .aj-bonus-combo-main-container .col-md-5 {
                  padding-right: 2px;
                  padding-left: 2px;
                }

                .aj-bonus-combo-main-container h1 {
                  font-size: 1em !important;
                }

                .aj-bonus-combo-main-container h2 {
                  font-size: 12px !important;
                }

                .aj-bonus-combo-main-container p {
                  line-height: 12px;
                }

                .aj-phone-combo img {
                  max-height: 60px;
                }

                .button-aj {
                  width: 100%;
                }
              }
            </style>
            <div class="aj-bonus-combo-main-container" style="display:none">
              <div class="row">
                <h1>Enjoy your <b>Welcome Bonus Offer!</b></h1>
              </div>
              <div class="row">
                <div class="col-md-5">
                  <div class="aj-phone-combo">
                    <img class="gift_card" src="//resources.qlinkwireless.com/images/promos/byon_giftcard/amazon_gift_card.png">
                    <h2><b>$25 Amazon.com Gift Card*</b> When you transfer your existing number.</h2>
                    <a class="btn button-aj" href="/members/setUpYourNumber.aspx?byonPromo=gc" data-role="button">Get Gift Card</a>
                  </div>
                </div>
                <div class="col-md-1 text-center center-col">
                  <img class="center-img" src="//resources.qlinkwireless.com/images/promos/byon_giftcard/or-icon.png">
                </div>
                <div class="col-md-5">
                  <div class="aj-phone-combo">
                    <img src="//resources.qlinkwireless.com/images/promos/byon_giftcard/free_phone_combo.png">
                    <h2><b>Get a New Tablet*</b> and a FREE Smartphone with a number transfer.</h2>
                    <a class="btn button-aj" href="/members/setUpYourNumber.aspx?byonPromo=fp" data-role="button">Get FREE Phone</a>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <p class="aj-terms">*Terms and conditions apply. Restrictions apply, see amazon.com/gc-legal</p>
                </div>
              </div>
            </div>
            <!--//BYON PROMO: GIFT_CARD + FREE_PHONE-->
            <!--BYON PROMO: GIFT_CARD ONLY-->
            <style>
              .amazonOfferContainerWrapper {
                display: flex;
                justify-content: center;
                margin-bottom: 30px;
              }

              .amazonOfferContainer {
                display: flex;
                gap: 10px;
                background-color: #B4D7DF;
                border-radius: 10px;
                padding: 15px 25px;
                padding-right: 60px;
                width: 100%;
              }

              .amazonOfferText {
                display: flex;
                flex-direction: column;
                gap: 10px;
              }

              .amazonOfferContainer img {
                margin-bottom: -130px;
              }

              .header {
                font-size: 20px;
              }

              .freeMessage {
                font-size: 14px;
              }

              .clickToStart {
                color: #1A80CC;
              }

              .termsAndConditions {
                color: #464749;
                font-size: 10px;
                line-height: 12px;
              }

              .amazonImgMobile {
                display: none;
              }

              @media only screen and (max-width: 768px) {
                .amazonOfferContainer {
                  flex-direction: column;
                  gap: 0px;
                  text-align: center;
                  padding: 15px;
                }

                .header {
                  font-size: 1.3rem;
                }

                .amazonOfferContainer img {
                  display: none;
                  margin: 0px;
                }

                .desktop {
                  display: none;
                }

                .amazonImgMobile img {
                  display: block;
                }

                .amazonImgMobile {
                  display: flex;
                  flex-direction: column;
                  justify-content: center;
                  align-items: center;
                  margin-top: 10px;
                }

                .freeMessage {
                  font-size: 14px;
                }

                .termsAndConditions {
                  font-size: 8px;
                }
              }
            </style>
            <div class="amazonOfferContainerWrapper" style="">
              <div class="amazonOfferContainer">
                <div class="amazonOfferText">
                  <div class="header">Enjoy your <strong>Welcome Bonus Offer!</strong></div>
                  <div class="freeMessage"><strong>Get a FREE $25 Amazon.com Gift Card*</strong> when you transfer your existing number. <a href="/members/setUpYourNumber.aspx?byonPromo=gc" class="clickToStart">Click to start</a></div>
                  <div class="termsAndConditions desktop">^Terms and conditions apply. Restrictions apply, see amazon.com/gc-legal</div>
                </div>
                <div class="desktop">
                  <img class="gift_card" src="//resources.qlinkwireless.com/images/promos/byon_giftcard/amazon_gift_card.png">
                </div>
                <div class="amazonImgMobile">
                  <img class="gift_card" src="//resources.qlinkwireless.com/images/promos/byon_giftcard/amazon_gift_card.png">
                  <div class="termsAndConditions">^Terms and conditions apply. Restrictions apply, see amazon.com/gc-legal</div>
                </div>
              </div>
            </div>
            <!--//BYON PROMO: GIFT_CARD ONLY-->
            <script type="text/template" data-template="hotspotBanner"> <style>
                #hotspot-banner {
                    overflow-y: hidden;
                    max-height: 164px;
                    margin-bottom: 1rem;
                }

                #hotspot-banner .subTitle {
                    line-height: 2rem;
                }

                #hotspot-banner div {
                    font-size: 22px;
                    font-weight: 700;
                }

                #hotspot-banner small {
                    font-size: 12px;
                    font-weight: 400;
                }

                #hotspot-banner button {
                    max-width: 237px;
                    width: 100%;
                    min-width: 221px;
                    font-weight: 500;
                    font-size: 16px;
                    background: #0185D8;
                }

                #hotspot-banner .btn-primary {
                    border-radius: 25px;
                    padding: 5px 26px;
                    margin: 0;
                }

                #hotspot-banner img {
                    height: 200px;
                    transform: translateY(-20px);
                }

                @media screen and (max-width: 1200px) {
                    #hotspot-banner div {
                        font-size: 22px;
                    }

                    #hotspot-banner img {
                        height: 200px;
                    }
                }

                @media screen and (max-width: 992px) {
                    #hotspot-banner {
                        max-height: 164px;
                        height: auto;
                        padding-top: 1vh;
                    }

                    #hotspot-banner div {
                        font-size: 20px;
                        line-height: 1.6rem;
                    }

                    #hotspot-banner button {
                        margin-bottom: 1rem;
                        margin-top: 1rem;
                        max-height: 32px;
                    }
                }

                @media screen and (max-width: 768px) {
                    #hotspot-banner {
                        padding-top: 0;
                    }

                    #hotspot-banner .subTitle {
                        line-height: 1.6rem;
                    }

                    #hotspot-banner small {
                        font-size: 14px;
                        line-height: 1.5rem;
                    }

                    #hotspot-banner img {
                        height: 170px;
                        transform: translateY(0px);
                    }
                }

                @media screen and (max-width: 576px) {
                    #hotspot-banner .subTitle {
                        line-height: 1.5rem;
                    }

                    #hotspot-banner div {
                        font-size: 20px;
                        line-height: 1.5rem;
                    }

                    #hotspot-banner button {
                        min-width: 180px;
                    }

                    #hotspot-banner img {
                        height: 140px;
                    }

                    #hotspot-banner small {
                        font-size: 11px;
                        line-height: 0.8rem;
                    }
                }

                .d-flex {
                    display: flex;
                }

                .flex-column {
                    flex-direction: column;
                }

                .justify-content-between {
                    justify-content: space-between;
                }

                .row {
                    display: flex;
                    margin-left: -15px;
                    margin-right: -15px;
                    width: 100%;
                }

                #hotspot-banner .row {
                    max-height: 165px;
                }

                .col {
                    margin-left: 15px;
                    margin-right: 15px;
                }

                .col-6 {
                    flex: 0 0 50%;
                    max-width: 50%;
                }

                .pl-2 {
                    padding-left: 0.5rem;
                }
                   
                .pl-0 {
                    padding-left: 0rem;
                }

                .justify-content-around {
                    justify-content: space-around;
                }

                @media screen and (min-width: 993px) {
                    .mt-lg-4 {
                        margin-top: 1.5rem;
                    }
                }

                @media screen and (min-width: 769px) {
                    .justify-content-md-center {
                        justify-content: center;
                    }
                 }

                @media screen and (min-width: 577px) {
                    .pl-sm-3 {
                        padding-left: 1rem !important;
                    }
                }
            </style>
            <div
                id="hotspot-banner"
                style="background: rgb(215,238,254); background: linear-gradient(180deg, rgba(215,238,254,1) 71%, rgba(255,255,255,1) 100%); overflow: hidden;"
            >
                    <div class="row d-flex">
                        <div class="col-6 col d-flex flex-lg-row flex-column justify-content-md-center justify-content-around pl-sm-3 pl-2">
                            <div class="d-flex flex-lg-row flex-column my-sm-4 my-1">
                                <div class="title">
                                    Make Your Free
                                </div>
                                <div class="subTitle">
                                    Cell Phone Plan Even <span style="color: #0185D8;">Better</span>
                                </div>
                                <small>
                                    Add a Mobile Hotspot to your Cell Phone Plan.
                                </small>
                            </div>
                            <div class="align-self-start mr-lg-5 mt-lg-4">
                                <button class="btn btn-primary" onclick="OverviewVm.redirectToHotspotPage()">
                                    View Plans
                                </button>
                            </div>
                        </div>
                        <div class="col-6 col">
                            <img src='https://qlw.azureedge.net/images/hotspot/banner-graphic.png' alt="" />
                        </div>
                    </div>
            </div>
        </script>
            <!--alert get help-->
            <div class="alert mb10" id="alert-port-status" style="display: none; color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc;">
              <span class="text-semibold text-capitalize"> Your Port in Status Is: <span class="portStatus"></span>
              </span>
              <br>
              <p class="status-content-description" data-bind="text: LongDistanceVm.showPendingStatuses()"></p>
            </div>
            <div class="alert mb10" style="display: block; color: rgb(138, 109, 59); background-color: rgb(252, 248, 227); border-color: rgb(250, 235, 204);" id="app-login-status">
              <b>Get the My Mobile Account App</b><br>
              <span id="appLogin">Download the My Mobile Account App for <a target="_blank" href="https://apps.apple.com/us/app/my-mobile-account/id1408895511">iPhone</a> or
                <a target="_blank" href="https://play.google.com/store/apps/details?id=com.qlink.myqlink&amp;hl=en_US">Android</a> and log in with your Q Link phone number.<a href="../activate.aspx"> <u>Click here</u></a> to see the activation
                instructions.</span>
            </div>
            <div class="alert mb10 activate-ribbon" id="sim-ship-alert" style="display:none;">
              <div style="display:flex;">
                <div class="pr10">
                  <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
                </div>
                <div>
                  <b>ATTENTION:</b> Your address has been updated! An order was created for your <span class="phone">Smartphone &amp; SIM Card Bundle</span><span class="sim" style="display: inline-block;">upgraded SIM Card</span> &amp; an email with
                  tracking details will be sent shortly.
                </div>
              </div>
            </div>
            <div class="alert mb10 activate-ribbon" id="tablet-alert" style="display:none">
              <div style="display:flex;">
                <div class="pr10">
                  <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
                </div>
                <div> Your phone has been activated &amp; your tablet reserved! Tablet shipments will begin soon &amp; we'll send you tracking details as soon as your tablet is shipped. </div>
              </div>
            </div>
            <!--ALERT  UPLOAD DOCUMENTS-->
            <div class="alert alert-info mb10" id="hasUnprocessedDocuments" style="display: block;">
              <p><i class="fa fa-exclamation-circle pr" aria-hidden="true"></i> Keep your FREE Lifeline service active by submitting documents proving your eligibility. Submit your documents now by clicking <span onclick="redirectToDocuments()"
                  class="blueText pointer-cursor"><u>here.</u></span>
              </p>
            </div>
            <!--ALERT  RE-UPLOAD DOCUMENTS-->
            <div class="alert alert-success mb10" id="reupload" style="display: none;">
              <p><i class="fa fa-check pr" aria-hidden="true"></i> Your proof documents have been uploaded successfully. If you'd like to reupload them, you can do so any time by clicking <span onclick="redirectToDocuments()"
                  class="blueText pointer-cursor"><u>here.</u></span>
              </p>
            </div>
            <div id="confirmAddressalert" style="display: none;">
              <div class="alert alert-info mb10">
                <i class="fa fa-exclamation-triangle pr" aria-hidden="true"></i><b>ATTENTION: </b>Act now to receive a new tablet as part of your EBB enrollment. Confirm your address <span onclick="location.href='/members/recalloptindirect.aspx'"
                  class="blueText pointer-cursor"><u>
                     here</u>.</span>
              </div>
            </div>
            <div id="noActiveLinesAlert" style="display: none;">
              <div class="alert alert-info mb10">
                <i class="fa fa-exclamation-triangle pr" aria-hidden="true"></i><b>Urgent Message</b> Your new SIM card needs to be activated. <span id="openModal" class="blueText pointer-cursor"><u>Click here</u></span> and follow our simple
                activation instructions and access your government benefits today.
              </div>
            </div>
          </div>
          <div id="banner-container">
            <style>
              #hotspot-banner {
                overflow-y: hidden;
                max-height: 164px;
                margin-bottom: 1rem;
              }

              #hotspot-banner .subTitle {
                line-height: 2rem;
              }

              #hotspot-banner div {
                font-size: 22px;
                font-weight: 700;
              }

              #hotspot-banner small {
                font-size: 12px;
                font-weight: 400;
              }

              #hotspot-banner button {
                max-width: 237px;
                width: 100%;
                min-width: 221px;
                font-weight: 500;
                font-size: 16px;
                background: #0185D8;
              }

              #hotspot-banner .btn-primary {
                border-radius: 25px;
                padding: 5px 26px;
                margin: 0;
              }

              #hotspot-banner img {
                height: 200px;
                transform: translateY(-20px);
              }

              @media screen and (max-width: 1200px) {
                #hotspot-banner div {
                  font-size: 22px;
                }

                #hotspot-banner img {
                  height: 200px;
                }
              }

              @media screen and (max-width: 992px) {
                #hotspot-banner {
                  max-height: 164px;
                  height: auto;
                  padding-top: 1vh;
                }

                #hotspot-banner div {
                  font-size: 20px;
                  line-height: 1.6rem;
                }

                #hotspot-banner button {
                  margin-bottom: 1rem;
                  margin-top: 1rem;
                  max-height: 32px;
                }
              }

              @media screen and (max-width: 768px) {
                #hotspot-banner {
                  padding-top: 0;
                }

                #hotspot-banner .subTitle {
                  line-height: 1.6rem;
                }

                #hotspot-banner small {
                  font-size: 14px;
                  line-height: 1.5rem;
                }

                #hotspot-banner img {
                  height: 170px;
                  transform: translateY(0px);
                }
              }

              @media screen and (max-width: 576px) {
                #hotspot-banner .subTitle {
                  line-height: 1.5rem;
                }

                #hotspot-banner div {
                  font-size: 20px;
                  line-height: 1.5rem;
                }

                #hotspot-banner button {
                  min-width: 180px;
                }

                #hotspot-banner img {
                  height: 140px;
                }

                #hotspot-banner small {
                  font-size: 11px;
                  line-height: 0.8rem;
                }
              }

              .d-flex {
                display: flex;
              }

              .flex-column {
                flex-direction: column;
              }

              .justify-content-between {
                justify-content: space-between;
              }

              .row {
                display: flex;
                margin-left: -15px;
                margin-right: -15px;
                width: 100%;
              }

              #hotspot-banner .row {
                max-height: 165px;
              }

              .col {
                margin-left: 15px;
                margin-right: 15px;
              }

              .col-6 {
                flex: 0 0 50%;
                max-width: 50%;
              }

              .pl-2 {
                padding-left: 0.5rem;
              }

              .pl-0 {
                padding-left: 0rem;
              }

              .justify-content-around {
                justify-content: space-around;
              }

              @media screen and (min-width: 993px) {
                .mt-lg-4 {
                  margin-top: 1.5rem;
                }
              }

              @media screen and (min-width: 769px) {
                .justify-content-md-center {
                  justify-content: center;
                }
              }

              @media screen and (min-width: 577px) {
                .pl-sm-3 {
                  padding-left: 1rem !important;
                }
              }
            </style>
            <div id="hotspot-banner" style="background: rgb(215,238,254); background: linear-gradient(180deg, rgba(215,238,254,1) 71%, rgba(255,255,255,1) 100%); overflow: hidden;">
              <div class="row d-flex">
                <div class="col-6 col d-flex flex-lg-row flex-column justify-content-md-center justify-content-around pl-sm-3 pl-2">
                  <div class="d-flex flex-lg-row flex-column my-sm-4 my-1">
                    <div class="title"> Make Your Free </div>
                    <div class="subTitle"> Cell Phone Plan Even <span style="color: #0185D8;">Better</span>
                    </div>
                    <small> Add a Mobile Hotspot to your Cell Phone Plan. </small>
                  </div>
                  <div class="align-self-start mr-lg-5 mt-lg-4">
                    <button class="btn btn-primary" onclick="OverviewVm.redirectToHotspotPage()"> View Plans </button>
                  </div>
                </div>
                <div class="col-6 col">
                  <img src="https://qlw.azureedge.net/images/hotspot/banner-graphic.png" alt="">
                </div>
              </div>
            </div>
          </div>
          <!--GENERAL INFORMATION FOR THE ACC STARTS-->
          <div id="generalOverviewinfo">
            <!--usage panel-->
            <div id="usage-panel">
              <div class="panel panel-primary">
                <div class="MyUsagePanel">
                  <div class="panel bg-gradient-grey">
                    <p><span class="panel-heading">My Usage</span>
                      <span class="fr pr10 header-right"><a href="/customer/members/usage" target="_self">View Call Log</a>
                      </span>
                    </p>
                  </div>
                  <!--USAGE STARTS-->
                  <div class="help-usage mt">
                    <style>
                      .p5 {
                        padding: 5px;
                      }

                      .p10 {
                        padding: 10px;
                      }

                      .pl30 {
                        padding-left: 30px;
                      }

                      .ml10 {
                        margin-left: 10px;
                      }

                      .meter {
                        height: 8px;
                        /* Can be anything */
                        position: relative;
                        background: rgb(238, 238, 238);
                        -moz-border-radius: 10px;
                        -webkit-border-radius: 10px;
                        border-radius: 10px;
                        padding: 0px;
                      }

                      .meter>span {
                        display: block;
                        height: 100%;
                        border-top-right-radius: 10px;
                        border-bottom-right-radius: 10px;
                        border-top-left-radius: 20px;
                        border-bottom-left-radius: 20px;
                        background-color: rgb(1, 133, 216);
                        background-image: linear-gradient(center bottom,
                            rgb(1, 133, 216) 37%,
                            rgb(238, 238, 238) 69%);
                      }

                      .usageItem {
                        margin: 0px 10px 10px 10px;
                        border: 1px solid #eee;
                        flex-wrap: wrap;
                      }

                      .mb10 {
                        margin-bottom: 10px;
                      }

                      .pb0 {
                        padding-bottom: 0px;
                      }

                      .b0 {
                        border: 0;
                      }

                      .open-notes-wrap {
                        display: none;
                      }

                      .warning {
                        color: rgb(255, 0, 0);
                      }

                      @media (max-width: 768px) {
                        .usageItem {
                          flex-direction: column;
                        }

                        .usagePanelText {
                          flex-direction: column;
                        }

                        .pl30 {
                          padding-left: 0px;
                        }
                      }
                    </style>
                    <script>
                      $(document).ready(function() {
                        var SummaryRecord = CommonData.SummaryRecord;
                        if (CommonData.SummaryRecord) {
                          CommonData.SummaryRecord.dataConverted = {
                            Total_Data_Available: SummaryRecord.Total_Data_Available != 'UNLIMITED' ? getData(SummaryRecord.Total_Data_Available) : 'UNLIMITED',
                            Total_Data_Left: SummaryRecord.Total_Data_Left != 'UNLIMITED' ? getData(SummaryRecord.Total_Data_Left) : 'UNLIMITED',
                            Total_Data_Used: getData(SummaryRecord.Total_Data_Used) //4831828208  SummaryRecord.Total_Data_Used
                          }
                          CommonData.SummaryRecord.display_rounded = CommonData.SummaryRecord.dataConverted.Total_Data_Left != 'UNLIMITED' ? CommonData.SummaryRecord.dataConverted.Total_Data_Left.rounded : 'UNLIMITED';
                          CommonData.SummaryRecord.display_unit = SummaryRecord.Total_Data_Available > 1024 ? 'GB' : CommonData.SummaryRecord.dataConverted.Total_Data_Left.unit;
                          CommonData.SummaryRecord.display_Total_Data_Available = CommonData.SummaryRecord.dataConverted.Total_Data_Available.rounded;
                          CommonData.SummaryRecord.display_available_unit = CommonData.SummaryRecord.dataConverted.Total_Data_Available.unit;
                          CommonData.SummaryRecord.display_Total_Data_Available_Unit = CommonData.SummaryRecord.display_Total_Data_Available > 1 ? 'GB' : CommonData.SummaryRecord.dataConverted.Total_Data_Available.unit;
                          //Get progress values
                          SummaryRecord._Minutes_Progress = SummaryRecord.Total_Minutes_Available >= 0 ? (SummaryRecord.Total_Minutes_Used / SummaryRecord.Total_Minutes_Available) * 100 : SummaryRecord.Total_Minutes_Available;
                          SummaryRecord._Data_Progress = SummaryRecord.Total_Data_Available >= 0 ? (SummaryRecord.Total_Data_Used / SummaryRecord.Total_Data_Available) * 100 : SummaryRecord.Total_Data_Available;
                          for (var i in SummaryRecord) {
                            if ((SummaryRecord[i] == undefined) && (i == 'display_Total_Data_Available')) {
                              SummaryRecord[i] = 'UNLIMITED';
                            }
                          }
                          if (SummaryRecord._Minutes_Progress >= 0) {
                            $('#minutesProgress-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc').show();
                          } else if (SummaryRecord._Minutes_Progress == 'UNLIMITED') {
                            $('#minutesProgress-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc, #ctaMinutes').hide();
                          }
                          if (SummaryRecord._Data_Progress >= 0) {
                            $('#dataProgress-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc').show();
                          } else if (SummaryRecord._Data_Progress >= "UNLIMITED") {
                            $('#dataProgress-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc, #ctaData').hide();
                          }
                          if (!SummaryRecord.display_Total_Data_Available_Unit) {
                            $('#dataAvailableUnit').hide();
                          }
                          var dataAvailableUnit = CommonData.SummaryRecord.dataConverted.Total_Data_Left.unit;
                          var totalDataAvailableUnit = CommonData.SummaryRecord.dataConverted.Total_Data_Available.unit;
                          var totalDataAvailable = CommonData.SummaryRecord.dataConverted.Total_Data_Available.rounded;
                          var dataAvailable = CommonData.SummaryRecord.dataConverted.Total_Data_Left.rounded;
                          if (totalDataAvailableUnit == 'GB') {
                            totalDataAvailable = totalDataAvailable // * 1024;
                          }
                          if (dataAvailableUnit == 'GB') {
                            dataAvailable = dataAvailable // * 1024;
                          }
                          var data_used = CommonData.SummaryRecord.dataConverted.Total_Data_Used.rounded;
                          CommonData.SummaryRecord.dataUsed = data_used;
                          CommonData.SummaryRecord.dataUsedUnit = CommonData.SummaryRecord.dataConverted.Total_Data_Used.unit;
                          CommonData.SummaryRecord.minutesUsed = CommonData.SummaryRecord.Total_Minutes_Used
                          var dataProgressPercentage = (data_used / totalDataAvailable) * 100;
                          // limit percentage value of the progress bar to 100% to avoid bar getting off place.
                          if (typeof dataProgressPercentage !== 'undefined' && dataProgressPercentage > 100) {
                            dataProgressPercentage = 100;
                          }
                          if (CommonData.SummaryRecord.Total_Minutes_Available == 'UNLIMITED') {
                            var minutesProgressPercentage = 0;
                          } else {
                            var minutesProgressPercentage = (CommonData.SummaryRecord.minutesUsed / CommonData.SummaryRecord.Total_Minutes_Available) * 100;
                          }
                          if (CommonData.SummaryRecord.dataConverted.Total_Data_Available == 'UNLIMITED') {
                            var dataProgressPercentage = 0;
                          }
                          //render template with values
                          document.getElementById('usageContainer-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc').innerHTML = Helper.populateTemplate(Helper.getTemplate('usage-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc'), SummaryRecord);
                          document.getElementById('dataWidth').style.width = dataProgressPercentage + '%';
                          if (CommonData.SummaryRecord.minutesUsed == 'UNLIMITED') {
                            document.getElementById('minutesWidth').style.width = '10%';
                          } else {
                            document.getElementById('minutesWidth').style.width = minutesProgressPercentage + '%';
                          }
                          if (dataProgressPercentage > 90) {
                            document.getElementById('data-warning').style.display = 'block';
                          } else {
                            document.getElementById('data-warning').style.display = 'none';
                          }
                          if (minutesProgressPercentage > 90) {
                            document.getElementById('minutes-warning').style.display = 'block';
                          } else {
                            document.getElementById('minutes-warning').style.display = 'none';
                          }
                          if (dataProgressPercentage == 100) {
                            document.getElementById('dataWidth').style.background = 'rgb(235,0,0)';
                            document.getElementById('data-warning').innerHTML = "You have no data available";
                          } else if (dataProgressPercentage > 90 && dataProgressPercentage < 100) {
                            document.getElementById('data-warning').innerHTML = 'You have ' + (100 - dataProgressPercentage).toFixed(2) + '% data available';
                          } else {}
                          if (minutesProgressPercentage == 100) {
                            //document.getElementById('minutesWidth').style.background = 'rgb(255,0,0)';
                            document.getElementById('minutes-warning').innerHTML = 'You have no minutes available';
                          } else if (minutesProgressPercentage > 90 && minutesProgressPercentage < 100) {
                            document.getElementById('minutes-warning').innerHTML = 'You have ' + (100 - minutesProgressPercentage).toFixed(2) + '% minutes available';
                          } else {}
                          /* if (dataProgressPercentage >= 90)
                           {
                               document.getElementById('dataWidth').style.background = 'rgb(235,0,0)';
                           }
                           else if (dataProgressPercentage >= 75 && dataProgressPercentage < 90)
                           {
                               document.getElementById('dataWidth').style.background = 'rgb(250,162,29)';
                           }
                           else{
                               document.getElementById('dataWidth').style.background = 'rgb(1, 133, 216)';
                           }
                           if (minutesProgressPercentage >= 90)
                           {
                               document.getElementById('minutesWidth').style.background = 'rgb(255,0,0)';
                           }
                           else if (minutesProgressPercentage >= 75 && minutesProgressPercentage < 90)
                           {
                               document.getElementById('minutesWidth').style.background = 'rgb(250,162,29)';
                           }
                           else {
                               document.getElementById('minutesWidth').style.background = 'rgb(1, 133, 216)';
                           }

                           */
                          /*---version 1---*/
                          /*if (dataProgressPercentage < 10) {
                              document.getElementById('meter-data').style.background = 'rgb(235,0,0)';
                          }
                          else  {
                              document.getElementById('meter-data').style.background = 'rgb(250,162,29)';
                          }
                          if (minutesProgressPercentage < 10) {
                              document.getElementById('meter-minutes').style.background = 'rgb(255,0,0)';
                          }
                          else {
                              document.getElementById('meter-minutes').style.background = 'rgb(250,162,29)';
                          }
                          */
                          /*---version 2---*/
                          function getFormatedDateFromEpoch(epoch) {
                            return new Date(epoch * 1000);
                          }

                          function convertEpochDate(_date) {
                            var _epochDate = (_date.substring(_date.lastIndexOf('(') + 1, _date.lastIndexOf(')'))) / 1000;
                            return _epochDate;
                          }

                          function getData(value) {
                            var _converted = Helper.convertData(value); // ### this we don't know where it's coming from, returns an object
                            let gigs = 1073741824;
                            let _convertedToGb = parseFloat((value / gigs).toFixed(2)); // new convert to GB only
                            //    return _converted.gb.value >= 1 ? _converted.gb : _converted.mb;      ### old return statement
                            return {
                              rounded: parseFloat(_convertedToGb.toFixed(2)),
                              unit: "GB",
                              value: parseFloat(_convertedToGb)
                            }
                          }
                          // change the color of the progress bar when higher than 70% and 90% 
                          //var currentWidth = $('.progress-bar')[0].style.width;
                          //if (parseFloat(currentWidth, 10) < 100) {
                          //  $('.progress-bar').css('background-color', 'red');
                          //}
                        } else {
                          $(".completed-account-content").hide();
                        }
                        //add Tracking for shipped groupp
                        if (CommonData.Customer.TrackingInfo) {
                          for (var i in CommonData.Customer.TrackingInfo) {
                            CommonData.Customer.TrackingInfo[i] = convertDate(CommonData.Customer.TrackingInfo[i]);
                          }
                        }

                        function convertDate(trackingObj) {
                          for (var i in trackingObj) {
                            if (i != 'TrackingNumberData' && i != 'UPSLink' && trackingObj[i] != null && i != "IsPhone") {
                              trackingObj[i] = getFormatedDateFromEpoch(convertEpochDate(trackingObj[i]));
                            }
                          }
                          return trackingObj;
                        }
                      });
                    </script>
                    <script type="text/template" data-template="usage-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc"> <div class="flex-container ml10 pb0 m0">
        <!--//Data -->
            <div class="flex-item usageItem">
                <div class="p0">                  
                     <p class="lh"><h3>Data Used</h3></p>

                     <p class="lh"><span class="text-primaryblue">${dataUsed}</span>  ${dataUsedUnit}
                         out of 
                          <span class="text-primaryblue">${display_Total_Data_Available}</span>
                         <span id="dataAvailableUnit">${display_Total_Data_Available_Unit}</span>
                     </p>
                        <div class="meter" id="meter-data">
                          <span id="dataWidth"></span>
                        </div>
                    <small class="warning" id="data-warning"></small>
                      <small><span>${display_rounded} ${display_unit}</span><span> data available. </span><a href="/customer/members/shop/topups/data"><span class="text-primaryblue brand">Add Data</span></a></small>
               </div>
            </div>

            <!--//Minutes -->
            <div class="flex-item usageItem">
               <div class="p0">
                    
                        <p class="lh"><h3> Minutes Used</h3></p>

                         <p class="lh"><span class="text-primaryblue">${minutesUsed}</span>  
                             out of 
                             <span class="text-primaryblue">${Total_Minutes_Available}</span>                     
                         </p>
                       <div class="meter" id="meter-minutes">
                          <span id="minutesWidth"></span>
                        </div>
                        <small class="warning" id="minutes-warning"></small>
                        <small><span>${Total_Minutes_Left}</span><span> Minutes Available . </span><a href="/customer/members/shop/topups/minutes"><span class="text-primaryblue brand">Add Minutes</span></a></small>
                   </div>
            </div>
    </div>


    <div class="flex-container ml10 pb0 m0 b0 mb10">
                <div class="flex-item b0 p0 ml10">
                    <div>
                        <p class="m0">
                            <span><span style="font-size:1.2em;font-weight:700;">Text Messages Used: </span></span>
                            <span class="brand"><span class="text-primaryblue"><b>${Total_Text_Used}</b></span>
                            out of
                            <span class="text-primaryblue">
                            <b>UNLIMITED</b></span></span>
                        </p>
                      </div>
                </div>
                <div class="flex-item b0 p0">
                    <div class="ml10 pl30">
                        <small class="m0" style="color:#797979;">Note: Data, Text, and Talk usage may take <span class="brand">2-5 days</span> or longer to display accurately in <span class="brand">Q Link’s system.</span>  
                              <a href="#" id="open-notes" class="members-link" title="Details" onclick="return false">
                                  See Details </a> 

                        </small>                        
                     </div>
                </div>
        

    </div>
    
    <div class="open-notes-wrap ml10 pb0 b0 mb10">
        <small>
             <span>Please note that your prior month’s Lifeline minutes or data expire at 11:59 p.m. on the 1st of the month.</span>
             <span>(Example: The minutes you receive Sept 1st will expire Oct 1st.)</span><br />
             <span>Wireless roaming usage normally takes 2-10 days but could take 60+ days. Your usage information may become temporarily unavailable while it’s being processed. Talk usage may include voicemails and other unbilled calls.</span>
              <span>Talk / Text / Data usage time stamps may be off by 3 to 6 hours depending on your time zone.</span><br />
               <span>Data usage reporting can take 72 hours or longer. Your data usage displayed may not accurately reflect your actual usage.</span><br />
             <span>Q Link Wireless will update your usage details in My Q Link online every 3-6 hours.</span>
       </small>
    </div>

    <!--Note about usage-->
   
</script>
                    <script>
                      $(document).ready(function(e) {
                        $('#open-notes').click(function() {
                          if ($('.open-notes-wrap').css('display') == 'none') {
                            $('.open-notes-wrap').show();
                            $(this).text('Close Details');
                          } else {
                            $('.open-notes-wrap').hide();
                            $(this).text('See Details');
                          }
                        });
                      });
                    </script>
                    <div id="usageContainer-e3837a63-b1c7-4e82-bbb8-47222bb9a2bc">
                      <div class="flex-container ml10 pb0 m0">
                        <!--//Data -->
                        <div class="flex-item usageItem">
                          <div class="p0">
                            <p class="lh"></p>
                            <h3>Data Used</h3>
                            <p></p>
                            <p class="lh"><span class="text-primaryblue">5.4</span> GB out of <span class="text-primaryblue">UNLIMITED</span>
                              <span id="dataAvailableUnit"></span>
                            </p>
                            <div class="meter" id="meter-data">
                              <span id="dataWidth" style="width: 0%;"></span>
                            </div>
                            <small class="warning" id="data-warning" style="display: none;"></small>
                            <small><span>UNLIMITED </span><span> data available. </span><a href="/customer/members/shop/topups/data"><span class="text-primaryblue brand">Add Data</span></a></small>
                          </div>
                        </div>
                        <!--//Minutes -->
                        <div class="flex-item usageItem">
                          <div class="p0">
                            <p class="lh"></p>
                            <h3> Minutes Used</h3>
                            <p></p>
                            <p class="lh"><span class="text-primaryblue">78</span> out of <span class="text-primaryblue">UNLIMITED</span>
                            </p>
                            <div class="meter" id="meter-minutes">
                              <span id="minutesWidth" style="width: 0%;"></span>
                            </div>
                            <small class="warning" id="minutes-warning" style="display: none;"></small>
                            <small><span>UNLIMITED</span><span> Minutes Available . </span><a href="/customer/members/shop/topups/minutes"><span class="text-primaryblue brand">Add Minutes</span></a></small>
                          </div>
                        </div>
                      </div>
                      <div class="flex-container ml10 pb0 m0 b0 mb10">
                        <div class="flex-item b0 p0 ml10">
                          <div>
                            <p class="m0">
                              <span><span style="font-size:1.2em;font-weight:700;">Text Messages Used: </span></span>
                              <span class="brand"><span class="text-primaryblue"><b>0</b></span> out of <span class="text-primaryblue">
                                  <b>UNLIMITED</b></span></span>
                            </p>
                          </div>
                        </div>
                        <div class="flex-item b0 p0">
                          <div class="ml10 pl30">
                            <small class="m0" style="color:#797979;">Note: Data, Text, and Talk usage may take <span class="brand">2-5 days</span> or longer to display accurately in <span class="brand">Q Link’s system.</span>
                              <a href="#" id="open-notes" class="members-link" title="Details" onclick="return false">
                                  See Details </a>
                            </small>
                          </div>
                        </div>
                      </div>
                      <div class="open-notes-wrap ml10 pb0 b0 mb10">
                        <small>
                          <span>Please note that your prior month’s Lifeline minutes or data expire at 11:59 p.m. on the 1st of the month.</span>
                          <span>(Example: The minutes you receive Sept 1st will expire Oct 1st.)</span><br>
                          <span>Wireless roaming usage normally takes 2-10 days but could take 60+ days. Your usage information may become temporarily unavailable while it’s being processed. Talk usage may include voicemails and other unbilled
                            calls.</span>
                          <span>Talk / Text / Data usage time stamps may be off by 3 to 6 hours depending on your time zone.</span><br>
                          <span>Data usage reporting can take 72 hours or longer. Your data usage displayed may not accurately reflect your actual usage.</span><br>
                          <span>Q Link Wireless will update your usage details in My Q Link online every 3-6 hours.</span>
                        </small>
                      </div>
                      <!--Note about usage-->
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <!--device help-->
            <div id="deviceDetails" class="phoneBrandRow" style="margin-top: 20px;">
              <div class="panel panel-primary">
                <div class="panel-header">
                  <div class="panel bg-gradient-grey">
                    <p>
                      <span class="panel-heading">Phone Info</span>
                    </p>
                  </div>
                  <div class="flex device phoneInfo">
                    <div id="phoneContainer" class="phone-img">
                      <div></div>
                    </div>
                    <div class="phoneInfoImg">
                      <img src="//resources.qlinkwireless.com/images/generic-phone.png" id="phone-img" class="pl20" width="0"><br>
                    </div>
                    <div class="flex pattern mobile-padding">
                      <div>
                        <p class="lh"><strong>Phone Brand Name: </strong>
                          <span class="lh" id="phoneManufacturerName">Hot Pepper</span>
                          <span class="lh1"> | <a href="/customer/members/shop/phones" class="members-link lh">Upgrade My Phone</a>
                          </span>
                        </p>
                        <p class="lh mr60"><strong>Lifeline Number: </strong><label id="phone" name="phone">279-944-5607</label>
                          <span class="lh1" id="showbyon"> | <a href="/customer/members/byon?phoneNumber=2799445607" class="members-link lh">Bring Your Own Number</a> </span>
                        </p>
                        <p>
                          <span class="lh1">
                            <a href="/customer/members/lines" title="Reset voicemail">
                                                    Reset Voicemail</a>
                          </span>
                        </p>
                      </div>
                    </div>
                  </div>
                  <div class="pl20">
                    <p class="moreInfo" style="display: block;"> If you recently received your phone in the mail and you've been unable to make calls, please contact Customer Support at <b class="brand">1-855-754-6543</b> for further
                      trouble-shooting. <span id="warranty">
                        <small>
                          <a href="./Warranty.aspx" target="_blank">
                                                See Phone Warranty
                                            </a>
                        </small>
                      </span>
                    </p>
                  </div>
                </div>
              </div>
              <script type="text/template" data-template="makeAnAppointmentAlert"> <style>
                            #make-an-appointment {
                                padding: 0px;
                            }
                            #make-an-appointment .banner {
                                position: relative;
                                display: flex;
                                justify-content: space-between;
                                font-family: 'Open Sans';
                                padding: 15px 20px;
                            }
                            #make-an-appointment h1 {
                                color: #000000;
                                font-weight: bold;
                                font-size: 22px;
                                line-height: 30px;
                                border-bottom: none;
                                padding-bottom: 5px;
                            }
                            #make-an-appointment .right-container {
                                padding-left: 15px;
                                display:block;
                            }
                            #make-an-appointment p {
                                margin: 0px; 
                                font-weight: normal;
                                font-size: 16px;
                                line-height: 22px;
                            }

                            #make-an-appointment .left-container {
                                color: #fff;
                                display: grid;
                                padding-right: 200px;
                            }

                            #make-an-appointment .make-an-appointment {
                                font-weight: 600;
                                font-size: 19px;
                            }

                            #make-an-appointment h2 {
                                font-size: 18px;
                                font-weight: normal;
                                line-height: 50px;
                            }

                            #make-an-appointment .checkmark-container {
                                font-size: 12px;
                                font-weight: normal;
                                display: grid;
                                margin-left: 5px;
                            }

                            #make-an-appointment button {
                                color: #1A80CC;
                                padding: 10px 35px;
                                border-radius: 25px;
                                width: 200px;
                                margin-top: 15px;
                                font-weight: 600;
                                font-size: 16px;
                                border: 1px solid #1A80CC;
                                background-color: unset;
                                line-height: 22px;
                            }
                            #make-an-appointment button img {
                                padding-left: 10px;
                                padding-bottom: 3px;
                            }

                            #make-an-appointment .trust-image-container {
                                display: grid;
                                align-items: end;
                            }
                            #make-an-appointment .trust-image-container img {
                                position: absolute;
                                bottom: 0px;
                                right: 20px;
                            }
                            #make-an-appointment .mobile {
                                display: none;
                            }
                            #make-an-appointment .button-container {
                                justify-content: start;
                            }
                            @media (max-width: 767px) {
                                
                                #make-an-appointment h1 {
                                    font-size: 18px;
                                    line-height: 24px;
                                }
                                #make-an-appointment p {
                                    font-size: 14px;
                                    line-height: 19px;
                                }
                                #make-an-appointment .trust-image-container {
                                    display: flex;
                                    justify-content: center;
                                    padding-top: 15px;
                                }
                                #make-an-appointment .trust-image-container img {
                                    
                                    position: absolute;
                                    max-width: 45%;
                                    right: 5px;
                                }
                                #make-an-appointment .banner {
                                    border-radius: 0px;
                                }
                                #make-an-appointment .make-an-appointment {
                                    margin-top: 30px; 
                                    font-size: 18px;
                                }
                                #make-an-appointment .mobile {
                                    display: block;
                                }
                                #make-an-appointment .desktop {
                                    display: none;
                                }
                                #make-an-appointment .left-container {
                                    padding-right: unset;
                                }
                            }
                            @media (max-width: 500px) {
                                #make-an-appointment .trust-image-container {
                                    padding-top: 100px;
                                }
                            }
                            #make-an-appointment .button-container {
                                display: flex;
                            }
                            @media (max-width: 420px) {
                                #make-an-appointment .banner {
                                    display: block;
                                }
                                #make-an-appointment {
                                    text-align: center;
                                }
                                #make-an-appointment .button-container {
                                    display: block;
                                }
                            }


                        </style>
                        <div class="alert mb10" id="make-an-appointment">
                            <div class='banner'>
                                <div class='image-container'>
                                    <img class="" src='https://qlw.azureedge.net/images/activate/techgirl.png' alt="" /> 
                                </div>
                                <div class='right-container'>
                                    <h1>Get Expert Activation Help</h1>
                                    <p>Book an appointment today and get real-time, over the phone assistance from a trained specialist - with zero wait time.</p>
                                    <div class="button-container">
                                        <button type="button" onclick="window.location.href='/members/loginredirect.aspx'">
                                            Book NOW
                                            <img class="" src='https://qlw.azureedge.net/images/activate/calendar-font-awesome.png' alt="" /> 
                                        </button>
                                      </div>
                                </div>
                              </div>
                        </div>
                    </script>
              <script type="text/template" data-template="upcomingAppointmentAlert"> <style>
                            #upcoming-appointment {
                                color: #8a6d3b;
                                background-color: #fcf8e3;
                                border-color: #faebcc;
                            }
                            #upcoming-appointment a {
                                text-decoration: underline;    
                            }
                        </style>
                        <div class="alert mb10" id="upcoming-appointment">
                            <i class="fa fa-calendar"></i> <b>Upcoming Appointment</b><br />
                            <span>
                                You're currently scheduled for an appointment on ${date} for ${time} to start using your FREE Cell Phone Service.
                                <br />
                                <a href="/customer/members/schedule-a-call">Reschedule</a> or <a href="javascript:void(0);" onclick="OverviewVm.cancelAppointment(event)">Cancel</a>
                            </span> 
                        </div>
                    </script>
              <script type="text/template" data-template="ebbModal"> <div class="migratemodal-container ebbModal">
                            <div id="closePopupMigration">
                                <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopup"></i></div>
                            </div>
                            <div class="img-container">
                                <img style="width: 137px; height: 52px;" src="//resources.qlinkwireless.com/images/logo.jpg" />
                            </div>
                            <div class="optIn" style="font-size: 12px; color: #333;">
                                Opt-in to get your FREE Emergency Broadband Benefit
                            </div>
                            <div class="ebbModalContent1">
                                Upgrade to<span> FREE UNLIMITED </span> Data With The Emergency Broadband Benefits
                            </div>


                            <div class="ebbUnlimited">
                                <div class="ebbSeal">
                                    <img class="desktop" src="//resources.qlinkwireless.com\members\images\ebb_new_seal.png" />

                                </div>
                                <div style="display: flex; flex-direction: column; margin: 5px">

                                    <div class="ebbData">
                                        <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                        UNLIMITED Data<div style="font-size: 12px">*</div>
                                    </div>
                                    <div class="ebbData">
                                        <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                        UNLIMITED Talk
                                    </div>
                                    <div class="ebbData">
                                        <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                        UNLIMITED Text
                                    </div>
                                    <div class="ebbData">
                                        <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                        NEW Tablet<div style="font-size: 12px">^</div>
                                    </div>
                                </div>
                                <div class="ebbSeal">
                                    <img class="desktop" src="//resources.qlinkwireless.com\members\images\modal_tablet.png" />

                                    <img class="mobile" src="//resources.qlinkwireless.com\members\images\modal_tablet_mobile.png" />
                                </div>

                            </div>
                            <div class="limited-time">
                                * Limited-time Data and Tablet offer as part of the Emergency Broadband Benefit
                            </div>
                            <div class="ebbTerms">
                                As a qualified Lifeline benefit participant, you are also eligible to receive the temporary Emergency Broadband Benefit (EBB). To help Americans during these continued, unprecedented times the US government has implemented the Emergency Broadband Benefit program. This will provide eligible customers with an UNLIMITED data, talk & text plan that will help them navigate the world of virtual schooling, remote work, and tele-health. <br>

<br>
The Emergency Broadband Benefit (EBB) program will give you UNLIMITED data, talk & text. This is a limited-time benefit and once the benefits are available, they will automatically be added to your account. The EBB program started on May 12, 2021. Once the EBB program is over, we will notify you and will revert to receiving only the standard FREE lifeline plan where available and if you are eligible. You may keep your UNLIMITED data service by paying the standard rate available at the time. Our standard terms and conditions apply. </br>


<br>
The EBB is a temporary program operated by the Federal Communications Commission (FCC) that provides discounts on monthly broadband Internet access service and certain connected devices. The EBB monthly service and device discounts are non-transferrable. An eligible household is limited to one monthly service discount and one device discount. EBB Program benefits may be obtained from any participating provider of your choosing and your monthly service benefit may be transferred to another provider at any time. </br>


<br>
By Opting-in below, you authorize Q Link, for the purpose of applying for, determining eligibility, enrolling in and seeking reimbursement of EBB service and device benefits, to collect, use, share and retain your personal information, including but not limited to information required for the purpose of establishing eligibility for and enrolling in the Lifeline program, and including, but not limited to, full name, full residential address, date of birth, last four digits of social security number, telephone number, eligibility criteria and status, the date on which the EBBP service discount was initiated and if applicable, terminated, EBBP connected device distribution date/type/make and model/status, usage status and other compliance requirements, the amount of support being sought for the service and/or device, and information necessary to establish identity and verifiable address, to the Universal Service Administrative Company (USAC) to ensure proper administration of the EBBP service and/or connected device benefits. You also agree that any state, local, Tribal government, school or school district, may share information about my receipt of benefits that would establish eligibility for the EBBP, and that such information will be used only to determine EBB eligibility. Failure to provide this FCC mandated consent will result in you being denied the Emergency Broadband Benefit service and/or the connected device benefits. </br>


<br>
To confirm that you have read and understand these disclosures and to OPT-IN to your EBB discounted broadband service. Click below to opt-in. </br>


<br>
*The Emergency Broadband Benefit (EBB) is a limited-time program that provides discounts on monthly broadband Internet access service and certain connected devices, with a start date of May 12, 2021.This is a supplemental plan applied to your account. EBB Program discounts are funded by the US Government's Coronavirus relief effort and administered by the Federal Communications Commission (FCC). By opt-ing in you are agreeing to receive the EBB Program broadband benefit and agreeing you would like a new tablet, which you will be charged a co-payment of ten dollars and one cent. The EBB monthly service and device discounts are non-transferable. Eligible households are limited to one monthly service discount and one device discount. You may continue to receive your current Lifeline plan without enrolling in the EBB Program. Eligible subscribers may obtain EBB-supported broadband service from any participating provider of their choosing and a subscriber can transfer their Emergency Broadband Benefit to another provider at any time. By opting-in below, you authorize Q Link, for the purpose of applying for, determining eligibility, enrolling in and seeking reimbursement of EBB service and device benefits, to collect, use, share and retain your personal information, including but not limited to information required for the purpose of establishing eligibility for and enrolling in the Lifeline program, and including, but not limited to, full name, full residential address, date of birth, last four digits of social security number, telephone number, eligibility criteria and status, the date on which the EBBP service discount was initiated and if applicable, terminated, EBBP connected device distribution date/type/make and model/status, usage status and other compliance requirements, the amount of support being sought for the service and/or device, and information necessary to establish identity and verifiable address, to the Universal Service Administrative Company (USAC) to ensure proper administration of the EBBP service and/or connected device benefits. For more information about this program please visit www.fcc.gov/broadbandbenefit. You also agree that any state, local, Tribal government, school, or school district, may share information about my receipt of benefits that would establish eligibility for the EBBP, and that such information will be used only to determine EBB eligibility. Failure to provide this FCC mandated consent will result in you being denied the Emergency Broadband Benefit service and/or the connected device benefits. Participating customers will receive UNLIMITED Data, Talk and Text. Once the program ends you will be notified. If you are a current customer, your plan will be reverted to the standard rates and subject to our standard Terms and Conditions. </br>

</br>
^This is a limited-time offer that is subject to product availability. Customers will receive an invoice for a co-payment of $10.01 as per the EBB. Only one device discount can be applied to an eligible customer's household. EBB Terms & Conditions apply.
                            </div>
                            <div class="ebbTermsCont">

                                <a  class="textwhite btn-link" rel="noopener" href="/terms/" target="_blank">Click Here</a>  to view full terms in browser
                            </div>
                            <div class="ebbBtn">

                                <button data-action="ebb" id="ebb-migration-action-cta" class="optInBtn" onclick="OverviewVm.HandleEbbOptin()">
                                    Continue
                                </button>
                            </div>
                        </div>
                    </script>
              <script type="text/template" data-template="amazonPrimeActiveForEligibilityModal"> <div class="migratemodal-container ebbModal">
                            <div id="closePopupMigration">
                                <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopup"></i></div>
                            </div>
                            <div>
                              <p>Once you insert your SIM card and start your service with Q Link, you'll receive a link with instructions on how to start your Amazon subscription on us.</p>
                            </div>
                        </div> 
                    </script>
              <script type="text/template" data-template="ebbTransferModal"> <div class="migratemodal-container ebbModal">
                            <div id="closePopupMigration">
                                <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopup"></i></div>
                            </div>
                            <div class="img-container">
                                <img style="width: 137px; height: 52px;" src="//resources.qlinkwireless.com/images/logo.jpg" />
                            </div>
                            <div class="optIn" >
                                <div class="ebb-Date">
                                    PLEASE TAKE ACTION
                                </div>
                                <div class="acp-Date">
                                    <div class="acp-optin">
                                        TAKE ACTION NOW:
                                    </div>
                                    <div class="acp-confirm">
                                       Congratulations!
                                    </div>
                                </div>
                            </div>
                            <div class="ebbModalContent1">
                                <div class="ebb-Date">
                                    Confirm to receive your FREE Emergency Broadband Benefit
                                </div>
                                <div class="acp-Date">
                                    <div class="acp-optin">
                                        Opt-In to The Affordable Connectivity Program
and Upgrade to FREE UNLIMITED Data
                                    </div>
                                    <div class="acp-confirm header">
                                      Confirm below to use your
Affordable Connectivity Program (ACP)
benefit on our 4G LTE/5G network!
                                    </div>
                                </div>
                            </div>
                            <div class="acp-info acp-optin">
                                Confirm below and opt-in to the Affordable Connectivity Program and get a FREE monthly upgrade to
                            </div>
                           
                      
                            <div class="ebbUnlimited">
                                 <div class="acp-Date">
                                     <div class="acp-confirm">
                                        <img class="ribbon" src="//resources.qlinkwireless.com/images/government_program_seal_acp.png" />
                                     </div>
                                     <div class="acp-optin gbp">
                                        <img class="ribbon" src="//resources.qlinkwireless.com/images/government_program_seal_acp.png" />
                                     </div>
                                </div>
                                 <div class="ebbSeal ebb-Date">
                                     <img class="desktop" src="//resources.qlinkwireless.com\members\images\ebb_new_seal.png" />
                                </div>
                                <div style="display: flex; flex-direction: column; margin:5px">

                                    <div class="ebbData">
                                        <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                    UNLIMITED Data<div style="font-size:12px">*</div>
                                </div>
                                <div class="ebbData">
                                    <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                    UNLIMITED Talk
                                </div>
                                <div class="ebbData">
                                    <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                    UNLIMITED Text
                                </div>
                                <div class="ebbData acp-Date acp-optin">
                                    <img src="//resources.qlinkwireless.com/img/icons/approved_small_icon.png" />
                                    NEW Tablet
                                    <sup>^</sup>
                                </div>

                                </div>
                                <div class="acp-Date acp-optin">
                                    <img class="tablet" src="//resources.qlinkwireless.com/images/modal_tablet.png" />
                                </div>

                                
                            </div>
                            <div class="limited-time" id="ebbTransferConsent" style="text-align:left;margin-right:10px; display:none;">
                                
                            <div class="form-group">

                                <div class="">
                                </div>
                                <div class="control-label">
                                     <span class="optin-consent">
                                    <div class="input-group" style="float:left;margin-right:10px;">
                                        <input type="checkbox" checked onChange="OverviewVm.transferConsent(this)" />
                                    </div>



                                         <span class="ebb-Date">
                                            I consent to enroll in or transfer any existing Emergency Broadband Benefit program to Q Link Wireless to get FREE Unlimited Data, Talk, and Text.
                                         </span>
                                         <span class="acp-Date">
                                             I consent to enroll in the ACP or transfer any existing Emergency Broadband Benefit/ACP service to Q Link Wireless to get FREE Unlimited Data, Talk, and Text and a New Tablet.
If you've already used the one-time device discount you will not be eligible for this new tablet offer.
                                         </span>
                                        
                                     </span>
                                </div>

                            </div>
                            </div>
                            <div id="youPlanIncludes">
                                <span class="youPlanIncludesText" >Your Lifeline Plan includes: 4.5 Gigs of Data  |  1000 Minutes | UNLIMITED Texts.</span>
                            </div>

                            <div class="ebbTerms">
                                <div class="ebb-Date">
                                    As a qualified Lifeline benefit participant, you are also eligible to receive the temporary Emergency Broadband Benefit (EBB). To help Americans during these continued, unprecedented times the US government has implemented the Emergency Broadband Benefit program. This will provide eligible customers with an UNLIMITED data, talk & text plan that will help them navigate the world of virtual schooling, remote work, and tele-health. <br>

<br>
The Emergency Broadband Benefit (EBB) program will give you UNLIMITED data, talk & text. This is a limited-time benefit and once the benefits are available, they will automatically be added to your account. The EBB program started on May 12, 2021. Once the EBB program is over, we will notify you and will revert to receiving only the standard FREE lifeline plan where available and if you are eligible. You may keep your UNLIMITED data service by paying the standard rate available at the time. Our standard terms and conditions apply. </br>


<br>
The EBB is a temporary program operated by the Federal Communications Commission (FCC) that provides discounts on monthly broadband Internet access service and certain connected devices. The EBB monthly service and device discounts are non-transferrable. An eligible household is limited to one monthly service discount and one device discount. EBB Program benefits may be obtained from any participating provider of your choosing and your monthly service benefit may be transferred to another provider at any time. </br>


<br>
By Opting-in below, you authorize Q Link, for the purpose of applying for, determining eligibility, enrolling in and seeking reimbursement of EBB service and device benefits, to collect, use, share and retain your personal information, including but not limited to information required for the purpose of establishing eligibility for and enrolling in the Lifeline program, and including, but not limited to, full name, full residential address, date of birth, last four digits of social security number, telephone number, eligibility criteria and status, the date on which the EBBP service discount was initiated and if applicable, terminated, EBBP connected device distribution date/type/make and model/status, usage status and other compliance requirements, the amount of support being sought for the service and/or device, and information necessary to establish identity and verifiable address, to the Universal Service Administrative Company (USAC) to ensure proper administration of the EBBP service and/or connected device benefits. You also agree that any state, local, Tribal government, school or school district, may share information about my receipt of benefits that would establish eligibility for the EBBP, and that such information will be used only to determine EBB eligibility. Failure to provide this FCC mandated consent will result in you being denied the Emergency Broadband Benefit service and/or the connected device benefits. </br>


<br>
To confirm that you have read and understand these disclosures and to OPT-IN to your EBB discounted broadband service. Click below to opt-in. </br>


<br>
*The Emergency Broadband Benefit (EBB) is a limited-time program that provides discounts on monthly broadband Internet access service and certain connected devices, with a start date of May 12, 2021.This is a supplemental plan applied to your account. EBB Program discounts are funded by the US Government's Coronavirus relief effort and administered by the Federal Communications Commission (FCC). By opt-ing in you are agreeing to receive the EBB Program broadband benefit and agreeing you would like a new tablet, which you will be charged a co-payment of ten dollars and one cent. The EBB monthly service and device discounts are non-transferable. Eligible households are limited to one monthly service discount and one device discount. You may continue to receive your current Lifeline plan without enrolling in the EBB Program. Eligible subscribers may obtain EBB-supported broadband service from any participating provider of their choosing and a subscriber can transfer their Emergency Broadband Benefit to another provider at any time. By opting-in below, you authorize Q Link, for the purpose of applying for, determining eligibility, enrolling in and seeking reimbursement of EBB service and device benefits, to collect, use, share and retain your personal information, including but not limited to information required for the purpose of establishing eligibility for and enrolling in the Lifeline program, and including, but not limited to, full name, full residential address, date of birth, last four digits of social security number, telephone number, eligibility criteria and status, the date on which the EBBP service discount was initiated and if applicable, terminated, EBBP connected device distribution date/type/make and model/status, usage status and other compliance requirements, the amount of support being sought for the service and/or device, and information necessary to establish identity and verifiable address, to the Universal Service Administrative Company (USAC) to ensure proper administration of the EBBP service and/or connected device benefits. For more information about this program please visit www.fcc.gov/broadbandbenefit. You also agree that any state, local, Tribal government, school, or school district, may share information about my receipt of benefits that would establish eligibility for the EBBP, and that such information will be used only to determine EBB eligibility. Failure to provide this FCC mandated consent will result in you being denied the Emergency Broadband Benefit service and/or the connected device benefits. Participating customers will receive UNLIMITED Data, Talk and Text. Once the program ends you will be notified. If you are a current customer, your plan will be reverted to the standard rates and subject to our standard Terms and Conditions. </br>

</br>
^This is a limited-time offer that is subject to product availability. Customers will receive an invoice for a co-payment of $10.01 as per the EBB. Only one device discount can be applied to an eligible customer's household. EBB Terms & Conditions apply.
                                </div>
                                <div class="acp-Date">
                                    The Affordable Connectivity Program (ACP) is a government benefit program that reduces the customer’s broadband internet access service bill and is operated by the Federal Communications Commission (FCC) which provides discounts on monthly broadband Internet access service and certain connected devices. <br /><br />
The ACP reduces the customer’s broadband service bill by providing a discount of up to $30 on monthly broadband Internet service, a single discount of up to $100 on certain connected devices to eligible households, and a discount of up to $75 per month for households on qualifying Tribal lands. Eligibility will be determined by the National Verifier. An ACP eligible household is limited to one monthly service discount and a single one-time device discount. The benefit cannot be transferred to other individuals. Discounted devices are subject to availability and to a $10.01 co-pay. If the FCC announces the end of the ACP, we will end our ACP service offer, or if your household is no longer eligible, we will notify you, and you will revert to receiving only the standard FREE basic Lifeline plan if you are still eligible for Lifeline. You may also have the option to choose from our other service plans available at that time by paying the applicable undiscounted rate plus applicable fees and taxes. Eligible consumers may get ACP-supported broadband service from any participating provider of their choosing. The household must provide consent that it acknowledges it is limited to one ACP benefit transfer transaction per calendar month. <br /><br />
Lifeline program participants are eligible to participate in the ACP. Your ACP benefit is separate from your Lifeline benefit. Your household can receive only one Lifeline and one ACP benefit. Your ACP benefit can be separate or combined with your Lifeline benefit. Lifeline participants may maintain their existing Lifeline services without enrolling in the ACP and may choose to take the ACP benefit from another service provider other than their existing Lifeline provider. For more information about the ACP and your eligibility, please visit www.fcc.gov/acp. <br /><br />
Upload/download speeds will be determined by your particular service plan, and other factors, including your device, network availability from our underlying carrier, your proximity to cellular towers, and environmental factors may affect speeds. <br /><br />
By Opting-in to the ACP, you authorize Q Link Wireless, for the purpose of applying for, determining eligibility, enrolling in and seeking reimbursement of ACP service and device benefits, to collect, use, share and retain your personal information, including but not limited to information required for the purpose of establishing eligibility for and enrolling in the ACP and/or Lifeline program, and including, but not limited to, full name, full residential address, date of birth, last four digits of social security number, telephone number, eligibility criteria and status, the date on which the ACP service discount was initiated and if applicable, terminated, ACP connected device distribution date/type/make and model/status, usage status and other compliance requirements, the amount of support being sought for the service and/or device, and information necessary to establish identity and verifiable address, to the Universal Service Administrative Company (USAC) to ensure proper administration of the ACP service and/or connected device benefits. You also agree that any state, local, Tribal government, school, or school district, may share information about the receipt of benefits that would establish eligibility for the ACP, and that such information will be used only to determine ACP eligibility. Failure to provide this FCC mandated consent will result in you being denied the ACP service and/or the connected device benefits. <br /><br />
You also confirm that, if you are found to already be receiving an ACP benefit from another provider, you consent that your ACP benefit will be applied to Q Link Wireless service and will no longer be applied to service retained from the transfer-out provider and you understand that you will lose the benefit from your former provider. Participating subscribers can only transfer their ACP benefit between providers once in a given calendar month. Q Link Wireless will provide written notice to you, the subscriber, indicating the date the transfer was initiated. Click to confirm that you have read and understand the disclosures and want to OPT-IN to the ACP discounted broadband service with Q Link Wireless. <br /><br />
^ACP discounted device offer is subject to product availability. Customers will be notified of device shipment and must contribute a co-payment of $10.01. Tablet offer varies by state. ACP Terms & Conditions apply.
                                </div>
                            </div>
                            <div class="optInSuccess">
                                <img src="//resources.qlinkwireless.com/images/documents_area/Green_Check_Ellipse.png" /><span class="ebb-Date">Congratulations! You confirmed to receive the EBB benefits for the next 30 days.</span>
                                <span class="acp-Date">Congratulations! You confirmed to receive the ACP benefit for the next 30 days.</span>
                            </div>
                            <div class="ebbTermsCont">

                              <a  class="textwhite btn-link" rel="noopener" href="/terms/" target="_blank">Click Here</a>  to view full terms in browser
                            </div>
                            <div class="ebbBtn">
                                <button data-action="ebb" id="ebb-migration-action-cta" class="optInBtn" onclick="OverviewVm.HandleEbbOptin({ 'source': 'members-ACP', 'ACP': true})">
                                    <div class="acp-optin">
                                        Opt-In
                                    </div>   
                                    <div class="acp-confirm">
                                          Confirm
                                       </div>
                                </button>
                                <button id="closeEbbModal" class="closePopup optInBtn" >
                                     Continue
                                </button>
                            </div>
                            <div class="ebb-notice ebb-Date">
                                <span ><img src="//resources.qlinkwireless.com/images/alert_icon.png" /> 
                                    Q Link Wireless requires EBB participants to confirm their continued service every month.</span>
                            </div>
                        </div>                        
                    </script>
              <script type="text/template" data-template="ACPTransferLockModal"> <style>
                            #transfer-acp-ebb_approved {
                                text-align: center;
                            }

                            #transfer-acp-ebb_approved p {
                              font-size:14px !important;
                            }

                            #ebb-approved .acp-unlimited img {
                                height: 20px;
                            }

                            #ebb-approved .opt-in-Subheader {
                                padding-top: 10px;
                            }

                            #ebb-approved .terms-link {
                                font-size: 10px;
                                padding: 5px 0;
                            }

                            #ebb-approved .opt-in-Subheader strong {
                                font-size: 22px;
                            }

                            #ebb-approved .opt-in-Subheader p {
                                font-size: 15px !important;
                            }

                            #ebb-approved .acp-unlimited p {
                                font-weight: bold;
                            }

                            .acpTerms {
                                overflow-y: scroll;
                                height: 100px;
                                font-size: 10px;
                                margin: 20px;
                                padding: 10px;
                                background-color: #DCDCDC;
                                border: 1px solid #C9C9C9;
                                text-align:left;
                            }

                            #ebb-approved {
                                display: flex;
                                justify-content: center;
                                position: relative;
                                z-index: 999;
                                margin-top: -66px;
                            }

                            #ebb-approved .ebb-container {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                flex-direction: column;
                                text-align: center;
                                background-color: #ffffff;
                                box-shadow: 0px 3px 6px 0px #00000029;
                                margin: 30px 10px;
                                border-radius: 7px;
                            }

                            #ebb-approved .inner-container {
                                display: grid;
                                gap: 5px;
                                width: 600px;
                                max-height: 97%;
                            }

                            #ebb-approved .header {
                                font-size: 39px;
                                font-weight: bold;
                            }

                            #ebb-approved .image-container {
                                margin: 0 auto;
                                text-align: center;
                            }

                            #ebb-approved .checkbox-container {
                                display: grid;
                                grid-template-columns: 5% 95%;
                                text-align: left;
                                font-size: 15px !important;
                            }

                            #ebb-approved .consent-error {
                                display: none;
                                font-size: 11px;
                                text-align: left;
                                color: #FF0000;
                                padding-top: 10px;
                            }

                            #ebb-approved .continueBtn-container button {
                                width: 200px;
                                background-color: #0185D8;
                                color: #ffffff;
                                border: none;
                                padding: 10px;
                                border-radius: 20px;
                                font-weight: 600;
                            }

                            #ebb-approved .continueBtn-container button[disabled] {
                                background-color: #EAEAEA;
                                color: #747474;
                            }

                            .header, .opt-in-Subheader, .acp-info, .checkbox-container, .terms-link, .continueBtn-container  {
                                text-align: center;
                            }

                            .acp-info .acp-unlimited {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                gap: 10px;
                            }

                            #ebb-approved.migratemodal-container {
                                overflow-y: visible;
                            }
                            @media only screen and (min-width: 768px) {
                                 #ebb-approved.migratemodal-container  {
                                    max-height: calc(100vh - 106px);
                                    overflow-y: scroll;
                                    scrollbar-width: none; /* Firefox */
                                    -ms-overflow-style: none;  /* Internet Explorer 10+ */
                                    margin-top: 0px;
                                }
                                #ebb-approved.migratemodal-container ::-webkit-scrollbar { /* WebKit */
                                    width: 0;
                                    height: 0;
                                }
                            }

                            .dynamicPopup {
                                display: flex;
                                justify-content: center;
                                overflow: hidden;
                            }

                            .fa-info-circle{
                              position: relative;
                              color:#59c1fd;
                            }
                            .fa-info-circle span{
                              display:none;
                              position: absolute;
                              width: 177px;
                              color: #fff;
                              background-color: #1D1D1D;
                              padding: 15px;
                              font-family: 'Open Sans';
                              font-size: 11px;
                              top: 8px;
                              left: 10px;
                              font-weight: normal;
                            }
                            .fa-info-circle:hover span{
                              display:block
                            }

                            .backgroundTransparentDark {
                                background: rgba(0,0,0,0.5)
                            }

                            .migratemodal-container {
                                 max-height: 97%;
                                 padding: 15px;
                            }

                            #closePopup {
                                margin-top: 10px;
                            }

                            .acp-info .acp-unlimited p {
                                margin: 5px;
                            }
                            #amazon-offer p {
                                margin-top: 0px;
                                font-size: 12px;
                            }
                            #amazon-offer h4 {
                                margin-top: 0px;
                            }
                            #amazon-offer i {
                                font-size: 12px;
                                color: #108cda;
                            }
                            

                            @media only screen and (min-width: 320px) and (max-width: 768px) {
                                #ebb-approved {
                                    margin-top: 0;
                                }

                                #ebb-approved .ebb-container {
                                    box-shadow: none;
                                }

                                #ebb-approved .acp-unlimited {
                                    grid-template-columns: 7% 75%;
                                }

                                #ebb-approved .inner-container {
                                    padding: 0;
                                    width: 100%;
                                }

                                #ebb-approved .header {
                                    font-size: 24px;
                                }

                                #ebb-approved .image-container {
                                }

                                #ebb-approved .checkbox-container {
                                    grid-template-columns: 10% 90%;
                                    font-size: 12px !important;
                                }

                                #ebb-approved .consent-error {
                                }

                                #ebb-approved .acp-unlimited {
                                    grid-gap: 10px;
                                }

                                #ebb-approved .opt-in-Subheader strong {
                                    font-size: 18px !important
                                }

                                #ebb-approved .opt-in-Subheader p {
                                    font-size: 14px !important
                                }

                                #ebb-approved .checkbox-container {
                                    font-size: 14px;
                                }

                                #ebb-approved .acpTerms {
                                    margin: 10px;
                                }
                            }
                        </style>

                        <div id="ebb-approved" class="migratemodal-container">
                            <div class="inner-container">

                                <div>
                                    <div id="closePopupMigration">
                                        <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopup"></i></div>
                                    </div>
                                    <div class="header">
                                        <span id="ebb-approved-title">
                                            You’re approved!
                                        </span>                      
                                    </div>
                                    <div class="image-container">
                                      <img class="ribbon" src="//resources.qlinkwireless.com/images/gov_sea_approved_check.jpg" />
                                    </div>
                                    <div class="opt-in-Subheader">
                                       <strong>Upgrade to the Affordable Connectivity Program</strong>
                                        <p>Confirm below and opt-in to the Affordable Connectivity Program and get a FREE monthly upgrade to:</p>
                                    </div>
                                    <div class="acp-info">
                                        <div class="acp-unlimited">
                                            <img src="//resources.qlinkwireless.com/img/icons/greencheck.png" />
                                           <p>UNLIMITED Data</p>
                                        </div>
                                        <div class="acp-unlimited">
                                            <img src="//resources.qlinkwireless.com/img/icons/greencheck.png" />
                                           <p>UNLIMITED Talk</p>
                                        </div> 
                                        <div class="acp-unlimited">
                                            <img src="//resources.qlinkwireless.com/img/icons/greencheck.png" />
                                           <p>UNLIMITED Text</p>
                                        </div>
                                    </div>
                                    <div id="transfer-acp-ebb_approved">
                                      <p>We see that you have used your ACP benefit in the last service month,<br>but you can still transfer to Q Link Wireless on  <b>${nextMonth}</b>.
                                        <i class="fa fa-info-circle" aria-hidden="true">
                                          <span class="tool-tip">An ACP subscriber is limited to one Affordable Connectivity Program benefit transfer transaction per service month.</span>
                                        </i>                      
                                      </p>
                                    </div>
                                    <div class="checkbox-container">
                                        <div>
                                            <input checked="checked" type="checkbox" id="consent" name="consent" value="consent" onclick="OverviewVm.validateConsentCheckbox()">
                                        </div>
                                        <div>I consent to enroll in, or transfer any existing ACP benefit after reviewing the Affordable Connectivity Program disclosures to Q Link Wireless to get FREE Unlimited Data, Talk, and Text.
                                            <div class="consent-error">
                                                You selected the basic Lifeline Plan that includes: 4.5 Gigs of Data, 1000 Minutes & Unlimited Texts.
                                            </div>
                                        </div>
                                    </div>
                                    <div class="acpTerms">
                                        The Affordable Connectivity Program (ACP) is a government benefit program that reduces the customer’s broadband internet access service bill and is operated by the Federal Communications Commission (FCC) that which provides discounts on monthly broadband Internet access service and certain connected devices. The ACP monthly service and device discounts are not transferrable to other households or individuals. An eligible household is limited to one monthly service discount and one device discount. Eligibility for the ACP will be determined by the National Verifier and National Lifeline Accountability Database, administered by the Universal Service Administrative Company (USAC), or an alternative verification process approved by the FCC. The household may obtain ACP-supported broadband service from any participating provider of its choosing and may transfer to another provider once per calendar month. Upload/download speeds will be determined by your particular service plan, and other factors, including your device, network availability from our underlying carrier, your proximity to cellular towers, and environmental factors may affect speeds. Lifeline program participants are eligible to participate in the ACP. Your ACP benefit is separate from your Lifeline benefit. Your household can receive only one Lifeline and one ACP benefit. Your ACP benefit can be separate or combined with your Lifeline benefit. Lifeline participants may maintain their existing Lifeline services without enrolling in the ACP and may choose to take the ACP benefit from another service provider. If the FCC announces the end of the ACP, we will discontinue our ACP service offer, or if your household is no longer eligible, we will notify you, and you will revert to receiving the standard FREE basic Lifeline plan where available and if you are eligible. During the application and transfer process, Q Link Wireless will use your service address zip code to determine your time zone. By Opting-in to the ACP, you authorize Q Link Wireless, for the purpose of applying for, determining eligibility, enrolling in and seeking reimbursement of ACP service and device benefits, to collect, use, share and retain your personal information, including but not limited to information required for the purpose of establishing eligibility for and enrolling in the ACP and/or Lifeline program, and including, but not limited to, full name, full residential address, date of birth, last four digits of social security number, telephone number, eligibility criteria and status, the date on which the ACP service discount was initiated and if applicable, terminated, ACP connected device distribution date/type/make and model/status, usage status and other compliance requirements, the amount of support being sought for the service and/or device, and information necessary to establish identity and verifiable address, to the Universal Service Administrative Company (USAC) to ensure proper administration of the ACP service and/or connected device benefits. You also agree that any state, local, Tribal government, school, or school district, may share information about the receipt of benefits that would establish eligibility for the ACP, and that such information will be used only to determine ACP eligibility. Failure to provide this FCC mandated consent will result in you being denied the ACP service and/or the connected device benefits. You also confirm that, if you are found to already be receiving an ACP benefit from another provider, you consent that your ACP benefit will be applied to Q Link Wireless service and will no longer be applied to service retained from the transfer-out provider and you understand that you will lose the benefit from your former provider. Participating subscribers can only transfer their ACP benefit between providers once in a given calendar month. Q Link Wireless will provide written notice to you, the subscriber, indicating the date the transfer was initiated. Click to confirm that you have read and understand the disclosures and want to OPT-IN to the ACP discounted broadband service with Q Link Wireless. 
     *The Affordable Connectivity Program (ACP) is a FCC benefit program, an independent U.S. government agency, that reduces the customer’s broadband internet access service bill by providing a discount of up to $30 on monthly broadband Internet service, a single discount of up to $100 on certain connected devices to eligible households, and a discount of up to $75 for Tribal lands. Eligibility will be determined by the National Verifier. An ACP eligible household is limited to one monthly service discount and a single one-time device discount. The benefit cannot be transferred to other individuals. Discounted devices are subject to availability and to a $10.01 co-pay. If the FCC announces the end of the ACP, we will end our ACP service offer, or if your household is no longer eligible, we will notify you, and you will revert to receiving only the standard FREE basic Lifeline plan if you are still eligible for Lifeline. You may also have the option to choose from our other service plans available at that time by paying the applicable undiscounted rate plus applicable fees and taxes. Eligible consumers may get ACP-supported broadband service from any participating provider of their choosing. The household must provide consent that it acknowledges it is limited to one ACP benefit transfer transaction per calendar month. Lifeline subscribers may continue their existing Lifeline services without enrolling in the ACP and may choose to take the ACP benefit from a service provider other than their existing Lifeline provider. For more information about the ACP and your eligibility, please visit www.fcc.gov/acp.
     ^ACP discounted device offer is subject to product availability. Customers will be notified of device shipment and must contribute a co-payment of $10.01. Tablet offer varies by state. ACP Terms & Conditions apply.
    
                                    </div>
                                    <div class="terms-link">
                                        <a  rel="noopener" href="/terms" target="_blank">Click Here</a>  to view full terms in browser
                                    </div>
                                    <div class="continueBtn-container">
                                        <button id="ebbOptIn" onclick="OverviewVm.ebbOptinApiCall(true)">
                                          <span>
                                              Opt-In Now
                                          </span>
                                        </button>
                                        <button id="NOebbOptin" style="display:none" type="button" onclick="OverviewVm.NOebbOptin()">
                                            Continue
                                        </button>                        
                                    </div>
                                </div>

                                <div id="ACPStatus-container" class="radio-container"></div>
                            </div>
                        </div>

                    </script>
              <script type="text/template" data-template="llTransferModal"> <div class="migratemodal-container ebbModal">
                            <div id="closePopupMigration">
                                <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopup"></i></div>
                            </div>
                            <div class="img-container">
                                <img style="width: 137px; height: 52px;" src="//resources.qlinkwireless.com/images/logo.jpg" />
                            </div>
                            <div class="acpmodal-container">
                                <div class="optIn">
                                    <div class="ll-optin">
                                        <div class="ll-optin">
                                            TAKE ACTION NOW:
                                        </div>
                                    </div>
                                </div>
                                <div class="llUnlimited">
                                    <div class="ll-optin">
                                        <div class="ll-optin">
                                            <img class="ribbon" src="//resources.qlinkwireless.com/images/gov_sea_approved_check.jpg" />
                                        </div>
                                    </div>
                                </div>
                                <div class="ebbModalContent1">
                                    <div class="ll-optin">
                                        <div class="ll-optin">
                                            Enhance Your Benefits With Lifeline!
                                        </div>
                                    </div>
                                </div>
                                <div class="ll-info">
                                    We see you haven’t enrolled in the Lifeline Program yet. Take action now and enjoy this benefit for FREE!
                                </div>
                                <div class="limited-time ll-optin" id="llTransferConsent">
                                    <div class="form-group">
                                        <div class="control-label">
                                            <span class="optin-consent">
                                                <div class="input-group" style="float: left; margin-right: 10px;">
                                                    <input type="checkbox" checked onchange="OverviewVm.lltransferConsent(this)" />
                                                </div>
                                                <span class="ll-optin">
                                                    By clicking the box I consent to enroll in the Lifeline Program and receive FREE wireless service every month.
                                                </span>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <div id="yourPlanIncludes">
                                    <span class="yourPlanIncludesText">
                                        You're currently enrolled in the ACP benefit only. Don't miss the opportunity to combine your ACP benefit with Lifeline for FREE and enjoy the full benefits combo.
                                    </span>
                                </div>
                                <div class="llTerms">
                                    <div class="ll-optin">
                                        The Lifeline Program benefit is a federally funded government program that provides millions of Americans with FREE wireless service every month. Through this program, Q Link Wireless provides FREE Talk & Text plus Data to eligible Americans - keeping them connected to the world.
                                        <br />
                                        <br />
                                        The Lifeline monthly service and device discounts are not transferrable to other households or individuals. An eligible household is limited to one monthly service discount. Eligibility for the Lifeline Program will be determined by the National Verifier and National Lifeline Accountability Database, administered by the Universal Service Administrative Company (USAC), or an alternative verification process approved by the FCC. Lifeline benefits may be obtained from any participating provider of your choosing and your monthly service benefit may be transferred to another provider at any time.
                                        <br />
                                        <br />
                                        I participate in one of the designated qualifying programs for the Lifeline benefit or have income at or below
                                        the level specified by the Federal Poverty Guidelines and will provide documentation of eligibility if required to do so.
                                        <br />
                                        <br />
                                        I acknowledge that I may not have multiple Lifeline program benefits with the same or different providers. My household will receive only one Lifeline benefit, and to the best of my knowledge, my household and/or spouse does not already receive a Lifeline benefit. I do not share living expenses and income with any other adult who currently resides at my address and is receiving Lifeline service.
                                        I understand violation of the one-per-household requirement would constitute a violation of the Commission’s rules and would result in de-enrollment from the Lifeline program, and potentially, prosecution by the United States government. I also understand that this is a non-transferable service.
                                        <br />
                                        <br />
                                        I confirm that if I am found to already be receiving a Lifeline benefit from another provider, I consent for my Lifeline benefit to be transferred from that provider to Q Link Wireless, and I understand that you will lose the benefit from your former provider.
                                        <br />
                                        <br />
                                        Click to confirm that you have read and understand the disclosures and want to opt-in to the Lifeline Program with Q Link Wireless.
                                    </div>
                                </div>
                                <div class="lloptInSuccess">
                                    <img src="//resources.qlinkwireless.com/images/documents_area/Green_Check_Ellipse.png" />
                                    <span class="ll-optin">
                                        Congratulations! You’ve just added the Lifeline benefit to your Q Link Wireless plan.
                                    </span>
                                </div>
                                <div class="llTermsCont ll-optin">
                                    Terms & Conditions Apply
                                </div>
                                <div class="ebbBtn">
                                    
                                    <button data-action="ebb" id="ll-migration-action-cta" class="optInBtn llcta" onclick="OverviewVm.HandleLLOptin({ 'source': 'members-LLTransfer', 'LL': true})">
                                        <div class="ll-optin">
                                            Continue
                                        </div>
                                    </button>
                                    <button id="closeLLModal" class="closePopup optInBtn">
                                        Continue
                                    </button>
                                </div>
                                <div class="ebb-notice ebb-Date">
                                    <span>
                                        <img src="//resources.qlinkwireless.com/images/alert_icon.png" />
                                        Q Link Wireless requires EBB participants to confirm their continued service every month.</span>
                                </div>
                            </div>
                        </div>
                    </script>
              <script type="text/template" data-template="confirmAddressModal"> <div class="migratemodal-container confirmAddressModal">
                            <div id="closePopupMigration">
                                <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopup"></i></div>
                            </div>
                            <div class="migratemodal">
                                <div class="image-container">
                                    <img class="img-responsive" src="//resources.qlinkwireless.com/images/members/QLW-migration-modal-animation.gif" />
                                </div>
                                <div class="suggestion-header">
                                    Get Your New <span class="phone">Smartphone &amp; SIM Card Bundle</span><span class="sim">SIM Card</span>
                                </div>
                                <div class="divider"></div>
                                <div class="bottom-container">
                                    <div class="bottom-content">
                                        To give you the best experience possible we've upgraded our 4G LTE/5G network.
Confirm your shipping address below to receive a brand-new, compatible 
                                        <span class="phone">Smartphone &amp; SIM Card Bundle</span><span class="sim">SIM Card</span>
                                        to enjoy on our new network.
                                    </div>
                                    <div class="info-box">
                                        <div class="info-name">
                                            <strong>Aleana Eastridge</strong>
                                        </div>
                                        <div class="info-address">
                                            4635 ANTELOPE RD APT 50,
		                                ANTELOPE, CA, 95843-3923
                                        </div>
                                    </div>
                                    <div class="whatNext">
                                        <div class="whatNext-Info">
                                            <p>
                                                What Happens Next?
                                            </p>
                                            <div class="whatNext-points">
                                                <img src='https://resources.qlinkwireless.com/images/number_1_icon.png' />
                                                Activate your <span class="phone">Smartphone &amp; SIM Card Bundle</span><span class="sim">SIM Card</span> once it arrives
                                            </div>
                                            <div class="whatNext-points">
                                                <img src='https://resources.qlinkwireless.com/images/number_2_icon.png' />
                                                Make a test call & transfer your number
                                            </div>
                                            <div class="whatNext-points">
                                                <img src='https://resources.qlinkwireless.com/images/number_3_icon.png' />
                                                Get a tablet when you activate your <span class="phone">Smartphone &amp; SIM Card Bundle</span><span class="sim">SIM Card</span>
                                            </div>
                                            <p>
                                                Don't miss out on this limited-time offer!
                                            </p>
                                        </div>
                                    </div>
                                    <div class="terms">
                                        <small>
                                            By confirming, you are choosing to participate in the Emergency Broadband Benefit (EBB) program & receive UNLIMITED Data and a tablet. This is a limited-time supplemental plan added to your Lifeline plan. These benefits will automatically be added to your account.
                                            
                                            <span class="open-notes-wrap-2 pb0 b0 mb10">
                                                The EBB program will end after the Public Health Emergency no longer exists, or as deemed by the FCC. Once the EBB program is over, your plan will revert to the standard Lifeline offer. You may also choose to keep the UNLIMITED plan but will be subject to the standard rates. We will notify you when there is a change to the program. As a participant, you may transfer the EBB Program benefit to another provider at any time. This is limited to one per household and is operated by the FCC.
                                            </span>
                                            <a href="#" id="open-notes-2" class="members-link" title="Details">
                                                See Details</a>
                                        </small>
                                    </div>
                                </div>
                                <div class="button-container">
                                    <button id="confirmAddress" class="btn-primary" onclick="location.href='/members/migrateaddressdirect.aspx?key=QLWI6UYSTKGGFVX544DONUHE4KXMM3GK3KXJFIT3PIQLW&view=confirmed'">
                                        Confirm My Address</button>

                                    <button id="updateAddress" onclick="location.href='/members/migrateaddressdirect.aspx?key=QLWI6UYSTKGGFVX544DONUHE4KXMM3GK3KXJFIT3PIQLW&view=update'">
                                        Update My Shipping Address</button>
                                </div>
                            </div>
                        </div>
                    </script>
              <script type="text/template" data-template="confirmedShippingAddressModal"> <div class="migratemodal-container confirmedShippingAddressModal">
                            <div class="close-container">
                                <i id="closePopup" class="fa fa-times"></i>
                            </div>
                            <div class="migratemodal">
                                <div class="image-container">
                                    <img class="img-responsive" src="//resources.qlinkwireless.com/images/members/QLW-migration-modal-animation.gif" />
                                </div>
                                <div class="suggestion-header">
                                    Your Address Has Been Confirmed!
                                </div>
                                <div class="divider"></div>
                                <div class="bottom-container">
                                    <div class="bottom-content">
                                        To give you the best experience possible we've upgraded our 4G LTE/5G network.
Confirm your shipping address below to receive a brand-new, compatible
[smartphone & SIM Card bundle/SIM Card] to enjoy on our new network.
                                    </div>
                                    <div class="info-box">
                                        <div class="name"></div>
                                        <div class="address"></div>
                                    </div>
                                    <div class="button-container">
                                        <button class="btn btn-primary" id="confirmAddress" onclick="">
                                            Manage My Account</button>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </script>
              <!-- Order SIM replacement -->
              <script type="text/template" data-template="phone-help-message-activate"> <div class="flex-item p0">
                            <img class="flex-img pl20 bluebox-img" src="//resources.qlinkwireless.com/images/phone-members.png"/ alt="q link phone">
                        </div>
                        <div class="flex-item p0">
                            <div class="blueText">
                                <p class="bluebox-heading">
                                    Not Activated Yet?</p>
                                <p class="bluebox-text">
                                    You need a valid SIM card to activate your phone. Order one for FREE</p>
                                <button class="btn btn-primary" onclick="overviewVm.orderReplacementSim(event)">
                                    Order Now</button>
                            </div>
                        </div>
                    </script>
              <!-- sim replacment tracking -->
              <script type="text/template" data-template="phone-help-message-shipment"> <div class="flex-item p0">
                            <img class="flex-img pl20 bluebox-img" src="//resources.qlinkwireless.com/images/phone-members.png"/ alt="q link phone">
                        </div>
                         <div class="flex-item p0">
                             <div class="blueText">
                                 <p class="bluebox-heading">
                                     Your new SIM card is on its way</p>
                                 <p class="bluebox-text">
                                     Please check Account Overview above for tracking details.</p>
                             </div>
                         </div>
                    </script>
              <!-- shipments -->
              <div id="shipments" style="">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey" style="padding: 0.4em;">
                    <p>
                      <span class="panel-heading"> Shipping</span>
                      <span id="cancelBtn" style="float: right"></span>
                    </p>
                  </div>
                  <div class="pl10">
                    <table id="listTrackingNumbers-container">
                      <tbody>
                        <tr id="shipment-671638780">
                          <td>
                            <p>
                              <strong> Product :</strong> SIM Kit <br>
                              <strong> Order Status :</strong> Received
                            </p>
                            <p class="block">
                              <strong>Tracking Number:</strong>
                              <a href="https://www.swiship.com/track?id=9374889704024959623801" target="_blank">9374889704024959623801</a>
                            </p>
                            <p>
                              <strong>Ship Date: </strong> 2023-12-03T12:59:12<br>
                              <strong>Receive Date: </strong> 2023-12-05T19:26:00
                            </p>
                          </td>
                        </tr>
                        <tr id="shipment-675262854">
                          <td>
                            <p>
                              <strong> Product :</strong> Serrano <br>
                              <strong> Order Status :</strong> Received
                            </p>
                            <p class="block">
                              <strong>Tracking Number:</strong>
                              <a href="https://www.swiship.com/track?id=TBA310411806143" target="_blank">TBA310411806143</a>
                            </p>
                            <p>
                              <strong>Ship Date: </strong> 2023-12-12T00:43:35<br>
                              <strong>Receive Date: </strong> 2023-12-13T16:01:27
                            </p>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                    <small class="caption lh"> Please allow 24-48 hours for the information to show in the shipping provider's system. If your shipment is sent during a holiday please add an extra 1-2 days.</small>
                  </div>
                </div>
              </div>
              <!--account overview-->
              <div id="accountOverview">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey">
                    <p>
                      <span class="panel-heading"> Account Overview</span>
                      <span class="fr pr10 header-right"><a href="/customer/members/profile">
                                        My Account Profile
                                    </a></span>
                    </p>
                  </div>
                  <div class="pl20">
                    <p class="lh"><strong> Account Name: </strong><span class="text-capitalize">Aleana Eastridge</span></p>
                    <p class="lh"><strong> Order Status: </strong><span>
                        <span id="orderStatus">Completed</span></span>
                      <!-- hide this for reverification customers -->
                    </p>
                    <!--<p class="lh"><strong>Lifeline Number: </strong><label id="phone" name="phone" /></p>-->
                    <p class="lh"><strong> Enrollment ID: </strong>231978743</p>
                    <!-- <p><strong>Tracking Number : </strong></p>
                                <p><strong>Ship Date: </strong></p>
                                <p><strong>Receive Date: </strong></p>-->
                    <div>
                    </div>
                  </div>
                </div>
              </div>
              <!--ELIGIBLE REWARDS AND OFFERS AMAZON START------------------------------------>
              <div id="eligibleRewardsAndOffers">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey">
                    <p>
                      <span class="panel-heading"> Your Eligible Rewards &amp; Offers </span>
                    </p>
                  </div>
                  <div id="amazon-prime-offer-container">
                    <div class="pl20-amazon">
                      <div id="amazon-offer" class="row">
                        <div class="col-md-2">
                          <img class="prime-logo" src="https://qlw.azureedge.net/images/amazon-handoff/prime_logo_overview.png">
                        </div>
                        <div class="col-md-6">
                          <h4>Amazon Prime Membership</h4>
                          <p class="amazon-text">Get 2 months of Amazon Prime on us<sup class="amazon-asterisk">†</sup>
                            <span data-toggle="tooltip" title=""
                              data-original-title="Once you insert your SIM Card and start your service with Q Link, you'll receive an email/SMS with a link and instructions about your Prime Offer."><i class="fas fa-exclamation-circle" aria-hidden="true"></i>
                            </span>
                          </p>
                          <p class="amazon-small-text">Enjoy the best in shopping &amp; entertainment.</p>
                        </div>
                        <div class="col-md-2">
                          <input type="button" id="amazon-offer-learn-more" value="Get It Now" onclick="OverviewVm.createAmazonPrimeRewardAndSendToHandoff('2023-12-17T16:49:15.000Z')" class="btn btn-primary mb10">
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!--ELIGIBLE REWARDS AND OFFERS AMAZON END------------------------------------>
              <div id="shippingAddressPanel" style="">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey  cancel-container">
                    <p>
                      <span class="panel-heading"> Shipping Address </span>
                      <span class="fr pr10 header-right" id="cancelBtn"><a href="/customer/members/profile">
                                        Update My Shipping Address
                                    </a></span>
                    </p>
                  </div>
                  <div class="pl10 shippingAddress">
                    <div class="lh">
                      <strong> Shipping Address: </strong>
                    </div>
                    <div id="shippingaddress">
                      <div> 4635 ANTELOPE RD APT 50 ANTELOPE CA, 95843-3923</div>
                    </div>
                  </div>
                </div>
              </div>
              <!--lifeline plan details-->
              <div id="generalPlaninfo">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey">
                    <p>
                      <span class="panel-heading"> Lifeline Plan Details </span>
                    </p>
                  </div>
                  <div class="pl10">
                    <h3 class="mt0 detail"><span class="capital-letter"> ACP Plan</span>
                      <span><small class="font-weight:100">(Lifeline Plan Allowance)</small></span>
                    </h3>
                    <div class="flex-container">
                      <div class="flex-item">
                        <img class="flex-img" src="//resources.qlinkwireless.com/images/translation_globe.png">
                        <div class="pl10">
                          <p class="flex-txt"> Data </p>
                          <p class="flex-value"><b><span id="dataNumber">ACP Plan</span></b></p>
                        </div>
                      </div>
                      <div class="flex-item">
                        <img class="flex-img" src="//resources.qlinkwireless.com/images/nation-wide-calling.png">
                        <div class="pl10">
                          <p class="flex-txt"> Minutes </p>
                          <p class="flex-value"><b><span id="minutesNumber">UNLIMITED</span></b></p>
                        </div>
                      </div>
                      <div class="flex-item">
                        <img class="flex-img" src="//resources.qlinkwireless.com/images/Text-messages.png">
                        <div class="pl10">
                          <p class="flex-txt"> Text Messages </p>
                          <p class="flex-value"><b><span id="messagesNumber">UNLIMITED</span></b></p>
                        </div>
                      </div>
                    </div>
                    <p class="mt" style="margin: 0;">
                      <strong> Additional Plan Features:</strong> <small><a href="#" id="open-plan-features" onclick="return false">
                                            See Details
                                        </a></small>
                    </p>
                    <div id="open-plan-features-wrap">
                      <div class="q-row ">
                        <div class="column head8 mt">
                          <ul class="check-list mt-none">
                            <li><span> Free</span> International Texting</li>
                            <li><span> Free</span> Unlimited Text Messaging (<abbr title="Short Message Service">SMS</abbr>)</li>
                            <li><span> Free</span>
                              <abbr title="Multimedia Messaging Service">MMS</abbr> (Pictures &amp; Videos Via Text)
                            </li>
                            <li><span> Free</span> 911 &amp; 411 Calls</li>
                          </ul>
                        </div>
                        <div class="column head8 mt">
                          <ul class="check-list mt-none">
                            <li> Ability to Connect to Wi-Fi</li>
                            <li><span> Free</span> Voicemail &amp; Call Waiting</li>
                            <li><span> Free</span> Three Way Calling</li>
                            <li><span> Free</span> Caller ID</li>
                          </ul>
                        </div>
                      </div>
                    </div>
                    <div><span class="caption"> Upon activating your Q Link Wireless phone, you will have one year of service, and your free service for the first month will be already available. You will receive your free service on the first day of
                        each month. <a href="/customer/members/shop/topups/all-refills" class="members-link">Upgrade your Plan</a> at anytime.</span></div>
                  </div>
                </div>
              </div>
              <!--International plan details-->
              <div id="internationalPlaninfo" style="display: none;">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey">
                    <p>
                      <span class="panel-heading"> Your International Plan</span>
                      <span class="fr pr10 header-right"><a href="/customer/members/usage" target="_self">
                                        View Usage
                                    </a>
                      </span>
                    </p>
                  </div>
                  <div class="pl10" id="internationalPayGoPlaninfo">
                    <span class="mt0 detail">
                      <b>
                                        Last Plan Purchased: </b><span id="LastPlanPurchased"></span>
                    </span>
                    <div><b><span id="payGoExpireText">
                                    Expiration Date: </span></b><span id="expireDate"></span></div>
                    <div class="flex-container">
                      <div class="flex-item">
                        <img class="flex-img" src="//resources.qlinkwireless.com/images/translation_globe.png">
                        <div class="pl10">
                          <p class="flex-txt"> Remaining</p>
                          <p class="flex-value"><b>$<span id="PayGoBalance"></span></b></p>
                        </div>
                      </div>
                      <div class="flex-item">
                        <img class="flex-img" src="//resources.qlinkwireless.com/images/nation-wide-calling.png">
                        <div class="pl10">
                          <p class="flex-txt"> Minutes</p>
                          <p class="flex-value"><b><span>
                                                UNLIMITED</span></b></p>
                        </div>
                      </div>
                    </div>
                    <div id="internationalUnlimitedPlaninfo">
                      <span class="mt0 detail">
                        <b>
                                            Plan Name: </b><span id="planName2"></span>
                      </span>
                      <div><b><span id="unlimitedExpireText">
                                        Expiration Date: </span></b><span id="unlimitedExpireDate"></span></div>
                      <div class="flex-container">
                        <div class="flex-item">
                          <img class="flex-img" src="//resources.qlinkwireless.com/images/nation-wide-calling.png">
                          <div class="pl10">
                            <p class="flex-txt"> International Minutes</p>
                            <p class="flex-value"><b><span>
                                                    UNLIMITED</span></b></p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!--active plans-->
              <div id="plan-info">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey">
                    <p>
                      <span class="panel-heading"> Auto-Refill Plan</span>
                      <span class="fr pr10 header-right"><a href="/customer/members/subscription-management">
                                        Manage Your Auto-Refill
                                    </a>
                      </span>
                    </p>
                  </div>
                  <!--<div class="pl20">  
                                 <div class="flex-container">
                                     <div class="flex-item">
                                         <img class="flex-img" src="//resources.qlinkwireless.com/images/translation_globe.png" />
                                         <div class="pl10">
                                             <p class="flex-txt">Internet Data:</p>
                                             <p class="flex-value"><b><span id="dataNumberActive"></span></b></p>
                                         </div>
                                     </div>
                                    <div class="flex-item">
                                         <img class="flex-img" src="./images/nation-wide-calling.png" />
                                         <div class="pl10">
                                             <p class="flex-txt">International Texting</p>
                                             <p class="flex-value"><b><span id="minutesNumberActive"></span><span> Minutes</span></b></p>
                                         </div>
                                     </div>
                                   <div class="flex-item">
                                         <img class="flex-img" src="./images/Text-messages.png" />
                                         <div class="pl10">
                                             <p class="flex-txt">Text Messages:</p>
                                             <p class="flex-value"><b><span id="messagesNumberActive"></span></b></p>
                                         </div>
                                     </div>
                                </div>
                            </div>  -->
                  <div class="flex-container refill-container">
                    <div class="flex-item b0 p0">
                      <div class="pl20">
                        <p class="refill-margin"> Enroll in <img src="//resources.qlinkwireless.com/members/images/icons/rebill-mobile.png" alt="rebill Q LINK"> and save today</p>
                      </div>
                    </div>
                    <div class="flex-item refill-button-container b0 p0">
                      <input type="button" value="Enroll Now" onclick="location.href = '/customer/members/subscription-management'" class="btn btn-primary signup-button" data-role="button">
                    </div>
                  </div>
                </div>
              </div>
              <!--Qlixar Rewards-->
              <div id="Rewards" style="display: block;">
                <div class="panel panel-primary">
                  <div class="panel bg-gradient-grey">
                    <p><span class="panel-heading">Qlixar™ Rewards</span></p>
                  </div>
                  <div class="pl10" id="balance" style="display: none;">
                    <span> The more you play Qlixar™, the more FREE data and minutes you will earn!</span>
                    <p><strong> Balance: </strong><span id="rewardsCount"></span> coins</p>
                    <input type="button" id="cashOut" value="Cash Out" onclick="location.href = 'qlixar://home'" class="btn btn-primary signup-button mb10" data-role="button" style="display: none;">
                  </div>
                  <div class="pl10" id="no-balance" style="display: block;">
                    <span>Qlixar™ gives you FREE data and minutes just for using your phone.</span>
                    <p><a href="https://play.google.com/store/apps/details?id=com.qlixar.qlixar&amp;hl=en" target="_blank">
                                    Download Qlixar™</a> to start earning free, unlimited rewards!</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!-- Auto Refill -->
          <div class="row" id="hasRebill" style="display: none;"></div>
          <script type="text/javascript">
            $(function() {
              //Regex.Replace(lError.Text, @"<[^>]*>", String.Empty) replace html
              jQuery.prompt.setDefaults({
                persistent: false
              });
              var errorHTML = "";
              //var errorText = errorHTML.replace(/<\/?[^>]+(>|$)/g, "");	
              var errorContent = errorHTML.replace(/<\/?[^>]+(>|$)/g, "");
              if (errorHTML != "") {
                $.prompt(errorHTML);
              }
            });
          </script>
        </div>
      </div>
    </section>
    <!-- END LEFT MAIN CONTENT SECTION -->
    <aside class="sidebar-nav">
      <!-- START panel-->
      <div class="panel-cards-side pl-lg pb-lg mb-sideb">
        <span class="pt pl pb title-sidebar darkblue"><i class="fa fa-link pr-xl" aria-hidden="true"></i>My Q Link</span>
        <ul class="fa-ul" style="margin-top:0px;">
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/members/Orderstatus.aspx" class="text-underline text-muted">Account Overview</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/profile" class="text-underline text-muted">Account Profile</a></li>
          <li class="usage-link pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/usage" class="text-underline text-muted" target="_self">View Usage</a></li>
          <li class="usage-link pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i><a href="/members/swapphone.aspx" class="text-underline text-muted">Activate Phone</a></li>
          <li class="usage-link pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/shop/topups/minutes-data" class="text-underline text-muted">Add Talk &amp; Data</a></li>
          <li class="usage-link pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/subscription-management" class="text-underline text-muted">Manage Auto-Refill</a></li>
          <li class="phoneBrandRow pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="//support.qlinkwireless.com/tech-support/" class="text-underline text-muted">Device Help</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/lines" class="text-underline text-muted">Bring Your Own Phone</a></li>
          <li id="giftcardTab" class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/members/giftcard.aspx" class="text-underline text-muted">My Gift Cards</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/password" class="text-underline text-muted">Change Password</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/customer/members/lines" class="text-underline text-muted">Request a SIM card</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/members/Logout.aspx" class="text-underline text-muted">Logout</a></li>
        </ul>
      </div>
      <!-- END panel-->
      <!-- START panel-->
      <div class="panel-cards-side pl-lg pb-lg">
        <span class="pt pl pb title-sidebar darkblue mb"><i class="fa fa-question-circle pr-xl" aria-hidden="true"></i>Need Help?</span>
        <ul class="fa-ul" style="margin-top:0px;">
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="//support.qlinkwireless.com/" class="text-underline text-muted">Help Center</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="/members/support.aspx" class="text-underline text-muted">Message Us</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <a href="https://support.qlinkwireless.com/" class="text-underline text-muted">Get Help</a></li>
          <li class="pb"><i class="fa-li fa fa-angle-right" aria-hidden="true"></i> <span class="text-underline text-muted"><strong>Call: </strong><span class="text-wrap">1-855-754-6543</span><br><br><span>Mon-Fri 8AM-12AM EST</span><br><span>Sat-Sun
                8AM-8PM EST</span></span></li>
        </ul>
      </div>
      <!-- END panel-->
    </aside>
  </div>
  <script type="text/javascript">
    //window.lhnJsSdkInit = function () {
    //    lhnJsSdk.setup = {
    //        application_id: "600fe4f0-f739-4e92-b342-286ccafd10d2",
    //        application_secret: "d3f83aff76f84c859a6ec6eb72b4b8e1037386e6cf994b89bd"
    //    };
    //    lhnJsSdk.controls = [{
    //        type: "hoc",
    //        id: "4dea429c-fe85-4b78-904e-485bd17ad25c"
    //    }];
    //};
    //(function (d, s) {
    //    var newjs, lhnjs = d.getElementsByTagName(s)[0];
    //    newjs = d.createElement(s);
    //    newjs.src = "https://developer.livehelpnow.net/js/sdk/lhn-jssdk-current.min.js";
    //    lhnjs.parentNode.insertBefore(newjs, lhnjs);
    //}(document, "script"));
  </script>
  <script>
    const NotificationVm = Injector.run('NotificationVm', ['PushActions', 'AppCommon'], function(PushActions, AppCommon) {
      return {
        checkPushSubscriptionStatus,
        init,
        togglePushNotifications,
        pushNotifications
      }

      function init() {}

      function checkPushSubscriptionStatus() {
        return PushActions.isUserSubscribed();
      }

      function togglePushNotifications(callbackSuccess) {
        if (callbackSuccess) PushActions.successCallback = callbackSuccess;
        if (!AppCommon.PushNotifications.isSubscribed) {
          PushActions.subscribeUserToPushNotifications();
          return;
        };
        if (AppCommon.PushNotifications.isSubscribed) {
          PushActions.unsubscribeUserToPushNotifications();
          return;
        };
      }

      function pushNotifications(callbackSuccess) {
        if (callbackSuccess) PushActions.successCallback = callbackSuccess;
        if (!AppCommon.PushNotifications.isSubscribed) {
          PushActions.subscribeUserToPushNotifications();
          return;
        };
      }
    });
  </script>
  <script>
    // chatbot -- need to enable later
    //$(document).ready(function () {
    //    const dfMessenger = document.querySelector('df-messenger');
    //    dfMessenger.addEventListener('df-response-received', function (event) {
    //        let data;
    //        if (event.detail.response) {
    //            data = event.detail.response;
    //            //now do something with the data JSON object
    //        }
    //        if (data.queryResult.diagnosticInfo.end_conversation == true) {
    //            dfMessenger.renderCustomText('Continue to Customer Service');
    //            $("df-messenger").hide();
    //            $('#lhnHocButton').toggle();
    //            $('#lhnHocButton').click()
    //        }
    //    });
    //})
  </script>
  <script>
    // the patch #################################################################################################
    const AlwaysRun = Injector.run('AlwaysRun', ["AppCommon", "CustomerService", "Members", "LDAccount", "ByonService", "Helpers", "ShopService"], function(AppCommon, CustomerService, Members, LDAccount, ByonService, Helpers, ShopService) {
      const vm = {
        initalizeDataForPage,
        data: {}
      }
      return vm;
      async function initalizeDataForPage() {
        try {
          // login user to REST before doing anything
          await MasterVm.loginAsync();
          addUnAuthPhoneToCart();
          await addUnAnthRefill();
          /* store responses in memory 
           * items MUST be in the correct order, or this will all crash
           */
          const [
            migrationInfo,
            shippingAddress,
            activeShipments,
            activeLines,
            customerLines,
            portRequests,
            ebbOptinDate, //gets all optin dates
            activeDevice,
            crmTodos,
            TabletPaymentId,
            byonPromo,
            nvStatus,
            FirstUsedDate,
            customerRewards,
            LastUsedDate,
            /** values coming from templates */
            rewards,
            longDistanceAccount,
          ] = await Promise.all(
            [
              CustomerService.getMigrationInfo(),
              CustomerService.getShippingAddress(),
              CustomerService.getActiveShipments(),
              CustomerService.getCustomerActiveLines(),
              CustomerService.getCustomerLines(),
              ByonService.getPendingRequests(),
              CustomerService.getebbdate(),
              ByonService.getActiveDevice(),
              LDAccount.getCustomerStatuses(),
              Members.getUserSetting('TabletPaymentId'),
              Members.getUserSetting('BYON.Promo'),
              ShopService.nvStatus(),
              [AppCommon.CommonData.PhoneInfo.FirstUsedDate],
              CustomerService.getCustomerRewards(),
              [AppCommon.CommonData.PhoneInfo.LastUsedDate],
            ]);
          vm.data = {
            migrationInfo,
            shippingAddress,
            activeShipments,
            activeLines,
            customerLines,
            rewards,
            byonPromo,
            portRequests,
            longDistanceAccount,
            ebbOptinDate,
            activeDevice,
            crmTodos,
            TabletPaymentId,
            nvStatus,
            FirstUsedDate,
            customerRewards,
            LastUsedDate
          };
          return vm.data;
        } catch (error) {
          throw new Error(error.message);
        } finally {
          Helpers.showLoading({
            display: false
          });
          addDeviceOrCombo();
          Helpers.renderView("banner-container", 'hotspotBanner');
        }
      }
      async function addUnAuthPhoneToCart() {
        try {
          await ShopService.clearCart();
          let phoneToCart = Helpers.getFromSessionStorage('unAuthPhone')
          if (phoneToCart) {
            Helpers.clearSessionStorage('unAuthPhone');
            if (altCheckout) {
              window.location.href = '/customer/members/shop/phones/' + phoneToCart.productId
            } else {
              location.href = '/members/lre-checkout.aspx' + docLink
            }
          }
        } catch (error) {
          $.prompt(error.message)
        }
      }
      /******************* addUnAnthRefill ***********************
       * @description: When a Customer buy a Refill from an UnAnth page
       * it will be asked to login and then cart/redirect to checkout in order
       * to be able to purchase Refill!!!
       * */
      async function addUnAnthRefill() {
        try {
          let isFromRefill = Helpers.getFromSessionStorage('isFromRefill');
          if (isFromRefill) {
            let _refillProductId = Helpers.getFromSessionStorage('refillProdId');
            let _topupSubstep = Helpers.getFromSessionStorage('topupSubstep');
            let _autoRefillPayment = Helpers.getFromSessionStorage('autoRefillPayment');
            await ShopService.clearCart(); //always clear Car!!!
            if (_refillProductId) {
              if (altCheckout) {
                Helpers.clearSessionStorage('isFromRefill');
                Helpers.clearSessionStorage('refillProdId');
                Helpers.clearSessionStorage('topupSubstep');
                Helpers.clearSessionStorage('autoRefillPayment');
                location.href = '/customer/members/shop/topups/' + _topupSubstep + '/' + _refillProductId;
              } else {
                payload = { //create payload ProductId and PhoneNumber
                  PhoneNumber: AppCommon.CommonData.Customer.LifelinePhone,
                  ProductId: _refillProductId
                }
                let {
                  Success,
                  Message
                } = await ShopService.addProductByLine(payload);
                //Always Clear SessionStorage for added values!!! 
                Helpers.clearSessionStorage('isFromRefill');
                Helpers.clearSessionStorage('refillProdId');
                Helpers.clearSessionStorage('topupSubstep');
                Helpers.clearSessionStorage('autoRefillPayment');
                if (!Success) {
                  throw new Error(Message)
                }
                if (Success) {
                  location.href = '/members/cart/checkout.aspx';
                }
              }
            }
          }
        } catch (error) {
          $.prompt(error.message);
          console.log(error);
        }
      }
      // Add tablet or tablet combo to cart
      async function addDeviceOrCombo() {
        const {
          nvStatus: {
            EBBStatus: {
              DeviceSubsidy
            }
          },
          byonPromo,
          ebbOptinDate
        } = vm.data;
        try {
          let qualifiesForSubsidy = false;
          if (vm.data.nvStatus.EBBStatus.DeviceSubsidy == true || vm.data.nvStatus.EBBStatus.DeviceSubsidy == null) {
            qualifiesForSubsidy = true;
          }
          let isFromSetUpYourNumber = Helpers.getFromSessionStorage('isFromSetUpYourNumber')
          if (isFromSetUpYourNumber) {
            Helpers.clearSessionStorage('isFromSetUpYourNumber')
            Helpers.clearSessionStorage('comboPromo')
            Helpers.clearSessionStorage('isTabletAdded')
            Helpers.clearSessionStorage('onlyCombo')
          }
          var _udk = Helpers.getCookie('udk');
          //check if coming from unauth shop 
          let isFromUnAuth = Helpers.getFromSessionStorage('isFromUnAuth')
          let tempProductId = Helpers.getFromSessionStorage('comboPromo');
          let onlyCombo = Helpers.getFromSessionStorage('onlyCombo');
          let wantsCombo = false;
          let productId = tempProductId;
          let comboFourProductID = Helpers.getFromSessionStorage('comboFourProductID');
          let sendToSetUpYourNumber = false;
          //todo get nvStatus
          if (isFromUnAuth && !qualifiesForSubsidy && onlyCombo) {
            // send them to members / shop - phone with modal that shows message "you didnt qualify for the combo selected"
            Helpers.clearSessionStorage('isFromUnAuth');
            Helpers.addToSessionStorage('notQualifiedForCombo', true);
            if (altCheckout) {
              Helpers.clearSessionStorage('membersTablet');
              Helpers.clearSessionStorage('comboPromo');
              Helpers.clearSessionStorage('comboFourProductID');
              Helpers.clearSessionStorage('onlyCombo');
              Helpers.clearSessionStorage('isTabletAdded');
              Helpers.clearSessionStorage('isFromUnAuth');
              if (productId == 30735) {
                window.location.href = '/customer/members/shop/phones/' + comboFourProductID;
              } else {
                window.location.href = '/customer/members/shop/phones/' + productId;
              }
            } else {
              window.location.href = "/members/shopphones.aspx";
            }
            return;
          }
          if (onlyCombo) {
            if (tempProductId === "30734" || tempProductId === 30734) {
              // Tablet + Google Pixel 6a
              productId = 31627 // phone
              Helpers.addToSessionStorage('comboPromo', tempProductId)
              Helpers.addToSessionStorage('isTabletAdded', 'added')
              Helpers.addToSessionStorage('onlyCombo', true)
              wantsCombo = true
            } else if (tempProductId === "30733" || tempProductId === 30733) {
              // Tablet + Phone Combo (HP Serrano)
              productId = 30733 // phone
              Helpers.addToSessionStorage('comboPromo', tempProductId)
              Helpers.addToSessionStorage('isTabletAdded', 'added')
              Helpers.addToSessionStorage('onlyCombo', true)
              wantsCombo = true
            } else if (tempProductId === "25841" || tempProductId === 25841) {
              // Tablet Only
              //phone.ProductId = 25041
              Helpers.addToSessionStorage('comboPromo', tempProductId)
              Helpers.addToSessionStorage('isTabletAdded', 'added')
              Helpers.addToSessionStorage('onlyCombo', true)
            } else if (tempProductId === "30700" || tempProductId === 30700) {
              // Combo 5: Tablet plus FREE phone
              productId = 30700;
              Helpers.addToSessionStorage('comboPromo', tempProductId)
              Helpers.addToSessionStorage('isTabletAdded', 'added')
              Helpers.addToSessionStorage('onlyCombo', true)
              Helpers.addToSessionStorage('byonPromo', 'fp');
              wantsCombo = true
              sendToSetUpYourNumber = true
            } else if (tempProductId === "30735" || tempProductId === 30735) {
              // Combo 4: purchase device plus tablet with $50 off
              productId = comboFourProductID;
              Helpers.addToSessionStorage('comboPromo', tempProductId)
              Helpers.addToSessionStorage('isTabletAdded', 'added')
              Helpers.addToSessionStorage('onlyCombo', true)
              Helpers.addToSessionStorage('comboFourProductID', comboFourProductID)
              wantsCombo = true
            }
            Helpers.addToSessionStorage('membersTablet', true)
            try {
              /**
               * if we need to add the combo 9tablet + phone) we need to use two different endpoint in members area
               * 1 to add the tablet and the other to add the phone to an active line (a line with a phone number)
               * We need to see what issues this can cause, but from what I have seen, customers who are comlpeted already have a phone number assigned to them
               * 
               * if the cusotmer is just pruchasing the tablet (by it self) we just need to call the regular ad endpoint.
               * in lre-checkout, there is an order of operations when performing the checkout process (WILL CAUSE BUGS)
               * in order for the combo to work, the phone HAS to be the first item in the products array (SEE LRE-CHECKOUT.ASPX FOR MORE DETAILS)
               */
              //await ShopService.clearCart();
              //if (wantsCombo) {
              //    await ShopService.addToCartForActiveLine({
              //        PhoneNumber: AppCommon.CommonData.Customer.LifelinePhone,
              //        ProductId: productId
              //    }); // phone
              //    await ShopService.addProduct({ ProductId: 25841 }); // tablet
              //} else { // does snot want combo
              //    await ShopService.addProduct({ ProductId: 25841 }); // tablet
              //}
              /** 
               * need to check if customer can actually get the free_phone discount.
               * check that the customer's device subsidy == true || null. if not, can't send customer forward to checkout/port
               * make sure customer is opted into the ACP program. no ACP, no discount offer.
               * 
               * customers that opted to get the giftcard CANNOT get the free_phone
               */
              if ((DeviceSubsidy === true || DeviceSubsidy === null) && (byonPromo.Value?.includes("free_phone") || byonPromo.Value === null) && (ebbOptinDate.ACP != null)) {
                if (sendToSetUpYourNumber) {
                  if (altCheckout) {
                    Helpers.clearSessionStorage('membersTablet');
                    Helpers.clearSessionStorage('comboPromo');
                    Helpers.clearSessionStorage('comboFourProductID');
                    Helpers.clearSessionStorage('onlyCombo');
                    Helpers.clearSessionStorage('isTabletAdded');
                    Helpers.clearSessionStorage('isFromUnAuth');
                    window.location.href = '/customer/members/shop/phones/' + tempProductId;
                  } else {
                    window.location.href = '/members/SetUpYourNumber.aspx' + docLink
                  }
                } else {
                  // regardless of what the customer chooses, we have to redirect out to lre-checkout .aspx
                  if (altCheckout) {
                    Helpers.clearSessionStorage('membersTablet');
                    Helpers.clearSessionStorage('comboPromo');
                    Helpers.clearSessionStorage('comboFourProductID');
                    Helpers.clearSessionStorage('onlyCombo');
                    Helpers.clearSessionStorage('isTabletAdded');
                    Helpers.clearSessionStorage('isFromUnAuth');
                    window.location.href = '/customer/members/shop/phones/' + productId;
                  } else {
                    window.location.href = "/members/lre-checkout.aspx" + _udk + `&membersTablet=${true}&comboPromo=${tempProductId}&onlyCombo=${true}`
                  }
                }
              } else {
                throw "error"
              }
            } catch (error) {
              //customer should only see this error once, make sure to remove in shopphones page
              //Helpers.addToSessionStorage('free_phone_error_prompt', true);
              if (altCheckout) {
                Helpers.clearSessionStorage('membersTablet');
                Helpers.clearSessionStorage('comboPromo');
                Helpers.clearSessionStorage('comboFourProductID');
                Helpers.clearSessionStorage('onlyCombo');
                Helpers.clearSessionStorage('isTabletAdded');
                Helpers.clearSessionStorage('isFromUnAuth');
                window.location.href = '/customer/members/shop/phones/' + productId
              } else {
                window.location.href = '/members/shopphones.aspx' + docLink;
              }
            }
          }
        } catch (error) {
          $.prompt(error.message)
        }
      }
    });

    function redirectToNuEbbOptInDirect() {
      const ebbDate = new Date(optinDate)
      const reOptinDate = new Date(ebbDate.getTime() + StaticValues.time.day * 20);
      //Initial Opt in
      if (optinDate === null) {
        window.location.href = "/members/recalloptindirect.aspx" + docLink;
      }
      //Re-Optin
      if (reOptinDate > new Date()) {
        $('.dynamicPopup').hide();
      }
    }

    function redirectToDocuments() {
      window.location.href = "/Documents/Pre-reverification/Overview.aspx" + docLink;
    }
    async function checkSubscriptionStatus() {
      if (!PushEnabled) {
        return;
      }
      return NotificationVm.checkPushSubscriptionStatus();
    }
    async function start() {
      try {
        const Data = await AlwaysRun.initalizeDataForPage();
        everythingElse(Data);
        await checkSubscriptionStatus();
        NotificationVm.pushNotifications(checkSubscriptionStatus);
      } catch (error) {
        console.log(error.message);
      }
    }
    start();
    // the patch #################################################################################################
  </script>
  <script type="text/template" data-template="activation-modal-template"> <style>             
        
            #popupContent {
                width: 100%;
                max-width: 100%;
            }

            .closePopup-container {
                text-align: right;
                padding: 15px 15px 0 5px;
            }

            #activation-modal {
                width: 935px;
                background-color: #fff;
                border-radius: 20px;
                position: relative;
            }

            @media only screen and (min-width: 768px) {
                 #activation-modal {
                    max-height: calc(100vh - 106px);
                    overflow-y: scroll;
                    scrollbar-width: none; /* Firefox */
                    -ms-overflow-style: none;  /* Internet Explorer 10+ */
                }
                #activation-modal::-webkit-scrollbar { /* WebKit */
                    width: 0;
                    height: 0;
                }
            }

            #activation-modal .activation-modal-container {
                display: grid;
                grid-template-columns: 80%;
                grid-row-gap: 20px;
                justify-content: center;
            }

            #activation-modal .fa-times {
                cursor: pointer;
            }

            #activation-modal .header {
                font-size: 45px;
                font-weight: bold;
                text-align: center;
                display: flex;
                justify-content: space-between;
                gap: 10px;
                padding: 0;
                padding-left: 70px;
                padding-right: 20px;
            }

            #activation-modal .simCard-container {
                background-color: #EBF6FC;
                color: #1A80CC;
                padding: 0px;
                border-radius: 50%;
                width: 37px;
                height: 37px;
                font-size: 20px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            
            #activation-modal .need-help-container {
                display: grid;
                grid-template-columns: 50% 50%;
                background-color: #E1F1FE;
                color: #00426C;
            }

            #activation-modal .image-container {
                display: flex;
            }
             
            #activation-modal .image-container img {
                width: 100%;

            }

            #activation-modal .need-help-header {
                font-size: 24px;
                font-weight: bold;
                color: #1A80CC;
                padding: 20px 0;
            }

            #activation-modal .number {
                font-size: 24px;
                font-weight: bold;
                color: #00426C;
                margin: 5px 0 10px;
            }
            
            #activation-modal .orYou-content {
                text-align: center;
            }
            
            #activation-modal .detailsBtn-container {
                display: flex;
                justify-content: center;
            }
            
            #activation-modal .detailsBtn-container button {
                background-color: #ED7002;
                color: #fff;
                border: none;
                border-radius: 25px;
                padding: 10px;
                font-size: 18px;
                font-weight: bold;
                width: 259px;
            }
            
            #activation-modal .needto-byswapping-container {
                
                display: grid;
                grid-template-columns: 50% 0% 50%;
                padding: 15px;
                grid-column-gap: 10px;
                margin: 30px;
            }

            #activation-modal .need-order-container, .swappingYourSim-container {
                display: block;
                justify-content: center;
                text-align: center;
                margin: 30px;
            }

            #activation-modal .need-order {
                font-weight: bold;
                text-align: center;
                color: #F51E38;
                margin-bottom: 15px;
            }
             
             
            #activation-modal .divider-container {
                display: flex;
            }        

            #activation-modal #swapping-info {
                background: none;
                padding: 0;
                margin: 0;
            }

            #activation-modal .need-help {
                display: grid;
                grid-template-columns: 70%;
            }

            #activation-modal #swapping-info .swapping-header {
                text-align: center;
            }

            #activation-modal #swapping-info .desktop {
                display: none;
            }



            @media only screen and (min-width: 320px) and (max-width: 767px) {
                .dynamicPopup {
                        overflow: scroll;
                }

                #activation-modal .activation-modal-container {
                      padding: 0 10px !important;
                    grid-template-columns: 87%;
                }

                #activation-modal .header {
                    font-size: 22px;
                    grid-template-columns: 90%;
                }

                #activation-modal .need-help-container {
                        grid-template-columns: 100%;
                        padding: 10px 5px;
                }

                #activation-modal .need-help-container .need-help {
                    text-align: center;
                    font-size: 12px;
                    color: #00426C;
                    justify-content: center;
                }

                #activation-modal .need-help-header {
                        font-size: 14px;
                }

                #activation-modal .need-help-content {
                    font-size: 14px;
                        padding: 0 5px;
                }

                #activation-modal .orYou-content {
                    font-size: 12px;
                }

                #activation-modal .needto-byswapping-container {
                    grid-template-columns: 100%;
                    padding: 15px 5px;
                    margin: 20px;
                }
                #activation-modal .need-order-container, .swappingYourSim-container {
                    grid-template-columns: 100%;
                    margin: 0;
                }

                #activation-modal .need-order {
                    display: grid;
                    grid-template-columns: 70%;
                    justify-content: center;
                }


                #activation-modal .divider {
                    width: 100%;
                    margin: 20px;
                }
            }

            #activation-modal .header {
                text-align: left;
                font-size: 50px;
                line-height: 1.1;
                display: flex;
            }

            #activation-modal .header span {
                font-size: 38px;
            }

            #activation-modal .readyToGo {
                color: #ED7002;
                font-style: italic;
            }

            #activation-modal .activation-modal-container {
                display: flex;
                flex-direction: column;
                gap: 0px;
            }

            #activation-modal .header-content {
                align-self: center;
            } 

            #activation-modal .header img {
                width: 123px;
                margin-top: -36px;
                margin-right: 10px;
            }

            #activation-modal .middle-container {

                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            #activation-modal .need-help-container {
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                gap: 10px;
                padding: 40px;
            }

            #activation-modal .need-help-title {
                color: #1A80CC;
                font-weight: bold;
                font-size: 24px;
            }

            #activation-modal .need-help-phone {
                color: #00426C;
                font-weight: bold;
                font-size: 69px;
            }

            #activation-modal .need-to-order-sim-card-wrapper {
                display: flex;
                justify-content: space-between;
                padding: 0 50px;
            }

            #activation-modal .need-to-order-sim-card-left {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            #activation-modal .need-to-order-sim-card-right img {
                width: 248px;
            }

            #activation-modal .need-to-order-sim-card-header, #activation-modal .need-to-order-sim-card-header-tablet {
                font-size: 24px;
                font-weight: bold;
                color: #00426C;
            }

            #activation-modal .needto-byswapping-container {
                display: flex;
                justify-content: center;
                padding: 0px;
            }

            #activation-modal .needto-byswapping-wrapper {
                display: block;
                padding: 0 70px;
            }

            #activation-modal .swappingYourSim-container {
                padding: 0px;
                margin: 30px;
            }

            #activation-modal .order-new-sim-btn {
                background-color: #1A80CC;
                color: #ffffff;
                border: none;
                padding: 10px;
                border-radius: 20px;
                font-weight: 600;
                margin-top: 10px;
                font-weight: bold;
                font-size: 18px;
                padding: 10px 50px;
            }

            #activation-modal .follow-guide {
                display: flex;
                justify-content: center;
                font-size: 16px;
            }

            #activation-modal .follow-guide a {
                text-decoration: underline;
                color: #1A80CC;
                cursor: pointer;
            }

            #activation-modal .closePopup {
                display: flex;
                justify-content: flex-end;
                border-radius: 20px;
                padding-top: 20px;
                padding-right: 20px;
            }

            #activation-modal .closePopup i {
                font-size: 16px;
            }

            #activation-modal .header-left {
                display: flex;
            }

            #activation-modal .readyToGoWrapperDesktop {
                display: block;
            }

            #activation-modal .needto-byswapping-inner-wrapper {
                background-color: #F8F8F8;
            }

            #activation-modal .readyToGoWrapperMobile {
                display: none;
            }

            #activation-modal .fa-phone {
                transform: rotate(90deg);
                font-size: 50px;
            }

            #activation-modal .locateRemoveInsert {
                display: flex;
                align-items: center;
                gap: 15px;
                margin-top: 30px;
                font-size: 16px;
            }

            #activation-modal .callOurDirect {
                font-size: 16px;
            }

            #activation-modal .locateRemoveInsertText {
                display: flex;
                gap: 5px;
            }

            #activation-modal .need-to-order-sim-card-header-tablet {
                display: none;
            }

            #activation-modal .middle-container {
                padding: 0 70px;
            }

            #activation-modal .header-left {
                display: none;
            }

            @media only screen and (max-width: 992px) {
                #activation-modal .need-help-phone {
                    font-size: 50px;
                }

                #activation-modal .fa-phone {
                    font-size: 36px;
                }

                #activation-modal .locateRemoveInsertText {
                    flex-direction: column;
                }

                #activation-modal .need-to-order-sim-card-header {
                    display: none;
                }

                #activation-modal .need-to-order-sim-card-header-tablet {
                    display: block;
                }

            }

            @media only screen and (min-width: 320px) and (max-width: 767px) {
                #activation-modal {
                    width: 100%;
                }

                #activation-modal .header {
                    justify-content: center;
                    padding: 0;
                }

                #activation-modal .need-to-order-sim-card-header {
                    display: block;
                }

                #activation-modal .need-to-order-sim-card-header-tablet {
                    display: none;
                }

                #activation-modal .header {
                    font-size: 28px;
                    text-align: center;
                    display: flex;

                }

                #activation-modal .header span, #activation-modal .readyToGo {
                    font-size: 28px;
                }

                #activation-modal .header img {
                    display: none;
                }
                
                #activation-modal .need-help-phone {
                    font-size: 29px;
                }

                #activation-modal .middle-container {
                    padding: 0;
                }

                #activation-modal .need-to-order-sim-card-wrapper {
                    flex-direction: column;
                    justify-content: center;
                }

                #activation-modal .need-to-order-sim-card-right {
                    display: none;
                }

                #activation-modal .need-help-title {
                    font-size: 14px;
                    padding-top: 15px;
                }

                #activation-modal .callOurDirect {
                    font-size: 12px;
                    padding-bottom: 15px
                }

                #activation-modal .locateRemoveInsert {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    padding-top: 15px;
                }

                #activation-modal .need-to-order-sim-card-wrapper {
                    padding: 0;
                }

                #activation-modal .need-to-order-sim-card-header {
                    font-size: 18px;
                }

                #activation-modal .clickBelow, #activation-modal .follow-guide {
                    font-size: 12px;
                    text-align: center;
                }

                #activation-modal .need-to-order-sim-card-left {
                    gap: 0px;
                }

                #activation-modal .order-new-sim-btn {
                    padding: 5px 15px;
                    font-size: 13px;
                }

                #activation-modal .order-new-sim-btn-wrapper {
                    display: flex;
                    justify-content: center;
                }

                #activation-modal .readyToGoWrapperDesktop {
                    display: none;
                }

                #activation-modal .readyToGoWrapperMobile {
                    display: block;
                }

                #activation-modal .needto-byswapping-wrapper {
                    padding: 0 10px;
                }

                #activation-modal #swapping-info .swapping-header {
                    font-size: 14px;
                }

                #activation-modal .icon-content {
                    font-size: 14px;
                }

                #activation-modal .need-help-container {
                    padding: 5px;
                }

                #activation-modal .fa-phone {
                    font-size: 21px;
                }

                #activation-modal .need-help-header {
                    text-align: center;
                }

                #activation-modal .need-to-order-sim-card-header {
                    text-align: center;
                }

                #activation-modal .locateRemoveInsert {
                    margin: 0px;
                }

                #activation-modal .locateRemoveInsertText {
                    flex-direction: column;
                    gap: 0px;
                }

            }


            

        </style>


        <div id="activation-modal">
            <div class="closePopup">
                <i class="fas fa-times"></i>
            </div>
            <div class="activation-modal-container">
                <div class="header">
                    <div class="header-content">
                        <div class="">
                            Let's set up your
                        </div>
                        <div class="readyToGoWrapperDesktop">
                            <span class="readyToGo">
                                READY-TO-GO FREE
                            </span>
                            <span>
                                SIM Card Today!
                            </span>
                        </div>

                        <div class="readyToGoWrapperMobile">
                            <div class="readyToGo">
                                READY-TO-GO FREE
                            </div>
                            <div>
                                SIM Card Today!
                            </div>
                        </div>
                    </div>

                    <div class="header-left">
                        <div>
                            <img src="https://d.resources.qlinkwireless.com/images/members/4g-5g-t_mo.png" />
                        </div>
                    </div>
                </div>

                <div class="middle-container">
                    <div class="locateRemoveInsert">
                        <div class="simCard-container">
                            <i class="fal fa-sim-card"></i>
                        </div>
                        <div class="locateRemoveInsertText">
                            <strong><b>Locate, Remove & Insert!</b> </strong> Set up your FREE service on your phone in just minutes.
                        </div>
                    </div>

                    <div class="need-help-container">
                        <div class="need-help-title">
                            Need Help With Your SIM Card?
                        </div>
                        <div class="need-help-phone">
                            <span>
                                <i class="fa fa-solid fa-phone"></i>
                            </span>
                            <span>
                                1 (888) 505-7678
                            </span>
                        </div>
                        <div class="callOurDirect">
                            Call our direct support line and we'll help you activate your SIM Card step by step.
                        </div>
                    </div>

                    <div class="need-to-order-sim-card-wrapper">
                        <div class="need-to-order-sim-card-left">
                            <div>
                                <div class="need-to-order-sim-card-header">
                                    <div>
                                        Follow our easy-4-step guide
                                    </div>
                                    <div>
                                        to set up your service!
                                    </div>
                                </div>

                                <div class="need-to-order-sim-card-header-tablet">
                                    Follow our easy-4-step guide to set up your service!
                                </div>
                            </div>

                            <div class="order-new-sim-btn-wrapper">
                                <button type="button" class="order-new-sim-btn" onclick='location.href ="/Activate.aspx"'>
                                    Detailed Steps Here
                                </button>
                            </div>
                        </div>

                        <div class="need-to-order-sim-card-right">
                            <img src="//resources.qlinkwireless.com/images/members/sim_card_kit_modal.png" alt="SIM Card Kit" />
                        </div>
                    </div>

                    <div class="follow-guide">
                        <span>
                            Need To Order a New SIM Card? No Problem! <a onclick='location.href ="/customer/members/shop/phones/20427"'>Click here.</a>
                        </span>
                    </div>
                </div>

               
            </div>
            <div class="needto-byswapping-wrapper">
                <div class="needto-byswapping-inner-wrapper">
                    <div class="needto-byswapping-container">
                        <div class="swappingYourSim-container">
                            <style>
    #swapping-info {
        background-color: #ECF7FF;
        display: grid;
        justify-content: center;
        padding: 10px;
        border-radius: 10px;
        margin: 20px 0;
    }

    #swapping-info .swapping-header {
        color: #0f5680;
        font-weight: bold;
        display: flex;
        justify-content: center;
    }   

    #swapping-info .icons-container {
        display: grid;
        grid-template-columns: 40% 60%;
        justify-content: center;
        padding-top: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    #swapping-info .icons {
        display: flex;
        align-items: center;
    }

    @media only screen and (min-width: 320px) and (max-width: 767px) {
        #swapping-info {
            margin: 0 10px;
        }

        #swapping-info .swapping-header {
            text-align: center;
        }

        #swapping-info .icons {
            grid-template-columns: 30% 70%;
        }

        #swapping-info .icons-container {
            grid-template-columns: 50% 50%;
        }
    }

    #swapping-info .icons-container {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    #swapping-info {
        display: flex;
        flex-direction: column;
        margin: 30px;
    }

    #swapping-info .swapping-header {
        color: #0f5680;       
        font-size: 16px;
        font-weight: 700;
        padding: 0 15px;
        display: flex;
    }

    #swapping-info .icons {
        display: flex;
        gap: 10px;
        font-size: 16px;
        color: #1A1818;
        font-weight: 500;
    }

    #swapping-info .icons-inner-container {
        display: flex;
        gap: 15px;
    }


    @media only screen and (min-width: 320px) and (max-width: 767px) {
        #swapping-info .swapping-header {
            flex-direction: column;
            padding: 0px;
        }

        #swapping-info .icons-inner-container {
            flex-direction: column;
        }
         
    }

</style>

<div id="swapping-info">
    <div class="swapping-header">
        BY SWAPPING YOUR SIM CARD
        YOU WILL NOT LOSE:
    </div>
    <div class="icons-container">
        <div class="icons-inner-container">
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/contacts.png" />
                </div>
                <div class="icon-content">
                    Contacts
                </div>
            </div>
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/photos.png" />
                </div>
                <div class="icon-content">
                    Photos
                </div>
            </div>
        </div>
        <div class="icons-inner-container">
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/apps.png" />
                </div>
                <div class="icon-content">
                    Apps
                </div>
            </div>
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/text.png" />
                </div>
                <div>                  
                    <div class="icon-content">
                        Texts
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

                        </div>
                    </div>
                </div>
                
            </div>
        </div>

    </script>
  <script type="text/template" data-template="amazon-prime-offer-unclaimed-template"> <div class="pl20-amazon">
            <div id="amazon-offer" class="row">
                <div class="col-md-2">
                        <img class="prime-logo" src="https://qlw.azureedge.net/images/amazon-handoff/prime_logo_overview.png" />
                </div>
                <div class="col-md-6">
                    <h4>Amazon Prime Membership</h4>
                    <p class="amazon-text">Get 2 months of Amazon Prime on us<sup class="amazon-asterisk">†</sup>
                        <span data-toggle="tooltip" title="Once you insert your SIM Card and start your service with Q Link, you'll receive an email/SMS with a link and instructions about your Prime Offer."><i class="fas fa-exclamation-circle" aria-hidden="true"></i> </span>
                    </p>
                    <p class="amazon-small-text">Enjoy the best in shopping & entertainment.</p>
                </div>
                <div class="col-md-2">
                    <input type="button" id="amazon-offer-learn-more" value="Get It Now" onclick="OverviewVm.clickEventUnclaimed('${gtagEvent}')" class="btn btn-primary mb10" />
                </div>
            </div>
        </div>
    </script>
  <script type="text/template" data-template="amazon-prime-offer-unclaimed-unattached-reward-template"> <div class="pl20-amazon">
            <div id="amazon-offer" class="row">
                <div class="col-md-2">
                        <img class="prime-logo" src="https://qlw.azureedge.net/images/amazon-handoff/prime_logo_overview.png" />
                </div>
                <div class="col-md-6">
                    <h4>Amazon Prime Membership</h4>
                    <p class="amazon-text">Get 2 months of Amazon Prime on us<sup class="amazon-asterisk">†</sup>
                        <span data-toggle="tooltip" title="Once you insert your SIM Card and start your service with Q Link, you'll receive an email/SMS with a link and instructions about your Prime Offer."><i class="fas fa-exclamation-circle" aria-hidden="true"></i> </span>
                    </p>
                    <p class="amazon-small-text">Enjoy the best in shopping & entertainment.</p>
                </div>
                <div class="col-md-2">
                    <input type="button" id="amazon-offer-learn-more" value="Get It Now" onclick="OverviewVm.createAmazonPrimeRewardAndSendToHandoff('${lastUsageDate}')" class="btn btn-primary mb10" />
                </div>
            </div>
        </div>
    </script>
  <script type="text/template" data-template="amazon-prime-offer-claimed-template"> <div class="pl20-amazon">
            <div id="amazon-offer" class="row">
                <div class="col-md-2 col-sm-12">
                        <img class="prime-logo" src="https://qlw.azureedge.net/images/amazon-handoff/prime_logo_overview.png" />
                </div>
                <div class="col-md-6 col-sm-12">
                    <h4>Amazon Prime Membership</h4>
                    <p class="amazon-text">Congratulations, your 2 months of Amazon Prime on us<sup class="amazon-asterisk">†</sup>, is active!</p>
                    <p class="amazon-small-text">Enjoy the best in shopping & entertainment.</p>
                </div>
                <div class="col-md-2 col-sm-12">
                    <input type="button" id="amazon-offer-learn-more" value="See Details" onclick="OverviewVm.clickEventUnclaimed('${gtagEvent}')" class="btn btn-primary mb10" />
                </div>
            </div>
        </div>
    </script>
  <script type="text/template" data-template="amazon-prime-offer-expired-template"> <div class="pl20-amazon">
            <div id="amazon-offer" class="row">
                <div class="col-md-2">
                        <img class="prime-logo" src="https://qlw.azureedge.net/images/amazon-handoff/prime_logo_overview.png" />
                </div>
                <div class="col-md-6">
                    <h4>Amazon Prime Membership</h4>
                    <p class="amazon-text">As a Q Link Wireless customer, you're eligible for Prime Access, which gives you all the benefits of Prime for half the price at just $6.99/month ($14.99 regularly).</p>
                </div>
                <div class="col-md-2">
                    <input type="button" id="amazon-offer-learn-more" value="See Details" onclick="OverviewVm.clickEventUnclaimed('${gtagEvent}')" class="btn btn-primary mb10" />
                </div>
            </div>
        </div>
    </script>
  <script type="text/template" data-template="amazon-prime-offer-no-usage-template"> <div class="pl20-amazon">
            <div id="amazon-offer" class="row">
                <div class="col-md-2">
                        <img class="prime-logo" src="https://qlw.azureedge.net/images/amazon-handoff/prime_logo_overview.png" />
                </div>
                <div class="col-md-6">
                    <h4>Amazon Prime Membership</h4>
                    <p class="amazon-text">Get 2 months of Amazon Prime on us<sup class="amazon-asterisk">†</sup></p>
                    <p class="amazon-small-text">Enjoy the best in shopping & entertainment.</p>
                </div>
                <div class="col-md-2">
                    <input type="button" id="amazon-offer-learn-more" value="See Details" onclick="OverviewVm.showAmazonPrimeOfferNoUsage()" class="btn btn-primary mb10" />
                </div>
            </div>

        </div>
    </script>
  <script type="text/template" data-template="eligibilityModal"> <div class="migratemodal-container modal-dialog" role="document">
        <div id="closePopupEligibilityModal">
            <div class="closePopup pull-right pointer"><i class="fa fa-close" id="closePopupElegibility"></i></div>
        </div>        
             <div class="modal-title">
                 <h3>
                     Not Eligible 
                 </h3>
            </div>
            <div class="modal-body">
                <p>
                    We're happy to have you back                   
                     ${Name}!                    
                    Unfortunately,
                    you have already claimed this offer and are no longer eligible
                    for the Amazon Prime Offer.                   
                </p>              
            </div>
            <div class="modal-footer"> 
                 <button type="submit" class="btn btn-primary" data-dismiss="modal" onclick="location.href = '/terms/'">
                     See full Terms
                 </button>
                <button type="button" class="btn btn-secundary closePopup" data-dismiss="modal" onclick="">
                    Close
                </button>
            </div>

    </div>
       
</script>
  <script type="text/template" data-template="confirm-address"> <style>

            .dynamicPopup {
                overflow: scroll;
            }         
            #confirm-address {
                width: 600px;
                background-color: #fff;
                border-radius: 7px;
                margin-bottom: 10px;
                padding-top: 28px;              
            }

            #confirm-address .fa-times {
                color: #0185D8;
            }

            #confirm-address .closePopup-container {
                display: flex;
                justify-content: end;
                padding: 10px 15px 0 10px;
            }

            #confirm-address .confirm-address-container {
                display: grid;
                grid-row-gap: 20px;
                padding: 20px;
            }

            #confirm-address .confirm-address-container .gif-container img {
                width: 100%;
                
            }

            #confirm-address .confirm-address-container .subHeader {
                display: grid;
                grid-template-columns: 90%;
                justify-content: center;
                font-size: 18px;
                font-weight: bold;
                text-align: center;
            }

            #confirm-address .confirm-address-container .customer-info.migrationConfirm {
                display: grid;
                justify-content: left;
                grid-template-columns: 15% 65%;
                align-items: center;
                box-shadow: 0px 0px 5px #00000026;
                padding: 20px 0 20px 30px;
               
            }

            #confirm-address .confirm-address-container .fullname {
                font-weight: bold;
                padding-bottom: 5px;
            }

            #confirm-address .confirm-address-container .customer-info-container {
                background-color: #C3E6CB;
                padding-top: 20px;
            }
            
            #confirm-address .confirm-address-container .customer-info.nextstep {
                display: grid;
                justify-content: center;
                align-items: center;
                grid-template-columns: 15% 65%;
                padding:  20px 0 20px 30px;
            }

            #confirm-address .confirm-address-container {
                display: grid;
                grid-row-gap: 20px;
                padding: 15px 40px 40px 40px;
            }
            
            #confirm-address .confirm-address-container .confirmation {
               text-align: center;
               font-size: 18px;
               font-weight: bold;
               color: #155724;
            }

            #confirm-address .confirm-address-container .buttons-container {
                display: flex;
                justify-content: space-evenly;
            }

            #confirm-address .confirm-address-container .confirmAddressBtn, .nextstepBtn {
                width: 200px;
                background-color: #0185D8;
                color: #fff;
                padding: 10px 20px;
                border-radius: 30px;
                border: none;
                font-size: 14px;
                font-weight: 600;
            }

            #confirm-address .confirm-address-container .updateAddressBtn {
                width: 200px;
                background-color: #fff;
                color: #747474;
                padding: 10px 20px;
                border-radius: 30px;
                border: 2px solid #747474;
                font-size: 14px;
                font-weight: 600;
            }

            #confirm-address .confirm-address-container .warning-container {
                display: grid;
                grid-template-columns: 9% 78%;
                justify-content: center;
                align-items: center;
                border-radius: 4px;
                background-color: #FCC000;
                padding: 10px;
                font-size: 14px;
                font-weight: bold;
                text-align: initial;
            }

            #confirm-address .confirm-address-container .fa-exclamation-triangle {
                font-size: 30px;
            }

             #confirm-address .confirm-address-container .fa-map-marker {
                font-size: 45px;
            }

            
            #confirm-address .confirm-address-container .simcard-info {
                display: grid;
                grid-template-columns: 70% 20%;
                justify-content: center;
                font-size: 14px;
                color: #333333;
            }

            #confirm-address .confirm-address-container .simcard-header {
                font-weight: bold;
                padding-bottom: 5px;
            }

            #confirm-address .confirm-address-container .confirmation .desktop {
                display: flex;
                justify-content: center;
            }
            
            #confirm-address .confirm-address-container .great {
                margin-right: 5px;
            }

            #confirm-address .nextstep {
                display: none;
            }

            #confirm-address .button-container {
                margin: 0 auto;
            }

            #confirm-address .mobile {
                display: none;
            }

            #confirm-address #swapping-info, #confirm-address .divider  {
                margin: 0;
            }
            
            @media screen and (max-height: 930px) {
                .centerInViewPort .contentArea {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -40%);
                }
            }

            @media only screen and (min-width: 320px) and (max-width: 767px) {
                .centerInViewPort .contentArea {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -33%);
                }
                #confirm-address .desktop {
                    display: none !important;
                }

                #confirm-address .mobile {
                    display: block !important;
                }             

                #confirm-address {
                    width: 100%;
                    overflow: scroll;
                }

                #confirm-address .closePopup-container {
                    padding: 5px 10px 0 10px;
                    font-size: 12px;
                }

                #confirm-address .confirm-address-container {
                    padding: 10px 20px;
                }

                #confirm-address .confirm-address-container .subHeader {
                    font-size: 12px;
                    grid-template-columns: 90%;
                }

                #confirm-address .confirm-address-container .customer-info.migrationConfirm {
                    font-size: 12px;
                    grid-template-columns: 19% 50%;
                    padding: 10px 0 10px 10px;
                }

                #confirm-address .confirm-address-container .confirmation {
                    font-size: 12px;
                }

                #confirm-address .confirm-address-container .customer-info.nextstep {
                    font-size: 12px;
                    grid-template-columns: 15% 50%;
                    padding: 10px 0;
                }

                #confirm-address .confirm-address-container .fa-map-marker {
                    font-size: 55px;
                }

                #confirm-address .confirm-address-container .confirmation .desktop {
                    flex-direction: column;
                    align-items: center;
                }

                #confirm-address .confirm-address-container .great {
                    margin-right: 0;
                }

                #confirm-address .confirm-address-container .buttons-container {
                    flex-direction: column;
                    align-items: center;
                    padding: 0 10px;
                }

                #confirm-address .confirm-address-container .confirmAddressBtn {
                    width: 100%;
                    margin-bottom: 10px;
                }

                #confirm-address .confirm-address-container .button-container.nextstep .mobile {
                    padding: 0 10px;
                }
                
                #confirm-address .confirm-address-container .updateAddressBtn, #confirm-address .confirm-address-container .button-container.nextstep, .nextstepBtn {
                    width: 100%;

                }

                #confirm-address .confirm-address-container .warning-container {
                    font-size: 10px;
                    grid-template-columns: 15% 80%;
                    text-align: left;
                }


                #confirm-address .confirm-address-container .simcard-info {
                    font-size: 12px;
                    grid-template-columns: 50% 40%;
                }

            }
             @media only screen and (max-width: 425px) {

                 #confirm-address {
                   margin-top: -45%;
                }              
                
            }
            @media only screen and (max-width: 320px) {

                 #confirm-address {
                   margin-top: -45%;
                }
            }


        </style>


        <div id="confirm-address">       
            <div class="confirm-address-container">
                <div class="gif-container">
                    <img  class="transfer-banner" src="//resources.qlinkwireless.com/img/gif/tower_gif_final.gif"   alt="Your current network is shutting down gift" id="byon_promo_desktop" />
                </div>
                <div class="subHeader migrationConfirm">
                    <div>
                        We need to ship you a new SIM Card that allows you to enjoy UNLIMITED service on a more secure & reliable 4G/5G network.
                    </div>
                </div>
                <div class="customer-info migrationConfirm">
                    <div>
                        <i class="fa fa-map-marker"></i>
                    </div>
                    <div>
                        <div class="fullname">
                            Aleana Eastridge
                        </div>
                        <div class="desktop">${Address1} ${Address2}, ${City}, ${Province} ${PostalCode}</div>
                        <div class="mobile">
                            <div>${Address1} ${Address2},</div>
                            <div>${City}, ${Province} ${PostalCode}</div>
                        </div>
                    </div>
                </div>
                <div class="buttons-container migrationConfirm">
                    <button type="button" class="confirmAddressBtn" onclick="OverviewVm.changeModalView()">
                        Confirm My Address
                    </button>
                    <button onclick="OverviewVm.updateAddress()" type="button" class="updateAddressBtn">
                        Update My Address
                    </button>
                </div>

                <div class="customer-info-container nextstep">
                    <div class="confirmation">
                        <div class="desktop">
                            <div class="great">
                                Great! 
                            </div>
                            <div>
                                Your address was confirmed.
                            </div>
                        </div>
                        <div class="mobile">
                            <div>
                                Great! 
                            </div>
                            <div>
                                Your address was confirmed.
                            </div>
                        </div>
                    </div>
                    <div class="customer-info nextstep">
                        <div>
                            <i class="fa fa-map-marker"></i>
                        </div>
                        <div>
                            <div class="fullname">
                                Aleana Eastridge
                            </div>
                            <div class="desktop">${Address1} ${Address2}, ${City}, ${Province} ${PostalCode}</div>
                            <div class="mobile">
                                    <div>${Address1} ${Address2},</div>
                                    <div>${City}, ${Province} ${PostalCode}</div>
                                </div>
                        </div>
                    </div>
                </div>
                <div class="button-container nextstep">
                    <div class="desktop">
                        <button onclick="OverviewVm.nextStep()" type="button" class="nextstepBtn">
                            Continue to Next Step
                        </button>
                    </div>
                    <div class="mobile">
                        <button onclick="OverviewVm.nextStep()" type="button" class="nextstepBtn">
                            Continue
                        </button>
                    </div>
                </div>
                <div class="warning-container">
                    <div>
                        <i class="fa fa-exclamation-triangle"></i>
                    </div>
                    <div class="desktop">
                        Insert your SIM Card immediately upon arrival. <br> Your current network shuts down on Nov. 30th 2023. 
                    </div>
                    <div class="mobile">
                        <div>
                            Insert your SIM Card immediately.<br> Your current network shuts down on Nov. 30th 2023.
                        </div>                       
                    </div>
                </div>
                <style>
    #swapping-info {
        background-color: #ECF7FF;
        display: grid;
        justify-content: center;
        padding: 10px;
        border-radius: 10px;
        margin: 20px 0;
    }

    #swapping-info .swapping-header {
        color: #0f5680;
        font-weight: bold;
        display: flex;
        justify-content: center;
    }   

    #swapping-info .icons-container {
        display: grid;
        grid-template-columns: 40% 60%;
        justify-content: center;
        padding-top: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    #swapping-info .icons {
        display: flex;
        align-items: center;
    }

    @media only screen and (min-width: 320px) and (max-width: 767px) {
        #swapping-info {
            margin: 0 10px;
        }

        #swapping-info .swapping-header {
            text-align: center;
        }

        #swapping-info .icons {
            grid-template-columns: 30% 70%;
        }

        #swapping-info .icons-container {
            grid-template-columns: 50% 50%;
        }
    }

    #swapping-info .icons-container {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    #swapping-info {
        display: flex;
        flex-direction: column;
        margin: 30px;
    }

    #swapping-info .swapping-header {
        color: #0f5680;       
        font-size: 16px;
        font-weight: 700;
        padding: 0 15px;
        display: flex;
    }

    #swapping-info .icons {
        display: flex;
        gap: 10px;
        font-size: 16px;
        color: #1A1818;
        font-weight: 500;
    }

    #swapping-info .icons-inner-container {
        display: flex;
        gap: 15px;
    }


    @media only screen and (min-width: 320px) and (max-width: 767px) {
        #swapping-info .swapping-header {
            flex-direction: column;
            padding: 0px;
        }

        #swapping-info .icons-inner-container {
            flex-direction: column;
        }
         
    }

</style>

<div id="swapping-info">
    <div class="swapping-header">
        BY SWAPPING YOUR SIM CARD
        YOU WILL NOT LOSE:
    </div>
    <div class="icons-container">
        <div class="icons-inner-container">
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/contacts.png" />
                </div>
                <div class="icon-content">
                    Contacts
                </div>
            </div>
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/photos.png" />
                </div>
                <div class="icon-content">
                    Photos
                </div>
            </div>
        </div>
        <div class="icons-inner-container">
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/apps.png" />
                </div>
                <div class="icon-content">
                    Apps
                </div>
            </div>
            <div class="icons">
                <div>
                    <img src="//resources.qlinkwireless.com/images/members/text.png" />
                </div>
                <div>                  
                    <div class="icon-content">
                        Texts
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

                <div class="divider"></div>
                <div class="simcard-info">
                    <div>
                        <div class="simcard-header">
                            What's a SIM Card?
                        </div>
                        <div>
                            It's the chip you insert into your phone that allows you to receive your phone service.
                        </div>
                    </div>
                    <div class="simcard">
                        <img class="simImg" src="//resources.qlinkwireless.com/images/icons/Sim_card_mockup.png" />
                    </div>
                </div>
            </div>
        </div>
    </script>
  <script>
    function everythingElse({
      migrationInfo,
      shippingAddress,
      activeShipments,
      activeLines,
      customerLines,
      rewards,
      portRequests,
      longDistanceAccount,
      ebbOptinDate,
      activeDevice,
      nvStatus,
      crmTodos,
      TabletPaymentId,
      byonPromo,
      FirstUsedDate,
      customerRewards,
      LastUsedDate
    }) {
      var ebbModal = false;
      var phoneBrandName = "Q Link";
      if (phoneBrandName != "") {
        $(".phoneBrandRow").show();
      } else {
        $(".phoneBrandRow").show();
      }
      var lifelinePhone = "2799445607";
      if (lifelinePhone.length > 0) {
        lifelinePhone = lifelinePhone.toString();
        //phone.textContent = lifelinePhone.substring(0, 3) + '-' + lifelinePhone.substring(3, 6) + '-' + lifelinePhone.substring(6, 10);
      } else {
        phone.textContent = "Not assigned yet";
      }
      showNvAlert(nvStatus);

      function showNvAlert({
        NV_Status: {
          Links,
          Status
        }
      }) {
        const nvAlertContainer = $("#nv-alert");
        let nvMessage = "";
        let nvLink = "";
        if (Links != null) {
          const linksKeys = Object.keys(Links);
          const link = linksKeys.map(key => Links[key].href);
          nvLink = link[0];
          // get message based on NV status 
          switch (Status) {
            case "PENDING_CERT":
              nvMessage = "National Verifier Certification"; // TODO: load from translation string.
              break;
            case "EBBP_DUPLICATE_ADDRESS":
              nvMessage = "Household Worksheet";
              break;
            default:
              nvMessage = "your application";
          }
          document.getElementById('nv-alert-message').textContent = nvMessage;
          document.getElementById('nv-alert-link').href = nvLink;
          nvAlertContainer.show();
        }
      }
      window.OverviewVm = Injector.run('OverviewVm', ['AppCommon', 'CustomerService', 'LoginService', 'Helpers', 'Members', 'ShopService'], function(AppCommon, CustomerService, LoginService, Helpers, Members, ShopService) {
        var vm = {};
        vm.init = init;
        vm.ebboptin = ebboptin;
        vm.redirectToDocuments = redirectToDocuments;
        vm.payTabletCharge = payTabletCharge;
        vm.tabletProductId = '28141';
        vm.tabletPaymentId = null;
        vm.HandleEbbOptin = HandleEbbOptin;
        vm.HandleLLOptin = HandleLLOptin;
        vm.SavedToMigration = false;
        vm.transferConsent = transferConsent;
        vm.lltransferConsent = lltransferConsent;
        vm.IConsent = true;
        vm.changeModalView = changeModalView;
        vm.closeEbbModal = closeEbbModal;
        vm.nextStep = nextStep;
        vm.updateAddress = updateAddress;
        vm.mirationModalActive = false;
        vm.DataUsed = null;
        vm.showMigrationModal = showMigrationModal;
        vm.ebbOptinApiCall = ebbOptinApiCall;
        vm.NOebbOptin = NOebbOptin;
        vm.validateConsentCheckbox = validateConsentCheckbox;
        vm.consent = true;
        vm.showAmazonPrimeOfferNoUsage = showAmazonPrimeOfferNoUsage;
        vm.createAmazonPrimeRewardAndSendToHandoff = createAmazonPrimeRewardAndSendToHandoff;
        vm.clickEventUnclaimed = clickEventUnclaimed;
        vm.amazonStatus = null;
        vm.amazonActivationDate = null;
        vm.cancelAppointment = cancelAppointment;
        vm.callbackDate = null;
        vm.redirectToHotspotPage = redirectToHotspotPage;
        return vm;
        async function init() {
          showNewSimModal()
          // RE-ENABLE FOR MIGRATION                      
          renderModal(migrationInfo)
          //not using the updatedMigratedAlert
          //$('#updatedMigratedAlert').hide();
          /*logic for rendering elligible offers and rewards for amazon prime*/
          dataLayer.push({
            event: 'amazon_land_on_overview',
            orderNumber: Number(AppCommon.CommonData.Customer.Order_Number)
          });
          showCorrectViewAmazonPrime()
          /* logic for rendering make appointment/handle appointment banners */
          showCorrectAppointmentBanner()
          let currentUrl = window.location.href;
          localStorage.setItem('currentUrl', currentUrl);
          try {
            $('#reupload').hide();
            $('#hasUnprocessedDocuments').hide();
            if (nationalEligibilityVerifier && AppCommon.CommonData.Customer.OrderStatusId == 3) {
              if (AppCommon.CommonData.DocsData.DocumentInfo.HasUnprocessedDocuments == 0) {
                $('#reupload').hide();
                $('#hasUnprocessedDocuments').show();
              } else {
                $('#hasUnprocessedDocuments').hide();
                $('#reupload').show();
              }
            }
            // TEMP: EBB tablet charge
            //await MasterVm.loginAsync();
            const {
              Value: PaymentId
            } = TabletPaymentId;
            if (PaymentId == null) return
            if (PaymentId != '0') {
              const {
                PaymentStatusId
              } = await Members.getPaymentDetails(PaymentId);
              if ([5, 8, 10, 11, 12].indexOf(PaymentStatusId) != -1) return; // payment good
              vm.tabletPaymentId = PaymentId;
            }
            const {
              paytablet: autoRedirectToCheckout
            } = Helpers.getQuerystringData(location.search);
            if (autoRedirectToCheckout == 1) payTabletCharge();
            if (nvStatus.EBBStatus.DeviceSubsidy === false) {
              //as per requested on task: #3387 tablet copayment is been hide...
              $('#tablet-alert-pay').hide();
            }
          } catch (error) {
            console.log(error.message);
          }
        }
        async function cancelAppointment(event) {
          if (event) {
            event.preventDefault();
          }
          let {
            CellPhone,
            OrderId
          } = await CustomerService.getCustomerInfo()
          try {
            let payload = {
              "OrderId": OrderId,
              "NumberToCall": CellPhone,
              "CallbackDate": vm.callbackDate,
              "CallbackReason": "NONE",
              "Cancel": true
            }
            let result = await CustomerService.saveCallbackSlot(payload)
            if (result.Success) {
              vm.callbackDate = null;
              Helpers.renderView('appointment-container', 'makeAnAppointmentAlert');
            }
          } catch (error) {
            console.log(error)
          }
        }

        function showNewSimModal() {
          for (let i in activeLines) {
            if (!activeLines[i].HasUsage) {
              Helpers.displayPopup('activation-modal-template', {});
              break
            }
          }
        }

        function getCookie(cname) {
          let name = cname + "=";
          let decodedCookie = decodeURIComponent(document.cookie);
          let ca = decodedCookie.split(';');
          for (let i = 0; i < ca.length; i++) {
            let c = ca[i];
            while (c.charAt(0) == ' ') {
              c = c.substring(1);
            }
            if (c.indexOf(name) == 0) {
              return c.substring(name.length, c.length);
            }
          }
          return "";
        }
        /*
        Call this function when a user Clicks
        @eventName: ""
        @eventType: click, 
        @action:
        @details:
        @location:
        @label
    */
        async function BEACON(e) {
          window.dataLayer = window.dataLayer || [];
          var data = e;
          var payload = {};
          payload = {
            event: `${data.Category}_${data.Action}`,
            ecommerce: {
              [data.TYPE]: {
                Action: `user selected ${data.Action}`,
                Category: `${data.Category}`,
                Label: `${data.Label}`,
              }
            },
          }
          _clear: true
          dataLayer.push(payload);
        }

        function renderModal(migrationinfo) {
          let migration = null
          migrationinfo.map(migrate => {
            if (migrate.IsRealNumber) {
              return migration = migrate
            }
          })
          if (migration && migration.CellularProviderId !== 3 && migration.MigrationOrderId === 0) {
            //not using the MigratedAlert
            //$('#migratedAlert').hide();
            //hit the tracking bacon
            BEACON({
              TYPE: 'API',
              Action: AppCommon.CommonData.Customer.Order_Number,
              Category: 'Migration',
              Label: 'Received Popup Modal',
            })
            vm.mirationModalActive = true;
            shippingAddress = shippingAddress[0] ? shippingAddress[0]['ShippingAddress'] : shippingAddress
            shippingAddress.PostalCode = shippingAddress.PostalCode !== undefined ? shippingAddress.PostalCode.substring(0, 5) : shippingAddress['ShippingAddress']['PostalCode'].substring(0, 5)
            Helpers.displayPopup('confirm-address', shippingAddress);
          }
          // does not have pending shipment
          if (migration && migration.CellularProviderId !== 3 && migration.MigrationOrderId !== 0) {
            //not using the updatedMigratedAlert
            //$('#updatedMigratedAlert').show();
            //not using the MigratedAlert
            //$('#migratedAlert').hide();
            $('#sim-ship-alert').hide();
          }
          if (activeShipments.length > 0) {
            if (migration && migration.CellularProviderId !== 3 && migration.MigrationOrderId === activeShipments[0].OrderId) {
              //not using the MigratedAlert
              //$('#migratedAlert').show();
              //not using the updatedMigratedAlert
              //$('#updatedMigratedAlert').hide();
              $('#sim-ship-alert').hide();
            }
          }
          // has pending shipment
        }
        async function ebbOptinApiCall(transferLocked = false) {
          event.preventDefault();
          /**
           * ACP              : The date the customer opted into ACP
           * ACPTransfer      : The Date the customer opted to transfer their ACP services to us
           * ACPTransferLock  : The date the customer opted for transfering their locked ACP account
           * 
           * documents-ACPtransferLock : updates all threiiiie values above.
           * documents-transferEBBACP  : updates on ACP and ACPTransfer values   
           * */
          const OptInSource = transferLocked ? 'members-ACPtransferLock' : 'members-transferEBBACP'
          let payload = {
            "Source": OptInSource,
            "ACP": true
          }
          let {
            Success,
            Message
          } = await CustomerService.optInOut(payload);
          if (Success) {
            const popups = document.querySelectorAll('.dynamicPopup')
            popups[popups.length - 1].style.display = 'none';
          }
        }
        // redirect customer to correct area without opt-in them in
        async function NOebbOptin() {
          // no need to re-call Nv Status here, customer did not opt-in, send to byop
          //await getNVStatus()
          const popups = document.querySelectorAll('.dynamicPopup')
          popups[popups.length - 1].style.display = 'none';
        }

        function validateConsentCheckbox(ACP_only = false) {
          const consentCheckbox = document.querySelector('#consent')
          const consent = consentCheckbox.checked
          if (consent) {
            enabledCtaButton()
            // never show the error message for ebb
            $('.consent-error').toggle('hide');
            // if ACP-only, enable the button
            if (ACP_only) {
              enableACP_onlyBtn()
            }
            $('#ebbOptIn').show();
            $('#NOebbOptin').hide();
          } else if (!consent) {
            // if ACP-only, disable the button
            if (ACP_only) {
              disableACP_onlyBtn()
            }
            // don't show the consent error
            $('.consent-error').toggle('show');
            $('#ebbOptIn').hide();
            $('#NOebbOptin').show();
          }
          return
        }

        function enabledCtaButton() {
          $('.continueBtn-container button').prop("disabled", false)
        }

        function enableACP_onlyBtn() {
          $('#ebbOptIn-clear-consent-btn').prop("disabled", false)
        }

        function disableACP_onlyBtn() {
          $('#ebbOptIn-clear-consent-btn').prop("disabled", true)
        }

        function nextStep() {
          window.location.href = "/members/migrationbyop.aspx" + docLink;
        }

        function updateAddress() {
          window.location.href = `/members/updateaddress.aspx${docLink}&flow=migration`
        }
        // this is a temp fix to show the miration modal on btn click
        function showMigrationModal() {
          shippingAddress = shippingAddress[0] ? shippingAddress[0]['ShippingAddress'] : shippingAddress
          shippingAddress.PostalCode = shippingAddress.PostalCode !== undefined ? shippingAddress.PostalCode.substring(0, 5) : shippingAddress['ShippingAddress']['PostalCode'].substring(0, 5)
          Helpers.displayPopup('confirm-address', shippingAddress);
        }
        // customer wants to confirm their address
        function changeModalView() {
          $('.migrationConfirm').hide()
          $('.nextstep').show()
          //hit the tracking bacon
          BEACON({
            TYPE: 'API',
            Action: AppCommon.CommonData.Customer.Order_Number,
            Category: 'Migration',
            Label: 'Confirmed Address',
          })
        }

        function redirectToHotspotPage() {
          event.preventDefault();
          return window.location.href = `/customer/members/shop/hotspotplans`;
        }

        function getParameterByName(name, url) {
          if (!url) url = window.location.href;
          name = name.replace(/[\[\]]/g, '\\$&');
          var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
            results = regex.exec(url);
          if (!results) return null;
          if (!results[2]) return '';
          return decodeURIComponent(results[2].replace(/\+/g, ' '));
        }
        //async function HandleLLOptin() {
        //    var payload = { OptInSource: "plan-transferLL" };
        //    const { Success } = await CustomerService.ebboptin(payload);
        //}
        async function HandleEbbOptin(value) {
          const {
            LastDate: lastEbbOPtinDate
          } = ebbOptinDate;
          let ebbDate = 0;
          let reOptinDate = 0;
          let today = new Date();
          if (lastEbbOPtinDate) {
            ebbDate = new Date(lastEbbOPtinDate)
            reOptinDate = new Date(ebbDate.getTime() + StaticValues.time.day * 20)
          }
          let redirect = '';
          var payload = {
            OptInSource: "Membersarea-EBBACP"
          };
          if (getParameterByName('view') == 'app') {
            payload = {
              OptInSource: "Membersarea-appEBBACP"
            };
          }
          if (getParameterByName('view') == 'email') {
            payload = {
              OptInSource: "Membersarea-emailEBBACP"
            };
          }
          if (getParameterByName('view') == 'sms') {
            payload = {
              OptInSource: "Membersarea-smsEBBACP"
            };
          }
          var secondebbevent = new Date('12 May 2021 15:00 UTC');
          // if the customer consented to transfering, transfer them
          if (vm.IConsent) {
            payload.OptInSource = payload.OptInSource.concat('-transfer')
          }
          var payload = {
            "source": value.source,
            "ACP": value.ACP
          };
          const optInBtn = document.querySelector('.acp-optin')
          const optInBtnHeight = optInBtn.clientHeight
          const optInBtnShown = optInBtnHeight > 0
          if (optInBtnShown) {
            payload.source = 'members-ACPTransfer'
          }
          const {
            Success
          } = await CustomerService.ebboptin(payload);
          showSuccess();
          if (!vm.IConsent) {
            $('.dynamicPopup').hide();
          }
          if (!Success) {} else {
            // need to throw error here
            console.log('error')
          }
          //Initial Opt in
          //if (!ebbDate) {
          //    redirect= "/members/recalloptindirect.aspx" + docLink
          //}
          ////Non-Usage Customer
          //if (!shippingAddress.SavedToMigration && !ebbDate ) {
          //    redirect = "/members/nuebboptindirect.aspx" + docLink
          //}
          ////Re-Optin
          //if (reOptinDate  < today && reOptinDate) {
          //    $('.dynamicPopup').hide()
          //    return;
          //}
          // $('.dynamicPopup').hide();
          //window.location.href = redirect 
          return;
        }
        async function HandleLLOptin(value) {
          var payload = {
            OptInSource: "Membersarea-EBBACP"
          };
          if (getParameterByName('view') == 'app') {
            payload = {
              OptInSource: "Membersarea-appEBBACP"
            };
          }
          if (getParameterByName('view') == 'email') {
            payload = {
              OptInSource: "Membersarea-emailEBBACP"
            };
          }
          if (getParameterByName('view') == 'sms') {
            payload = {
              OptInSource: "Membersarea-smsEBBACP"
            };
          }
          // if the customer consented to transfering, transfer them
          if (vm.IConsent) {
            payload.OptInSource = payload.OptInSource.concat('-transfer')
          }
          var payload = {
            "source": value.source,
            "LL": value.LL
          };
          if (vm.IConsent) {
            const {
              Success
            } = await CustomerService.ebboptin(payload);
            if (Success) {
              showllSuccess();
            } else {
              // need to throw error here
              console.log('error')
            }
          } else if (!vm.IConsent) {
            $('.dynamicPopup').hide();
          }
          return;
        }

        function showSuccess() {
          $('.ebbTerms').hide();
          $('#ebbTransferConsent').hide();
          $('.optInSuccess').show();
          $('#ebb-migration-action-cta').hide();
          $('#closeEbbModal').show();
        }

        function showllSuccess() {
          $('.llTerms, .llcta, .acpcta, .ll-info,.optInSuccess ').hide();
          $('#ll-migration-action-cta, #llTransferConsent').hide();
          $(' .lloptInSuccess').show();
          $('#closeLLModal').show();
        }

        function closeEbbModal() {
          $('.dynamicPopup').hide()
        }
        // view logic for ebb transfer button/disclaimer stuff
        function transferConsent(element) {
          vm.IConsent = element.checked;
          vm.IConsent
          if (!element.checked) {
            $('#ebb-migration-action-cta').attr('disabled', 'disabled');
            $('#youPlanIncludes').show();
          } else {
            $('#ebb-migration-action-cta').removeAttr('disabled');
            $('#youPlanIncludes').hide();
          }
        }

        function lltransferConsent(element) {
          vm.IConsent = element.checked;
          vm.IConsent
          if (!element.checked) {
            /*$('#ebb-migration-action-cta').attr('disabled', 'disabled');*/
            $('#yourPlanIncludes').show();
          } else {
            /*$('#ebb-migration-action-cta').removeAttr('disabled');*/
            $('#yourPlanIncludes').hide();
          }
        }
        async function payTabletCharge() {
          try {
            if (!vm.tabletPaymentId) {
              // no order created already create a new one
              await ShopService.clearCart();
              const {
                Success,
                Message
              } = await ShopService.addProduct({
                ProductId: vm.tabletProductId
              });
              if (!Success) throw new Error(Message)
              location.href = `/members/cart/checkout.aspx?EBB=1`;
              Helpers.showLoading({
                display: true
              });
              return;
            }
            // allow user to pickup tablet co-payment charge
            location.href = `/members/cart/retrycheckout.aspx?PaymentId=${vm.tabletPaymentId}`;
            Helpers.showLoading({
              display: true
            });
            return;
          } catch (error) {
            $.prompt(error.message);
          }
        }

        function ebboptin() {
          //LoginService.successCallback = optiningin;
          //MasterVm.ApiLogin();
          // redirect customer into the /nuebboptindirect.aspx // this is trash
          redirectToNuEbbOptInDirect();
        }
        // not currently used. previously used in ebb opt-in modal
        function optiningin() {
          var payload = {
            OptInSource: "Membersarea-overviewEBBACP"
          };
          CustomerService.ebboptin(payload).then(function(result) {
            CustomerService.getMigrationInfo().then(function(result) {
              Helpers.displayPopup();
              //justin close modal here
              $('.migratemodal-container').hide();
            }, function(error) {
              //show error msg
              console.log(error);
            });
          }, function(error) {
            //show error msg
            console.log(error);
          });
        }

        function redirectToNuEbbOptInDirect() {
          window.location.href = "/members/nuebboptindirect.aspx" + docLink;
        }

        function redirectToDocuments() {
          window.location.href = "/Documents/Pre-reverification/Overview.aspx" + docLink;
        }
        /*Handle Amazon Fuze Reward*/
        function showAmazonPrimeOfferNoUsage() {
          Helpers.displayPopup('amazonPrimeActiveForEligibilityModal', {}, true);
          dataLayer.push({
            event: 'amazon_no_usage',
            orderNumber: Number(AppCommon.CommonData.Customer.Order_Number)
          });
        }

        function checkIfShipDateIs45DaysFromToday(itemShipDate) {
          let today = new Date();
          let shipdate = new Date(itemShipDate);
          let diff = Math.abs(today - shipdate);
          let days = Math.ceil(diff / (1000 * 60 * 60 * 24));
          if (days > 45) {
            //outside of range
            return false;
          } else {
            //within range
            return true;
          }
        }
        async function showCorrectAppointmentBanner() {
          let showMakeAnAppointmentMessage = false,
            showUpcomingAppointmentMessage = false,
            usage = null,
            customerZipCode = nvStatus.StateZip.ZipCode,
            hasActiveAppointment = false,
            hasItemWithinShippingRange = false;
          try {
            let plan = await CustomerService.getCustomerPlan();
            if (plan.FirstUsageDate) {
              usage = plan.FirstUsageDate;
            }
          } catch (error) {
            console.log(error)
          }
          if (activeShipments.length > 0) {
            for (let i = 0; i < activeShipments.length; i++) {
              let shipDate = activeShipments[i].ShipDate
              if (shipDate) {
                let shipDateWithinRange = false;
                shipDateWithinRange = checkIfShipDateIs45DaysFromToday(shipDate);
                if (shipDateWithinRange) {
                  hasItemWithinShippingRange = true;
                }
              }
            }
          }
          /*
           * commented out original logic that also took usage into account
           * currently we will only check if there is an item in customer/shipping that was shipped in the last 45 days
           * this is to allow customers with usage but trouble activating data
           * and customers with usage but a replacement sim/new device recently shipped to sitll be able to make an appointment                         * 
           */
          try {
            let slots = await CustomerService.getCustomerCallbackSlots(customerZipCode)
            slots.forEach(function(element, index, array) {
              if (element.UserSlot) {
                hasActiveAppointment = element.UserSlot;
              }
            })
          } catch (error) {
            console.log(error)
          }
          if (!usage) {
            if (hasActiveAppointment) {
              showUpcomingAppointmentMessage = true;
            } else {
              showMakeAnAppointmentMessage = true;
            }
          } else if (usage && hasItemWithinShippingRange) {
            /*if (hasItemWithinShippingRange) {*/
            //only check if has appointments here?
            if (hasActiveAppointment) {
              showUpcomingAppointmentMessage = true;
            } else {
              showMakeAnAppointmentMessage = true;
            }
          }
          if (showMakeAnAppointmentMessage) {
            Helpers.renderView('appointment-container', 'makeAnAppointmentAlert')
          } else if (showUpcomingAppointmentMessage) {
            let apptDate = getBookedAppointment(hasActiveAppointment);
            vm.callbackDate = apptDate.date + " " + apptDate.timeWithoutFormat;
            Helpers.renderView('appointment-container', 'upcomingAppointmentAlert', {
              date: apptDate.day + ", " + apptDate.monthDay,
              time: apptDate.time
            })
          } else {
            Helpers.renderView('appointment-container', '');
          }
        }

        function getBookedAppointment(userSlot) {
          let bookedDate = new Date(userSlot);
          let yearMonthDay = bookedDate.getFullYear() + '-' + (bookedDate.getMonth() + 1 < 10 ? `0${bookedDate.getMonth() + 1}` : bookedDate.getMonth() + 1) + '-' + bookedDate.getDate()
          let time = bookedDate.getHours() + ':' + (bookedDate.getMinutes() < 10 ? bookedDate.getMinutes() : '') + bookedDate.getMinutes()
          let {
            day,
            monthDay
          } = formatAppointmentDate(bookedDate)
          let booked = {
            day,
            monthDay,
            time: addAMorPMtoTime(time),
            timeWithoutFormat: time,
            date: yearMonthDay
          }
          return booked;
        }

        function formatAppointmentDate(d) {
          let days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
          let months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
          let day = days[d.getDay()];
          let monthDay = months[d.getMonth()] + ' ' + d.getDate();
          return {
            day,
            monthDay
          }
        }

        function addAMorPMtoTime(time) {
          let timeArray = time.split(':');
          let hour = timeArray[0];
          let minutes = timeArray[1];
          let ampm = hour >= 12 ? 'pm' : 'am';
          hour = hour % 12;
          hour = hour ? hour : 12;
          let strTime = hour + ':' + minutes + ' ' + ampm;
          return strTime
        }
        async function showCorrectViewAmazonPrime() {
          let hasUsageLastThirtyDays = await getLineUsage(customerLines)
          let amazonFuzeRewards = customerRewards.find(item => item.RewardCampaignId == 3)
          // FirstUsedDate = "11/01/2022"
          // hasUsageLastThirtyDays = true
          if (amazonFuzeRewards) {
            //set qlink status id
            //status 0 is unclaimed, status 1 is claimed, status 100 is expired
            let qStatusId = amazonFuzeRewards.StatusId;
            if (!hasUsageLastThirtyDays && qStatusId == 0) {
              // has modal  
              renderNoUsageAmazonPrimeOffer()
            } else {
              if (qStatusId == 0) {
                //unlcaimed
                renderUnclaimedAmazonPrimeOffer("amazon_unclaimed")
              } else if (qStatusId == 1) {
                //claimed
                //call amazon {id} API 
                await lookUpAmazonFuzeStatus(amazonFuzeRewards.RewardReference)
                if (vm.amazonStatus == "ACTIVATED") {
                  renderClaimedAmazonPrimeOffer()
                } else if (vm.amazonStatus == "CREATED") {
                  renderUnclaimedAmazonPrimeOffer("amazon_claimed_created")
                } else {
                  renderExpiredAmazonPrimeOffer("amazon_claimed_other")
                }
              } else if (qStatusId == 100) {
                renderExpiredAmazonPrimeOffer("amazon_expired")
              }
            }
          } else {
            //did not find any attached amazon reward, create amazon reward
            //if no usage show modal that will say "learn more" so they activate their service to be eligible for prime offer
            //TODO change how we check if customer has usage
            if (!hasUsageLastThirtyDays) {
              renderNoUsageAmazonPrimeOffer()
            } else {
              //customer has usage but no reward
              //draw "get it now" "unclaimed amazon view" but "get it now" button will call CustomerService.createAmazonReward() before being able to claim the reward
              let lastUsageDate = "cannot be calculated"
              if (LastUsedDate[0]) {
                let date = parseInt(LastUsedDate.toString().match(/-*[0-9]+/).toString())
                lastUsageDate = new Date(date).toISOString()
              } else {
                let today = new Date();
                let yesterday = new Date(today)
                yesterday.setDate(yesterday.getDate() - 2)
                lastUsageDate = yesterday.toISOString()
              }
              renderUnclaimedUnAttachedAmazonPrimeOffer(lastUsageDate)
            }
          }
        }

        function renderUnclaimedAmazonPrimeOffer(gtagEvent) {
          Helpers.renderView('amazon-prime-offer-container', 'amazon-prime-offer-unclaimed-template', {
            gtagEvent: gtagEvent
          })
          $('[data-toggle="tooltip"]').tooltip();
        }

        function clickEventUnclaimed(gtagEvent) {
          dataLayer.push({
            event: gtagEvent,
            orderNumber: Number(AppCommon.CommonData.Customer.Order_Number)
          });
          location.href = './amazon-handoff.aspx';
        }

        function renderUnclaimedUnAttachedAmazonPrimeOffer(lastUsageDate) {
          Helpers.renderView('amazon-prime-offer-container', 'amazon-prime-offer-unclaimed-unattached-reward-template', {
            lastUsageDate: lastUsageDate
          })
          $('[data-toggle="tooltip"]').tooltip();
        }

        function renderClaimedAmazonPrimeOffer() {
          let expirationDate = new Date(vm.amazonActivationDate);
          expirationDate.setMonth(expirationDate.getMonth() + 2);
          if (new Date() > expirationDate) {
            renderExpiredAmazonPrimeOffer("amazon_claimed_past_expiration")
          } else {
            Helpers.renderView('amazon-prime-offer-container', 'amazon-prime-offer-claimed-template', {
              gtagEvent: "amazon_claimed_activated"
            })
          }
        }

        function renderExpiredAmazonPrimeOffer(gtagEvent) {
          Helpers.renderView('amazon-prime-offer-container', 'amazon-prime-offer-expired-template', {
            gtagEvent: gtagEvent
          })
        }

        function renderNoUsageAmazonPrimeOffer() {
          Helpers.renderView('amazon-prime-offer-container', 'amazon-prime-offer-no-usage-template', {})
          $('[data-toggle="tooltip"]').tooltip();
        }
        async function lookUpAmazonFuzeStatus(RewardReference) {
          //call amazon reward endpoint with id
          let getAmazonStatus = await CustomerService.lookUpAmazonFuzeReward(RewardReference)
          if (getAmazonStatus.Success) {
            vm.amazonStatus = getAmazonStatus.Status;
            vm.amazonActivationDate = getAmazonStatus.ActivationDate;
          }
        }
        async function createAmazonPrimeRewardAndSendToHandoff(lastUsageDate) {
          dataLayer.push({
            event: 'amazon_unclaimed_unattached',
            orderNumber: Number(AppCommon.CommonData.Customer.Order_Number)
          });
          let payload = {
            RewardCampaignId: 3,
            RewardReason: "Existing customer with last usage on " + lastUsageDate
          }
          let createAmazonRewardResult = await CustomerService.createAmazonReward(payload)
          if (createAmazonRewardResult.Success) {
            window.location.href = "/members/amazon-handoff.aspx";
          } else { //If customer alredy claimed offer please let customer know the he is not eligible for this offer...                      
            Helpers.displayPopup('eligibilityModal', {
              Name: AppCommon.CommonData.Customer.FirstName
            }, true);
          }
        }
        async function getLineUsage(lines, searchEntireLifetime = false) {
          if (lines.length <= 0) {
            // if customer does not have a phone number, return false
            return false;
          }
          let realLine = lines.find(line => line.IsRealNumber === true);
          if (realLine.PhoneNumber) {
            return await getUsage(realLine.PhoneNumber, searchEntireLifetime);
          }
          // if customer does not have a phone number, return false
          return false;
        }
        /**
         * @description Check usage from a month ago
         * @param {string} MDN 
         */
        async function getUsage(MDN, searchEntireLifetime = false) {
          let today = new Date();
          let tomorrow = new Date(today)
          tomorrow.setDate(tomorrow.getDate() + 1)
          let searchDate = null;
          if (searchEntireLifetime) {
            let FortyfiveDaysAgo = new Date().setDate(tomorrow.getDate() - 45);
            FortyfiveDaysAgo = new Date(FortyfiveDaysAgo);
            searchDate = FortyfiveDaysAgo;
          } else {
            let MonthAgo = new Date().setDate(tomorrow.getDate() - 30);
            MonthAgo = new Date(MonthAgo);
            searchDate = MonthAgo;
          }
          let payload = {
            "PhoneNumber": MDN,
            "To": tomorrow.toLocaleDateString("en-US"),
            "From": searchDate.toLocaleDateString("en-US")
          }
          const {
            DataUsed,
            MinutesUsed,
            Texts
          } = (await CustomerService.getCustomerUsage(payload))[0];
          // if no usage, return false 
          if (DataUsed || MinutesUsed || Texts) {
            // hide tablet option in members for customers with ussage
            return true
          }
          return false
        }
      });
      OverviewVm.init();
      var planObject = {
        planName: "ACP Plan",
        data: "UNLIMITED",
        minutes: "UNLIMITED",
        messages: "UNLIMITED",
        bytes: ""
      };
      //var ua = navigator.userAgent.toLowerCase();
      //var isAndroid = ua.indexOf("android") > -1overv;
      //if (isAndroid) {
      //    $("#cashOut").show();
      //}
      //else {
      //    $("#cashOut").hide();
      //}
      /** Adding replacement SIM here to execute last **/
      const overviewVm = Injector.run('overviewVm', ['AppCommon', 'ShopService', 'ByopService', 'StaticValues', 'Helpers', 'CustomerService', 'LoginService'], function(AppCommon, ShopService, ByopService, StaticValues, Helpers, CustomerService,
        LoginService) {
        const vm = {
          init: init,
          orderReplacementSim: orderReplacementSim,
          phoneInfo: null,
          phoneHelpContainer: "phone-help-message",
          shipments: null,
          shipmentsContainer: 'listTrackingNumbers-container',
        };
        return vm;

        function init() {
          vm.phoneInfo = JSON.parse(
            '[{"LifelinePhoneNumber":"2799445607","ActivatedDate":"\/Date(1701579600000)\/","FirstUsedDate":"\/Date(1702499958000)\/","LastUsedDate":"\/Date(1702831755000)\/","LifelinePhoneProductId":25041,"Phonename":"QLink-GSM-SIM","PhoneManufacturerName":"Q Link","Hotlined":false,"AllowToActivate":false,"CustomerServiceURL":"","IsByod":true,"ESN":null,"ICCID":"8901240334928767775","SimToBeShipped":true,"Active":true}]'
            )[0]; // if in members area, phoneInfo should always be available
          getShipments();
          // openActivationModal()
        }

        function getShipments() {
          vm.shipments = activeShipments;
          renderShipments(vm.shipments);
          if (isByopActivatedLess30Days(vm.phoneInfo)) {
            renderSimReplacementMessagingInView();
          }
        }

        function shipmentModelForView(shipment) {
          return {
            Cancelable: shipment.Cancelable,
            TrackingNumber: shipment.TrackingNumber,
            TrackingLink: shipment.TrackingLink,
            TrackingNumberDisplay: shipment.TrackingNumber ? 'block' : "hide",
            ShipDate: shipment.ShipDate ? shipment.ShipDate : "Pending...",
            ReceivedDate: shipment.ReceivedDate ? shipment.ReceivedDate : "Pending...",
            ProductName: shipment.Name.toLowerCase().indexOf('sim') != -1 ? "SIM Kit" : shipment.Name,
            OrderStatus: shipment.ShipDate ? (shipment.ReceivedDate ? "Received" : "Out for Delivery..") : "Processing",
            OrderItemId: shipment.OrderItemId ? shipment.OrderItemId : " "
          }
        }

        function renderShipments(shipments) {
          const shipmentsToDisplay = [];
          for (var i = 0, l = shipments.length; i < l; i++) {
            if (shipments[i]) shipmentsToDisplay.push(shipmentModelForView(shipments[i])); // TODO: create a model for the view - logic to know which shipments to display in the list  
          };
          //let cancelHtml = shipmentsToDisplay.map(cancel => {
          //    return (
          //        `${shipment.Cancelable ? `<span href="/members/shipments.aspx?OrderItemId=${shipment.OrderItemId}">Cancel Order</span>` : ""}`
          //        )
          //})  
          let cancelBtn = (shipmentsToDisplay.find(item => item.ProductName === "SIM Kit")) ? '' : shipmentsToDisplay.filter(cancel => cancel.Cancelable == true); //THIS CAN BE HANDLED BETTER...
          if (cancelBtn) {
            cancelBtn = cancelBtn.map(cancel => (`${cancel.Cancelable ? `<a href="/members/shipments.aspx?OrderItemId=${cancel.OrderItemId}">Cancel Order</a>` : ""}`))
          }
          const html = shipmentsToDisplay.map(shipment => {
            return (`<tr id="shipment-${shipment.OrderItemId}">
                             <td>

                                <p>
                                    <strong> Product :</strong> ${shipment.ProductName} <br />
                                    <strong> Order Status :</strong> ${shipment.OrderStatus}
                                </p>
                                <p class="${shipment.TrackingNumberDisplay}">
                                    <strong>Tracking Number:</strong>
                                    <a href=${shipment.TrackingLink} target="_blank">${shipment.TrackingNumber}</a>
                                </p>
                                <p>
                                    <strong>Ship Date: </strong> ${shipment.ShipDate}<br />
                                    <strong>Receive Date: </strong> ${shipment.ReceivedDate}
                                </p>                                            
                            </td>
                         </tr>`)
          });
          if (shipmentsToDisplay.length > 0) {
            document.getElementById('cancelBtn').innerHTML = (cancelBtn[0] == undefined) ? '' : cancelBtn[0];
            document.getElementById(vm.shipmentsContainer).innerHTML = html.join().replaceAll(',', '');
            $('#shipments').show();
            return;
          }
          // Helpers.render(vm.shipmentsContainer, html.join(), {});
        }

        function renderSimReplacementMessagingInView() {
          const simShipment = hasSimShipment(vm.shipments);
          if (simShipment) {
            Helpers.renderView(vm.phoneHelpContainer, 'phone-help-message-shipment', {});
            return;
          }
          // phone-help-message-activate
          Helpers.renderView(vm.phoneHelpContainer, 'phone-help-message-activate', {});
        }

        function hasSimShipment(shipments) {
          if (shipments.length > 0) {
            for (var i = 0, l = shipments.length; i < l; i++) {
              if (shipments[i].Description && shipments[i].Description.toLowerCase().indexOf('sim') != -1) {
                return shipments[i];
              }
            }
          }
          return false;
        }

        function isByopActivatedLess30Days(phoneInfo) {
          if (phoneInfo && phoneInfo.Phonename.toLowerCase().indexOf('byod') != -1) {
            const day30FromActivated = new Date(parseInt(vm.phoneInfo.ActivatedDate.replace(/\D+/g, '')) + (30 * StaticValues.time.day));
            if (new Date() < day30FromActivated) {
              return true;
            }
          }
          return false;
        }
        // click event - order replacement SIM
        function orderReplacementSim(event) {
          if (event) {
            event.preventDefault();
          };
          ByopService.orderReplacementSim({
            SerialNumber: vm.phoneInfo.ESN,
            PhoneNumber: vm.phoneInfo.LifelinePhoneNumber
          }).then(function(result) {
            $.prompt(`<h2>Great! Your new SIM card is on its way</h2><p>Check your email and SMS for tracking details soon! </p>`);
          }, function(error) {
            $.prompt(`<h2>Oops! Your SIM card order failed to process</h2><p>${error.Message}</p>`);
          });
        }
      });
      var LongDistanceVm = Injector.run('LongDistanceVm', ['LDAccount', 'AppCommon', 'CustomerService', 'Helpers', 'LoginService', 'StaticValues', 'ByonService', 'ShopService', 'Members'], function(LDAccount, AppCommon, CustomerService, Helpers,
        LoginService, StaticValues, ByonService, ShopService, Members) {
        var vm = {};
        vm.getAccountDetails = getAccountDetails;
        vm.init = init;
        vm.chooseDeviceImage = vm.chooseDeviceImage;
        vm.showPendingStatuses = showPendingStatuses;
        vm.customerType = '';
        vm.SavedToMigration = false;
        vm.showbyon = true;
        vm.migrated = false
        vm.hasUssage = false;
        vm.nextMonth = nextMonth()
        return vm;
        async function init() {
          const {
            EBBStatus: {
              DeviceSubsidy,
              NeedsTransferLock: NeedsTransferLockConsent
            },
            NLADStatus: {
              NeedsTransfer: NeedsLLTransfer,
              Enrolled: LLEnrolled
            },
            StateZip: {
              NLAD: LLState,
              EBB: EBBState
            }
          } = nvStatus;
          const {
            Value: registeredPromo
          } = byonPromo
          const ForceDevice = await Members.getUserSetting('ForceDevice');
          /** giftcard/freePhone offer dates */
          const simCardOrder = activeShipments.find(x => x.ProductId === 25041);
          //######################################################
          const startDate = new Date("2022-10-12T15:00:00") // offer begins on this day
          const deliveryDate = simCardOrder ? new Date(simCardOrder.ReceivedDate) : new Date(); // set delivery datte in the past if the customer has no shipping
          const cutOffDate = new Date();
          cutOffDate.setDate(deliveryDate.getDate() + 30);
          //######################################################
          const {
            Today
          } = Helpers.getQuerystringData(window.location.search);
          // use the firstActivation date for a line to determine which customers should see the BYON.Promo banners
          // use the customer's signature date to determine which customers should see the BYON.Promo
          const signatureDate = getSignatureDate()
          const activationDate = activeLines[0] ? new Date(activeLines[0].FirstActivationDate) : new Date("2021-09-12T15:00:00"); // SET THE ACTIVATION DATE IN THE PAST IF NO ACTIVATION DATE EXISTS. THESE CUSTOMERS SHOUL DNOT SEE THE PROMO
          // set cut off dates for free_phone and for gift_card promos
          const FP_cutOffDate = new Date(activationDate)
          const GC_cutOffDate = new Date(activationDate);
          FP_cutOffDate.setMonth(activationDate.getMonth() + 1); // 35 days from activation
          FP_cutOffDate.setDate(FP_cutOffDate.getDate() + 5); // ^
          GC_cutOffDate.setMonth(activationDate.getMonth() + 1); // 35 days from activation
          GC_cutOffDate.setDate(GC_cutOffDate.getDate() + 5); // ^
          // damit I don't remember why I put this date here if today === true
          const today = Today ? new Date("2022-11-21T15:00:00") : new Date();
          var model = "Q Link QLink-GSM-SIM";
          // This is a badaid solution - see comments below                      
          var hasLdAccount = Boolean('False');
          if (!hasLdAccount) {
            $('#internationalPlaninfo').hide();
          }
          // get migrationInfo directly, remove success callback
          getMigrationInfo();
          //handles all alerts on the overview page
          alertHandler();
          await getLineUsage(customerLines)
          // need to check Nvstatus to see if the customer can purchase the tablet
          if ((DeviceSubsidy == true || DeviceSubsidy == null)) {
            $('#shopDeals').show();
          }
          /** Menu Tablet option override 
           * if the customer has setting: ForceDevice == true -> need to show the tablet option in the header
           */
          if (ForceDevice.Value) {
            $('#shopDeals').show();
          }
          if (NeedsTransferLockConsent === true) {
            const popups = document.querySelectorAll('.dynamicPopup')
            for (let i = 0; i < popups.length; i++) {
              let popup = popups[i]
              popup.style.display = 'none';
            }
            const needsLLOptin = lastLLOptinDate();
            let showLLModal = false;
            // lifeline optin
            if (LLState === true) {
              if ((!LLEnrolled && needsLLOptin) || needsLLOptin) {
                // show modal
                showLLModal = true;
              }
              if ((!LLEnrolled && needsLLOptin === null)) {
                // show modal
                showLLModal = true;
              }
            }
            if (NeedsLLTransfer) {
              showLLModal = true;
            }
            if (showLLModal) {
              Helpers.displayPopup('llTransferModal', {}, true);
              $('#LLTransferConsent').show();
              $('.ll-optin, .llcta, .ll-info').show()
              $('.ebb-Date').hide()
            }
            Helpers.displayPopup('ACPTransferLockModal', {
              nextMonth: vm.nextMonth
            }, true);
            ebbModal = true
          }
          showPendingStatuses();
          /**
           * @description Show gift_card/free_phone to customers who meet the following requirements:
           *                  Gift_card  : customers have 35 days from SIM activation to claim the gift_cart (starting 10/12/22)
           *                  Free_phone : Customers have 35 days from SIM activation to claim the free_phone  (starting 10/12/22)
           *                  
           *                  customers who don't have firstUssage should still see the offer
           *                  
           *                  free_phone:
           *                      DeviceSubsidy === true || null
           *                      customer settings: BYON.Promo == null
           *
           *                  gift_card:
           *                      customer settings: BYON.Promo == null
           *              
           **/
          // signature date must be past the start date of the promotion
          let activateByonPromo = Helpers.getFromSessionStorage('byonPromo')
          let fromActivatePage = Helpers.getFromSessionStorage('fromActivatePage')
          if (signatureDate > startDate) {
            if (fromActivatePage) {
              Helpers.clearSessionStorage('fromActivatePage')
              if (activateByonPromo == "fp") {
                if ((DeviceSubsidy === true || DeviceSubsidy === null) && (registeredPromo == null || registeredPromo.includes("free_phone")) && (today <= FP_cutOffDate) && (ebbOptinDate.ACP != null)) {
                  if (altCheckout) {
                    window.location.href = '/customer/members/shop/phones/30700';
                  } else {
                    window.location.href = `/members/SetUpYourNumber.aspx${docLink}&byonPromo=fp`;
                  }
                } else {
                  //send to shop phones page
                  Helpers.addToSessionStorage('notQualifiedForCombo', true);
                  if (altCheckout) {
                    window.location.href = `/customer/members/shop/phones/30700`;
                  } else {
                    window.location.href = `/members/shopphones.aspx${docLink}`;
                  }
                  return;
                }
              } else if (activateByonPromo == "gc") {
                if ((registeredPromo == null) && (today <= GC_cutOffDate)) {
                  window.location.href = `/members/SetUpYourNumber.aspx${docLink}&byonPromo=gc`;
                } else {
                  $("#ineligible-giftcard-promo-alert").show();
                }
              }
            }
            // 35 days for giftcard
            if ((registeredPromo == null) && (today <= GC_cutOffDate)) {
              handlePromoBanners("gift_card")
            }
            // 35 days for free_phone
            if ((DeviceSubsidy === true || DeviceSubsidy === null) && (registeredPromo == null) && (today <= FP_cutOffDate) && (ebbOptinDate.ACP != null)) {
              handlePromoBanners("giftCard_free_Phone")
            }
          } else {
            if (fromActivatePage) {
              Helpers.clearSessionStorage('fromActivatePage')
              if (activateByonPromo == "fp") {
                //send to shop phones page
                Helpers.addToSessionStorage('notQualifiedForCombo', true);
                if (altCheckout) {
                  window.location.href = `/customer/members/shop/phones/`;
                } else {
                  window.location.href = `/members/shopphones.aspx${docLink}`;
                }
                return;
              } else if (activateByonPromo == "gc") {
                $("#ineligible-giftcard-promo-alert").show();
              }
            }
          }
        }
        /**
         * @description handles displaying the promo banners.
         * 
         *              there are two banners, gift_card only && free_phone + giftcard
         * @param {str} banner string definig what banner to show to customers
         * */
        function handlePromoBanners(banner) {
          const banner_giftCardOnly = $('.amazonOfferContainerWrapper');
          const banner_giftCard_phone = $('.aj-bonus-combo-main-container');
          // free_phone + gift_card
          if (banner == "giftCard_free_Phone") {
            banner_giftCard_phone.show()
            banner_giftCardOnly.hide()
            return
          }
          // gift_card only
          banner_giftCardOnly.show()
          banner_giftCard_phone.hide()
          return
        }
        /**
         * @description Check usage from a month ago
         * @param {string} MDN 
         */
        async function getUsage(MDN) {
          let today = new Date();
          let MonthAgo = new Date().setDate(today.getDate() - 30);
          MonthAgo = new Date(MonthAgo);
          let payload = {
            "PhoneNumber": MDN,
            "To": today.toLocaleDateString("en-US"),
            "From": MonthAgo.toLocaleDateString("en-US")
          }
          const {
            DataUsed,
            MinutesUsed,
            Texts
          } = (await CustomerService.getCustomerUsage(payload))[0];
          vm.DataUsed = DataUsed
          // if no usage, return false 
          if (DataUsed || MinutesUsed || Texts) {
            // hide tablet option in members for customers with ussage
            vm.hasUssage = true;
            return true
          }
          return false
        }

        function nextMonth() {
          let d = new Date();
          d.setMonth(d.getMonth() + 1, 1);
          return d.toLocaleDateString()
        }
        async function getLineUsage(lines) {
          if (lines.length <= 0) {
            // if customer does not have a phone number, return false
            return false;
          }
          let realLine = lines.find(line => line.IsRealNumber === true);
          if (realLine.PhoneNumber) {
            return await getUsage(realLine.PhoneNumber);
          }
          // if customer does not have a phone number, return false
          return false;
        }

        function oneHourCookie() {
          Helpers.addToSessionStorage("activationModal", "activation modal")
        }
        /**
         * @description gets the customer's signature date and parses it into date format
         * */
        function getSignatureDate() {
          const signatureDate = AppCommon.CommonData.Customer.SignatureTime;
          const parsedSignatureDate = signatureDate.substring(signatureDate.indexOf("(") + 1, signatureDate.lastIndexOf(")"));
          return new Date(+parsedSignatureDate);
        }
        async function alertHandler() {
          var customerSigndate = AppCommon.CommonData.Customer.OrderDate.split(' ')[0];
          var tabletDate = '3/5/2021';
          let migrationOrder = {};
          let parsedSignatureDate = getSignatureDate()
          let dayFromSignature = new Date(parsedSignatureDate).setDate(parsedSignatureDate.getDate() + 5);
          dayFromSignature = new Date(dayFromSignature)
          let today = new Date();
          let receivedDate = activeShipments.length > 0 ? activeShipments.reduce((accum, shipment) => {
            if (shipment.ReceivedDate !== null) return shipment.ReceivedDate
            return null
          }, '') : null
          // If one day or more after recieved date, show the alert
          //let oneDayAfterRecievedDate = new Date().setDate(receivedDate.getDate() + 1);
          // today >= oneDayAfterRecievedDate
          if (receivedDate !== null) {
            /*
             * if (today < dayFromSignature) {
                let usage = (customerLines.length > 0) ? await getLineUsage(customerLines) : false
            }
            */
            if (vm.DataUsed <= 1) {
              $('#noActiveLinesAlert').show();
              let activationModalSession = Helpers.getFromSessionStorage('activationModal')
              if (!activationModalSession) {
                oneHourCookie()
              }
              return;
            }
          }
          if (shippingAddress.SavedToMigration == false) {
            $('#confirmAddressalert').show();
          } else {
            $('#confirmAddressalert').hide();
          }
          if (migrationInfo.length > 0) {
            if (shippingAddress.SavedToMigration == true) {
              migrationOrder = migrationInfo.find(migrationInfo => migrationInfo.IsRealNumber == true)
            }
            if (migrationOrder && migrationOrder.MigrationOrderId > 0) {
              $('#sim-ship-alert').hide();
            }
            if (migrationInfo[0].ShipDate != null) {
              $('#sim-ship-alert').hide();
            }
            //if (migrationInfo[0].Migrated == true) {
            //    if (customerSigndate > tabletDate)
            //        $('#tablet-alert').show();
            //    $('#sim-ship-alert').hide();
            //    vm.migrated = true;
            //}
          } else {
            $('#sim-ship-alert').hide();
          }
        }

        function getParameterByName(name, url) {
          if (!url) url = window.location.href;
          name = name.replace(/[\[\]]/g, '\\$&');
          var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
            results = regex.exec(url);
          if (!results) return null;
          if (!results[2]) return '';
          return decodeURIComponent(results[2].replace(/\+/g, ' '));
        }

        function getMigrationInfo() {
          // document.getElementById('member-banner-container').style.display = 'block';
          var customerSigndate = AppCommon.CommonData.Customer.OrderDate.split(' ')[0];
          var tabletDate = '3/5/2021';
          if (migrationInfo.length > 0) {
            //if (migrationInfo[0].ShipDate != null) {
            //    $('#sim-ship-alert').hide();
            //}
            //if (migrationInfo[0].MigrationOrderId != 0 && migrationInfo[0].Migrated == false) {
            //    vm.showbyon = false;
            //    document.getElementById('showbyon').style.display = 'none';
            //}
            if ((migrationInfo[0].Migrated == false) && (migrationInfo[0].MigrationOrderId != 0)) {
              //document.getElementById('member-banner-container').style.display = 'block';
            }
            //console.log(migrationInfo[0].CustomerType);
            if (migrationInfo[0].CustomerType == 'SIMDevice' && migrationInfo[0].Migrated == false && vm.SavedToMigration == true) {
              vm.customerType = 'SIMDevice';
            } else if (migrationInfo[0].CustomerType == 'SIMOnly' && migrationInfo[0].Migrated == false && vm.SavedToMigration == true) {
              vm.customerType = 'SIM';
            } else if (migrationInfo[0].Migrated == false && vm.SavedToMigration == true) {
              vm.customerType = 'SIMDevice'; //lost
            }
            //else if (migrationInfo[0].Migrated == true) {
            //    if (customerSigndate > tabletDate)
            //        $('#tablet-alert').show();
            //    $('#sim-ship-alert').hide();
            //    vm.migrated = true;
            //}
            //else {
            //    $('#sim-ship-alert').hide();
            //}
          }
          // 
          getShippingDetails();
          /* CustomerService.getMigrationInfo().then(
               function (result) {
                   getShippingDetails();
                   // MasterVm.ApiLogin();
               },
               function (error) {
                   console.log(error);
               }); */
        }

        function callingApis() {
          var lifelinePhone = "2799445607";
          var payload = {
            PhoneNumber: lifelinePhone
          };
          if (payload.PhoneNumber.length > 0) {
            getAccountDetails(); // this is rewards 
            getCustomerRewards();
          } else {
            $("#internationalPlaninfo").hide();
            $("#Rewards").hide();
            showPendingStatuses();
          }
          // unessesary, call already in init
          // MasterVm.ApiLogin();
          if (vm.customerType == "SIM") {
            var simclasses = document.getElementsByClassName('sim');
            for (var i = 0; i < simclasses.length; i++) {
              simclasses[i].style.display = 'inline-block';
            }
          } else if (vm.customerType == "SIMDevice") {
            var phoneclasses = document.getElementsByClassName('phone');
            for (var i = 0; i < phoneclasses.length; i++) {
              phoneclasses[i].style.display = 'inline-block';
            }
          } else if (vm.customerType == "LOST") {
            var phoneclasses = document.getElementsByClassName('phone');
            for (var i = 0; i < phoneclasses.length; i++) {
              phoneclasses[i].style.display = 'inline-block';
            }
          } else {
            var simclasses = document.getElementsByClassName('sim');
            for (var i = 0; i < simclasses.length; i++) {
              simclasses[i].style.display = 'inline-block';
            }
          }
        }
        async function getCustomerRewards() {
          overviewVm.init();
          if (crmTodos.length > 1) {
            let Todos = crmTodos.map(ToDo => ToDo.Key).includes("ToDo_QLIXAR")
            if (Todos === false) {
              await LDAccount.getAccountDetail({
                PhoneNumber: '2799445607'
              });
              var detailArray = AppCommon.CommonData.Rewards[0];
              if (detailArray.IsOK) {
                document.getElementById("Rewards").style.display = 'block';
                document.getElementById("rewardsCount").innerHTML = AppCommon.CommonData.Rewards[0].User.balance;
                document.getElementById("no-balance").style.display = 'none';
              } else {
                document.getElementById("Rewards").style.display = 'block';
                document.getElementById("no-balance").style.display = 'block';
                document.getElementById("balance").style.display = 'none';
                document.getElementById("cashOut").style.display = 'none';
              }
            } else {
              document.getElementById("Rewards").style.display = 'block';
              document.getElementById("no-balance").style.display = 'block';
              document.getElementById("balance").style.display = 'none';
              document.getElementById("cashOut").style.display = 'none';
            }
          }
        }

        function changeContentAfterDate() {
          let targetDate = new Date("12/31/2021");
          var today = new Date();
          if (today > targetDate) {
            $('.ebb-Date').hide()
            $('.acp-Date').show()
            //$('.ll-Date').show()
          } else {
            $('.acp-Date').hide()
            $('.ebb-Date').show()
          }
        }
        /**
         * the lastLLOptinDate function checks if the customer has optedin the LL in the past 20days
         * @return the value of the date
         */
        function lastLLOptinDate() {
          const {
            LL: lastLLOPtinDate
          } = ebbOptinDate;
          if (lastLLOPtinDate === null || lastLLOPtinDate === undefined) {
            return null;
          }
          const llDate = new Date(lastLLOPtinDate)
          let today = new Date()
          const LLoptinAgainDate = new Date(llDate.getTime() + StaticValues.time.day * 20);
          return (LLoptinAgainDate.getTime() <= today.getTime()) ? true : false;
        }

        function getShippingDetails() {
          // mounika said don't change the hardcoded date. something about ebb.
          // ask Ron, we have no idea what it is ...
          var secondebbevent = new Date('12 May 2021 17:00 UTC');
          secondebbevent = secondebbevent.toISOString();
          //CustomerService.getebbdate().then(
          //   function (result) 
          const needsLLOptin = lastLLOptinDate();
          const {
            ACP: lastEbbOPtinDate
          } = ebbOptinDate;
          /**
           * THIS IS TRASH
           */
          const ebbDate = new Date(lastEbbOPtinDate)
          let today = new Date()
          const optinAgainDate = new Date(ebbDate.getTime() + StaticValues.time.day * 20);
          let totalDays = Math.abs(today.getTime() - optinAgainDate)
          let showLLModal = false;
          const totalDaysInt = Math.ceil(totalDays / (1000 * 60 * 60 * 24));
          const ACPoptinDate = optinAgainDate.getTime() <= today.getTime()
          let showACPNonConsentModal = false;
          // only show the ebb modals if the migration modal will notbe on the screen
          if (OverviewVm.mirationModalActive == false) {
            // lifeline optin
            if (nvStatus.StateZip.NLAD === true) {
              if ((!nvStatus.NLADStatus.Enrolled && needsLLOptin) || needsLLOptin) {
                // show modal
                showLLModal = true;
              }
              if ((!nvStatus.NLADStatus.Enrolled && needsLLOptin === null)) {
                // show modal
                showLLModal = true;
              }
              if (showLLModal) {
                Helpers.displayPopup('llTransferModal', {}, true);
                $('#LLTransferConsent').show();
                $('.ll-optin, .llcta, .ll-info').show()
                $('.ebb-Date').hide()
              }
            }
            /**
             * what are the conditions behind NeedsTransfer === true
             */
            // ACP optin
            if (nvStatus.EBBStatus.NeedsTransfer === true && !nvStatus.EBBStatus.Enrolled) {
              Helpers.displayPopup('ebbTransferModal', {}, true);
              changeContentAfterDate()
              $('#ebbTransferConsent').show();
              $('.acp-confirm').hide()
              $('.acp-optin').show()
              ebbModal = true
            }
            if (ACPoptinDate && nvStatus.EBBStatus.NeedsTransfer === false) {
              showACPNonConsentModal = true
            }
            if (showACPNonConsentModal) {
              Helpers.displayPopup('ebbTransferModal', {}, true);
              changeContentAfterDate()
              $('.acp-confirm').show()
              $('.acp-optin').hide()
            }
          }
          /*ebbUnlimited*/
          //vm.ebbconfirmationdate = ebbOptinDate.LastDate != null ? ebbOptinDate.LastDate : null;
          //if (vm.ebbconfirmationdate < secondebbevent || vm.ebbconfirmationdate == null) {
          //    if(ebbModal == false){
          //        Helpers.displayPopup('ebbModal', {}, true);
          //        ebbModal = true
          //    }
          //}
          // },
          // function (error) {
          //     //show error msg
          //     console.log(error);
          // });
          //                         CustomerService.getShippingAddress().then(
          //                           function (result) {
          Object.keys(shippingAddress).forEach(function(key) {
            if (shippingAddress[key] === null) {
              shippingAddress[key] = '';
            }
          });
          //let migrationOrder = {};
          //if (!shippingAddress.SavedToMigration && lastEbbOPtinDate !== null) {
          //    Helpers.displayPopup('ebbModal', {}, true);
          //    $('#ebb-migration-action-cta').attr("data-action", "address");
          //    // vm.SavedToMigration = false;
          //}
          // if(shippingAddress.SavedToMigration == true){
          //    migrationOrder = migrationInfo.find(migrationInfo => migrationInfo.IsRealNumber == true)
          //}
          //show alert
          $('#shippingAddressPanel').show();
          // vm.SavedToMigration = true;
          //if (migrationOrder && migrationOrder.MigrationOrderId > 0) {
          //    $('#sim-ship-alert').show();
          //}
          var formattedShipAddress = shippingAddress.Address1 + '' + shippingAddress.Address2 + '' + shippingAddress.Address3 + ', ' + shippingAddress.City + ', ' + shippingAddress.Province + ' ' + shippingAddress.PostalCode;
          var formattedShipAddress = `<div>
                        ${shippingAddress.Address1} ${shippingAddress.Address2} ${shippingAddress.Address3} ${shippingAddress.City}  ${shippingAddress.Province},  ${shippingAddress.PostalCode}</div>`;
          document.getElementById('shippingaddress').innerHTML = formattedShipAddress;
          //else {
          //show modal
          //if (!shippingAddress.SavedToMigration && lastEbbOPtinDate !== null ) {
          //           Helpers.displayPopup('ebbModal', {}, true);
          //           $('#ebb-migration-action-cta').attr("data-action", "address");
          //           // vm.SavedToMigration = false;
          //       }
          //Helpers.displayPopup('confirmAddressModal', {}, true);
          $('#open-notes-2').click(function() {
            if ($('.open-notes-wrap-2').css('display') == 'none') {
              $('.open-notes-wrap-2').show();
              $(this).text('Close Details');
            } else {
              $('.open-notes-wrap-2').hide();
              $(this).text('See Details');
            }
          });
          //  $('#sim-ship-alert').show();
          //}
          callingApis();
          // unessesary, call already in init
          //MasterVm.ApiLogin();
          //    },
          //    function (error) {
          //       console.log(error);
          //   });
        }

        function getAccountDetails() {
          /*
                           =====================================
                           TODO: Clen up code in this section:
                           =====================================
                               1. Make the international views using templates
                                   - no international CTA
                                   - has paygo - display paygo plan details
                                   - has unlimited - display unlimited plan details
    
                               2. Do not hide / show using ID(s) it's hard to track
    
                               3. Don't make call to for LD account details if Master.CustomerHasLD == false (show CTA to buy)
    
                               4. Maybe use a switch statement rather than if - else if - else statement, it would be easier to extend or remove options
    
                               5. Format your code to be readable - keep consistent spacing and line breaks
    
                               6. Be descriptive on variable / function declarations what account details are you retriveing? there is both rewards and LD
    
                               7. Always have feedback to user on screen for all states (API work) states can also be for interaction on client:
                                   - error
                                   - success
                                   - default
                                   - there could be more states depending on requirement but the above is minimum for any feature
    
                               8. Create complex logic by using pure functions as building blocks
    
                               9. This funciton is doing too many things see suggestion 8
    
                       */
          var lifelinePhone = "2799445607";
          var payload = {
            PhoneNumber: lifelinePhone
          };
          // if data already stored, don't re-call APIs
          // this is trash
          /** @TODO : find what value determines no rewards  */
          if (rewards) {
            DoGetAccountDetail(rewards);
          } else {
            $("#Rewards").hide();
          }

          function DoGetAccountDetail(data) {
            overviewVm.init();
            var detailArray = AppCommon.CommonData.Rewards[0];
            // console.log(AppCommon.CommonData.CallRecords[0].User.balance);
            if (detailArray.IsOK) {
              document.getElementById("balance").style.display = 'block';
              document.getElementById("rewardsCount").innerHTML = AppCommon.CommonData.Rewards[0].User.balance;
              document.getElementById("no-balance").style.display = 'none';
            } else {
              document.getElementById("no-balance").style.display = 'block';
              document.getElementById("balance").style.display = 'none';
              document.getElementById("cashOut").style.display = 'none';
            }
          }

          function isQlinkPhone(hasShipment) {
            const qLinkPhone = hasShipment.find(element => element.ProductId == 20425 || element.ProductId == 24092);
            if (qLinkPhone) {
              for (let i = 0; i < hasShipment.length; i++) {
                if (hasShipment[i].ProductId == 24092 || hasShipment[i].ProductId == 20425) {
                  hasShipment[i].ReceivedDate === null ? "" : $(".moreInfo").show();
                }
              }
            }
          }
          const hasShipment = activeShipments;
          if (hasShipment.length > 0) {
            isQlinkPhone(hasShipment);
          }
          let hasLongDistance = AppCommon.CommonData.Customer.HasActiveRebillSub_LongDistance;
          if (hasLongDistance) {
            LDAccount.getInternationalAccountDetail(payload).then(function(result) {
              var detailArray = AppCommon.CommonData.LDAccount[0];
              if (detailArray != null) {
                $("#internationalPlaninfo").show();
                if (detailArray.UnlimitedEnabled && (detailArray.PayGoBalance >= 0)) {
                  $("#internationalPayGoPlaninfo").show();
                  document.getElementById("LastPlanPurchased").innerHTML = "World Link";
                  document.getElementById("PayGoBalance").innerHTML = detailArray.PayGoBalance;
                  var expirationDateTime = detailArray.ExpirationDate;
                  $("#payGoExpireText").show();
                  document.getElementById("expireDate").innerHTML = expirationDateTime.substring(0, expirationDateTime.indexOf("T"));
                  $("#internationalUnlimitedPlaninfo").show();
                  document.getElementById("planName2").innerHTML = "Global Connect Unlimited";
                  $("#unlimitedExpireText").show();
                  var unlimitedExpirationDateTime = detailArray.UnlimitedExpire;
                  document.getElementById("unlimitedExpireDate").innerHTML = unlimitedExpirationDateTime.substring(0, unlimitedExpirationDateTime.indexOf("T"));
                } else if ((!detailArray.PayGoBalance > 0) && detailArray.UnlimitedEnabled) {
                  $("#internationalPayGoPlaninfo").hide();
                  $("#payGoExpireText").hide();
                  $("#unlimitedExpireText").show();
                  $("#internationalUnlimitedPlaninfo").show();
                  document.getElementById("planName2").innerHTML = "Global Connect Unlimited";
                  var unlimitedExpirationDateTime = detailArray.UnlimitedExpire;
                  document.getElementById("unlimitedExpireDate").innerHTML = unlimitedExpirationDateTime.substring(0, unlimitedExpirationDateTime.indexOf("T"));
                } else if (detailArray.PayGoBalance > 0) {
                  $("#internationalUnlimitedPlaninfo").hide();
                  $("#internationalPayGoPlaninfo").show();
                  document.getElementById("LastPlanPurchased").innerHTML = "World Link";
                  document.getElementById("PayGoBalance").innerHTML = detailArray.PayGoBalance;
                  var expirationDateTime = detailArray.ExpirationDate;
                  $("#payGoExpireText").show();
                  $("#unlimitedExpireText").hide();
                  document.getElementById("expireDate").innerHTML = expirationDateTime.substring(0, expirationDateTime.indexOf("T"));
                } else {
                  $("#internationalPlaninfo").hide();
                }
              } else {
                $("#internationalPlaninfo").hide();
              }
              showPendingStatuses();
            }, function(error) {
              console.log(error);
            });
          } else {
            $("#internationalPlaninfo").hide();
          }
          var model = "Q Link QLink-GSM-SIM";
          var phoneContainer = document.getElementById('phoneContainer');
          var _templateData = StaticValues.qLinkDevices;
          _templateData.push(chooseDeviceImage(model));
          var _div = document.createElement('div');
          var _template = Helpers.getTemplate('phone');
          var image = {
            image: _templateData[_templateData.length - 1]
          };
          image.image = image.image.toLowerCase();
          document.getElementById("phone-img").src = "//resources.qlinkwireless.com/images/" + image.image + ".png";
          document.getElementById("phone-img").width = '45%';
          _div.innerHTML = Helpers.populateTemplate(_template, image);
          phoneContainer.appendChild(_div)
        }

        function chooseDeviceImage(model) {
          for (var i = 0; i < StaticValues.qLinkDevices.length; i++) {
            if (Helpers.stringContains(model.toLowerCase(), (StaticValues.qLinkDevices[i]).toLowerCase())) {
              return StaticValues.qLinkDevices[i];
              break;
            }
          }
          return 'generic-phone';
        }

        function showPendingStatuses() {
          if (overviewVm.shipments != null) {
            overviewVm.init();
          }
          if (portRequests.length > 0) {
            vm.status = portRequests[0];
            if (portRequests[0].OrderStatusId == '320') {
              document.getElementById('alert-port-status').style.display = 'block';
              $(".portStatus").html(portRequests[0].OrderStatusName);
              $(".status-content-description").html(
                "Your number transfer was unsuccessful due to an error with your information. <a href='/members/bringNumberDirect.aspx' class='textnowrap text-underline'> Click here </a>  to change your information and try your transfer request again."
                );
            } else if (portRequests[0].OrderStatusId == '305') {
              document.getElementById('alert-port-status').style.display = 'block';
              $(".portStatus").html(portRequests[0].OrderStatusName);
              $(".status-content-description").html("Your number will be transferred to Q Link Wireless once your order is shipped! We'll let you know as soon as that happens.");
            } else if (portRequests[0].OrderStatusId == '310') {
              document.getElementById('alert-port-status').style.display = 'block';
              $(".portStatus").html(portRequests[0].OrderStatusName);
              $(".status-content-description").html("Your number transfer is nearly complete! Your phone number should be ready to use on our network any time now, so check back soon.");
            } else if (portRequests[0].OrderStatusId == '330') {
              document.getElementById('alert-port-status').style.display = 'block';
              $(".portStatus").html(portRequests[0].OrderStatusName);
              $(".status-content-description").html("Your number transfer request was successful, but the port-in process is still incomplete. Please call customer service at 1-855-754-6543 to finish the number transfer process.");
            }
          }
          showActivePhoneDetails();
          customerStatus();
        }

        function showActivePhoneDetails() {
          for (var i in activeDevice) {
            if (activeDevice[i].Active == true) {
              document.getElementById("phoneManufacturerName").innerHTML = activeDevice[i].ManufacturerName;
            }
          }
        }

        function customerStatus() {
          if (crmTodos.length > 1) {
            for (var i in crmTodos) {
              if (crmTodos[i].Key.indexOf("ToDo_QLIXAR") !== -1) {
                document.getElementById("app-login-status").style.display = "block";
                //document.getElementById("appLogin").innerHTML = crmTodos[i].ToDo;
                break;
              } else {
                document.getElementById("app-login-status").style.display = "none";
              }
            }
          } else {
            document.getElementById("app-login-status").style.display = "none";
          }
        }
      });
      LongDistanceVm.init();

      function Init() {
        if (planObject.planName != "") {
          if (planObject.planName == "Lifeline Always On Bundled Plan") {
            //default plan
          } else if (planObject.planName == "Always on 500 Plan") {
            planObject.data = "500 MB"
          } else { //ok
            planObject.minutes = "UNLIMITED";
          }
        } else {
          $("#generalPlaninfo").hide();
        }
        let number = planObject.data.substring(0, 0);
        let gb = 'UNLIMITED';
        let getData = `ACP Plan`;
        if (getData.includes('Unlimited')) {
          getData = gb
        } else {
          getData = getData
        }
        document.getElementById("minutesNumber").innerHTML = planObject.minutes;
        document.getElementById("messagesNumber").innerHTML = planObject.messages;
        document.getElementById("dataNumber").innerHTML = getData;
      }
      Init();
      //leave as it is
      $('#details').hide();
    } // EVERYTHING ELSE FUNCTION
    $(document).ready(function(e) {
      $('#open-plan-features').click(function() {
        if ($('#open-plan-features-wrap').css('display') == 'none') {
          $('#open-plan-features-wrap').show();
          $(this).text('Close details');
        } else {
          $('#open-plan-features-wrap').hide();
          $(this).text('View details');
        }
      });
      $('#closePopupMigration').click(function() {
        //  $('#migratemodal').hide()
        // Helpers.displayPopup();
        // $('.modal-backdrop.in').css('opacity', '1')
      })
    });
    $(document).ready(function(e) {
      $('#open-terms').click(function() {
        if ($('.open-terms-wrap').css('display') == 'none') {
          $('.open-terms-wrap').show();
          $(this).text('Read Less');
        } else {
          $('.open-terms-wrap').hide();
          $(this).text('View details');
        }
      });
    });
  </script>
  <script type="text/javascript">
    var enrollmentID = "231978743";
    var orderStatus = "Completed";
    var docLink = "?key=QLWI6UYSTKGGFVX544DONUHE4KXMM3GK3KXJFIT3PIQLW";
    var qlinkPhone = "2799445607";
    var qlinkDevice = "Q Link";
    var user1 = "8/10/1996 12:00:00 AM";
    var user2 = "2645";
    var user3 = "Aleana Eastridge";
    var lhnCustom1 = enrollmentID;
    var lhnCustom2 = orderStatus;
    var lhnCustom3 = user2 + " " + (user1.replace("12:00:00 AM", "")) + user3;
  </script>
  <style>
    button[disabled],
    button[aria-disabled=true] {
      opacity: .5
    }
  </style>
  <script>
    $(function() {
      //Regex.Replace(lError.Text, @"<[^>]*>", String.Empty) replace html
      jQuery.prompt.setDefaults({
        persistent: false
      });
      var errorHTML = "";
      //var errorText = errorHTML.replace(/<\/?[^>]+(>|$)/g, "");	
      var errorContent = errorHTML.replace(/<\/?[^>]+(>|$)/g, "");
      if (errorHTML != "") {
        $.prompt(errorHTML);
      }
      setTimeout(() => {
        // prevent buttons from being clicked 2x for concurrent API requests
        // reference all buttons in application
        const buttons = 'button, :button, .btn, .btn-primary, .btn-secordary, .button, .buyNowBtn';
        // attach data-role to all button elements in the DOM
        $(buttons).attr("data-role", "button");
        // Event listener to disable and reenable buttons on click
        $(buttons).on('click', (e) => {
          // exculude any ASPX postbacks
          if (e && e.target.nodeName == 'INPUT' || e.target.nodeName == "BUTTON") return;
          $(buttons).attr('disabled', true);
          setTimeout(() => {
            $(buttons).removeAttr('disabled');
          }, 500)
        })
      }, 500)
    });
  </script>
</form>

Text Content

 * Activate
 * Support
 * Annual Recertification

EN
ES
My LinesMy Plans
Shop
My RewardsOverviewMy AccountMy OrdersHelp CenterLog Out
EN
ES
ActivateSupportAnnual Recertification
Hi, Aleana
My LinesMy Plans
Shop
RefillsAdd-OnsPhonesHotspotsDeals
My Rewards
Hi, Aleana
OverviewMy AccountMy OrdersHelp CenterLog Out


Language: Select English Spanish Español

Welcome Aleana ! [ Log Out ]




We need some additional information before we can ship your phone. Click Here to
complete the Household Worksheet.
Important Information - Unfortunately, you are not eligible to receive this
offer because you have already selected one. For full details read our Terms and
Conditions.
Action Needed - Please visit the National Verifier website to complete . Click
here to continue.


GET EXPERT ACTIVATION HELP

Book an appointment today and get real-time, over the phone assistance from a
trained specialist - with zero wait time.

Book NOW


ENJOY YOUR WELCOME BONUS OFFER!


$25 AMAZON.COM GIFT CARD* WHEN YOU TRANSFER YOUR EXISTING NUMBER.

Get Gift Card



GET A NEW TABLET* AND A FREE SMARTPHONE WITH A NUMBER TRANSFER.

Get FREE Phone

*Terms and conditions apply. Restrictions apply, see amazon.com/gc-legal

Enjoy your Welcome Bonus Offer!
Get a FREE $25 Amazon.com Gift Card* when you transfer your existing number.
Click to start
^Terms and conditions apply. Restrictions apply, see amazon.com/gc-legal

^Terms and conditions apply. Restrictions apply, see amazon.com/gc-legal
Your Port in Status Is:




Get the My Mobile Account App
Download the My Mobile Account App for iPhone or Android and log in with your Q
Link phone number. Click here to see the activation instructions.
ATTENTION: Your address has been updated! An order was created for your
Smartphone & SIM Card Bundleupgraded SIM Card & an email with tracking details
will be sent shortly.
Your phone has been activated & your tablet reserved! Tablet shipments will
begin soon & we'll send you tracking details as soon as your tablet is shipped.

Keep your FREE Lifeline service active by submitting documents proving your
eligibility. Submit your documents now by clicking here.

Your proof documents have been uploaded successfully. If you'd like to reupload
them, you can do so any time by clicking here.

ATTENTION: Act now to receive a new tablet as part of your EBB enrollment.
Confirm your address here.
Urgent Message Your new SIM card needs to be activated. Click here and follow
our simple activation instructions and access your government benefits today.
Make Your Free
Cell Phone Plan Even Better
Add a Mobile Hotspot to your Cell Phone Plan.
View Plans


My Usage View Call Log


DATA USED



5.4 GB out of UNLIMITED


UNLIMITED data available. Add Data


MINUTES USED



78 out of UNLIMITED


UNLIMITED Minutes Available . Add Minutes

Text Messages Used: 0 out of UNLIMITED

Note: Data, Text, and Talk usage may take 2-5 days or longer to display
accurately in Q Link’s system. See Details
Please note that your prior month’s Lifeline minutes or data expire at 11:59
p.m. on the 1st of the month. (Example: The minutes you receive Sept 1st will
expire Oct 1st.)
Wireless roaming usage normally takes 2-10 days but could take 60+ days. Your
usage information may become temporarily unavailable while it’s being processed.
Talk usage may include voicemails and other unbilled calls. Talk / Text / Data
usage time stamps may be off by 3 to 6 hours depending on your time zone.
Data usage reporting can take 72 hours or longer. Your data usage displayed may
not accurately reflect your actual usage.
Q Link Wireless will update your usage details in My Q Link online every 3-6
hours.

Phone Info




Phone Brand Name: Hot Pepper | Upgrade My Phone

Lifeline Number: 279-944-5607 | Bring Your Own Number

Reset Voicemail

If you recently received your phone in the mail and you've been unable to make
calls, please contact Customer Support at 1-855-754-6543 for further
trouble-shooting. See Phone Warranty

Shipping

Product : SIM Kit
Order Status : Received

Tracking Number: 9374889704024959623801

Ship Date: 2023-12-03T12:59:12
Receive Date: 2023-12-05T19:26:00

Product : Serrano
Order Status : Received

Tracking Number: TBA310411806143

Ship Date: 2023-12-12T00:43:35
Receive Date: 2023-12-13T16:01:27

Please allow 24-48 hours for the information to show in the shipping provider's
system. If your shipment is sent during a holiday please add an extra 1-2 days.

Account Overview My Account Profile

Account Name: Aleana Eastridge

Order Status: Completed

Enrollment ID: 231978743



Your Eligible Rewards & Offers

AMAZON PRIME MEMBERSHIP

Get 2 months of Amazon Prime on us†

Enjoy the best in shopping & entertainment.



Shipping Address Update My Shipping Address

Shipping Address:
4635 ANTELOPE RD APT 50 ANTELOPE CA, 95843-3923

Lifeline Plan Details


ACP PLAN (LIFELINE PLAN ALLOWANCE)

Data

ACP Plan

Minutes

UNLIMITED

Text Messages

UNLIMITED

Additional Plan Features: See Details

 * Free International Texting
 * Free Unlimited Text Messaging (SMS)
 * Free MMS (Pictures & Videos Via Text)
 * Free 911 & 411 Calls

 * Ability to Connect to Wi-Fi
 * Free Voicemail & Call Waiting
 * Free Three Way Calling
 * Free Caller ID

Upon activating your Q Link Wireless phone, you will have one year of service,
and your free service for the first month will be already available. You will
receive your free service on the first day of each month. Upgrade your Plan at
anytime.

Your International Plan View Usage

Last Plan Purchased:
Expiration Date:

Remaining

$

Minutes

UNLIMITED

Plan Name:
Expiration Date:

International Minutes

UNLIMITED

Auto-Refill Plan Manage Your Auto-Refill

Enroll in and save today



Qlixar™ Rewards

The more you play Qlixar™, the more FREE data and minutes you will earn!

Balance: coins

Qlixar™ gives you FREE data and minutes just for using your phone.

Download Qlixar™ to start earning free, unlimited rewards!


My Q Link
 * Account Overview
 * Account Profile
 * View Usage
 * Activate Phone
 * Add Talk & Data
 * Manage Auto-Refill
 * Device Help
 * Bring Your Own Phone
 * My Gift Cards
 * Change Password
 * Request a SIM card
 * Logout

Need Help?
 * Help Center
 * Message Us
 * Get Help
 * Call: 1-855-754-6543
   
   Mon-Fri 8AM-12AM EST
   Sat-Sun 8AM-8PM EST


HELPFUL LINKS

 * Home
 * Support
 * My Q Link
 * 
   
 * 
 * View Plan
 * Activate
 * Coverage


LIFELINE PROGRAM

 * About Us
 * About Lifeline
 * 
   
 * Lifeline Plans
 * Lifeline Features
 * How Do I Qualify?
 * FAQs / Help Center


GET CONNECTED

 * Like Us on Facebook!
 * Follow Us on Twitter!
 * Hang out with us on Instagram
   
 * See What We Have To Say
 * Get Help Here


TESTIMONIALS

 * "I love my new phone from Q Link Wireless because it is easy to use and now I
   will never be without a phone. Thanks Q Link!"
   — Nikki, WI
 * "Q Link’s service never lets me down. They sent me an excellent phone which I
   love and I have never had a problem. I use my phone to make appointments and
   stay connected with my work, friends and family."
   — David, AZ


Q Link Wireless™ is a provider of Lifeline, a non-transferable federal benefit
program. You must be eligible to enroll. Lifeline support is limited to one per
household on wireline, wireless, or broadband service. If your household’s
income is at or below 135 percent of the Federal Poverty Guidelines, or if you
participate in a qualifying federal assistance program, you may be eligible for
a Lifeline Program discount. Proof of eligibility will be required during
enrollment. To view terms, visit www.qlinkwireless.com/terms. By submitting this
application, you consent to receive phone calls from Q Link Wireless to all
numbers on your account, which may result in charges to you. This includes, but
is not limited to, pre-recorded voice messages and/or automatic dialing system.


*The Affordable Connectivity Program (ACP) is a FCC benefit program, an
independent U.S. government agency, that reduces the customer’s broadband
internet access service bill by providing a discount of up to $30 on monthly
broadband Internet access service, a single discount of up to $100 on certain
connected devices to eligible households, and a discount of up to $75 per month
for households on qualifying Tribal lands. Eligibility will be determined by the
National Verifier. An ACP eligible household is limited to one monthly service
discount and a single one-time device discount. The benefit cannot be
transferred to other individuals. Discounted devices are subject to availability
and to a $10.01 co-pay. If the FCC announces the end of the ACP, we will end our
ACP service offer, or if your household is no longer eligible, we will notify
you, and you will revert to receiving only the standard FREE basic Lifeline plan
if you are still eligible for Lifeline. You may also have the option to choose
from our other service plans available at that time by paying the applicable
undiscounted rate plus applicable fees and taxes. Eligible consumers may get
ACP-supported broadband service from any participating provider of their
choosing. The household must provide consent that it acknowledges it is limited
to one ACP benefit transfer transaction per calendar month. Lifeline subscribers
may continue their existing Lifeline services without enrolling in the ACP and
may choose to take the ACP benefit from a service provider other than their
existing Lifeline provider. For more information about the ACP and your
eligibility, please visit www.fcc.gov/acp. During the application and transfer
process, Q Link Wireless will use your service address zip code to determine
your time zone. By opting-in to the ACP, you authorize Q Link Wireless, for the
purpose of applying for, determining eligibility, enrolling in and seeking
reimbursement of ACP service and device benefits, to collect, use, share and
retain your personal information, including but not limited to information
required for the purpose of establishing eligibility for and enrolling in the
ACP and/or Lifeline program, and including, but not limited to, full name, full
residential address, date of birth, last four digits of social security number,
telephone number, eligibility criteria and status, the date on which the ACP
service discount was initiated and if applicable, terminated, ACP connected
device distribution date/type/make and model/status, usage status and other
compliance requirements, the amount of support being sought for the service
and/or device, and information necessary to establish identity and verifiable
address, to the Universal Service Administrative Company (USAC) to ensure proper
administration of the ACP service and/or connected device benefits. You also
agree that any state, local, Tribal government, school, or school district, may
share information about the receipt of benefits that would establish eligibility
for the ACP, and that such information will be used only to determine ACP
eligibility. Failure to provide this FCC mandated consent will result in you
being denied the ACP service and/or the connected device benefits. ACP service
is subject to our complete terms and conditions. Available Upload/download
speeds will be determined by your particular service plan. Available speeds also
depend on other factors, including network availability. Offers may vary by
state and service may not be available in all areas. Promotional offers may be
modified or withdrawn at any time. For more information about this program
please visit www.fcc.gov/acp.

^ACP discounted device offer is subject to product availability. Customers will
be notified of device shipment and must contribute a co-payment of $10.01.
Tablet offer varies by state. ACP Terms & Conditions apply.


†Offer subject to change. Cancel anytime by visiting ‘Manage Prime Membership’
in ‘Your Account’ on Amazon.com and adjusting your membership settings.
Amazon.com, Inc. and its affiliates are not sponsors of this promotion. Amazon
Prime Access is $6.99/month after the 2-month promotional period if you opt in
for autorenewal. You are eligible for Prime Access (a discounted Amazon Prime
membership) if you are an EBT cardholder or qualify for select government
assistance or discounts. Amazon, Amazon Prime and all related logos are
trademarks of Amazon.com, Inc. or its affiliates. Offer requires Q Link Wireless
account showing active usage at least once a month.

See Terms and Conditions here: $10 Amazon Prime Video Credit Offer

See Terms and Conditions for our Hotspot offer here.
 * © 2023 Q Link Wireless™. All Rights Reserved.  
 * Unsubscribe | 
 * Universal Form | 
 * Privacy Policy | 
 * TCPA | 
 * Terms & Conditions




CONVERSATION

CONNECTING TO AGENT



 * Chat


GET HELP