{#if modal_open}
{ modal_open = false; }}>
{#if is_fixed} {$_('create-a-new-fixed-donation')} {:else}{$_('create-a-new-distance-donation')}{/if}
{$_('distance-donation')}
{$_('fixed-donation')}
{$_('please-provide-the-nessecary-information-to-create-a-new-donation')}
{$_('donor')}
getDonorLabel(option)} getOptionLabel={(option) => getDonorLabel(option)} itemFilter={(label, filterText, option) => filterDonors(label, filterText, option)} items={donors} showChevron={true} placeholder={$_('search-for-donor-name-or-id')} noOptionsMessage={$_('no-donors-found')} on:select={(selectedValue) => (donor = selectedValue.detail.id)} on:clear={()=>(donors = null)} />
{#if !is_fixed}
{$_('runner')}
getDonorLabel(option)} getOptionLabel={(option) => getDonorLabel(option)} itemFilter={(label, filterText, option) => filterDonors(label, filterText, option)} items={runners} showChevron={true} placeholder={$_('search-for-runner-by-name-or-id')} noOptionsMessage={$_('no-runners-found')} on:select={(selectedValue) => (runner = selectedValue.detail.id)} on:clear={()=>(runner = null)} />
{/if}
{#if !is_fixed} {$_('amount-per-kilometer')} {:else}{$_('donation-amount')}{/if}
€
{#if !is_amount_valid}
{$_('donation-amount-must-be-greater-that-0-00eur')}
{/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}