var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();import{B as BaseField}from"./BaseField-0b01dc2c.js";var AttachmentSourceType;(function(t){t["RawUrl"]="raw-url";t["AttachmentObject"]="object";t["AttachmentObjects"]="objects"})(AttachmentSourceType||(AttachmentSourceType={}));var AttachmentDataType;(function(t){t["Image"]="image"})(AttachmentDataType||(AttachmentDataType={}));var AttachmentField=function(t){__extends(e,t);function e(e,n,r,a){var o=t.call(this,e,"attachment")||this;o.sourceType=AttachmentSourceType.RawUrl;o.dataType=AttachmentDataType.Image;o.shape="rounded";o.title=n;o.description=r;o.placeholder=a;return o}e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.setShape=function(t){this.shape=t;return this};e.prototype.setMultiple=function(t){this.multiple=t;return this};return e}(BaseField);AttachmentField.type="attachment";export{AttachmentSourceType as A,AttachmentField as a};