import { __decorate } from "tslib";
import gql from 'graphql-tag';
import { customElement } from 'lit/decorators.js';
import { client } from '@operato/graphql';
import { BoardPlayerPage } from './board-player-page';
let BoardPlayerByNamePage = class BoardPlayerByNamePage extends BoardPlayerPage {
    async fetch(name) {
        return await client.query({
            query: gql `
        query ($name: String!) {
          response: playGroupByName(name: $name) {
            id
            name
            description
            boards {
              id
              model
            }
          }
        }
      `,
            variables: {
                name
            }
        });
    }
};
BoardPlayerByNamePage = __decorate([
    customElement('board-player-by-name-page')
], BoardPlayerByNamePage);
export { BoardPlayerByNamePage };
//# sourceMappingURL=board-player-by-name-page.js.map