import { defineMessages } from '@vintl/vintl'

export const commonMessages = defineMessages({
	affiliateLinksButton: {
		id: 'button.affiliate-links',
		defaultMessage: 'Affiliate links',
	},
	analyticsButton: {
		id: 'button.analytics',
		defaultMessage: 'Analytics',
	},
	betaRelease: {
		id: 'badge.beta-release',
		defaultMessage: 'Beta Release',
	},
	beta: {
		id: 'badge.beta',
		defaultMessage: 'Beta',
	},
	allProjectType: {
		id: 'project-type.all',
		defaultMessage: 'All',
	},
	backButton: {
		id: 'button.back',
		defaultMessage: 'Back',
	},
	cancelButton: {
		id: 'button.cancel',
		defaultMessage: 'Cancel',
	},
	clearButton: {
		id: 'button.clear',
		defaultMessage: 'Clear',
	},
	closeButton: {
		id: 'button.close',
		defaultMessage: 'Close',
	},
	changesSavedLabel: {
		id: 'label.changes-saved',
		defaultMessage: 'Changes saved',
	},
	collectionsLabel: {
		id: 'label.collections',
		defaultMessage: 'Collections',
	},
	continueButton: {
		id: 'button.continue',
		defaultMessage: 'Continue',
	},
	copyIdButton: {
		id: 'button.copy-id',
		defaultMessage: 'Copy ID',
	},
	copyPermalinkButton: {
		id: 'button.copy-permalink',
		defaultMessage: 'Copy permanent link',
	},
	createAProjectButton: {
		id: 'button.create-a-project',
		defaultMessage: 'Create a project',
	},
	createdAgoLabel: {
		id: 'label.created-ago',
		defaultMessage: 'Created {ago}',
	},
	dashboardLabel: {
		id: 'label.dashboard',
		defaultMessage: 'Dashboard',
	},
	dateAtTimeTooltip: {
		id: 'tooltip.date-at-time',
		defaultMessage: '{date, date, long} at {time, time, short}',
	},
	deleteLabel: {
		id: 'label.delete',
		defaultMessage: 'Delete',
	},
	descriptionLabel: {
		id: 'label.description',
		defaultMessage: 'Description',
	},
	downloadButton: {
		id: 'button.download',
		defaultMessage: 'Download',
	},
	downloadingButton: {
		id: 'button.downloading',
		defaultMessage: 'Downloading',
	},
	editButton: {
		id: 'button.edit',
		defaultMessage: 'Edit',
	},
	errorLabel: {
		id: 'label.error',
		defaultMessage: 'Error',
	},
	errorNotificationTitle: {
		id: 'notification.error.title',
		defaultMessage: 'An error occurred',
	},
	followButton: {
		id: 'button.follow',
		defaultMessage: 'Follow',
	},
	followedProjectsLabel: {
		id: 'label.followed-projects',
		defaultMessage: 'Followed projects',
	},
	galleryInputView: {
		id: 'input.view.gallery',
		defaultMessage: 'Gallery view',
	},
	gridInputView: {
		id: 'input.view.grid',
		defaultMessage: 'Grid view',
	},
	listInputView: {
		id: 'input.view.list',
		defaultMessage: 'Rows view',
	},
	loadingLabel: {
		id: 'label.loading',
		defaultMessage: 'Loading...',
	},
	moderationLabel: {
		id: 'label.moderation',
		defaultMessage: 'Moderation',
	},
	moreOptionsButton: {
		id: 'button.more-options',
		defaultMessage: 'More options',
	},
	newBadge: {
		id: 'badge.new',
		defaultMessage: 'New',
	},
	nextButton: {
		id: 'button.next',
		defaultMessage: 'Next',
	},
	notificationsLabel: {
		id: 'label.notifications',
		defaultMessage: 'Notifications',
	},
	openFolderButton: {
		id: 'button.open-folder',
		defaultMessage: 'Open folder',
	},
	orLabel: {
		id: 'label.or',
		defaultMessage: 'or',
	},
	passwordLabel: {
		id: 'label.password',
		defaultMessage: 'Password',
	},
	paymentMethodCardDisplay: {
		id: 'omorphia.component.purchase_modal.payment_method_card_display',
		defaultMessage: '{card_brand} ending in {last_four}',
	},
	playButton: {
		id: 'button.play',
		defaultMessage: 'Play',
	},
	playedLabel: {
		id: 'label.played',
		defaultMessage: 'Played {time}',
	},
	privateLabel: {
		id: 'collection.label.private',
		defaultMessage: 'Private',
	},
	publicLabel: {
		id: 'label.public',
		defaultMessage: 'Public',
	},
	refreshButton: {
		id: 'button.refresh',
		defaultMessage: 'Refresh',
	},
	rejectedLabel: {
		id: 'label.rejected',
		defaultMessage: 'Rejected',
	},
	removeButton: {
		id: 'button.remove',
		defaultMessage: 'Remove',
	},
	removeImageButton: {
		id: 'button.remove-image',
		defaultMessage: 'Remove image',
	},
	reportButton: {
		id: 'button.report',
		defaultMessage: 'Report',
	},
	resetButton: {
		id: 'button.reset',
		defaultMessage: 'Reset',
	},
	saveButton: {
		id: 'button.save',
		defaultMessage: 'Save',
	},
	saveChangesButton: {
		id: 'button.save-changes',
		defaultMessage: 'Save changes',
	},
	savedLabel: {
		id: 'label.saved',
		defaultMessage: 'Saved',
	},
	savingButton: {
		id: 'button.saving',
		defaultMessage: 'Saving',
	},
	scopesLabel: {
		id: 'label.scopes',
		defaultMessage: 'Scopes',
	},
	searchPlaceholder: {
		id: 'input.search.placeholder',
		defaultMessage: 'Search...',
	},
	serverLabel: {
		id: 'label.server',
		defaultMessage: 'Server',
	},
	serversLabel: {
		id: 'label.servers',
		defaultMessage: 'Servers',
	},
	settingsLabel: {
		id: 'label.settings',
		defaultMessage: 'Settings',
	},
	signInButton: {
		id: 'button.sign-in',
		defaultMessage: 'Sign in',
	},
	signOutButton: {
		id: 'button.sign-out',
		defaultMessage: 'Sign out',
	},
	signUpButton: {
		id: 'button.sign-up',
		defaultMessage: 'Sign up',
	},
	singleplayerLabel: {
		id: 'label.singleplayer',
		defaultMessage: 'Singleplayer',
	},
	stopButton: {
		id: 'button.stop',
		defaultMessage: 'Stop',
	},
	titleLabel: {
		id: 'label.title',
		defaultMessage: 'Title',
	},
	unfollowButton: {
		id: 'button.unfollow',
		defaultMessage: 'Unfollow',
	},
	unlistedLabel: {
		id: 'label.unlisted',
		defaultMessage: 'Unlisted',
	},
	uploadImageButton: {
		id: 'button.upload-image',
		defaultMessage: 'Upload image',
	},
	visibilityLabel: {
		id: 'label.visibility',
		defaultMessage: 'Visibility',
	},
	visitYourProfile: {
		id: 'label.visit-your-profile',
		defaultMessage: 'Visit your profile',
	},
	maxButton: {
		id: 'button.max',
		defaultMessage: 'Max',
	},
})

export const formFieldLabels = defineMessages({
	email: {
		id: 'form.label.email',
		defaultMessage: 'Email',
	},
	firstName: {
		id: 'form.label.first-name',
		defaultMessage: 'First name',
	},
	lastName: {
		id: 'form.label.last-name',
		defaultMessage: 'Last name',
	},
	dateOfBirth: {
		id: 'form.label.date-of-birth',
		defaultMessage: 'Date of birth',
	},
	businessName: {
		id: 'form.label.business-name',
		defaultMessage: 'Business name',
	},
	addressLine: {
		id: 'form.label.address-line',
		defaultMessage: 'Address line',
	},
	addressLine2: {
		id: 'form.label.address-line-2',
		defaultMessage: 'Address line 2 (optional)',
	},
	city: {
		id: 'form.label.city',
		defaultMessage: 'City',
	},
	stateProvince: {
		id: 'form.label.state-province',
		defaultMessage: 'State/province',
	},
	postalCode: {
		id: 'form.label.postal-code',
		defaultMessage: 'Postal code/ZIP code',
	},
	country: {
		id: 'form.label.country',
		defaultMessage: 'Country',
	},
	bankName: {
		id: 'form.label.bank-name',
		defaultMessage: 'Bank name',
	},
	amount: {
		id: 'form.label.amount',
		defaultMessage: 'Amount',
	},
})

export const formFieldPlaceholders = defineMessages({
	emailPlaceholder: {
		id: 'form.placeholder.email',
		defaultMessage: 'Enter email address',
	},
	firstNamePlaceholder: {
		id: 'form.placeholder.first-name',
		defaultMessage: 'Enter first name',
	},
	lastNamePlaceholder: {
		id: 'form.placeholder.last-name',
		defaultMessage: 'Enter last name',
	},
	businessNamePlaceholder: {
		id: 'form.placeholder.business-name',
		defaultMessage: 'Enter business name',
	},
	addressPlaceholder: {
		id: 'form.placeholder.address',
		defaultMessage: 'Enter address',
	},
	address2Placeholder: {
		id: 'form.placeholder.address-2',
		defaultMessage: 'Apartment, suite, etc.',
	},
	cityPlaceholder: {
		id: 'form.placeholder.city',
		defaultMessage: 'Enter city',
	},
	statePlaceholder: {
		id: 'form.placeholder.state',
		defaultMessage: 'Enter state/province',
	},
	postalCodePlaceholder: {
		id: 'form.placeholder.postal-code',
		defaultMessage: 'Enter postal code',
	},
	countryPlaceholder: {
		id: 'form.placeholder.country',
		defaultMessage: 'Select country',
	},
	bankNamePlaceholder: {
		id: 'form.placeholder.bank-name',
		defaultMessage: 'Enter bank name',
	},
	bankNamePlaceholderDropdown: {
		id: 'form.placeholder.bank-name-dropdown',
		defaultMessage: 'Select bank name',
	},
	amountPlaceholder: {
		id: 'form.placeholder.amount',
		defaultMessage: 'Enter amount',
	},
})

export const financialMessages = defineMessages({
	available: {
		id: 'label.available',
		defaultMessage: '{amount} available.',
	},
	rewardsProgramTermsAgreement: {
		id: 'label.rewards-program-terms-agreement',
		defaultMessage: 'I agree to the <terms-link>Rewards Program Terms</terms-link>',
	},
})

export const commonProjectTypeCategoryMessages = defineMessages({
	datapack: {
		id: 'project-type.datapack.category',
		defaultMessage: 'Data Packs',
	},
	mod: {
		id: 'project-type.mod.category',
		defaultMessage: 'Mods',
	},
	modpack: {
		id: 'project-type.modpack.category',
		defaultMessage: 'Modpacks',
	},
	plugin: {
		id: 'project-type.plugin.category',
		defaultMessage: 'Plugins',
	},
	resourcepack: {
		id: 'project-type.resourcepack.category',
		defaultMessage: 'Resource Packs',
	},
	shader: {
		id: 'project-type.shader.category',
		defaultMessage: 'Shaders',
	},
})

export const commonProjectTypeTitleMessages = defineMessages({
	datapack: {
		id: 'project-type.datapack.capital',
		defaultMessage: '{count, plural, one {Data Pack} other {Data Packs}}',
	},
	mod: {
		id: 'project-type.mod.capital',
		defaultMessage: '{count, plural, one {Mod} other {Mods}}',
	},
	modpack: {
		id: 'project-type.modpack.capital',
		defaultMessage: '{count, plural, one {Modpack} other {Modpacks}}',
	},
	plugin: {
		id: 'project-type.plugin.capital',
		defaultMessage: '{count, plural, one {Plugin} other {Plugins}}',
	},
	resourcepack: {
		id: 'project-type.resourcepack.capital',
		defaultMessage: '{count, plural, one {Resource Pack} other {Resource Packs}}',
	},
	shader: {
		id: 'project-type.shader.capital',
		defaultMessage: '{count, plural, one {Shader} other {Shaders}}',
	},
})

export const commonProjectTypeSentenceMessages = defineMessages({
	datapack: {
		id: 'project-type.datapack.lowercase',
		defaultMessage: '{count, plural, one {data pack} other {data packs}}',
	},
	mod: {
		id: 'project-type.mod.lowercase',
		defaultMessage: '{count, plural, one {mod} other {mods}}',
	},
	modpack: {
		id: 'project-type.modpack.lowercase',
		defaultMessage: '{count, plural, one {modpack} other {modpacks}}',
	},
	plugin: {
		id: 'project-type.plugin.lowercase',
		defaultMessage: '{count, plural, one {plugin} other {plugins}}',
	},
	resourcepack: {
		id: 'project-type.resourcepack.lowercase',
		defaultMessage: '{count, plural, one {resource pack} other {resource packs}}',
	},
	shader: {
		id: 'project-type.shader.lowercase',
		defaultMessage: '{count, plural, one {shader} other {shaders}}',
	},
})

export const commonSettingsMessages = defineMessages({
	account: {
		id: 'settings.account.title',
		defaultMessage: 'Account and security',
	},
	appearance: {
		id: 'settings.appearance.title',
		defaultMessage: 'Appearance',
	},
	applications: {
		id: 'settings.applications.title',
		defaultMessage: 'Your applications',
	},
	authorizedApps: {
		id: 'settings.authorized-apps.title',
		defaultMessage: 'Authorized apps',
	},
	billing: {
		id: 'settings.billing.title',
		defaultMessage: 'Billing and subscriptions',
	},
	language: {
		id: 'settings.language.title',
		defaultMessage: 'Language',
	},
	pats: {
		id: 'settings.pats.title',
		defaultMessage: 'Personal access tokens',
	},
	profile: {
		id: 'settings.profile.title',
		defaultMessage: 'Public profile',
	},
	sessions: {
		id: 'settings.sessions.title',
		defaultMessage: 'Sessions',
	},
})

export const commonProjectSettingsMessages = defineMessages({
	analytics: {
		id: 'project.settings.analytics.title',
		defaultMessage: 'Analytics',
	},
	description: {
		id: 'project.settings.description.title',
		defaultMessage: 'Description',
	},
	environment: {
		id: 'project.settings.environment.title',
		defaultMessage: 'Environment',
	},
	gallery: {
		id: 'project.settings.gallery.title',
		defaultMessage: 'Gallery',
	},
	general: {
		id: 'project.settings.general.title',
		defaultMessage: 'General',
	},
	license: {
		id: 'project.settings.license.title',
		defaultMessage: 'License',
	},
	links: {
		id: 'project.settings.links.title',
		defaultMessage: 'Links',
	},
	members: {
		id: 'project.settings.members.title',
		defaultMessage: 'Members',
	},
	noPermissionDescription: {
		id: 'project.settings.notice.no-permission.description',
		defaultMessage: `You don't have permission to edit this.`,
	},
	noPermissionTitle: {
		id: 'project.settings.notice.no-permission.title',
		defaultMessage: 'No permission',
	},
	tags: {
		id: 'project.settings.tags.title',
		defaultMessage: 'Tags',
	},
	upload: {
		id: 'project.settings.upload.title',
		defaultMessage: 'Upload',
	},
	versions: {
		id: 'project.settings.versions.title',
		defaultMessage: 'Versions',
	},
	view: {
		id: 'project.settings.view.title',
		defaultMessage: 'View',
	},
})

export const paymentMethodMessages = defineMessages({
	amazon_pay: {
		id: 'omorphia.component.purchase_modal.payment_method_type.amazon_pay',
		defaultMessage: 'Amazon Pay',
	},
	amex: {
		id: 'omorphia.component.purchase_modal.payment_method_type.amex',
		defaultMessage: 'American Express',
	},
	cashapp: {
		id: 'omorphia.component.purchase_modal.payment_method_type.cashapp',
		defaultMessage: 'Cash App',
	},
	diners: {
		id: 'omorphia.component.purchase_modal.payment_method_type.diners',
		defaultMessage: 'Diners Club',
	},
	discover: {
		id: 'omorphia.component.purchase_modal.payment_method_type.discover',
		defaultMessage: 'Discover',
	},
	eftpos: {
		id: 'omorphia.component.purchase_modal.payment_method_type.eftpos',
		defaultMessage: 'EFTPOS',
	},
	jcb: {
		id: 'omorphia.component.purchase_modal.payment_method_type.jcb',
		defaultMessage: 'JCB',
	},
	mastercard: {
		id: 'omorphia.component.purchase_modal.payment_method_type.mastercard',
		defaultMessage: 'MasterCard',
	},
	paypal: {
		id: 'omorphia.component.purchase_modal.payment_method_type.paypal',
		defaultMessage: 'PayPal',
	},
	paypalInternational: {
		id: 'omorphia.component.purchase_modal.payment_method_type.paypal_international',
		defaultMessage: 'PayPal International',
	},
	paypalUS: {
		id: 'omorphia.component.purchase_modal.payment_method_type.paypal',
		defaultMessage: 'PayPal',
	},
	unionpay: {
		id: 'omorphia.component.purchase_modal.payment_method_type.unionpay',
		defaultMessage: 'UnionPay',
	},
	unknown: {
		id: 'omorphia.component.purchase_modal.payment_method_type.unknown',
		defaultMessage: 'Unknown payment method',
	},
	visa: {
		id: 'omorphia.component.purchase_modal.payment_method_type.visa',
		defaultMessage: 'Visa',
	},
	venmo: {
		id: 'payment-method.venmo',
		defaultMessage: 'Venmo',
	},
	virtualVisa: {
		id: 'payment-method.virtual-visa',
		defaultMessage: 'Virtual Visa',
	},
	virtualVisaPlural: {
		id: 'payment-method.virtual-visa-plural',
		defaultMessage: 'Virtual Visas',
	},
	giftCard: {
		id: 'payment-method.gift-card',
		defaultMessage: 'Gift card',
	},
	giftCardPlural: {
		id: 'payment-method.gift-card-plural',
		defaultMessage: 'Gift cards',
	},
	charity: {
		id: 'payment-method.charity',
		defaultMessage: 'Charity',
	},
	charityPlural: {
		id: 'payment-method.charity-plural',
		defaultMessage: 'Charities',
	},
})
