<Ui xmlns="http://www.blizzard.com/wow/ui/">
  <Frame
    name="AuctionatorImportListTemplate"
    mixin="AuctionatorListImportFrameMixin"
    inherits="AuctionatorSimplePanelTemplate"
    frameStrata="Dialog"
    enableMouse="true"
    virtual="true"
    hidden="true"
  >
    <Size x="350" y="320" />

    <Scripts>
      <OnLoad method="OnLoad"/>
      <OnShow method="OnShow" />
      <OnHide method="OnHide" />
    </Scripts>

    <Frames>
      <Frame parentKey="Inset" inherits="AuctionatorInsetDarkTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" x="4" y="-30"/>
          <Anchor point="BOTTOMRIGHT" x="-6" y="32"/>
        </Anchors>
      </Frame>

      <EventFrame parentKey="ScrollBar" inherits="WowTrimScrollBar">
        <Anchors>
          <Anchor point="TOPRIGHT" relativeKey="$parent.Inset" relativePoint="TOPRIGHT"/>
          <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Inset" relativePoint="BOTTOMRIGHT"/>
        </Anchors>
      </EventFrame>

      <Frame parentKey="EditBoxContainer" inherits="ScrollingEditBoxTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.Inset" relativePoint="TOPLEFT" x="5" y="-6"/>
          <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Inset" relativePoint="BOTTOMRIGHT" x="-27" y="4" />
        </Anchors>
      </Frame>

      <!-- Action Buttons -->
      <Button parentKey="CloseDialog" inherits="UIPanelCloseButtonNoScripts">
        <Anchors>
          <Anchor point="TOPRIGHT" relativeKey="$parent" relativePoint="TOPRIGHT"/>
        </Anchors>
        <Scripts>
          <OnClick>self:GetParent():OnCloseDialogClicked()</OnClick>
        </Scripts>
      </Button>

      <Button parentKey="Import" inherits="UIPanelDynamicResizeButtonTemplate" text="AUCTIONATOR_L_IMPORT">
        <Anchors>
          <Anchor point="TOPRIGHT" relativeKey="$parent.Inset" relativePoint="BOTTOMRIGHT" y="-3" />
        </Anchors>
        <Scripts>
          <OnClick>self:GetParent():OnImportClicked()</OnClick>
        </Scripts>
      </Button>
    </Frames>

    <Layers>
      <Layer>
        <FontString text="AUCTIONATOR_L_LIST_IMPORT_HEADER" inherits="GameFontHighlight">
          <Anchors>
            <Anchor point="TOP" relativePoint="TOP" y="-10"/>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
  </Frame>
</Ui>
