{#if valueCopy != null}{valueCopy}{/if} { import_modal_open = false; }} current_runners={[]} passed_team={{}} passed_orgs={[]} passed_org={editable} opened_from="OrgDetail" bind:import_modal_open /> {#if data_loaded} {$_("organizations")} {original_object.name} [#{params.orgid}] {#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:IMPORT")} { import_modal_open = true; }} type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:w-auto sm:text-sm" > {$_("import-runners")} {/if} {#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:DELETE")} { modal_open = true; delete_org = original_object; }} type="button" class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:w-auto sm:text-sm" >{$_("delete-organization")} {/if} {$_("save-changes")} {$_("name")} {$_("contact")} label.toLowerCase().includes(filterText.toLowerCase()) || option.value.id.toString().startsWith(filterText.toLowerCase())} items={contacts} showChevron={true} placeholder={$_("no-contact-selected")} noOptionsMessage={$_("no-contact-found")} bind:selectedValue={contact} on:select={(selectedValue) => (editable.contact = selectedValue.detail.value)} on:clear={() => (editable.contact = null)} /> {$_("selfservice-registration")} {#if editable.registrationEnabled} {#if editable.registrationKey} {registrationLink} {:else} {$_("you-have-to-save-your-changes-to-generate-a-link")} {/if} {#if editable.registrationKey} {$_("click-to-copy-the-link-into-your-clipboard")} {/if} {/if} {$_("address")} {#if editable.address_checked === true} {$_("address")} {#if !isAddress1Valid} {$_("address-is-required")} {/if} {$_("apartment-suite-etc")} {$_("zip-postal-code")} {#if !iszipcodevalid} {$_("valid-zipcode-postal-code-is-required")} {/if} {$_("city")} {#if !iscityvalid} {$_("valid-city-is-required")} {/if} {/if} {$_("distance")} {(original_object.total_distance / 1000).toFixed(2)} km {:else} {#await promise} {$_("organization-detail-is-being-loaded")} {:catch error} {/await} {/if}
{#if editable.registrationKey} {registrationLink} {:else} {$_("you-have-to-save-your-changes-to-generate-a-link")} {/if}
{$_("click-to-copy-the-link-into-your-clipboard")}