<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<c:if test="<%= hasPermission %>">
	<div id="item-finder-root-order-types"></div>

	<liferay-frontend:component
		context='<%=
			HashMapBuilder.<String, Object>put(
				"datasetId", COREntryFDSNames.COR_ENTRY_QUALIFIER_COMMERCE_ORDER_TYPES
			).put(
				"orderRuleExternalReferenceCode", HtmlUtil.escapeJS(corEntry.getExternalReferenceCode())
			).put(
				"orderRuleId", corEntryId
			).put(
				"rootPortletId", portletDisplay.getRootPortletId()
			).build()
		%>'
		module="js/commerce_order_types"
	/>

	<commerce-ui:panel
		bodyClasses="p-0"
		title='<%= LanguageUtil.get(request, "order-types") %>'
	>
		<frontend-data-set:headless-display
			apiURL="<%= corEntryQualifiersDisplayContext.getCommerceOrderTypeCOREntriesAPIURL() %>"
			fdsActionDropdownItems="<%= corEntryQualifiersDisplayContext.getCommerceOrderTypeFDSActionDropdownItems() %>"
			formName="fm"
			id="<%= COREntryFDSNames.COR_ENTRY_QUALIFIER_COMMERCE_ORDER_TYPES %>"
			itemsPerPage="<%= 10 %>"
		/>
	</commerce-ui:panel>
</c:if>