import { media as n } from "@universityofmaryland/web-elements-library/composite";
import * as g from "@universityofmaryland/web-utilities-library/validation";
import { Slots as t, Register as l, Lifecycle as m, Attributes as s } from "@universityofmaryland/web-model-library";
const f = "umd-element-media-inline", u = {
  caption: {
    allowedElements: ["div", "p"]
  },
  text: t.element.allowed.text,
  wrappingText: {
    allowedElements: ["div", "p"],
    deprecated: 'Use "text" instead. This attribute will be removed in version 2.0.'
  }
}, w = (e) => {
  const i = t.text.caption({ element: e }), o = t.text.default({ element: e, isDefaultStyling: !1 }) || t.deprecated.wrappingText({ element: e, isDefaultStyling: !1 }), r = s.isLayout.alignmentRight({ element: e }), d = s.isTheme.dark({ element: e }), p = o !== null, c = i !== null, a = {
    isAlignmentRight: r,
    isThemeDark: d,
    caption: i,
    image: g.getValidatedSlotImage({
      element: e,
      slotName: t.name.assets.image
    }),
    wrappingText: o
  };
  return p ? n.inline.wrapped(a) : c ? n.inline.caption(a) : n.inline.standard(a);
};
var y = l.webComponent({
  tagName: f,
  slots: u,
  createComponent: w,
  onReady: m.hooks.loadOnConnect
});
const x = "umd-element-media-gif", h = {
  image: {
    allowedElements: ["img", "a"]
  }
}, C = (e) => n.elements.gif({
  image: t.assets.image({ element: e })
});
var b = l.webComponent({
  tagName: x,
  slots: h,
  createComponent: C,
  onReady: m.hooks.loadOnConnect
});
export {
  b as g,
  y as i
};
//# sourceMappingURL=gif-Bv0nF1ip.js.map
