{"version":3,"file":"audio-player.cjs","names":["createLitComponent","AudioPlayerApi","getBaseLeafStyle","nothing"],"sources":["../../../../src/web-components/catalog/basic/audio-player.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { AudioPlayerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const AudioPlayer = createLitComponent(AudioPlayerApi, ({ props }) => {\n  const style = { ...getBaseLeafStyle(), width: \"100%\" };\n  return html`\n    <div\n      style=${styleMap({\n        display: \"flex\",\n        flexDirection: \"column\",\n        gap: \"4px\",\n        width: \"100%\",\n      })}\n    >\n      ${\n        props.description\n          ? html`<span style=\"font-size: 12px; color: #666;\"\n            >${props.description}</span\n          >`\n          : nothing\n      }\n      <audio src=${props.url ?? \"\"} controls style=${styleMap(style)}></audio>\n    </div>\n  `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,cAAcA,mCAAmBC,mDAAiB,EAAE,YAAY;CAC3E,MAAM,QAAQ;EAAE,GAAGC,gCAAkB;EAAE,OAAO;EAAQ;AACtD,QAAO,QAAI;;wDAEU;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACR,CAAC,CAAC;;QAGD,MAAM,cACF,QAAI;eACD,MAAM,YAAY;eAErBC,YACL;mBACY,MAAM,OAAO,GAAG,4DAA2B,MAAM,CAAC;;;EAGnE"}