import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{n as i,t as a}from"./CountryFlag-DwppmRVb.js";var o,s,c,l,u,d;t((()=>{e(n(),1),i(),o=r(),{expect:s}=__STORYBOOK_MODULE_TEST__,c={title:`components/CountryFlag/Tests`,component:a,args:{},tags:[`!autodocs`,`!a11y-test`,`test`]},l={render:function(){return(0,o.jsx)(a,{code:`ua`,alt:`Ukraine`,dataset:{foo:1,bar:`2`,baz:!1}})},play:async({canvas:e})=>{let t=e.getByAltText(`Ukraine`);s(t).toHaveAttribute(`data-foo`,`1`),s(t).toHaveAttribute(`data-bar`,`2`),s(t).toHaveAttribute(`data-baz`,`false`)}},u={render:function(){return(0,o.jsx)(a,{code:`ua`,alt:`Ukraine`,loading:`lazy`})},play:async({canvas:e})=>{s(e.getByAltText(`Ukraine`)).toHaveAttribute(`loading`,`lazy`)}},l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
  render: function Story() {
    return <CountryFlag code="ua" alt="Ukraine" dataset={{
      foo: 1,
      bar: '2',
      baz: false
    }} />;
  },
  play: async ({
    canvas
  }) => {
    const element = canvas.getByAltText('Ukraine');
    expect(element).toHaveAttribute('data-foo', '1');
    expect(element).toHaveAttribute('data-bar', '2');
    expect(element).toHaveAttribute('data-baz', 'false');
  }
}`,...l.parameters?.docs?.source}}},u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
  render: function Story() {
    return <CountryFlag code="ua" alt="Ukraine" loading="lazy" />;
  },
  play: async ({
    canvas
  }) => {
    const element = canvas.getByAltText('Ukraine');
    expect(element).toHaveAttribute('loading', 'lazy');
  }
}`,...u.parameters?.docs?.source}}},d=[`TestDataset`,`ImgAttributesArePassedToImg`]}))();export{u as ImgAttributesArePassedToImg,l as TestDataset,d as __namedExportsOrder,c as default};