import{directive as e,PartType as t}from"../directive.js";import{AsyncReplaceDirective as s}from"./async-replace.js";import{clearPart as r,insertPart as a,setChildPartValue as i}from"../directive-helpers.js";
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const c=e(class extends s{constructor(e){if(super(e),e.type!==t.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){0===t&&r(this._$Ctt);const s=a(this._$Ctt);i(s,e)}});export{c as asyncAppend};