packages/inferencer/src/inferencers/chakra-ui/__tests__/__snapshots__/edit.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ChakraEditInferencer should match the snapshot 1`] = `
<DocumentFragment>
<div>
<div
class="css-1mdbftt"
>
<div
class="css-15izviv"
>
<div
class="css-gqssyb"
>
<div
class="chakra-stack css-9hjtr8"
>
<button
aria-label="back"
class="chakra-button css-p7mkev"
type="button"
>
<svg
aria-hidden="true"
class="tabler-icon tabler-icon-arrow-left "
fill="none"
focusable="false"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 12l14 0"
/>
<path
d="M5 12l6 6"
/>
<path
d="M5 12l6 -6"
/>
</svg>
</button>
<h3
class="chakra-heading refine-pageHeader-title css-0"
>
Edit Post
</h3>
</div>
</div>
<div
class="css-i08qke"
>
<div
class="css-oquf3a"
>
<a
href="/posts"
>
<button
class="chakra-button refine-list-button css-4xx2wk"
title=""
type="button"
>
<span
class="chakra-button__icon css-1wh2kri"
>
<svg
aria-hidden="true"
class="tabler-icon tabler-icon-list "
fill="none"
focusable="false"
height="20"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="20"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9 6l11 0"
/>
<path
d="M9 12l11 0"
/>
<path
d="M9 18l11 0"
/>
<path
d="M5 6l0 .01"
/>
<path
d="M5 12l0 .01"
/>
<path
d="M5 18l0 .01"
/>
</svg>
</span>
Posts
</button>
</a>
<button
class="chakra-button refine-refresh-button css-4xx2wk"
type="button"
>
<span
class="chakra-button__icon css-1wh2kri"
>
<svg
aria-hidden="true"
class="tabler-icon tabler-icon-refresh "
fill="none"
focusable="false"
height="20"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="20"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"
/>
<path
d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"
/>
</svg>
</span>
Refresh
</button>
</div>
</div>
</div>
<div
class="css-0"
>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r0:"
id="field-:r0:-label"
>
Id
</label>
<input
class="chakra-input css-0"
disabled=""
id="field-:r0:"
name="id"
type="number"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r1:"
id="field-:r1:-label"
>
Title
</label>
<input
class="chakra-input css-0"
id="field-:r1:"
name="title"
type="text"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r2:"
id="field-:r2:-label"
>
Slug
</label>
<input
class="chakra-input css-0"
id="field-:r2:"
name="slug"
type="text"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r3:"
id="field-:r3:-label"
>
Content
</label>
<input
class="chakra-input css-0"
id="field-:r3:"
name="content"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r4:"
id="field-:r4:-label"
>
Hit
</label>
<input
class="chakra-input css-0"
id="field-:r4:"
name="hit"
type="number"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r5:"
id="field-:r5:-label"
>
Category
</label>
<div
class="chakra-select__wrapper css-42b2qy"
>
<select
class="chakra-select css-1ik61og"
id="field-:r5:"
name="category.id"
>
<option
value=""
>
Select category
</option>
<option
value="16"
>
Numquam Saepe Illo
</option>
<option
value="7"
>
Sit Natus Voluptatibus
</option>
</select>
<div
class="chakra-select__icon-wrapper css-162mkon"
>
<svg
aria-hidden="true"
class="chakra-select__icon"
focusable="false"
role="presentation"
style="width: 1em; height: 1em; color: currentColor;"
viewBox="0 0 24 24"
>
<path
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r6:"
id="field-:r6:-label"
>
User
</label>
<div
class="chakra-select__wrapper css-42b2qy"
>
<select
class="chakra-select css-1ik61og"
id="field-:r6:"
name="user.id"
>
<option
value=""
>
Select user
</option>
<option
value="21"
>
Eriberto
</option>
<option
value="49"
>
Tressie
</option>
</select>
<div
class="chakra-select__icon-wrapper css-162mkon"
>
<svg
aria-hidden="true"
class="chakra-select__icon"
focusable="false"
role="presentation"
style="width: 1em; height: 1em; color: currentColor;"
viewBox="0 0 24 24"
>
<path
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r7:"
id="field-:r7:-label"
>
Status
</label>
<input
class="chakra-input css-0"
id="field-:r7:"
name="status"
type="text"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r8:"
id="field-:r8:-label"
>
Status Color
</label>
<input
class="chakra-input css-0"
id="field-:r8:"
name="status_color"
type="text"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:r9:"
id="field-:r9:-label"
>
Created At
</label>
<input
class="chakra-input css-0"
id="field-:r9:"
name="createdAt"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:ra:"
id="field-:ra:-label"
>
Published At
</label>
<input
class="chakra-input css-0"
id="field-:ra:"
name="publishedAt"
/>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:rb:"
id="field-:rb:-label"
>
Tags
</label>
<div
class="chakra-select__wrapper css-42b2qy"
>
<select
class="chakra-select css-1ik61og"
id="field-:rb:"
name="tags"
>
<option
value=""
>
Select tag
</option>
<option
value="5"
>
Error Eos Et
</option>
<option
value="9"
>
Nobis Et Ut
</option>
</select>
<div
class="chakra-select__icon-wrapper css-162mkon"
>
<svg
aria-hidden="true"
class="chakra-select__icon"
focusable="false"
role="presentation"
style="width: 1em; height: 1em; color: currentColor;"
viewBox="0 0 24 24"
>
<path
d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
<div
class="chakra-form-control css-h82jag"
role="group"
>
<label
class="chakra-form__label css-uvho5g"
for="field-:rc:"
id="field-:rc:-label"
>
Language
</label>
<input
class="chakra-input css-0"
id="field-:rc:"
name="language"
type="number"
/>
</div>
</div>
<div
class="css-e6thd7"
>
<button
class="chakra-button refine-save-button css-4xx2wk"
type="button"
>
<span
class="chakra-button__icon css-1wh2kri"
>
<svg
aria-hidden="true"
class="tabler-icon tabler-icon-device-floppy "
fill="none"
focusable="false"
height="20"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="20"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"
/>
<path
d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"
/>
<path
d="M14 4l0 4l-6 0l0 -4"
/>
</svg>
</span>
Save
</button>
</div>
</div>
</div>
<div
class="refine-inferencer--code-viewer"
style="position: sticky; bottom: 24px; padding-top: 24px; left: 0px; right: 0px; width: 100%; z-index: 10; display: flex; justify-content: center; transition: all 0.2s ease; opacity: 1; transform: translateY(0);"
>
<div
style="max-width: 1080px; padding: 20px; background-color: rgb(26, 26, 26); box-shadow: 0px 4px 16px -4px rgba(0, 0, 0, 0.5), 0px 8px 32px -8px rgba(0, 0, 0, 0.35); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; flex-direction: row; gap: 12px;"
>
<div
style="display: flex; align-items: flex-start; gap: 8px;"
>
<div>
<svg
fill="none"
height="20"
width="20"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10Zm0-15a1.25 1.25 0 1 0 0 2.5A1.25 1.25 0 0 0 10 5Zm0 10c.69 0 1.25-.56 1.25-1.25V10a1.25 1.25 0 1 0-2.5 0v3.75c0 .69.56 1.25 1.25 1.25Z"
fill="#0080FF"
fill-rule="evenodd"
/>
</svg>
</div>
<div
style="font-size: 14px; line-height: 20px; color: rgb(255, 255, 255);"
>
<p
style="padding: 0px; margin: 0px;"
>
Most of the page code is auto-generated by the
<span
style="text-decoration: underline;"
>
Inferencer
</span>
feature, based on your backend data structure.
</p>
<p
style="padding: 0px; margin: 0px;"
>
While this is an excellent way to experiment with refine,
<span
style="font-weight: 600;"
>
it's not intended to be used on production.
</span>
</p>
</div>
</div>
<div>
<button
style="appearance: none; padding: 10px 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: rgb(0, 128, 255); color: rgb(255, 255, 255); font-size: 14px; line-height: 20px; font-weight: 600; gap: 8px; cursor: pointer; transition: all 0.2s ease;"
>
<svg
fill="none"
height="16"
style="flex-shrink: 0;"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 2a1 1 0 0 1 0 2H4v8h8v-1a1 1 0 1 1 2 0v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1Z"
fill="currentColor"
/>
<path
d="M9 2a1 1 0 0 0 0 2h1.586L6.293 8.293a1 1 0 0 0 1.414 1.414L12 5.414V7a1 1 0 1 0 2 0V3a1 1 0 0 0-1-1H9Z"
fill="currentColor"
/>
</svg>
<span>
Show the auto-generated code
</span>
</button>
</div>
</div>
</div>
<div
class="refine-inferencer--code-viewer-modal"
style="position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 9999; background-color: rgba(0, 0, 0, 0.5); transition: all 0.2s ease; opacity: 0; pointer-events: none; display: flex; justify-content: center; align-items: center;"
>
<div
style="transform: scale(0) translateY(-200px); transition: all 0.25s cubic-bezier(.35,1.29,.81,1.08); transition-delay: 0.25; background-color: rgb(255, 255, 255); max-width: 640px; max-height: 720px; border-radius: 8px; padding: 16px;"
>
<div
style="display: flex; flex-direction: column; height: 100%; width: 100%; gap: 16px;"
>
<div
style="display: flex; justify-content: space-between; align-items: center;"
>
<div
style="font-weight: 700; font-size: 20px; line-height: 32px; color: rgb(13, 13, 13);"
>
Auto-generated code by Inferencer
</div>
<button
style="flex-shrink: 0; appearance: none; background: none; padding: 0px; margin: 0px; outline: none; border-radius: 50px; width: 32px; height: 32px; cursor: pointer; transition: all 0.15s ease;"
>
<svg
fill="none"
height="32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16-7.163 16-16 16Zm-2.586-21.414a2 2 0 1 0-2.828 2.828L13.172 16l-2.586 2.586a2 2 0 1 0 2.828 2.828L16 18.828l2.586 2.586a2 2 0 1 0 2.828-2.828L18.828 16l2.586-2.586a2 2 0 1 0-2.828-2.828L16 13.172l-2.586-2.586Z"
fill="#A6A6A6"
fill-rule="evenodd"
/>
</svg>
</button>
</div>
<div
style="font-size: 13px; border-radius: 8px; flex: 1; overflow: scroll; background: rgb(30, 30, 30);"
>
<pre
class="prism-code language-tsx"
style="color: rgb(156, 220, 254); background-color: rgb(30, 30, 30); padding: 14px 14px 14px 14px; margin: 0px; width: 100%; box-sizing: border-box;"
>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
import
</span>
<span
class="token plain"
>
</span>
<span
class="token imports maybe-class-name"
>
React
</span>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
from
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"react"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
/>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
import
</span>
<span
class="token plain"
>
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token imports"
>
</span>
<span
class="token imports maybe-class-name"
>
Edit
</span>
<span
class="token imports"
>
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
from
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"@refinedev/chakra-ui"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
/>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
import
</span>
<span
class="token plain"
>
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token imports"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token imports"
>
</span>
<span
class="token imports maybe-class-name"
>
FormControl
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token imports"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token imports"
>
</span>
<span
class="token imports maybe-class-name"
>
FormLabel
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token imports"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token imports"
>
</span>
<span
class="token imports maybe-class-name"
>
FormErrorMessage
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token imports"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token imports"
>
</span>
<span
class="token imports maybe-class-name"
>
Input
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token imports"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token imports"
>
</span>
<span
class="token imports maybe-class-name"
>
Select
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token imports"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token imports"
/>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
from
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"@chakra-ui/react"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
/>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
import
</span>
<span
class="token plain"
>
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token imports"
>
useForm
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
from
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"@refinedev/react-hook-form"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
/>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
import
</span>
<span
class="token plain"
>
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token imports"
>
useSelect
</span>
<span
class="token imports punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
from
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"@refinedev/core"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
/>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
export
</span>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
const
</span>
<span
class="token plain"
>
</span>
<span
class="token function-variable function"
style="color: rgb(220, 220, 170);"
>
PostEdit
</span>
<span
class="token plain"
>
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
const
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
refineCore
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
formLoading
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
queryResult
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
saveButtonProps
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
register
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
setValue
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
formState
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
useForm
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
const
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token plain"
>
queryResult
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
data
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
data
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
const
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
options
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
categoryOptions
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
useSelect
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
resource
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"categories"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
defaultValue
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
category
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token maybe-class-name"
>
React
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token method function property-access"
style="color: rgb(220, 220, 170);"
>
useEffect
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
setValue
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"category.id"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
category
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
[
</span>
<span
class="token plain"
>
categoryOptions
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
]
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
const
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
options
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
userOptions
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
useSelect
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
resource
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"users"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
defaultValue
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
user
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
optionLabel
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"firstName"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token maybe-class-name"
>
React
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token method function property-access"
style="color: rgb(220, 220, 170);"
>
useEffect
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
setValue
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"user.id"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
user
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
[
</span>
<span
class="token plain"
>
userOptions
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
]
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
const
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
options
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
tagsOptions
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain"
>
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
useSelect
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
resource
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"tags"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
defaultValue
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
tags
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token maybe-class-name"
>
React
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token method function property-access"
style="color: rgb(220, 220, 170);"
>
useEffect
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token function"
style="color: rgb(220, 220, 170);"
>
setValue
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token string"
style="color: rgb(206, 145, 120);"
>
"tags"
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
postsData
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
tags
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
[
</span>
<span
class="token plain"
>
tagsOptions
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
]
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
return
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Edit
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isLoading
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
formLoading
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
saveButtonProps
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
saveButtonProps
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
id
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Id
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
disabled
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
number
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"id"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
valueAsNumber
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread boolean"
style="color: rgb(78, 201, 176);"
>
true
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
title
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Title
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
text
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"title"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
title
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
slug
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Slug
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
text
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"slug"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
slug
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
content
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Content
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"content"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
content
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
hit
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Hit
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
number
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"hit"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
valueAsNumber
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread boolean"
style="color: rgb(78, 201, 176);"
>
true
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
hit
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
category
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Category
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Select
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
placeholder
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
Select category
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"category.id"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
categoryOptions
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token method function property-access"
style="color: rgb(220, 220, 170);"
>
map
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
option
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
value
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token tag script language-javascript property-access"
style="color: rgb(78, 201, 176);"
>
value
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
key
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token tag script language-javascript property-access"
style="color: rgb(78, 201, 176);"
>
value
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
option
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token property-access"
>
label
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Select
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
category
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
user
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
User
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Select
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
placeholder
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
Select user
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"user.id"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
userOptions
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token method function property-access"
style="color: rgb(220, 220, 170);"
>
map
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
option
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
value
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token tag script language-javascript property-access"
style="color: rgb(78, 201, 176);"
>
value
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
key
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token tag script language-javascript property-access"
style="color: rgb(78, 201, 176);"
>
value
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
option
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token property-access"
>
label
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Select
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
user
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
id
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
status
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Status
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
text
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"status"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
status
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
status_color
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Status Color
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
text
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"status_color"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
status_color
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
/*
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
DatePicker component is not included in "@refinedev/chakra-ui" package.
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
To use a <DatePicker> component, you can examine the following links:
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
- https://github.com/aboveyunhai/chakra-dayzed-datepicker
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
- https://github.com/wojtekmaj/react-date-picker
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
*/
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
createdAt
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Created At
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"createdAt"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
createdAt
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
style="display: inline-block;"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
/*
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
DatePicker component is not included in "@refinedev/chakra-ui" package.
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
To use a <DatePicker> component, you can examine the following links:
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
- https://github.com/aboveyunhai/chakra-dayzed-datepicker
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
- https://github.com/wojtekmaj/react-date-picker
</span>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token comment"
style="color: rgb(106, 153, 85);"
>
*/
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
publishedAt
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Published At
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"publishedAt"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
publishedAt
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
tags
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Tags
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Select
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
placeholder
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
Select tag
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"tags"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
tagsOptions
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token method function property-access"
style="color: rgb(220, 220, 170);"
>
map
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
option
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token plain"
>
</span>
<span
class="token arrow operator"
style="color: rgb(212, 212, 212);"
>
=>
</span>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
value
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token tag script language-javascript property-access"
style="color: rgb(78, 201, 176);"
>
value
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
key
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token tag script language-javascript property-access"
style="color: rgb(78, 201, 176);"
>
value
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token plain"
>
option
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
.
</span>
<span
class="token property-access"
>
label
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
option
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Select
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
tags
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
mb
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
3
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
isInvalid
</span>
<span
class="token tag script language-javascript script-punctuation punctuation"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
!
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
errors
</span>
<span
class="token tag script language-javascript keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag script language-javascript builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag script language-javascript operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token tag script language-javascript"
style="color: rgb(78, 201, 176);"
>
language
</span>
<span
class="token tag script language-javascript punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
>
Language
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormLabel
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Input
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag attr-name"
style="color: rgb(156, 220, 254);"
>
type
</span>
<span
class="token tag attr-value punctuation attr-equals"
style="color: rgb(212, 212, 212);"
>
=
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag attr-value"
style="color: rgb(206, 145, 120);"
>
number
</span>
<span
class="token tag attr-value punctuation"
style="color: rgb(212, 212, 212);"
>
"
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
...
</span>
<span
class="token tag spread method function property-access"
style="color: rgb(220, 220, 170);"
>
register
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"language"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
required
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread string"
style="color: rgb(206, 145, 120);"
>
"This field is required"
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
valueAsNumber
</span>
<span
class="token tag spread operator"
style="color: rgb(212, 212, 212);"
>
:
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread boolean"
style="color: rgb(78, 201, 176);"
>
true
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
,
</span>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag spread"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token tag spread punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token tag"
style="color: rgb(78, 201, 176);"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
/>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
<
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
{
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
(
</span>
<span
class="token plain"
>
errors
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
any
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
language
</span>
<span
class="token operator"
style="color: rgb(212, 212, 212);"
>
?.
</span>
<span
class="token plain"
>
message
</span>
<span
class="token keyword"
style="color: rgb(86, 156, 214);"
>
as
</span>
<span
class="token plain"
>
</span>
<span
class="token builtin"
style="color: rgb(86, 156, 214);"
>
string
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormErrorMessage
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
FormControl
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain-text"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain-text"
>
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
</
</span>
<span
class="token tag class-name"
style="color: rgb(78, 201, 176);"
>
Edit
</span>
<span
class="token tag punctuation"
style="color: rgb(212, 212, 212);"
>
>
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
>
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
)
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
/>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
}
</span>
<span
class="token punctuation"
style="color: rgb(212, 212, 212);"
>
;
</span>
<span
class="token plain"
/>
</div>
<div
class="token-line"
style="color: rgb(156, 220, 254);"
>
<span
class="token plain"
style="display: inline-block;"
>
</span>
</div>
</pre>
</div>
<div
style="display: flex; justify-content: flex-start; align-items: flex-end; gap: 16px;"
>
<button
style="appearance: none; height: 40px; padding: 10px 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: rgb(0, 128, 255); color: rgb(255, 255, 255); font-size: 14px; line-height: 20px; font-weight: 600; gap: 8px; cursor: pointer; position: relative; overflow: hidden; transition: filter 0.2s ease; transform: scale(1);"
>
<svg
fill="none"
height="20"
style="flex-shrink: 0; margin-top: -2px; margin-bottom: -2px;"
viewBox="0 0 24 24"
width="20"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M8 5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h1Zm0 7a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm1 3a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2H9Z"
fill="currentColor"
fill-rule="evenodd"
/>
<path
d="M13 4a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2h2Z"
fill="currentColor"
/>
</svg>
<span>
Copy Generated Code
</span>
<div
style="position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; display: flex; align-items: center; justify-content: center; background: rgb(0, 128, 255); transition: all 0.2s ease; transform: translateY(40px);"
>
<svg
fill="none"
height="20"
style="flex-shrink: 0; margin-top: -2px; margin-bottom: -2px;"
viewBox="0 0 24 24"
width="20"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M8 5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h1Zm0 7a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm1 3a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2H9Z"
fill="currentColor"
fill-rule="evenodd"
/>
<path
d="M13 4a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2h2Z"
fill="currentColor"
/>
</svg>
<span>
Copied!
</span>
</div>
</button>
<a
href="https://refine.dev/docs/packages/documentation/inferencer"
rel="noreferrer"
style="appearance: none; text-decoration: none; padding: 10px 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: rgba(0, 128, 255, 0.1); color: rgb(0, 128, 255); font-size: 14px; line-height: 20px; font-weight: 600; gap: 8px; cursor: pointer; transition: all 0.2s ease;"
target="_blank"
>
<svg
fill="none"
height="16"
style="flex-shrink: 0;"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 2a1 1 0 0 1 0 2H4v8h8v-1a1 1 0 1 1 2 0v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1Z"
fill="currentColor"
/>
<path
d="M9 2a1 1 0 0 0 0 2h1.586L6.293 8.293a1 1 0 0 0 1.414 1.414L12 5.414V7a1 1 0 1 0 2 0V3a1 1 0 0 0-1-1H9Z"
fill="currentColor"
/>
</svg>
<span>
Learn more about inferencer
</span>
</a>
</div>
</div>
</div>
</div>
</DocumentFragment>
`;