{#if modal_open}
{ modal_open = false; }}>
{$_('create-a-new-team')}
{$_('please-provide-the-required-information-to-add-a-new-team')}
{$_('team-name')}
{#if !isTeamNameValid}
{$_('team-name-is-required')}
{/if}
{$_('organization')}
label .toLowerCase() .includes( filterText.toLowerCase() ) || option.value.id .toString() .startsWith(filterText.toLowerCase())} items={orgs} showChevron={true} placeholder={$_('search-for-an-organization-by-name-or-id')} noOptionsMessage={$_('no-organizations-found')} on:select={(selectedValue) => (parentGroup = selectedValue.detail.value.id)} on:clear={() => (parentGroup = null)} /> {#if !parentGroup}
{$_('you-have-to-provide-an-organization')}
{/if}
{$_('create')}
{ modal_open = false; }} type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"> {$_('cancel')}
{/if}