import { data as permissionsTestData } from './data/permissions-test.data.js';
import type {
	DocumentItemResponseModel,
	DocumentResponseModel,
	DocumentTreeItemResponseModel,
} from '@umbraco-cms/backoffice/external/backend-api';
import { DocumentVariantStateModel } from '@umbraco-cms/backoffice/external/backend-api';

export type UmbMockDocumentModel = DocumentResponseModel & DocumentTreeItemResponseModel & DocumentItemResponseModel;

export const data: Array<UmbMockDocumentModel> = [
	{
		ancestors: [],
		template: null,
		id: 'the-simplest-document-id',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: 'the-simplest-document-type-id',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		variants: [
			{
				state: DocumentVariantStateModel.DRAFT,
				publishDate: '2023-02-06T15:32:24.957009',
				culture: 'en-US',
				segment: null,
				name: 'The Simplest Document',
				createDate: '2023-02-06T15:32:05.350038',
				updateDate: '2023-02-06T15:32:24.957009',
				id: 'the-simplest-document-id',
				flags: [],
			},
		],
		values: [
			{
				editorAlias: 'Umbraco.TextBox',
				alias: 'prop1',
				culture: null,
				segment: null,
				value: 'default value here',
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'all-property-editors-document-id',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: 'all-property-editors-document-type-id',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		values: [
			{
				editorAlias: 'Umbraco.RichText',
				alias: 'richTextEditor',
				culture: 'en-US',
				segment: null,
				value: {
					blocks: {},
					markup: `
						<p>
							Some value for the RTE with an <a href="https://google.com">external link</a> and an <a type="document" href="/{localLink:c05da24d-7740-447b-9cdc-bd8ce2172e38}">internal link</a> foo foo
						</p>
						<div class="umb-macro-holder TestMacro umb-macro-mce_1"><!-- <?UMBRACO_MACRO macroAlias="TestMacro" /> --><ins>Macro alias: <strong>TestMacro</strong></ins></div>
						<p>The following tests the embed plugin:</p>
						<div class="umb-embed-holder" data-embed-height="240" data-embed-width="360" data-embed-constrain="false"><iframe width="360" height="240" src="https://www.youtube.com/embed/QRIWz9SotY4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" title="Sleep Token - The Summoning"></iframe></div>
						<p>End of test content</p>
					`,
				},
			},
			{
				editorAlias: 'Umbraco.TextArea',
				alias: 'codeEditor',
				culture: null,
				segment: null,
				value: `<h1>Lorem ipsum dolor sit amet consectetuer adipiscing elit</h1>
<ul>
	<li>Lorem ipsum dolor sit amet consectetuer.</li>
	<li>Aenean commodo ligula eget dolor.</li>
	<li>Aenean massa cum sociis natoque penatibus.</li>
</ul>
<p>
	Lorem ipsum dolor sit amet, consectetuer adipiscing
	elit. Aenean commodo ligula eget dolor.
</p>
<p>
	<blockquote>
		Lorem ipsum dolor sit amet, consectetuer
		adipiscing elit. Aenean commodo ligula eget dolor.
		Aenean massa <strong>strong</strong>. Cum sociis
		natoque penatibus et magnis dis parturient montes,
		nascetur ridiculus mus. Donec quam felis, ultricies
		nec, pellentesque eu, pretium quis, sem. Nulla consequat
		massa quis enim. Donec pede justo, fringilla vel,
		aliquet nec, vulputate eget, arcu. In <em>em</em>
		enim justo, rhoncus ut, imperdiet a, venenatis vitae,
		justo. Nullam <a class="external ext" href="#">link</a>
		dictum felis eu pede mollis pretium.
	</blockquote>
</p>`,
			},
			{
				editorAlias: 'Umbraco.TextBox',
				alias: 'email',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.ColorPicker',
				alias: 'colorPicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.MultiNodeTreePicker',
				alias: 'contentPicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.ColorPicker.EyeDropper',
				alias: 'eyeDropper',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.MultiUrlPicker',
				alias: 'multiUrlPicker',
				culture: 'en-US',
				segment: null,
				value: [
					{
						name: undefined,
						published: undefined,
						queryString: undefined,
						target: undefined,
						trashed: undefined,
						udi: 'umb://document/c05da24d7740447b9cdcbd8ce2172e38',
						url: 'umb://document/c05da24d7740447b9cdcbd8ce2172e38',
					},
				],
			},
			{
				editorAlias: 'Umbraco.MultiUrlPicker',
				alias: 'multiUrlPicker',
				culture: 'da-dk',
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.MultiNodeTreePicker',
				alias: 'multiNodeTreePicker',
				culture: null,
				segment: null,
				value:
					'all-property-editors-document-id,c05da24d-7740-447b-9cdc-bd8ce2172e38,fd56a0b5-01a0-4da2-b428-52773bfa9cc4',
			},
			{
				editorAlias: 'Umbraco.DateTime',
				alias: 'datePicker',
				culture: null,
				segment: null,
				value: '2023-12-24',
			},
			{
				editorAlias: 'Umbraco.DateTime',
				alias: 'datePickerTime',
				culture: null,
				segment: null,
				value: '2023-12-24 14:52',
			},
			{
				editorAlias: 'Umbraco.DateTime',
				alias: 'time',
				culture: null,
				segment: null,
				value: '14:52:00',
			},
			{
				editorAlias: 'Umbraco.EmailAddress',
				alias: 'email',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.TextBox',
				alias: 'textBox',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.DropDown.Flexible',
				alias: 'dropdown',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.DropDown.Flexible',
				alias: 'dropdownMultiple',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.TextArea',
				alias: 'textArea',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.Slider',
				alias: 'slider',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.TrueFalse',
				alias: 'toggle',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.Tags',
				alias: 'tags',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.MarkdownEditor',
				alias: 'markdownEditor',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.RadioButtonList',
				alias: 'radioButtonList',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.CheckBoxList',
				alias: 'checkboxList',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.BlockList',
				alias: 'blockList',
				culture: null,
				segment: null,
				value: {
					layout: {
						'Umbraco.BlockList': [
							{
								contentKey: '1234',
								settingsKey: '5678',
							},
						],
					},
					contentData: [
						{
							key: '1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world 123',
								},
							],
						},
					],
					settingsData: [
						{
							key: '5678',
							contentTypeKey: 'all-property-editors-document-type-id',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world 123',
								},
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'textBox',
									culture: null,
									segment: null,
									value: 'Hello world 123',
								},
								{
									editorAlias: 'Umbraco.BlockList',
									alias: 'blockList',
									culture: null,
									segment: null,
									value: {
										layout: {
											'Umbraco.BlockList': [
												{
													contentKey: '1234b',
													settingsKey: '5678b',
												},
											],
										},
										contentData: [
											{
												key: '1234b',
												contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
												values: [
													{
														editorAlias: 'Umbraco.TextBox',
														alias: 'elementProperty',
														culture: null,
														segment: null,
														value: 'Hello world 123',
													},
												],
											},
										],
										settingsData: [
											{
												key: '5678b',
												contentTypeKey: 'all-property-editors-document-type-id',
												elementProperty: 'Hello world',
												values: [
													{
														editorAlias: 'Umbraco.TextBox',
														alias: 'elementProperty',
														culture: null,
														segment: null,
														value: 'Hello world 123',
													},
												],
											},
										],
									},
								},
							],
						},
					],
				},
			},
			{
				editorAlias: 'Umbraco.MediaPicker3',
				alias: 'mediaPicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.ImageCropper',
				alias: 'imageCropper',
				culture: null,
				segment: null,
				value: {
					focalPoint: { left: 0.5, top: 0.5 },
					src: 'data:image/png;base64,[encoded data, 77548 characters]',
					crops: [
						{
							alias: 'Almost Bot Left',
							width: 1000,
							height: 1000,
							coordinates: {
								x1: 0.04113924050632909,
								x2: 0.3120537974683548,
								y1: 0.32154746835443077,
								y2: 0.031645569620253146,
							},
						},
						{
							alias: 'Almost top right',
							width: 1000,
							height: 1000,
							coordinates: {
								x1: 0.3086962025316458,
								x2: 0.04449683544303807,
								y1: 0.04746835443037985,
								y2: 0.305724683544304,
							},
						},
						{
							alias: 'TopLeft',
							width: 1000,
							height: 1000,
							coordinates: {
								x1: 0,
								x2: 0.5,
								y1: 0,
								y2: 0.5,
							},
						},
						{
							alias: 'bottomRight',
							width: 1000,
							height: 1000,
							coordinates: {
								x1: 0.5,
								x2: 0,
								y1: 0.5,
								y2: 0,
							},
						},
						{
							alias: 'Gigantic crop',
							width: 40200,
							height: 104000,
						},
						{
							alias: 'Desktop',
							width: 1920,
							height: 1080,
						},
						{
							alias: 'Banner',
							width: 1920,
							height: 300,
						},
						{
							alias: 'Tablet',
							width: 600,
							height: 800,
						},
						{
							alias: 'Mobile',
							width: 400,
							height: 800,
						},
					],
				},
			},
			{
				editorAlias: 'Umbraco.UploadField',
				alias: 'uploadField',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.BlockGrid',
				alias: 'blockGrid',
				culture: null,
				segment: null,
				value: {
					layout: {
						'Umbraco.BlockGrid': [
							{
								contentKey: '1234',
								settingsKey: '5678',
								columnSpan: 12,
								areas: [
									{
										key: 'area1_key',
										items: [
											{
												contentKey: 'a1234',
												settingsKey: 'a5678',
												columnSpan: 3,
												rowSpan: 2,
											},
											{
												contentKey: 'c1234',
												columnSpan: 3,
											},
										],
									},
									{
										key: 'area2_key',
										items: [
											{
												contentKey: 'b1234',
												settingsKey: 'b5678',
												columnSpan: 6,
												areas: [],
											},
										],
									},
								],
							},
						],
					},
					contentData: [
						{
							key: '1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world 123',
								},
							],
						},
						{
							key: 'a1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							elementProperty: 'Hello world from area 1',
						},
						{
							key: 'b1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							elementProperty: 'Hello world from area 2',
						},
						{
							key: 'c1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							elementProperty: 'Hello CCC from area 1',
						},
					],
					settingsData: [
						{
							key: '5678',
							contentTypeKey: 'all-property-editors-document-type-id',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world 123',
								},
							],
						},
						{
							key: 'a5678',
							contentTypeKey: 'all-property-editors-document-type-id',
							elementProperty: 'Hello world from area 1 settings',
						},
						{
							key: 'b5678',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							elementProperty: 'Hello world from area 2 settings',
						},
					],
				},
			},
			{
				editorAlias: 'Umbraco.BlockGrid',
				alias: 'blockGrid',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.Label',
				alias: 'label',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.Integer',
				alias: 'integer',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.Decimal',
				alias: 'decimal',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.MemberPicker',
				alias: 'memberPicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.MemberGroupPicker',
				alias: 'memberGroupPicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.UserPicker',
				alias: 'userPicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.DateOnly',
				alias: 'dateOnly',
				culture: null,
				segment: null,
				value: { date: '2025-09-19' },
			},
			{
				editorAlias: 'Umbraco.TimeOnly',
				alias: 'timeOnly',
				culture: null,
				segment: null,
				value: { date: '16:30:00' },
			},
			{
				editorAlias: 'Umbraco.DateTimeUnspecified',
				alias: 'dateTimeUnspecified',
				culture: null,
				segment: null,
				value: { date: '2025-09-19T16:30:00' },
			},
			{
				editorAlias: 'Umbraco.DateTimeWithTimeZone',
				alias: 'dateTimeWithTimeZone',
				culture: null,
				segment: null,
				value: { date: '2025-09-19T16:30:00+02:00', timeZone: 'Europe/Copenhagen' },
			},
		],
		variants: [
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'en-US',
				segment: null,
				name: 'All properties',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'all-properties',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'da-dk',
				segment: null,
				name: 'Alle redigeringsfelter',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'alle-redigeringsfelter',
				flags: [],
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'c05da24d-7740-447b-9cdc-bd8ce2172e38',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: '29643452-cff9-47f2-98cd-7de4b6807681',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		values: [
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'masterText',
				value: 'i have a master text',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'pageTitle',
				value: 'with a page title',
			},
			{
				editorAlias: 'Umbraco.TextArea',
				culture: null,
				segment: null,
				alias: 'blogPostText',
				value: 'My first blog post',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'en-US',
				segment: null,
				alias: 'blogTextStringUnderMasterTab',
				value: 'in the master tab',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'en-US',
				segment: null,
				alias: 'blogTextStringUnderGroupUnderMasterTab',
				value: 'which is under another group in the tab',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'da-dk',
				segment: null,
				alias: 'blogTextStringUnderMasterTab',
				value: 'på master dokument tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'da-dk',
				segment: null,
				alias: 'blogTextStringUnderGroupUnderMasterTab',
				value: 'denne er under en anden gruppe i tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'no-no',
				segment: null,
				alias: 'blogTextStringUnderMasterTab',
				value: 'Norsk på master dokument tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'no-no',
				segment: null,
				alias: 'blogTextStringUnderGroupUnderMasterTab',
				value: 'Norsk denne er under en anden gruppe i tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'localBlogTabString',
				value: '1234567',
			},
		],
		variants: [
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'en-US',
				segment: null,
				name: 'Article in english',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'article-in-english',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'da',
				segment: null,
				name: 'Artikel på Dansk',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'artikel-pa-dansk',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'da',
				segment: 'vip',
				name: 'VIP: Artikel på Dansk',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'artikel-pa-dansk-vip',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: null,
				segment: 'vip-invariant',
				name: 'Invariant VIP Segmented Article',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'invariant-vip-segmented-article',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: null,
				segment: 'generic',
				name: 'Generic VIP Segmented Article',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'generic-vip-segmented-article',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'no-no',
				segment: null,
				name: 'Artikel på Norsk',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'artikel-pa-norsk',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED_PENDING_CHANGES,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'es-es',
				segment: null,
				name: 'Articulo en ingles',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'articulo-en-ingles',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.NOT_CREATED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'pl-pl',
				segment: null,
				name: 'Artykuł w języku polskim',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'artykul-w-jezyku-polskim',
				flags: [],
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'fd56a0b5-01a0-4da2-b428-52773bfa9cc4',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: '29643452-cff9-47f2-98cd-7de4b6807681',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		values: [
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'masterText',
				value: 'i have a master text B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'pageTitle',
				value: 'with a page title B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'blogPostText',
				value: 'My first blog post B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'en-US',
				segment: null,
				alias: 'blogTextStringUnderMasterTab',
				value: 'in the master tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'en-US',
				segment: null,
				alias: 'blogTextStringUnderGroupUnderMasterTab',
				value: 'which is under another group in the tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'da-dk',
				segment: null,
				alias: 'blogTextStringUnderMasterTab',
				value: 'på master dokument tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: 'da-dk',
				segment: null,
				alias: 'blogTextStringUnderGroupUnderMasterTab',
				value: 'denne er under en anden gruppe i tab B',
			},
			{
				editorAlias: 'Umbraco.TextBox',
				culture: null,
				segment: null,
				alias: 'localBlogTabString',
				value: '1234567890',
			},
		],
		variants: [
			{
				state: DocumentVariantStateModel.DRAFT,
				publishDate: '2023-02-06T15:32:24.957009',
				culture: 'en-US',
				segment: null,
				name: 'Blog post B',
				createDate: '2023-02-06T15:32:05.350038',
				updateDate: '2023-02-06T15:32:24.957009',
				id: 'blog-post-b',
				flags: [],
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'simple-document-id',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: 'simple-document-type-id',
			icon: 'icon-document',
			collection: { id: 'dt-collectionView' },
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		variants: [
			{
				state: DocumentVariantStateModel.DRAFT,
				publishDate: '2023-02-06T15:32:24.957009',
				culture: 'en-US',
				segment: null,
				name: 'Simple Document',
				createDate: '2023-02-06T15:32:05.350038',
				updateDate: '2023-02-06T15:32:24.957009',
				id: 'simple-document',
				flags: [],
			},
		],
		values: [
			{
				editorAlias: 'Umbraco.MultiNodeTreePicker',
				alias: 'multiNodeTreePicker',
				culture: null,
				segment: null,
				value: undefined,
			},
			{
				editorAlias: 'Umbraco.ListView',
				alias: 'listView',
				culture: null,
				segment: null,
				value: undefined,
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'all-rtes-id',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: 'all-rtes-document-type-id',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		variants: [
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:32:24.957009',
				culture: 'en-US',
				segment: null,
				name: 'Rich Text Editor',
				createDate: '2023-02-06T15:32:05.350038',
				updateDate: '2023-02-06T15:32:24.957009',
				id: 'rich-text-editor',
				flags: [],
			},
		],
		values: [
			{
				alias: 'tiptap',
				editorAlias: 'Umbraco.RichText',
				culture: null,
				segment: null,
				value: {
					blocks: {
						layout: {},
						contentData: [],
						settingsData: [],
						expose: [],
					},
					markup: `
<p><a id="anchor"></a> Here is a link for <a target="_blank" data-router-slot="disabled" href="https://gist.github.com/leekelleher/9490718" type="external">all HTML tags</a>.</p>

<p>Some value for the RTE with an <a href="https://google.com">external link</a> and an <a type="document" href="/{localLink:c05da24d-7740-447b-9cdc-bd8ce2172e38}">internal link</a> foo foo</p>

<p>The following tests the embed plugin:</p>
<p><span class="umb-embed-holder" data-embed-height="240" data-embed-width="360" data-embed-constrain="false" data-embed-url="https://www.youtube.com/watch?v=QRIWz9SotY4"><iframe width="360" height="240" src="https://www.youtube.com/embed/QRIWz9SotY4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" title="Deep dive into Rich Text Editor"></iframe></span></p>

<p><span id="foo">Some</span> value for the RTE with an <a target="" data-router-slot="disabled" href="https://google.com" type="external">external link</a> and an <a target="" data-router-slot="disabled" href="/{localLink:c05da24d-7740-447b-9cdc-bd8ce2172e38}" type="document">internal link</a>.</p>

<div data-foo-bar="123"><span>This is a plain old span tag.</span> <span style="color: red;">Hello </span><span style="color: blue;">world</span><span style="color: red;">.</span></div>

<table style="min-width: 50px"><colgroup><col style="min-width: 25px"><col style="min-width: 25px"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p> Version</p></th><th colspan="1" rowspan="1"><p>Date</p></th></tr><tr><td colspan="1" rowspan="1"><p>15.3</p></td><td colspan="1" rowspan="1"><p>2025-03-20</p></td></tr><tr><td colspan="1" rowspan="1"><p>16.0</p></td><td colspan="1" rowspan="1"><p>2025-06-12</p></td></tr><tr><td colspan="1" rowspan="1"><p>17.0</p></td><td colspan="1" rowspan="1"><p>2025-11-27</p></td></tr></tbody></table>

<p><img src="/umbraco/backoffice/assets/installer-illustration.svg" alt="Installer illustration" width="384" height="228" loading="lazy"></p>

<div class="umb-macro-holder"><!-- <?UMBRACO_MACRO macroAlias="TestMacro" /> --><ins>Macro alias: <strong>TestMacro</strong></ins></div>

<p>End of test content</p>`,
				},
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'block-editors-document-id',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: 'block-editors-document-type-id',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		values: [
			{
				editorAlias: 'Umbraco.BlockList',
				alias: 'blockList',
				culture: null,
				segment: null,
				value: {
					layout: {
						'Umbraco.BlockList': [
							{
								contentKey: '1234',
								settingsKey: '5678',
							},
							{
								contentKey: '1234-headline',
								settingsKey: '1234-headline-settings',
							},
						],
					},
					contentData: [
						{
							key: '1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world',
								},
							],
						},
						{
							key: '1234-headline',
							contentTypeKey: 'headline-umbraco-demo-block-id',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'headline',
									culture: null,
									segment: null,
									value: 'Hello world',
								},
							],
						},
					],
					settingsData: [
						{
							key: '5678',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Im in settings',
								},
							],
						},
						{
							key: '1234-headline-settings',
							contentTypeKey: 'headline-settings-demo-block-id',
							values: [],
						},
					],
					expose: [
						{
							contentKey: '1234',
							culture: null,
							segment: null,
						},
					],
				},
			},
			{
				editorAlias: 'Umbraco.BlockGrid',
				alias: 'blockGrid',
				culture: null,
				segment: null,
				value: {
					layout: {
						'Umbraco.BlockGrid': [
							{
								contentKey: '1234',
								settingsKey: '5678',
								columnSpan: 12,
								areas: [
									{
										key: 'area1_key',
										items: [
											{
												contentKey: 'a1234',
												settingsKey: 'a5678',
												columnSpan: 3,
												rowSpan: 2,
											},
											{
												contentKey: 'c1234',
												columnSpan: 3,
											},
										],
									},
									{
										key: 'area2_key',
										items: [
											{
												contentKey: 'b1234',
												settingsKey: 'b5678',
												columnSpan: 6,
												areas: [],
											},
										],
									},
								],
							},
						],
					},
					contentData: [
						{
							key: '1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Im in settings',
								},
							],
						},
						{
							key: 'a1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world from area 1',
								},
							],
						},
						{
							key: 'b1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world from area 2',
								},
							],
						},
						{
							key: 'c1234',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello CCC from area 1',
								},
							],
						},
					],
					settingsData: [
						{
							key: '5678',
							contentTypeKey: 'all-property-editors-document-type-id',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world settings',
								},
							],
						},
						{
							key: 'a5678',
							contentTypeKey: 'all-property-editors-document-type-id',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world from area 1 settings',
								},
							],
						},
						{
							key: 'b5678',
							contentTypeKey: '4f68ba66-6fb2-4778-83b8-6ab4ca3a7c5c',
							values: [
								{
									editorAlias: 'Umbraco.TextBox',
									alias: 'elementProperty',
									culture: null,
									segment: null,
									value: 'Hello world from area 2 settings',
								},
							],
						},
					],
					expose: [
						{
							contentKey: '1234',
							culture: null,
							segment: null,
						},
					],
				},
			},
		],
		variants: [
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'en-US',
				segment: null,
				name: 'All Block Editors',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'all-block-editors',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:31:51.354764',
				culture: 'da-dk',
				segment: null,
				name: 'Alle blok redigeringer',
				createDate: '2023-02-06T15:31:46.876902',
				updateDate: '2023-02-06T15:31:51.354764',
				id: 'alle-blok-redigeringer',
				flags: [],
			},
		],
		flags: [],
	},
	{
		ancestors: [],
		template: null,
		id: 'forbidden',
		createDate: '2023-02-06T15:32:05.350038',
		parent: null,
		documentType: {
			id: 'the-simplest-document-type-id',
			icon: 'icon-document',
		},
		hasChildren: false,
		noAccess: false,
		isProtected: false,
		isTrashed: false,
		variants: [
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:32:24.957009',
				culture: 'en-US',
				segment: null,
				name: 'A forbidden document',
				createDate: '2023-02-06T15:32:05.350038',
				updateDate: '2023-02-06T15:32:24.957009',
				id: 'a-forbidden-document',
				flags: [],
			},
			{
				state: DocumentVariantStateModel.PUBLISHED,
				publishDate: '2023-02-06T15:32:24.957009',
				culture: 'da-dk',
				segment: null,
				name: 'Et utilgængeligt dokument',
				createDate: '2023-02-06T15:32:05.350038',
				updateDate: '2023-02-06T15:32:24.957009',
				id: 'et-utilgaengeligt-dokument',
				flags: [],
			},
		],
		values: [
			{
				editorAlias: 'Umbraco.TextBox',
				alias: 'prop1',
				culture: null,
				segment: null,
				value: 'default value here',
			},
		],
		flags: [],
	},
	...permissionsTestData,
];
