Liferay.Loader.define("commerce-frontend-taglib@19.1.14/add_organizations_modal/OrganizationListItem.soy",["module","exports","require","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.templates=t.OrganizationListItem=void 0;var o,r=_interopRequireDefault(n("frontend-js-metal-web$metal-component")),a=_interopRequireDefault(n("frontend-js-metal-web$metal-soy"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.templates=o,goog.loadModule((function(e){var t=goog.require("soy");goog.require("soydata"),goog.module("OrganizationListItem.incrementaldom"),goog.require("goog.soy.data.SanitizedContent");var n=goog.require("incrementaldom");goog.require("soy.asserts"),goog.require("soy.idom");var r=a.default.getTemplate("AddToTickItem.incrementaldom","render"),l=a.default.getTemplate("AutocompleteItem.incrementaldom","render");function $render(e,o,a){o=a||o;var s=t.asserts.assertType(goog.isString(e.name)||e.name instanceof goog.soy.data.SanitizedContent,"name",e.name,"!goog.soy.data.SanitizedContent|string"),i=t.asserts.assertType(null==e._selected||goog.isBoolean(e._selected)||1===e._selected||0===e._selected,"_selected",e._selected,"boolean|null|undefined"),d=t.asserts.assertType(null==e.query||goog.isString(e.query)||e.query instanceof goog.soy.data.SanitizedContent,"query",e.query,"!goog.soy.data.SanitizedContent|null|string|undefined"),m=t.asserts.assertType(null==e.colorId||goog.isNumber(e.colorId),"colorId",e.colorId,"null|number|undefined"),g=e._handleToggleItem;n.elementOpenStart("div"),n.attr("class","user-item commerce-bdc-"+m),n.attr("data-onclick",g),n.elementOpenEnd(),n.elementOpenStart("div"),n.attr("class","user-item__content"),n.elementOpenEnd(),n.elementOpenStart("span"),n.attr("class","user-item__primary-text"),n.elementOpenEnd(),l({text:s,query:d},null,o),n.elementClose("span"),n.elementClose("div"),n.elementOpenStart("button"),n.attr("class","user-item__action"),n.elementOpenEnd(),r({added:i},null,o),n.elementClose("button"),n.elementClose("div")}return e.render=$render,$render.Params,goog.DEBUG&&($render.soyTemplateName="OrganizationListItem.render"),e.render.params=["name","_selected","query","colorId","_handleToggleItem"],e.render.types={name:"string ",_selected:"bool ",query:"string ",colorId:"number ",_handleToggleItem:"?"},e.templates=o=e,e}));class OrganizationListItem extends r.default{}t.OrganizationListItem=OrganizationListItem,a.default.register(OrganizationListItem,o);var l=o;t.default=l}}));
//# sourceMappingURL=OrganizationListItem.soy.js.map