require("./chunk-9hOWP6kD.cjs");
const require_query_keys = require("./query-keys-p6qddudR.cjs");
const require_static_dict_adapter = require("./static-dict-adapter-BCgoKiVT.cjs");
const require_task_composer_form = require("./task-composer-form-BMw6N_M4.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region ../../store/core/src/countries-api-context.ts
const CountriesApiContext = (0, react.createContext)(null);
const CountriesApiProvider = CountriesApiContext.Provider;
function useCountriesApi() {
	const api = (0, react.use)(CountriesApiContext);
	if (!api) throw new Error("useCountriesApi must be used within a CountriesApiProvider");
	return api;
}
//#endregion
//#region ../../api-clients/portal-tenant-contacts/src/namespaces/portal_tenant_contacts.ts
/**
* List contacts with cursor pagination
* Returns a paginated list of contacts belonging to the authenticated member.
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function contacts_list(client, params) {
	return client.get(`/api/contacts`, params);
}
/**
* Create a new contact
* Creates a new contact for the authenticated member.
*
* @param client - Fetch client instance
* @param body - body
*/
async function contacts_create(client, body) {
	return client.post(`/api/contacts`, body);
}
/**
* Get a specific contact
* Returns a single contact by ID.
*
* @param client - Fetch client instance
* @param id - id
*/
async function contacts_show(client, id) {
	return client.get(`/api/contacts/${id}`);
}
/**
* Update a contact
* Updates an existing contact's attributes.
*
* @param client - Fetch client instance
* @param id - id
* @param body - body
*/
async function contacts_update(client, id, body) {
	return client.patch(`/api/contacts/${id}`, body);
}
/**
* Delete a contact
* Soft-deletes a contact by ID.
*
* @param client - Fetch client instance
* @param id - id
*/
async function contacts_destroy(client, id) {
	return client.delete(`/api/contacts/${id}`);
}
/**
* Delete multiple contacts
* Soft-deletes multiple contacts by their IDs.
*
* @param client - Fetch client instance
* @param body - body
*/
async function contacts_bulk_destroy(client, body) {
	return client.delete(`/api/contacts/bulk`, { body });
}
/**
* List contact groups
* Returns a paginated list of contact groups belonging to the authenticated member.
*
* @param client - Fetch client instance
* @param [params] - params
*/
async function contacts_groups_list(client, params) {
	return client.get(`/api/contacts/groups`, params);
}
/**
* Create a new group
* Creates a new contact group for the authenticated member.
*
* @param client - Fetch client instance
* @param body - body
*/
async function contacts_groups_create(client, body) {
	return client.post(`/api/contacts/groups`, body);
}
/**
* Update a group
* Updates an existing contact group.
*
* @param client - Fetch client instance
* @param id - id
* @param body - body
*/
async function contacts_groups_update(client, id, body) {
	return client.patch(`/api/contacts/groups/${id}`, body);
}
/**
* Delete a group
* Removes a contact group.
*
* @param client - Fetch client instance
* @param id - id
*/
async function contacts_groups_destroy(client, id) {
	return client.delete(`/api/contacts/groups/${id}`);
}
/**
* List notes for a contact
* Returns notes attached to a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param [params] - params
*/
async function contacts_notes_list(client, contact_id, params) {
	return client.get(`/api/contacts/${contact_id}/notes`, params);
}
/**
* Create a note for a contact
* Adds a new note to a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param body - body
*/
async function contacts_notes_create(client, contact_id, body) {
	return client.post(`/api/contacts/${contact_id}/notes`, body);
}
/**
* List tasks for a contact
* Returns tasks assigned to a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param [params] - params
*/
async function contacts_tasks_list(client, contact_id, params) {
	return client.get(`/api/contacts/${contact_id}/tasks`, params);
}
/**
* Create a task for a contact
* Adds a new task to a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param body - body
*/
async function contacts_tasks_create(client, contact_id, body) {
	return client.post(`/api/contacts/${contact_id}/tasks`, body);
}
/**
* Update a note
* Updates an existing note on a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param id - id
* @param body - body
*/
async function contacts_notes_update(client, contact_id, id, body) {
	return client.patch(`/api/contacts/${contact_id}/notes/${id}`, body);
}
/**
* Delete a note
* Removes a note from a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param id - id
*/
async function contacts_notes_destroy(client, contact_id, id) {
	return client.delete(`/api/contacts/${contact_id}/notes/${id}`);
}
/**
* Update a task
* Updates an existing task on a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param id - id
* @param body - body
*/
async function contacts_tasks_update(client, contact_id, id, body) {
	return client.patch(`/api/contacts/${contact_id}/tasks/${id}`, body);
}
/**
* Delete a task
* Removes a task from a contact.
*
* @param client - Fetch client instance
* @param contact_id - contact_id
* @param id - id
*/
async function contacts_tasks_destroy(client, contact_id, id) {
	return client.delete(`/api/contacts/${contact_id}/tasks/${id}`);
}
//#endregion
//#region src/adapters/contacts-api-adapter.ts
const EMPTY_META = {
	total_count: 0,
	total_pages: 0,
	current_page: 1,
	next_cursor: null
};
function paginationFromBff(meta, itemCount, currentPage, pageSize) {
	if (!meta) return EMPTY_META;
	const nextCursor = meta.pagination?.next_cursor ?? null;
	const hasNext = !!nextCursor;
	const totalCount = meta.total_count ?? (hasNext ? (currentPage + 1) * pageSize : (currentPage - 1) * pageSize + itemCount);
	return {
		total_count: totalCount,
		total_pages: Math.max(1, Math.ceil(totalCount / pageSize)),
		current_page: currentPage,
		next_cursor: nextCursor,
		request_id: meta.request_id ?? void 0,
		timestamp: meta.timestamp ?? void 0
	};
}
/** BFF Contact → core Contact. Fills missing fields with safe defaults. */
function mapContact(raw) {
	return {
		id: raw.id,
		full_name: `${raw.first_name ?? ""} ${raw.last_name ?? ""}`.trim(),
		first_name: raw.first_name ?? null,
		last_name: raw.last_name ?? null,
		email: raw.email ?? null,
		phone: raw.phone ?? null,
		status: raw.status ?? null,
		address: raw.address ?? null,
		city: raw.city ?? null,
		state: raw.state ?? null,
		postal_code: raw.postal_code ?? null,
		avatar_url: raw.avatar_url ?? null,
		country: raw.country ?? null,
		tags: raw.tags ?? [],
		metadata: {},
		created_at: raw.created_at,
		updated_at: raw.updated_at
	};
}
/** BFF Note → core ContactNote. */
function mapNote(raw) {
	return {
		id: raw.id,
		title: raw.title ?? "",
		body: raw.body ?? "",
		note_type: null,
		due_date: null,
		due_time: null,
		pinned: null,
		created_at: raw.created_at,
		updated_at: raw.updated_at,
		contact_id: raw.contact_id ?? 0,
		assets: []
	};
}
/** BFF Task → core ContactTask. */
function mapTask(raw) {
	return {
		id: raw.id,
		body: raw.title ?? "",
		due_at: raw.due_date ?? null,
		completed_at: raw.completed_at ?? (raw.completed ? (/* @__PURE__ */ new Date()).toISOString() : null),
		created_at: raw.created_at,
		contact_id: raw.contact_id ?? null
	};
}
/**
* The contacts-ui sends offset pagination params (page, per_page, sort_by,
* sort_direction, search, status). The BFF expects cursor pagination
* (page[cursor], page[limit], search, tags). Translate between the two.
*
* `cursorCache` maps page numbers → cursor tokens so page-2+ requests can
* resolve to the correct cursor. The cache is populated from BFF responses.
*/
function mapListParams(params, cursorCache) {
	if (!params) return void 0;
	const mapped = {};
	if (params.per_page || params.limit) mapped["page[limit]"] = params.per_page ?? params.limit;
	const page = params.page ?? 1;
	if (page > 1) {
		const cursor = cursorCache.get(page);
		if (cursor) mapped["page[cursor]"] = cursor;
	}
	if (params.search_query || params.search || params.query) mapped.search = params.search_query ?? params.search ?? params.query;
	if (params.tags) mapped.tags = params.tags;
	return mapped;
}
function createContactsAdapter(client) {
	const cursorCache = /* @__PURE__ */ new Map();
	return {
		getContact: async (id) => {
			return { contact: mapContact((await contacts_show(client, id)).contact) };
		},
		listContacts: async (params) => {
			const raw = params;
			const page = raw?.page ?? 1;
			const pageSize = raw?.per_page ?? 25;
			const body = await contacts_list(client, mapListParams(raw, cursorCache));
			const meta = body.meta;
			const nextCursor = (meta?.pagination)?.next_cursor;
			if (nextCursor) cursorCache.set(page + 1, nextCursor);
			const contacts = (body.contacts ?? []).map(mapContact);
			return {
				contacts,
				meta: paginationFromBff(meta, contacts.length, page, pageSize)
			};
		},
		createContact: async (data) => {
			return contacts_create(client, { contact: data });
		},
		updateContact: async (id, data) => {
			return contacts_update(client, id, { contact: data });
		},
		deleteContact: async (id) => {
			return contacts_destroy(client, id);
		},
		bulkDeleteContacts: async (ids) => {
			return contacts_bulk_destroy(client, { ids });
		}
	};
}
function createNotesAdapter(client) {
	return {
		listNotes: async (contactId) => {
			return { notes: ((await contacts_notes_list(client, contactId)).notes ?? []).map(mapNote) };
		},
		createNote: async (contactId, input) => {
			return contacts_notes_create(client, contactId, { note: input });
		},
		updateNote: async (noteId, contactId, input) => {
			return contacts_notes_update(client, contactId, noteId, { note: input });
		},
		deleteNote: async (noteId, contactId) => {
			return contacts_notes_destroy(client, contactId, noteId);
		}
	};
}
function createTasksAdapter(client) {
	return {
		listTasks: async (contactId) => {
			return { tasks: ((await contacts_tasks_list(client, contactId)).tasks ?? []).map(mapTask) };
		},
		createTask: async (contactId, input) => {
			return contacts_tasks_create(client, contactId, { task: {
				title: input.body,
				due_date: input.due_at
			} });
		},
		updateTask: async (taskId, contactId, input) => {
			return contacts_tasks_update(client, contactId, taskId, { task: {
				title: input.body ?? void 0,
				completed: input.completed_at !== void 0 ? input.completed_at !== null : void 0,
				due_date: input.due_at
			} });
		},
		deleteTask: async (taskId, contactId) => {
			return contacts_tasks_destroy(client, contactId, taskId);
		}
	};
}
/** BFF Group → core ContactGroup. */
function mapGroup(raw) {
	return {
		id: raw.id,
		name: raw.name ?? "",
		avatar: raw.avatar ?? null,
		avatar_background: raw.avatar_background ?? null,
		contacts_count: raw.contacts_count ?? 0,
		created_at: raw.created_at,
		updated_at: raw.updated_at
	};
}
function createGroupsAdapter(client) {
	return {
		listGroups: async () => {
			return { groups: ((await contacts_groups_list(client)).groups ?? []).map(mapGroup) };
		},
		createGroup: async (input) => {
			return { group: mapGroup((await contacts_groups_create(client, { group: input })).group) };
		},
		updateGroup: async (groupId, input) => {
			return { group: mapGroup((await contacts_groups_update(client, groupId, { group: input })).group) };
		},
		deleteGroup: async (groupId) => {
			return contacts_groups_destroy(client, groupId);
		}
	};
}
/**
* Creates a composite ContactsDomainApi backed by the portal-tenant
* Contacts BFF endpoints.
*/
function createPortalContactsDomainApiAdapter(client) {
	return {
		contacts: createContactsAdapter(client),
		notes: createNotesAdapter(client),
		tasks: createTasksAdapter(client),
		groups: createGroupsAdapter(client)
	};
}
//#endregion
//#region src/contacts/PortalContactsApiProvider.tsx
function PortalContactsApiProvider({ children }) {
	const client = require_query_keys.usePortalTenantClient();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_task_composer_form.ContactsApiProvider, {
		value: (0, react.useMemo)(() => createPortalContactsDomainApiAdapter(client), [client]),
		children
	});
}
//#endregion
//#region ../../contacts/core/src/translation-adapter.ts
const contactsDomain = require_static_dict_adapter.createDomainTranslations({
	fallback: {
		breadcrumb: "Contacts",
		breadcrumb_new: "New Contact",
		contact_label: "Contact",
		contacts_deleted_successfully: "Contacts deleted successfully",
		add: "Add",
		add_contact: "Add Contact",
		add_todo: "Add to-do",
		add_todo_dialog_title: "Add a to-do",
		adding: "Adding...",
		update_contact: "Update Contact",
		saving: "Saving",
		cancel: "Cancel",
		save: "Save",
		delete: "Delete",
		delete_name: "Delete {{name}}?",
		delete_confirm_permanent: "This permanently removes the contact and all of their notes, tasks, and activity. This can't be undone.",
		delete_contact: "Delete contact",
		delete_contact_confirm_one: "Are you sure you want to delete this contact? This action cannot be undone.",
		delete_contact_confirm_other: "Are you sure you want to delete {{count}} contacts? This action cannot be undone.",
		delete_contact_title: "Delete contact?",
		deleting: "Deleting...",
		search_placeholder: "Search contacts",
		error_loading: "Couldn't load contact",
		error_loading_description: "This contact may have been deleted, you may not have permission to view it, or there was a network error. Try selecting them again.",
		error_loading_list: "Couldn't load contacts. Pull down to retry.",
		error_generic: "Something went wrong. Please try again later.",
		loading: "Loading...",
		loading_more: "Loading more...",
		searching: "Searching...",
		people_count: "{{count}} people across your network",
		person_count: "{{count}} person across your network",
		no_contacts_search: "No contacts match \"{{term}}\".",
		no_contacts_yet: "No contacts yet.",
		no_contacts_filter: "No contacts match this filter.",
		empty_select_contact: "Select a contact",
		empty_select_description: "Pick someone from your list on the left to see their details, notes, and tasks.",
		tab_tasks: "Tasks",
		tab_notes: "Notes",
		edit_profile: "Edit profile",
		editing_name: "Editing {{name}}",
		profile_edit_description: "Update details below. Your contact card above is paused while you edit.",
		new_task: "New task",
		last_updated: "Last updated {{date}}",
		label_email: "Email",
		label_phone: "Phone",
		label_address: "Address",
		label_call: "Call",
		label_first_name: "First Name",
		label_last_name: "Last Name",
		label_city: "City",
		label_country: "Country",
		label_full_address: "Full Address",
		label_postal_code: "Postal Code",
		label_state: "State/Province",
		label_status: "Status",
		not_set: "Not set",
		more_actions: "More actions",
		back_to_contacts: "Back to contacts",
		back_to_tasks: "Back to Tasks",
		filter_all: "All",
		filter_leads: "Leads",
		filter_customers: "Customers",
		note_placeholder: "Leave a note about this contact…",
		note_body_aria: "Note body",
		add_note: "Add note",
		tip_save_shortcut_mac: "Tip: ⌘ + Enter to save",
		tip_save_shortcut_other: "Tip: Ctrl + Enter to save",
		task_describe_placeholder: "Describe the task…",
		task_description_aria: "Task description",
		task_discard_aria: "Discard task",
		add_task: "Add task",
		quick_today: "Today",
		quick_tomorrow: "Tomorrow",
		task_select_date: "Select Date",
		task_due_in_days: "In {{count}} days",
		task_next_week: "Next Week",
		task_no_date: "No Date",
		task_custom_calendar: "Custom Calendar",
		task_time_label: "Time",
		task_time_aria: "Select due time",
		calendar_next_month: "Go to next month",
		calendar_previous_month: "Go to previous month",
		calendar_month_dropdown: "Month: ",
		calendar_year_dropdown: "Year: ",
		calendar_week_number: "Week {{number}}",
		task_custom_date_selected_aria: "Change due date: {{date}}",
		task_custom_date_aria: "Select due date",
		edit_contact_name: "Edit {{name}}",
		save_changes: "Save changes",
		add_field: "Add {{field}}",
		copy_field: "Copy {{field}}",
		copied_field: "Copied {{field}}",
		attachment_one: "1 attachment",
		attachment_other: "{{count}} attachments",
		note_actions: "Note actions",
		delete_note_title: "Delete note?",
		delete_note_irreversible: "This action cannot be undone.",
		task_yesterday: "Yesterday",
		task_days_ago_one: "1 day ago",
		task_days_ago_other: "{{count}} days ago",
		task_overdue_due: "Overdue · {{date}}",
		task_due: "Due {{date}}",
		mark_as_open: "Mark as open",
		mark_as_completed: "Mark as completed",
		task_actions: "Task actions",
		delete_task_title: "Delete task?",
		delete_task_confirm: "Are you sure you want to delete this task? This action cannot be undone.",
		groups_manage_groups: "Manage Groups",
		groups_manage_title: "Manage Groups",
		groups_back_to_contacts: "Back to contacts",
		groups_new_group: "New Group",
		groups_empty: "No groups yet. Create a group to get started.",
		groups_delete_title: "Delete group?",
		groups_delete_confirm: "Are you sure you want to delete “{{name}}”? Contacts in this group will not be deleted, but they will be removed from the group.",
		groups_create_title: "Create Group",
		groups_edit_title: "Edit Group",
		groups_remove_emoji: "Remove emoji",
		groups_avatar: "Avatar",
		groups_name_label: "Group Name",
		groups_name_placeholder: "Group name",
		groups_tab_change_emoji: "Change Emoji",
		groups_tab_change_color: "Change color",
		groups_no_emoji_found: "No emoji found.",
		groups_close: "Close",
		groups_creating: "Creating...",
		groups_create: "Create",
		groups_created_toast: "Group \"{{name}}\" created",
		groups_create_failed: "Failed to create group",
		groups_create_new_group: "Create New Group",
		groups_updated_toast: "Group updated",
		groups_update_failed: "Failed to update group",
		groups_deleted_toast: "Group \"{{name}}\" deleted",
		groups_delete_failed: "Failed to delete group",
		groups_contact_one: "{{count}} contact",
		groups_contact_other: "{{count}} contacts",
		groups_member_one: "{{count}} member",
		groups_member_other: "{{count}} members",
		groups_search_contacts_to_add: "Search contacts to add...",
		groups_no_contacts_found: "No contacts found",
		groups_loading_members: "Loading members...",
		groups_empty_members: "No contacts in this group yet. Use the search above to add contacts.",
		groups_edit_aria: "Edit {{name}}",
		groups_delete_aria: "Delete {{name}}",
		groups_remove_member_aria: "Remove {{name}}",
		groups_member_added_toast: "{{contact}} added to {{group}}",
		groups_member_removed_toast: "{{contact}} removed from {{group}}",
		groups_member_add_failed: "Failed to add {{contact}} to {{group}}",
		groups_member_remove_failed: "Failed to remove {{contact}} from {{group}}",
		groups_inline_search_placeholder: "Search",
		groups_inline_create: "Create \"{{name}}\"",
		groups_inline_create_failed: "Failed to create group \"{{name}}\"",
		groups_inline_no_groups_found: "No groups found",
		groups_inline_selected_one: "{{count}} group selected",
		groups_inline_selected_other: "{{count}} groups selected",
		groups_color_red: "Red",
		groups_color_orange: "Orange",
		groups_color_yellow: "Yellow",
		groups_color_green: "Green",
		groups_color_teal: "Teal",
		groups_color_cyan: "Cyan",
		groups_color_blue: "Blue",
		groups_color_indigo: "Indigo",
		groups_color_purple: "Purple",
		groups_color_pink: "Pink",
		groups_add_group: "Add Group",
		groups_add_to_group: "Add to Group",
		groups_no_groups_yet: "No groups yet",
		groups_tags_save_failed: "Failed to save group changes",
		groups_title: "Groups",
		groups_options_aria: "Group options",
		contacts_deleted_one: "{{count}} contact deleted",
		contacts_deleted_other: "{{count}} contacts deleted",
		contact_deleted_toast: "{{name}} deleted",
		contact_delete_failed: "Failed to delete contact",
		contacts_delete_failed_one: "Failed to delete contact",
		contacts_delete_failed_other: "Failed to delete contacts",
		contacts_added_to_group_one: "Added {{count}} contact to {{group}}",
		contacts_added_to_group_other: "Added {{count}} contacts to {{group}}",
		contacts_add_to_group_failed_one: "Failed to add contact to {{group}}",
		contacts_add_to_group_failed_other: "Failed to add contacts to {{group}}",
		delete_contact_aria: "Delete {{name}}",
		placeholder_first_name: "Enter first name",
		placeholder_last_name: "Enter last name",
		placeholder_email: "Enter email address",
		placeholder_phone: "Enter phone number",
		placeholder_full_address: "Enter street address",
		placeholder_city: "Enter city",
		placeholder_country: "Select country",
		placeholder_state: "Enter state or province",
		placeholder_postal_code: "Enter postal code",
		placeholder_status: "Select status",
		status_new: "New",
		status_active: "Active",
		status_inactive: "Inactive",
		status_cold: "Cold",
		status_lead: "Lead",
		status_customer: "Customer",
		groups_manage_for_contact: "Manage Groups for {{name}}",
		groups_available: "Available Groups",
		groups_name_required_title: "Group name required",
		groups_name_required_description: "Please enter a name for the new group",
		groups_already_exists_title: "Group already exists",
		groups_already_exists_description: "A group named \"{{name}}\" already exists",
		groups_choose_emoji: "Choose Emoji",
		groups_choose_color: "Choose Color",
		task_updated: "Task updated",
		task_created: "Task created",
		task_deleted: "Task deleted",
		task_update_failed: "Failed to update task",
		task_create_failed: "Failed to create task",
		task_delete_failed: "Failed to delete task",
		note_created: "Note created",
		note_updated: "Note updated",
		note_deleted: "Note deleted",
		note_create_failed: "Failed to create note",
		note_update_failed: "Failed to update note",
		note_delete_failed: "Failed to delete note",
		contact_created: "Contact created successfully",
		contact_updated: "Contact updated successfully",
		contact_deleted: "Contact deleted successfully",
		contact_create_failed: "Failed to create contact",
		contact_save_failed: "Failed to save contact",
		form_errors_title: "Please fix the form errors before saving",
		validation_first_name_required: "First name is required",
		validation_last_name_required: "Last name is required",
		orders_title: "Orders",
		orders_empty: "No orders yet",
		orders_empty_description: "Orders placed by this contact will appear here",
		orders_failed: "Failed to load orders",
		orders_retry: "Please try again later",
		orders_no_match: "No orders match this filter",
		notes_title: "Notes",
		notes_empty: "No notes yet",
		notes_view_all: "View all",
		pagination_page_of: "Page {{current}} of {{total}} ({{count}} total)",
		pagination_previous: "Previous page",
		pagination_next: "Next page",
		activity_title: "Recent Activity",
		activity_empty: "No activity yet",
		activity_empty_description: "Reach out and share a product or media to start building this contact’s story",
		activity_filter_new: "New",
		activity_mark_all_read: "Mark all read",
		activity_no_match: "No {{filter}} activities",
		activity_type_message: "Message",
		activity_type_task: "Task",
		activity_type_alert: "Alert from Fluid.app",
		activity_type_announcement: "Announcement",
		activity_type_event: "Event",
		activity_type_review: "Review",
		activity_type_points: "Points",
		activity_type_notification: "Notification",
		activity_date_today: "Today",
		activity_date_yesterday: "Yesterday",
		activity_due: "Due",
		activity_tbd: "TBD",
		notes_more: "more",
		subscriptions_title: "Subscriptions",
		subscriptions_empty: "No subscriptions yet",
		subscriptions_empty_description: "Subscriptions for this contact will appear here",
		subscriptions_failed: "Failed to load subscriptions",
		subscriptions_no_match: "No subscriptions match this filter",
		subscriptions_next_bill: "Next bill:",
		subscriptions_created: "Created {{date}}",
		subscriptions_every_days: "Every {{count}} days",
		status_filter_awaiting_payment: "Awaiting Payment",
		status_filter_awaiting_shipment: "Awaiting Shipment",
		status_filter_shipped: "Shipped",
		status_filter_delivered: "Delivered",
		status_filter_cancelled: "Cancelled",
		editor_add_due_date: "Add due date",
		editor_due_date: "Due date",
		editor_remove_due_date: "Remove due date",
		editor_start_writing: "Start writing...",
		modal_note_label: "Note",
		modal_task_label: "Task",
		modal_edit_type: "Edit {{type}}",
		modal_new_type: "New {{type}}",
		modal_type_title_placeholder: "{{type}} title",
		modal_mark_incomplete: "Mark Incomplete",
		modal_mark_complete: "Mark Complete",
		toolbar_bold: "Bold",
		toolbar_italic: "Italic",
		toolbar_underline: "Underline",
		toolbar_align_left: "Align left",
		toolbar_align_center: "Align center",
		toolbar_align_right: "Align right",
		toolbar_justify: "Justify",
		toolbar_bullet_list: "Bullet list",
		toolbar_ordered_list: "Ordered list",
		tooltip_message: "Message",
		tooltip_new_note: "New Note",
		tooltip_events_coming_soon: "Events (coming soon)",
		contact_info_title: "Contact Information",
		contact_info_no_email: "No email entered",
		contact_info_no_phone: "No phone number entered",
		contact_info_no_address: "No address entered",
		contact_info_edit: "Edit",
		contact_unknown_name: "Unknown",
		relative_today: "today",
		relative_yesterday: "yesterday",
		relative_days_ago: "{{count}} days ago",
		relative_weeks_ago_one: "1 week ago",
		relative_weeks_ago_other: "{{count}} weeks ago",
		relative_months_ago_one: "1 month ago",
		relative_months_ago_other: "{{count}} months ago",
		relative_years_ago_one: "1 year ago",
		relative_years_ago_other: "{{count}} years ago",
		action_unavailable: "{{label}} (unavailable)",
		editor_default_title: "New Note",
		editor_default_body_placeholder: "Start writing...",
		table_groups: "Groups",
		table_filter_by_group: "Filter by group",
		table_column_name: "Name",
		table_column_email: "Email",
		table_column_phone: "Phone",
		table_column_id: "ID",
		table_column_status: "Status",
		table_search_placeholder: "Search contacts...",
		table_no_contacts: "No contacts found",
		table_no_contacts_group_filter: "No contacts found for the selected group filter.",
		table_select_all: "Select all",
		table_deselect_all: "Deselect all",
		table_selected_count: "{{count}} selected",
		table_actions: "Actions",
		table_edit: "Edit",
		table_clear_filters: "Clear filters",
		table_contact_actions: "Contact actions",
		table_sort_asc: "{{name}} (A-Z)",
		table_sort_desc: "{{name}} (Z-A)",
		table_delete_rows_one: "Delete {{count}} row",
		table_delete_rows_other: "Delete {{count}} rows",
		table_delete_contacts_one: "Delete {{count}} contact",
		table_delete_contacts_other: "Delete {{count}} contacts",
		table_select_contact: "Select {{name}}",
		contact_optional_label: "Contact (optional)",
		contact_picker_trigger_aria: "Contact (optional): {{selection}}",
		select_contact: "Select Contact",
		no_contact: "No contact",
		clear_contact_aria: "Clear contact",
		todo_empty: "You've got nothing else To-Do!",
		todo_open_tasks_one: "{{count}} open task",
		todo_open_tasks_other: "{{count}} open tasks",
		todo_more_tasks_one: "{{count}} more task",
		todo_more_tasks_other: "{{count}} more tasks",
		edit_todo: "Edit",
		delete_todo: "Delete",
		view_done: "View done ({{count}})",
		hide_done: "Hide done",
		sponsor_title: "Sponsor",
		label_name: "Name",
		assign_rep_title: "Assign Rep",
		assign_rep_tooltip: "The rep affiliated with this contact",
		assign_rep_clear: "Clear",
		assign_rep_edit: "Edit",
		assign_rep_back: "Back",
		assign_rep_search_placeholder: "Search by name or email...",
		assign_rep_loading: "Loading…",
		assign_rep_no_results: "No reps found matching \"{{term}}\""
	},
	loaders: {
		de: () => Promise.resolve().then(() => require("./de-B4dKgQ75.cjs")).then((m) => m.default),
		el: () => Promise.resolve().then(() => require("./el-JACDIQVv.cjs")).then((m) => m.default),
		es: () => Promise.resolve().then(() => require("./es-BaAYKgKQ.cjs")).then((m) => m.default),
		fr: () => Promise.resolve().then(() => require("./fr-DgTOdSyN.cjs")).then((m) => m.default),
		he: () => Promise.resolve().then(() => require("./he-4F5A_mSe.cjs")).then((m) => m.default),
		hu: () => Promise.resolve().then(() => require("./hu-DAqofM8k.cjs")).then((m) => m.default),
		id: () => Promise.resolve().then(() => require("./id-CJwLbqKj.cjs")).then((m) => m.default),
		it: () => Promise.resolve().then(() => require("./it-CQUdHiZF.cjs")).then((m) => m.default),
		ja: () => Promise.resolve().then(() => require("./ja-CBkXkQ9M.cjs")).then((m) => m.default),
		ko: () => Promise.resolve().then(() => require("./ko-CNxqS99s.cjs")).then((m) => m.default),
		nl: () => Promise.resolve().then(() => require("./nl-Bd4IrXcj.cjs")).then((m) => m.default),
		pl: () => Promise.resolve().then(() => require("./pl-BHMyd66U.cjs")).then((m) => m.default),
		pt: () => Promise.resolve().then(() => require("./pt-B_5iAEcq.cjs")).then((m) => m.default),
		ro: () => Promise.resolve().then(() => require("./ro-CbFdMeFz.cjs")).then((m) => m.default),
		ru: () => Promise.resolve().then(() => require("./ru-84HNEpYx.cjs")).then((m) => m.default),
		th: () => Promise.resolve().then(() => require("./th-suOhnMHJ.cjs")).then((m) => m.default),
		tl: () => Promise.resolve().then(() => require("./tl-DDm79_Rd.cjs")).then((m) => m.default),
		tr: () => Promise.resolve().then(() => require("./tr-fjaDFo-_.cjs")).then((m) => m.default),
		zh_CN: () => Promise.resolve().then(() => require("./zh_CN-8YRhT-9f.cjs")).then((m) => m.default),
		zh_TW: () => Promise.resolve().then(() => require("./zh_TW-BdhxXt6U.cjs")).then((m) => m.default)
	}
});
function createContactsTranslationAdapter(locale, dict) {
	return require_static_dict_adapter.createStaticDictAdapter(locale, dict);
}
//#endregion
//#region src/providers/ContactsTranslationBridge.tsx
function ContactsTranslationBridge({ children }) {
	const { locale } = require_static_dict_adapter.useActiveLocale();
	const dict = require_static_dict_adapter.useDomainDict(contactsDomain, locale);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_task_composer_form.ContactsTranslationProvider, {
		value: (0, react.useMemo)(() => createContactsTranslationAdapter(locale, dict), [locale, dict]),
		children
	});
}
//#endregion
Object.defineProperty(exports, "ContactsTranslationBridge", {
	enumerable: true,
	get: function() {
		return ContactsTranslationBridge;
	}
});
Object.defineProperty(exports, "CountriesApiProvider", {
	enumerable: true,
	get: function() {
		return CountriesApiProvider;
	}
});
Object.defineProperty(exports, "PortalContactsApiProvider", {
	enumerable: true,
	get: function() {
		return PortalContactsApiProvider;
	}
});
Object.defineProperty(exports, "useCountriesApi", {
	enumerable: true,
	get: function() {
		return useCountriesApi;
	}
});

//# sourceMappingURL=ContactsTranslationBridge-DpGjYCrP.cjs.map