import { h } from "@stencil/core";
import { StringUtils } from "@sankhyalabs/core";
export const buildSearchPlus = ({ name, label, readOnly, contextName, canShowError, optionLoader, props }) => {
  const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
  return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-search-plus", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, hideDescriptionInput: !hasDescriptionField })));
};
