
/*!
 * SAPUI5
 * (c) Copyright 2009-2026 SAP SE. All rights reserved.
 */

sap.ui.define([
	"sap/suite/ui/generic/template/changeHandler/util/ChangeHandlerUtils",
	"sap/suite/ui/generic/template/changeHandler/generic/RemoveElement"
], function(
	Utils,
	RemoveElement
) {
	"use strict";

	/**
	 * Change handler for removing a subsection..
	 *
	 * @alias sap.suite.ui.generic.template.changeHandler.RemoveSection **
	 * @author SAP SE
	 * @version 1.96.43
	 * @experimental
	 */
	var RemoveSubSection = {};
	var FACETS = "com.sap.vocabularies.UI.v1.CollectionFacet";

	RemoveSubSection.applyChange = function(oChange, oControl, mPropertyBag) {
		RemoveElement.applyChange(oChange, oControl, mPropertyBag);
	};

	RemoveSubSection.revertChange = function(oChange, oControl, mPropertyBag) {
		//write revert change logic
	};

	RemoveSubSection.completeChangeContent = function(oChange, oSpecificChangeInfo, mPropertyBag) {
		oSpecificChangeInfo.custom = {};
		oSpecificChangeInfo.custom.annotation = FACETS;
		oSpecificChangeInfo.custom.fnPerformCustomRemove = Utils.fnRemoveSubSection;
		RemoveElement.completeChangeContent(oChange, oSpecificChangeInfo, mPropertyBag);
	};

	return RemoveSubSection;
},
/* bExport= */true);
