{% render './partials/reset_email__variables.liquid' %}

<html>
    <head>
        {% if podcastApp or smeUser or podcastWelcome or settingsWelcome %}
            <style type="text/css">
                .footer-heading {
                    color: #093c59 !important;
                    font-size: 24px;
                    font-weight: 500;
                    line-height: 100%;
                    margin: 0;
                    padding: 40px 0 15px 19px;
                }
                .heading {
                    background-color: #13395f;
                    color: white;
                }
                .headingSme {
                    background-color: black;
                    color: white;
                }
                .body {
                    background-color: #f9f9f9;
                    color: black;
                }
                .footer {
                    background-color: white;
                    color: #13395f;
                }
                .cell {
                    padding: 20px;
                }
                .button {
                    background-color: #f48b41; /* Orange */
                    border: none;
                    color: white;
                    padding: 15px;
                    text-align: center;
                    text-decoration: none;
                    display: inline-block;
                    font-size: 14px;
                    margin: 4px 2px;
                    cursor: pointer;
                    border-radius: 4px;
                }
                .buttonSme {
                    background-color: #2d4a9a; /* Sony v2 blue */
                }
                .buttonSme:hover {
                    background-color: #274086;
                }
                .button:visited,
                .button-text {
                    color: white;
                }
                .logo-box {
                    padding: 12px 0 15px 20px;
                }
                .logo {
                    border: none;
                    outline: none;
                    text-decoration: none;
                    -ms-interpolation-mode: bicubic;
                }
                .footer-logos {
                    padding-left: 19px;
                    list-style-type: none;
                }
                .connect-logo {
                    display: inline-block;
                    margin-right: 10px;
                    text-decoration: none;
                }
                .tiny {
                    color: #a8a0a0;
                    font-size: 10px;
                    padding: 20px 0 0 0;
                }
            </style>
        {% else %}
            <style type="text/css">
                body {
                    width: calc(100% - 50px);
                }

                table {
                    font-size: 16px;
                    line-height: 24px;
                    border: none;
                    max-width: 500px;
                    margin:auto;
                    padding: 35px 25px;
                    background-color: #FFF;
                    color: #22222B;
                    font-family: Helvetica, sans-serif;
                }

                table, tr, td {
                    padding: 0;
                    border-collapse: collapse;
                    border-spacing: 0;
                }

                h1 {
                    font-size: 28px;
                    line-height: 29px;
                    margin: 35px 0 60px 0;
                    font-family: Helvetica, sans-serif;
                }

                h2 {
                    font-size: 20px;
                    line-height: 22px;
                    margin: 0;
                    font-family: Helvetica, sans-serif;
                }

                p {
                    padding: 0;
                    font-family: Helvetica, sans-serif;
                    color: #A8A0A0;
                    font-size: 18px;
                    line-height: 20px;
                    margin: 27px 0 65px 0;
                }

                ul {
                    margin: 22px 0;
                    padding: 0;
                }

                ul li {
                    display: inline-block;
                    margin: 0;
                    padding: 0;
                }

                ul li img {
                    width: 30px;
                    margin-right: 15px;
                }

                .collaboratorPortalHeading {
                    font-size: 28px;
                    line-height: 29px;
                    margin: 35px 0 0 0;
                    font-family: Helvetica, sans-serif;
                }

                .collaboratorPortalParagraph {
                    padding: 0;
                    font-family: Helvetica, sans-serif;
                    color: #1C1C1C;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;
                    margin: 27px 0 27px 0;
                }

                .wrapper {
                    background-color: #FFF;
                    font-family: Helvetica, sans-serif;
                    padding: 35px 25px;
                }

                .reset-button {
                    padding: 15px 26px;
                    text-transform: uppercase;
                    border: none;
                    font-size: 12px;
                    font-weight: 700;
                    background: #276D87;
                    font-family: Helvetica, sans-serif;
                    color: #FFF;
                }

                .reset-button:hover {
                    background: #225D87;
                }

                .footer {
                    font-size: 14px;
                    line-height: 18px;
                    font-family: Helvetica, sans-serif;
                    color: #22222B;
                }

                .ignore-message{
                    color: #22222B;
                }

                {% if awalUser or knrUser %}
                @font-face {
                    font-family: 'Barlow';
                    font-style: normal;
                    font-weight: 500;
                    font-display: swap;
                    src: url(https://fonts.gstatic.com/s/barlow/v5/7cHqv4kjgoGqM7E3_-gs51ostz0rdg.woff2) format('woff2');
                    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
                }

                @font-face {
                    font-family: 'Barlow-ExtraBold';
                    font-style: normal;
                    font-weight: 800;
                    font-display: swap;
                    src: url(https://fonts.gstatic.com/s/barlow/v5/7cHqv4kjgoGqM7E3q-0s51ostz0rdg.woff2) format('woff2');
                    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
                }

                @font-face {
                    font-family: 'Karla';
                    font-style: normal;
                    font-weight: 400;
                    font-display: swap;
                    src: url(https://fonts.gstatic.com/s/karla/v15/qkBIXvYC6trAT55ZBi1ueQVIjQTD-JqaE0lMZbLXGhmR.woff) format('woff');
                    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
                }

                @font-face {
                    font-family: 'Space Mono';
                    font-style: normal;
                    font-weight: 700;
                    font-display: swap;
                    src: url(https://fonts.gstatic.com/s/spacemono/v6/i7dMIFZifjKcF5UAWdDRaPpZUFWaHi6WZ3Q.woff2) format('woff2');
                    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
                }

                table {
                    background-color: #22222B;
                    color: #FFF;
                    font-family: Karla, sans-serif;
                }

                h1 {
                    font-family: Barlow-ExtraBold, sans-serif;
                }

                h2 {
                    font-family: Barlow, sans-serif;
                }

                p {
                    font-family: Karla, sans-serif;
                    color: #B8B8CC;
                }

                .wrapper {
                    background-color: #22222B;
                    font-family: Karla, sans-serif;
                }

                .reset-button {
                    background: #7B3A88;
                    font-family: Space Mono, monospace;
                }

                .reset-button:hover {
                    background: #6B3276;
                }

                .footer {
                    font-family: Karla, sans-serif;
                }

                    {% if awalUser %}

                    .footer {
                        color: #FFFFFF;
                    }

                    .ignore-message{
                        color: #FFFFFF;
                    }

                    {% elsif knrUser %}

                    .wrapper {
                        background-color: #FFFFFF;
                        font-family: Karla, sans-serif;
                    }
                    table {
                        background-color: #FFFFFF;
                        color: #000000;
                        font-family: Karla, sans-serif;
                    }
                    p {
                        font-family: Karla, sans-serif;
                        color: #000000;
                    }
                    .reset-button {
                        background: #533790;
                        border-radius: 3px;
                    }
                    .reset-button:hover {
                        background: #48307E;
                    }
                    .text-under-button {
                        color: #B8B8CC;
                    }
                    {% endif %}

                {% endif %}
            </style>
        {% endif %}
        <title>
            {% if podcastWelcome and smeUser %}
                Welcome to Sony Music Podcasting
            {% elsif podcastWelcome %}
                Welcome to The Orchard Podcasting
            {% elsif settingsWelcome %}
                Welcome
            {% elsif awalUser %}
                Reset your AWAL password
            {% elsif knrUser %}
                Reset your KNR password
            {% else %}
                Reset your Orchard password
            {% endif %}
        </title>
    </head>
    <body>
        <center>
            {% if podcastApp or smeUser or podcastWelcome or settingsWelcome %}
                <table>
                    <tr>
                        <td class="cell" align="left" valign="top">
                            <div class="logo-box">
                                {% if smeUser == true %}
                                    <img
                                        width="182"
                                        height="38"
                                        class="logo"
                                        src="https://cdn.theorchard.io/assets/sme/icons/brand-text.png"
                                        alt="Sony Music Logo"
                                    >
                                {% else %}
                                    <img
                                        width="106"
                                        height="38"
                                        class="logo"
                                        src="https://cdn.theorchard.io/assets/orchard/icons/brand-text.png"
                                        alt="The Orchard Logo"
                                    >
                                {% endif %}
                            </div>
                        </td>
                    </tr>

                    <tr class="heading {% if smeUser %}headingSme{% endif %}">
                        <td
                            class="cell"
                            align="center"
                            valign="top"
                            id="bodyCell"
                        >
                            <h1>
                                {% if podcastWelcome and smeUser %}
                                    Welcome to Sony Music Podcasting
                                {% elsif podcastWelcome %}
                                    Welcome to The Orchard Podcasting
                                {% elsif settingsWelcome %}
                                    Welcome
                                {% else %}
                                    Password Change Request
                                {% endif %}
                            </h1>
                        </td>
                    </tr>
                    <tr class="body">
                        <td class="cell">
                            {% if podcastWelcome %}
                                <p>Hello!</p>
                                <p>
                                    {% if smeUser -%}
                                        Welcome to the Sony Music Podcasting
                                        platform!
                                    {%- else -%}
                                        Welcome to The Orchard Podcasting
                                        platform!
                                    {%- endif %}
                                    To set up your account, click the button
                                    below:
                                </p>
                                <p>
                                    <a
                                        href="{{ url }}{% if smeUser %}organization=sme{% endif %}"
                                        class="button {% if smeUser %}buttonSme{% endif %}"
                                        ><span class="button-text"
                                            >GET STARTED</span
                                        ></a
                                    >
                                </p>
                                <p>
                                    Or, visit this link :
                                    <a
                                        href="{{ url }}{% if smeUser %}organization=sme{% endif %}"
                                    >
                                        {{- url -}}
                                        {%- if smeUser -%}
                                            organization=sme
                                        {%- endif -%}
                                    </a>
                                </p>
                                {% if smeUser %}
                                    <p>
                                        Please login using your Sony Music email
                                        address as the username and choose SMS
                                        or Google Authenticator, not Auth0
                                        Guardian.
                                    </p>
                                {% endif %}
                                <p>We are excited to create shows together.</p>
                                <p>
                                    Always,
                                    <br>
                                    {% if smeUser %}
                                        Your team at Sony Music<br>
                                    {% else %}
                                        Your team at The Orchard<br>
                                    {% endif %}
                                </p>
                            {% elsif settingsWelcome %}
                                <p>Hi there,</p>
                                <p>
                                    {{ user.app_metadata.label_participants[0].label_name }}
                                    has invited you to view analytics at The
                                    Orchard. You can measure and monitor catalog
                                    activity with comprehensive insights on
                                    <a href="https://insights.theorchard.com/"
                                        >desktop</a
                                    >
                                    and on
                                    <a
                                        href="https://dailyrindblog.com/orchardgo-adds-new-social-features-to-empower-artists/"
                                        >mobile</a
                                    >.
                                </p>
                                <p>
                                    <a href="{{ url }}" class="button"
                                        ><span class="button-text"
                                            >Let's Go!</span
                                        ></a
                                    >
                                </p>
                                <p>
                                    Or, visit this link :
                                    <a href="{{ url }}">{{ url }}</a>
                                </p>
                                <p>
                                    Always,
                                    <br>
                                    Your team at The Orchard<br>
                                </p>
                            {% else %}
                                <p>Hi there, <br></p>
                                <p>
                                    You have submitted a password change
                                    request. If it was you, then
                                    <strong>confirm the password change</strong>
                                    <br>
                                    <a
                                        href="{{ url }}{% if smeUser %}organization=sme{% endif %}"
                                        class="button {% if smeUser %}buttonSme{% endif %}"
                                        ><span class="button-text"
                                            >CHANGE PASSWORD</span
                                        ></a
                                    >
                                </p>
                                <p>
                                    Or, visit this link :
                                    <a
                                        href="{{ url }}{% if smeUser %}organization=sme{% endif %}"
                                    >
                                        {{- url -}}
                                        {%- if smeUser -%}
                                            organization=sme
                                        {%- endif -%}
                                    </a>
                                </p>
                                <br>
                                <p>
                                    This link will expire in 24 hours. If you
                                    did not make this request, please inform
                                    your client managers and make sure you can
                                    still login to your account.
                                </p>

                                <br>
                                Always,<br>
                                {% if smeUser %}
                                    Your team at Sony Music<br>
                                {% else %}
                                    Your team at The Orchard<br>
                                {% endif %}
                            {% endif %}
                        </td>
                    </tr>
                    <tr class="footer">
                        <td class="cell">
                            {% if smeUser == false %}
                                <h2 class="footer-heading">Connect With Us</h2>
                                <div class="footer-logos">
                                    <span class="connect-logo">
                                        <a href="https://www.facebook.com/theorchard/">
                                            <img
                                                src="https://cdn.theorchard.io/web-icons/social_facebook.png"
                                                alt="facebook"
                                                height="32"
                                                width="32"
                                                class="logo"
                                            >
                                        </a>
                                    </span>
                                    <span class="connect-logo">
                                        <a href="https://www.youtube.com/radiallive/">
                                            <img
                                                src="https://cdn.theorchard.io/web-icons/social_youtube.png"
                                                alt="youtube"
                                                height="32"
                                                width="32"
                                                class="logo"
                                            >
                                        </a>
                                    </span>
                                    <span class="connect-logo">
                                        <a href="https://twitter.com/orchtweets">
                                            <img
                                                src="https://cdn.theorchard.io/web-icons/social_twitter.png"
                                                alt="twitter"
                                                height="32"
                                                width="32"
                                                class="logo"
                                            >
                                        </a>
                                    </span>
                                    <span class="connect-logo">
                                        <a
                                            href="https://www.linkedin.com/company/the-orchard/"
                                        >
                                            <img
                                                src="https://cdn.theorchard.io/web-icons/social_linkedin.png"
                                                alt="linkedin"
                                                height="32"
                                                width="32"
                                                class="logo"
                                            >
                                        </a>
                                    </span>
                                    <span class="connect-logo">
                                        <a
                                            href="https://www.instagram.com/the_orchard_/"
                                        >
                                            <img
                                                src="https://cdn.theorchard.io/web-icons/social_instagram.png"
                                                alt="instagram"
                                                height="32"
                                                width="32"
                                                class="logo"
                                            >
                                        </a>
                                    </span>
                                    <span class="connect-logo">
                                        <a href="https://www.theorchard.com/">
                                            <img
                                                src="https://cdn.theorchard.io/web-icons/social_orchard.png"
                                                alt="theorchard"
                                                height="32"
                                                width="32"
                                                class="logo"
                                            >
                                        </a>
                                    </span>
                                </div>
                            {% endif %}

                            <div class="tiny">
                                {% if podcastApp %}
                                    <p>
                                        If you have any questions, or you
                                        believe this has been sent to you in
                                        error, please email
                                        {% if smeUser %}
                                            podcasts@sonymusic.com
                                        {% else %}
                                            podcasts@theorchard.com
                                        {% endif %}
                                    </p>
                                {% else %}
                                    <p>
                                        This email is an automated notification
                                        which is unable to receive replies. If
                                        you have any questions please email your
                                        label manager.
                                    </p>
                                    <p>
                                        If you believe this has been sent to you
                                        in error, please inform your client
                                        managers.
                                    </p>
                                {% endif %}
                            </div>
                            <img
                                src="https://api.segment.io/v1/pixel/track?data={{user.user_metadata.passwordResetTracking}}"
                                alt=""
                            >
                        </td>
                    </tr>
                </table>
            {% else %}
                <div class="wrapper">
                    <table>
                        <tr>
                            <td>
                                {% if awalUser %}
                                    <a href="http://www.awal.com"
                                        ><img
                                            src="{{ cdnLink }}AWAL-logo.png"
                                            style="width: 90px"
                                            alt="AWAL"
                                    ></a>
                                {% elsif knrUser %}
                                    <a href="http://www.knr.com"
                                        ><img
                                            src="{{ cdnLink }}knr-logo.png"
                                            style="width: 90px"
                                            alt="KNR"
                                    ></a>
                                {% else %}
                                    <a href="https://www.theorchard.com/"
                                        ><img
                                            data-testid="webcdn-orchard-logo"
                                            src="{{ cdnLink }}orchard-logo.png"
                                            style="width: 106px"
                                            alt="Orchard"
                                    ></a>
                                {% endif %}
                            </td>
                        </tr>

                        <tr>
                            <td>
                                {% if collaboratorPortalWelcome %}
                                    <h1 class="collaboratorPortalHeading">
                                        {{ vendorName }} has invited you to
                                        access
                                        {% if organization.display_name %}
                                            {{ organization.display_name }}'s
                                            Accounting app!
                                        {% else %}
                                            The Orchard's Accounting app!
                                        {% endif %}
                                    </h1>
                                {% else %}
                                    <h1>
                                        We got a request to reset your
                                        {{ organization.display_name }} password
                                    </h1>
                                {% endif %}
                            </td>
                        </tr>

                        {% if collaboratorPortalWelcome %}
                            <tr>
                                <td>
                                    <p class="collaboratorPortalParagraph">
                                        The Accounting app allows you to view
                                        and download royalty statements sent to
                                        you by
                                        {{ vendorName }}. Activate your account
                                        today to start receiving royalty
                                        statements online.
                                    </p>

                                    <p></p>
                                </td>
                            </tr>
                        {% endif %}

                        <tr>
                            <td align="center">
                                <a href="{{ url }}">
                                    <button class="reset-button">
                                        {% if collaboratorPortalWelcome %}
                                            Activate your account
                                        {% else %}
                                            Reset your password
                                        {% endif %}
                                    </button>
                                </a>
                            </td>
                        </tr>

                        <tr>
                            <td align="center">
                                <p
                                    style="
                                        font-size: 18px;
                                        line-height: 20px;
                                        {% if collaboratorPortalWelcome %}
                                        margin: 27px 0 6px 0;
                                        {% else %}
                                        margin: 27px 0 65px 0;
                                        {% endif %}
                                    "
                                    class="text-under-button"
                                >
                                    {% if collaboratorPortalWelcome %}
                                        This activation link is valid for 7
                                        days.
                                    {% else %}
                                        This password reset link is valid for 7
                                        days.
                                    {% endif %}
                                </p>
                                {% if collaboratorPortalWelcome %}
                                    <p
                                        style="
                                            font-family: 'Karla', sans-serif;
                                            font-size: 12px;
                                            line-height: 18px;
                                            margin: 0 80px 65px 80px;
                                            color: #a8a0a0;
                                        "
                                    >
                                        To log in, make sure to use this email
                                        address.
                                    </p>
                                {% endif %}
                            </td>
                        </tr>
                        {% if collaboratorPortalWelcome == false %}
                            <tr>
                                <td>
                                    <p class="ignore-message">
                                        If you didn't request a password reset,
                                        you can safely ignore this message.
                                    </p>
                                </td>
                            </tr>
                        {% endif %}
                        {% if knrUser %}
                        {% else %}
                            <tr>
                                <td>
                                    <h2>Connect With Us</h2>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <ul style="margin: 22px 0; padding: 0">
                                        {% if awalUser %}
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_facebook_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Facebook.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Facebook"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_youtube_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}YouTube.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="YouTube"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_twitter_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Twitter.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Twitter"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_instagram_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Instagram.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Instagram"
                                                ></a>
                                            </li>
                                        {% else %}
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_facebook_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Facebook-black.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Facebook"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_youtube_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}YouTube-black.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="YouTube"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_twitter_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Twitter-black.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Twitter"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_instagram_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Instagram-black.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Instagram"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_linkedin_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Linkedin-black.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="Linkedin"
                                                ></a>
                                            </li>
                                            <li
                                                style="
                                                    display: inline-block;
                                                    margin: 0;
                                                    padding: 0;
                                                "
                                            >
                                                <a
                                                    href="{{ organization.metadata.footer_theorchard_url }}"
                                                    ><img
                                                        src="{{ cdnLink }}Orchard-black.png"
                                                        style="
                                                            width: 30px;
                                                            margin-right: 15px;
                                                        "
                                                        alt="The Orchard"
                                                ></a>
                                            </li>
                                        {% endif %}
                                    </ul>
                                </td>
                            </tr>
                        {% endif %}
                        {% if knrUser %}
                            <tr>
                                <td>
                                    <p class="footer">
                                        You're receiving this email because
                                        you’ve requested to reset your KNR
                                        password. This is an automated
                                        notification which is unable to receive
                                        replies.
                                    </p>
                                    <img
                                        src="https://api.segment.io/v1/pixel/track?data={{user.user_metadata.passwordResetTracking}}"
                                        alt=""
                                    >
                                </td>
                            </tr>
                        {% else %}
                            <tr>
                                <td>
                                    <p class="footer">
                                        {% if collaboratorPortalWelcome %}
                                            You’re receiving this email because
                                            you’ve been invited to
                                            {% if organization.display_name %}
                                                {{ organization.display_name }}.
                                            {% else %}
                                                The Orchard.
                                            {%- endif %}
                                            This is an automated notification
                                            which is unable to receive replies.
                                            If you have any questions, please
                                            contact {{ vendorName }} directly.
                                        {% else %}
                                            You're receiving this email because
                                            you’ve an
                                            {{ organization.display_name }}
                                            account. This is an automated
                                            notification which is unable to
                                            receive replies.
                                        {% endif %}
                                    </p>
                                    <img
                                        src="https://api.segment.io/v1/pixel/track?data={{user.user_metadata.passwordResetTracking}}"
                                        alt=""
                                    >
                                </td>
                            </tr>
                        {% endif %}
                    </table>
                </div>
            {% endif %}
        </center>
    </body>
</html>
