import ServerDocumentMixin from"../backend/server-document.mjs";import BaseActorDelta from"../../../common/documents/actor-delta.mjs";import*as fields from"../../../common/data/fields.mjs";import Actor from"./actor.mjs";export default class ActorDelta extends(ServerDocumentMixin(BaseActorDelta)){static _migrationRegistry=Actor._migrationRegistry;static isDelta=!0;static _getTemplateFields(t){return t.Actor||{}}async loadRelatedDocuments(){return this.parent.loadRelatedDocuments()}getBaseCollection(t){const e=this.parent;if(e&&!e.baseActor){const{baseActor:r}=e.parent?.tokens?.get(e.id)??{};if(r)return r.getEmbeddedCollection(t)}return super.getBaseCollection(t)}static async _preCreateOperation(t,e,r){for(let r=0;r<e.data.length;r++){const o=t[r];if(o?.parent?.actorLink&&null!==e.data[r])return!1}}}