Liferay.Loader.define("commerce-frontend-taglib@19.1.14/user_roles_modal/RoleListItem.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.RoleListItem=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("RoleListItem.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("AutocompleteItem.incrementaldom","render");function $render(e,o,a){o=a||o;var l=t.asserts.assertType(goog.isNumber(e.id)||goog.isString(e.id)||e.id instanceof goog.soy.data.SanitizedContent,"id",e.id,"!goog.soy.data.SanitizedContent|number|string"),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.query||goog.isString(e.query)||e.query instanceof goog.soy.data.SanitizedContent,"query",e.query,"!goog.soy.data.SanitizedContent|null|string|undefined"),d=t.asserts.assertType(null==e._selected||goog.isBoolean(e._selected)||1===e._selected||0===e._selected,"_selected",e._selected,"boolean|null|undefined"),m=e._handleToggleItem,c="";c+="commerce-input commerce-input--checkbox",c+=null!=d&&1==d?" commerce-input commerce-input--checkbox--checked":"",n.elementOpenStart("div"),n.attr("class",c),n.elementOpenEnd(),n.elementOpenStart("div"),n.attr("class","commerce-input commerce-input--checkbox__input"),n.elementOpenEnd(),n.elementOpenStart("input"),n.attr("data-onchange",m),function checkboxAttributes__soy2544(){n.attr("type","checkbox"),n.attr("name",s),n.attr("value",l),n.attr("id","role-checkbox--"+l),null!=d&&1==d&&n.attr("checked","")}(),n.elementOpenEnd(),n.elementClose("input"),n.elementClose("div"),n.elementOpenStart("label"),n.attr("class","commerce-input commerce-input--checkbox__label"),n.attr("for","role-checkbox--"+l),n.elementOpenEnd(),r({text:s,query:i},null,o),n.elementClose("label"),n.elementClose("div")}return e.render=$render,$render.Params,goog.DEBUG&&($render.soyTemplateName="RoleListItem.render"),e.render.params=["id","name","query","_selected","_handleToggleItem"],e.render.types={id:"string|int ",name:"string ",query:"string ",_selected:"bool ",_handleToggleItem:"?"},e.templates=o=e,e}));class RoleListItem extends r.default{}t.RoleListItem=RoleListItem,a.default.register(RoleListItem,o);var l=o;t.default=l}}));
//# sourceMappingURL=RoleListItem.soy.js.map