{"version":3,"sources":["jsdelivr-header.js","/npm/structure-digital-asset-manager@0.0.1/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oECNA,IAAA,QAAA,QAAA,a,yCACA,OAAA,QAAA,iB,uCACA,WAAA,QAAA,sB,suBAEM,6B,WAEJ,SAAA,IAA0B,IAAd,EAAc,UAAA,QAAA,QAAA,IAAA,UAAA,GAAJ,GAAI,UAAA,GAAA,gBAAA,KAAA,GAAA,IAAA,EAAA,2BAAA,KAAA,OAAA,eAAA,GAAA,KAAA,KAClB,OAAO,OAAO,GAAI,CACtB,MAAO,YACP,UAAW,OACX,GAAI,mCACH,KAEH,EAAK,UAAY,IAAA,YAAA,QAEjB,IAAI,EAAS,CACX,aAAc,EAAQ,OAAO,aAC7B,SAAU,EAAQ,OAAO,SACzB,UAAW,EAAK,WAZM,OAerB,EAAQ,OAAO,WAAU,EAAO,SAAW,EAAQ,OAAO,UAC1D,EAAQ,OAAO,WAAU,EAAO,SAAW,EAAQ,OAAO,UAE7D,EAAK,UAAY,IAAA,QAAA,QAAc,CAC7B,UAAA,IAAe,EAAK,GACpB,YAAa,CACX,cAAe,EAAQ,YAAY,cACnC,OAAQ,EAAQ,YAAY,QAE9B,WAGF,EAAK,UAAU,GAAG,SAAS,WACzB,EAAK,KAAK,QACX,IA7BuB,CA+BzB,C,mBAjCwC,SAAA,QAAO,W,qBAqCnC","file":"/npm/structure-digital-asset-manager@0.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/structure-digital-asset-manager@0.0.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import Dragon    from 'dragon.js'\nimport IndexView from './views/index'\nimport Selection from './models/selection'\n\nclass DigitalAssetManagerComponent extends Dragon.Component {\n\n  constructor(options = {}) {\n    super(Object.assign({}, {\n      class: 'component',\n      container: 'body',\n      id: 'component-digital-asset-manager'\n    }, options))\n\n    this.selection = new Selection()\n\n    var models = {\n      organization: options.models.organization,\n      revision: options.models.revision,\n      selection: this.selection\n    }\n\n    if(options.models.document) models.document = options.models.document\n    if(options.models.template) models.template = options.models.template\n\n    this.indexView = new IndexView({\n      container: `#${this.id}`,\n      collections: {\n        digitalAssets: options.collections.digitalAssets,\n        fields: options.collections.fields\n      },\n      models\n    })\n\n    this.indexView.on('close', () => {\n      this.emit('close')\n    })\n\n  }\n\n}\n\nexport default DigitalAssetManagerComponent\n"]}