/*!
 * 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/util/AnnotationChangeUtilsV2",
	"sap/suite/ui/generic/template/changeHandler/generic/MoveElements"
], function(
	Utils,
	AnnotationChangeUtils,
	MoveElements
) {
	"use strict";

	/**
	 * Change handler for moving a filter item.
	 *
	 * @alias sap.suite.ui.generic.template.changeHandler.MoveFilterItem
	 * @author SAP SE
	 * @version 1.96.43
	 * @experimental
	 */
	var MoveFilterItems = {};

	MoveFilterItems.applyChange = function (oChange, oControl, mPropertyBag) {
		// nothing so far
		// if needed, there should be call to applyChange of the SmartFilterBar's change handler
	};

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

	MoveFilterItems.completeChangeContent = function (oChange, oSpecificChangeInfo, mPropertyBag) {
		oSpecificChangeInfo.custom = {};
		oSpecificChangeInfo.custom.fnGetRelevantElement = Utils.getSmartFilterBarControlConfiguration;
		oSpecificChangeInfo.custom.fnGetAnnotationIndex = Utils.getRecordIndexForSelectionField;
		MoveElements.completeChangeContent(oChange, oSpecificChangeInfo, mPropertyBag);
	};

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