<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="ContentInviteInviteeRow" parent="AdwBin">
    <property name="margin-top">12</property>
    <property name="margin-bottom">12</property>
    <property name="margin-start">12</property>
    <property name="margin-end">12</property>
    <property name="child">
      <object class="GtkBox" id="header">
        <property name="spacing">12</property>
        <style>
          <class name="header"/>
        </style>
        <child>
          <object class="ComponentsAvatar">
            <property name="size">32</property>
            <binding name="data">
              <lookup name="avatar-data" type="Invitee">
                <lookup name="user">ContentInviteInviteeRow</lookup>
              </lookup>
            </binding>
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <style>
              <class name="title"/>
            </style>
            <child>
              <object class="GtkLabel" id="display-name">
                <property name="halign">start</property>
                <property name="ellipsize">end</property>
                <binding name="label">
                  <lookup name="display-name" type="Invitee">
                    <lookup name="user">ContentInviteInviteeRow</lookup>
                  </lookup>
                </binding>
                <style>
                  <class name="title"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="subtitle">
                <property name="hexpand">True</property>
                <property name="halign">start</property>
                <property name="ellipsize">end</property>
                <binding name="label">
                  <lookup name="user-id" type="Invitee">
                    <lookup name="user">ContentInviteInviteeRow</lookup>
                  </lookup>
                </binding>
                <style>
                  <class name="subtitle"/>
                </style>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkCheckButton" id="check_button">
            <binding name="visible">
                <closure type="gboolean" function="invert_boolean">
                  <closure type="gboolean" function="string_not_empty">
                    <lookup name="invite-exception" type="Invitee">
                      <lookup name="user">ContentInviteInviteeRow</lookup>
                    </lookup>
                  </closure>
                </closure>
          </binding>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <binding name="visible">
              <closure type="gboolean" function="string_not_empty">
                <lookup name="invite-exception" type="Invitee">
                  <lookup name="user">ContentInviteInviteeRow</lookup>
                </lookup>
              </closure>
            </binding>
            <property name="hexpand">True</property>
            <property name="halign">end</property>
            <property name="ellipsize">end</property>
            <binding name="label">
              <lookup name="invite-exception" type="Invitee">
                <lookup name="user">ContentInviteInviteeRow</lookup>
              </lookup>
            </binding>
            <style>
              <class name="subtitle"/>
            </style>
          </object>
        </child>
      </object>
    </property>
  </template>
</interface>
